ASPG Menu
search

American Scientific Publishing Group

verified Journal

Journal of Artificial Intelligence and Metaheuristics

ISSN
Online: 2833-5597
Frequency

Continuous publication

Publication Model

Open access journal. All articles are freely available online with no APC.

Journal of Artificial Intelligence and Metaheuristics
Full Length Article

Volume 11Issue 2PP: 74–86 • 2026

A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover

Sara albuainain 1*
1School of ICT, Faculty of Engineering, Design and Information & Communications Technology (EDICT), Bahrain Polytechnic, PO Box 33349, Isa Town, Bahrain
* Corresponding Author.
Received: January 08, 2026 Revised: March 10, 2026 Accepted: May 12, 2026

Abstract

Point-of-Sale (POS) systems support retail transaction processing, inventory management, and operational decisionmaking. However, many traditional POS systems rely on a single centralized database, creating a critical point of failure during server faults, database errors, or network disruptions. Conventional POS systems may also lack intelligent forecasting capabilities, causing inventory decisions to depend on manual estimation or fixed reorder rules. These limitations can lead to operational interruption, inventory inconsistency, and inefficient stock management. This study proposes a high-availability smart POS system integrated with AI-based inventory forecasting. The framework uses a dual-database architecture consisting of a primary database and a secondary backup database. Application-level failover redirects operations automatically when the primary database becomes unavailable, while an event-driven backup mechanism synchronizes important data after critical transactions. The forecasting component was developed using the Rossmann Store Sales dataset. Several models were evaluated, including Random Forest (RF), Bagging, CatBoost, XGBoost, and KNN Regressor. Optimization algorithms including PSO, MVO, HHO, and DE were also integrated with RF. The results showed that baseline RF achieved the best overall performance, with MSE = 0.080454, RMSE = 0.283643, MAE = 0.184264, R2 = 0.919712, and WI = 0.978542. Among optimized models, PSO + RF achieved the strongest optimizer-based result, with MSE = 0.081480 and RMSE = 0.285446. The implemented system also demonstrated successful database connectivity, failover readiness, and automatic backup execution. The findings confirm that the proposed framework can support continuous retail operation while providing accurate AI-based forecasting and inventory recommendations.

Keywords

Smart POS Machine learning forecasting Application-level failover Inventory management Random Forest

References

[1] G. Venkatasubbu and R. Devabhaktuni, “Integrating generative ai into retail checkout systems: A case study in cloud and application integration,” in 2026 14th International Symposium on Digital Forensics and Security (ISDFS), 2026, pp. 1–6.

[2] V. R. Polamreddy, “Architecting financially compliant enterprise point-of-sale systems: Data integrity and revenue recognition at scale,” International Journal of Advanced Research in Computer Science & Technology (IJARCST), vol. 8, no. 5, pp. 12 993–13 104, 2025.

[3] U. Kumar, D. Krishnamoorthy, and R. Ghadiyaram, “Omnichannel retail analytics: A scalable big data architecture using data vault 2.0 and apache spark for retail intelligence,” in 2025 IEEE Conference on Cloud and Big Data Computing (CBDCom), 2025, pp. 207–212.

[4] S. Chen and H. Ding, “The application and optimization method of intelligent decision support systems in chain operation performance management,” International Journal of Information Technologies and Systems Approach (IJITSA), vol. 19, no. 1, pp. 1–17, 2026.

[5] M. Rana, T. Joshi, and M. Malik, “Enhancing retail system resilience through integrated cloudless ai and aiops: A framework for real-time market adaptation and consumer behavior response,” in 2025 IEEE International Conference on Artificial Intelligence in Engineering and Technology (IICAIET), 2025, pp. 407–412.

[6] A. Handojo, L. P. Dewi, and C. Liadi, “Optimizing inventory control through hybrid abc-ved segmentation and adaptive reorder points: A case study in electrical wholesale operations,” in 2025 12th International Conference on Electrical Engineering, Computer Science and Informatics (EECSI), 2025, pp. 735–741.

[7] D. Guru, “Ai-driven retail replenishment: Deriving patterns and adaptive policies from sales and external data streams,” in 2025 5th International Conference of Science and Information Technology in Smart Administration (ICSINTESA), 2025, pp. 475–481.

[8] I. Kostenko, “Event-driven demand model: Semantic mapping of non-transactional intent signals to product skus in proactive e-commerce systems,” Preprint, 2025.

[9] S. Rizal and D.-S. Kim, “Enhancing blockchain consensus mechanisms: A comprehensive survey on machine learning applications and optimizations,” Blockchain: Research and Applications, vol. 6, no. 4, p. 100302, 2025.

[10] V. Athiththan and P. Sivasothy, “Enhancing blockchain security through hybrid pos–pbft consensus and machine learning-based anomaly detection,” in 2026 IEEE International Research Conference on Smart Computing and Systems Engineering (SCSE), vol. 9, 2026, pp. 1–6.

[11] N. Tiwari and S. K. Prasad, “Agentic ai-driven optimizing demand forecasting in retail systems with ai-based predictive analytics,” in 2025 International Conference on Artificial Intelligence and Machine Vision (AIMV), 2025, pp. 1–5.

[12] G. Radhakrishnan, P. P. Gaikwad, V. Pimplapure, I. A. Mohammed, A. D. Todmal, and S. H. V. Sanne, “Aibased demand forecasting system for supply chain optimization,” in 2025 Second International Conference on Intelligent Technologies for Sustainable Electric and Communications Systems (iTech SECOM), 2025, pp. 1–7.

[13] A. Kumar, S. P. Singh, and G. Sakthi, “Ai-driven inventory forecasting pos system,” in 2026 5th International Conference on Innovative Practices in Technology and Management (ICIPTM), 2026, pp. 1–6.

[14] S. Pungky and J. Wiratama, “Integrating machine learning based sales forecasting with odoo erp for automated inventory management in a retail company,” in 2025 4th International Conference on Electronics Representation and Algorithm (ICERA), 2025, pp. 01–06.

[15] R. A. Perumal, A. Maurya, C. Stalin, A. K. Mathur, M. Sunitha, and N. Keshari, “Ai-driven predictive analytics and deep learning for demand forecasting and inventory optimization in supply chain management,” in Proceedings of Data Analytics and Management. Cham: Springer Nature Switzerland, 2026, pp. 86–96.

[16] G. Theodoridis and A. Tsadiras, “Retail demand forecasting: A comparative analysis of deep neural networks and the proposal of lstmixer, a linear model extension,” Information, vol. 16, no. 7, p. 596, 2025.

[17] S. Praveena and S. P. Devi, “Optimizing retail operations through hybrid machine learning and deep learning techniques in demand forecasting,” Cybernetics and Systems, vol. 57, no. 1, pp. 1–43, 2026.

[18] S. Mansur, K. Sattar, S. E. Hosseini, S. Pervez, I. Ahmad, K. Saleem, and A. Z. Elhendi, “Sales forecasting for retail stores using hybrid neural networks and salesaffecting variables,” PeerJ Computer Science, vol. 11, p. e3058, 2025.

[19] T. U. Aye, A. A. Neto, and E. R. da Silva, “Knowing your surroundings: Tactical retail demand forecasting through exogeneity-aware machine learning,” IEEE Engineering Management Review, pp. 1–26, 2025.

[20] C. Riachy, M. He, S. Joneidy, S. Qin, T. Payne, G. Boulton, A. Occhipinti, and C. Angione, “Enhancing deep learning for demand forecasting to address large data gaps,” Expert Systems with Applications, vol. 268, p. 126200, 2025.

[21] B. Mohanty, S. Meher, S. Pattnaik, R. Das, S. R. Mishra, and S. Tripathy, “Enhancing inventory management and demand forecasting in retail: Integrating machine learning with association rule mining,” in 2025 International Conference on Cognitive, Green and Ubiquitous Computing (IC-CGU), 2025, pp. 1–6.

[22] Y. Yang, M. Wang, J. Wang, P. Li, and M. Zhou, “Multiagent deep reinforcement learning for integrated demand forecasting and inventory optimization in sensorenabled retail supply chains,” Sensors, vol. 25, no. 8, p.

2428, 2025.

[23] G. S. Sajja, M. K. Meesala, S. R. Addula, and P. Ravipati, “Optimizing retail supply chain sales forecasting with a mayfly algorithm-enhanced bidirectional gated recurrent unit,” SN Computer Science, vol. 6, no. 6, p. 737, 2025.

[24] M. Pattnaik, S. K. Padhi, L. Panda, U. Naushad, R. K. Behera, A. Mishra, and A. Pattnaik, “Ai-driven sales forecasting in retail: Insights from big bazaar’s sales data,” International Journal of Management Science and Engineering Management, vol. 21, no. 1, pp. 1–14, 2026.

[25] H. Hu, D. Tan, P. Thaichon, B.Wang, and Z. Zhu, “Gridbased market sales forecasting for retail businesses using automated machine learning and geospatial intelligence,” Expert Systems with Applications, vol. 284, p. 127869, 2025.

[26] M. I. Zulfiqar, A. Khalid, A. Siddig, M. J. Nawaz, and S. Saay, “Ai-driven smart shopping carts with real-time tracking and inventory forecasting for enhanced retail efficiency,” IEEE Access, vol. 13, pp. 55 576–55 585,

2025.

[27] P. G. Giannopoulos, T. K. Dasaklis, I. Tsantilis, and C. Patsakis, “Machine learning algorithms in intermittent demand forecasting: A review,” International Journal of Production Research, vol. 0, no. 0, pp. 1–43, 2025.

[28] H. Kagalwala, G. V. Radhakrishnan, I. A. Mohammed, R. R. Kothinti, and N. Kulkarni, “Predictive analytics in supply chain management: The role of ai and machine learning in demand forecasting,” Advances in Consumer Research, vol. 2, pp. 142–149, 2025.

[29] M. L. Y. Lin, T. M. Hao, M. Mukred, and M. I. Nofal, “Recommended machine learning and deep learning models in improving sales forecasting across diverse industries: A review analysis,” in 2025 1st International Conference on Computational Intelligence Approaches and Applications (ICCIAA), 2025, pp. 1–8.

[30] S. Punia, “Medium- to long-term demand forecasting in retail and manufacturing organizations: Integration of machine learning, human judgment, and interval variable,” Journal of Forecasting, vol. 45, no. 1, pp. 122– 134, 2026.

[31] L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001.

[32] L. Breiman, “Bagging predictors,” Machine Learning, vol. 24, no. 2, pp. 123–140, 1996.

[33] L. Prokhorenkova, G. Gusev, A. Vorobev, A. V. Dorogush, and A. Gulin, “Catboost: Unbiased boosting with categorical features,” in Advances in Neural Information Processing Systems, vol. 31, 2018.

[34] T. Chen and C. Guestrin, “Xgboost: A scalable tree boosting system,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ser. KDD ’16. New York, NY, USA: Association for Computing Machinery, 2016, pp. 785–794.

[35] T. Cover and P. Hart, “Nearest neighbor pattern classification,” IEEE Transactions on Information Theory, vol. 13, no. 1, pp. 21–27, 1967.

[36] J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proceedings of ICNN’95 – International Conference on Neural Networks, vol. 4. IEEE, 1995, pp. 1942–1948.

[37] S. Mirjalili, S. M. Mirjalili, and A. Hatamlou, “Multiverse optimizer: A nature-inspired algorithm for global optimization,” Neural Computing and Applications, vol. 27, no. 2, pp. 495–513, 2016.

[38] A. A. Heidari, S. Mirjalili, H. Faris, I. Aljarah, M. Mafarja, and H. Chen, “Harris hawks optimization: Algorithm and applications,” Future Generation Computer Systems, vol. 97, pp. 849–872, 2019.

[39] R. Storn and K. Price, “Differential evolution – a simple and efficient heuristic for global optimization over continuous spaces,” Journal of Global Optimization, vol. 11, no. 4, pp. 341–359, 1997.

Cite This Article

Choose your preferred format

format_quote
albuainain, Sara. "A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover." Journal of Artificial Intelligence and Metaheuristics, vol. Volume 11, no. Issue 2, 2026, pp. 74–86. DOI: https://doi.org/10.54216/JAIM.110205
albuainain, S. (2026). A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover. Journal of Artificial Intelligence and Metaheuristics, Volume 11(Issue 2), 74–86. DOI: https://doi.org/10.54216/JAIM.110205
albuainain, Sara. "A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover." Journal of Artificial Intelligence and Metaheuristics Volume 11, no. Issue 2 (2026): 74–86. DOI: https://doi.org/10.54216/JAIM.110205
albuainain, S. (2026) 'A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover', Journal of Artificial Intelligence and Metaheuristics, Volume 11(Issue 2), pp. 74–86. DOI: https://doi.org/10.54216/JAIM.110205
albuainain S. A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover. Journal of Artificial Intelligence and Metaheuristics. 2026;Volume 11(Issue 2):74–86. DOI: https://doi.org/10.54216/JAIM.110205
S. albuainain, "A Smart Retail Point-of-Sale System Using Machine Learning Forecasting and Application-Level Failover," Journal of Artificial Intelligence and Metaheuristics, vol. Volume 11, no. Issue 2, pp. 74–86, 2026. DOI: https://doi.org/10.54216/JAIM.110205
Digital Archive Ready