Visual abstractsVisuals
ResearchTranslational Psychiatry · Nov 29, 2025

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

Hua Y, Blackley SV, Shinn AK, Skinner JP, Moran LV, Zhou L
Psychiatry & Mental HealthAdult
Read the full paper free at PubMed Central ↗

Abstract

Early and accurate diagnosis is crucial for effective treatment and improved outcomes, yet identifying psychotic episodes presents significant challenges due to its complex nature and the varied presentation of symptoms among individuals. One of the primary difficulties lies in the underreporting and underdiagnosis of psychosis, compounded by the stigma surrounding mental health and the individuals' often diminished insight into their condition. Existing efforts leveraging Electronic Health Records (EHRs) to retrospectively identify psychosis typically rely on structured data, such as medical codes and patient demographics, which frequently lack essential information. Addressing these challenges, our study leverages Natural Language Processing (NLP) algorithms to analyze psychiatric admission notes for the diagnosis of psychosis, providing a detailed evaluation of rule-based algorithms, machine learning models, and pre-trained language models. Additionally, the study investigates the effectiveness of employing keywords to streamline extensive note data before training and evaluating the models. Analyzing 4629 initial psychiatric admission notes (1196 cases of psychosis versus 3433 controls) from 2005 to 2019, including patients aged 16-35 years, selected based on the 75th percentile for age at onset of schizophrenia, we discovered that the XGBoost classifier employing Term Frequency-Inverse Document Frequency (TF-IDF) features derived from notes pre-selected by expert-curated keywords, attained the highest performance with an F1 score of 0.8881 (AUROC [95% CI]: 0.9725 [0.9717, 0.9733]). BlueBERT demonstrated comparable efficacy with an F1 score of 0.8841 (AUROC [95% CI]: 0.97 [0.9580, 0.9820]) on the same set of notes. Both models markedly outperformed traditional International Classification of Diseases (ICD) code-based detection methods from discharge summaries, which had an F1 score of 0.7608, thus improving the margin by 0.12. Furthermore, our findings indicate that keyword pre-selection markedly enhances the performance of both machine learning and pre-trained language models. This study illustrates the potential of NLP techniques to improve psychosis detection within admission notes and aims to serve as a foundational reference for future research on applying NLP for psychosis identification in EHR notes.

Topics

Humans; Machine Learning; Psychotic Disorders; Natural Language Processing; Adult; Adolescent; Young Adult; Electronic Health Records; Male; Female; Retrospective Studies; Algorithms

DOI: 10.1038/s41398-025-03629-4 · PubMed: 41318582

Cite this article

Hua Y, Blackley SV, Shinn AK, Skinner JP, Moran LV, Zhou L. Identifying psychosis episodes in psychiatric admission notes via rule-based methods, machine learning, and pre-trained language models. Transl Psychiatry. 2025. doi:10.1038/s41398-025-03629-4

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Similar articles

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

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

J Bone Joint Surg Am · Mar 24, 2026 · Research · Orthopedics & Sports Medicine

Comparison of Large Language Models with Rules-Based Natural Language Processing Algorithms for Extracting Data from Operative Notes

Hepatol Commun · Dec 1, 2025 · Research · Gastroenterology & Hepatology

Development of an AI algorithm for early identification of MASLD in the electronic health record

J Am Med Dir Assoc · Apr 30, 2026 · Research · Geriatrics

Using Natural Language Processing to Improve Fall Documentation in VA Nursing Home Residents

Clin Transl Gastroenterol · Feb 1, 2026 · Research · Gastroenterology & Hepatology

Accurate and Scalable Classification of Colonoscopy Neoplasia Using Machine Learning and Natural Language Processing