Credit Card Fraud Detection

Anonymized credit card transactions labeled as fraudulent or genuine

Problem Statement:

  1. Credit card companies should be able to identify fraudulent transactions so that customers are not charged for items that they did not purchase.With the cost of fraud rising and cardholder trust declining, financial institutions need to take steps to ensure their business and their cardholders are protected. Credit Card companies need anonymized credit card transactions labeled as fraudulent or genuine for enhanced security and to avoid losses.

Challenge:

  • The provided dataset was highly unbalanced . Positive class (frauds) account only for 0.172% of all transactions. Due to non-disclosure & confidentiality issues, the company cannot provide original features and additional background information. Hence PCA (Principal component analysis)transformation was chosen as the model

Solution:

  1. iVentura Machine Learning Platform was used for building the solution. iVentura provides the complete ecosystem for data scientists to build models without worrying about the underlying Infra & Security.
  2. The feature ‘Amount’ is the transaction Amount. This feature can be used for example-dependant cost-sensitive learning. Feature ‘Class’ is the response variable and takes value 1 in case of fraud and 0 otherwise.
  3. Given the class imbalance ratio, we recommend measuring the accuracy using the Area Under the Precision-Recall Curve (AUPRC). Confusion matrix accuracy is not meaningful for unbalanced classification.
  • 1) The class datasets is of type unbalanced classification.
  • 2) Thus, SMOTE is used for imbalanced labelled data.
  • 3) Exploratory data analysis is carried out on input data.
  • 4) Class data contains two classes:  fraudulent and not fraudulent.
  • 5) Logistic regression with balanced class is used to predict fraudulent transactions.
  • 6) Save the data into pickle
  • 7) Deploy the model
  • 8) Share the Visualization