- Home
- Archives
- 2025
- Vol. 4 Issue 2
- Article
Credit Card Fraud Detection Using Random Forest and XG boost
Authors
1Dean Academics and Head, Computer Science Engineering in Data Science, Dayananda Sagar Academy of Technology and Management, Bengaluru, Karnataka, India. 2345 Students, Department of Computer Science Engineering in Data Science, Dayananda Sagar Academy of Technology and Management, Bengaluru, Karnataka, India.
Article Information
- Published In
- Volume 4, Issue 2 (2025)
- Published Online
- May-August 2025
- Pages
- 266-270
- Article Type
- Case Study
Abstract
View PDFCredit card fraud detection is challenging due to class imbalance and subtle patterns in transaction data. This study evaluates the effectiveness of Random Forest and XGBoost using a publicly available dataset. Preprocessing involves feature scaling with StandardScaler, class balancing through SMOTE, and eliminating non-informative features to enhance model accuracy. Random Forest is trained using all relevant features with optimized hyperparameters, including limited tree depth and minimum sample splits, to reduce overfitting and improve generalization. It demonstrates solid baseline performance across F1- score, recall, accuracy, and precision. XGBoost is trained on a selected subset of high-impact features to reduce dimensionality and accelerate training. It outperforms Random Forest, particularly in identifying minority-class fraud cases, making it more effective for real-time fraud detection. The study underscores the importance of combining robust preprocessing techniques with ensemble learning models to develop reliable fraud detection systems.
Related Articles
Share Article
*Instagram doesn't support direct link sharing from web. Copy the link and share it in your Instagram story or post.