Real-time fraud detection inference service.
Built with Celery + RabbitMQ as message broker, results and transaction data stored in PostgreSQL.
Uses XGBoost model with strong class imbalance handling via SMOTE.
Hyperparameters were optimized using Optuna.
- Backend: Celery workers
- Message Broker: RabbitMQ
- Database: PostgreSQL
- ML Model: XGBoost (trained with SMOTE + Optuna tuning)
- Deployment: Docker + Docker Compose
app/app.py— Celery configuration and task registrationworker/tasks.py— main taskrun_fraud_inference(**data_dict)for model inferencemodels/— serialized XGBoost model (xgb_final.joblib) + preprocessing pipelinedocker-compose.yml— launches RabbitMQ, PostgreSQL and Celery workers
- Docker
- Docker Compose
docker-compose up --buildDefault flower localhost:5555

