Researchnpj Digital Medicine · Aug 20, 2026

Evaluating transportability failures of electronic health record-based risk models for treatment-resistant depression

Walsh CG, Ripperger M, McCoy TH, Castro V, Hu Y, Kirchner HL, et al
Digital Health & AIAdult
Read the full paper free at PubMed Central ↗

Abstract

Earlier identification of risk for treatment-resistant depression (TRD) remains essential, but no risk stratification model has been adopted clinically and none shown to be transportable across sites. To characterize reasons models might fail to transport into new settings, we modeled TRD likelihood using a well-accepted and transparent modeling approach with electronic health records in major depressive disorder at the time of first antidepressant prescription in three large and disparate health systems - Mass General-Brigham, Vanderbilt University Medical Center, and Geisinger Clinic from 2004 to 2022. TRD was defined as provision of electroconvulsive therapy, transcranial magnetic stimulation, vagus nerve stimulation, prescription of ketamine or esketamine or monoamine oxidase inhibitors, or failures of more than two antidepressants. L1-regularized regression applied to sociodemographic features, medications, and ICD-10 diagnostic codes was validated internally and externally with poor performance. C-statistics ranged from 0.51 to 0.65 internally and 0.5 to 0.58 externally. Areas Under the Precision-Recall Curve ranged from 0.07 to 0.15 internally and 0.07 to 0.11 externally with low concordance. We highlight three main failure mechanisms: heterogeneity of TRD as an outcome; biases in source data; site-/practice-level variation. Use of data beyond EHRs and addressing the intrinsic heterogeneity of clinical populations may be necessary to achieve clinically meaningful risk stratification.

More on this topic

Depression

DOI: 10.1038/s41746-026-03095-2 · PubMed: 43113716

Cite this article

Walsh CG, Ripperger M, McCoy TH, et al. Evaluating transportability failures of electronic health record-based risk models for treatment-resistant depression. NPJ Digit Med. 2026;9(1). doi:10.1038/s41746-026-03095-2

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Digital Health & AI studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

More in Digital Health & AI

Research · J Med Internet Res · Dec 1, 2026 · Digital Health & AI, Infectious Disease

Combining Community Engagement and AI-Assisted Translation for Health Research Materials: Tutorial From a Community-Engaged HIV Study

Research · J Med Internet Res · Dec 1, 2026 · Digital Health & AI

New 17-item scale measures digital hygiene behaviors in adult internet users

Research · J Med Internet Res · Dec 1, 2026 · Digital Health & AI, Public & Global Health

Hispanic communities in Texas support public health data sharing when governance is transparent

Research · J Med Internet Res · Dec 1, 2026 · Pediatric · Digital Health & AI, Pediatrics

Few safety failures observed in four large language models answering pediatric visual and ADHD queries

Research · J Med Internet Res · Dec 1, 2026 · Digital Health & AI

Viewpoint argues AI agreement with doctors may be overcounted as independent evidence