Pancreatic cancer risk predicted from disease trajectories using deep learning

Davide Placido, Bo Yuan, Jessica Xin Hjaltelin, Chunlei Zheng, Amalie Dahl Haue, Piotr Jaroslaw Chmura, Chen Yuan, Jihye Kim, Renato Umeton, Gregory C. Antell, Alexander Chowdhury, Alexandra Franz, Lauren K. Brais, Elizabeth Andrews, Debora S. Marks, Aviv Regev, Siamack Ayandeh, Mary T. Brophy, Nhan Do, Peter Kraft, Brian M. Wolpin, Nathanael R. Fillmore, Michael H. Rosenthal, Søren Brunak, Chris SanderbioRxiv 2021

Abstract

Pancreatic cancer is an aggressive disease that typically presents late with poor patient outcomes. There is a pronounced medical need for early detection, which can be addressed by identifying high-risk populations. Here we apply artificial intelligence (AI) methods to a dataset of 6 million patient records in the Danish National Patient Registry (DNPR) and a dataset of three million records in the United States Department of Veterans Affairs (US-VA) healthcare system. In contrast to existing methods that do not use temporal information, we explicitly train machine learning models on the time sequence of diseases in patient clinical histories and test the ability to predict cancer occurrence in time intervals of 3 to 60 months after risk assessment. For cancer occurrence within 36 months, the performance of the best model (AUROC=0.88, DNPR) exceeds that of a model without longitudinal information (AUROC=0.85, DNPR). These results provide support for the design of prediction-surveillance programs based on risk assessment in a large population followed by affordable surveillance of a relatively small number of patients at highest risk.

Introduction

Pancreatic cancer is notoriously aggressive and often "silent" in its early stages. By the time symptoms appear, roughly 80% of patients are already at an advanced or metastatic stage, where the 5-year survival rate is a dismal 2-9%. Conversely, if caught at stage IA, survival jumps to over 80%. Population-wide screening is currently unviable due to the disease's relative rarity and the high false-positive rates of existing tests. This research aims to identify a high-risk sub-population from routine Electronic Health Records (EHR) who would benefit from specialized screening.

Methods

The authors treat a patient's medical history as a trajectory—a time-ordered sequence of ICD (International Classification of Diseases) codes. The system utilizes a multi-stage pipeline:

  1. Embedding: Maps categorical disease codes, dates, and age into a continuous latent space.
  2. Encoding: Compares various architectures, including "bag-of-words" (static), Multi-Layer Perceptrons (MLP), and sequence-aware models like Gated Recurrent Units (GRU) and Transformers.
  3. Prediction: Outputs risk scores for multiple time intervals (3, 6, 12, 36, and 60 months).
The deep learning pipeline for pancreatic cancer risk prediction, showing embedding of clinical history and encoding via various architectures.

To ensure interpretability, the researchers used Integrated Gradients (IG) to identify which specific past diagnoses contributed most to a high-risk score.

Key Results

  • Predictive Power: The Transformer model achieved an AUROC of 0.88 for predicting cancer within 36 months in the Danish dataset.
  • High-Risk Enrichment: The top 10% of predicted high-risk patients had an Odds Ratio of 159.0, indicating they were significantly more likely to develop the disease than the low-risk group.
  • Temporal Importance: Sequence-aware models significantly outperformed static models, proving that the order and timing of diseases are critical features.
  • Robustness: Even when excluding data from the 3 months prior to diagnosis (to avoid "leakage" from immediate symptoms), the model remained highly predictive (AUROC 0.84).

Key Insights and Clinical Application

A major takeaway is the "portability" challenge; models are sensitive to local "clinical dialects" and coding practices, as seen when applying Danish-trained models to US datasets. However, the proposed "Predict-Select-Screen" workflow offers a path forward: use AI to scan millions of inexpensive EHR records, select the top 0.1% highest-risk patients, and direct them toward specialized imaging or biomarker tests.

Proposed clinical workflow using the error-minimized neural network to identify high-risk patients for targeted screening.

Conclusion and Future Work

While the model demonstrates high accuracy, future work must address data silos—perhaps through Federated Learning—and integrate additional features like lab results and prescriptions. Prospective clinical trials are the next essential step to determine if AI-triggered screening improves real-world patient outcomes and shifts the focus from late-stage treatment to life-saving early detection.

Summary updated

BibTeX
@misc{placido2021pancreatic,
  author = {Davide Placido and Bo Yuan and Jessica Xin Hjaltelin and Chunlei Zheng and Amalie Dahl Haue and Piotr Jaroslaw Chmura and Chen Yuan and Jihye Kim and Renato Umeton and Gregory C. Antell and Alexander Chowdhury and Alexandra Franz and Lauren K. Brais and Elizabeth Andrews and Debora S. Marks and Aviv Regev and Siamack Ayandeh and Mary T. Brophy and Nhan Do and Peter Kraft and Brian M. Wolpin and Nathanael R. Fillmore and Michael H. Rosenthal and Søren Brunak and Chris Sander},
  title = {{Pancreatic cancer risk predicted from disease trajectories using deep learning}},
  year = {2021},
  doi = {10.1101/2021.06.27.449937},
  howpublished = {bioRxiv},
}
Figure