Abstract
This work proposes a novel model—TCoN (Time-aware and Co-occurrence-aware Network). It is an interpretable and effective deep learning method that can model hierarchical medical structures and predict medical events. Experiments demonstrate that TCoN outperforms state-of-the-art methods across various clinical tasks. Future work may apply graph embedding technology based on more knowledge data such as doctor notes.
Introduction: Decoding the EHR
Predicting a patient's future health from their Electronic Health Record (EHR) is a complex task. EHR data is inherently hierarchical: a patient has multiple hospital visits, and each visit contains a cluster of diagnosis codes. Furthermore, the time between these visits varies significantly, and the relationships between diseases can be either immediate complications or long-term causal links.
In a study published in BMC Medical Informatics and Decision Making, researchers Chenxi Sun, Hongna Dui, and Hongyan Li introduced TCoN, a deep learning architecture designed to navigate these complexities while providing "interpretation paths" that explain its reasoning to clinicians.
The Problem: Longitudinal vs. Co-occurrence Relations
Most existing medical prediction models struggle with the "dual nature" of EHR data. There is a longitudinal time relation (where past visits influence future ones) and a co-occurrence relation (where diseases within the same visit are linked, such as diabetes and its immediate complications).
Standard models typically prioritize one over the other. Moreover, deep learning models are often "black boxes," making them difficult for clinicians to trust. TCoN aims to bridge this gap by combining high-accuracy prediction with clinical interpretability.
Methodology
The TCoN framework utilizes two specialized components to handle the complexities of EHR data:
- Co-occurrence-aware Self-attention (CS-attention): This mechanism analyzes diagnosis codes using "Local Heads" to model intra-visit relationships (complications) and "Global Heads" to model inter-visit relationships (disease progression).
- Time-aware Gated Recurrent Unit (T-GRU): Unlike standard RNNs that assume equal time intervals, T-GRU introduces a "time gate." This gate uses decay functions (logarithmic, exponential, or reciprocal) to weight past information based on the elapsed time since the previous visit.
- Interpretability Engine: The model generates "Interpretation Paths" by identifying the most influential diagnoses in recent visits and tracing them back through the patient's history.
Key Insights
- Time as a Decay Factor: The relevance of a past diagnosis decays over time. T-GRU captures this nuance, recognizing that a recent infection is more relevant to current status than a distant injury.
- Dual-Head Attention: By treating intra-visit and inter-visit relationships differently, TCoN effectively manages the conflict between longitudinal and bipartite data structures.
- Clinical Logic Mapping: TCoN can trace logical sequences, such as Unspecified sleep apnea → Unspecified pleural effusion → Pulmonary collapse → Hypoxemia → Death, mirroring human clinical reasoning.
Results and Evaluation
TCoN was evaluated using the MIMIC-III dataset, focusing on mortality, readmission, sepsis, and heart failure prediction. The model was tested against several state-of-the-art baselines, including GRU, RETAIN, and T-LSTM.
- Superior Performance: TCoN outperformed all baselines, showing a 2.01% higher accuracy on average.
- Handling Imbalance: The model's pre-training (using an auto-encoder) and fine-tuning approach provided stability on imbalanced clinical subsets like sepsis.
- Multi-Diagnosis Prediction: In "next diagnosis" prediction, TCoN maintained a clear lead in Accuracy@k metrics, proving its capability in handling multiple simultaneous conditions.
Conclusion
TCoN represents a significant advancement in interpretable medical AI. While currently focused on ICD-9 codes, the authors acknowledge that future iterations could incorporate unstructured data like clinical notes or integrate Medical Knowledge Graphs to provide even deeper clinical context.
Reference: Sun, C., Dui, H. & Li, H. Interpretable time-aware and co-occurrence-aware network for medical prediction. BMC Med Inform Decis Mak 21, 305 (2021). https://doi.org/10.1186/s12911-021-01662-z
Summary updated