AI-powered behavioral anomaly detection system for identifying suspicious user activity using Machine Learning, FastAPI, Docker, and Streamlit.
https://anomalyguard-console.streamlit.app/
https://anomalyguard-ai.onrender.com/docs
AnomalyGuard AI is a production-grade behavioral anomaly detection platform designed to detect suspicious user behavior patterns using machine learning.
The system analyzes:
- Typing speed
- Mouse movement behavior
- Click frequency
- Session duration
- Behavioral deviations
to generate:
- anomaly scores
- fraud risk levels
- risk intelligence insights
┌──────────────────────┐
│ Streamlit Dashboard │
│ Fraud Intelligence │
└─────────┬────────────┘
│
▼
┌────────────────────┐
│ FastAPI Inference │
│ Behavioral API │
└─────────┬──────────┘
│
▼
┌────────────────────┐
│ ML Pipeline │
│ Isolation Forest │
└─────────┬──────────┘
│
▼
┌──────────────────────┐
│ Risk Scoring │
│ Fraud Classification │
└──────────────────────┘
flowchart TD
A[User Behavioral Data] --> B[Data Preprocessing]
B --> C[Feature Engineering]
C --> D[ML Pipeline]
D --> E[Isolation Forest Model]
E --> F[Anomaly Scoring Engine]
F --> G[Risk Classification]
G --> H[FastAPI Inference API]
H --> I[Streamlit Fraud Dashboard]
H --> J[Swagger API Docs]
I --> K[Real-Time Monitoring]
subgraph Deployment
L[Docker Container]
M[Render Cloud Platform]
end
H --> L
I --> L
L --> M
| Category | Technologies |
|---|---|
| Machine Learning | Scikit-learn, Isolation Forest |
| Backend API | FastAPI |
| Frontend Dashboard | Streamlit |
| Visualization | Plotly |
| Containerization | Docker |
| Deployment | Render |
| Language | Python |
| Data Processing | Pandas, NumPy |
- Typing Speed
- Mouse Speed
- Click Rate
- Session Duration
- Typing Variance
- Click Pattern Difference
IsolationForest(contamination=0.1)| Score Range | Risk Level |
|---|---|
| Low | Legitimate behavior |
| Medium | Suspicious behavior |
| High | Potential fraud |
✅ Real-time fraud prediction
✅ Behavioral analytics visualization
✅ Risk meter gauge
✅ Threat intelligence panel
✅ Session anomaly monitoring
✅ Live API integration
✅ Interactive fraud simulator
{
"typing_speed": 220,
"mouse_speed": 110,
"click_rate": 6,
"session_time": 350
}{
"prediction": "Normal",
"anomaly_score": 0.0489,
"risk_level": "Low",
"risk_score": 19
}docker build -t anomaly-app -f docker/Dockerfile .docker run -p 8000:8000 anomaly-appgit clone https://github.com/RajeshKumar3451/Anomaly-Detection-System.git
cd Anomaly-Detection-Systempip install -r requirements-api.txtuvicorn api.main:app --reloadstreamlit run dashboard/app.pyBehavioral-Anomaly-Detection/
│
├── api/
│ └── main.py
│
├── dashboard/
│ └── app.py
│
├── docker/
│ └── Dockerfile
│
├── models/
│ └── pipeline.pkl
│
├── src/
│ ├── data/
│ ├── features/
│ └── models/
│
├── requirements-api.txt
├── requirements-dashboard.txt
└── README.md
- LSTM Autoencoder
- Real-time WebSocket streaming
- Kafka integration
- JWT authentication
- Database logging
- MLflow monitoring
- Drift detection
- Kubernetes deployment
✅ Production ML deployment
✅ Real-time fraud intelligence
✅ Dockerized AI infrastructure
✅ Cloud-hosted inference API
✅ Interactive security dashboard
✅ End-to-end MLOps workflow
Rajesh Kumar
https://github.com/RajeshKumar3451/Anomaly-Detection-System
Give it a star on GitHub ⭐