Combining XGBoost + Deep Q-Network Reinforcement Learning + Real-time Analytics
Features โข Quick Start โข Architecture โข AI Models
Aura-Sentinel is an enterprise-grade AI platform for customer churn prediction and retention optimization. It helps businesses:
- ๐ Predict which customers are likely to churn
- ๐ฏ Decide the optimal retention action for each customer
- ๐ฐ Maximize revenue saved while minimizing intervention costs
- ๐ Visualize real-time analysis in a modern dashboard
|
XGBoost model with 94% accuracy predicting customer churn probability Deep Q-Network agent optimizes retention actions (Email, SMS, Discounts, Personal Call) What-if scenario analysis - adjust cost modifiers to see how AI decisions change |
Real-time customer processing with animated visualization Upload custom datasets and train new models with one click Filter by risk level, export to PDF and CSV |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AURA-SENTINEL DESKTOP APP โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ FRONTEND โ โ BACKEND โ โ AI BRAIN โ โ
โ โ โ โ โ โ โ โ
โ โ React 18 โโโโโโบโ Go 1.21 โโโโโโบโ Python 3.10 โ โ
โ โ TypeScript โ โ Wails 2.11 โ โ Flask API โ โ
โ โ Recharts โ โ Bindings โ โ PyTorch โ โ
โ โ Lucide โ โ โ โ XGBoost โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Tool | Version | Install Command |
|---|---|---|
| Go | 1.21+ | Download |
| Node.js | 18+ | Download |
| Python | 3.10+ | Download |
| Wails CLI | 2.11 | go install github.com/wailsapp/wails/v2/cmd/wails@latest |
cd apps/brain-rl
python -m venv venv
.\venv\Scripts\activate # Windows
pip install -r requirements.txt
python api.pycd apps
wails devcd apps
wails buildOutput: build/bin/Aura-Sentinel.exe
aura-sentinel/
โโโ ๐ apps/
โ โโโ ๐ main.go # Wails entry point
โ โโโ ๐ app.go # Engine bindings & API
โ โโโ ๐ frontend/ # React TypeScript UI
โ โ โโโ src/App.tsx # Main dashboard component
โ โ โโโ src/App.css # Premium dark theme
โ โโโ ๐ brain-rl/ # Python AI models
โ โ โโโ api.py # Flask REST API
โ โ โโโ *.pth # PyTorch DQN weights
โ โ โโโ *.pkl # XGBoost model
โ โโโ ๐ engine-go/ # Standalone batch processor
โโโ ๐ data/
โ โโโ dataset.xls # Telco customer data
โโโ ๐ README.md
| Metric | Value |
|---|---|
| Accuracy | 94% |
| Features | 22 customer attributes |
| Output | Churn probability (0.0 - 1.0) |
| Component | Description |
|---|---|
| State | 9 features (churn prob, tenure, charges, contract, etc) |
| Actions | 6 retention actions with varying costs |
| Reward | Customer Lifetime Value saved - action cost |
| Network | 4-layer MLP (128โ128โ64โ6) |
| ID | Action | Cost |
|---|---|---|
| 0 | No Action | 0% |
| 1 | Send Email | 1% |
| 2 | Send SMS | 2% |
| 3 | Offer 10% Discount | 10% |
| 4 | Offer 20% Discount | 20% |
| 5 | Personal Call + 30% Discount | 35% |
Adjust the cost modifier to simulate different business scenarios:
| Modifier | Effect |
|---|---|
| 0.5x | Discounts are cheaper โ AI prefers discounts |
| 1.0x | Normal business pricing |
| 3.0x | Discounts are costly โ AI prefers Email/SMS |
This demonstrates how the RL agent adapts its strategy based on business constraints.
| Page | Description |
|---|---|
| Dashboard | Live matrix feed, Oracle control, charts |
| Analytics | Retention trends, AI performance metrics |
| Training Lab | Upload datasets, train new models |
| Reports | Filter & export customer data |
- Frontend: React 18, TypeScript, Vite, Recharts, Lucide Icons
- Desktop: Wails 2.11 (Go + WebView2)
- AI Backend: Python, Flask, PyTorch, XGBoost, NumPy
- Styling: Custom CSS with glassmorphism, dark theme
MIT License - Free for personal and commercial use.
Built with โค๏ธ using Go, Python, and React
A modern AI-powered desktop application for enterprise customer retention