The gastrointestinal tract harbour’s numerous diseases with substantial clinical burden. The advent of cutting-edge medical technologies has ushered in a new era in gastroenterology, transforming the assessment of the gastrointestinal tract through improved diagnostic precision and timely therapeutic intervention in gastroenterology. Gastrointestinal (GI) endoscopy, serving as the eyes and hands of gastroenterology, enables real-time assessment and targeted treatment of gastrointestinal pathologies. Over the last few decades, innovations in endoscopic imaging, optics, and auxiliary devices have boosted the role of endoscopy.

The rapid integration of artificial intelligence (AI) into medical practice represents a paradigm shift in the diagnosis, monitoring, and treatment of disease. In gastroenterology the convergence of advanced imaging technologies and artificial intelligence (AI) is reshaping the landscape of modern gastroenterology. In gastroenterology, AI is being tailored to address clinical questions and assist in medical decision making. AI has been developed for lesion characterisation, workflow optimisation, quality assurance, computer-aided detection (CADe), and computer-aided diagnosis (CADx) in gastrointestinal endoscopy. 

Early clinical research has demonstrated that AI-assisted colonoscopy can enhance the detection of polyps and adenomas and help accurately discriminate between neoplastic and non-neoplastic lesions. The applications of AI extend beyond colorectal endoscopy to upper gastrointestinal neoplasia, inflammatory bowel disease, Helicobacter pylori infection, capsule endoscopy, and pancreatobiliary disorders. The suboptimal diagnostic performance of ERCP-guided brush cytology and forceps biopsy in the characterization of biliary strictures has prompted a paradigm shift toward integrated endoscopic diagnostics. Advanced modalities, notably cholangioscopy and endoscopic ultrasound, have emerged as indispensable adjuncts, enabling high-resolution intraductal visualization and precision-guided tissue sampling that collectively refine diagnostic accuracy and clinical decision-making.

AI Integration Across Gastrointestinal Endoscopic Modalities

AI in Gastric cancers: Gastric cancer is the fifth leading cause of cancer-related death worldwide. Miss rates for gastric neoplasia are approximately 4.6-25.8% in countries with a low incidence of the disease. Histopathological assessment of whole-slide imaging (WSI) remains the gold standard for the diagnosis of gastric cancer. Nevertheless, the meticulous examination of these complex digital slides is both time-consuming and cognitively demanding, placing a substantial workload on pathologists. The advent of deep learning-based algorithms, particularly convolutional neural networks, has revolutionized the detection and characterization of gastric neoplasia. Leveraging their exceptional pattern-recognition capabilities, AI systems can identify subtle mucosal abnormalities, accurately detect early gastric cancer, recognize premalignant gastric lesions, and discriminate between benign and malignant pathology.

AI in Gastric precancerous lesions and H. pylori infection

Helicobacter pylori infection and gastric precancerous lesions are integral components of the Correa cascade and represent well-established risk factors for gastric cancer (GC). Endoscopic evaluation remains the cornerstone for the detection and surveillance of these conditions. The assessment of gastric precancerous lesions traditionally relies on systematic biopsy protocols, including OLGA, OLGIM. Although these approaches provide reliable risk stratification, they are labour-intensive, time-consuming and costly. AI has enhanced the detection of gastric mucosal abnormalities, with deep learning algorithms identifying gastric atrophy with 100% sensitivity and 87.5% specificity, while machine learning models such as XGBoost improve the prediction of Helicobacter pylori infection

AI in esophageal disorders

Barrett's esophagus (BE) occupies a pivotal position in the neoplastic continuum leading to esophageal adenocarcinoma (EAC), rendering its early recognition and surveillance fundamental to cancer prevention and improved patient outcomes Endoscopic surveillance remains the mainstay of Barrett's esophagus management, while artificial intelligence has emerged as a valuable adjunct, attracting considerable research interest for improving the detection and characterization of dysplasia. Beyond lesion detection, AI-assisted systems facilitate the assessment of invasion depth, a critical determinant in selecting appropriate therapeutic strategies, including endoscopic mucosal resection (EMR), endoscopic submucosal dissection (ESD), or surgical resection. The emergence of advanced deep learning architectures, including YOLOv5l, has strengthened the endoscopic detection of esophageal squamous cell carcinoma and its precursor lesions.

AI in Inflammatory bowel disease

Machine learning models integrating endoscopic and histopathological features have achieved an accuracy of 82.7% in differentiating paediatric Crohn's disease from ulcerative colitis, with ileal involvement identified as the most discriminative feature. AI-assisted capsule endoscopy has also improved the evaluation of small bowel lesions and obscure gastrointestinal bleeding, while advanced predictive models enable individualized risk assessment and early identification of adverse clinical outcomes. Furthermore, AI-driven computer-aided detection (CADe) systems have demonstrated excellent performance in detecting IBD-associated colorectal dysplasia, achieving a sensitivity of 95.1% and an accuracy of 96.8% using high-definition white-light endoscopy.

AI in Colorectal polyps and cancer

Colorectal cancer (CRC), the second leading cause of cancer-related mortality worldwide, underscores the critical importance of high-quality colonoscopic screening and early lesion detection. Nevertheless, subtle or diminutive lesions may be overlooked because of operator-dependent variability. Building upon the established role of colonoscopy, artificial intelligence (AI) has transformed colorectal cancer screening through computer-aided detection (CADe) and computer-aided diagnosis (CADx). AI-assisted systems help endoscopists' to identify colorectal polyps with greater accuracy while reducing adenoma miss rates. The integration of advanced imaging modalities, including narrow-band imaging (NBI), linked color imaging (LCI), and endocytoscopy, with deep learning algorithms has further improved optical biopsy, supporting strategies such as "resect-and-discard" and "diagnose-and-leave" for diminutive polyps.

AI in Pancreato-biliary diseases

Pancreatobiliary malignancies, particularly pancreatic cancer and indeterminate biliary strictures (IBSs), remain among the most diagnostically challenging conditions in gastrointestinal endoscopy because of their subtle and often overlapping imaging characteristics. AI integrated with advanced endoscopic modalities, including ERCP, cholangioscopy, pCLE, and EUS-FNA, enhances lesion characterization, distinguishes benign from malignant biliary strictures, improves the detection of pancreatic neoplasms, and supports therapeutic decision-making.

CADe system detecting colon polyp - Regional Perspective: Kashmir

Kashmir is a landlocked geographical entity located at a very high altitude, with a multi-ethnic Muslim majority population with unique cultural practices. Traditionally recognised as an endemic cancer zone with peculiar oncology profile, the Kashmir Valley exemplifies a distinctive epidemiological phenotype within India, characterized by an enduringly high incidence of gastrointestinal malignancies. The 2023 Journal of Cancer Research and Therapeutics study analyzed 5,392 histologically confirmed malignancies (2016–2020) from Kashmir Valley and found that gastrointestinal malignancies accounted for more than one-third of all cancers. Gastric cancer, remains one of the most frequently encountered neoplastic diseases in the region. 

A recent population-based study from the Kashmir Valley documented 5,554 cases of gastric cancer between 2014 and 2023 among individuals aged 18–90 years. The high prevalence of Helicobacter pylori infection in the Kashmiri population further contributes to the regional burden of chronic gastritis and gastric cancer. The epidemiology of colorectal cancer (CRC) in Kashmir similarly reflects the interplay of hereditary and genetic factors. A recent case-control study involving 246 histopathologically confirmed CRC patients and 246 matched controls demonstrated a strong association between a positive family history of CRC and an increased disease risk. Inflammatory bowel disease (IBD) is increasingly recognized as an emerging gastrointestinal disorder in Kashmir. 

A recent prospective study from a tertiary-care center in Kashmir involving 100 patients characterized the evolving clinical profile of inflammatory bowel disease, with both ulcerative colitis and Crohn's disease contributing substantially to the regional disease spectrum. Pancreatic cancer remains one of the most lethal gastrointestinal malignancies owing to its aggressive biology and late clinical presentation. Collectively, gastric, colorectal, pancreatic, and esophageal malignancies, together with conditions such as Barrett's esophagus and colorectal polyps, constitute an important component of the gastrointestinal disease spectrum in Kashmir.

Given the substantial gastrointestinal disease burden in Kashmir, the integration of artificial intelligence into endoscopic practice offers a promising opportunity to enhance lesion detection, characterization, and diagnostic precision. However, the successful translation of AI into routine clinical practice will depend upon robust endoscopic infrastructure, digital readiness, and continued investment in clinician training, ensuring that technological innovation complements - rather than replaces - the expertise and judgment of the endoscopist

The Road Ahead:

Caveats: While artificial intelligence is reshaping the landscape of gastrointestinal endoscopy, its widespread clinical integration is constrained by technical, ethical, regulatory and infrastructural challenges.

Kashmir context

The continued evolution of gastrointestinal endoscopy holds considerable promise for redefining digestive healthcare in Kashmir by fostering earlier disease recognition, enhanced diagnostic precision, and more effective therapeutic interventions. The judicious integration of artificial intelligence into endoscopic practice may further augment lesion detection, optimize procedural standardization, and refine clinical decision-making, particularly in settings with constrained specialist resources. 

Future research should prioritize multicentre validation, cost-effectiveness analyses, and the development of region-specific AI models to facilitate equitable integration into routine gastrointestinal endoscopic practice. Nevertheless, translating this potential into clinical reality will require sustained investment in endoscopic infrastructure, digital transformation, and workforce development, ensuring that technological innovation remains an extension of not a substitute for the expertise and discernment of the endoscopist.

The future of gastrointestinal endoscopy will be written not by artificial intelligence alone, but by the synergy between intelligent machines and compassionate clinicians; While artificial intelligence may sharpen the lens of endoscopy, it is the endoscopist who guides that vision purpose, judgement and humanity. Together, they transform every image into an opportunity for earlier detection, every decision into greater precision, and every patient encounter into a testament to the convergence of technology and human expertise.”

(The Author is a DM Gastroenterology Associate Professor & HOU (Medicine) GMC Baramulla)