Open-weight language models for patient-level identification of neurological diseases from clinical notes across a multi-hospital data warehouse: a development, validation and population-scale study

Background Cohorts derived from clinical data warehouses rely largely on diagnostic codes, whereas much diagnostic evidence exists only in free-text notes. We assessed whether open-weight large language models (LLMs), deployed within hospital infrastructure, could adjudicate patient-level neurological diagnoses from longitudinal notes and identify patients whose notes support a target diagnosis despite the absence of a corresponding diagnostic code. Methods Our pipeline retrieves disease-specific passages, removes duplicated text and assembles a chronological dossier, from which an LLM assigns a diagnosis and a separate label of documentary certainty. In the Assistance Publique–Hôpitaux de Paris data warehouse, we identified patients with amyotrophic lateral sclerosis (ALS) or other motor neuron diseases, multiple sclerosis, parkinsonian syndromes, and Huntington disease or other choreas, by ICD-10 code or by keyword alone. After development over three annotation rounds, the last on a sample of 800 patient–task observations, we evaluated seven local configurations on 800 independent validation observations annotated by a clinician. We then applied the configuration retained after development to candidates who met the final selection criteria. Findings Initial selection identified 143,900 distinct candidate patients. Of the 800 validation observations, 738 yielded a dossier adjudicated by the LLMs. Across all 800 observations, the diagnostic accuracy of the pipeline against the reader was 89.8–95.0% overall, 96.0–97.1% on the observations labelled clear and 55.8–75.0% on the others, depending on the model configuration; agreement on documentary certainty was lower (κ 0.391–0.587 across configurations, versus 0.816–0.909 for the diagnosis). Against the reader's clear target diagnoses, those of Gemma 4 31B had a positive predictive value of 97.7–100.0% and a sensitivity of 87.4–100.0% in the four ICD-10 groups, and of 95.0–100.0% and 75.0–100.0% in the keyword-only groups, which held 4–20 such diagnoses each. In the population-scale analysis, Gemma 4 31B assigned a clear diagnosis of ALS to 4,696 patients, of multiple sclerosis to 19,415, of Parkinson disease or an atypical parkinsonian syndrome to 32,180 and of Huntington disease to 1,187; 15.5%, 27.3%, 43.2% and 46.4% of them, respectively, had no corresponding ICD-10 code. Interpretation Locally deployed open-weight LLMs achieved high diagnostic agreement with a clinician on held-out neurological records, with lower agreement on documentary certainty. At population scale, a substantial share of clear diagnoses concerned patients without the corresponding diagnostic code.

Authors

Institutions

Publication Details

Journal
medRxiv
Published
2026-12-03
DOI
https://doi.org/10.64898/2026.12.03.26369365
Primary Topic
Machine Learning in Healthcare
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Open-weight language models for patient-level identification of neurological diseases from clinical notes across a multi-hospital data warehouse: a development, validation and population-scale study

Thomas Nédelec, Octave Guinebretiere, Quentin Calonge, Léa Aguilhon et al.
medRxiv
Machine Learning in Healthcare
preprint

Open-weight language models for patient-level identification of neurological diseases from clinical notes across a multi-hospital data warehouse: a development, validation and population-scale study

Thomas Nédelec, Octave Guinebretiere, Quentin Calonge, Léa Aguilhon, Clémence Sarrau, Camille Koczorowski, Louis Corneloup
preprint en

Abstract

Background Cohorts derived from clinical data warehouses rely largely on diagnostic codes, whereas much diagnostic evidence exists only in free-text notes. We assessed whether open-weight large language models (LLMs), deployed within hospital infrastructure, could adjudicate patient-level neurological diagnoses from longitudinal notes and identify patients whose notes support a target diagnosis despite the absence of a corresponding diagnostic code. Methods Our pipeline retrieves disease-specific passages, removes duplicated text and assembles a chronological dossier, from which an LLM assigns a diagnosis and a separate label of documentary certainty. In the Assistance Publique–Hôpitaux de Paris data warehouse, we identified patients with amyotrophic lateral sclerosis (ALS) or other motor neuron diseases, multiple sclerosis, parkinsonian syndromes, and Huntington disease or other choreas, by ICD-10 code or by keyword alone. After development over three annotation rounds, the last on a sample of 800 patient–task observations, we evaluated seven local configurations on 800 independent validation observations annotated by a clinician. We then applied the configuration retained after development to candidates who met the final selection criteria. Findings Initial selection identified 143,900 distinct candidate patients. Of the 800 validation observations, 738 yielded a dossier adjudicated by the LLMs. Across all 800 observations, the diagnostic accuracy of the pipeline against the reader was 89.8–95.0% overall, 96.0–97.1% on the observations labelled clear and 55.8–75.0% on the others, depending on the model configuration; agreement on documentary certainty was lower (κ 0.391–0.587 across configurations, versus 0.816–0.909 for the diagnosis). Against the reader's clear target diagnoses, those of Gemma 4 31B had a positive predictive value of 97.7–100.0% and a sensitivity of 87.4–100.0% in the four ICD-10 groups, and of 95.0–100.0% and 75.0–100.0% in the keyword-only groups, which held 4–20 such diagnoses each. In the population-scale analysis, Gemma 4 31B assigned a clear diagnosis of ALS to 4,696 patients, of multiple sclerosis to 19,415, of Parkinson disease or an atypical parkinsonian syndrome to 32,180 and of Huntington disease to 1,187; 15.5%, 27.3%, 43.2% and 46.4% of them, respectively, had no corresponding ICD-10 code. Interpretation Locally deployed open-weight LLMs achieved high diagnostic agreement with a clinician on held-out neurological records, with lower agreement on documentary certainty. At population scale, a substantial share of clear diagnoses concerned patients without the corresponding diagnostic code.

medRxiv
Inserm (FR), Sorbonne Université (FR), Assistance Publique – Hôpitaux de Paris (FR), Institut Pierre Louis d‘Épidémiologie et de Santé Publique (FR), Epilepsy Foundation (AU)
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon