Large-scale deep learning for metastasis detection in pathology reports
- 3 July 2025
- journal article
- Published by Oxford University Press (OUP) in JAMIA Open
- Vol. 8 (4) , ooaf070
Abstract
Objectives: No existing algorithm can reliably identify metastasis from pathology reports across multiple cancer types and the entire US population. In this study, we develop a deep learning model that automatically detects patients with metastatic cancer by using pathology reports from many laboratories and of multiple cancer types. Materials and Methods: We use 60 471 unstructured pathology reports from 4 Surveillance, Epidemiology, and End Results (SEER) registries. The reports were coded into 1 of 3 labels: metastasis negative, metastases positive, or metastasis undetermined. We utilize a task-specific deep neural network trained from scratch and compare its performance with a widely used large language model (LLM). Results: Our deep learning architecture trained on task-specific data outperforms a general-purpose LLM, with a recall of 0.894 compared to 0.824. We quantified model uncertainty and used it to defer reports for human review. We found that retaining 72.9% of reports increased recall from 0.894 to 0.969. Discussion: A smaller deep learning architecture trained on task-specific data outperforms a general LLM. Equally critical to model performance is the incorporation of uncertainty quantification, achieved here through an abstention mechanism. Conclusions: This study’s finding demonstrate the feasibility of developing algorithms to automatically identify metastatic cancer cases from unstructured pathology reports.Keywords
All Related Versions
Funding Information
- US Department of Energy
- NCI
- National Institutes of Health
- Oak Ridge National Laboratory (DE-AC05-00OR22725)
This publication has 35 references indexed in Scilit:
- A large language model for electronic health recordsnpj Digital Medicine, 2022
- Uncertainty-informed deep learning models enable high-confidence predictions for digital histopathologyNature Communications, 2022
- Second opinion needed: communicating uncertainty in medical machine learningnpj Digital Medicine, 2021
- Natural language processing systems for pathology parsing in limited data environments with uncertainty estimationJAMIA Open, 2020
- Between Always and Never: Evaluating Uncertainty in Radiology Reports Using Natural Language ProcessingJournal of Digital Imaging, 2020
- Classifying cancer pathology reports with hierarchical self-attention networksArtificial Intelligence in Medicine, 2019
- BioBERT: a pre-trained biomedical language representation model for biomedical text miningBioinformatics, 2019
- A review of medical terminology standards and structured reportingJournal of Veterinary Diagnostic Investigation, 2017
- The landscape of metastatic progression patterns across major human cancersOncotarget, 2014
- Hallmarks of Cancer: The Next GenerationCell, 2011