NeuraHealth: An Automated Screening Pipeline to Detect Undiagnosed Cognitive Impairment in Electronic Health Records with Deep Learning and Natural Language Processing

Tanish Tyagi, Colin Magdamo, Ayush Noori, Zhaozhi Li, Xiao Liu, Mayuresh Deodhar, Zhuoqiao Hong, Wendong Ge, Elissa M. Ye, Yi-han Sheu, Haitham Alabsi, Laura Brenner, Gregory K. Robbins, Sahar F. Zafar, Nicole M. Benson, Lidia M.v.r. Moura, John Hsu, Alberto Serrano‐Pozo, Dimitry Prokopenko, Rudolph E. Tanzi, Bradley T. Hyman, Deborah Blacker, Shibani S. Mukerji, M. Brandon Westover, Sudeshna Das · DOI

Abstract

Dementia-related cognitive impairment (CI) is a neurodegenerative disorder affecting over 55 million people worldwide, with a new case appearing every three seconds. Globally, 75% of cases go undiagnosed, leading to an estimated annual cost of USD 1.3 trillion. While electronic health records (EHR) contain vital clues for early detection, manual review is tedious and error-prone. This paper proposes NeuraHealth, a novel framework to identify patients with undiagnosed CI. By fine-tuning a bi-directional attention-based deep learning model (ClinicalBERT) on patient EHRs from the Mass General Brigham BioBank, the system classifies sequences to generate features for a patient-level regularized logistic regression model. NeuraHealth outperforms existing state-of-the-art computational and clinical methods, providing a scalable, high-speed discovery tool for medical facilities.

Introduction

Dementia-related cognitive impairment is a global health crisis where up to 75% of cases remain undiagnosed. Clinicians often record observations in unstructured "clinical notes," but these clues frequently fail to trigger formal diagnoses or structured ICD codes. The sheer volume and complexity of EHR data make manual review impossible for overstretched primary care physicians. Previous computational attempts often relied on simple keyword matching or basic machine learning (like TF-IDF), which fail to understand linguistic context—for instance, failing to distinguish between a patient having a symptom and a patient being a caregiver for someone else with that symptom. NeuraHealth bridges this gap with a context-aware, scalable screening tool.

Methodology

The NeuraHealth framework utilizes a two-step automated pipeline designed to mimic a clinician's diagnostic workflow.

The NeuraHealth automated screening pipeline, illustrating the flow from raw EHR data through preprocessing and expert annotation to the final data split.
  1. Sequence Classification: The system first fine-tunes ClinicalBERT, a transformer-based model pre-trained on clinical text. Unlike traditional models, ClinicalBERT uses bidirectional attention to understand the relationship between words in a sequence, allowing it to handle complex linguistic structures like negation and subject-object relationships.
  2. Patient Classification: Predictions from the sequence classifier are aggregated into structured features (e.g., the frequency of positive CI indicators). These features are then processed by an L1 Regularized Logistic Regression model to determine a final patient-level probability of cognitive impairment.

Data Acquisition and Preprocessing

The study utilized data from the Mass General Brigham BioBank, encompassing approximately 40,000 patients and 10 million EHRs. To reduce computational load and noise, the pipeline extracts 800-character sequences centered around 18 specific dementia-related keywords.

Dementia-related keywords and their match counts used to extract relevant sequences from the EHR dataset.

A filtered cohort of 16,428 unique patients was established. For ground truth validation, a "gold-standard" dataset of 921 patients was manually reviewed by expert clinicians, ensuring the model's performance was measured against high-confidence clinical labels.

Results and Benchmarking

NeuraHealth demonstrated significant improvements over both traditional computational methods and current clinical standards:

  • Sequence Level: ClinicalBERT achieved an AUC of 0.98 and 93% accuracy, outperforming the TF-IDF baseline (AUC 0.94).
  • Patient Level: The integrated framework achieved 88% accuracy and an AUC of 0.92.
  • Clinical Comparison: NeuraHealth was found to be 11% more accurate than CT scans (77%) and 8% more accurate than standard Neuropsychological Tests (80%) for early detection of cognitive impairment.

Discussion and Future Directions

The success of NeuraHealth highlights the necessity of deep learning for medical NLP, where context is paramount. The system is integrated into a web application capable of processing a patient's entire history in under 5 seconds, making it a viable tool for real-world clinical screening.

Future work will focus on addressing label scarcity through active learning loops, using entropy scores to identify uncertain cases for expert review. While currently focused on dementia, this two-step framework could potentially be adapted to detect other chronic conditions hidden within unstructured clinical notes, such as cardiovascular issues or sleep apnea.

Summary updated

BibTeX
@misc{tyagi2022neurahealth,
  author = {Tanish Tyagi and Colin Magdamo and Ayush Noori and Zhaozhi Li and Xiao Liu and Mayuresh Deodhar and Zhuoqiao Hong and Wendong Ge and Elissa M. Ye and Yi-han Sheu and Haitham Alabsi and Laura Brenner and Gregory K. Robbins and Sahar F. Zafar and Nicole M. Benson and Lidia M.V.R. Moura and John Hsu and Alberto Serrano‐Pozo and Dimitry Prokopenko and Rudolph E. Tanzi and Bradley T. Hyman and Deborah Blacker and Shibani S. Mukerji and M. Brandon Westover and Sudeshna Das},
  title = {{NeuraHealth: An Automated Screening Pipeline to Detect Undiagnosed Cognitive Impairment in Electronic Health Records with Deep Learning and Natural Language Processing}},
  year = {2022},
  eprint = {2202.00478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00478},
}
Figure