Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ Aura-Sentinel

AI Powered Go Python React Wails

Enterprise AI-Powered Customer Retention Platform

Combining XGBoost + Deep Q-Network Reinforcement Learning + Real-time Analytics

Features โ€ข Quick Start โ€ข Architecture โ€ข AI Models


๐ŸŽฏ What is Aura-Sentinel?

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

โœจ Features

๐ŸŽฏ Churn Prediction

XGBoost model with 94% accuracy predicting customer churn probability

๐Ÿค– RL Action Selection

Deep Q-Network agent optimizes retention actions (Email, SMS, Discounts, Personal Call)

๐Ÿ”ฎ Oracle Mode

What-if scenario analysis - adjust cost modifiers to see how AI decisions change

๐Ÿ“Š Live Matrix Feed

Real-time customer processing with animated visualization

๐Ÿงช Training Lab

Upload custom datasets and train new models with one click

๐Ÿ“‹ Reports & Export

Filter by risk level, export to PDF and CSV


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    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     โ”‚       โ”‚
โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜       โ”‚
โ”‚                                                                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ Quick Start

Prerequisites

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

1๏ธโƒฃ Start Python Brain API

cd apps/brain-rl
python -m venv venv
.\venv\Scripts\activate    # Windows
pip install -r requirements.txt
python api.py

2๏ธโƒฃ Run Wails Desktop App

cd apps
wails dev

3๏ธโƒฃ Build for Production

cd apps
wails build

Output: build/bin/Aura-Sentinel.exe


๐Ÿ“ Project Structure

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

๐Ÿง  AI Models

XGBoost Churn Predictor

Metric Value
Accuracy 94%
Features 22 customer attributes
Output Churn probability (0.0 - 1.0)

Deep Q-Network (DQN) Agent

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)

Available Actions

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%

๐Ÿ”ฎ Oracle Mode

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.


๏ฟฝ๏ธ Dashboard Pages

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

๐Ÿ› ๏ธ Tech Stack

  • 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

๐Ÿ“ License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages