Towards Structuring Real-World Data at Scale: Deep Learning for Extracting Key Oncology Information from Clinical Text with Patient-Level Supervision

Sam Preston, Mu Wei, Rajesh Rao, Robert Tinn, Naoto Usuyama, Michael Lucas, Roshanthi Weerasinghe, Soohee Lee, Brian Piening, Paul Tittel, Naveen Valluri, Tristan Naumann, Carlo Bifulco, Hoifung PoonarXiv 2022 · DOI

Abstract

Extracting structured oncology data from unstructured clinical text is essential for large-scale real-world evidence studies. Traditional manual curation is slow and expensive, while standard NLP often requires granular, sentence-level labels. This paper presents a deep learning framework that utilizes patient-level supervision from existing medical registries to extract key attributes like tumor site, histology, and stage across a patient's entire clinical history. By integrating domain-specific embeddings (OncoBERT) and hierarchical attention mechanisms, the system achieves AUROC scores of 94-99%, demonstrating a scalable path toward high-quality real-world data generation.

Introduction

The vast majority of detailed patient information required for clinical research and drug efficacy studies remains "trapped" in free-text clinical documents, such as pathology reports, radiology assessments, and progress notes. Structuring this data traditionally relies on manual curation by highly trained registrars, a process that is accurate but prohibitively slow and expensive.

Existing machine learning approaches often struggle with two main issues: the need for labor-intensive "sentence-level" labels and a narrow focus on single reports. In reality, a diagnosis is often distributed across multiple documents over several months, creating a complex temporal puzzle.

Figure 1: Timeline of clinical reports relative to the diagnosis date for multiple patients, illustrating the cross-document nature of oncology data.

The authors address these challenges by proposing an automated system that processes a patient's entire history as a chronological sequence, leveraging high-level registry labels for "patient-level supervision."

Methodology

The proposed framework utilizes a "cross-document" neural architecture designed to handle the extensive chronological sequence of a patient's clinical history.

Figure 3: The deep learning architecture featuring domain-specific embeddings, GRU-based contextualization, and a Hierarchical Attention Network (HAN) for feature aggregation.

Key Components:

  • Domain-Specific Embeddings: The model employs PubMedBERT and a custom OncoBERT (pretrained on over 1 million oncology EMRs) to capture specialized medical terminology and clinical shorthand that general models miss.
  • Long-Sequence Processing: To overcome the 512-token limit of standard transformer models, the system uses Gated Recurrent Units (GRUs) to process text chunks across long clinical histories, which often exceed 4,000 tokens.
  • Hierarchical Attention Network (HAN): This mechanism allows the model to "weigh" different sentences and tokens, learning to focus on diagnostic details while ignoring routine clinical noise.
  • Patient-Level Supervision: The model is trained using final registry labels rather than granular annotations, forcing the network to autonomously identify relevant evidence within the text.

Data and Experimental Setup

The study utilized a massive dataset from an integrated delivery network (IDN) covering five western US states. The primary dataset included 135,107 patients from the cancer registry of Providence St. Joseph Health (2000–2020). To ensure generalizability, models were trained on data from one region (Oregon) and validated on held-out data from others (Washington). Additionally, OncoBERT was pretrained on a separate corpus of EMRs from 1.2 million cancer patients.

Results and Discussion

The model achieved state-of-the-art performance across several oncology attributes, with a test AUROC of 94-99% for tumor site, histology, and TNM staging. Notably, the Area Under Precision-Recall Curve (AUPRC) reached 77.1% for Tumor Site (a 310-class problem) and 87.6% for Histology (a 556-class problem).

Key Insights:

  • Information Integration: By concatenating documents, the model performs "information integration"—for instance, linking an initial imaging report of a mass to a subsequent pathology report confirming malignancy.
  • Attention as Rationale: Attention weights provide a built-in explanation for predictions, highlighting specific text spans. This facilitates "assisted curation," where humans verify AI-generated highlights rather than reading entire files.
  • OncoBERT Superiority: Pretraining on actual EMR notes significantly outperformed models trained only on medical journals, highlighting the distinct linguistic structure of clinical documentation.

Conclusion

While the model demonstrates high accuracy and generalizability, challenges remain regarding the digitization of older records and fragmented care across different health networks. Future work will focus on extracting complex biomarkers and treatment responses. Ultimately, this framework aims to transition clinical registries toward "assisted curation," where AI handles bulk extraction and human experts provide final quality assurance.

Summary updated

BibTeX
@misc{preston2022towards,
  author = {Sam Preston and Mu Wei and Rajesh Rao and Robert Tinn and Naoto Usuyama and Michael Lucas and Roshanthi Weerasinghe and Soohee Lee and Brian Piening and Paul Tittel and Naveen Valluri and Tristan Naumann and Carlo Bifulco and Hoifung Poon},
  title = {{Towards Structuring Real-World Data at Scale: Deep Learning for Extracting Key Oncology Information from Clinical Text with Patient-Level Supervision}},
  year = {2022},
  eprint = {2203.10442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.10442},
}
Figure