Skip to content

Menu

WorksPubMed

Leveraging time-series electronic health records with large language models for chronic kidney disease diagnosis in primary care.

A preview from PubMed. Valency holds this work's metadata and abstract, not its full text.

Abstract

OBJECTIVES: Chronic kidney disease (CKD) presents a growing public health challenge in China, exacerbated by low patient awareness and limited nephrology resources. This study evaluated the potential of large language models (LLMs) to support CKD diagnosis in primary care using time-series electronic health record (EHR) data. METHODS: Longitudinal data were extracted from the EHR system of Weinan, China. Among 29 963 adults meeting inclusion criteria, 2300 participants were randomly sampled to generate clinical vignettes. CKD status was determined using diagnosis data, and individuals with early kidney injury indicated by laboratory abnormalities who lack a formal diagnosis were also identified. Using the DeepSeek LLM with prompt engineering, we generated binary CKD diagnoses and probability scores based on EHR data. Diagnostic performance was evaluated using accuracy, sensitivity, specificity, F1 score, area under the curve (AUC) and the detection rate for early kidney injury and compared with traditional machine learning (ML) models. RESULTS: Using 1-month EHR data, the LLM achieved an accuracy of 87.0%, AUC of 0.921, F1 score of 0.579, sensitivity of 89.1%, specificity of 86.8%, and detection rate for early kidney injury of 42.2%. With 1-year data, sensitivity increased to 92.2% and early detection to 52.6%. DISCUSSION: The LLM outperformed ML models across most metrics, achieving diagnostic performance comparable to clinicians and further enhancing detection for early kidney injury. CONCLUSIONS: LLMs applied to time-series EHR data may serve as a clinical decision support tool to improve CKD diagnosis in primary care, with particular value in resource-limited settings.

Paper details

Source

Source
PubMed
First available
Sep 18, 2026
Identifier
pubmed:42759972

Pick where to look, or just type