[Paper Review] EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
This paper introduces EHRXQA, the first multi-modal question answering dataset combining structured electronic health records (EHRs) and chest X-ray images, enabling joint reasoning across table and imaging modalities. It proposes a NeuralSQL-based framework integrating a large language model with an external VQA API, achieving 78.3% exact match accuracy on image+table multi-modal questions, demonstrating significant progress in multi-modal EHR QA.
Electronic Health Records (EHRs), which contain patients' medical histories in various multi-modal formats, often overlook the potential for joint reasoning across imaging and table modalities underexplored in current EHR Question Answering (QA) systems. In this paper, we introduce EHRXQA, a novel multi-modal question answering dataset combining structured EHRs and chest X-ray images. To develop our dataset, we first construct two uni-modal resources: 1) The MIMIC-CXR-VQA dataset, our newly created medical visual question answering (VQA) benchmark, specifically designed to augment the imaging modality in EHR QA, and 2) EHRSQL (MIMIC-IV), a refashioned version of a previously established table-based EHR QA dataset. By integrating these two uni-modal resources, we successfully construct a multi-modal EHR QA dataset that necessitates both uni-modal and cross-modal reasoning. To address the unique challenges of multi-modal questions within EHRs, we propose a NeuralSQL-based strategy equipped with an external VQA API. This pioneering endeavor enhances engagement with multi-modal EHR sources and we believe that our dataset can catalyze advances in real-world medical scenarios such as clinical decision-making and research. EHRXQA is available at https://github.com/baeseongsu/ehrxqa.
Motivation & Objective
- To address the lack of publicly available multi-modal EHR QA datasets integrating structured tables and medical images.
- To bridge the gap in EHR QA systems that currently focus on single modalities, neglecting joint reasoning across imaging and tabular data.
- To develop a benchmark dataset that supports both uni-modal and cross-modal question answering for real-world clinical decision-making.
- To enable the creation of advanced QA systems capable of understanding complex, multi-faceted clinical queries involving both EHR tables and chest X-ray images.
- To provide a foundation for advancing multi-modal medical AI by offering a large-scale, diverse, and clinically relevant dataset.
Proposed method
- Constructs MIMIC-CXR-VQA, a new medical visual question answering benchmark derived from MIMIC-CXR, to support image-based QA in EHRs.
- Refashions EHRSQL (based on MIMIC-IV) into a structured EHR QA resource for table-based questions.
- Integrates MIMIC-CXR-VQA and EHRSQL to create EHRXQA, a multi-modal dataset with three QA scopes: image-only, table-only, and image+table cross-modal questions.
- Proposes a NeuralSQL-based architecture that extends SQL with a new FUNC_VQA() syntax to invoke an external VQA API for image reasoning.
- Employs in-context learning with few-shot examples (10-shot) using ChatGPT as the parser and the pre-trained M³AE model as a frozen VQA API.
- Applies two prompting strategies: fixed few-shot examples and BM25-based retrieval of relevant training examples to improve generalization.
Experimental results
Research questions
- RQ1Can a multi-modal EHR QA system effectively combine structured EHR tables and chest X-ray images to answer complex clinical questions?
- RQ2How does the performance of a multi-modal QA system vary across different types of questions—image-only, table-only, or cross-modal image+table queries?
- RQ3To what extent can a large language model with an external VQA API improve reasoning over multi-modal EHR data compared to uni-modal baselines?
- RQ4Does retrieving relevant few-shot examples via BM25 improve the accuracy of multi-modal question answering compared to fixed few-shot prompting?
- RQ5What is the impact of question diversity and complexity on the performance of multi-modal EHR QA systems?
Key findings
- The proposed NeuralSQL-based approach with the BM25 prompting strategy achieved 78.3% exact match accuracy on image+table cross-modal questions, demonstrating strong performance on complex multi-modal reasoning.
- On image-only questions, the model achieved 94.4% accuracy for single-image queries, indicating strong performance on uni-modal image reasoning.
- For table-only questions, the model reached 98.0% accuracy in the 'none' patient scope, showing high reliability on structured EHR data.
- The fixed prompting strategy performed poorly on cross-modal questions, achieving only 3.3% exact match accuracy on single-image+table queries, highlighting the importance of dynamic few-shot retrieval.
- Performance dropped significantly on group-level patient queries (e.g., 15.0% accuracy on image+table group queries), indicating challenges in reasoning over aggregated patient data.
- The BM25-based retrieval strategy outperformed the fixed few-shot approach across all modalities, especially on complex and diverse questions, proving its effectiveness in context selection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.