Adapting to Concept Drift in Credit Card Transaction Data Streams Using Contextual Bandits and Decision Trees

Dennis J. N. J. Soemers, Tim Brys, Kurt Driessens, Mark H. M. Winands, Ann Nowé

Abstract

Credit card fraud detection is a dynamic challenge characterized by "concept drift," where fraudsters continuously adapt their tactics to bypass security measures. Traditional offline models often suffer from feedback loops and high latency in adaptation. This paper proposes a novel framework that treats fraud detection as a Contextual Multi-Armed Bandit (CMAB) problem. We introduce Tree-Boosted Bootstrap Thompson Sampling (TBBTS), an online learning approach that uses incremental regression trees to dynamically cluster transactions and a hierarchical boosting architecture to predict rewards. By integrating exploration-exploitation strategies, TBBTS effectively identifies emerging fraud patterns. Our evaluation on real-world data and adversarial simulations shows that TBBTS significantly outperforms state-of-the-art offline models, achieving higher cumulative rewards and superior precision.

Introduction

In the adversarial landscape of financial services, fraud detection systems must operate in real-time to mitigate losses. However, most industrial systems rely on batch-trained models that are updated infrequently. This static approach fails to account for concept drift—the phenomenon where the statistical properties of the target variable change over time. When fraudsters realize a specific pattern is being blocked, they pivot to new strategies.

Traditional systems face two critical bottlenecks:

  1. Feedback Loops: Only highly suspicious transactions are typically reviewed by experts. If a model misses a new fraud type, it never receives the necessary labels to learn from its mistake.
  2. Adaptation Latency: The time required to retrain and redeploy models in a batch setting creates a window of opportunity for fraudsters to exploit newly discovered vulnerabilities.

Methodology: Tree-Boosted Bootstrap Thompson Sampling (TBBTS)

To overcome these limitations, we propose framing fraud detection as an online exploration-exploitation task. The core of our approach is the Tree-Boosted Bootstrap Thompson Sampling (TBBTS) algorithm.

Incremental Regression Trees

Handling high-velocity transaction streams requires a scalable way to define decision boundaries. We utilize incremental regression trees (based on the FIMT-DD algorithm) to partition the feature space. Instead of treating every transaction as an individual "arm," the tree clusters similar transactions into leaf nodes, which then serve as the arms in our bandit framework.

Tree-Boosted Architecture

A key innovation is the "tree-boosted" model structure. Unlike standard decision trees that only make predictions at the leaves, our architecture embeds a logistic regression model in every node of the tree.

The tree-boosted architecture combines models along the path from root to leaf.

As shown in Figure 1, the final prediction for a given transaction is an aggregation of the models along the path from the root to the specific leaf node. This hierarchical approach allows the system to learn broad, general fraud patterns at the top levels while refining specific, localized nuances at the bottom.

Exploration and Semi-Supervised Learning

To manage the exploration-exploitation trade-off, we employ Bootstrap Thompson Sampling (BTS). By maintaining an ensemble of $J$ models and randomly selecting one for each decision, the system naturally explores transactions with high uncertainty. Furthermore, we incorporate Semi-Supervised Learning (SSL) to leverage unlabeled data, allowing the regression tree to adapt its structure more rapidly even when human-verified labels are scarce.

Experimental Evaluation

We evaluated the TBBTS framework using two distinct approaches:

  • Real-World Dataset: A dataset of ~285,000 European credit card transactions. This provides a benchmark for performance on historical, static fraud patterns.
  • MultiMAuS Simulator: To test adaptability, we used a simulator where "fraudsters" are programmed to react to detection. If a specific fraud strategy is consistently blocked, the simulator generates new, different fraudulent behaviors.

Results and Discussion

The TBBTS approach demonstrated a clear advantage over traditional offline baselines like XGBoost and Random Forest.

Cumulative rewards over time comparing TBBTS variants against standard offline baselines.

As illustrated in Figure 2, the TBBTS (SSL) variant achieved the highest average cumulative reward over 25 trials. In terms of precision, TBBTS (SSL) reached a Precision@K of 0.724, nearly doubling the performance of XGBoost (0.376) and significantly exceeding Random Forest (0.455).

The results highlight that active exploration is not just beneficial but necessary. "Greedy" models that only target high-probability fraud eventually become "blind" to new tactics. By contrast, the TBBTS models continued to improve their performance in the MultiMAuS simulator as they "learned" the evolving strategies of the simulated fraudsters.

Conclusion

By treating fraud detection as a contextual bandit problem, we can build systems that are inherently adaptive and resilient to concept drift. The TBBTS framework provides a robust method for online learning in high-velocity data streams. Future work will focus on incorporating cost-sensitivity into the reward function and exploring ensemble methods that combine the strengths of online bandit models with established offline architectures.

Summary updated

BibTeX
@inproceedings{soemers2018adapting,
  author = {Dennis J. N. J. Soemers and Tim Brys and Kurt Driessens and Mark H. M. Winands and Ann Nowé},
  title = {{Adapting to Concept Drift in Credit Card Transaction Data Streams Using Contextual Bandits and Decision Trees}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11411},
}
Figure