OncoPT: long-context transformer models for in hospital tumor phenotype extraction from pathology reports
Despite recent advances in medical informatics, extracting tumor information from pathology reports remains a challenge in modern cancer registry and surveillance workflows. These documents often have an unstructured format, complex medical content, and a considerably lengthy context, creating significant challenges for automated phenotypic information extraction. Although some recent language models such as BERT, GatorTron, and GPT-4 have demonstrated efficacy in medical applications, they are either constrained by sequence length limitations or cloud-based computing that violates the handling of protected health information. We introduce two oncology pathology-optimized transformer models OncoPT, based on Longformer and BigBird architectures and trained on real-world pathology reports. OncoPT efficiently processes reports up to 4,096 tokens, making it suitable for hospitals' onsite deployment with limited resources. We apply OncoPT to a common malignancy (exemplified by breast cancer) and a rare malignancy (exemplified by gastric cancer), across five key tumor phenotypes: Subsite, Histology, Grade, Stage, and Laterality. The results demonstrate that OncoPT achieves state-of-the-art weighted F-1 on a private pathology dataset and surpasses commercial chatbots (ChatGPT 4o and o1) on the public CORAL dataset (up to 30% improvement). These findings highlight the robustness of OncoPT models with the added benefit of preserving the privacy of patient health information.
Authors
- Dana E. Rollison (ORCID: https://orcid.org/0000-0002-3171-8045)
- Issam El Naqa (ORCID: https://orcid.org/0000-0001-6023-1132)
- Thanh Thieu (ORCID: https://orcid.org/0000-0002-4926-9292)
- Yayi Zhao (ORCID: https://orcid.org/0000-0003-0806-823X)
- Thanh Duong (ORCID: https://orcid.org/0000-0002-3116-6041)
- Muntasir Zitu
- Vonetta Williams
- Dung Le
- Sandra Stewart
Institutions
- University of South Florida (US)
- Moffitt Cancer Center (US)
Publication Details
- Journal
- npj Digital Medicine
- Published
- 2026-05-02
- DOI
- https://doi.org/10.1038/s41746-026-02630-5
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Institutes of Health