Enterprise-grade, event-driven anomaly detection pipeline with sub-millisecond ONNX inference.
Sentinel is an enterprise-grade, real-time fraud detection system. It simulates high-throughput financial transactions via streaming (Redpanda/Kafka) and evaluates them in milliseconds using an optimized ONNX inference engine.
Clone the project to your local machine and navigate into the root directory:
git clone https://github.com/enesgulerdev/sentinel.git
cd sentinelThe data ingestion process requires a Google Drive File ID to fetch the raw dataset via gdown. Copy the example environment file to create your local configuration:
cp .env.example .envInstall all required Python packages and set up the local development environment. This command utilizes uv to create a virtual environment and strictly syncs the dependencies locked in uv.lock.
task env:installRun the complete machine learning pipeline. This automated task will fetch the raw dataset using your provided .env variable, apply preprocessing transformations, and train the baseline model.
task ml:pipelineThe Sentinel project utilizes a microservices architecture. Start the Docker containers to spin up the API gateway, and all other core services in detached mode:
# Start all services
task docker:on
# Stop and remove containers, networks, and volumes
task docker:offOnce the Docker containers are up and running, you can access the core services via the following local addresses:
| Service | Local URL |
|---|---|
| Dashboard: | http://localhost:8000/api/v1/dashboard |
| API Gateway | http://localhost:8000 |
| Redpanda | http://localhost:8080 |
Sentinel leverages the Taskfile runner for all automation. If the command is not recognized, install it:
- macOS (Homebrew):
brew install go-task - Windows (Chocolatey/Scoop):
choco install go-taskorscoop install task - Linux:
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
Sentinel is built with a strictly modular architecture. While this guide covers local Docker deployment, you can explore the advanced components in their respective directories:
- Infrastructure & Kubernetes: Enterprise deployment manifests, service configurations, and orchestration details for scaling Sentinel in the cloud.
- Testing Suite: Comprehensive unit tests, integration tests, and mock fixtures ensuring system reliability.