Pharmacists' perceptions of a machine learning model for the identification of atypical medication orders

J Am Med Inform Assoc. 2021 Jul 30;28(8):1712-1718. doi: 10.1093/jamia/ocab071.

Abstract

Objectives: The study sought to assess the clinical performance of a machine learning model aiming to identify unusual medication orders.

Materials and methods: This prospective study was conducted at CHU Sainte-Justine, Canada, from April to August 2020. An unsupervised machine learning model based on GANomaly and 2 baselines were trained to learn medication order patterns from 10 years of data. Clinical pharmacists dichotomously (typical or atypical) labeled orders and pharmacological profiles (patients' medication lists). Confusion matrices, areas under the precision-recall curve (AUPRs), and F1 scores were calculated.

Results: A total of 12 471 medication orders and 1356 profiles were labeled by 25 pharmacists. Medication order predictions showed a precision of 35%, recall (sensitivity) of 26%, and specificity of 97% as compared with pharmacist labels, with an AUPR of 0.25 and an F1 score of 0.30. Profile predictions showed a precision of 49%, recall of 75%, and specificity of 82%, with an AUPR of 0.60, and an F1 score of 0.59. The model performed better than the baselines. According to the pharmacists, the model was a useful screening tool, and 9 of 15 participants preferred predictions by medication, rather than by profile.

Discussion: Predictions for profiles had higher F1 scores and recall compared with medication order predictions. Although the performance was much better for profile predictions, pharmacists generally preferred medication order predictions.

Conclusions: Based on the AUPR, this model showed better performance for the identification of atypical pharmacological profiles than for medication orders. Pharmacists considered the model a useful screening tool. Improving these predictions should be prioritized in future research to maximize clinical impact.

Keywords: clinical; clinical pharmacy information systems; decision support systems; hospital pharmaceutical services; machine learning; medical order entry systems.

MeSH terms

  • Humans
  • Machine Learning
  • Medication Errors*
  • Perception
  • Pharmacists*
  • Prospective Studies