Development of machine-learning models using pharmacy inquiry database for predicting dose-related inquiries in a tertiary teaching hospital

Int J Med Inform. 2024 May:185:105398. doi: 10.1016/j.ijmedinf.2024.105398. Epub 2024 Feb 29.

Abstract

Background: Drug-related problems (DRPs) are a significant concern in healthcare. Pharmacists play a vital role in detecting and resolving DRPs to improve patient safety. A pharmacy inquiry program was established in a tertiary teaching hospital to document inquiries about physicians' orders, aimed at preventing potential DRPs or providing medication information during order reviews.

Objective: We aimed to develop machine-learning models using a pharmacy inquiry database to predict dose-related inquiries based on prescriptions and patient information.

Methods: This retrospective study analyzed 20,393 pharmacy inquiries collected between January 2018 and February 2023. Data included prescription information (drug ingredient, dose, unit, and frequency), patient characteristics (age, sex, weight, and department), and renal function. The inquiries were categorized into two classes: dose-related inquiries (e.g., wrong dose and inappropriate regimen) and non-dose-related inquiries (e.g., inappropriate drug form and administration route). Six machine-learning models were developed: logistic regression, support vector classifier, decision tree, random forest, extreme gradient boosting, and categorical boosting. To evaluate the performance of the models, the area under the receiver operating characteristic curve and the accuracy were compared.

Results: The CatBoost model achieved the highest performance (sensitivity: 0.92; accuracy: 0.79). The SHapley Additive exPlanations values highlighted the importance of features in the model predictions, drug ingredients, units, and renal function, in that order. Notably, lower renal function positively contributed to the prediction of dose-related inquiries. Additionally, the subsequent feature importance among drug ingredients showed that drugs such as acetylsalicylic acid, famotidine, metformin, and spironolactone strongly influenced the prediction of dose-related inquiries.

Conclusion: Machine-learning models that use pharmacy inquiry data can effectively predict dose-related inquiries. Further external validation and refinement of the models are required for broader applications in healthcare settings. These findings provide valuable guidance for healthcare professionals and highlight the potential of machine learning in pharmacists' decision-making.

Keywords: Drug-related problems; Health information systems; Machine learning; Medication review; Pharmaceutical care; Pharmacy intervention.

MeSH terms

  • Hospitals, Teaching*
  • Humans
  • Machine Learning
  • Pharmaceutical Preparations
  • Pharmacy*
  • Retrospective Studies

Substances

  • Pharmaceutical Preparations