Ensemble Machine Learning Frameworks for Real-Time Anomaly Detection in E-Commerce Transactions
DOI:
https://doi.org/10.70088/mrcw4170Keywords:
e-commerce anomaly detection, ensemble learning, random forests, isolation forests, transaction fraud, real-time analytics, hyperparameter optimization, cloud-based deploymentAbstract
E-commerce platforms in the. U.S. incur $48 billion in annual fraud losses, projected to escalate 141% by 2029, disproportionately affecting resource-limited enterprises. This research proposes an ensemble machine learning framework for real-time anomaly detection, combining logistic regression for coefficient-based risk attribution with random forests for nonlinear feature robustness and isolation forests for unsupervised outlier identification. Key simulated fraud patterns include IP geolocation discrepancies, device-sharing indicators, and atypical purchase volumes. Trained on a synthetic corpus of 200,000 transactions (95% benign, 5% anomalous), the model attains 92% accuracy, 94% precision, and under 5% false positives-outperforming standalone approaches by a 15% increase in overall accuracy. Hyperparameter optimization using GridSearchCV improves predictive performance, while deployment on scalable cloud environments such as AWS EC2/S3 supports low-latency execution for real-time risk scoring and alerts. Scenario-based evaluations across varied transaction profiles highlight 7% improvements in fraud classification efficiency, with device-sharing emerging as a 75% risk amplifier. By promoting open-source dissemination, this framework supports broader adoption, particularly among resource-constrained enterprises. Based on projected transaction volumes and estimated fraud reduction rates, early adopters could avert $500 million financial losses. These projections are grounded in the ensemble's accuracy, real-time deployment capability, and identification of key risk amplification factors such as device-sharing. The framework also informs future enhancements like federated learning. Findings align with national priorities for resilient digital economies, emphasizing scalable AI for transactional integrity.References
T. Karunaratne, "Machine learning and big data approaches to enhancing e-commerce anomaly detection and proactive defense strategies in cybersecurity," Journal of Advances in Cybersecurity Science, Threat Intelligence, and Countermeasures, vol. 7, no. 12, pp. 1-16, 2023.
A. Srivastava, K. D. Singh, and V. Kumar, "E-commerce fraud detection: A systematic review of current trends, challenges, and opportunities," Journal of Financial Crime, vol. 31, no. 2, pp. 345-367, 2024.
N. Tax, K. J. de Vries, M. de Jong, N. Dosoula, B. van den Akker, and J. Smith, "Machine learning for fraud detection in e-commerce: A research agenda," In Proceedings of the International Workshop on Deployable Machine Learning for Security Defense, 2021, pp. 30-54.
M. Golyeri, S. Celik, F. Bozyigit, and D. Kılınç, "Fraud detection on e-commerce transactions using machine learning techniques," Artificial Intelligence Theory and Applications, vol. 3, no. 1, pp. 45-50, 2023.
A. Mutemi, and F. Bacao, "E-commerce fraud detection based on machine learning techniques: Systematic literature review," Big Data Mining and Analytics, vol. 7, no. 2, pp. 419-444, 2024. doi: 10.26599/bdma.2023.9020023
M. Mizanur, S. Kumer, and N. Reza, "Machine learning based anomaly detection for cyber threat prevention," Journal of Primeasia, vol. 6, no. 1, pp. 1-8, 2025.
Y. Y. Festa, and I. A. Vorobyev, "A hybrid machine learning framework for e-commerce fraud detection," Model Assisted Statistics and Applications, vol. 17, no. 1, pp. 41-49, 2022. doi: 10.3233/mas-220006
A. K. Kalusivalingam, A. Sharma, N. Patel, and V. Singh, "Enhancing B2B fraud detection using ensemble learning and anomaly detection algorithms," International Journal of AI and ML, vol. 3, no. 9, 2022.
N. K. R. Panga, "Optimized hybrid machine learning framework for enhanced financial fraud detection using e-commerce big data," International Journal of Management Research Review, vol. 12, no. 2, pp. 1-17, 2022.
C. Cortes, and V. Vapnik, "Support vector networks," Machine Learning, vol. 20, no. 3, pp. 273-297, 1995.
A. Patel, "Evaluating the effectiveness of machine learning algorithms in detecting e-commerce fraud," International Journal of Emerging Technology and Innovative Research, vol. 11, pp. b685-b690, 2024.
Y. Lin, "Anomaly detection combining bidirectional gated recurrent unit and autoencoder in the context of e-commerce," Engineering Research Express, vol. 6, no. 3, p. 035219, 2024. doi: 10.1088/2631-8695/ad6819
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. doi: 10.3390/jtaer18040110
A. Singh, "Fraud detection in ecommerce transactions: An ensemble learning approach," In Proceedings of the 5th International Conference on Information Management and Machine Intelligence, 2023, pp. 1-6. doi: 10.1145/3647444.3647858
A. A. Alhussain, H. M. Al Khateeb, and M. A. Nematollahi, "Behavioral biometrics and machine learning for real time account takeover detection in e-commerce," Computers & Security, vol. 118, pp. 1-15, 2022.
Y. Liu, R. G. de Vries, and J. C. M. van den Heuvel, "Synthetic identity fraud in digital finance: A data driven profiling and detection framework," Expert Systems with Applications, vol. 213, no. Part A, pp. 1-13, 2023.
H. He, and E. A. Garcia, "Learning from imbalanced data," IEEE Transactions on Knowledge and Data Engineering, vol. 21, no. 9, pp. 1263-1284, 2009.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Siqi Chen (Author)

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






