Abstract:Objective To develop an automatic surveillance system to identify upper gastrointestinal high-risk patients and assign surveillance intervals. Methods The endoscopic and pathological reports of 23,035 patients undergoing endoscopy from Renmin Hospital of Wuhan University were collected retrospectively between January to October 2021, of which 17,934 patients from January to August were used as the training set, and 5,101 patients from September to October as the test set. Firstly, keywords in the endoscopic and pathological reports were extracted based on the rules, according to which the high-risk patients were automatically identified and classified into 7 risk levels. Then the standardized surveillance intervals were assigned based on the guideline. Of the patients that could be assigned with surveillance intervals within the test set, 189 were hospitalized and the surveillance intervals given by physicians could be obtained from the electronic health records. We compared the system’s accuracy of assigning surveillance intervals with that of physicians from different departments, using the gold standard of guideline-based surveillance intervals assigned by expert physicians based on endoscopic and pathological reports. Then 67 cases were randomly selected by simple random sampling to evaluated the adjunctive effect of the system in assigning surveillance intervals among 3 endoscopists. Results The overall accuracy of the automatic surveillance system in identifying upper gastrointestinal high-risk patients was 99.94% (5098/5101), and that of assigning surveillance intervals to patients correctly included was 100.00% (534/534). The automatic surveillance system achieved significantly better performance compared with all physicians from different departments [98.94% (187/189) vs 35.45% (67/189), X2=118.01, P<0.001] as well as physicians from gastroenterology [100.00% (117/117) vs 24.79% (29/117),X2=86.01,P<0.001]. With the assistance of the automatic surveillance system, the endoscopists’ accuracy of assigning surveillance intervals to 67 patients was significantly improved [55.22% (111/201) vs 22.39% (45/201), X2=58.68, P <0.001]. Conclusion The automatic surveillance system can accurately identify upper gastrointestinal high-risk patients and assign surveillance intervals according to the risk level, which can help reduce the workload of doctors and improve the follow-up rate of patients.