ResearchBMJ Mental Health · Mar 23, 2026

Identifying postpartum depression subtypes using natural language processing and clinical notes

Adekkanattu P, Vekaria V, Zhang Y, Patra BG, Liang P, Sharko M, et al
Psychiatry & Mental HealthObstetrics & GynecologyAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Background Postpartum depression (PPD) remains vastly underdiagnosed, and its clinical heterogeneity is not well understood. Diagnosis codes in electronic health records (EHRs) alone may not identify all PPD cases, highlighting a need for novel detection approaches. Objective To develop a transformer-based natural language processing (NLP) method to identify patients with PPD from clinical notes in EHRs and to examine demographic and clinical heterogeneity among identified cases. Methods Clinical notes from 64 426 patients who gave birth between 2010 and 2023 at a major US academic medical centre were used to develop and evaluate the NLP method. By augmenting the NLP output with International Classification of Diseases (ICD-9/10) diagnosis codes, three subgroups of individuals with PPD were identified: patients identified by ICD only (PPD-ICD), NLP only (PPD-NLP) and both ICD and NLP (PPD-BOTH). Demographics, mental health and substance use disorders (SUDs), antidepressant treatment, behavioural therapy and healthcare utilisation were compared across PPD subgroups and a non-PPD control group. Longitudinal associations of depression and anxiety were also examined. Findings The NLP method identified an additional 29.6% of patients whose clinical notes indicated symptoms suggestive of PPD but who lacked an ICD diagnosis. Significant variation was observed among PPD subgroups in comorbid psychiatric disorders, SUDs, treatment patterns and healthcare utilisation. During the 24 months post-delivery, the PPD-BOTH subgroup exhibited the highest rates of anxiety disorder diagnoses (vs PPD-ICD: OR 1.69, 95% CI 1.49 to 1.93; vs PPD-NLP: OR 4.46, 95% CI 3.82 to 5.22), antidepressant prescriptions (vs PPD-ICD: OR 1.95, 95% CI 1.71 to 2.22; vs PPD-NLP: OR 5.98, 95% CI 5.11 to 7.01) and mental health outpatient visits (vs PPD-ICD: OR 1.45, 95% CI 1.24 to 1.7; vs PPD-NLP: OR 4.94, 95% CI 3.9 to 6.31), suggesting higher symptom severity (all p<0.001). Comorbid depression and anxiety diagnoses were most prevalent during the postpartum period and declined over time. Conclusions Augmenting NLP-based identification with ICD codes yielded more individuals with distinct demographic and clinical profiles, demonstrating the method's ability to improve case detection and characterise heterogeneity. Clinical implications Given that PPD is underdiagnosed and undertreated, this novel approach demonstrates further potential for NLP in healthcare settings to capture more cases, enabling earlier and more personalised interventions that reach patients who may otherwise be overlooked.

Abstract reproduced under the article’s CC BY NC licence.

More on this topic

Depression

Subject terms

Humans; Female; Depression, Postpartum; Natural Language Processing; Electronic Health Records; Adult; International Classification of Diseases

DOI: 10.1136/bmjment-2025-302066 · PubMed: 41871883

Cite this article

Adekkanattu P, Vekaria V, Zhang Y, et al. Identifying postpartum depression subtypes using natural language processing and clinical notes. BMJ Ment Health. 2026;29(1). doi:10.1136/bmjment-2025-302066

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Psychiatry & Mental Health 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

Similar articles

Research · Transl Psychiatry · Mar 20, 2026 · Psychiatry & Mental Health

Enhancing personalized suicide risk prediction for VA patients by integrating discrete natural language processing models

Research · J Am Med Inform Assoc · Mar 17, 2026 · Digital Health & AI, Psychiatry & Mental Health

Life events extraction from healthcare notes for veteran acute suicide risk prediction

Research · Transl Psychiatry · Nov 29, 2025 · Psychiatry & Mental Health, Digital Health & AI

Identifying psychosis episodes in psychiatric admission notes via rule-based methods, machine learning, and pre-trained language models

Research · BMJ Ment Health · Jun 18, 2026 · Pediatric · Psychiatry & Mental Health, Pediatrics

Mood instability and mental health service use in autism and attention-deficit/hyperactivity disorder: a natural language processing analysis of CRIS electronic healthcare records from 21 906 children and adolescents

Research · J Med Internet Res · Nov 20, 2026 · Digital Health & AI, Psychiatry & Mental Health

Algorithm identifies four levels of alcohol use risk in surgical patients' records