Cargando…
Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study
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 guideli...
Autores principales: | , , , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
BMJ Publishing Group
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8852656/ https://www.ncbi.nlm.nih.gov/pubmed/35172999 http://dx.doi.org/10.1136/bmjopen-2021-052911 |
_version_ | 1784653085219487744 |
---|---|
author | Botelle, Riley Bhavsar, Vishal Kadra-Scalzo, Giouliana Mascio, Aurelie Williams, Marcus V Roberts, Angus Velupillai, Sumithra Stewart, Robert |
author_facet | Botelle, Riley Bhavsar, Vishal Kadra-Scalzo, Giouliana Mascio, Aurelie Williams, Marcus V Roberts, Angus Velupillai, Sumithra Stewart, Robert |
author_sort | Botelle, Riley |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-8852656 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | BMJ Publishing Group |
record_format | MEDLINE/PubMed |
spelling | pubmed-88526562022-03-03 Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study Botelle, Riley Bhavsar, Vishal Kadra-Scalzo, Giouliana Mascio, Aurelie Williams, Marcus V Roberts, Angus Velupillai, Sumithra Stewart, Robert BMJ Open Health Informatics 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. BMJ Publishing Group 2022-02-16 /pmc/articles/PMC8852656/ /pubmed/35172999 http://dx.doi.org/10.1136/bmjopen-2021-052911 Text en © Author(s) (or their employer(s)) 2022. Re-use permitted under CC BY. Published by BMJ. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed in accordance with the Creative Commons Attribution 4.0 Unported (CC BY 4.0) license, which permits others to copy, redistribute, remix, transform and build upon this work for any purpose, provided the original work is properly cited, a link to the licence is given, and indication of whether changes were made. See: https://creativecommons.org/licenses/by/4.0/. |
spellingShingle | Health Informatics Botelle, Riley Bhavsar, Vishal Kadra-Scalzo, Giouliana Mascio, Aurelie Williams, Marcus V Roberts, Angus Velupillai, Sumithra Stewart, Robert Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title | Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title_full | Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title_fullStr | Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title_full_unstemmed | Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title_short | Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
title_sort | can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study |
topic | Health Informatics |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8852656/ https://www.ncbi.nlm.nih.gov/pubmed/35172999 http://dx.doi.org/10.1136/bmjopen-2021-052911 |
work_keys_str_mv | AT botelleriley cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT bhavsarvishal cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT kadrascalzogiouliana cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT mascioaurelie cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT williamsmarcusv cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT robertsangus cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT velupillaisumithra cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy AT stewartrobert cannaturallanguageprocessingmodelsextractandclassifyinstancesofinterpersonalviolenceinmentalhealthcareelectronicrecordsanappliedevaluativestudy |