Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Currently accepted at: JMIR Formative Research

Date Submitted: May 7, 2026
Date Accepted: Nov 22, 2026

This paper has been accepted and is currently in production.

It will appear shortly on 10.2196/100048

The final accepted version (not copyedited yet) is in this tab.

Machine Learning for Healthcare Accessibility: Developing a Pharmacy Desert Index for U.S. Counties

  • Rafat Mahmud Hridoy; 
  • Nathan Umberger; 
  • Azad M Madni; 
  • Soundar Kumara

ABSTRACT

Background:

Pharmacy deserts, defined as areas lacking pharmacies within a 15-minute drive, are becoming increasingly common across the United States and present a significant health care concern. As this issue grows, establishing a methodology to predict whether a county will become a pharmacy desert is crucial.

Objective:

Develop a methodology using machine learning to create a county-level Pharmacy Desert Index (PDI) that assesses the vulnerability of each county.

Methods:

This study utilized county-level demographic, socioeconomic, and healthcare data from 735 counties across 7 states: Pennsylvania, Ohio, California, Texas, Indiana, Kentucky, and Montana. To classify pharmacy desert area accurately, five machine learning models—Decision Tree, Random Forest, XGBoost, Support Vector Machine (SVM), and K-Nearest Neighbors (KNN)—were initially considered. Each model was then evaluated in the validation set against accuracy, precision, recall, and F1 score to select the best-performing machine learning classification model. The PDI was generated using the mean absolute SHAP values and percentile rankings of the best-performing model's features. All the calculations and analysis were completed from July 2024 to November 2024.

Results:

The best algorithm was XGBoost, which achieved the highest validation accuracy of 99.28% and a test accuracy of 96.75%. The PDI then used XGBoost’s SHAP (SHapley Additive exPlanations) values and percentile rankings for each county to determine their vulnerability score. Our analysis resulted in 78 counties, or more than 10%, with High-level (0.61-1.00) vulnerability.

Conclusions:

The calculated PDI offers a strong indication of the health situation in a county and determines the likelihood of that county becoming a pharmacy desert, rather than relying solely on geospatial data. Policymakers can utilize the PDI to assess the status of their county and recommend changes based on the factors contributing to the emergence of a pharmacy desert, as well as to help alleviate adverse health outcomes.


 Citation

Please cite as:

Hridoy RM, Umberger N, Madni AM, Kumara S

Machine Learning for Healthcare Accessibility: Developing a Pharmacy Desert Index for U.S. Counties

JMIR Formative Research. 22/11/2026:100048 (forthcoming/in press)

DOI: 10.2196/100048

URL: https://preprints.jmir.org/preprint/100048

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.