Related Experiment Video
Updated: Jul 8, 2026

A Machine Learning Approach to Design an Efficient Selective Screening of Mild Cognitive Impairment
Published on: January 11, 2020
An Electronic Health Record Algorithm's Performance to Identify Cognitive Impairment in Primary Care
Christine E Kistler1, Molly E Lynch2, Feng-Chang Lin3
1Division of Geriatric Medicine, School of Medicine, University of Pittsburgh, Pittsburgh, PA, USA; Department of Family Medicine, University of North Carolina at Chapel Hill, Chapel Hill, NC, USA.
Objectives:
Most people with dementia are diagnosed and cared for in primary care. We examined the performance of an electronic health record (EHR) algorithm to identify older adults with dementia or mild cognitive impairment in primary care.
Design:
Retrospective cohort study.
Setting And Participants:
We identified all adults aged 65+ seen for a routine visit from December 2021 to December 2022 in 59 primary care clinics. We used representative sampling to create a cohort of 525 older adults.
Methods:
We used trained research staff to confirm the presence of dementia or mild cognitive impairment via gold standard chart review. We then applied a list of 114 cognitive impairment-related Internaitonal Classification of Diseases, 10th Revision (ICD-10) codes and prescribed dementia medications to the cohort and evaluated the algorithm's performance characteristics.
Results:
Of the representative cohort (n = 525), 59% were women and 81% were White, with an average age of 74.5 ± 6.9 years. Dementia or mild cognitive impairment was present on EHR review in 8.6% (n = 45) of the cohort. The algorithm had a specificity of 98.1%, a sensitivity of 60.0%, a positive predictive value of 0.75, and a negative predictive value of 0.96. The overall predictive performance (F-1 score) was 0.667. Nonspecific ICD-10 was the most common, with "unspecified dementia" representing 17 of 34 ICD-10 codes found by the algorithm.
Conclusions And Implications:
Optimization of an EHR algorithm to detect cognitive impairment by combining cognitive impairment-related ICD-10 codes and dementia medications identified people with dementia or mild cognitive impairment in primary care with high specificity and acceptable sensitivity, although ICD-10 codes remained nonspecific.

