Skip to content

Repository files navigation

FraudGuard-

End-to-end Insurance Fraud Detection system using Machine Learning, with FastAPI backend and Streamlit frontend for real-time predictions.

Project Overview

The goal of this project is to detect fraudulent insurance claims using historical data and machine learning techniques. The system takes raw user input and predicts the probability of fraud in real time.


Challenges

  • Imbalanced dataset (fraud cases are rare)
  • High-cardinality categorical features (occupation, hobbies, cities)
  • Preventing data leakage during encoding
  • Maintaining consistency between training and deployment

Pipeline

Data Preprocessing

  • Handled missing values
  • Dropped irrelevant columns
  • Converted date into cyclic features (month/day)

Feature Engineering

  • Claim severity indicators
  • Behavioral features (low witnesses, night incidents)
  • Interaction features (e.g., severity × witnesses)

Encoding

  • Target Encoding for high-cardinality features
  • One-Hot Encoding for remaining categorical variables

Model Training

  • Trained multiple models
  • Selected Gradient Boosting based on F1-score optimization

Deployment

  • Built a FastAPI backend for predictions
  • Applied the same preprocessing pipeline inside the API
  • Developed a Streamlit UI for user interaction

git clone cd

About

End-to-end Insurance Fraud Detection system using Machine Learning, with FastAPI backend and Streamlit frontend for real-time predictions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages