Abstract
In the e-commerce industry, user behavior sequence data has been widely used in many business units such as search and merchandising to improve their products. However, it is rarely used in financial services not only due to its 3V characteristics - i.e. Volume, Velocity and Variety - but also due to its unstructured nature. In this paper, we propose a Financial Service scenario Deep learning based Behavior data representation method for Clustering (FinDeepBehaviorCluster) to detect fraudulent transactions. To utilize the behavior sequence data, we treat click stream data as event sequence, use time attention based Bi-LSTM to learn the sequence embedding in an unsupervised fashion, and combine them with intuitive features generated by risk experts to form a hybrid feature representation. We also propose a GPU powered HDBSCAN (pHDBSCAN) algorithm, which is an engineering optimization for the original HDBSCAN algorithm based on FAISS project, so that clustering can be carried out on hundreds of millions of transactions within a few minutes. The computation efficiency of the algorithm has increased 500 times compared with the original implementation, which makes flash fraud pattern detection feasible. Our experimental results show that the proposed FinDeepBehaviorCluster framework is able to catch missed fraudulent transactions with considerable business values. In addition, rule extraction method is applied to extract patterns from risky clusters using intuitive features, so that narrative descriptions can be attached to the risky clusters for case investigation, and unknown risk patterns can be mined for real-time fraud detection. In summary, FinDeepBehaviorCluster as a complementary risk management strategy to the existing real-time fraud detection engine, can further increase our fraud detection and proactive risk defense capabilities.
Introduction
In the high-stakes environment of e-commerce fraud detection, supervised learning models are the industry standard. However, they suffer from two major flaws: they require lagged labels (feedback from banks or victims that can take weeks) and they struggle to detect novel, "unseen" fraud patterns.
While user behavior data (clickstreams) provides a unique "digital signature" that is harder to fake than static account info, it is notoriously difficult to use in financial services due to its high volume and unstructured nature. Furthermore, while unsupervised clustering is ideal for finding new fraud types, traditional algorithms often lack the scalability to handle industry-sized datasets. Finally, clustering results are often "black boxes," providing no narrative for human investigators to act upon.
The FinDeepBehaviorCluster Framework
The proposed framework introduces a three-pillar approach to solve these challenges: hybrid behavior representation, high-performance clustering, and automated rule mining.
Hybrid Behavior Representation
To capture the nuance of user intent, the authors combine expert-crafted "intuitive features" (e.g., session statistics) with deep sequence embeddings. They use a Bi-LSTM with a Time Attention mechanism to process page views and dwell times. This allows the model to distinguish between a legitimate user browsing carefully and a bot or fraudster rushing through a checkout flow. Deep embeddings capture complex temporal patterns, while intuitive features provide the "hooks" for explainability.
pHDBSCAN: GPU-Accelerated Clustering
HDBSCAN is a powerful clustering algorithm that handles varying densities well, but it is computationally expensive ($O(n^2)$). The authors optimized it for GPUs using the FAISS library for efficient K-Nearest Neighbor (KNN) searches. By implementing optimizations in distance matrix calculation and Minimum Spanning Tree (MST) algorithms, they brought the complexity down to $O(V \log V)$. This engineering optimization, dubbed pHDBSCAN, achieved a 500x speedup over standard implementations.
Explainability and Rule Mining
To make the results actionable, the framework uses Skope-rules to extract logical, human-readable rules from the identified "risky clusters." This transforms a group of data points into a narrative like: "If checkout events > 10 AND dwell time < 5 seconds, then Risky." By generating these "if-then" rules, the authors bridge the gap between complex AI and human investigators, allowing for domain knowledge discovery where the AI teaches experts about new fraud tactics.
Key Results
- Computational Efficiency: On a dataset of 12M transactions, pHDBSCAN completed the task in 15 minutes, whereas the vanilla implementation was estimated to take days. This speed makes "post-transaction, early intervention" (e.g., stopping a shipment) feasible.
- Fraud Detection Performance: The hybrid feature set significantly outperformed single-source models. In transductive experiments, the hybrid approach achieved an F-score of 6.27%, nearly double that of using deep sequence embeddings alone (3.35%) and nearly four times better than using only hand-crafted features (1.75%).
- Business Impact: The framework successfully caught fraudulent transactions missed by existing real-time engines, demonstrating high business value in proactive risk defense.
Conclusion
FinDeepBehaviorCluster demonstrates that deep learning embeddings and expert features are better together. By focusing on clustering rather than classification, the system can identify "flash fraud" patterns as they happen. Future work will focus on refining rule extraction techniques and testing the framework in other marketplace risk scenarios, such as account takeovers or seller collusion.
Summary updated