MedPromptX: Grounded Multimodal Prompting for Chest X-ray Diagnosis

Mai A. Shaaban, Adnan Khan, Mohammad Yaqub · DOI

Introduction

Chest X-ray (CXR) interpretation is a fundamental component of diagnostic medicine. While deep learning models have shown promise in automating CXR analysis, they often operate in isolation from the broader clinical context. In practice, radiologists do not interpret images in a vacuum; they integrate visual findings with a patient’s medical history, laboratory results, and vital signs found in Electronic Health Records (EHR). MedPromptX is a novel clinical decision support framework designed to bridge this gap by integrating grounded visual information with structured EHR data through advanced multimodal prompting.

Problem Statement: The Challenges of Multimodal Integration

Integrating EHR data into AI diagnostic workflows presents two primary challenges that MedPromptX seeks to solve:

  1. Data Heterogeneity and Incompleteness: EHR data is often unstructured or missing critical metadata, such as reference ranges for laboratory results. This makes it difficult for standard models to distinguish between normal and pathological values.
  2. Prompt Sensitivity and Context Overload: Multimodal Large Language Models (MLLMs) are highly sensitive to the context provided in their prompts. In "few-shot" learning scenarios, providing irrelevant or poorly ordered examples can lead to "hallucinations" or degraded diagnostic accuracy.

The MedPromptX Framework

To address these issues, MedPromptX employs a three-staged approach to multimodal prompting:

1. Visual Grounding (VG)

Rather than processing the entire, often noisy, CXR image, MedPromptX utilizes Grounding DINO to perform visual grounding. This component identifies and crops specific regions of interest (ROIs) associated with suspected pathologies (e.g., focusing on the lower lung lobes for suspected pneumonia). By narrowing the visual field, the model reduces spatial noise and focuses on the most relevant anatomical features.

2. Dynamic Proximity Selection (DPS)

The core innovation of MedPromptX is Dynamic Proximity Selection. Instead of selecting random historical cases for few-shot prompting, DPS calculates a similarity score between the current patient and a candidate pool using a combination of image and text embeddings. The system then reorders and filters these candidates to present the MLLM with the most clinically relevant "shots." This ensures that the context provided to the model is highly specific to the case at hand.

3. Multimodal LLM Integration

The framework utilizes Med-Flamingo, a specialized medical MLLM, to process the interleaved sequence of grounded images and serialized EHR text. This allows the model to "reason" across modalities, using the clinical text to interpret the visual findings and vice versa.

Experimental Setup and the MedPromptX-VQA Benchmark

The researchers developed the MedPromptX-VQA benchmark to evaluate the framework. This dataset is derived from the HAIM-MIMIC-MM dataset, which links clinical data from MIMIC-IV with images from MIMIC-CXR-JPG. The benchmark includes 968 records covering 12 distinct pathological conditions, such as Atelectasis, Cardiomegaly, and Pneumothorax. Each record consists of interleaved images and "serialized" EHR data, where lab results are converted into descriptive text strings.

Key Results and Insights

MedPromptX demonstrated significant performance gains over existing baselines, including BioMedLM and standard Med-Flamingo implementations:

  • Performance Metrics: The system achieved an F1-score of 0.686, representing an 11% improvement over the best-performing baseline. When both DPS and VG were active, the model reached an accuracy of 0.689.
  • The Importance of Multimodal Similarity: Ablation studies revealed that using both image and text embeddings for example selection (DPS) was significantly more effective than using either modality in isolation.
  • Resilience to Incomplete Data: Interestingly, the pre-trained medical LLM backbone proved capable of interpreting lab results even when reference ranges were missing, suggesting that these models can effectively fill gaps in messy EHR data.
  • Efficiency in Prompting: DPS allowed the model to achieve peak performance with an average of only four highly relevant examples, reducing the computational overhead and potential confusion associated with long, noisy prompts.

Limitations and Future Directions

While MedPromptX represents a significant step forward, several limitations remain for future exploration:

  • Model Architecture: The current framework relies on frozen backbones. Future work involving the fine-tuning of these components specifically for CXR tasks may yield further improvements.
  • Generalizability: The reliance on the MIMIC database suggests a need for validation across more diverse, multi-institutional datasets to ensure the model's robustness in different clinical settings.
  • Interpretability and Causality: Incorporating causal inference could help transition the model from identifying correlations to understanding the underlying physiological reasons for a diagnosis.
  • Clinical Implementation: Moving from a benchmark to a live clinical environment requires rigorous prospective trials to evaluate the framework's impact on radiologist workflow and patient outcomes.

Conclusion

MedPromptX demonstrates that the intelligent integration of visual grounding and dynamic context selection can significantly enhance the diagnostic capabilities of MLLMs in medical imaging. By mimicking the holistic approach of human clinicians, the framework sets a new standard for multimodal clinical decision support.

Summary updated

BibTeX
@inproceedings{shaaban2024medpromptx,
  author = {Mai A. Shaaban and Adnan Khan and Mohammad Yaqub},
  title = {{MedPromptX: Grounded Multimodal Prompting for Chest X-ray Diagnosis}},
  booktitle = {LDTM/MMMI/ML4MHD/ML-CDS @ MICCAI},
  year = {2024},
  doi = {10.1007/978-3-031-84525-3\_18},
}
Figure