The study focused on how to improve the diagnostic coincidence rate of patients with gallbladder stones and gallbladder cancer based on an optimized Segnet network algorithm and the relationship of gallbladder cancer with multiple tumor suppressor 1 (P16). This evidence concerns the gene CDKN2A and gallbladder cancer.