CoolFace
Datasetpublic

mdsajjadullah/fairxai-shap-eds-fraud-detection

๐Ÿง  FairXAI-FraudDetection ๐Ÿš€ Overview An end-to-end Explainable AI pipeline for credit card fraud detection that goes beyond prediction performance to evaluate fairness in both model decisions and explanations. โš ๏ธ Problem Traditional fraud detection systems act as black boxes and measure fairness only at the prediction level (accuracy, F1).They fail to assess whether explanations are consistent across different customer groups. ๐Ÿ’กโ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/mdsajjadullah/fairxai-shap-eds-fraud-detection.

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes41downloads
Dataset Card

๐Ÿง  FairXAI-FraudDetection

๐Ÿš€ Overview

An end-to-end Explainable AI pipeline for credit card fraud detection that goes beyond prediction performance to evaluate fairness in both model decisions and explanations.

โš ๏ธ Problem

Traditional fraud detection systems act as black boxes and measure fairness only at the prediction level (accuracy, F1). They fail to assess whether explanations are consistent across different customer groups.

๐Ÿ’ก Contribution

Explanation Disparity Score (EDS) A novel metric to measure whether SHAP-based explanations remain consistent across customer spending profiles.

๐Ÿ“Š Results

  • โ€”XGBoost: AUC-ROC 0.9802 | AUC-PR 0.8743 | F1 0.8195
  • โ€”Moderate Spenders: lowest recall (0.667)
  • โ€”Premium Spenders: highest performance (F1 0.894)
  • โ€”High Spenders: distinct explanation pattern (V4 vs V14)
  • โ€”EDS-F1: 0.1792 โ†’ prediction disparity
  • โ€”EDS-SHAP: 0.0345 โ†’ explanation consistency

๐Ÿ” Key Insight

The model is consistent in how it explains fraud globally, but inconsistent in how well it detects fraud across customer groups.

๐Ÿ› ๏ธ Methods

  • โ€”Models: XGBoost, Random Forest, Logistic Regression
  • โ€”Explainability: SHAP
  • โ€”Fairness: EDS across 5 spending profiles

๐Ÿ“ Dataset

Credit Card Fraud Detection (ULB) 284,807 transactions ยท 492 fraud cases ยท 30 features

๐Ÿ”— Resources

  • โ€”Kaggle : https://www.kaggle.com/datasets/mdsajjadullah/fairxai-fraud-detection-and-fairness-audit
  • โ€”GitHub: https://github.com/MdSajjadUllah/FairXAI-FraudDetection