IDEAS home Printed from https://ideas.repec.org/a/kap/hcarem/v26y2023i3d10.1007_s10729-022-09627-y.html
   My bibliography  Save this article

Predicting drug shortages using pharmacy data and machine learning

Author

Listed:
  • Raman Pall

    (National Research Council of Canada)

  • Yvan Gauthier

    (National Research Council of Canada)

  • Sofia Auer

    (National Research Council of Canada)

  • Walid Mowaswes

    (PharmaGuide Inc)

Abstract

Drug shortages are a global and complex issue having negative impacts on patients, pharmacists, and the broader health care system. Using sales data from 22 Canadian pharmacies and historical drug shortage data, we built machine learning models predicting shortages for the majority of the drugs in the most-dispensed interchangeable groups in Canada. When breaking drug shortages into four classes (none, low, medium, high), we were able to correctly predict the shortage class with 69% accuracy and a kappa value of 0.44, one month in advance, without access to any inventory data from drug manufacturers and suppliers. We also predicted 59% of the shortages deemed to be most impactful (given the demand for the drugs and the potential lack of interchangeable options). The models consider many variables, including the average days of a drug supply per patient, the total days of a drug supply, previous shortages, and the hierarchy of drugs within different drug groups and therapeutic classes. Once in production, the models will allow pharmacists to optimize their orders and inventories, and ultimately reduce the impact of drug shortages on their patients and operations.

Suggested Citation

  • Raman Pall & Yvan Gauthier & Sofia Auer & Walid Mowaswes, 2023. "Predicting drug shortages using pharmacy data and machine learning," Health Care Management Science, Springer, vol. 26(3), pages 395-411, September.
  • Handle: RePEc:kap:hcarem:v:26:y:2023:i:3:d:10.1007_s10729-022-09627-y
    DOI: 10.1007/s10729-022-09627-y
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10729-022-09627-y
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10729-022-09627-y?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Gérard Biau & Erwan Scornet, 2016. "A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 197-227, June.
    2. Hyndman, Rob J. & Koehler, Anne B., 2006. "Another look at measures of forecast accuracy," International Journal of Forecasting, Elsevier, vol. 22(4), pages 679-688.
    3. Mohsen Sadegh Amalnick & Naser Habibifar & Mahdi Hamid & Mahdi Bastan, 2020. "An intelligent algorithm for final product demand forecasting in pharmaceutical units," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 11(2), pages 481-493, April.
    4. Sheldon Jacobson & Edward Sewell & Ruben Proano, 2006. "An analysis of the pediatric vaccine supply shortage problem," Health Care Management Science, Springer, vol. 9(4), pages 371-389, November.
    5. Gérard Biau & Erwan Scornet, 2016. "Rejoinder on: A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 264-268, June.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Diogenis A. Kiziridis & Anna Mastrogianni & Magdalini Pleniou & Spyros Tsiftsis & Fotios Xystrakis & Ioannis Tsiripidis, 2023. "Simulating Future Land Use and Cover of a Mediterranean Mountainous Area: The Effect of Socioeconomic Demands and Climatic Changes," Land, MDPI, vol. 12(1), pages 1-23, January.
    2. Hou, Lei & Elsworth, Derek & Zhang, Fengshou & Wang, Zhiyuan & Zhang, Jianbo, 2023. "Evaluation of proppant injection based on a data-driven approach integrating numerical and ensemble learning models," Energy, Elsevier, vol. 264(C).
    3. Ma, Zhikai & Huo, Qian & Wang, Wei & Zhang, Tao, 2023. "Voltage-temperature aware thermal runaway alarming framework for electric vehicles via deep learning with attention mechanism in time-frequency domain," Energy, Elsevier, vol. 278(C).
    4. Patrick Krennmair & Timo Schmid, 2022. "Flexible domain prediction using mixed effects random forests," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 71(5), pages 1865-1894, November.
    5. Manuel J. García Rodríguez & Vicente Rodríguez Montequín & Francisco Ortega Fernández & Joaquín M. Villanueva Balsera, 2019. "Public Procurement Announcements in Spain: Regulations, Data Analysis, and Award Price Estimator Using Machine Learning," Complexity, Hindawi, vol. 2019, pages 1-20, November.
    6. Sachin Kumar & Zairu Nisha & Jagvinder Singh & Anuj Kumar Sharma, 2022. "Sensor network driven novel hybrid model based on feature selection and SVR to predict indoor temperature for energy consumption optimisation in smart buildings," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 13(6), pages 3048-3061, December.
    7. Escribano, Álvaro & Wang, Dandan, 2021. "Mixed random forest, cointegration, and forecasting gasoline prices," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1442-1462.
    8. Yigit Aydede & Jan Ditzen, 2022. "Identifying the regional drivers of influenza-like illness in Nova Scotia with dominance analysis," Papers 2212.06684, arXiv.org.
    9. Siyoon Kwon & Hyoseob Noh & Il Won Seo & Sung Hyun Jung & Donghae Baek, 2021. "Identification Framework of Contaminant Spill in Rivers Using Machine Learning with Breakthrough Curve Analysis," IJERPH, MDPI, vol. 18(3), pages 1-26, January.
    10. Yan, Ran & Wang, Shuaian & Du, Yuquan, 2020. "Development of a two-stage ship fuel consumption prediction and reduction model for a dry bulk ship," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 138(C).
    11. Yi Cao & Xue Li, 2022. "Multi-Model Attention Fusion Multilayer Perceptron Prediction Method for Subway OD Passenger Flow under COVID-19," Sustainability, MDPI, vol. 14(21), pages 1-16, November.
    12. Filmer,Deon P. & Nahata,Vatsal & Sabarwal,Shwetlena, 2021. "Preparation, Practice, and Beliefs : A Machine Learning Approach to Understanding Teacher Effectiveness," Policy Research Working Paper Series 9847, The World Bank.
    13. Daniel Boller & Michael Lechner & Gabriel Okasa, 2021. "The Effect of Sport in Online Dating: Evidence from Causal Machine Learning," Papers 2104.04601, arXiv.org.
    14. Jorge Antunes & Peter Wanke & Thiago Fonseca & Yong Tan, 2023. "Do ESG Risk Scores Influence Financial Distress? Evidence from a Dynamic NDEA Approach," Sustainability, MDPI, vol. 15(9), pages 1-32, May.
    15. Lyudmyla Kirichenko & Tamara Radivilova & Vitalii Bulakh, 2018. "Machine Learning in Classification Time Series with Fractal Properties," Data, MDPI, vol. 4(1), pages 1-13, December.
    16. Ivan Brandić & Lato Pezo & Nikola Bilandžija & Anamarija Peter & Jona Šurić & Neven Voća, 2023. "Comparison of Different Machine Learning Models for Modelling the Higher Heating Value of Biomass," Mathematics, MDPI, vol. 11(9), pages 1-14, April.
    17. José A. Ferreira, 2022. "Models under which random forests perform badly; consequences for applications," Computational Statistics, Springer, vol. 37(4), pages 1839-1854, September.
    18. Villacis, Alexis & Badruddoza, Syed & Mayorga, Joaquin & Mishra, Ashok K., 2022. "Using Machine Learning to Test the Consistency of Food Insecurity Measures," 2022 Annual Meeting, July 31-August 2, Anaheim, California 322472, Agricultural and Applied Economics Association.
    19. Valeria D’Amato & Rita D’Ecclesia & Susanna Levantesi, 2022. "ESG score prediction through random forest algorithm," Computational Management Science, Springer, vol. 19(2), pages 347-373, June.
    20. Pourkhanali, Armin & Khezr, Peyman & Nepal, Rabindra & Jamasb, Tooraj, 2024. "Navigating the crisis: Fuel price caps in the Australian national wholesale electricity market," Energy Economics, Elsevier, vol. 129(C).

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:kap:hcarem:v:26:y:2023:i:3:d:10.1007_s10729-022-09627-y. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.