Related Experiment Video
Updated: Jan 9, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Identifying psychosis episodes in psychiatric admission notes via rule-based methods, machine learning, and
Yining Hua1,2,3, Suzanne V Blackley4, Ann K Shinn5,6
1Department of Epidemiology, T.H. Chan School of Public Health, Harvard University, Boston, MA, USA. yininghua@g.harvard.edu.
Natural Language Processing (NLP) models significantly improve psychosis detection in psychiatric notes, outperforming traditional methods. Keyword pre-selection enhances NLP model performance for more accurate psychosis identification in electronic health records.
Area of Science:
- Computational psychiatry
- Medical informatics
- Natural Language Processing
Background:
- Accurate psychosis diagnosis is vital but challenging due to symptom variability and underreporting.
- Existing methods using structured Electronic Health Record (EHR) data are often insufficient for psychosis identification.
- Stigma and diminished insight further complicate early and accurate diagnosis of psychotic episodes.
Purpose of the Study:
- To evaluate the effectiveness of Natural Language Processing (NLP) algorithms for identifying psychosis in psychiatric admission notes.
- To compare rule-based, machine learning, and pre-trained language models for psychosis detection.
- To assess the impact of keyword pre-selection on NLP model performance in EHR data.
Main Methods:
- Analysis of 4629 psychiatric admission notes (2005-2019) from patients aged 16-35.
- Application of rule-based algorithms, machine learning (XGBoost with TF-IDF), and pre-trained language models (BlueBERT).
- Evaluation of keyword pre-selection strategies to refine notes before model training and analysis.
Main Results:
- The XGBoost classifier with TF-IDF features and keyword pre-selection achieved the highest F1 score of 0.8881.
- BlueBERT showed comparable performance with an F1 score of 0.8841.
- Both NLP models significantly outperformed traditional ICD code-based detection (F1 score 0.7608), with keyword pre-selection enhancing performance.
Conclusions:
- NLP techniques, particularly with keyword pre-selection, offer a powerful approach to improve psychosis detection in clinical notes.
- Machine learning and pre-trained language models demonstrate superior performance compared to traditional methods for psychosis identification in EHRs.
- This study provides a foundation for leveraging NLP to enhance psychosis diagnosis and patient care within electronic health records.
More Related Videos
Related Concept Videos
Psychosis and Antipsychotic Drugs: Overview
Psychosis: Goals of Pharmacotherapy
Mania and Antimanic Drugs: Overview
Classification of Illness
An illness is a response to a disease in which the person's level of functioning is changed compared with a previous level. The general classification of illness includes acute and chronic.
Acute illness is severe...

