Uncertainty estimation for margin detection in cancer surgery using mass spectrometry

Int J Comput Assist Radiol Surg. 2022 Dec;17(12):2305-2313. doi: 10.1007/s11548-022-02764-3. Epub 2022 Sep 29.

Abstract

Purpose: Rapid evaporative ionization mass spectrometry (REIMS) is an emerging technology for clinical margin detection. Deployment of REIMS depends on construction of reliable deep learning models that can categorize tissue according to its metabolomic signature. Challenges associated with developing these models include the presence of noise during data acquisition and the variance in tissue signatures between patients. In this study, we propose integration of uncertainty estimation in deep models to factor predictive confidence into margin detection in cancer surgery.

Methods: iKnife is used to collect 693 spectra of cancer and healthy samples acquired from 91 patients during basal cell carcinoma resection. A Bayesian neural network and two baseline models are trained on these data to perform classification as well as uncertainty estimation. The samples with high estimated uncertainty are then removed, and new models are trained using the clean data. The performance of proposed and baseline models, with different ratios of filtered data, is then compared.

Results: The data filtering does not improve the performance of the baseline models as they cannot provide reliable estimations of uncertainty. In comparison, the proposed model demonstrates a statistically significant improvement in average balanced accuracy (75.2%), sensitivity (74.1%) and AUC (82.1%) after removing uncertain training samples. We also demonstrate that if highly uncertain samples are predicted and removed from the test data, sensitivity further improves to 88.2%.

Conclusions: This is the first study that applies uncertainty estimation to inform model training and deployment for tissue recognition in cancer surgery. Uncertainty estimation is leveraged in two ways: by factoring a measure of input noise in training the models and by including predictive confidence in reporting the outputs. We empirically show that considering uncertainty for model development can help improve the overall accuracy of a margin detection system using REIMS.

Keywords: Basal cell carcinoma; Cancer surgery; Rapid evaporative ionization mass spectrometry; Uncertainty estimation; iKnife.

MeSH terms

  • Bayes Theorem
  • Humans
  • Margins of Excision*
  • Mass Spectrometry / methods
  • Neoplasms* / diagnosis
  • Neoplasms* / surgery
  • Uncertainty