Ao Xiong , Chenbin Qiao , Wenjing Li , Dong Wang , Da Li , Bo Gao , Weixian Wang
{"title":"Block-chain abnormal transaction detection method based on generative adversarial network and autoencoder","authors":"Ao Xiong , Chenbin Qiao , Wenjing Li , Dong Wang , Da Li , Bo Gao , Weixian Wang","doi":"10.1016/j.hcc.2025.100313","DOIUrl":null,"url":null,"abstract":"<div><div>Anomaly detection in blockchain transactions faces several challenges, the most prominent being the imbalance between positive and negative samples. Most transaction data are normal, with only a small fraction of anomalous data. Additionally, blockchain transaction datasets tend to be small and often incomplete, which complicates the process of anomaly detection. When using simple AI models, selecting the appropriate model and tuning parameters becomes difficult, resulting in poor performance. To address these issues, this paper proposes GANAnomaly, an anomaly detection model based on Generative Adversarial Networks (GANs) and Autoencoders. The model consists of three components: a data generation model, an encoding model, and a detection model. Firstly, the Wasserstein GAN (WGAN) is employed as the data generation model. The generated data is then used to train an encoding model that performs feature extraction and dimensionality reduction. Finally, the trained encoder serves as the feature extractor for the detection model. This approach leverages GANs to mitigate the challenges of low data volume and data imbalance, while the encoder extracts relevant features and reduces dimensionality. Experimental results demonstrate that the proposed anomaly detection model outperforms traditional methods by more accurately identifying anomalous blockchain transactions, reducing the false positive rate, and improving both accuracy and efficiency.</div></div>","PeriodicalId":100605,"journal":{"name":"High-Confidence Computing","volume":"5 4","pages":"Article 100313"},"PeriodicalIF":3.0000,"publicationDate":"2025-03-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"High-Confidence Computing","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2667295225000170","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
Anomaly detection in blockchain transactions faces several challenges, the most prominent being the imbalance between positive and negative samples. Most transaction data are normal, with only a small fraction of anomalous data. Additionally, blockchain transaction datasets tend to be small and often incomplete, which complicates the process of anomaly detection. When using simple AI models, selecting the appropriate model and tuning parameters becomes difficult, resulting in poor performance. To address these issues, this paper proposes GANAnomaly, an anomaly detection model based on Generative Adversarial Networks (GANs) and Autoencoders. The model consists of three components: a data generation model, an encoding model, and a detection model. Firstly, the Wasserstein GAN (WGAN) is employed as the data generation model. The generated data is then used to train an encoding model that performs feature extraction and dimensionality reduction. Finally, the trained encoder serves as the feature extractor for the detection model. This approach leverages GANs to mitigate the challenges of low data volume and data imbalance, while the encoder extracts relevant features and reduces dimensionality. Experimental results demonstrate that the proposed anomaly detection model outperforms traditional methods by more accurately identifying anomalous blockchain transactions, reducing the false positive rate, and improving both accuracy and efficiency.
区块链事务中的异常检测面临着几个挑战,最突出的是正样本和负样本之间的不平衡。大多数事务数据是正常的,只有一小部分异常数据。此外,区块链事务数据集往往很小,而且往往不完整,这使得异常检测过程变得复杂。当使用简单的AI模型时,选择合适的模型和调优参数变得困难,导致性能不佳。为了解决这些问题,本文提出了一种基于生成对抗网络(GANs)和自编码器的异常检测模型——GANAnomaly。该模型由三个部分组成:数据生成模型、编码模型和检测模型。首先,采用Wasserstein GAN (WGAN)作为数据生成模型。生成的数据然后用于训练编码模型,该模型执行特征提取和降维。最后,训练好的编码器作为检测模型的特征提取器。该方法利用gan来缓解低数据量和数据不平衡的挑战,而编码器提取相关特征并降低维数。实验结果表明,该异常检测模型能够更准确地识别异常区块链交易,降低误报率,提高准确率和效率,优于传统的异常检测方法。