A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study

BackgroundAdverse events refer to incidents with potential or actual harm to patients in hospitals. These events are typically documented through patient safety event (PSE) reports, which consist of detailed narratives providing contextual information on the occurrences. Accu...

Full description

Bibliographic Details
Main Authors: Hongbo Chen, Eldan Cohen, Dulaney Wilson, Myrtede Alfred
Format: Article
Language:English
Published: JMIR Publications 2024-01-01
Series:JMIR Human Factors
Online Access:https://humanfactors.jmir.org/2024/1/e53378
_version_ 1797346531254206464
author Hongbo Chen
Eldan Cohen
Dulaney Wilson
Myrtede Alfred
author_facet Hongbo Chen
Eldan Cohen
Dulaney Wilson
Myrtede Alfred
author_sort Hongbo Chen
collection DOAJ
description BackgroundAdverse events refer to incidents with potential or actual harm to patients in hospitals. These events are typically documented through patient safety event (PSE) reports, which consist of detailed narratives providing contextual information on the occurrences. Accurate classification of PSE reports is crucial for patient safety monitoring. However, this process faces challenges due to inconsistencies in classifications and the sheer volume of reports. Recent advancements in text representation, particularly contextual text representation derived from transformer-based language models, offer a promising solution for more precise PSE report classification. Integrating the machine learning (ML) classifier necessitates a balance between human expertise and artificial intelligence (AI). Central to this integration is the concept of explainability, which is crucial for building trust and ensuring effective human-AI collaboration. ObjectiveThis study aims to investigate the efficacy of ML classifiers trained using contextual text representation in automatically classifying PSE reports. Furthermore, the study presents an interface that integrates the ML classifier with the explainability technique to facilitate human-AI collaboration for PSE report classification. MethodsThis study used a data set of 861 PSE reports from a large academic hospital’s maternity units in the Southeastern United States. Various ML classifiers were trained with both static and contextual text representations of PSE reports. The trained ML classifiers were evaluated with multiclass classification metrics and the confusion matrix. The local interpretable model-agnostic explanations (LIME) technique was used to provide the rationale for the ML classifier’s predictions. An interface that integrates the ML classifier with the LIME technique was designed for incident reporting systems. ResultsThe top-performing classifier using contextual representation was able to obtain an accuracy of 75.4% (95/126) compared to an accuracy of 66.7% (84/126) by the top-performing classifier trained using static text representation. A PSE reporting interface has been designed to facilitate human-AI collaboration in PSE report classification. In this design, the ML classifier recommends the top 2 most probable event types, along with the explanations for the prediction, enabling PSE reporters and patient safety analysts to choose the most suitable one. The LIME technique showed that the classifier occasionally relies on arbitrary words for classification, emphasizing the necessity of human oversight. ConclusionsThis study demonstrates that training ML classifiers with contextual text representations can significantly enhance the accuracy of PSE report classification. The interface designed in this study lays the foundation for human-AI collaboration in the classification of PSE reports. The insights gained from this research enhance the decision-making process in PSE report classification, enabling hospitals to more efficiently identify potential risks and hazards and enabling patient safety analysts to take timely actions to prevent patient harm.
first_indexed 2024-03-08T11:34:49Z
format Article
id doaj.art-eb6dbda28b064afc9c28b9d7f009788c
institution Directory Open Access Journal
issn 2292-9495
language English
last_indexed 2024-03-08T11:34:49Z
publishDate 2024-01-01
publisher JMIR Publications
record_format Article
series JMIR Human Factors
spelling doaj.art-eb6dbda28b064afc9c28b9d7f009788c2024-01-25T14:45:31ZengJMIR PublicationsJMIR Human Factors2292-94952024-01-0111e5337810.2196/53378A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation StudyHongbo Chenhttps://orcid.org/0009-0005-5823-9406Eldan Cohenhttps://orcid.org/0000-0001-5767-6683Dulaney Wilsonhttps://orcid.org/0000-0003-4726-7848Myrtede Alfredhttps://orcid.org/0000-0003-0045-0426 BackgroundAdverse events refer to incidents with potential or actual harm to patients in hospitals. These events are typically documented through patient safety event (PSE) reports, which consist of detailed narratives providing contextual information on the occurrences. Accurate classification of PSE reports is crucial for patient safety monitoring. However, this process faces challenges due to inconsistencies in classifications and the sheer volume of reports. Recent advancements in text representation, particularly contextual text representation derived from transformer-based language models, offer a promising solution for more precise PSE report classification. Integrating the machine learning (ML) classifier necessitates a balance between human expertise and artificial intelligence (AI). Central to this integration is the concept of explainability, which is crucial for building trust and ensuring effective human-AI collaboration. ObjectiveThis study aims to investigate the efficacy of ML classifiers trained using contextual text representation in automatically classifying PSE reports. Furthermore, the study presents an interface that integrates the ML classifier with the explainability technique to facilitate human-AI collaboration for PSE report classification. MethodsThis study used a data set of 861 PSE reports from a large academic hospital’s maternity units in the Southeastern United States. Various ML classifiers were trained with both static and contextual text representations of PSE reports. The trained ML classifiers were evaluated with multiclass classification metrics and the confusion matrix. The local interpretable model-agnostic explanations (LIME) technique was used to provide the rationale for the ML classifier’s predictions. An interface that integrates the ML classifier with the LIME technique was designed for incident reporting systems. ResultsThe top-performing classifier using contextual representation was able to obtain an accuracy of 75.4% (95/126) compared to an accuracy of 66.7% (84/126) by the top-performing classifier trained using static text representation. A PSE reporting interface has been designed to facilitate human-AI collaboration in PSE report classification. In this design, the ML classifier recommends the top 2 most probable event types, along with the explanations for the prediction, enabling PSE reporters and patient safety analysts to choose the most suitable one. The LIME technique showed that the classifier occasionally relies on arbitrary words for classification, emphasizing the necessity of human oversight. ConclusionsThis study demonstrates that training ML classifiers with contextual text representations can significantly enhance the accuracy of PSE report classification. The interface designed in this study lays the foundation for human-AI collaboration in the classification of PSE reports. The insights gained from this research enhance the decision-making process in PSE report classification, enabling hospitals to more efficiently identify potential risks and hazards and enabling patient safety analysts to take timely actions to prevent patient harm.https://humanfactors.jmir.org/2024/1/e53378
spellingShingle Hongbo Chen
Eldan Cohen
Dulaney Wilson
Myrtede Alfred
A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
JMIR Human Factors
title A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
title_full A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
title_fullStr A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
title_full_unstemmed A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
title_short A Machine Learning Approach with Human-AI Collaboration for Automated Classification of Patient Safety Event Reports: Algorithm Development and Validation Study
title_sort machine learning approach with human ai collaboration for automated classification of patient safety event reports algorithm development and validation study
url https://humanfactors.jmir.org/2024/1/e53378
work_keys_str_mv AT hongbochen amachinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT eldancohen amachinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT dulaneywilson amachinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT myrtedealfred amachinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT hongbochen machinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT eldancohen machinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT dulaneywilson machinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy
AT myrtedealfred machinelearningapproachwithhumanaicollaborationforautomatedclassificationofpatientsafetyeventreportsalgorithmdevelopmentandvalidationstudy