Open Access iconOpen Access

ARTICLE

crossmark

Ponzi Scheme Detection for Smart Contracts Based on Oversampling

Yafei Liu1,2, Yuling Chen1,2,*, Xuewei Wang3, Yuxiang Yang2, Chaoyue Tan2

1 State Key Laboratory of Public Big Data, Guizhou University, Guiyang, 550025, China
2 College of Computer Science and Technology, Guizhou University, Guiyang, 550025, China
3 Computer College, Weifang University of Science and Technology, Weifang, 262700, China

* Corresponding Author: Yuling Chen. Email: email

Computers, Materials & Continua 2026, 86(1), 1-21. https://doi.org/10.32604/cmc.2025.069152

Abstract

As blockchain technology rapidly evolves, smart contracts have seen widespread adoption in financial transactions and beyond. However, the growing prevalence of malicious Ponzi scheme contracts presents serious security threats to blockchain ecosystems. Although numerous detection techniques have been proposed, existing methods suffer from significant limitations, such as class imbalance and insufficient modeling of transaction-related semantic features. To address these challenges, this paper proposes an oversampling-based detection framework for Ponzi smart contracts. We enhance the Adaptive Synthetic Sampling (ADASYN) algorithm by incorporating sample proximity to decision boundaries and ensuring realistic sample distributions. This enhancement facilitates the generation of high-quality minority class samples and effectively mitigates class imbalance. In addition, we design a Contract Transaction Graph (CTG) construction algorithm to preserve key transactional semantics through feature extraction from contract code. A graph neural network (GNN) is then applied for classification. This study employs a publicly available dataset from the XBlock platform, consisting of 318 verified Ponzi contracts and 6498 benign contracts. Sourced from real Ethereum deployments, the dataset reflects diverse application scenarios and captures the varied characteristics of Ponzi schemes. Experimental results demonstrate that our approach achieves an accuracy of 96%, a recall of 92%, and an F1-score of 94% in detecting Ponzi contracts, outperforming state-of-the-art methods.

Keywords

Blockchain; smart contracts; Ponzi schemes; class imbalance; graph structure construction

Cite This Article

APA Style
Liu, Y., Chen, Y., Wang, X., Yang, Y., Tan, C. (2026). Ponzi Scheme Detection for Smart Contracts Based on Oversampling. Computers, Materials & Continua, 86(1), 1–21. https://doi.org/10.32604/cmc.2025.069152
Vancouver Style
Liu Y, Chen Y, Wang X, Yang Y, Tan C. Ponzi Scheme Detection for Smart Contracts Based on Oversampling. Comput Mater Contin. 2026;86(1):1–21. https://doi.org/10.32604/cmc.2025.069152
IEEE Style
Y. Liu, Y. Chen, X. Wang, Y. Yang, and C. Tan, “Ponzi Scheme Detection for Smart Contracts Based on Oversampling,” Comput. Mater. Contin., vol. 86, no. 1, pp. 1–21, 2026. https://doi.org/10.32604/cmc.2025.069152



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 767

    View

  • 316

    Download

  • 0

    Like

Share Link