YLab · Paper record
Large Language Model for Predicting Altered Mental Status in Dementia Patients Using Electronic Health Records
Alzheimer's & Dementia, vol. 21, no. S4, pp. e104165, 2025
Abstract
Background Older adults with dementia face substantial challenges to their mental status due to declining physical function and deteriorating lifestyle, which negatively impacts their quality of life. Mental status is a key determinant of daily functioning in progressive dementia, but assessments often require substantial resources and may be inaccessible to many. Leveraging Electronic Health Records (EHRs) and large language models (LLMs) to predict mental status offers a promising alternative for improving patient management, risk assessment, and timely interventions. Method This retrospective cohort study analyzed EHRs of patients aged ≥65 years who were diagnosed with dementia between 2013 and 2020 and underwent Minimum Data Set (MDS) assessments at Mass General Brigham (MGB). Historical HER notes within the past year were utilized as model input. Altered mental status was defined based on the presence of C1310A Acute Mental Status Change or C1310 Signs and Symptoms of Delirium, including inattention, disorganized thinking, or altered level of consciousness. Three open‐source LLMs—QWEN2.5‐7B‐Instruct, Ministral‐8B‐Instruct, and Llama‐3.1‐8B‐Instruc were evaluated using two prompting strategies: a standard QA mode (direct answer output) and a Chain‐of‐Thought (CoT) mode (step‐by‐step reasoning). Performance was measured by accuracy using 1,000 bootstrapped iterations. Result The study included 779 patients (median age: 84 years, 44.2% male) and their corresponding 56,428 clinical notes from the past year, extracted from EHRs. Among the models, Llama‐3.1‐8B‐Instruct achieved the highest accuracy of 74.58% (95% CI: [74.48, 74.68]) in the standard QA mode. The CoT strategy improved reasoning transparency and interpretability but led to a slight performance decline compared to the standard QA approach. Conclusion This study demonstrates the potential of using EHRs and LLMs to predict altered mental status in dementia patients. The LLMs showed fine predictive performance, while the CoT strategy provided enhanced interpretability at the cost of reduced accuracy. These findings emphasize the need to optimize LLM in clinical applications and highlight the promise of advanced AI tools in improving dementia care through efficient risk assessment and timely interventions.
Contribution highlights
- Conclusion This study demonstrates the potential of using EHRs and LLMs to predict altered mental status in dementia patients.
Extracted from the public abstract; no claims have been added.
Code and data
No verified public code or data link is recorded for this paper.
Publication metadata
- PMCID
- PMC12742264
- Volume
- 21
- Issue
- S4
- Pages / article
- e104165
Version relationship
No separate preprint-to-publication relationship is currently recorded.
BibTeX
@article{Wu2025Largelanguage,
title = {Large Language Model for Predicting Altered Mental Status in Dementia Patients Using Electronic Health Records},
author = {Jiageng Wu and Richard Wyss and Kueiyu Joshua Lin and Jie Yang},
journal = {Alzheimer's & Dementia},
year = {2025},
doi = {10.1002/alz70858_104165},
volume = {21},
number = {S4},
pages = {e104165}
}