An autonomous agentic workflow for clinical detection of cognitive concerns using large language models
Early detection of cognitive impairment is limited by traditional screening tools and resource constraints. We developed two large language model workflows for identifying cognitive concerns from clinical notes: (1) an expert-driven workflow with iterative prompt refinement across three LLMs (LLaMA 3.1 8B, LLaMA 3.2 3B, Med42 v2 8B), and (2) an autonomous agentic workflow coordinating five specialized agents for prompt optimization. Using Llama3.1, we optimized on a balanced refinement dataset and validated on an independent dataset reflecting real-world prevalence. The agentic workflow achieved comparable validation performance (F1 = 0.74 vs. 0.81) and superior refinement results (0.93 vs. 0.87) relative to the expert-driven workflow. Sensitivity decreased from 0.91 to 0.62 between datasets, demonstrating the impact of prevalence shift on generalizability. Expert re-adjudication revealed 44% of apparent false negatives reflected clinically appropriate reasoning. These findings demonstrate that autonomous agentic systems can approach expert-level performance while maintaining interpretability, offering scalable clinical decision supports.
Authors
- Hossein Estiri (ORCID: https://orcid.org/0000-0002-0204-8978)
- Deborah Blacker (ORCID: https://orcid.org/0000-0001-6107-7376)
- Rebeka Bustamante Rocha (ORCID: https://orcid.org/0000-0001-8689-5148)
- S. Murphy
- Neguine Rezaii (ORCID: https://orcid.org/0000-0002-8967-9237)
- Valdery Moura (ORCID: https://orcid.org/0000-0001-5735-9143)
- Jennifer S. Haas (ORCID: https://orcid.org/0000-0001-7227-851X)
- Chirag J. Patel (ORCID: https://orcid.org/0000-0002-8756-8525)
- Jiazi Tian (ORCID: https://orcid.org/0000-0003-0599-3438)
- Pedram Fard
- Liqin Wang
- Cameron Cagan
- Lidia M.V.R. Moura
Institutions
- Brigham and Women's Hospital (US)
- Harvard University (US)
- Massachusetts General Hospital (US)
Publication Details
- Journal
- npj Digital Medicine
- Published
- 2026-01-07
- DOI
- https://doi.org/10.1038/s41746-025-02324-4
- Citations
- 1
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 17.70
Funders
- National Institutes of Health
- National Institute of Allergy and Infectious Diseases