Background and Aims
Methods
Results
Conclusions
Abbreviations:
AI (artificial intelligence), CADx (computer-assisted diagnosis), CNN (convolutional neural network), MMES (modified Mayo endoscopic score), UC (ulcerative colitis), UCEIS (Ulcerative Colitis Endoscopic Index of Severity)Methods

Image and video data preparation
Image labeling
Subitem | Total | 0 | 1 | 2 | 3 |
---|---|---|---|---|---|
Mayo | 5875 | 1064 | 895 | 1855 | 2061 |
Clean label | 4831 | 874 | 736 | 1526 | 1695 |
Noisy label | 1044 | 190 | 159 | 329 | 366 |
Erosions and ulcers | 4251 | 1397 | 1146 | 1342 | 366 |
Clean label | 3749 | 1231 | 1010 | 1183 | 325 |
Noisy label | 502 | 166 | 136 | 159 | 41 |
Bleeding | 920 | 336 | 268 | 172 | 144 |
Clean label | 833 | 304 | 242 | 155 | 130 |
Noisy label | 87 | 32 | 26 | 17 | 14 |
Vascular pattern | 5099 | 942 | 864 | 3293 | — |
Clean label | 4079 | 753 | 691 | 2635 | — |
Noisy label | 1020 | 189 | 173 | 658 | — |
Video collection
AI algorithm
Scoring model development
Baseline scoring model MMES
where Mi (0-3) is the clinician’s approximate estimation that reflects the severity of the lesion in particular intestinal segments and length and N are the inflammatory part’s length and the number (0-5) of intestinal segments with inflammation. The values obtained using this equation were subjectively determined by each endoscopist based on their experience and may have considerable differences.
Weighted scoring model
where avg is the average of all endoscopic images’ Mayo score prediction of the image sequence, Numx represents the proportion of the Mayo score results in this intestinal area, and PPVx (positive predictive value) is the statistical analysis value of the AI algorithm predictions of the Mayo classification task, which measures the ratio of the true-positive cases to the classified positive cases. Clinicians focus on high-severity inflammation during clinical diagnosis. Thus, in the calculation formula of the area score, we took the Mayo score (the values of 1, 2, and 3 representing mild, moderate, and severe inflammations, respectively) as the weight coefficient.

where ratio and L represent the percentage proportion of each inflammation severity and the number of image sequences of this intestinal segment, respectively.

Statistical analysis
Results
CNN output for predicting Mayo and UCEIS scores
Scores | Positive predictive value (%) | Negative predictive value (%) | Sensitivity (%) | Specificity (%) | F score (%) |
---|---|---|---|---|---|
Mayo score | |||||
0 | 86.78 (.8405-.8951) | 96.88 (.9548-.9828) | 87.50 (.8476-.9024) | 96.68 (.9523-.9813) | 87.14 |
1 | 75.32 (.7184-.7880) | 95.05 (.9330-.9680) | 69.05 (.6572-.7238) | 96.33 (.9481-.9785) | 72.05 |
2 | 84.74 (.8184-.8764) | 94.42 (.9257-.9627) | 87.50 (.8455-.9045) | 93.06 (.9101-.9511) | 86.10 |
3 | 92.06 (.8988-.9424) | 95.62 (.9397-.9727) | 92.06 (.8988-.9424) | 95.62 (.9397-.9727) | 92.06 |
UCEIS vascular pattern | |||||
0 | 88.30 (.8550-.9109) | 97.11 (.9565-.9856) | 87.37 (.8448-.9026) | 97.34 (.9594-.9874) | 87.83 |
1 | 75.58 (.7185-.7931) | 95.74 (.9399-.9750) | 78.31 (.7473-.8189) | 95.07 (.9319-.9695) | 76.92 |
2 | 95.44 (.9363-.9725) | 90.56 (.9802-.9310) | 94.86 (.9294-.9678) | 91.57 (.8916-.9398) | 95.15 |
UCEIS erosions and ulcers | |||||
0 | 90.98 (.8820-.9376) | 94.14 (.9186-.9642) | 87.68 (.8849-.9087) | 95.79 (.9384-.9774) | 89.30 |
1 | 76.23 (.7209-.8037) | 92.69 (.9016-.9522) | 80.87 (.7705-.8469) | 90.58 (.8774-.9342) | 78.48 |
2 | 84.06 (.8050-.8762) | 94.04 (.9174-.9634) | 87.22 (.8398-.9046) | 92.41 (.8984-.9498) | 85.61 |
3 | 93.33 (.9091-.9575) | 97.71 (.9626-.9916) | 75.68 (.7151-.7984) | 99.48 (.9878-.9999) | 83.58 |
UCEIS bleeding | |||||
0 | 89.66 (.8366-.9567) | 94.29 (.8972-.9886) | 86.67 (.7997-.9337) | 95.65 (.9163-.9967) | 88.14 |
1 | 72.73 (.6396-.8150) | 90.91 (.8525-.9657) | 69.57 (.6051-.7863) | 92.11 (.8680-.9742) | 71.11 |
2 | 70.83 (.6188-.7978) | 90.67 (.8494-.9340) | 70.83 (.6188-.7978) | 90.67 (.8494-.9640) | 70.83 |
3 | 75.00 (.6647-.8353) | 94.67 (.9085-.9909) | 81.82 (.7422-.8942) | 92.21 (.8693-.9749) | 78.260 |

Scoring system results of the endoscopic videos
Results of the area score

Validity of the segment score


Visualized results of intestinal inflammatory activities

Discussion


Acknowledgments
References
- Ulcerative colitis and Crohn’s disease have similar burden and goals for treatment.Clin Gastroenterol Hepatol. 2020; 18: 14-23
- Coated oral 5-aminosalicylic acid therapy for mildly to moderately active ulcerative colitis.N Engl J Med. 1987; 317: 1625-1629
- Developing an instrument to assess the endoscopic severity of ulcerative colitis: the Ulcerative Colitis Endoscopic Index of Severity (UCEIS).Gut. 2012; 61: 535-542
- Endoscopic scoring indices for evaluation of disease activity in ulcerative colitis.Cochrane Database System Rev. 2018; 1 (CD011450)
- Mastering the game of Go with deep neural networks and tree search.Nature. 2016; 529: 484-489
- Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs.JAMA. 2016; 316: 2402-2410
- Development and validation of a deep neural network for accurate evaluation of endoscopic images from patients with ulcerative colitis.Gastroenterology. 2020; 158: 2150-2157
- Novel computer-assisted diagnosis system for endoscopic disease activity in patients with ulcerative colitis.Gastrointest Endosc. 2019; 89: 416-421
- Validation and investigation of the operating characteristics of the ulcerative colitis endoscopic index of severity.Inflamm Bowel Dis. 2019; 25: 937-944
- Central reading of ulcerative colitis clinical trial videos using neural networks.Gastroenterology. 2021; 160: 710-719
- Development and validation of a novel computed-tomography enterography radiomic approach for characterization of intestinal fibrosis in Crohn’s disease.Gastroenterology. 2021; 160: 2303-2316
Li Y, Yang J, Song Y, et al. Learning from noisy labels with distillation. 2017 IEEE International Conference on Computer Vision (ICCV). IEEE 2017. p. 1928-1936.
He K, Zhang X, Ren S, et al. Deep residual learning for image recognition. Proceedings of the IEEE conference on computer vision and pattern recognition. IEEE 2016. p. 770-778.
Deng J, Dong W, Socher R, et al. Imagenet: a large-scale hierarchical image database. 2009 IEEE conference on computer vision and pattern recognition. IEEE 2009. p. 248-255.
- Dependence of weighted kappa coefficients on the number of categories.Epidemiology. 1996; 7: 199-202
- Training programs on endoscopic scoring systems for inflammatory bowel disease lead to a significant increase in interobserver agreement among community gastroenterologists.J Crohns Colitis. 2017; 11: 556-561
- Backwash ileitis is strongly associated with colorectal carcinoma in ulcerative colitis.Gastroenterology. 2001; 120: 841-847
- Complete mucosal healing of distal lesions induced by twice-daily budesonide 2-mg foam promoted clinical remission of mild-to-moderate ulcerative colitis with distal active inflammation: double-blind, randomized study.J Gastroenterol. 2018; 53: 494-506
- Rectal sparing and skip lesions in ulcerative colitis: a comparative study of endoscopic and histologic findings in patients who underwent proctocolectomy.Am J Surg Pathol. 2010; 34: 689-696
- Automated insertion time, cecal intubation, and withdrawal time during live colonoscopy using convolutional neural networks—a video validation study [abstract].Gastrointest Endosc. 2019; 89: AB619
- Automated documentation of multiple colonoscopy quality measures in real-time with convolutional neural networks.Am J Gastroenterol. 2018; 113: S1532
Article info
Publication history
Footnotes
DISCLOSURE: All authors disclosed no financial relationships. Research support for this study was provided by the Science and Technology Planning Project of Fujian Province (2019J01554), Fujian Provincial Natural Science Foundation (2020J05286), Medical Health Science and Technology Project of Xiamen (3502Z20199172, 3502Z20209026), Xiamen Key Programs of National Health (3502Z20204007), and the Fundamental Research Funds for the Central Universities (grant no. 20720210121).