RESUMEN
Importance: Cancers of the upper gastrointestinal tract remain a major contributor to the global cancer burden. The accurate mapping of tumor margins is of particular importance for curative cancer resection and improvement in overall survival. Current mapping techniques preclude a full resection margin assessment in real time. Objective: To evaluate whether diffuse reflectance spectroscopy (DRS) on gastric and esophageal cancer specimens can differentiate tissue types and provide real-time feedback to the operator. Design, Setting, and Participants: This was a prospective ex vivo validation study. Patients undergoing esophageal or gastric cancer resection were prospectively recruited into the study between July 2020 and July 2021 at Hammersmith Hospital in London, United Kingdom. Tissue specimens were included for patients undergoing elective surgery for either esophageal carcinoma (adenocarcinoma or squamous cell carcinoma) or gastric adenocarcinoma. Exposures: A handheld DRS probe and tracking system was used on freshly resected ex vivo tissue to obtain spectral data. Binary classification, following histopathological validation, was performed using 4 supervised machine learning classifiers. Main Outcomes and Measures: Data were divided into training and testing sets using a stratified 5-fold cross-validation method. Machine learning classifiers were evaluated in terms of sensitivity, specificity, overall accuracy, and the area under the curve. Results: Of 34 included patients, 22 (65%) were male, and the median (range) age was 68 (35-89) years. A total of 14â¯097 mean spectra for normal and cancerous tissue were collected. For normal vs cancer tissue, the machine learning classifier achieved a mean (SD) overall diagnostic accuracy of 93.86% (0.66) for stomach tissue and 96.22% (0.50) for esophageal tissue and achieved a mean (SD) sensitivity and specificity of 91.31% (1.5) and 95.13% (0.8), respectively, for stomach tissue and of 94.60% (0.9) and 97.28% (0.6) for esophagus tissue. Real-time tissue tracking and classification was achieved and presented live on screen. Conclusions and Relevance: This study provides ex vivo validation of the DRS technology for real-time differentiation of gastric and esophageal cancer from healthy tissue using machine learning with high accuracy. As such, it is a step toward the development of a real-time in vivo tumor mapping tool for esophageal and gastric cancers that can aid decision-making of resection margins intraoperatively.