Abstract
Medication recommendation is a complex task requiring a balance between current clinical needs and longitudinal patient history. Traditional models often suffer from performance degradation due to "noise" in medical records—irrelevant past visits that distract the recommendation engine. We present VITA (relevant-Visit selectIon and Target-aware Attention), a framework that selectively filters patient history and intelligently weights the remaining records. By excluding irrelevant visits and allowing for "weak" relevance through a target-aware attention mechanism, VITA achieves significant performance gains. Experimental results on MIMIC-III and MIMIC-IV datasets show that VITA outperforms state-of-the-art models by up to 5.56% in Jaccard similarity.
Introduction
Prescribing medication combinations is a high-stakes task where clinicians must consider current symptoms, longitudinal history, and potential drug-drug interactions (DDI). While deep learning has advanced this field, existing models often treat all historical visits as equally relevant or rely on Recurrent Neural Networks (RNNs) that prioritize recent visits. However, medical history is often noisy; for instance, a visit for a physical injury years ago is likely irrelevant to a current respiratory diagnosis. VITA addresses this by identifying and focusing only on the most pertinent historical data.
Methodology
VITA introduces a two-stage approach to processing patient history, as illustrated in the architecture overview below.
Relevant-Visit Selection
VITA utilizes a Multi-Layer Perceptron (MLP) combined with a Gumbel-softmax trick to perform "hard" but differentiable selection of past visits. This allows the model to decide whether a specific historical visit should inform the current recommendation or be ignored entirely, effectively filtering out clinical noise.
Target-Aware Attention
For the selected visits, VITA applies a specialized attention mechanism. Unlike standard attention that forces weights to sum to one, VITA’s module allows for "weak" relevance. If historical data is only tangentially related to the current visit, the model can assign lower total weights, ensuring the current visit's data remains the primary driver of the recommendation.
Predictor
The framework concludes with a predictor that fuses two representations:
- Current Health-Aware: Employs Graph Convolutional Networks (GCNs) to model medication relationships via EHR co-occurrence and DDI safety graphs.
- Past Medication-Relevant: Refines current suggestions based on prescriptions from the "carefully chosen" historical visits.
Experimental Results
The authors evaluated VITA on the MIMIC-III and MIMIC-IV datasets, utilizing Drug-Drug Interaction (DDI) graphs to ensure safety alongside accuracy.
VITA consistently achieved the highest scores across all metrics. It outperformed the leading competitor, COGNet, by 3.83% on MIMIC-III and 5.56% on MIMIC-IV in terms of Jaccard similarity. The performance gap was more pronounced on the larger MIMIC-IV dataset, suggesting that VITA’s filtering mechanism becomes increasingly valuable as patient records grow more complex.
Key Insights
- Irrelevance is Harmful: Results indicate that using only the most relevant past visit often yields better results than using the entire history, confirming that irrelevant data acts as a distractor.
- The "Weighted Less" Philosophy: By allowing low weights for tangential history, VITA avoids "over-smoothing" patient representations.
- Orthogonality: VITA’s selection and attention modules are model-agnostic. Integrating these modules into existing architectures like GAMENet or SafeDrug consistently yields performance improvements.
- Content over Chronology: Unlike RNNs that focus on temporal order, VITA prioritizes content similarity, recognizing that a distant but clinically related visit may be more important than a recent, unrelated one.
Conclusion and Future Work
VITA demonstrates that "carefully chosen and weighted less" historical data leads to superior medication recommendations. While highly effective, future work could address the computational expense of iterative prediction and improve the clinical interpretability of the selection module. The core logic of VITA also holds potential for other longitudinal recommendation tasks, such as modeling long-term user behavior in e-commerce.
Summary updated