FraudIQ is a machine learning-powered tool for assessing the risk of credit card transactions. Built as a full-stack prototype, it allows users to interact with a logistic regression model in real time and generate transaction risk reports.
-
Logistic Regression Model
Trained on 284,807 credit card transactions with a validation accuracy of 97.5%. -
Risk Scoring System
Calculates a fraud risk score (0β100) and classifies transactions into Low, Medium, or High Risk. -
Real-Time Analysis
Users input transaction amount and time, and receive immediate risk evaluations. -
Risk Summary Report
Generates a downloadable PDF summarizing the number of transactions, risk distribution, average score, and max score.
-
Frontend: React.js
Interactive dashboard with chart visualizations using Recharts. -
Backend: Flask
REST API serving real-time predictions and generating risk reports. -
Machine Learning:
Logistic Regression using scikit-learn, with SMOTE to address class imbalance.
-
User Input
Enter transaction amount and time through the React dashboard. -
Prediction
Backend model returns a risk score and level based on the trained logistic regression model. -
Visualization
View results through a dynamic chart and summary card. -
Report Generation
Instantly generate a downloadable PDF with all relevant transaction risk data.
# Clone the repository
git clone https://github.com/your-username/FraudIQ.git
cd FraudIQ
# Install backend dependencies
pip install -r requirements.txt
# Run the backend
python app.py
# Navigate to frontend directory
cd client
# Install frontend dependencies
npm install
# Start the React frontend
npm start