B.
Tech CS(DA) Final Year Project - Fraud Detection 2025
This document outlines the core components, workflow, and technical details of the Financial
Fraud Detection System. This project leverages Machine Learning to identify fraudulent trans-
actions in real-time, addressing the critical issue of financial security in digital payments.
1. The Problem Space
Traditional methods of stopping fraud often rely on static, rule-based systems (e.g., “block
any transaction over $10,000”). These methods are rigid and easily bypassed by sophisticated
scammers. As digital transactions increase, so does the volume of data; we need a system that
learns patterns and adapts to new types of fraud automatically without manual intervention.
2. The Solution: AI-Driven Detection
I have built an intelligent system that analyzes transaction data—examining features such as
transaction amount, location, time, and user behavior—to predict the probability of fraud.
It is not merely a backend script; the model is deployed as a user-friendly web application where
users can input transaction details and receive an instant “Fraud” or “Safe” prediction.
3. Project Workflow
The project execution is divided into four distinct stages:
(1) Data Preprocessing: Real-world data is noisy. I cleaned the dataset, handled missing
values, and engineered new features (e.g., categorizing time into ‘Morning’, ‘Evening’).
• Crucial Step: Fraud data is highly imbalanced (thousands of safe transactions vs.
very few frauds). I used sampling techniques to balance the data so the model does
not become biased toward the majority class.
(2) Model Training: I utilized XGBoost (Extreme Gradient Boosting). It is chosen for
its efficiency with tabular data. It builds multiple ‘decision trees’ and learns from the
errors of previous trees, resulting in high accuracy.
(3) Evaluation: The model was tested on unseen data to ensure generalization, prioritizing
high precision and recall to minimize false alarms.
(4) Deployment: The frontend was built using Streamlit, allowing non-technical users
(like bank staff) to interact with the model intuitively.
4. Tech Stack
• Language: Python (The standard for Data Science).
• Data Manipulation: Pandas & NumPy.
• Machine Learning: XGBoost & Scikit-Learn.
• Web Framework: Streamlit.
5. Conclusion & Impact
This project demonstrates how AI can be applied to enhance financial security. By automating
detection, we reduce the reliance on manual review, cut down on financial losses, and build
greater user trust in digital payment systems. It provides a scalable, automated, and accurate
way to protect users and banks from fraud.