Spatiotemporal Prediction of Medical Device Sales Using Hybrid LSTM GNN in South Sumatra
DOI:
https://doi.org/10.47709/cnahpc.v8i4.9538Dimension:
Keywords:
Deep Learning, Graph Neural Network, Hybrid Model, Long Short Term Memory, Medical Devices, Spatiotemporal PredictionAbstract
Forecasting medical device purchases at the regional level supports equitable allocation, procurement planning, and distribution scheduling across administrative regions. In developing regions where infrastructure and logistics capacity are unevenly distributed, anticipating regional purchase patterns mitigates supply imbalances and improves the continuity of clinical services. The demand for medical devices exhibits complex spatiotemporal characteristics, where demand variations are influenced by temporal dynamics and interregional spatial connectivity. The objective of this study is to apply and evaluate a Hybrid Long Short-Term Memory and Graph Neural Network (LSTM-GNN) model for predicting the spatiotemporal demand for medical devices, to analyze the effect of spatial relationships on demand variations, and to identify optimal hyperparameter combinations. The methodology uses medical device sales data from PT Parit Panjang, a distribution company in South Sumatra, covering July 2020 to October 2025, comprising 10,878 unique invoices across 16 regencies and cities (Musi Rawas Utara, with only 2 invoices in the study period, was merged into Musi Rawas). Records were aggregated into a daily panel, split chronologically into training, validation, and testing sets (July 2020 to December 2023, January to December 2024, and January to October 2025), and normalized with a log transformation fitted on the training set only. Because 81.54% of all daily region-level targets across the full panel are zero (84.85% in the test period), the problem is formulated as zero-inflated forecasting with two stages: a binary classifier that predicts whether a sale occurs and a regression model that predicts the sales amount on non-zero days. A binary COVID-19 pandemic indicator (July 2020 to December 2022) is included as an exogenous input channel. A spatial graph was built from regional proximity using Haversine distance with three nearest neighbors and a maximum distance threshold of 104.66 km. Temporal dynamics were modeled with LSTM, spatial dependencies with a Graph Convolutional Network (GCN), and both representations were combined through concatenation followed by a fully connected layer. The Hybrid LSTM-GNN achieved an R-squared of 0.0523, an RMSE of 8,002,603 IDR, and a MAE of 1,881,358 IDR on the original scale, outperforming the standalone LSTM (R-squared 0.0433), the standalone GNN (0.0059), and the always-zero baseline (0.0059). The classification stage achieved 90.67% accuracy and an AUC of 0.861. Diebold-Mariano tests confirm that the hybrid model improves over the standalone LSTM and GNN and over the statistical baselines at p < 0.001, but its practical advantage is limited to the classification stage. A random search over 30 configurations identified a superior configuration (LSTM hidden 219, GNN hidden 107, dropout 0.17) reaching an R-squared of 0.0582, the best among all evaluated models. The COVID-19 indicator provides a small improvement, and replacing the distance-based graph with the actual distribution network (a star centered on Palembang) raises the R-squared to 0.0703. In conclusion, the zero-inflated Hybrid LSTM-GNN framework supports regional medical device sales forecasting and distribution planning, with the classification stage providing the dominant predictive signal.
Downloads
References
Alourani, A., Khan, N. A., Ashfaq, F., & Jhanjhi, N. Z. (2023). BiLSTM?and GNN?Based Spatiotemporal Traffic Flow Forecasting with Correlated Weather Data. Journal of Advanced Transporation. https://doi.org/10.1155/2023/8962283
Beldek, T., Konyal?o?lu, A., & Camgoz Akdag, H. (2019). Supply Chain Management in Healthcare: A Literature Review. https://doi.org/10.1007/978-3-030-31343-2_50
Chen, W., Zhao, Z., Liu, J., Chen, P. C. Y., & Wu, X. (2017). LSTM Network: A Deep Learning Approach For Short-Term Traffic Forecast. IET Intelligent Transport Systems, 11. https://doi.org/10.1049/iet-its.2016.0208
Cheng, Michael. (2003). Medical device regulations?: global overview and guiding principles. World Health Organization.
Heryati, A., Stiawan, D., Setiawan, H., Rini, D. P., & Budiarto, R. (2024). Green Transportation Route Model for Industrial Goods Delivery with Genetic Algorithm. 2024 11th International Conference on Electrical Engineering, Computer Science and Informatics (EECSI), 775–781. https://doi.org/10.1109/EECSI63442.2024.10776095
Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9, 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
Koç, E., & Türko?lu, M. (2022). Forecasting of medical equipment demand and outbreak spreading based on deep long short-term memory network: the COVID-19 pandemic in Turkey. Signal, Image and Video Processing, 16(3), 613–621. https://doi.org/10.1007/s11760-020-01847-5
Kuppan, K., Acharya, D. B., & B, D. (2024). LSTM-GNN Synergy: A New Frontier in Stock Price Prediction. Journal of Advances in Mathematics and Computer Science, 39(12), 95–109. https://doi.org/10.9734/jamcs/2024/v39i121952
Liu, J., & Liu, J. (2024). Research on Predicting Wind Turbine Power Generation based on Hybrid LSTM-GNN Model. International Core Journal of Engineering. Retrieved from https://www.airitilibrary.com/Article/Detail/P20190813001-N202411300006-00008
Longa, A., Lachi, V., Santin, G., Bianchini, M., Lepri, B., Lio, P., … Passerini, A. (2023). Graph Neural Networks for temporal graphs: State of the art, open challenges, and opportunities.
Luo, M., Dou, H., & Zheng, N. (2024). Spatiotemporal Prediction of Urban Traffics Based on Deep GNN. Computers, Materials &Continua. Retrieved from https://search.ebscohost.com/login.aspx?direct=true&profile=ehost&scope=site&authtype=crawler&jrnl=15462218&AN=175291515&h=qgjot5heXUUNvFKaEFDSunG1q3%2FBgMKOK1Drwik7yg24rjme0mlR2dWT0Ky7R1OoWZ0vnOTNwLcTKXU45tRj4A%3D%3D&crl=c
Patharkar, A., Cai, F., Al-Hindawi, F., & Wu, T. (2024). Predictive modeling of biomedical temporal data in healthcare applications: review and future directions. Frontiers in Physiology, Vol. 15. Frontiers Media SA. https://doi.org/10.3389/fphys.2024.1386760
Pratama, M. A. Y., Setiawan, H., & Purnamasari, E. (2025). CNN-Based Identification of Longan Varieties Using Leaf Vein Patterns. Brilliance: Research of Artificial Intelligence, 5(2), 870–878. https://doi.org/10.47709/brilliance.v5i2.6926
Santos, V. O., Rocha, P. A. C., Scott, J., Thé, J. V. G., & Gharabaghi, B. (2023). Spatiotemporal analysis of bidimensional wind speed forecasting: Development and thorough assessment of LSTM and ensemble graph neural networks on the Dutch database. Energy. Retrieved from https://www.sciencedirect.com/science/article/pii/S036054422301246X
Shao, C., Pan, J., Wei, Y., Zhang, W., & Lin, Z. (2023). Fault Prognostics of Elevator Door System Based on LSTM-GNN. Global Reliability and Prognostics and Health Management Conference (PHM-Hangzhou). Retrieved from https://ieeexplore.ieee.org/abstract/document/10482723/
Sonani, M. S., Badii, A., & Moin, A. (2025). Stock Price Prediction Using a Hybrid LSTM-GNN Model: Integrating Time-Series and Graph-Based Analysis.
Sunder, R., Paul, V., Punia, S. K., Konduri, B., Nabilal, K. V, Lilhore, U. K., … Tlija, M. (2024). An advanced hybrid deep learning model for accurate energy load prediction in smart building. Energy Exploration & Exploitation. https://doi.org/10.1177/01445987241267822
Tunnicliffe Wilson, G. (2016). Time Series Analysis: Forecasting and Control,5th Edition, by George E. P. Box, Gwilym M. Jenkins, Gregory C. Reinsel and Greta M. Ljung, 2015. Published by John Wiley and Sons Inc., Hoboken, New Jersey, pp. 712. ISBN: 978-1-118-67502-1. Journal of Time Series Analysis, 37, n/a-n/a. https://doi.org/10.1111/jtsa.12194
Veli?kovi?, P., Casanova, A., Liò, P., Cucurull, G., Romero, A., & Bengio, Y. (2018). Graph attention networks. 6th International Conference on Learning Representations, ICLR 2018 - Conference Track Proceedings. International Conference on Learning Representations, ICLR. https://doi.org/10.1007/978-3-031-01587-8_7
Wen, Z., Zhou, H., Shi, X., Peng, J., & Wang, L. (2024). LSTM-GNN: A Multi-Channel Model for Molecular Properties Prediction. Proceedings of the 2024 16th International Conference on Bioinformatics and Biomedical Technology. https://doi.org/10.1145/3674658.3674677
World Health Organization. (2023). Model List of Essential Medicines. In 23rd List: Vol. 23rd. https://www.who.int/publications/i/item/WHO-MHP-HPS-EML-2023.02. Retrieved from https://www.who.int/publications/i/item/WHO-MHP-HPS-EML-2023.02
Wu, Z., Pan, S., Long, G., Jiang, J., & Zhang, C. (2019). Graph wavenet for deep spatial-temporal graph modeling. IJCAI International Joint Conference on Artificial Intelligence, 2019-August, 1907–1913. International Joint Conferences on Artificial Intelligence. https://doi.org/10.24963/ijcai.2019/264
Xu, K., Hu, W., Leskovec, J., & Jegelka, S. (2018). How powerful are graph neural networks? ArXiv Preprint ArXiv:1810.00826.
Yang, Y., Liu, Y., Zhang, Y., Shu, S., & Zheng, J. (2025). DEST-GNN: A double-explored spatio-temporal graph neural network for multi-site intra-hour PV power forecasting. Applied Energy. Retrieved from https://www.sciencedirect.com/science/article/pii/S0306261924021275
Yang, Z., Liu, Z., Zhou, J., Song, C., Xiang, Q., He, Q., … Zhang, J. (2023). A graph neural network (GNN) method for assigning gas calorific values to natural gas pipeline networks. Energy. Retrieved from https://www.sciencedirect.com/science/article/pii/S0360544223012690
Ye, Y., Cao, Y., Dong, Y., & Yan, H. (2024). A Graph Neural Network and Transformer-Based Model for Pm2.5 Prediction Through Spatiotemporal Correlation. https://doi.org/10.2139/ssrn.4979506
Zhao, Y., Qi, J., Liu, Q., & Zhang, R. (2021). WGCN: graph convolutional networks with weighted structural features. Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, 624–633.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Khoirusy Syafaat, Herri Setiawan

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

