Hannah R. Phillips MD , Jeffrey R. Fetzer MS , Sanket Bhattarai MBBS , Sandra Algarin Perneth MD , D. Chamil Codipilly MD , Derek W. Ebner MD , Adam C. Bledsoe MD , Amrit Kamboj MD , Daniel A. Schupack MD , Victor Chedid MD , Nayantara Coelho-Prabhu MBBS , Diana Snyder MD , Karthik Ravi MD , Kevin Buller , Cadman L. Leggett MD
{"title":"Computer-assisted classification of the squamocolumnar junction","authors":"Hannah R. Phillips MD , Jeffrey R. Fetzer MS , Sanket Bhattarai MBBS , Sandra Algarin Perneth MD , D. Chamil Codipilly MD , Derek W. Ebner MD , Adam C. Bledsoe MD , Amrit Kamboj MD , Daniel A. Schupack MD , Victor Chedid MD , Nayantara Coelho-Prabhu MBBS , Diana Snyder MD , Karthik Ravi MD , Kevin Buller , Cadman L. Leggett MD","doi":"10.1016/j.gie.2025.01.020","DOIUrl":null,"url":null,"abstract":"<div><h3>Background and Aims</h3><div>An irregular Z-line is characterized by a squamocolumnar junction (SCJ) that extends proximally above the gastroesophageal junction by <1 cm, whereas Barrett’s esophagus is defined as a columnar-lined esophagus (CLE) that extends proximally by ≥1 cm with the presence of specialized intestinal metaplasia on biopsy sampling. Measurement of the CLE is most accurate for lengths ≥1 cm, and, as such, guidelines do not recommend biopsy sampling of an irregular Z-line when seen on endoscopy. However, a CLE is often estimated by visual inspection rather than direct measurement, making this characterization imprecise. In this study, we present methodology to standardize the characterization of the SCJ, hypothesizing that the shape of the Z-line can be used as a surrogate classifier. We present a computer-generated algorithm capable of automated segmentation and shape complexity quantification of the Z-line.</div></div><div><h3>Methods</h3><div>We selected and manually segmented 849 images of the Z-line. We used the nnUNet framework (Nature Methods, Heidelberg, Germany) to train a model to segment the Z-line. An additional dataset of 58 videos containing the Z-line were obtained from the Mayo Clinic Endoscopy video library. A high-quality image containing the Z-line was selected from each video. Ten gastroenterologists (5 esophageal experts) rated each of the 58 video–image pairs containing the Z-line as “regular” or “irregular,” including their degree of confidence. Fleiss κ statistics were used to determine interobserver variability. The “ground truth” classification was determined by the esophageal expert majority vote. A wavelet decomposition model was then used to determine the threshold of irregularity based on the ground truth. Heat maps were generated for each Z-line to determine localized areas of complexity.</div></div><div><h3>Results</h3><div>Fair agreement, with a Fleiss κ of .39, was observed among the 10 endoscopists when rating the Z-line as regular versus irregular using this dataset. Moderate agreement was observed among the 5 esophageal experts with a Fleiss κ statistic of .42, and fair agreement was observed among the 5 nonesophageal experts with a Fleiss κ statistic of .31. The wavelet energy coefficient optimal threshold to classify an SCJ as irregular was determined to be 1.53 × 10<sup>7</sup> with an accuracy of 78%.</div></div><div><h3>Conclusions</h3><div>Our computer-generated model was capable of automatic segmentation and classification of the Z-line. We established a threshold of complexity using the wavelet energy coefficient to standardize the classification of the SCJ.</div></div>","PeriodicalId":12542,"journal":{"name":"Gastrointestinal endoscopy","volume":"102 2","pages":"Pages 245-251"},"PeriodicalIF":7.5000,"publicationDate":"2025-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Gastrointestinal endoscopy","FirstCategoryId":"3","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0016510725000458","RegionNum":1,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/1/18 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"GASTROENTEROLOGY & HEPATOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Background and Aims
An irregular Z-line is characterized by a squamocolumnar junction (SCJ) that extends proximally above the gastroesophageal junction by <1 cm, whereas Barrett’s esophagus is defined as a columnar-lined esophagus (CLE) that extends proximally by ≥1 cm with the presence of specialized intestinal metaplasia on biopsy sampling. Measurement of the CLE is most accurate for lengths ≥1 cm, and, as such, guidelines do not recommend biopsy sampling of an irregular Z-line when seen on endoscopy. However, a CLE is often estimated by visual inspection rather than direct measurement, making this characterization imprecise. In this study, we present methodology to standardize the characterization of the SCJ, hypothesizing that the shape of the Z-line can be used as a surrogate classifier. We present a computer-generated algorithm capable of automated segmentation and shape complexity quantification of the Z-line.
Methods
We selected and manually segmented 849 images of the Z-line. We used the nnUNet framework (Nature Methods, Heidelberg, Germany) to train a model to segment the Z-line. An additional dataset of 58 videos containing the Z-line were obtained from the Mayo Clinic Endoscopy video library. A high-quality image containing the Z-line was selected from each video. Ten gastroenterologists (5 esophageal experts) rated each of the 58 video–image pairs containing the Z-line as “regular” or “irregular,” including their degree of confidence. Fleiss κ statistics were used to determine interobserver variability. The “ground truth” classification was determined by the esophageal expert majority vote. A wavelet decomposition model was then used to determine the threshold of irregularity based on the ground truth. Heat maps were generated for each Z-line to determine localized areas of complexity.
Results
Fair agreement, with a Fleiss κ of .39, was observed among the 10 endoscopists when rating the Z-line as regular versus irregular using this dataset. Moderate agreement was observed among the 5 esophageal experts with a Fleiss κ statistic of .42, and fair agreement was observed among the 5 nonesophageal experts with a Fleiss κ statistic of .31. The wavelet energy coefficient optimal threshold to classify an SCJ as irregular was determined to be 1.53 × 107 with an accuracy of 78%.
Conclusions
Our computer-generated model was capable of automatic segmentation and classification of the Z-line. We established a threshold of complexity using the wavelet energy coefficient to standardize the classification of the SCJ.
期刊介绍:
Gastrointestinal Endoscopy is a journal publishing original, peer-reviewed articles on endoscopic procedures for studying, diagnosing, and treating digestive diseases. It covers outcomes research, prospective studies, and controlled trials of new endoscopic instruments and treatment methods. The online features include full-text articles, video and audio clips, and MEDLINE links. The journal serves as an international forum for the latest developments in the specialty, offering challenging reports from authorities worldwide. It also publishes abstracts of significant articles from other clinical publications, accompanied by expert commentaries.