Abstract
As the rapid development of online transactions, transaction frauds have also emerged seriously. The fraud strategies are characterized by specialization, industrialization, concealment and scenes. Anti-fraud technologies face many challenges under the trend of new situations. In this paper, aiming at sample imbalance and strong concealment of online transactions, we enhance the original deep forest framework to propose a deep forest-based online transaction fraud detection model. Based on the BaggingBalance method we propose, we establish a global sample imbalance processing mechanism to deal with the problem of sample imbalance. In addition, the autoencoder model is introduced into the detection model to enhance the representation learning ability. Via the three-month real online transactions data of a China's bank, the experimental results show that, evaluating by the metric of precision and recall rate, the proposed model has a beyond 10 % improvement compared to the random forest model, and a beyond 5 % improvement compared to the original deep forest model.
Introduction
Online transaction fraud has evolved into a high-stakes, industrialized threat. As digital finance expands, fraudsters employ increasingly sophisticated tactics to conceal their activities. Traditional expert-rule systems are often too rigid to adapt, while standard machine learning (ML) and deep learning (DL) models face significant hurdles in this domain.
The primary challenges identified by researchers are twofold: extreme sample imbalance and strong concealment. In real-world banking, fraudulent transactions are exceedingly rare. A model might achieve high accuracy simply by predicting all transactions as legitimate, failing to detect the actual fraud. Furthermore, fraudulent patterns are often buried in high-dimensional tabular data. Unlike images or text, transaction features (e.g., amount, location, time) do not possess inherent spatial or sequential relationships, making standard DL architectures like Convolutional Neural Networks (CNNs) less effective.
To address these issues, this paper proposes an Improved Deep Forest model. By integrating Autoencoders for unsupervised representation learning and a novel BaggingBalance sampling technique, the framework provides a robust solution for detecting "invisible" thieves in banking systems.
Methodology
The proposed model enhances the original Deep Forest (gcForest) framework through three primary modifications designed for tabular transaction data.
BaggingBalance Preprocessing
To handle the "needle in a haystack" problem of fraud data, the authors developed BaggingBalance. This mechanism combines bootstrap aggregating (Bagging) with under-sampling. It creates multiple training subsets where the majority class (legitimate transactions) is sampled down to match the minority class. Crucially, it introduces "double randomness" by perturbing both the samples and the features selected for each subset. This ensures the model generalizes well to new, unseen fraud patterns without overfitting on the limited fraudulent samples available.
Autoencoder-based Multi-Grained Scanning
The standard Deep Forest uses a sliding window approach for multi-grained scanning, which assumes that the relative position of features matters. Since transaction data is non-sequential, the researchers replaced this with multiple Autoencoders. These models perform unsupervised representation learning to extract deep, compressed features from the raw input. This allows the model to capture complex relationships between transaction attributes without making false assumptions about their spatial arrangement.
XGBoost in the Cascade Forest
The "Cascade Forest" mimics the layered structure of a neural network, where each level processes the output of the previous one. The authors enhanced this stage by incorporating XGBoost (eXtreme Gradient Boosting) alongside traditional Random Forests. This hybrid approach leverages the high-performance gradient boosting capabilities of XGBoost to improve the discriminative power of the ensemble at each layer.
Experimental Results
The model was evaluated using a high-quality dataset of real B2C transaction records from a major Chinese bank, covering a three-month period in 2017. The dataset included over 70,000 labeled fraudulent transactions and 67 distinct attributes.
Performance and Stability
The proposed model was benchmarked against standard Random Forest (RF) and the original gcForest. Key results include:
- Metric Improvement: The model achieved a >10% improvement in precision and recall over RF and a >5% improvement over the original Deep Forest.
- Optimal Complexity: Experimental analysis showed that the model's performance peaks when using 4 to 6 Autoencoders. Beyond this point, the model begins to overfit, leading to a degradation in performance.
- Deployment: The researchers successfully implemented the model in a Browser/Server (B/S) system, demonstrating its capability for real-time monitoring and interception of fraudulent transactions.
Conclusion
The Improved Deep Forest model demonstrates the power of combining deep learning components (Autoencoders) with machine learning ensembles (Deep Forest and XGBoost). By rejecting the spatial assumptions of traditional DL and implementing a robust sampling strategy, the researchers have created a highly effective tool for modern anti-fraud efforts. Future work will focus on reducing training latency and exploring graph-based feature engineering to capture complex account networks.
Summary updated