Skip to content

Repository files navigation

🛡️ Fraud Detection Predictor

A Machine Learning project that predicts whether a financial transaction is fraudulent or legitimate using supervised learning. The project covers the complete ML workflow—from data preprocessing and feature engineering to model deployment with an interactive Streamlit web application for real-time predictions.


📌 Overview

Financial fraud is one of the biggest challenges in digital payment systems. This project leverages machine learning techniques to classify transactions as fraudulent or legitimate based on transaction-related features. The application is deployed using Streamlit, allowing users to make instant predictions through a simple web interface.


🔗 Live Application

Resource Link
🌐 Live App Launch Fraud Detection Predictor
💻 Source Code GitHub Repository

Home Page

Home

Prediction Result

Prediction

Fraud Detection

Result

🚀 Features

  • Data preprocessing and cleaning
  • Exploratory Data Analysis (EDA)
  • Feature engineering
  • Handling class imbalance
  • One-Hot Encoding for categorical features
  • Feature Scaling
  • Machine Learning classification model
  • Model evaluation using multiple metrics
  • Interactive Streamlit web application
  • Real-time fraud prediction

🛠️ Tech Stack

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • Matplotlib
  • Seaborn
  • Streamlit
  • Joblib

📂 Project Structure

Fraud-Detection-Predictor/
│
├── assets/
│   ├── home.png
│   ├── prediction.png
│   └── result.png
│
├── fraud_detection.py          # Streamlit application
├── fraud_detection_pipeline.pkl # Trained ML pipeline
├── analysis_model.ipynb        # Model development notebook
├── requirements.txt
├── README.md
└── dataset.csv

📊 Machine Learning Pipeline

  1. Data Cleaning
  2. Exploratory Data Analysis (EDA)
  3. Feature Engineering
  4. Data Preprocessing
  5. Model Training
  6. Model Evaluation
  7. Streamlit Deployment

📈 Evaluation Metrics

  • Accuracy
  • Precision
  • Recall
  • F1-Score
  • Confusion Matrix

▶️ Running the Project

Clone the Repository

git clone https://github.com/yashasvitomar18/Fraud-Detection-Predictor.git

Install Dependencies

pip install -r requirements.txt

Run the Streamlit Application

streamlit run fraud_detection.py

🔮 Future Improvements

  • Deep Learning-based fraud detection
  • Explainable AI (SHAP/LIME)
  • REST API integration
  • Cloud deployment (AWS/GCP/Azure)
  • Real-time transaction monitoring

👨‍💻 Author

Yashasvi Tomar

About

An ML-powered fraud detection system that predicts fraudulent financial transactions using machine learning and an interactive Streamlit web application

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages