Unsupervised Extraction of Phenotypes from Cancer Clinical Notes for Association Studies

Stefan G. Stark, Stephanie L. Hyland, Melanie Fernandes Pradier, Kjong Lehmann, Andreas Wicki, Fernando Pérez-Cruz, Julia E. Vogt, Gunnar RätscharXiv 2019

Abstract

The recent adoption of Electronic Health Records (EHRs) by health care providers has introduced an important source of data that provides detailed and highly specific insights into patient phenotypes over large cohorts. These datasets, in combination with machine learning and statistical approaches, generate new opportunities for research and clinical care. However, many methods require the patient representations to be in structured formats, while the information in the EHR is often locked in unstructured texts designed for human readability. In this work, we develop the methodology to automatically extract clinical features from clinical narratives from large EHR corpora without the need for prior knowledge. We consider medical terms and sentences appearing in clinical narratives as atomic information units. We propose an efficient clustering strategy suitable for the analysis of large text corpora and to utilize the clusters to represent information about the patient compactly. To demonstrate the utility of our approach, we perform an association study of clinical features with somatic mutation profiles from 4,007 cancer patients and their tumors. We apply the proposed algorithm to a dataset consisting of about 65 thousand documents with a total of about 3.2 million sentences. We identify 341 significant statistical associations between the presence of somatic mutations and clinical features. We annotated these associations according to their novelty, and report several known associations. We also propose 32 testable hypotheses where the underlying biological mechanism does not appear to be known but plausible. These results illustrate that the automated discovery of clinical features is possible and the joint analysis of clinical and genetic datasets can generate appealing new hypotheses.

Introduction

Electronic Health Records (EHRs) contain a wealth of information, but the most granular details—specific symptoms, lifestyle factors, and subtle clinical observations—are often buried in free-text narratives written by clinicians. Traditional research typically relies on structured data like ICD-10 billing codes, which are often too coarse for precision medicine. While Natural Language Processing (NLP) can extract specific medical concepts, most existing methods require "prior knowledge" in the form of predefined knowledge bases. This paper addresses the challenge of automatically discovering relevant clinical features from scratch, without manual labeling, to understand how specific genetic mutations drive different cancer phenotypes.

Methodology

The authors propose an unsupervised pipeline that treats sentences as the atomic units of information. The process follows several key steps as illustrated in the overview below:

Overview of the unsupervised pipeline for phenotype extraction and association study.
  1. Parsing: Two parallel approaches are used. The "Word-parser" cleans raw natural language, while the "CUI-parser" maps text to the Unified Medical Language System (UMLS) to identify standardized medical concepts (Concept Unique Identifiers or CUIs).
  2. Sentence Clustering: To group similar clinical observations, the system constructs a k-nearest neighbor (kNN) graph of sentences. Similarity is measured using a weighted Jaccard scheme with a "log-inverse sentence frequency" (logISF) weighting, ensuring that rare, highly specific medical terms carry more weight than common stop words.
  3. Graph Clustering: The Louvain Method, a fast algorithm for community detection, is applied to the kNN graph to find clusters of similar sentences. Each cluster represents a specific clinical phenotype (e.g., "history of smoking").
Sentence clustering methodology using kNN graph construction and the Louvain method.
  1. Association Modeling: Finally, a logistic regression model identifies statistical links between these extracted phenotypes and somatic mutations, while controlling for confounding factors like cancer type and document volume per patient.

Datasets

The study utilized a massive real-world dataset from Memorial Sloan Kettering Cancer Center (MSKCC):

  • Cohort: 4,007 cancer patients.
  • Clinical Notes: ~65,000 documents containing roughly 3.2 million sentences.
  • Genetics: Somatic mutation profiles (MSK-IMPACT panel) for all patients, covering mutations in 340 different genes.

Results and Key Insights

The pipeline successfully extracted 14.4k CUI tokens, 5.6k CUI-based sentence clusters, and 4.8k word-based sentence clusters. By clustering entire sentences rather than individual words, the model captures critical context, such as distinguishing between a patient having a symptom versus denying it.

The study identified 341 statistically significant associations (FDR < 5%) between mutations and clinical features. Expert oncology review validated these findings:

  • 52% were "Known" (e.g., linking EGFR mutations to Erlotinib treatment), validating the model's accuracy.
  • 12% were "Possible" (novel but biologically plausible).
  • 36% were "Unknown" (potentially representing undiscovered biology).

Furthermore, the authors proposed 32 new testable hypotheses, such as a potential link between MAP2K4 mutations and tumor cachexia (severe weight loss).

Discussion and Conclusion

This methodology successfully bridges the gap between "dry" genetic data and "rich" clinical narratives. Unsupervised visualization using t-SNE demonstrated that patients naturally grouped by cancer type purely based on clinical notes, even without explicit labels. While the current model uses a "bag-of-words" approach for sentence similarity, future work could incorporate deep learning-based sentence embeddings (like BERT) to improve semantic recognition. These results illustrate that automated discovery of clinical features is possible and can generate compelling new biological hypotheses.

Summary updated

BibTeX
@misc{stark2019unsupervised,
  author = {Stefan G. Stark and Stephanie L. Hyland and Melanie Fernandes Pradier and Kjong Lehmann and Andreas Wicki and Fernando Pérez-Cruz and Julia E. Vogt and Gunnar Rätsch},
  title = {{Unsupervised Extraction of Phenotypes from Cancer Clinical Notes for Association Studies}},
  year = {2019},
  eprint = {1904.12973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.12973},
}
Figure