BMJ health & care informatics

Automatic extraction of multiple contributing factors in medication-related incidents based on the P-mSHELL model: development and evaluation of a BERT-based multilabel classifier.

Sayaka Ebara, Hayato Kizaki, Yuri Takamatsu, Satoshi Watabe, Shungo Imai, Shuntaro Yada, Eiji Aramaki, Osamu Yasumuro,

Keio University Faculty of Pharmacy, Minato-ku, Tokyo, Japan. · Institute of Library, Information and Media Science, University of Tsukuba, Tsukuba, Ibaraki, Japan.

Key points

From the paper's conclusion
  • This study demonstrates the feasibility of NLP-based multilabel extraction of contributing factors within the P-mSHELL framework, supporting scalable and consistent medication-safety incident analysis.

Abstract

OBJECTIVES: Manual analysis of contributing factors in free-text incident narratives is labour intensive. We aimed to develop and internally validate a multilabel natural language processing (NLP) classifier that extracts multiple contributing factors from medication-related incident reports using the P-mSHELL human factors framework. METHODS: We analysed 5058 sentences from 1192 medication-related incident reports (2020–2022) from the Japan Council for Quality Health Care Medical Accident Information Collection Project. Eight contributing factor categories were defined based on a modified P-mSHELL model: Medical Professional (MP), Patient Family (PF), Patient (P), Management (M), Software (S), Hardware (H), Environment (E) and Liveware-Liveware (L-L). Inter-annotator agreement was assessed using Cohen’s kappa (κ) on a random subset. A multilabel classifier was developed by fine-tuning a pretrained Japanese Bidirectional Encoder Representations from Transformers (BERT) model and evaluated using report-level fivefold cross-validation, F1 scores and exact match accuracy. RESULTS: Substantial inter-annotator agreement (κ=0.676–1.000) was observed across all categories. Multiple labels were assigned to 67.0% of sentences, with Medical Professional (62.9%) and Software (59.9%) most frequent. The classifier achieved F1 scores from 0.490 (Hardware) to 0.902 (Medical Professional), with sentence-level exact match accuracy of 0.512 (95% CI 0.496 to 0.527). DISCUSSION: The classifier performed well for major factor categories, although its accuracy does not yet support fully automated analysis; pending external validation, it is best positioned as a decision support tool to assist—rather than replace—expert review of incident reports. CONCLUSION: This study demonstrates the feasibility of NLP-based multilabel extraction of contributing factors within the P-mSHELL framework, supporting scalable and consistent medication-safety incident analysis.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Automatic extraction of multiple contributing factors in medication-related incidents based on the P-mSHELL model: development and evaluation of a BERT-based multilabel classifier — Science Skim