You are on page 1of 10

ORIGINAL ARTICLE

Real-time automated diagnosis of precancerous lesions and


early esophageal squamous cell carcinoma using a deep
learning model (with videos)
LinJie Guo, MD,1 Xiao Xiao, PhD,2 ChunCheng Wu, MD,1 Xianhui Zeng, MD,1 Yuhang Zhang, MD,1
Jiang Du, NP,1 Shuai Bai, NP,1 Jia Xie, NP,1 Zhiwei Zhang, MS,2 Yuhong Li, BS,2 Xuedan Wang, BS,2
Onpan Cheung, MD,3 Malay Sharma, MD,4 Jingjia Liu, BS,2 Bing Hu, MD1

Chengdu, Shanghai, China; Rialto, California, USA; Meerut, India

Background and Aims: We developed a system for computer-assisted diagnosis (CAD) for real-time automated
diagnosis of precancerous lesions and early esophageal squamous cell carcinomas (ESCCs) to assist the diagnosis
of esophageal cancer.
Methods: A total of 6473 narrow-band imaging (NBI) images, including precancerous lesions, early ESCCs, and
noncancerous lesions, were used to train the CAD system. We validated the CAD system using both endoscopic
images and video datasets. The receiver operating characteristic curve of the CAD system was generated based on
image datasets. An artificial intelligence probability heat map was generated for each input of endoscopic images.
The yellow color indicated high possibility of cancerous lesion, and the blue color indicated noncancerous lesions
on the probability heat map. When the CAD system detected any precancerous lesion or early ESCCs, the lesion
of interest was masked with color.
Results: The image datasets contained 1480 malignant NBI images from 59 consecutive cancerous cases (sensi-
tivity, 98.04%) and 5191 noncancerous NBI images from 2004 cases (specificity, 95.03%). The area under curve
was 0.989. The video datasets of precancerous lesions or early ESCCs included 27 nonmagnifying videos (per-
frame sensitivity 60.8%, per-lesion sensitivity, 100%) and 20 magnifying videos (per-frame sensitivity 96.1%,
per-lesion sensitivity, 100%). Unaltered full-range normal esophagus videos included 33 videos (per-frame
specificity 99.9%, per-case specificity, 90.9%).
Conclusions: A deep learning model demonstrated high sensitivity and specificity for both endoscopic images
and video datasets. The real-time CAD system has a promising potential in the near future to assist endoscopists
in diagnosing precancerous lesions and ESCCs. (Gastrointest Endosc 2019;-:1-10.)

INTRODUCTION for more than 90% of esophageal cancers in China.


The overall 5-year survival rate is <20%.2 Early
Esophageal cancer is one of the most common ma- diagnosis of precancerous lesions and ESCCs is
lignant cancers worldwide.1 Esophageal squamous cell therefore essential for a favorable prognosis for
carcinoma (ESCC) is the main subtype, accounting patients.

Abbreviations: AI, artificial intelligence; CAD, computer-assisted diag- 0016-5107/$36.00


nosis; ESCC, esophageal squamous cell carcinoma; FN, false negative; https://doi.org/10.1016/j.gie.2019.08.018
FP, false positive; IPCL, intrapapillary capillary loops; NBI, narrow-
Received April 15, 2019. Accepted August 8, 2019.
band imaging; ROC, receiver operating characteristic; TN, true nega-
tive; TP, true positive; WCH, West China Hospital. Current affiliations: Department of Gastroenterology, West China Hospital,
Sichuan University, Chengdu (1); Shanghai Wision AI Co Ltd, Shanghai,
DISCLOSURE: Drs Xiao and Liu are employees and shareholders of
China (2); San Bernardino Gastroenterology Associates Inc and ACE
Shanghai Wision AI Co Ltd. Drs Z. Zhang, Li, and Wang are employees
Endoscopy and Surgery Center, Rialto, California, USA (3); Jaswant Rai
of Shanghai Wision AI Co Ltd. All other authors disclosed no financial
Speciality Hospital, Meerut, India (4).
relationships relevant to this publication.
Reprint requests: Bing Hu, MD, Number 37 Guoxue Road, Chengdu City,
Copyright ª 2019 by the American Society for Gastrointestinal Endoscopy
Sichuan Province, China.

www.giejournal.org Volume -, No. - : 2019 GASTROINTESTINAL ENDOSCOPY 1


Real-time automated diagnosis of esophageal cancer using deep learning Guo et al

Both nonmagnifying and magnifying narrow-band imag- varices in 9 cases, ectopic gastric mucosa in 105 cases,
ing (NBI) is important for the diagnosis of precancerous le- esophagitis in 64 cases, and normal esophagus in 180
sions and ESCCs.3 The brownish area is the main feature of cases, were used to train the CAD system. WCH contrib-
precancerous lesions and early ESCCs under nonmagnifying uted 191 cases of precancerous lesions and superficial
NBI, whereas intrapapillary capillary loops (IPCLs) are key ESCCs, 9 cases of esophageal varices, 105 cases of ectopic
features under magnifying NBI.4 Unfortunately, it is not gastric mucosa, 64 cases of esophagitis, and 60 cases of
easy to identify these imaging features in ESCC at an early normal esophagus images. San Bernardino Gastroenter-
stage. When NBI was used by an inexperienced ology Associates and Jaswant Rai Speciality Hospital
endoscopist, the sensitivity for detecting ESCC was only contributed 60 cases of normal esophagus images. All
53%.5 A recent study on missed esophageal cancer found images were obtained and recorded in 2017. Endoscopic
that 6.4% of patients had negative endoscopy results images were captured using Olympus endoscopes (GIF-
within 3 years before diagnosis.6 Because of the shortage H260Z, EVIS LUCERA CV260 (SL)/CV290 (SL), Olympus
of trained endoscopists, especially in rural or undeveloped Medical Systems, Tokyo, Japan).
regions, the ability to detect precancerous lesions and Four datasets were used for validation purposes. For im-
ESCCs is a significant challenge. age validation of dataset A, we collected 1480 malignant
Computer-assisted diagnosis (CAD) using an artificial in- NBI images in 59 consecutive cases of precancerous le-
telligence (AI) system has made remarkable progress in sions or ESCCs from January 2018 to February 2018. All
recent years. Researchers have used the CAD system to cases were confirmed histologically. Among these, 32 cases
improve the diagnosis of various GI lesions, such as colo- (35 lesions) were confirmed by endoscopic submucosal
rectal polyps, gastric ulcers, Helicobacter pylori infections, dissection or surgery. The other 27 cases were diagnosed
and gastric cancer.7-10 The application of CAD in the diag- by biopsy. Suboptimal quality images due to insufficient
nosis of early ESCC has gained much attention recently. air inflation and blurred images were excluded from the
Horie et al11 first used AI to detect esophageal cancer study. Suboptimal image quality was defined if senior en-
with a sensitivity of 98% and a positive predictive value doscopists were unable to see enough imaging features
of 40% in 2018. However, in his study, only static images to determine the diagnosis. For image validation of dataset
were tested, and the difference between nonmagnifying B, we collected 5191 noncancerous NBI images in 2004
and magnifying settings was not demonstrated. Zhao consecutive cases of normal epithelium or benign lesions
et al12 developed a deep learning model based on of the esophagus. Cases with suboptimal image quality
magnifying NBI images to investigate automated were excluded. The dataset included normal squamous
classification of IPCLs. However, that study did not use epithelium (821 cases from January 2018 to February
real-time analysis, and the study findings focused mainly 2018), normal gastroesophageal junction epithelium (799
on the classification of NBI images instead of detection. cases from January 2018 to February 2018), typical reflux
A few other studies also used a CAD system to differentiate esophagitis (109 cases from January 2018 to March 2018),
cancerous from noncancerous esophageal images using heterotrophic gastric mucosa (154 cases from January
micro-endoscopy techniques.13 The authors of those 2018 to June 2018), esophageal varices (69 cases from
studies did not use white light or NBI images. January 2018 to June 2018), and submucosal tumor (52
Our aim was to develop a CAD system to achieve real- cases from January 2018 to June 2018). All diagnoses of
time automated diagnosis of precancerous lesions and submucosal tumor were confirmed by endoscopic ultraso-
early ESCCs, in both nonmagnifying and magnifying set- nography. Three of our center’s experienced endoscopists
tings. We hope that our system will improve the diagnosis validated the diagnoses, and the relevant images were
of early esophageal malignancies. selected. For video validation of dataset C, we selected
27 precancerous lesions and cases of early ESCC that
were recorded from March 2018 to January 2019. All pa-
METHODS tients had endoscopic submucosal dissection, and each
diagnosis was confirmed histologically. Each video was
Training and test datasets clipped from the time the lesion first appeared in the visual
Four institutions were involved in the development of field until the same lesion disappeared in the visual field
the CAD system for diagnosing precancerous lesions and under NBI examination. We clipped nonmagnifying NBI
early ESCCs: Endoscopy Center of West China Hospital videos from all 27 cases, and 20 cases were clipped using
(WCH) in Chengdu, China; Jaswant Rai Speciality Hospital, magnifying NBI. All nonmagnifying and magnifying videos
Meerut, India; San Bernardino Gastroenterology Associ- were then processed using video-editing software to elim-
ates, Inc and ACE Endoscopy and Surgery Center, Rialto, inate frames in which our senior endoscopists were unable
California, USA; and Shanghai Wision AI Co Ltd, Shanghai, to see the detailed imaging features. Finally, for video vali-
China. A total of 2770 NBI images of precancerous lesions dation of dataset D, we selected all 33 cases with normal
and early ESCCs in 191 cases and 3703 NBI images of esophagus from March 2018 to December 2018 that we re-
noncancerous lesions in 358 cases, including esophageal corded previously. Three of those cases used magnifying

2 GASTROINTESTINAL ENDOSCOPY Volume -, No. - : 2019 www.giejournal.org


Guo et al Real-time automated diagnosis of esophageal cancer using deep learning

Figure 1. The architecture and workflow of the deep learning model. An artificial intelligence hot zone image was generated for any input endoscopic
image. The yellow color indicates high possibility of a cancerous lesion, and the blue color indicates a noncancerous lesion. When CAD detects any pre-
cancerous lesion or early ESCC, the lesion of interest is covered with color. CAD, computer-assisted diagnosis; ESCC, esophageal squamous cell carci-
noma; NBI, narrow-band imaging.

NBI. All videos contained unaltered images from the prox- were then modified slightly to decrease the error on the
imal esophagus to the gastroesophageal junction. same image. The same process was then repeated multiple
times for every image in the training set. The mathematical
Model development function used in this study was based on SegNet architec-
Experienced endoscopists who had at least 5 years of ture (Fig. 1).
experience in diagnosing and treating early esophageal SegNet is a deep encoder-decoder architecture for
cancer from WCH Endoscopy Center annotated each ma- multi-class pixelwise segmentation. The architecture con-
lignant endoscopic image. The boundaries of precancerous sists of a sequence of nonlinear processing layers (en-
lesions and ESCCs in the image were drawn using Adobe coders) and a corresponding set of decoders followed by
Photoshop software. Those boundaries were used to a pixelwise classifier. Typically, each encoder consists of
represent the actual lesion area within the image. one or more convolutional layers with batch normalization
During the CAD training process, the parameters of the and a ReLU nonlinearity, followed by nonoverlapping max-
mathematical function were initially set to random values. pooling and subsampling. The sparse encoding due to the
For each annotated image, the location of a lesion pooling process is upsampled in the decoder using the
computed by the deep learning function was compared maxpooling indices in the encoding sequence (http://mi.
with the location annotated by the endoscopist during eng.cam.ac.uk/projects/segnet/). For our models, we
endoscopy. The parameters of this mathematical function revolved the last 3 convolution layers in the encoder and

www.giejournal.org Volume -, No. - : 2019 GASTROINTESTINAL ENDOSCOPY 3


Real-time automated diagnosis of esophageal cancer using deep learning Guo et al

the first 3 deconvolution layers in the decoder for better All continuous variables are expressed as the mean
generalization. within a range. Statistical analyses were conducted using
SPSS, version 16.0 (SPSS Inc, Chicago, Ill, USA).
Definition of the analysis
For image evaluation, images of precancerous lesions Ethics
and ESCCs were included in dataset A to test the sensitivity The study was approved by the Ethics Committee of
of the model, and noncancerous images were used in WCH, Sichuan University (no. ChiECRCT-20180131).
dataset B to test the specificity. For video evaluation of pre-
cancerous lesions and early ESCCs, 3 experienced endo- RESULTS
scopists from the WCH Endoscopy Center carefully
examined each algorithmically labeled frame in each video. Patient characteristics: imaging features of
For dataset C, the sensitivity of the model for each precan- esophageal lesions in the validation datasets
cerous lesion and early ESCC, as well as each image frame, We used 4 independent datasets for validation of our
was calculated. For specificity evaluation of normal esoph- CAD model. Datasets A and B were used for image analysis,
agus in dataset D, each labeled frame was counted as false and datasets C and D were used for video analysis. A total
positive (FP) to provide a per frame specificity. The early of 2123 cases, including 6671 images and 80 video clips,
stage of esophageal cancer is defined as mucosal (T1a) were tested. The detailed features of the validation datasets
and submucosal (T1b) cancer regardless of lymph node are listed in Table 1.
metastasis. In the sensitivity test for datasets A and C, both images
and video clips of precancerous lesions and ESCCs were
Statistical analysis used. Most lesions were located in the middle part of the
If the detection of labeled algorithm occurred in the esophagus. The morphology of the lesions was summa-
same instance as precancerous lesions and early ESCCs, rized using the Paris classification.14 Flat and superficial
the result was considered true positive (TP), and only depressed types were the most common types; 46.8% of
one TP was counted for each image, regardless of the num- the lesions were classified as mucosal cancers (T1a) in
ber of times the algorithm detection labels fell on the same the image setting and 88.9% were classified as mucosal
lesion. The absence of algorithmically detected labeling on cancers (T1a) in the video setting.
precancerous lesions and early ESCCs was counted as false In the specificity test, benign diseases were included in
negative (FN). Per-image sensitivity was therefore defined dataset B, whereas only cases with normal esophagus were
as TP divided by the total number of images with precan- used in dataset D. All videos in dataset D were unaltered,
cerous lesions and early ESCCs (sensitivity Z TP/(TP þ including 30 nonmagnifying videos and 3 magnifying
FN)). videos. The mean duration of nonmagnifying and magni-
If there was no algorithmically detected labeling on an fying videos in dataset D was 67.2 seconds and 205.8 sec-
image without precancerous lesions and early ESCCs, the onds, respectively. The total number of frames was
image was then counted as true negative (TN). An FP 50,372 in nonmagnifying videos and 15,433 in magnifying
was defined as any detection label on an area without pre- videos.
cancerous lesions and early ESCCs. Therefore, per-image When the CAD model detected precancerous lesions or
specificity was defined as TN divided by the total number ESCCs, the area of interest was masked in blue color (Fig. 2).
of images without precancerous lesions and early ESCCs
(specificity Z TN/(TN þ FP)). Imaging diagnosis of the CAD system
For video validation of precancerous lesions and early The per-image sensitivity of our CAD system for all ma-
ESCCs, per frame sensitivity was defined as the number lignant images in 59 cases (dataset A) was 98.04%, and the
of TP frames divided by the total number of frames per-image specificity for 5191 noncancerous NBI images
with precancerous lesions and ESCCs (sensitivity Z TP/ from 2004 cases (dataset B) was 95.03% (Table 2).
(TP þ FN)). We also measured one additional metric, Among malignant images, 32 cases were confirmed as
per lesion sensitivity, which we defined as the number precancerous lesions or early ESCCs, and the per-image
of lesions correctly detected by the algorithm in at least sensitivity for this group was 97.5%. The per-image
1 frame of each lesion divided by the total number of sensitivity for another 27 cases that were diagnosed by
lesions. biopsy and contained precancerous lesions, early ESCCs,
For video validation of a normal esophagus, per frame or advanced ESCCs was 98.5%. The per-image specificity
specificity was defined as the number of TN frames divided of our CAD system for normal epithelium and various
by the total number of frames with normal esophagus benign diseases varied from 86.1% to 96.8%. Esophagitis
(specificity Z TN/(TN þ FP)). Per-case specificity was was most frequently misinterpreted by CAD as ESCC
defined as the number of cases correctly detected by the (Table 2). The receiver operating characteristic (ROC)
algorithm in all frames of each case divided by the total curve of the CAD system for image analysis was
number of cases. generated using datasets A and B (Fig. 3). Different

4 GASTROINTESTINAL ENDOSCOPY Volume -, No. - : 2019 www.giejournal.org


Guo et al Real-time automated diagnosis of esophageal cancer using deep learning

TABLE 1. Patient demographics and clinical characteristics for the validation datasets

Dataset A Dataset B Dataset C Dataset D

Duration of datasets January-February 2018 January-June 2018 March 2018-January 2019 March-December 2018
Data content 59 consecutive cases of Randomly selected 27 randomly selected 33 randomly selected
precancerous lesions/ESCCs 2004 cases of normal precancerous lesions/early cases of normal esophagus
among which 32 cases (total epithelium or benign ESCCs with videos with videos, including 30
35 lesions) were confirmed lesions of the confirmed by post-ESD nonmagnifying videos and
by ESD or surgery; the other esophagus* pathologic examination, 3 magnifying videos
27 cases were diagnosed including 27 nonmagnifying
by biopsy videos and 20 magnifying
videos
Data processing Exclude unclear pictures Exclude unclear Exclude unclear frames Unaltered, full-range
pictures
Patient demographics
Female gender (%) 16.9 54.3 16.9 46.9
Age (years), mean (range) 63.6 (43-78) 46.5 (16-83) 62.5 (46-78) 45.2 (24-71)
Size (mm), mean (range) 34.1 (5-130) NA 23.3 (5-35) NA
Location (upper/middle/low) 10/41/11 NA 3/20/4 NA
Macroscopic type-Paris 5/8/22/20/7 NA 0/5/10/12/0 NA
classification (0-I/IIa/IIb/IIc/II)I
Tumor depth (LGD/HGD/ 3/12/6/8/6/27 NA 3/12/8/1/3/0 NA
LPM/MM/SM/uncertain)
Duration of video (seconds), NA NA 19.7 (5.16-44.56) 79.8 (10.44-348.6)
mean (range)
ESD, Endoscopic submucosal dissection; NA, not applicable; LGD, low-grade dysplasia; HGD, high-grade dysplasia; LPM, laminae propria mucosae; MM, muscularis mucosae;
SM, submucosal layer.
*Normal squamous epithelium (821 cases), normal gastroesophageal junction epithelium (799 cases), typical reflux esophagitis (109 cases), heterotopic gastric mucosa (154
cases), esophageal varices (69 cases), and submucosal tumor (52 cases) were selected from the database of West China Hospital.

probability thresholds for detection were used. The area system for lesions <10 mm is demonstrated in Video 4
under the ROC curve was 0.989. (available online at www.giejournal.org).
There were 18 cases with irregular cornification (313 im-
Video diagnosis of the CAD system ages) in image dataset A and 4 cases in video dataset C (4
Our video model was capable of processing at least 25 nonmagnifying videos and 2 magnifying videos). The per-
frames per second with a latency period of less than 100 image or per-frame sensitivity of the CAD system for these
milliseconds in real-time video analysis. Video demon- lesions was 93.6% in the image dataset, 46.9% in the non-
stration of CAD for precancerous lesions and early magnifying video dataset, and 85.8% in the magnifying
ESCCs was shown with nonmagnifying (Video 1, video dataset. Video diagnosis of the CAD system for le-
available online at www.giejournal.org) and magnifying sions with irregular cornification is demonstrated in
(Videos 2 and 3, available online at www.giejournal. Video 5 (available online at www.giejournal.org).
org) video clips.
The total per-frame sensitivity and specificity of CAD for DISCUSSION
datasets C and D were 91.5% and 99.9%, respectively
(Table 2). In dataset C, the per-frame sensitivity of ESCC is a major global health challenge. Early detection
nonmagnifying video clips was lower than the magnifying is essential. However, quality control of endoscopic exam-
video clips (60.8% versus 96.1%, respectively). Per lesion ination and the overall shortage of trained endoscopists are
sensitivity was 100% in both nonmagnifying and magnifying major problems worldwide.15 To enable a CAD system to
video clips. In dataset D, per-case specificity was 90.9%. serve as “a second observer” in an endoscopic
For lesions <10 mm, there were 4 cases (49 images) in examination to support nonexperts in the detection of
image dataset A and 2 cases in video dataset C (2 nonmag- ESCC and reduce missed diagnoses will require a high-
nifying videos and 1 magnifying video). The per-image or performing deep learning model.
per-frame sensitivity of the CAD system for these lesions Early work on deep learning for medical imaging mainly
was 91.8% in the image dataset (Fig. 4), 46.6% in the used past collected images and videos to develop an algo-
nonmagnifying video dataset, and 98.5% in the rithm retrospectively and then used a small portion of the
magnifying video dataset. Video diagnosis of the CAD remaining collected images as a validation set. Few studies

www.giejournal.org Volume -, No. - : 2019 GASTROINTESTINAL ENDOSCOPY 5


Real-time automated diagnosis of esophageal cancer using deep learning Guo et al

Figure 2. Examples of precancerous lesions and ESCC detection in dataset A. A-D, Nonmagnifying malignant images with different shape and size. E-H,
Magnifying malignant images with different histologic depths (E, low-grade dysplasia; F, high-grade dysplasia; G, laminae propria mucosae; H, muscularis
mucosae). ESCC, esophageal squamous cell carcinoma.

6 GASTROINTESTINAL ENDOSCOPY Volume -, No. - : 2019 www.giejournal.org


Guo et al Real-time automated diagnosis of esophageal cancer using deep learning

Figure 2. Conituned.

www.giejournal.org Volume -, No. - : 2019 GASTROINTESTINAL ENDOSCOPY 7


Real-time automated diagnosis of esophageal cancer using deep learning Guo et al

TABLE 2. The performance of CAD for validation datasets A to D

Artificial intelligence diagnosis for each narrow-band imaging


image/frame
Pathologic diagnosis Cancerous Noncancerous Sensitivity (%) Specificity (%)

Dataset A All cancerous lesions 1451 29 98.04 –


Precancerous lesions/early ESCCs (32 cases) 670 17 97.5 –
Early and advanced esophageal cancer (27 cases) 781 12 98.5 –
Dataset B All noncancerous lesions 258 4933 – 95.03
Normal esophageal epithelium 133 2999 – 95.8
Normal gastroesophageal junction epithelium 64 1228 – 95.05
Typical reflux esophagitis 36 223 – 86.1
Heterotopic gastric mucosa 9 276 – 96.8
Submucosal tumor 12 115 – 90.6
Esophageal varices 4 92 – 95.8
Dataset C Nonmagnifying videos clips (27 cases) 8069 5208 60.8 –
Magnifying videos clips (20 cases) 86258 3525 96.1 –
Dataset D Nonmagnifying videos (30 cases); magnifying videos (3 cases) 50 65755 99.9
ESCC, Esophageal squamous cell carcinoma.

study, the deep learning model used a training dataset


collected in 2017, and validation datasets were collected
between January 2018 and January 2019. Previous work
on deep learning for early detection of ESCC was only
validated on still images with limited scale,11 and the
performance of nonmagnifying and magnifying imaging
was not evaluated sufficiently.11,12 In clinical settings, endo-
scopists detect early ESCCs under both nonmagnifying and
magnifying NBI in real-time video streams. In our study,
however, nonmagnifying and magnifying datasets were
validated on a relatively large scale with a combined total
of 175,536 images and video frames, which is more than
27 times the volume of the training dataset with 6473 im-
ages. Our study also indicated that the locations of lesions
computed by the deep learning function were close to the
locations annotated by expert endoscopists during endos-
copy. It was evident that, with the right training data and
training skills, the CAD system and its function seemed
to provide promising potential in computing the precise
locations of esophageal precancerous lesions and ESCCs.
Compared with the detection of polyps during a colo-
Figure 3. Receiver operating characteristic curve (ROC) for the image noscopy, which is the most successful area of AI in endos-
analysis based on datasets A and B. Different threshold values (0.999, copy imaging, the detection of ESCC faces 2 major
0.99, 0.97, 0.95, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, and 0.1) were used technical difficulties.7,16 First, individual heterogeneity is
to generate the ROC curve. The area under the ROC curve is 0.989. higher among early ESCCs than colorectal polyps. Early
The threshold value 0.9 had the maximum accuracy (ie, any pixel with
ESCCs can have a much more diversified morphological
probability larger than 0.9 is classified as being a precancerous lesion or
ESCC). appearance, such as elevation, flat, depression, cornifica-
tion, or various vascular patterns on the mucosal surface.17
have used a forthcoming collected dataset for validation.7 Second, both nonmagnifying and magnifying images are
We believe that using a validation dataset that was needed for accurate diagnosis of precancerous lesions
collected later in time (on consecutive patients) than and early ESCCs. With magnifying NBI images, the visual
when the development dataset was collected can best field is dramatically narrowed down to capture only small
simulate data in a prospective clinical trial, and this is a portions of a lesion. This markedly jeopardizes definable
necessary step toward a prospective clinical trial. In this imaging features, such as lesion boundary and

8 GASTROINTESTINAL ENDOSCOPY Volume -, No. - : 2019 www.giejournal.org


Guo et al Real-time automated diagnosis of esophageal cancer using deep learning

Figure 4. Examples of lesions <10 mm. A, Early esophageal cancer, PT1a-muscularis mucosae; B, high-grade dysplasia; C, high-grade dysplasia; D, low-
grade dysplasia.

www.giejournal.org Volume -, No. - : 2019 GASTROINTESTINAL ENDOSCOPY 9


Real-time automated diagnosis of esophageal cancer using deep learning Guo et al

morphological changes. It is therefore not always possible ACKNOWLEDGMENTS


for an AI system to detect precancerous or early cancerous
lesions with 100% accuracy in this circumstance. In our This research was funded by Sichuan Science and Tech-
study, local features of precancerous lesions and early nology Department Key R&D projects (grant no.
ESCCs under NBI were mainly considered in the 2019YFS0257) and by Chengdu Technological Innovation
development of our deep learning model, such as R&D Projects (grant no. 2018-YFYF-00033-GX).
background color and the shape of IPCL. The deep learning
model was built using a neural network with a small
receptive field to scrutinize the subtle local features, as well REFERENCES
as with high nonlinearity to identify individual
heterogeneity in precancerous lesions and early ESCCs.4,7,17 1. Rustgi AK, El-Serag HB. Esophageal carcinoma. N Engl J Med 2014;371:
The technological characteristics of our deep learning 2499-509.
2. Chen XX, Zhong Q, Liu Y, et al. Genomic comparison of esophageal
model explains the per-frame sensitivity for magnifying squamous cell carcinoma and its precursor lesions by multi-region
videos (96.1%) and nonmagnifying videos (60.8%). As in whole-exome sequencing. Nat Commun 2017;8:524.
nonmagnifying videos, motion artifacts do occur and could 3. Nagami Y, Tominaga K, Machida H, et al. Usefulness of non-magnifying
affect and blur the imaging features. The system might narrow-band imaging in screening of early esophageal squamous cell
therefore receive insufficient details to trigger a detection carcinoma: a prospective comparative study using propensity score
matching. Am J Gastroenterol 2014;109:845-54.
signal. The false negatives in our video analysis concen- 4. Minami H, Isomoto H, Inoue H, et al. Significance of background color-
trated on this limitation (blurry image frames, dim lighting, ation in endoscopic detection of early esophageal squamous cell car-
lesions too far away, and those lesions with irregular corni- cinoma. Digestion 2014;89:6-11.
fication, and lesions with limited visibility due to blood). 5. Ishihara R, Takeuchi Y, Chatani R, et al. Prospective evaluation of
The false positives were concentrated more in reflux narrow-band imaging endoscopy for screening of esophageal squa-
mous mucosal high-grade neoplasia in experienced and less experi-
esophagitis. Additional training images of relevant positive enced endoscopists. Dis Esophagus 2010;23:480-6.
and negative samples could be used to improve the cur- 6. Rodriguez de Santiago E, Hernanz N, Marcos-Prieto HM, et al. Rate of
rent sensitivity and specificity. missed oesophageal cancer at routine endoscopy and survival out-
Our study has several limitations. First, the deep comes: a multicentric cohort study. United European Gastroenterol J
learning model is only engineered to detect precancerous 2019;7:189-98.
7. Wang P, Xiao X, Glissen Brown JR, et al. Development and validation of
lesions and early ESCCs under NBI. Lesions under white- a deep-learning algorithm for the detection of polyps during colonos-
light imaging and advanced esophageal adenocarcinoma copy. Nat Biomed Eng 2018;2:741-8.
were not addressed in this study. Second, because the 8. Hirasawa T, Aoyama K, Tanimoto T, et al. Application of artificial intel-
CAD model was trained to detect features of background ligence using a convolutional neural network for detecting gastric can-
color and IPCL, if the lesion in the validation dataset is cer in endoscopic images. Gastric Cancer 2018;21:653-60.
9. Yamada S, Doyama H, Yao K, et al. An efficient diagnostic strategy for
totally or largely masked by irregular cornification, so small, depressed early gastric cancer with magnifying narrow-band im-
that features of background color and IPCL are totally un- aging: a post-hoc analysis of a prospective randomized controlled trial.
seen, then the CAD model might not be able to detect Gastrointest Endosc 2014;79:55-63.
the lesion appropriately. Third, we excluded suboptimal 10. Nakashima H, Kawahira H, Kawachi H, et al. Artificial intelligence diag-
quality images in the validation dataset, which may cause nosis of Helicobacter pylori infection using blue laser imaging-bright
and linked color imaging: a single-center prospective study. Ann Gas-
preselection bias. Also, the validation datasets were from troenterol 2018;31:462-8.
a single center, so more validations should be done with 11. Horie Y, Yoshio T, Aoyama K, et al. Diagnostic outcomes of esophageal
open databases or datasets from other hospitals. Fourth, cancer by artificial intelligence using convolutional neural networks.
high sensitivity and specificity of the deep learning model Gastrointest Endosc 2019;89:25-32.
and the real-time capability of the CAD systems do not 12. Zhao YY, Xue DX, Wang YL, et al. Computer-assisted diagnosis of early
esophageal squamous cell carcinoma using narrow-band imaging
directly lead to advances in clinical care, so randomized magnifying endoscopy. Endoscopy 2019;51:333-41.
prospective controlled trials should be designed to validate 13. Swager AF, van der Sommen F, Klomp SR, et al. Computer-aided detec-
the applicability of this CAD system. tion of early Barrett’s neoplasia using volumetric laser endomicro-
In conclusion, AI offers a possible solution to enhance scopy. Gastrointest Endosc 2017;86:839-46.
quality control and increase the detection rate of precan- 14. Endoscopic Classification Review Group. Update on the paris classifica-
tion of superficial neoplastic lesions in the digestive tract. Endoscopy
cerous lesions and early ESCCs, especially for junior endo- 2005;37:570-8.
scopists. We demonstrated in this study that our deep 15. Cotton PB. Quality endoscopists and quality endoscopy units. J Interv
learning model can achieve high sensitivity and specificity Gastroenterol 2011;1:83-7.
in the diagnosis of precancerous lesions and early esopha- 16. Byrne MF, Chapados N, Soudan F, et al. Real-time differentiation of
geal cancer both in image and video settings. Future effort adenomatous and hyperplastic diminutive colorectal polyps during
analysis of unaltered videos of standard colonoscopy using a deep
is warranted to build a more accurate and comprehensive learning model. Gut 2019;68:94-100.
CAD system. Randomized prospective clinical trials should 17. Codipilly DC, Qin Y, Dawsey SM, et al. Screening for esophageal squa-
be conducted to validate the clinical impact of the CAD mous cell carcinoma: recent advances. Gastrointest Endosc 2018;88:
system. 413-26.

10 GASTROINTESTINAL ENDOSCOPY Volume -, No. - : 2019 www.giejournal.org

You might also like