arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.07437cs.LG
收藏

采样技术与数据泄露对XGBoost在信用卡欺诈检测中性能的影响

Impact of Sampling Techniques and Data Leakage on XGBoost Performance in Credit Card Fraud Detection

University of Fort Hare(福特哈尔大学)

Siyaxolisa Kabane

AI总结:

本研究针对信用卡欺诈检测中的类别不平衡问题,对比了三种采样应用时机下XGBoost模型的性能,发现划分前采样会因数据泄露导致性能虚高,仅对训练集采样虽结果更低但保证评估可靠。

摘要:

信用卡欺诈检测仍是金融安全领域的一项关键挑战,XGBoost(极端梯度提升)等机器学习模型正成为识别欺诈交易的有力工具。然而,信用卡交易数据集中固有的类别不平衡问题给模型性能带来了重大挑战。尽管采样技术常被用于解决这种不平衡问题,但有时采样操作会在训练集-测试集划分之前执行,这可能会引入数据泄露。\n 本研究对三种场景下XGBoost在信用卡欺诈检测中的性能展开了对比分析:第一种是不采用任何不平衡处理技术,第二种是仅在训练集-测试集划分后对训练集应用采样技术,第三种是在训练集-测试集划分之前应用采样技术。我们使用了来自Kaggle的包含284807笔信用卡交易的数据集,其中欺诈案例占比0.172%,以此评估这些方法。\n 我们的研究结果表明,尽管采样策略能够提升模型性能,但采样的执行时机对结果的可靠性有极大影响。由于机器学习模型在采样阶段经常出现数据泄露问题,基于训练集-测试集划分前已完成采样的数据训练出的XGBoost模型,其性能指标可能存在人为虚高的情况。出人意料的是,仅对训练集应用采样技术训练出的模型,其结果明显低于划分前采样的模型,但全程保证了评估流程的完整性。

英文摘要:

Credit card fraud detection remains a critical challenge in financial security, with machine learning models like XGBoost(eXtreme gradient boosting) emerging as powerful tools for identifying fraudulent transactions. However, the inherent class imbalance in credit card transaction datasets poses significant challenges for model performance. Although sampling techniques are commonly used to address this imbalance, their implementation sometimes precedes the train-test split, potentially introducing data leakage. This study presents a comparative analysis of XGBoost's performance in credit card fraud detection under three scenarios: Firstly without any imbalance handling techniques, secondly with sampling techniques applied only to the training set after the train-test split, and third with sampling techniques applied before the train-test split. We utilized a dataset from Kaggle of 284,807 credit card transactions, containing 0.172\% fraudulent cases, to evaluate these approaches. Our findings show that although sampling strategies enhance model performance, the reliability of results is greatly impacted by when they are applied. Due to a data leakage issue that frequently occurs in machine learning models during the sampling phase, XGBoost models trained on data where sampling was applied prior to the train-test split may have displayed artificially inflated performance metrics. Surprisingly, models trained with sampling techniques applied solely to the training set demonstrated significantly lower results than those with pre-split sampling, all the while preserving the integrity of the evaluation process.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑