Abstract
Learning to represent free text is a core task in many clinical machine learning (ML) applications, as clinical text contains observations and plans not otherwise available for inference. State-of-the-art methods use large language models developed with immense computational resources and training data; however, applying these models is challenging because of the highly varying syntax and vocabulary in clinical free text. Structured information such as International Classification of Disease (ICD) codes often succinctly abstracts the most important facts of a clinical encounter and yields good performance, but is often not as available as clinical text in real-world scenarios. We propose a multi-view learning framework that jointly learns from codes and text to combine the availability and forward-looking nature of text and better performance of ICD codes. The learned text embeddings can be used as inputs to predictive algorithms independent of the ICD codes during inference. Our approach uses a Graph Neural Network (GNN) to process ICD codes, and Bi-LSTM to process text. We apply Deep Canonical Correlation Analysis (DCCA) to enforce the two views to learn a similar representation of each patient. In experiments using planned surgical procedure text, our model outperforms BERT models fine-tuned to clinical data, and in experiments using diverse text in MIMIC-III, our model is competitive to a fine-tuned BERT at a tiny fraction of its computational effort.
Introduction
Clinical machine learning typically relies on two distinct data streams: unstructured clinical notes and structured billing codes (ICD). While clinical notes are rich in detail and available early in the patient journey, they are difficult to model due to jargon and inconsistent syntax. Conversely, ICD codes are precise and hierarchical but are often generated post-discharge, making them unavailable for real-time tasks like pre-operative risk prediction.
This paper addresses this gap by proposing a multi-view joint learning framework. The core idea is to treat ICD codes as "privileged information" available only during training. By aligning text embeddings with these structured codes, the model learns to extract more meaningful features from clinical notes, which can then be used independently during inference.
Methodology: Aligning Text and Graph Views
The framework employs two specialized encoders to process the different data modalities:
- The Code View (RGCN): The ICD ontology is modeled as a graph. A Relational Graph Convolutional Network (RGCN) captures the hierarchical relationships. To prevent "over-smoothing"—a common issue where nodes in a graph become indistinguishable—the authors introduced "jump connections." These additional edges connect leaf nodes directly to their ancestors, ensuring that related codes remain distinct yet reachable within two steps.
- The Text View (Bi-LSTM): To avoid the high computational cost of Transformers while maintaining sequence awareness, a two-stage Bi-LSTM processes clinical notes in blocks.
The critical innovation lies in the Deep Canonical Correlation Analysis (DCCA). During training, DCCA forces the embeddings from both views to be highly correlated. This alignment effectively "teaches" the text model to recognize the same patterns that expert-verified ICD codes represent.
Experimental Results
The framework was evaluated on a proprietary surgical dataset (38,551 admissions) and the public MIMIC-III dataset (58,976 admissions). The primary tasks included predicting post-operative delirium (DEL), dialysis (DIA), and mortality (MORT).
As shown in the results, the DCCA-augmented text model (DCCA+Bi-LSTM) consistently outperformed or matched state-of-the-art models like ClinicalBERT. For example, in the delirium prediction task (DEL), the model achieved a 66.9% AUROC, surpassing ClinicalBERT’s 66.3%. Furthermore, the model demonstrated remarkable robustness to "unseen" codes—medical codes not present in the training set—by leveraging the hierarchical structure of the ICD graph.
Conclusion
This multi-view framework demonstrates that structured medical knowledge can significantly enhance the representation of unstructured clinical text. By using DCCA to align these views, the model achieves state-of-the-art performance with a fraction of the computational resources required by large language models. This approach offers a practical path forward for deploying high-performance clinical ML models in resource-constrained hospital environments.
Reference: Kong, L., King, C., Fritz, B., & Chen, Y. (2023). A Multi-View Joint Learning Framework for Embedding Clinical Codes and Text Using Graph Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence.
Summary updated