Volume 5 , Issue 2 , PP: 30-58, 2025 | Cite this article as | XML | Html | PDF | Full Length Article
Ebrahim A. Mattar 1 * , S. K. Towfek 2
Accurate prediction of customer behavior remains a core methodological and operational challenge in retail economics and financial decision-making, particularly as institutions increasingly depend on data-driven forecasting systems to improve credit risk assessment, refine customer segmentation, and deliver targeted financial services in competitive and rapidly changing markets. In practice, the economic value of customer behavior prediction lies in its direct connection to profit maximization, loss minimization, and resource allocation efficiency: retailers seek to anticipate spending tendencies and product affinities to reduce marketing waste and optimize inventory, while financial institutions aim to infer creditworthiness and repayment capacity to reduce default exposure and enhance portfolio stability. Despite the demonstrated advantages of data-driven approaches, the predictive performance of advanced learning systems in such contexts is frequently constrained by the dual challenge of high-dimensional, heterogeneous feature spaces and the sensitivity of model outcomes to hyperparameter choices, often resulting in limited generalization, unstable convergence, or performance degradation when applied to unseen customer groups. To address these constraints, this study develops an integrated optimization framework that couples a high-capacity predictive model with a physics-inspired search mechanism, namely the Kirchhoff’s Law Algorithm (KLA), and employs it for automated hyperparameter optimization of an End-to-End Attention Long Short-Term Memory model (EALSTM), thereby reducing reliance on manual tuning and improving model reliability under financially meaningful data complexity. In addition to introducing the KLA-driven optimization pipeline, the study conducts a rigorous comparative evaluation against established state-of-the-art metaheuristic optimizers, including Particle Swarm Optimizer (PSO), Biogeography Based Optimizer (BBO), Whale Optimization Algorithm (WOA), Bat Algorithm (BA), Artificial Protozoa Optimizer (APO), Genetic Algorithm (GA), and Stochastic Fractal Search (SFS), enabling a systematic assessment of how different search dynamics influence predictive quality in customer analytics applications. Experimental evaluation is performed using an enhanced customer dataset that integrates demographic descriptors, behavioral spending indicators, and financially meaningful constructs—thereby better reflecting real-world decision environments where customer profiling depends on both consumption behavior and financial capacity—and the results demonstrate that the KLA + EALSTM configuration consistently achieves the strongest predictive performance across the full suite of regression metrics. Specifically, KLA + EALSTM attains a Mean Squared Error (MSE) of 3.60 × 10−7, a Root Mean Squared Error (RMSE) of 0.00728, a Mean Absolute Error (MAE) of 0.000372, a Mean Bias Error (MBE) of 0.000091, a correlation coefficient (r) of 0.972, a coefficient of determination (R2) of 0.969, a Relative RMSE (RRMSE) of 0.095, a Nash–Sutcliffe Efficiency (NSE) of 0.971, and a Willmott Index (WI) of 0.977, collectively indicating extremely low error magnitude, minimal systematic bias, strong explanatory power, and high agreement between predicted and observed outcomes, and representing a substantial improvement over the unoptimized EALSTM baseline. From an economic and financial viewpoint, these gains are practically consequential because they strengthen the reliability of predictive decision-support systems used for credit scoring, personalized marketing, customer valueassessment, and financially efficient resource allocation, where even small prediction errors can translate into measurable cost, risk, or revenue impacts. Overall, the findings provide strong empirical support for physics-inspired, non-parametric optimization as a robust mechanism for improving predictive accuracy, stability, and generalization in customer analytics, and they position KLA-based optimization as a scalable and methodologically efficient solution for next-generation retail and financial analytics systems operating under high-dimensional behavioral and financial data conditions.
Customer behavior analytics , Financial prediction , Deep learning optimization , Metaheuristic algorithms , Retail and financial decision-making
[1] T.-Y. Yu et al., “Discovering how digital attitudes, control, self-efficacy and social norms influence the digital behavior decision-making of leisure and recreation activities participants,” Current Psychology, vol. 44, no. 2, pp. 1032–1054, 2025.
[2] S. Asawawibul, K. Na-Nan, K. Pinkajay, N. Jaturat, Y. Kittichotsatsawat, and B. Hu, “The influence of cost on customer satisfaction in e-commerce logistics: Mediating roles of service quality, technology usage, transportation time, and production condition,” Journal of Open Innovation: Technology, Market, and Complexity, vol. 11, no. 1, p. 100 482, 2025, ISSN: 2199-8531. DOI: https://doi.org/10. 1016 / j . joitmc . 2025 . 100482. [Online]. Available: https : / / www . sciencedirect . com/science/article/pii/S2199853125000174.
[3] X. Liu, W. Du, T. Olasehinde, and Y. Fan, “Balancing competition and sustainability: Strategic supply chain configurations in response to consumer low-carbon preferences,” Sustainable Futures, vol. 9, p. 100 411, 2025, ISSN: 2666-1888. DOI: https : / / doi . org / 10 . 1016 / j . sftr . 2024 . 100411. [Online]. Available: https://www.sciencedirect.com/science/article/ pii/S2666188824002594.
[4] J. Anil Kumar and S Ramesh Babu, “Strategic marketing and customer analytics,” in Strategy Analytics for Business Resilience Theories and Practices, Springer, 2025, pp. 73–88. DOI: https : / / doi . org/10.1007/978-3-031-82369-5_5.
[5] D. D. Winster Praveenraj, R. R. Kurup, M. Almusawi, M. V. Lakhamraju, B. Arunkumar, and P. Mittal, Optimizing retail operations with big data-driven insights: From inventory management to personalized marketing,” in 2025 International Conference on Automation and Computation (AUTOCOM), 2025,
pp. 342–346. DOI: 10.1109/AUTOCOM64127.2025.10957411.
[6] T. Stylianou and A. Pantelidou, “A machine learning approach to consumer behavior in supermarket analytics,” Decision Analytics Journal, vol. 16, p. 100 600, 2025, ISSN: 2772-6622. DOI: https : / /doi . org / 10 . 1016 / j . dajour . 2025 . 100600. [Online]. Available: https : / / www .sciencedirect.com/science/article/pii/S2772662225000566.
[7] J. Tang, “Unlocking retail insights: Predictive modeling and customer segmentation through data analytics,” Journal of Theoretical and Applied Electronic Commerce Research, vol. 20, no. 2, 2025, ISSN: 0718-1876. DOI: 10.3390/jtaer20020059. [Online]. Available: https://www.mdpi. com/0718-1876/20/2/59.
[8] G. Ernestivita, V. Kumar, and Subagyo, “Leveraging strategic revenue management and marketing for effective revenue diversification: Evidences from indonesia,” Journal of Revenue and Pricing Management, pp. 1–12, 2025. DOI: https://doi.org/10.1057/s41272-025-00550-9.
[9] A. G. Mohapatra, A. Mohanty, S. K. Mohanty, N. P. Mahalik, and S. Nayak, “Personalization and customer experience in the era of data-driven marketing,” Artificial Intelligence-Enabled Businesses: How to Develop Strategies for Innovation, pp. 467–511, 2025. DOI: https : / / doi . org / 10 . 1002/9781394234028.ch26.
[10] M. J. Santamaría Ruiz, M. A. García Samper, M. P. Forero, P. C. Lara, C. B. Morales, and D. S. Carpio, “Customer segmentation analysis with big data in health services companies in colombia: Case study,” Procedia Computer Science, vol. 257, pp. 1134–1139, 2025, The 16th International Conference on Ambient Systems, Networks and Technologies Networks (ANT)/ the 8th International Conference on Emerging Data and Industry 4.0 (EDI40), ISSN: 1877-0509. DOI: https://doi.org/10.1016/ j . procs . 2025 . 03 . 150. [Online]. Available: https : / / www . sciencedirect . com / science/article/pii/S1877050925008877.
[11] S. Birim, I. Kazancoglu, S. K. Mangla, A. Kahraman, and Y. Kazancoglu, “The derived demand for advertising expenses and implications on sustainability: A comparative study using deep learning and traditional machine learning methods,” Annals of Operations Research, vol. 339, no. 1, pp. 131–161, 2024. DOI: https://doi.org/10.1007/s10479-021-04429-x.
[12] R. F. Sabahi, F. Razavi, and A. Asadi, “Developing personalized marketing strategies based on customer behavior analysis using clustering and machine learning,” in 2025 11th International Conference on Web Research (ICWR), 2025, pp. 391–402. DOI: 10.1109/ICWR65219.2025.11006252.
[13] F. A. Alijoyo et al., “Personalized marketing: Leveraging ai for culturally aware segmentation and targeting,” Alexandria Engineering Journal, vol. 119, pp. 8–21, 2025, ISSN: 1110-0168. DOI: https: / / doi . org / 10 . 1016 / j . aej . 2025 . 01 . 074. [Online]. Available: https : / / www . sciencedirect.com/science/article/pii/S1110016825000997.
[14] E. Samara, P. Kilintzis, E. G. Carayannis, and N. Zotas, “How startups can decode shifting consumer preferences in the digital era: Leveraging behavioral insights for agile business model innovation,” Journal of the Knowledge Economy, pp. 1–31, 2025. DOI: https : / / doi . org / 10 . 1007 / s13132-025-02764-z.
[15] S. Kadyrov, A. Azamov, Y. Abdumajitov, and C. Turan, “Deep reinforcement learning for dynamic vehicle routing with demand and traffic uncertainty,” Operations Research Perspectives, vol. 15, p. 100 351, 2025, ISSN: 2214-7160. DOI: https://doi.org/10.1016/j.orp.2025.100351. [Online]. Available: https : / / www . sciencedirect . com / science / article / pii / S2214716025000272.
[16] Y. Wang and S. Minner, “Data-driven multi-location inventory placement in digital commerce,” Computers & Industrial Engineering, vol. 200, p. 110 842, 2025, ISSN: 0360-8352. DOI: https : / / doi . org / 10 . 1016 / j . cie . 2024 . 110842. [Online]. Available: https : / / www . sciencedirect.com/science/article/pii/S0360835224009641.
[17] M. Imani, M. Joudaki, A. Beikmohammadi, and H. R. Arabnia, “Customer churn prediction: A systematic review of recent advances, trends, and challenges in machine learning and deep learning,” Machine Learning and Knowledge Extraction, vol. 7, no. 3, 2025, ISSN: 2504-4990. DOI: 10.3390/ make7030105. [Online]. Available: https://www.mdpi.com/2504-4990/7/3/105.
[18] B. Jamalpur, D. Singh, B. S. Kumar, A. Nagpal, S. Pawar, and D. Banerjee, “Applications of deep learning in marketing analytics: Predictive modeling and segmenting customers,” in 2024 International Conference on Communication, Computer Sciences and Engineering (IC3SE), 2024, pp. 1473–1477. DOI: 10.1109/IC3SE62002.2024.10593465.
[19] M. Schmitt, “Deep learning in business analytics: A clash of expectations and reality,” International Journal of Information Management Data Insights, vol. 3, no. 1, p. 100 146, 2023, ISSN: 2667-0968. DOI: https://doi.org/10.1016/j.jjimei.2022.100146. [Online]. Available: https: //www.sciencedirect.com/science/article/pii/S2667096822000891.
[20] M. Afzal, S. Rahman, D. Singh, and A. Imran, “Cross-sector application of machine learning in telecommunications: Enhancing customer retention through comparative analysis of ensemble methods,” IEEE Access, vol. 12, pp. 115 256–115 267, 2024. DOI: 10 . 1109 / ACCESS . 2024 . 3445281.
[21] I. Markoulidakis, I. Rallis, I. Georgoulas, G. Kopsiaftis, A. Doulamis, and N. Doulamis, “A machine learning based classification method for customer experience survey analysis,” Technologies, vol. 8, no. 4, 2020, ISSN: 2227-7080. DOI: 10 . 3390 / technologies8040076. [Online]. Available: https://www.mdpi.com/2227-7080/8/4/76.
[22] S. R. Ahmed et al., “Deep learning for customer relationship management in e-commerce,” in 2024 International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), 2024, pp. 1–7. DOI: 10.1109/HORA61326.2024.10550481.
[23] A. Manzoor, M. Atif Qureshi, E. Kidney, and L. Longo, “A review on machine learning methods for customer churn prediction and recommendations for business practitioners,” IEEE Access, vol. 12, pp. 70 434–70 463, 2024. DOI: 10.1109/ACCESS.2024.3402092.
[24] X. Zhang, F. Guo, T. Chen, L. Pan, G. Beliakov, and J. Wu, “A brief survey of machine learning and deep learning techniques for e-commerce research,” Journal of Theoretical and Applied Electronic Commerce Research, vol. 18, no. 4, pp. 2188–2216, 2023, ISSN: 0718-1876. DOI: 10.3390/jtaer18040110. [Online]. Available: https://www.mdpi.com/0718-1876/18/4/110.
[25] T.-C. Wang, “Cross-disciplinary integration of machine learning and heuristic techniques for enhanced customer insights,” in 2025 European Conference on Communication Systems (ECCS), 2025, pp. 87–92. DOI: 10.1109/ECCS66573.2025.00021.
[26] P Ashok, S. L. Sridevi, R. Gorli, K. M. Krishna, D Abinaya, and P. Sidhu, “Integrating advanced machine learning techniques for enhanced customer lifetime value prediction,” in 2025 World Skills Conference on Universal Data Analytics and Sciences (WorldSUAS), 2025, pp. 1–6. DOI: 10.1109/ WorldSUAS66815.2025.11199214.
[27] G. H. Pakdel, Y. He, and X. Chen, “Predicting customer demand with deep learning: An lstm-based approach incorporating customer information,” International Journal of Production Research, vol. 0, no. 0, pp. 1–13, 2025. DOI: 10 . 1080 / 00207543 . 2025 . 2468885. eprint: https : / / doi . org/10.1080/00207543.2025.2468885. [Online]. Available: https://doi.org/10. 1080/00207543.2025.2468885.
[28] D. S. K, T. Anish, C Balakrishnan, D. S. Lakumarapu, D. P. B. Pajila, and R Siva Subramanian, Leveraging machine learning for customer intelligence: An experimental analysis learning classifiers,” Procedia Computer Science, vol. 230, pp. 128–137, 2023, 3rd International Conference on Evolutionary Computing and Mobile Sustainable Networks (ICECMSN 2023), ISSN: 1877-0509. DOI: https : / / doi . org / 10 . 1016 / j . procs . 2023 . 12 . 068. [Online]. Available: https : / / www .sciencedirect.com/science/article/pii/S1877050923020732.
[29] X. Cui, Z. Zhu, L. Liu, Q. Zhou, and Q. Liu, “Anomaly detection in consumer review analytics for idea generation in product innovation: Comparing machine learning and deep learning techniques,” Technovation, vol. 134, p. 103 028, 2024, ISSN: 0166-4972. DOI: https://doi.org/10.1016/ j.technovation.2024.103028. [Online]. Available: https://www.sciencedirect. com/science/article/pii/S0166497224000786.
[30] M. Ghasemi et al., “Kirchhoff’s law algorithm (kla): A novel physics-inspired non-parametric metaheuristic algorithm for optimization problems,” Artificial Intelligence Review, vol. 58, no. 10, p. 325, 2025. DOI: https://doi.org/10.1007/s10462-025-11289-5.