Computer and Knowledge Engineering

Computer and Knowledge Engineering

A Novel Three-Layer Model for Real-Time Credit Card Fraud Detection Using Apache Spark

Document Type : Original Article

Authors
1 Independent Researcher, Ph.D. in Computer Engineering (Software), Specializing in Data Science
2 Assistant Professor, Master of Data Analytics, University of Niagara Falls, Niagara Falls, ON, Canada.
10.22067/cke.2026.88509.1116
Abstract
Detecting fraudulent transactions in electronic payment systems requires robust and efficient analysis of large-scale, complex datasets to prevent financial losses and enhance customer trust. This study introduces a pioneering three-layer model for real-time credit card fraud detection, harnessing big data processing with Apache Spark’s in-memory capabilities. The model integrates a storage layer using HDFS for fraudulent and legitimate transactions, a batch learning layer training detection algorithms, and an input stream processing layer for real-time classification. Engineered features (transaction type, amount, date, time) enhance pattern detection. Quick filters (Hidden Markov Model, Self-Organizing Map) and explicit filters (Neural Networks, Logistic Regression, Support Vector Machine) score transactions, leveraging Dempster-Shafer theory and adaptive thresholds, with suspicious cases sent for manual review. Simulations on the UCI dataset (284,807 transactions, 0.172% fraudulent) demonstrate exceptional performance: Accuracy (0.99), Precision (0.95), Recall (0.83), and F1-Score (0.89). Key advantages include rapid and precise detection, superior prediction, cost-effectiveness, scalability, low latency, and enhanced customer satisfaction, outperforming existing methods.
Keywords
Subjects

Send comment about this article
Enter Name.
Enter a valid email address.
Enter a vaid affiliation.
Enter comments (At leaset 10 words)
CAPTCHA Image
Enter Security Code Correctly.

Articles in Press, Accepted Manuscript
Available Online from 23 November 2026