Icon

Machine Learning Fraud Detection Pipeline

There has been no title set for this workflow's metadata.

This workflow streamlines fraud detection by integrating data importation, preprocessing, and sophisticated feature engineering with machine learning. It focuses on analyzing transaction data, highlighting anomalies, and calculating key metrics for fraud risk assessment. Emphasizing customer behavior and terminal risk over varied time frames, it leads to the development of an accurate, reusable machine learning model. This No-Code/Low-Code pipeline adeptly navigates the intricacies of large-scale fraud analysis.

URL: Reproducible Machine Learning for Credit Card Fraud Detection - Practical Handbook https://fraud-detection-handbook.github.io/fraud-detection-handbook/Foreword.html

Annotations and comments
  • Big Data Pipeline Implementation - Case Study of Fraud Prediction with KNIME The workflow we present today aims to address this issue by using a series of calculated steps to transform raw data into a fraud prediction model in a No-Code/Low-Code environment. The key steps are: Data Reading: Importing raw data. Preprocessing & Feature Engineering: Transforming date and time fields and creating relevant indicators. Predictions: Using a machine learning model and then saving the model to be able to reuse it in a second workflow. Each node has its own function in the overall execution. More than 4000 nodes exist in the ecosystem, for all use cases. Source: Treatments adapted from work in Python: By Machine Learning Group (Free University of Brussels - ULB).
  • Machine Learning Training Pipeline
  • A - Data Reading Node
  • B - Data Cleaning & Feature Engineering - Creation of new variables
  • C - Fraud Prediction and Model Saving on the Server
  • Reading Random Data CSV of transactions
  • Sampling to manage class imbalance Ensuring representativeness
  • Reading terminals
  • Extraction of the day and time of transactions
  • Model training Machine Learning
  • Predictions on the test set from the trained model
  • Model conversion to PMML format
  • Handles missing values
  • Visualize fraud points
  • Saving the model for reuse without retraining on all data
  • Dataset Split 80%/20% Train/Test Hold-Out Approach
  • Flag transactions during the weekend
  • Flag transactions at night (midnight to 6am)
  • Reading the matrix to evaluate the effectiveness of the model Accuracy = 78%
  • Date conversion string to DateTime format
  • 1 - Function to calculate two characteristics of customer spending behavior over time windows (1, 7, 30 days).
  • 2 - Function to calculate a fraud risk score and the number of transactions over time windows as previously for each terminal ID.
  • Sorted by Increasing Dates To be able to perform windowing calculations in a coherent manner

Nodes

Extensions

Links