{"title":"Evaluation of an artificial intelligence model in assessing the severity of gastritis during gastroscopy: A pilot study.","authors":"Krishnamoorthy Rajaram, Palaniappan Sakthivel, Sundaram Easwaramoorthy, Chandrasekar Sakthivel","doi":"10.4103/jmas.jmas_224_26","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Gastritis diagnosis via endoscopy remains highly subjective, often leading to inter-observer variability and the misdiagnosis of early inflammatory changes as congestive portal gastropathy. While Computer-Aided Diagnosis (CAD) shows promise, the \"paucity of labelled data\" remains a significant barrier to clinical implementation.</p><p><strong>Aim and objectives: </strong>This study aimed to develop and validate a scalable deep-learning solution using a hybrid CNN-Vision Transformer (ViT) architecture to assist endoscopists in the real-time severity stratification of gastritis (Normal, Mild, Moderate, and Severe).</p><p><strong>Materials and methods: </strong>We utilized 4,462 high-definition, anonymised endoscopic images annotated by expert gastroenterologists using the Kyoto Classification as a benchmark. A multi-branch parallel processing architecture was developed, combining a CNN-based branch for local feature extraction (texture and erythema) and a Vision Transformer (ViT) for global context learning. Data augmentation expanded the training set to over 68,000 images to prevent overfitting. Performance was evaluated using Accuracy, Precision, Recall, and the Matthews Correlation Coefficient (MCC).</p><p><strong>Results: </strong>The hybrid model achieved an Overall Classification Accuracy of 91.4% and a Matthews Correlation Coefficient (MCC) of 0.90, indicating a near-perfect correlation with clinical ground truth. The system demonstrated exceptional performance in the \"Normal\" category with 99% specificity, providing a highly dependable negative result. Precision (0.8892) and Recall (0.8481) remained robust across all categories, significantly reducing the risk of over-diagnosing gastropathy as gastritis.</p><p><strong>Conclusion: </strong>The proposed hybrid AI architecture provides a robust, real-time \"second opinion\" tool for endoscopists. By integrating local and global mucosal patterns, the system achieves high-precision severity stratification, potentially reducing unnecessary biopsies and minimizing diagnostic errors caused by inter-observer variability in the endoscopy suite.</p>","PeriodicalId":48905,"journal":{"name":"Journal of Minimal Access Surgery","volume":" ","pages":""},"PeriodicalIF":1.2000,"publicationDate":"2026-08-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Minimal Access Surgery","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.4103/jmas.jmas_224_26","RegionNum":4,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"SURGERY","Score":null,"Total":0}
引用次数: 0
Abstract
Background: Gastritis diagnosis via endoscopy remains highly subjective, often leading to inter-observer variability and the misdiagnosis of early inflammatory changes as congestive portal gastropathy. While Computer-Aided Diagnosis (CAD) shows promise, the "paucity of labelled data" remains a significant barrier to clinical implementation.
Aim and objectives: This study aimed to develop and validate a scalable deep-learning solution using a hybrid CNN-Vision Transformer (ViT) architecture to assist endoscopists in the real-time severity stratification of gastritis (Normal, Mild, Moderate, and Severe).
Materials and methods: We utilized 4,462 high-definition, anonymised endoscopic images annotated by expert gastroenterologists using the Kyoto Classification as a benchmark. A multi-branch parallel processing architecture was developed, combining a CNN-based branch for local feature extraction (texture and erythema) and a Vision Transformer (ViT) for global context learning. Data augmentation expanded the training set to over 68,000 images to prevent overfitting. Performance was evaluated using Accuracy, Precision, Recall, and the Matthews Correlation Coefficient (MCC).
Results: The hybrid model achieved an Overall Classification Accuracy of 91.4% and a Matthews Correlation Coefficient (MCC) of 0.90, indicating a near-perfect correlation with clinical ground truth. The system demonstrated exceptional performance in the "Normal" category with 99% specificity, providing a highly dependable negative result. Precision (0.8892) and Recall (0.8481) remained robust across all categories, significantly reducing the risk of over-diagnosing gastropathy as gastritis.
Conclusion: The proposed hybrid AI architecture provides a robust, real-time "second opinion" tool for endoscopists. By integrating local and global mucosal patterns, the system achieves high-precision severity stratification, potentially reducing unnecessary biopsies and minimizing diagnostic errors caused by inter-observer variability in the endoscopy suite.
期刊介绍:
Journal of Minimal Access Surgery (JMAS), the official publication of Indian Association of Gastrointestinal Endo Surgeons, launched in early 2005. The JMAS, a quarterly publication, is the first English-language journal from India, as also from this part of the world, dedicated to Minimal Access Surgery. The JMAS boasts an outstanding editorial board comprising of Indian and international experts in the field.