This project is focused on detecting financial fraud using machine learning models. It offers a complete pipeline starting from data collection and model training to deployment through a Flask web application. The objective is to enable users to input transaction data and receive fraud detection predictions in real-time. The machine learning models are trained in Google Colab and deployed locally using Flask.
- Download the dataset from the following link:
- Open the
fraud.ipynbfile in Google Colab. - Upload the CSV dataset.
- Execute each cell in the notebook to clean the data, train the machine learning models, and evaluate performance.
- Once the models are trained, export and save them as
.h5(Keras/TensorFlow) or.joblib(Scikit-learn). - Download these files and place them in the
models/directory inside your local project folder.
- Clone the repository:
git clone https://github.com/NukaNarendra/FinancialFraudDetectionUsingML cd FinancialFraudDetectionUsingML - Ensure Python 3.10 or below is installed.
Install the necessary Python libraries using pip:
pip install flask flask_sqlalchemy werkzeug numpy tensorflow pandas joblibStart the application with:
python main.pyVisit http://127.0.0.1:5000/ on your browser to access the web interface.
- Programming Language: Python
- ML Libraries: TensorFlow, Scikit-learn, Pandas, NumPy, Joblib
- Web Framework: Flask
- Notebook: Google Colab
- Deployment: Localhost via Flask
- ✅ Trains machine learning models to identify fraudulent financial transactions.
- ✅ Flask web interface for interactive prediction and user input.
- ✅ Real-time fraud detection and result display.
- ✅ Easy-to-use modular structure with pre-trained model integration.
📂 FinancialFraudDetectionUsingML
├── 📁 instance
├── 📁 static
├── 📁 templates
├── 📁 models # Folder to store trained model files
├── 📄 README.md
├── 📓 fraud.ipynb # Google Colab notebook
└── 🐍 main.py # Flask application
- Python 3.10 or lower
- Google Colab for model training
- Flask & Flask_SQLAlchemy
- TensorFlow, Pandas, NumPy, Joblib
Contributions are highly welcome! Feel free to raise issues, suggest improvements, or submit pull requests to enhance the functionality and performance.
Venkata Narendra Nuka
- 🔔 Add real-time alerts for detected frauds via email/SMS.
- 🤖 Integrate advanced deep learning models like LSTM or Autoencoders.
- 🔄 Extend deployment to cloud platforms like Heroku or AWS.