# Detecting Anomalies in Blockchain Transactions using Machine Learning Classifiers and Explainability Analysis

arXiv: https://arxiv.org/abs/2401.03530 · HTML: https://mlsanity.com/paper/2401.03530/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 10 of its 59 references that are in the map.
- First posted on arXiv 7 Jan 2024.

## Builds on (most cited first, 10 of 10)

- [A Unified Approach to Interpreting Model Predictions](https://mlsanity.com/paper/1705.07874/) (2017)
- ["Why Should I Trust You?": Explaining the Predictions of Any Classifier](https://mlsanity.com/paper/1602.04938/) (2016)
- [A Random Forest Guided Tour](https://mlsanity.com/paper/1511.05741/) (2015)
- [Machine learning methods to detect money laundering in the Bitcoin blockchain in the presence of label scarcity](https://mlsanity.com/paper/2005.14635/) (2020)
- [Anomaly Detection in Blockchain Networks: A Comprehensive Survey](https://mlsanity.com/paper/2112.06089/) (2021)
- [Building an Efficient Intrusion Detection System Based on Feature Selection and Ensemble Classifier](https://mlsanity.com/paper/1904.01352/) (2019)
- [Blockchain Technology Overview](https://mlsanity.com/paper/1906.11078/) (2019)
- [Anomaly Detection in Bitcoin Network Using Unsupervised Learning Methods](https://mlsanity.com/paper/1611.03941/) (2016)
- [Explainable Artificial Intelligence for Pharmacovigilance: What Features Are Important When Predicting Adverse Outcomes?](https://mlsanity.com/paper/2112.13210/) (2021)
- [Blockchain Intelligence: When Blockchain Meets Artificial Intelligence](https://mlsanity.com/paper/1912.06485/) (2019)

## Built on by (most cited first, 4 of 4)

- [Machine Learning for Blockchain Data Analysis: Progress and Opportunities](https://mlsanity.com/paper/2404.18251/) (2024)
- [BlockScan: Detecting Anomalies in Blockchain Transactions](https://mlsanity.com/paper/2410.04039/) (2024)
- [Explain First, Trust Later: LLM-Augmented Explanations for Graph-Based Crypto Anomaly Detection](https://mlsanity.com/paper/2506.14933/) (2025)
- [Hybrid GCN-GRU Model for Anomaly Detection in Cryptocurrency Transactions](https://mlsanity.com/paper/2509.07392/) (2025)

## Abstract (arXiv)

As the use of Blockchain for digital payments continues to rise in popularity, it also becomes susceptible to various malicious attacks. Successfully detecting anomalies within Blockchain transactions is essential for bolstering trust in digital payments. However, the task of anomaly detection in Blockchain transaction data is challenging due to the infrequent occurrence of illicit transactions. Although several studies have been conducted in the field, a limitation persists: the lack of explanations for the model's predictions. This study seeks to overcome this limitation by integrating eXplainable Artificial Intelligence (XAI) techniques and anomaly rules into tree-based ensemble classifiers for detecting anomalous Bitcoin transactions. The Shapley Additive exPlanation (SHAP) method is employed to measure the contribution of each feature, and it is compatible with ensemble models. Moreover, we present rules for interpreting whether a Bitcoin transaction is anomalous or not. Additionally, we have introduced an under-sampling algorithm named XGBCLUS, designed to balance anomalous and non-anomalous transaction data. This algorithm is compared against other commonly used under-sampling and over-sampling techniques. Finally, the outcomes of various tree-based single classifiers are compared with those of stacking and voting ensemble classifiers. Our experimental results demonstrate that: (i) XGBCLUS enhances TPR and ROC-AUC scores compared to state-of-the-art under-sampling and over-sampling techniques, and (ii) our proposed ensemble classifiers outperform traditional single tree-based machine learning classifiers in terms of accuracy, TPR, and FPR scores.
