Fraud Detection in E-Commerce Transactions Using Autoencoder Anomaly Scoring and XGBoost Classification

Authors

  • Angelina Law Informatics Engineering, Universitas Prima Indonesia, Indonesia
  • Stephen Sanjaya Universitas Prima Indonesia
  • Ferico Carvius Wivano Informatics Engineering, Universitas Prima Indonesia, Indonesia
  • Osman Renjiro Giawa Informatics Engineering, Universitas Prima Indonesia, Indonesia
  • Yennimar Informatics Engineering, Universitas Prima Indonesia, Indonesia

DOI:

10.33395/sinkron.v10i3.16551

Keywords:

Anomaly Detection, Autoencoder, E-Commerce, Fraud Detection, XGBoost

Abstract

The rapid expansion of e-commerce platforms has intensified the risk of digital transaction fraud, which is particularly challenging to detect due to highly imbalanced datasets where fraudulent transactions represent a small minority. This study proposes a two-stage hybrid fraud detection model that integrates an Autoencoder for unsupervised anomaly detection with XGBoost as a supervised classifier. The objective is to evaluate whether incorporating reconstruction error scores from the Autoencoder as an additional feature improves XGBoost classification performance on highly imbalanced e-commerce fraud data. The dataset used is the Credit Card Fraud Detection dataset from Kaggle (ULB), consisting of 284,807 transactions with a fraud ratio of 0.17%. The research pipeline includes stratified train-validation-test splitting, StandardScaler normalization, Autoencoder training exclusively on non-fraud data to produce anomaly scores (AE_Score), and XGBoost training with scale_pos_weight to handle class imbalance. Threshold optimization was performed using the precision-recall curve on the validation set. Results demonstrate that the two-stage model achieved a ROC-AUC of 0.9749, PR-AUC of 0.8442, precision of 0.8971, recall of 0.8243, and F1-score of 0.8592 on the test set. The AE_Score showed strong discriminative power, with a fraud mean of 4.79 compared to 0.02 for non-fraud transactions. These findings confirm that integrating Autoencoder-based anomaly scoring into gradient boosting classification effectively addresses data imbalance and improves fraud detection performance in large-scale e-commerce environments.

GS Cited Analysis

Downloads

Download data is not yet available.

References

Busireddy, H. R., & HariramNathan, D. (2025). AI-Augmented Fraud Detection and Cybersecurity Framework for Digital Payments and E-Commerce Platforms. International Journal of Computer Languages and Infrastructure (IJCLI).

Carcillo, F., Le Borgne, Y. A., Caelen, O., Kessaci, Y., Oblé, F., & Bontempi, G. (2019). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences, 557, 317–331. https://doi.org/10.1016/j.ins.2019.05.042

Chalapathy, R., & Chawla, S. (2019). Deep learning for anomaly detection: A survey. ACM Computing Surveys, 54(3), 1–38. https://doi.org/10.1145/3439950

Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). https://doi.org/10.1145/2939672.2939785

Dal Pozzolo, A., Caelen, O., Le Borgne, Y. A., Waterschoot, S., & Bontempi, G. (2015). Calibrating probability with undersampling for unbalanced classification. In 2015 IEEE Symposium Series on Computational Intelligence (pp. 159–166). https://doi.org/10.1109/SSCI.2015.33

Fiore, U., De Santis, F., Perla, F., Zanetti, P., & Palmieri, F. (2019). Using generative adversarial networks for improving classification effectiveness in credit card fraud detection. Information Sciences, 479, 448–455. https://doi.org/10.1016/j.ins.2017.12.030

Ibrahim, M. M., & Alfauzan, S. (2025). Analysis of machine learning model performance for detecting fraud in online payment systems. Jurnal Informatika dan Nasional (JINU).

Jurgovsky, J., Granitzer, M., Ziegler, K., Calabretto, S., Portier, P. E., He-Guelton, L., & Caelen, O. (2018). Sequence classification for credit card fraud detection. Expert Systems with Applications, 100, 234–245. https://doi.org/10.1016/j.eswa.2018.01.037

Mohammad, A., Santosh, V. A., & Suribabu, D. D. D. (2023). Credit card fraud detection using autoencoder and decoder ML. International Journal for Research in Applied Science and Engineering Technology (IJRASET), 11(6).

Nata, A., Manalu, D., Hardinata, J. T., & Sitorus, P. S. P. (2025). Anomaly-based financial fraud detection using autoencoder: A case study on the Kaggle credit card dataset. Journal of Informatics and Computer Technology Applications (JICTAS).

Ngai, E. W. T., Hu, Y., Wong, Y. H., Chen, Y., & Sun, X. (2011). The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literature. Decision Support Systems, 50(3), 559–569. https://doi.org/10.1016/j.dss.2010.08.006

Roy, A., Sun, J., Mahoney, R., Alonzi, L., Adams, S., & Beling, P. (2018). Deep learning detecting fraud in credit card transactions. In 2018 Systems and Information Engineering Design Symposium (SIEDS) (pp. 129–134). IEEE. https://doi.org/10.1109/SIEDS.2018.8374722

Saito, T., & Rehmsmeier, M. (2015). The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLOS ONE, 10(3), e0118432. https://doi.org/10.1371/journal.pone.0118432

Situngkir, B. B., Limbong, E. D., Pandiangan, V. A., & Yennimar. (2025). Implementasi naive bayes untuk rekomendasi pembelian produk pada aplikasi e-commerce. Jurnal Teknik Informatika.

Yunanto, R., & Budiyanto, U. (2024). Implementasi XGBoost dan SMOTE untuk meningkatkan deteksi transaksi fraud di industri jasa keuangan. Jurnal Pengembangan Teknologi Informasi (JPTI).

Downloads


Crossmark Updates

How to Cite

Law, A. ., Sanjaya, S., Wivano, F. C. ., Giawa, O. R. ., & Yennimar, Y. (2026). Fraud Detection in E-Commerce Transactions Using Autoencoder Anomaly Scoring and XGBoost Classification. Sinkron : Jurnal Dan Penelitian Teknik Informatika, 10(3). https://doi.org/10.33395/sinkron.v10i3.16551