ChurnGuard AI – Customer Retention Capital Allocation Engine
Subscription-based companies often lose 15–30% of customers annually.
However:
Retaining every customer is financially inefficient
Retention campaigns involve:
- Discounts
- Loyalty credits
- Account manager effort
- Marketing outreach
Which incurs retention cost.
The real business question is NOT:
Who will churn?
But:
Which customer segments should we invest retention capital in?
This project converts churn predictions into:
✔ Revenue at Risk
✔ Retention Investment Required
✔ Recoverable Revenue
✔ Net Value Created
✔ CFO-grade Budget Allocation Strategy
To build a decision-intelligence system that enables:
Finance teams to determine:
Where should retention budget be allocated
to maximise recoverable revenue?
Instead of:
Blindly running retention campaigns
across all high-risk customers
- Customer churn prediction
- Risk-tier segmentation
- Revenue exposure estimation
- Retention investment simulation
- Recoverable revenue modelling
- ROI-driven intervention strategy
- CFO-ready PDF report
- Boardroom-ready PPT deck
| Layer | Tool |
|---|---|
| Inference Engine | Python |
| ML Model | XGBoost |
| Dashboard | Streamlit |
| Data Processing | Pandas |
| Reporting | ReportLab |
| Presentation | python-pptx |
git clone https://github.com/<your-username>/Customer_Churn_Prediction.git
cd Customer_Churn_Prediction
python -m venv .venv
Activate:
Mac/Linux:
source .venv/bin/activate
Windows:
.venv\Scripts\activate
pip install -r requirements.txt
streamlit run app.py
Upload customer dataset containing:
- tenure
- MonthlyCharges
- Contract
- gender
- etc.
The system will:
✔ Predict churn
✔ Segment customers
✔ Simulate retention campaign
✔ Generate CFO report
✔ Generate Boardroom PPT
- Update training schema:
models/training_schema.json
- Ensure uploaded CSV follows same feature structure
- Update preprocessing rules:
src/data/preprocess.py
Due to size constraints, the dataset is not included in the repository.
Download it from:
https://www.kaggle.com/datasets/blastchar/telco-customer-churn
Place it in:
data/raw/
| Challenge | Resolution |
|---|---|
| Inference schema mismatch | Implemented dynamic schema alignment |
| Categorical value inconsistency | Category normalization layer |
| Numeric dtype failures | Training-dtype enforcement |
| Missing engineered features | Runtime recreation (tenure_group) |
| Prediction failure due to OHE drift | Pipeline-schema alignment |
| Finance reporting mismatch | ROI-driven segment modelling |
- Prediction ≠ Business Decision
- Model accuracy does not guarantee ROI
- Retention campaigns must be budget-constrained
- Financial impact modelling is essential for adoption
- Schema alignment is critical in production ML systems
This system can assist:
- Telecom companies
- SaaS subscription platforms
- Insurance providers
- OTT services
- Fintech platforms
in:
Retention strategy planning
Budget optimisation
Audit-ready campaign justification
- CFO Financial Impact Report (PDF)
- Boardroom Strategy Deck (PPTX)