Back to Search
Start Over
Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study
- Source :
- BMJ Open, Vol 12, Iss 2 (2022)
- Publication Year :
- 2022
- Publisher :
- BMJ Publishing Group, 2022.
-
Abstract
- Objective This paper evaluates the application of a natural language processing (NLP) model for extracting clinical text referring to interpersonal violence using electronic health records (EHRs) from a large mental healthcare provider.Design A multidisciplinary team iteratively developed guidelines for annotating clinical text referring to violence. Keywords were used to generate a dataset which was annotated (ie, classified as affirmed, negated or irrelevant) for: presence of violence, patient status (ie, as perpetrator, witness and/or victim of violence) and violence type (domestic, physical and/or sexual). An NLP approach using a pretrained transformer model, BioBERT (Bidirectional Encoder Representations from Transformers for Biomedical Text Mining) was fine-tuned on the annotated dataset and evaluated using 10-fold cross-validation.Setting We used the Clinical Records Interactive Search (CRIS) database, comprising over 500 000 de-identified EHRs of patients within the South London and Maudsley NHS Foundation Trust, a specialist mental healthcare provider serving an urban catchment area.Participants Searches of CRIS were carried out based on 17 predefined keywords. Randomly selected text fragments were taken from the results for each keyword, amounting to 3771 text fragments from the records of 2832 patients.Outcome measures We estimated precision, recall and F1 score for each NLP model. We examined sociodemographic and clinical variables in patients giving rise to the text data, and frequencies for each annotated violence characteristic.Results Binary classification models were developed for six labels (violence presence, perpetrator, victim, domestic, physical and sexual). Among annotations affirmed for the presence of any violence, 78% (1724) referred to physical violence, 61% (1350) referred to patients as perpetrator and 33% (731) to domestic violence. NLP models’ precision ranged from 89% (perpetrator) to 98% (sexual); recall ranged from 89% (victim, perpetrator) to 97% (sexual).Conclusions State of the art NLP models can extract and classify clinical text on violence from EHRs at acceptable levels of scale, efficiency and accuracy.
- Subjects :
- Medicine
Subjects
Details
- Language :
- English
- ISSN :
- 20446055
- Volume :
- 12
- Issue :
- 2
- Database :
- Directory of Open Access Journals
- Journal :
- BMJ Open
- Publication Type :
- Academic Journal
- Accession number :
- edsdoj.660e7216f0634800bfa3863de07615bd
- Document Type :
- article
- Full Text :
- https://doi.org/10.1136/bmjopen-2021-052911