Transformer-Based Deep Learning Framework for Automated Lesion Detection in Capsule Endoscopy: A Comparative Study With CNN Architectures.

IF 2.7 4区 医学 Q2 GASTROENTEROLOGY & HEPATOLOGY
Sri Harsha Boppana, Sachin Sravan Kumar Komati, Aditya Chandrashekar, Gautam Maddineni, Sirisha Kundrapu, Nisheet Waghray, Marc Landsman, Venkata C K Sunkesula
{"title":"Transformer-Based Deep Learning Framework for Automated Lesion Detection in Capsule Endoscopy: A Comparative Study With CNN Architectures.","authors":"Sri Harsha Boppana, Sachin Sravan Kumar Komati, Aditya Chandrashekar, Gautam Maddineni, Sirisha Kundrapu, Nisheet Waghray, Marc Landsman, Venkata C K Sunkesula","doi":"10.1097/MCG.0000000000002432","DOIUrl":null,"url":null,"abstract":"<p><strong>Goals: </strong>To compare a vision transformer with 2 convolutional neural network architectures for multiclass lesion classification in capsule endoscopy images.</p><p><strong>Background: </strong>Manual review of capsule endoscopy is time-consuming and subject to interobserver variability. Deep learning can automate lesion recognition; however, most prior capsule endoscopy work evaluates a small number of classes, and systematic comparisons between transformer and convolutional architectures across many lesion categories are limited.</p><p><strong>Study: </strong>Two publicly available data sets (SEE-AI and Kvasir-Capsule) were merged and preprocessed to create a 21-class image data set (∼58,000 frames). Images were resized to 224 × 224 pixels and split using stratified sampling into training (n=40,587), validation (n=8696), and test (n=8696) sets. A pretrained Vision Transformer, DenseNet121, and ResNet50 were fine-tuned using categorical cross-entropy loss and Adam optimization, with early stopping. Performance was assessed using accuracy, macroaveraged precision, recall, F1 Score, and the area under the receiver operating characteristic curve.</p><p><strong>Results: </strong>On the independent test set, the vision transformer achieved 92.2% accuracy with macroaveraged precision/recall/F1-score of 0.92 and an area under the receiver operating characteristic curve of 0.99. DenseNet121 achieved 74.0% accuracy (F1-score 0.78; area under the receiver operating characteristic curve 0.85). ResNet50 achieved 38.0% accuracy (F1-score 0.40; area under the receiver operating characteristic curve 0.55).</p><p><strong>Conclusions: </strong>In this merged 21-class capsule endoscopy image data set, the vision transformer achieved higher frame-level classification performance than DenseNet121 and ResNet50 under the present experimental conditions. Importantly, the data set was split at the image level rather than at the patient or procedure level, because frames from the same examination may be correlated; therefore, performance figures likely reflect benchmark results on this frame-level public data set and should not be interpreted as estimates of patient-level generalization or as evidence of definitive architectural superiority. These findings support further evaluation of transformer-based approaches, but grouped reanalysis, external validation, and workflow-oriented studies are required before clinical implementation.</p>","PeriodicalId":15457,"journal":{"name":"Journal of clinical gastroenterology","volume":" ","pages":""},"PeriodicalIF":2.7000,"publicationDate":"2026-08-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of clinical gastroenterology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1097/MCG.0000000000002432","RegionNum":4,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"GASTROENTEROLOGY & HEPATOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Goals: To compare a vision transformer with 2 convolutional neural network architectures for multiclass lesion classification in capsule endoscopy images.

Background: Manual review of capsule endoscopy is time-consuming and subject to interobserver variability. Deep learning can automate lesion recognition; however, most prior capsule endoscopy work evaluates a small number of classes, and systematic comparisons between transformer and convolutional architectures across many lesion categories are limited.

Study: Two publicly available data sets (SEE-AI and Kvasir-Capsule) were merged and preprocessed to create a 21-class image data set (∼58,000 frames). Images were resized to 224 × 224 pixels and split using stratified sampling into training (n=40,587), validation (n=8696), and test (n=8696) sets. A pretrained Vision Transformer, DenseNet121, and ResNet50 were fine-tuned using categorical cross-entropy loss and Adam optimization, with early stopping. Performance was assessed using accuracy, macroaveraged precision, recall, F1 Score, and the area under the receiver operating characteristic curve.

Results: On the independent test set, the vision transformer achieved 92.2% accuracy with macroaveraged precision/recall/F1-score of 0.92 and an area under the receiver operating characteristic curve of 0.99. DenseNet121 achieved 74.0% accuracy (F1-score 0.78; area under the receiver operating characteristic curve 0.85). ResNet50 achieved 38.0% accuracy (F1-score 0.40; area under the receiver operating characteristic curve 0.55).

Conclusions: In this merged 21-class capsule endoscopy image data set, the vision transformer achieved higher frame-level classification performance than DenseNet121 and ResNet50 under the present experimental conditions. Importantly, the data set was split at the image level rather than at the patient or procedure level, because frames from the same examination may be correlated; therefore, performance figures likely reflect benchmark results on this frame-level public data set and should not be interpreted as estimates of patient-level generalization or as evidence of definitive architectural superiority. These findings support further evaluation of transformer-based approaches, but grouped reanalysis, external validation, and workflow-oriented studies are required before clinical implementation.

基于变压器的胶囊内窥镜病变自动检测深度学习框架:与CNN架构的比较研究。
目的:比较两种卷积神经网络结构与视觉转换器在胶囊内窥镜图像中多类型病变分类中的应用。背景:人工检查胶囊内窥镜是费时的,并且受观察者之间的差异。深度学习可以自动识别病变;然而,大多数先前的胶囊内窥镜工作评估了少数类别,并且在许多病变类别中,变压器和卷积结构之间的系统比较是有限的。研究:将两个公开可用的数据集(SEE-AI和Kvasir-Capsule)合并并预处理,以创建21类图像数据集(约58,000帧)。将图像调整为224 × 224像素,并使用分层抽样将其分成训练集(n=40,587),验证集(n=8696)和测试集(n=8696)。使用分类交叉熵损失和Adam优化对预训练的Vision Transformer、DenseNet121和ResNet50进行微调,并提前停止。使用准确性、宏观平均精度、召回率、F1评分和接收者工作特征曲线下的面积来评估性能。结果:在独立测试集上,视觉变压器的准确率达到92.2%,宏观平均精密度/召回率/ f1得分为0.92,接收者工作特征曲线下面积为0.99。DenseNet121的准确率为74.0% (f1评分0.78,受试者工作特征曲线下面积0.85)。ResNet50的准确度为38.0% (f1评分0.40,受试者工作特征曲线下面积0.55)。结论:在本实验条件下,在合并的21类胶囊内窥镜图像数据集中,视觉转换器比DenseNet121和ResNet50具有更高的帧级分类性能。重要的是,数据集是在图像水平而不是在患者或手术水平上分割的,因为来自相同检查的帧可能是相关的;因此,性能数据可能反映了这个框架级公共数据集上的基准测试结果,不应被解释为对患者级别泛化的估计或作为确定的架构优势的证据。这些发现支持进一步评估基于转换器的方法,但在临床实施之前需要分组再分析、外部验证和面向工作流程的研究。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of clinical gastroenterology
Journal of clinical gastroenterology 医学-胃肠肝病学
CiteScore
5.60
自引率
3.40%
发文量
339
审稿时长
3-8 weeks
期刊介绍: Journal of Clinical Gastroenterology gathers the world''s latest, most relevant clinical studies and reviews, case reports, and technical expertise in a single source. Regular features include cutting-edge, peer-reviewed articles and clinical reviews that put the latest research and development into the context of your practice. Also included are biographies, focused organ reviews, practice management, and therapeutic recommendations.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书