Abstract
Medication recommendation systems often struggle with the "bucket effect," where the lack of overlapping multi-modal data (images, text, structures) across all drugs limits model performance. We present MKMed, a framework that utilizes a cross-modal encoder and contrastive learning to align five distinct types of medical knowledge into a unified representation space. By moving beyond simple data intersections, MKMed significantly improves recommendation accuracy and safety, as demonstrated on the MIMIC-III and MIMIC-IV datasets.
Introduction
In AI-driven healthcare, effective medication recommendation requires a deep understanding of drug properties. While modern models incorporate external knowledge like molecular structures or textual descriptions, they are frequently hindered by data sparsity. Most drugs do not possess a complete set of features (e.g., 3D structure, high-quality image, and detailed text). Traditional models that require the "intersection" of all these modalities suffer from the "bucket effect", where performance is constrained by the least available data type. As more knowledge sources are added, the number of drugs possessing all features shrinks drastically, leading to significant information loss.
Methods
The proposed MKMed framework addresses this by focusing on multi-knowledge alignment rather than intersection.
Multi-Modal Knowledge Integration
MKMed integrates five diverse sources: Images (visual shape), Text (semantic functions), Structures (spatial/atomic bonds), Chemical Properties (quantitative descriptors), and Knowledge Graphs (biological relationships).
The MKMed Architecture
The framework consists of three primary stages: Alignment, Pre-training, and Prediction.
- Cross-Modal Medication Encoder: Specialized encoders, such as Graph Isomorphism Networks (GIN) for structures and Vision Transformers (ViT) for images, extract features. A contrastive learning phase aligns these features pairwise, ensuring that different modalities for the same drug map to nearby points in a shared vector space.
- Prediction Module: Aligned drug embeddings are integrated with patient Electronic Health Records (EHR). A Gated Recurrent Unit (GRU) processes longitudinal patient history to generate final recommendations.
- Loss Functions: The model optimizes for accuracy (BCE and multi-label hinge loss) while minimizing drug-drug interactions (DDI loss).
Results and Discussion
MKMed was evaluated on the MIMIC-III and MIMIC-IV clinical datasets, utilizing external knowledge from DRKG, PubChem, and RDKit.
Performance and Safety
MKMed consistently outperformed state-of-the-art baselines, including MoleRec and SafeDrug. On MIMIC-III, it achieved a Jaccard score of 0.5526, surpassing the previous best of 0.5389. Crucially, it maintained a low DDI rate (0.0740), demonstrating that improved accuracy does not compromise patient safety.
Robustness to Sparsity
A key insight is the "Sparsity Paradox": while only 5,000 drugs in the dataset possess all five modalities, MKMed successfully leverages the hundreds of thousands of drugs that have only partial data. Ablation studies confirmed that each modality provides non-redundant information—for instance, images capture macro-features that molecular graphs might overlook.
Conclusion
MKMed effectively combats the bucket effect by creating a "universal language" for drug representations. By aligning rather than intersecting data, the model remains robust even when specific modalities are missing. Future work will focus on reducing the computational overhead of multi-modal alignment and adapting the model to "zero-shot" clinical settings where patient history is limited.
Summary updated