Production-grade ML-powered REST API + Web Dashboard for real-time loan fraud risk assessment. Dual-engine scoring — rule-based + Random Forest — deployed live on Render with TiDB Serverless, processing 31,000+ borrower records.
FraudGuard is a production-grade fraud detection and risk scoring system — combining a rule-based engine and a trained Random Forest ML model into a single, unified REST API. It simulates the real fintech fraud detection pipelines used by banks and lending platforms.
The system is live on Render at loan-fraud-risk.onrender.com — backed by TiDB Serverless cloud MySQL, with 31,686 borrower records processed and classified.
Loan default detection is one of the hardest problems in fintech. A single missed high-risk borrower costs banks thousands. Traditional rule-based systems are too rigid; pure ML models lack explainability. FraudGuard solves this with both engines running in parallel — giving risk officers a rule-based score they can interpret, and an ML confidence score they can trust.
Every API call to /api/score or /api/ml-score runs both engines simultaneously and returns a combined result:
Deployed on Render with TiDB Serverless as the cloud MySQL backend. The Procfile handles auto startup — Flask serves both the REST API and the HTML dashboard from the same app instance. Zero-downtime cold-start recovery with auto model retraining if model file is missing.