M3: Conversational LLMs Simplify Secure Clinical Data Access, Understanding, and Analysis

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Attrach, Rafi Al, Moreira, Pedro, Fani, Rajna, Umeton, Renato, Fiske, Amelia, Celi, Leo Anthony
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916029552132096
author Attrach, Rafi Al
Moreira, Pedro
Fani, Rajna
Umeton, Renato
Fiske, Amelia
Celi, Leo Anthony
author_facet Attrach, Rafi Al
Moreira, Pedro
Fani, Rajna
Umeton, Renato
Fiske, Amelia
Celi, Leo Anthony
contents Large-scale clinical databases offer opportunities for medical research, but their complexity creates barriers to effective use. The Medical Information Mart for Intensive Care (MIMIC-IV), one of the world's largest open-source electronic health record databases, traditionally requires both SQL proficiency and clinical domain expertise. We introduce M3, a system that enables natural language querying of MIMIC-IV data through the Model Context Protocol. With a single command, M3 retrieves MIMIC-IV from PhysioNet, launches a local SQLite instance or connects to hosted BigQuery, and allows researchers to pose clinical questions in plain English. We evaluated M3 using samples from the EHRSQL 2024 benchmark with two language models. On one hundred answerable questions, the proprietary Claude Sonnet 4 achieved 94% accuracy and the open-weights gpt-oss-20B (deployable locally on consumer hardware) achieved 93%; on a matched sample of one hundred unanswerable questions, where correct behavior is to abstain rather than produce SQL, gpt-oss-20B correctly abstained on 69%. Both models translate natural language into SQL, execute queries against MIMIC-IV, and return structured results alongside the underlying query for verification. Error analysis revealed that most failures stemmed from complex temporal reasoning or ambiguous question phrasing rather than fundamental architectural limitations. The comparable performance of a smaller open-weights model demonstrates that privacy-preserving local deployment is viable for sensitive clinical data analysis. M3 lowers technical barriers to critical care data analysis and is designed with security measures including OAuth2 authentication, query validation, and audit logging.
format Preprint
id arxiv_https___arxiv_org_abs_2507_01053
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle M3: Conversational LLMs Simplify Secure Clinical Data Access, Understanding, and Analysis
Attrach, Rafi Al
Moreira, Pedro
Fani, Rajna
Umeton, Renato
Fiske, Amelia
Celi, Leo Anthony
Information Retrieval
Artificial Intelligence
Databases
68T50, 68P15
H.2.3; I.2.7; J.3
Large-scale clinical databases offer opportunities for medical research, but their complexity creates barriers to effective use. The Medical Information Mart for Intensive Care (MIMIC-IV), one of the world's largest open-source electronic health record databases, traditionally requires both SQL proficiency and clinical domain expertise. We introduce M3, a system that enables natural language querying of MIMIC-IV data through the Model Context Protocol. With a single command, M3 retrieves MIMIC-IV from PhysioNet, launches a local SQLite instance or connects to hosted BigQuery, and allows researchers to pose clinical questions in plain English. We evaluated M3 using samples from the EHRSQL 2024 benchmark with two language models. On one hundred answerable questions, the proprietary Claude Sonnet 4 achieved 94% accuracy and the open-weights gpt-oss-20B (deployable locally on consumer hardware) achieved 93%; on a matched sample of one hundred unanswerable questions, where correct behavior is to abstain rather than produce SQL, gpt-oss-20B correctly abstained on 69%. Both models translate natural language into SQL, execute queries against MIMIC-IV, and return structured results alongside the underlying query for verification. Error analysis revealed that most failures stemmed from complex temporal reasoning or ambiguous question phrasing rather than fundamental architectural limitations. The comparable performance of a smaller open-weights model demonstrates that privacy-preserving local deployment is viable for sensitive clinical data analysis. M3 lowers technical barriers to critical care data analysis and is designed with security measures including OAuth2 authentication, query validation, and audit logging.
title M3: Conversational LLMs Simplify Secure Clinical Data Access, Understanding, and Analysis
topic Information Retrieval
Artificial Intelligence
Databases
68T50, 68P15
H.2.3; I.2.7; J.3
url https://arxiv.org/abs/2507.01053