Adaptive forecasting of antiretroviral therapy demand using machine learning in India’s national HIV programme
Preprint
Abstract
Antiretroviral therapy (ART) stock-outs interrupt treatment, increase the risk of virologic failure and drug resistance, and erode the population-level benefits of viral suppression. India’s National AIDS Control Organization (NACO) manages one of the world’s largest public ART programmes, where regimen transitions, evolving formulations, changing treatment guidelines, and procurement-driven fluctuations in drug consumption complicate forecasting. We developed an end-to-end, regimen-specific forecasting workflow to support procurement planning during such periods of instability. We analyzed monthly national ART consumption data from January 2013 through December 2024. A privacy-preserving synthetic dataset was used for pipeline development, followed by final evaluation on real national consumption time series. We compared three model classes, comprising six models: (1) classical models (Holt–Winters and ARIMA), (2) transformer models (TimesFM, which is a large pre-trained time-series foundation model, and its variant with logarithmically transformed values), and (3) hybrid models (two variants of a hybrid ARIMA-TimesFM residual model). While the forecast horizon of 18 months remained constant, the train-test period varied across real and synthetic data, as real data were only available until February 2024. For synthetic data, models were trained through June 2023 (test window was July 2023-December 2024), while for real data, models were trained through August 2022 (our test window was September 2022-February 2024). We reported signed percentage deviation to preserve whether models tended to over-predict or under-predict, and selected models by the smallest absolute deviation. We then derived a regimen-specific model-error buffer, applied only to held-out under-prediction, and deployed the workflow through a no-code dashboard. Forecasting performance was determined using signed percentage deviation (SPD), wherein positive deviation represents under-prediction and negative deviation represents over-prediction. Performance varied across regimens, indicating that no single approach was best-performing for all formulations. On synthetic benchmark data, the smallest absolute deviations ranged from 0.39% for adult AZT+3TC to 5.37% for adult DRV/r. On real consumption data, classical methods remained competitive for some series, whereas transformer and hybrid models produced better predictive outcomes for others. For instance, for adult AZT+3TC, the Hybrid 70th percentile achieved an SPD of −2.02%, in contrast to the error range of [−15.7, 8.87] for other models. For adult RTV booster, Holt–Winters achieved an SPD of 1.68%, in contrast to the error range of [14.94%, 17.25%] for the other models. Several formulations, particularly low-volume and transition regimens, nevertheless remained difficult to forecast accurately, underscoring persistent operational uncertainty. This was especially evident across the three pediatric regimens, where all models deviated systematically in the same direction — a more concerning pattern than mere error magnitude alone. For pediatric ABC+3TC, all models over-predicted within a narrow band of [−82.74, −67.43], while for pediatric AZT+3TC and LPV/r 100/25, all models under-predicted, with ranges of [24.93, 63.73] and [18.32, 52.07], respectively. These findings support a portfolio approach to forecasting in national HIV programmes. Rather than replacing established public-health procurement systems, regimen-specific model selection, directional error reporting, and cautious model-error buffering can strengthen decision support during regimen transitions and other periods of unstable demand. Author summary: Reliable demand forecasting for HIV medicines is essential to prevent stock-outs that interrupt treatment and compromise patient outcomes. In India’s public ART programme, procurement planning has traditionally drawn on past consumption. This approach performs reasonably well for mature, high-volume regimens, but becomes less reliable when national treatment guidelines change, new formulations are introduced or scaled up, or patients shift between regimens. We used national ART consumption data from India to compare several forecasting approaches, including classical time-series models, a zero-shot foundation model, and a hybrid residual model. No single method performed best across all drug regimens; performance depended on the specific regimen being forecast. Classical models performed competitively on some relatively stable series, whereas others benefited from more flexible methods. We also developed a practical method for translating model output into procurement recommendations through a regimen-specific model-error buffer, and implemented the workflow in an accessible dashboard. Our findings suggest that forecasting in national HIV programmes should be framed as a regimen-specific decision problem, rather than a search for one universally best model. This strategy could improve procurement planning during periods of programmatic change and help protect continuity of HIV treatment.Keywords
This publication has 6 references indexed in Scilit:
- Long-term forecasting of regional demand for hospital servicesOperations Research for Health Care, 2021
- Medical service demand forecasting using a hybrid model based on ARIMA and self-adaptive filtering methodBMC Medical Informatics and Decision Making, 2020
- Prevalence and factors associated with renal dysfunction in patients on tenofovir disoproxil fumarate-based antiretroviral regimens for HIV infection in Southern IndiaJournal of Virus Eradication, 2018
- The Critical Role of Supply Chains in Preventing Human Immunodeficiency Virus Drug Resistance in Low- and Middle-Income SettingsThe Journal of Infectious Diseases, 2017
- A new metric of absolute percentage error for intermittent demand forecastsInternational Journal of Forecasting, 2016
- Effects of unplanned treatment interruptions on HIV treatment failure – results from TAHODTropical Medicine & International Health, 2016