Anomaly Detection in E-Commerce Platforms via Graph Neural Networks

Authors

  • Lucas Becker University of Vienna

DOI:

https://doi.org/10.62177/apemr.v2i2.208

Keywords:

E-Commerce Security, Anomaly Detection, Graph Neural Networks, Fraud Detection, Transaction Analysis, Fake Reviews, Deep Learning

Abstract

The rapid expansion of e-commerce platforms has introduced significant challenges in fraud detection, including fake reviews, payment fraud, account takeovers, and product listing scams. Traditional fraud detection methods, such as rule-based systems and supervised learning classifiers, struggle to detect sophisticated fraudulent activities that evolve over time. This study proposes a graph neural network (GNN)-based anomaly detection framework to enhance fraud detection in e-commerce platforms by leveraging the graph-structured nature of user interactions, transactions, and review networks.

The proposed model constructs an e-commerce interaction graph, where nodes represent users, products, and transactions, while edges capture relationships such as purchases, reviews, and payment flows. The framework utilizes graph convolutional networks (GCN) and graph attention networks (GAT) to learn spatial dependencies within the transaction network, combined with gated recurrent units (GRU) to model temporal fraud patterns. By integrating spatial and temporal learning, the model can identify suspicious user behaviors, fraudulent transactions, and fake product listings with high accuracy.

Experiments conducted on real-world e-commerce datasets demonstrate that the GNN-based model outperforms traditional fraud detection approaches in terms of F1-score, precision, recall, and false positive rate reduction. The framework successfully detects anomalous activities with an F1-score of 0.91, significantly improving fraud detection in large-scale e-commerce environments. These results highlight the potential of graph-based deep learning in securing online marketplaces against fraudulent activities.

Downloads

Download data is not yet available.

References

Goyal G, Tyagi R, Tyagi S. Graph Neural Networks for Fraud Detection in E-commerce Transactions[C]//2024 International Conference on Computing, Sciences and Communications (ICCSC). IEEE, 2024: 1-6.

Agrawal A M. Transforming e-commerce with Graph Neural Networks: Enhancing personalization, security, and business growth[M]//Applied Graph Data Science. Morgan Kaufmann, 2025: 215-224.

Kim H, Lee B S, Shin W Y, et al. Graph anomaly detection with graph neural networks: Current status and challenges[J]. IEEE Access, 2022, 10: 111820-111829.

Gandhudi M, Alphonse P J A, Velayudham V, et al. Explainable causal variational autoencoders based equivariant graph neural networks for analyzing the consumer purchase behavior in E-commerce[J]. Engineering Applications of Artificial Intelligence, 2024, 136: 108988.

Ramakrishnan, J., Shaabani, E., Li, C., & Sustik, M. A. (2019, July). Anomaly detection for an e-commerce pricing system. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (pp. 1917-1926).

Porwal, U., & Mukund, S. (2018). Credit card fraud detection in e-commerce: An outlier detection approach. arXiv preprint arXiv:1811.02196.

Bozbura, M., Tunç, H. C., Kusak, M. E., & Sakar, C. O. (2019, January). Detection of e-Commerce Anomalies using LSTM-recurrent Neural Networks. In DATA (pp. 217-224).

Shao, Z., Wang, X., Ji, E., Chen, S., & Wang, J. (2025). GNN-EADD: Graph Neural Network-based E-commerce Anomaly Detection via Dual-stage Learning. IEEE Access.

Alexander, I., Lai, C., & Yang, H. C. (2023, October). Deep Learning Based Behavior Anomaly Detection within the Context of Electronic Commerce. In 2023 IEEE International Conference on Intelligence and Security Informatics (ISI) (pp. 1-6). IEEE.

Reddy, S. R. B., Kanagala, P., Ravichandran, P., Pulimamidi, R., Sivarambabu, P. V., & Polireddi, N. S. A. (2024). Effective fraud detection in e-commerce: Leveraging machine learning and big data analytics. Measurement: Sensors, 33, 101138.

Tax, N., de Vries, K. J., de Jong, M., Dosoula, N., van den Akker, B., Smith, J., ... & Bernardi, L. (2021). Machine learning for fraud detection in e-Commerce: A research agenda. In Deployable Machine Learning for Security Defense: Second International Workshop, MLHat 2021, Virtual Event, August 15, 2021, Proceedings 2 (pp. 30-54). Springer International Publishing.

Kalifa, D., Singer, U., Guy, I., Rosin, G. D., & Radinsky, K. (2022, February). Leveraging world events to predict e-commerce consumer demand under anomaly. In Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining (pp. 430-438).

Ounacer, S., El Bour, H. A., Oubrahim, Y., Ghoumari, M. Y., & Azzouazi, M. (2018). Using Isolation Forest in anomaly detection: the case of credit card transactions. Periodicals of Engineering and Natural Sciences, 6(2), 394-400.

Chen, S., Liu, Y., Zhang, Q., Shao, Z., & Wang, Z. (2025). Multi-Distance Spatial-Temporal Graph Neural Network for Anomaly Detection in Blockchain Transactions. Advanced Intelligent Systems, 2400898.

Westland, J. C. (2022). A comparative study of frequentist vs Bayesian A/B testing in the detection of E-commerce fraud. Journal of Electronic Business & Digital Economics, 1(1/2), 3-23.

Rani, S., & Mittal, A. (2023, September). Securing Digital Payments a Comprehensive Analysis of AI Driven Fraud Detection with Real Time Transaction Monitoring and Anomaly Detection. In 2023 6th International Conference on Contemporary Computing and Informatics (IC3I) (Vol. 6, pp. 2345-2349). IEEE.

Kim, H., Lee, B. S., Shin, W. Y., & Lim, S. (2022). Graph anomaly detection with graph neural networks: Current status and challenges. IEEE Access, 10, 111820-111829.

Groenewald, E., & Kilag, O. K. (2024). E-commerce inventory auditing: Best practices, challenges, and the role of technology. International Multidisciplinary Journal of Research for Innovation, Sustainability, and Excellence (IMJRISE), 1(2), 36-42.

Ebrahim, M., & Golpayegani, S. A. H. (2022). Anomaly detection in business processes logs using social network analysis. Journal of Computer Virology and Hacking Techniques, 1-13.

Singh, P., Singla, K., Piyush, P., & Chugh, B. (2024, January). Anomaly Detection Classifiers for Detecting Credit Card Fraudulent Transactions. In 2024 Fourth International Conference on Advances in Electrical, Computing, Communication and Sustainable Technologies (ICAECT) (pp. 1-6). IEEE.

Lee, Z., Wu, Y. C., & Wang, X. (2023, October). Automated Machine Learning in Waste Classification: A Revolutionary Approach to Efficiency and Accuracy. In Proceedings of the 2023 12th International Conference on Computing and Pattern Recognition (pp. 299-303).

Li, X., Wang, X., Chen, X., Lu, Y., Fu, H., & Wu, Y. C. (2024). Unlabeled data selection for active learning in image classification. Scientific Reports, 14(1), 424.

Wankhedkar, R., & Jain, S. K. (2021). Motif discovery and anomaly detection in an ECG using matrix profile. In Progress in Advanced Computing and Intelligent Engineering: Proceedings of ICACIE 2019, Volume 1 (pp. 88-95). Springer Singapore.

Liang, Y., Wang, X., Wu, Y. C., Fu, H., & Zhou, M. (2023). A study on blockchain sandwich attack strategies based on mechanism design game theory. Electronics, 12(21), 4417.

Ye, K. (2017, April). Anomaly detection in clouds: Challenges and practice. In Proceedings of the first Workshop on Emerging Technologies for software-defined and reconfigurable hardware-accelerated Cloud Datacenters (pp. 1-2).

Liu, Y., Wu, Y. C., Fu, H., Guo, W. Y., & Wang, X. (2023). Digital intervention in improving the outcomes of mental health among LGBTQ+ youth: a systematic review. Frontiers in psychology, 14, 1242928.

Wang, X., Wu, Y. C., & Ma, Z. (2024). Blockchain in the courtroom: exploring its evidentiary significance and procedural implications in US judicial processes. Frontiers in Blockchain, 7, 1306058.

Benkabou, S. E., Benabdeslem, K., Kraus, V., Bourhis, K., & Canitia, B. (2021). Local anomaly detection for multivariate time series by temporal dependency based on poisson model. IEEE Transactions on Neural Networks and Learning Systems, 33(11), 6701-6711.

Guo, H., Ma, Z., Chen, X., Wang, X., Xu, J., & Zheng, Y. (2024). Generating artistic portraits from face photos with feature disentanglement and reconstruction. Electronics, 13(5), 955.

Almalki, S., Assery, N., & Roy, K. (2021). An empirical evaluation of online continuous authentication and anomaly detection using mouse clickstream data analysis. Applied Sciences, 11(13), 6083.

Wang, X., Wu, Y. C., Zhou, M., & Fu, H. (2024). Beyond surveillance: privacy, ethics, and regulations in face recognition technology. Frontiers in big data, 7, 1337465.

Downloads

How to Cite

Becker, L. (2025). Anomaly Detection in E-Commerce Platforms via Graph Neural Networks. Asia Pacific Economic and Management Review, 2(2). https://doi.org/10.62177/apemr.v2i2.208

Issue

Section

Articles