Machine Learning-Based Fraud Detection in E-Commerce Transactions

Authors

  • Evelyn Evelyn School of Business Management Petra Christian University, Indonesia
  • Adi Suryaputra Paramita Information Systems Department, School of Information Technology, Universitas Ciputra Surabaya, Indonesia

DOI:

https://doi.org/10.47738/ijiis.v9i1.295

Keywords:

Fraud Detection, E-Commerce, Machine Learning, Gradient Boosting, Recall, Ensemble Models

Abstract

The rapid growth of e-commerce has heightened fraud risks, demanding advanced fraud detection solutions. This study evaluates five machine learning models Logistic Regression, SVM, KNN, Random Forest, and Gradient Boosting for detecting fraudulent transactions in e-commerce environments. The models were assessed based on accuracy, precision, recall, F1-score, ROC-AUC, and error-related indicators. Results indicate that ensemble-based models, particularly Gradient Boosting and Random Forest, consistently outperform linear models like Logistic Regression, achieving superior balance between precision and recall. Gradient Boosting emerged as the top performer, with the highest accuracy (0.9763), F1-score (0.9765), and ROC-AUC (0.9880), while maintaining a low false negative rate (4.38%). These findings suggest that machine learning models, particularly ensemble methods, provide robust and efficient fraud detection frameworks. The study emphasizes the importance of using recall and F1-score as primary metrics to balance fraud detection sensitivity and operational efficiency.

References

J. V Ngwira and J. Phiri, “Contextual Antecedents of E-Commerce Adoption for Supply Chain Management by Retail and Consumer Goods Traders in Developing Countries,” Open J. Bus. Manag., vol. 12, no. 01, pp. 472–489, 2024, doi: 10.4236/ojbm.2024.121029.

A. Faraz and K. J. Simpao, “E-Commerce Fraud Perceptions in Pakistan and Impacts of Risks and Preventive Measures,” ITQAN J. Islam. Econ. Manag. Financ., vol. 4, no. 1, pp. 31–43, 2024, doi: 10.57053/itqan.v4i1.61.

A. A. Alhashmi, A. M. Alashjaee, A. A. Darem, A. F. Alanazi, and R. Effghi, “An Ensemble-Based Fraud Detection Model for Financial Transaction Cyber Threat Classification and Countermeasures,” Eng. Technol. Appl. Sci. Res., vol. 13, no. 6, pp. 12433–12439, 2023, doi: 10.48084/etasr.6401.

M. R. Baker, Z. N. Mahmood, and E. H. Shaker, “Ensemble Learning with Supervised Machine Learning Models to Predict Credit Card Fraud Transactions,” Rev. d’Intelligence Artif., vol. 36, no. 4, pp. 509–518, 2022, doi: 10.18280/ria.360401.

M. Alhashem, M. K. Nabi, R. Pant, A. Inkesar, N. Khan, and M. A. Khan, “Exploring the Factors Affecting Online Trust in B2C E-Commerce Transactions in India: An Empirical Study,” Int. J. Prof. Bus. Rev., vol. 8, no. 12, pp. e03945, 2023, doi: 10.26668/businessreview/2023.v8i12.3945.

M. Hossain, S. Islam, M. M. Rahman, and N. Arif, “Impact of Online Payment Systems on Customer Trust and Loyalty in E-Commerce Analyzing Security and Convenience,” Acad. J. Sci. Technol. Eng. Math. Educ., vol. 4, no. 3, pp. 1–15, 2024, doi: 10.69593/ajsteme.v4i03.85.

P. J. Khan and SMT. M. Vani, “‘The Multi-Perspective Fraud Detection Method for Multi-Participant for E-Commerce Transactions,’” J. Eng. Sci., vol. 16, no. 04, pp. 174–179, 2025, doi: 10.36893/JES.2025.V16I04.029.

I. Yuhertiana dan A. Hadi Amin, “Artificial Intelligence Driven Approaches for Financial Fraud Detection: A Systematic Literature Review,” KnE Soc. Sci., vol. 9, no. 20, hal. 448–468, 2024, doi: 10.18502/kss.v9i20.16551.

M. D. V. Prasad, “Multi-Entity Real-Time Fraud Detection System using Machine Learning: Improving Fraud Detection Efficiency using FROST-Enhanced Oversampling,” J. Electr. Syst., vol. 20, no. 7s, pp. 1380–1394, 2024, doi: 10.52783/jes.3710.

M. Maashi, B. Alabduallah, and F. Kouki, “Sustainable Financial Fraud Detection Using Garra Rufa Fish Optimization Algorithm with Ensemble Deep Learning,” Sustainability, vol. 15, no. 18, pp. 13301, 2023, doi: 10.3390/su151813301.

P. Verma and P. Tyagi, “Analysis of Supervised Machine Learning Algorithms in the Context of Fraud Detection,” ECS Trans., vol. 107, no. 1, pp. 7189–7200, 2022, doi: 10.1149/10701.7189ecst.

T. Albalawi and S. Dardouri, “Enhancing Credit Card Fraud Detection Using Traditional and Deep Learning Models with Class Imbalance Mitigation,” Front. Artif. Intell., vol. 8, no. 1, pp. 1–10, Okt 2025, doi: 10.3389/frai.2025.1643292.

S. Cho, “Fraud Detection in Malaysian Financial Institutions Using Data Mining and Machine Learning,” J. Inf. Technol., vol. 7, no. 1, pp. 13–21, 2023, doi: 10.53819/81018102t4152.

M. I. Shabiya and R. R. Chandrika, “LSO-RVAE: Latent Space Optimization with Sparrow Search and Residual Variational Autoencoder for Credit Card Fraud Detection,” Eng. Res. Express, vol. 7, no. 3, pp. 35244, 2025, doi: 10.1088/2631-8695/adf52a.

A. Alhchaimi, “Cloud-Based Transaction Fraud Detection: An In-Depth Analysis of ML Algorithms,” Wasit J. Comput. Math. Sci., vol. 3, no. 2, pp. 19–31, 2024, doi: 10.31185/wjcms.253.

Z. Miao, “Financial Fraud Detection and Prevention,” J. Organ. End User Comput., vol. 36, no. 1, pp. 1–27, 2024, doi: 10.4018/joeuc.354411.

S. Siddique, “Fraud Detection in E-Commerce – A Machine Learning Approach,” Interantional J. Sci. Res. Eng. Manag., vol. 09, no. 06, pp. 1–9, 2025, doi: 10.55041/ijsrem50949.

L. Yangyan and C. Tingting, “CRAFIC Framework: Multi‐Account Collaborative Fraud Detection, Efficient Feature Extraction and Relationship Modelling Combined with CNN‐LSTM and Graph Attention Network,” IET Commun., vol. 19, no. 1, pp. 1–15, 2025, doi: 10.1049/cmu2.70014.

A. Tanikonda, “Deep Learning for Anomaly Detection in E-Commerce and Financial Transactions: Enhancing Fraud Prevention and Cybersecurity,” J. Inf. Syst. Eng. Manag., vol. 10, no. 30s, pp. 70–77, 2025, doi: 10.52783/jisem.v10i30s.4776.

A. Skármeta, “Artificial Intelligence in E-Commerce Fraud Detection: A Paradigm Shift in Digital Security,” Int. Sci. J. Eng. Manag., vol. 04, no. 05, pp. 1–9, 2025, doi: 10.55041/isjem03834.

Mr. Rumit Raval and Dr. Pallavi Devendra Tawde, “Fraud Detection in Online Transactions Using Machine Learning and Data Analytics.,” Int. J. Adv. Res. Sci. Commun. Technol., vol. 5, no. 2, pp. 284–289, 2025, doi: 10.48175/IJARSCT-23343.

D. Hemalatha, “Online Payment Fraud Detection Using Machine Learning,” Interantional J. Sci. Res. Eng. Manag., vol. 09, no. 05, pp. 1–9, 2025, doi: 10.55041/ijsrem48218.

M. Hassan and N. Kaabouch, “Impact of Feature Selection Techniques on the Performance of Machine Learning Models for Depression Detection Using EEG Data,” Appl. Sci., vol. 14, no. 22, pp. 10532, 2024, doi: 10.3390/app142210532.

L. Li, “A Comparative Study on Supervised Machine Learning Algorithms for Credit Card Transaction Fraud Detection,” Appl. Comput. Eng., vol. 179, no. 1, pp. 74–80, 2025, doi: 10.54254/2755-2721/2025.ld26477.

M. Koppula, “Predictive Maintenance to Reduce Machine Downtime in Factories Using Machine Learning Algorithms,” Int. J. Adv. Res. Comput. Sci., vol. 16, no. 2, pp. 71–77, 2025, doi: 10.26483/ijarcs.v16i2.7224.

S. Rahmadani, A. Subekti, and M. Haris, “Improving Classification Performance on Imbalanced Medical Data Using Generative Adversarial Network,” J. Ilmu Komput. dan Inf., vol. 17, no. 1, pp. 9–17, 2024, doi: 10.21609/jiki.v17i1.1177.

N. V Thieu, “PerMetrics: A Framework of Performance Metrics for Machine Learning Models,” J. Open Source Softw., vol. 9, no. 95, pp. 6143, 2024, doi: 10.21105/joss.06143.

M. Woo, J. Lee, H. Kim, and S. Park, “Subgroup Evaluation to Understand Performance Gaps in Deep Learning-Based Classification of Regions of Interest on Mammography,” Plos Digit. Heal., vol. 4, no. 4, pp. e0000811, 2025, doi: 10.1371/journal.pdig.0000811.

E. M. Al‐dahasi, R. K. Alsheikh, F. A. Khan, and G. Jeon, “Optimizing Fraud Detection in Financial Transactions with Machine Learning and Imbalance Mitigation,” Expert Syst., vol. 42, no. 2, pp. e13682, 2025, doi: 10.1111/exsy.13682.

C. Idemudia, E. E. Agu, and S. Obeng, “Analysis of Machine Learning Techniques in Detecting and Preventing E-Commerce Fraud Effectively,” Int. J. Front. Sci. Technol. Res., vol. 7, no. 1, pp. 25–34, 2024, doi: 10.53294/ijfstr.2024.7.1.0046.

Downloads

Published

2026-01-25

Issue

Section

Articles