Open Access

Machine Learning-Based Customer Demand and Online Sales Prediction

4 Assistant Professor, Department of Computer Sciences and Applications, Mandsaur University, Mandsaur (M.P.), India

Abstract

The development of Internet technology has changed how customers engage with e-commerce websites, where transactional and customer-related data may offer insightful information on consumer behavior. Companies must handle massive amounts of multivariate data to enhance demand analysis and provide efficient services in response to growing consumer expectations and fierce online competition. The e-commerce sales forecasting problem is addressed in this study, based on actual transactional, temporal, logistical, pricing, payment, and review data from the Olist Brazilian E-Commerce Dataset. The proposed methodology uses data preprocessing techniques such as missing value treatment, date-time transformation, duplicate removal, label encoding, Z-score standardization, and SMOTE-based data balancing. A complex sequential pattern learning model, called Long Short-Term Memory (LSTM) is built to learn complex sequential patterns and predict customer demands and online sales. The experimental results have shown that the proposed LSTM has been able to attain 99.72% accuracy, 99.64% precision, 99.16% recall, and 99.26% F1-score. The results show that the proposed methodology is useful in analyzing e-commerce demand and forecasting e-commerce sales. The model can help businesses manage their inventory, sales, resources, and decision-making processes.

Keywords

References

Z. H. Kilimci et al., “An Improved Demand Forecasting Model Using Deep Learning Approach and Proposed Decision Integration Strategy for Supply Chain,” Complexity, vol. 2019, no. 1, Jan. 2019, doi: 10.1155/2019/9067367.
S. Sreevathsa, “Bridging Technical Telemetry and Business Decision-Making through Data Product Management,” Univers. Libr. Innov. Res. Stud., vol. 3, no. 3, pp. 32–36, Aug. 2026, doi: 10.70315/uloap.ulirs.2026.0303006.
R. Palwe, “The Role of User Experience Design in Advancing Digital Sustainability,” Int. J. Sci. Res., vol. 14, no. 10, pp. 1168–1176, 2025.
Y. Ahmadov and P. Helo, “Deep learning-based approach for forecasting intermittent online sales,” Discov. Artif. Intell., vol. 3, no. 1, p. 45, Dec. 2023, doi: 10.1007/s44163-023-00085-1.
R. S. Ahmed, M. Hasnain, M. H. Mahmood, and M. A. Mehmood, “Comparison of Deep Learning Algorithms for Retail Sales Forecasting,” ICCK Trans. Intell. Syst., vol. 1, no. 3, pp. 112–126, Oct. 2024, doi: 10.62762/TIS.2024.300700.
R. Acharya, D. P. Sahu, J. Singh, R. Tomar, A. P. Singh, and Neetu, “An Effective Machine Learning Model for Accurate ROI Prediction and Optimization in Marketing Strategies,” in 2025 International Conference on Technology Enabled Economic Changes (InTech), IEEE, Feb. 2025, pp. 520–526. doi: 10.1109/InTech64186.2025.11198202.
K. Alice, S. H. ul H. Andrabi, and S. Jha, “Sales Forecasting Based on Ensemble Learning,” Aug. 2023. doi: 10.36227/techrxiv.24049452.
S. Bauskar, “Predictive Analytics for Sales Forecasting in Enterprise Resource Planning (ERP) Systems Using Machine Learning Technique,” Int. Res. J. Mod. Eng. Technol. Sci., vol. 04, no. 06, pp. 2582–5208, 2022, doi: 10.56726/IRJMETS26271.
S. S. Yadav, “Sales Forecasting for Small Medium Enterprises Using Machine Learning,” National College of Ireland, 2023.
B. Biswas, M. K. Sanyal, and T. Mukherjee, “AI-Based Sales Forecasting Model for Digital Marketing,” Int. J. E-bus. Res., vol. 19, no. 1, pp. 1–14, Feb. 2023, doi: 10.4018/IJEBR.317888.
V. Chaturvedi, R. Narra, and S. K. Chintagunta, Applied AI Engineering for Developers: Building Intelligent Applications at Scale. Wissira Research Lab, 2026. doi: 10.63345/WP-978-93-7559-963-0.
T. de C. Moraes, X. Yuan, and E. P. Chew, “Hybrid convolutional long short‐term memory models for sales forecasting in retail,” J. Forecast., vol. 43, no. 5, pp. 1278–1293, Aug. 2024, doi: 10.1002/for.3073.
V. Zalizniuk and O. Nozhovnik, “Express Method for Calculating Gross Margin in E-Commerce: A Practical Approach,” Balt. J. Econ. Stud., vol. 10, no. 4, pp. 201–210, Dec. 2024, doi: 10.30525/2256-0742/2024-10-4-201-210.
Ö. Büyükakın and Ö. Zeybek, “Share of Local Assortments in Revenue for a Large Scale National Food Retailer : Assessment of Long and Short Time Series Patterns,” 2024, pp. 57–63. doi: 10.1007/978-3-031-67195-1_8.
S. Singh, S. A. Pahune, P. Chatterjee, and R. Sura, “Advanced Machine Learning Techniques for Prediction of Customer Churn in Telecommunication Sector,” in 2025 IEEE 6th India Council International Subsections Conference (INDISCON), Rourkela, India: IEEE, 2025, pp. 1–6, August. doi: 10.1109/INDISCON66021.2025.11252233.
S. Kukkar, “Leveraging Price-Quote Data with AI for Smarter Configure-Price-Quote Systems,” in 2026 2nd International Conference on Artificial Intelligence Systems (AIS), San Antonio, TX, USA: IEEE, 2026, pp. 329–335, May. doi: 10.1109/AIS69919.2026.11621526.
E. Aldhahri, “The Use of Recurrent Nets for the Prediction of e-Commerce Sales,” Eng. Technol. Appl. Sci. Res., vol. 13, no. 3, pp. 10931–10935, Jun. 2023, doi: 10.48084/etasr.5964.
C.-J. Liu, T.-S. Huang, P.-T. Ho, J.-C. Huang, and C.-T. Hsieh, “Machine learning-based e-commerce platform repurchase customer prediction model,” PLoS One, vol. 15, no. 12, p. e0243105, Dec. 2020, doi: 10.1371/journal.pone.0243105.
H. Huang et al., “A Cross-Platform Consumer Behavior Analysis of Large-Scale Mobile Shopping Data,” in Proceedings of the 2018 World Wide Web Conference on World Wide Web - WWW ’18, New York, New York, USA: ACM Press, 2018, pp. 1785–1794. doi: 10.1145/3178876.3186169.
N. Singh, “Advanced Machine Learning Techniques for Enhancing Accuracy in E-Commerce Sales Forecasting,” in 2026 International Conference on Modern Computing, Networking and Applications (MCNA), IEEE, May 2026, pp. 115–122. doi: 10.1109/MCNA69896.2026.11574094.
P.Vanitha, S. S, N. S, R. T, and P. V, “Data-Driven Marketing and Sales Prediction for Small and Medium E-Commerce Companies,” in 2026 IEEE Nexo-Tech - International Conference on Advanced Technologies and Innovations (ICATI), IEEE, May 2026, pp. 1–6. doi: 10.1109/ICATI69399.2026.11604384.
R. Shobha, S. S. Selvi, M. S. Chowdary, P. N, V. N, and H. K. Omkumar, “Dynamic Demand Forecast Dashboard – A Machine Learning based Quick Commerce Model,” in 2025 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE), IEEE, Jan. 2025, pp. 1–6. doi: 10.1109/IITCEE64140.2025.10915287.
S. Shrivastava, “AI-Driven Return Rate Prediction in Online Retail using Behavioral and Transactional Data,” in 2025 3rd International Conference on Sustainable Computing and Data Communication Systems (ICSCDS), IEEE, Aug. 2025, pp. 932–937. doi: 10.1109/ICSCDS65426.2025.11166988.
M. Iqbal, F. Hamayat, R. F. Ahmad, and S. K. Husnain, “A Machine Learning-Based Framework for Predicting E-Commerce Product Ratings,” in Proceedings of 2024 21st International Bhurban Conference on Applied Sciences and Technology, IBCAST 2024, 2024. doi: 10.1109/IBCAST61650.2024.10876934.
A. Almadhor, S. Abbas, G. A. Sampedro, M. Abisado, and T. R. Gadekallu, “A Novel Smartphone Recommendation System Using Ensemble Machine Learning,” in 2023 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE), IEEE, Dec. 2023, pp. 1–7. doi: 10.1109/CSDE59766.2023.10487679.
G. K, S. K., A. B. J, P. V. L. R. N. S. Sudha, and R. A. C, “Deep Learning and Sentiment Analysis Improve E-commerce Sales Prediction,” in 2023 International Conference on Data Science and Network Security (ICDSNS), IEEE, Jul. 2023, pp. 1–7. doi: 10.1109/ICDSNS58469.2023.10245916.
D. Patel, “Integrating Price Elasticity and Reinforcement Learning: A Data-Driven Framework for Strategic E-commerce Pricing,” in 2026 IEEE 5th International Conference on AI in Cybersecurity (ICAIC), IEEE, Feb. 2026, pp. 1–6. doi: 10.1109/ICAIC67076.2026.11395747.
M. Zeinali, L. Ramezani Asli, and M. A. Khalili, “Integrating Business Intelligence and CRM Systems With a Machine Learning Approach for Predictive Customer Retention in E-Commerce,” Sci. World J., vol. 2026, no. 1, 2026, doi: 10.1155/tswj/1946904.
M. M. Bachir, F. Z. Laallam, M. Mezati, A. Rayane, and D. Ahlam, “Enhancing Customer Satisfaction,” Brazilian J. Technol., vol. 7, no. 4, p. e74444, Nov. 2024, doi: 10.38152/bjtv7n4-011.
A. N. Wong and B. P. Marikannan, “Optimising e-commerce customer satisfaction with machine learning,” J. Phys. Conf. Ser., vol. 1712, no. 1, 2020, doi: 10.1088/1742-6596/1712/1/012044.

Similar Articles

11-20 of 60

You may also start an advanced similarity search for this article.