Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Customer Intelligence Platform (RFM + ML + Decision Engine)

πŸš€ Overview

This project is an end-to-end Customer Intelligence System that transforms raw transaction data into actionable business decisions.

It combines:

  • RFM segmentation
  • Customer clustering
  • CLV modeling
  • Decision engine (Upsell / Retain / Re-engage)
  • Revenue impact simulation

πŸ‘‰ Goal: Identify high-value customers, detect churn risk, and simulate strategies to maximize revenue.


πŸ’Ό Business Problem

Most businesses struggle to answer:

  • Who are our most valuable customers?
  • Which customers are at risk of churn?
  • How much revenue is at risk?
  • What action should we take?
  • What is the financial impact of retention strategies?

πŸ”„ Before vs After (Business Scenario)

❌ Before (Typical Business State)

  • No clear visibility into customer segments
  • Revenue loss identified after it happens
  • No prioritization of high-value customers
  • Marketing spend is not optimized
  • Decisions based on assumptions, not data

βœ… After (With This System)

  • Customers segmented using RFM + clustering
  • At-risk customers identified proactively
  • High-value customers prioritized using CLV
  • Clear strategy: Upsell / Retain / Re-engage
  • Revenue impact simulated before decisions

πŸ’° Example Business Impact

  • Identified β‚Ή8.9L+ revenue at risk
  • Estimated β‚Ή2.6L+ recoverable revenue (30% retention scenario)
  • Enabled targeted retention strategy instead of generic campaigns

πŸ‘‰ This shifts the business from: Reactive reporting β†’ Proactive decision-making


🎯 What This Dashboard Enables

  • Identify high-value customers
  • Detect churn risk early
  • Prioritize retention vs upsell
  • Simulate revenue recovery
  • Support business decision-making

🧠 Key Features

πŸ”Ή RFM Segmentation

  • Recency, Frequency, Monetary scoring
  • Behavioral customer grouping

πŸ”Ή Customer Clustering

  • Segment customers into meaningful groups
  • Identify high-value and at-risk users

πŸ”Ή CLV (Customer Lifetime Value)

  • Estimate customer value using behavioral data
  • Prioritize high-value users

πŸ”Ή Decision Engine

Automatic action assignment:

  • Upsell β†’ High-value active customers
  • Retain β†’ Medium-risk customers
  • Re-engage β†’ At-risk customers
  • Nurture β†’ Low-value customers

πŸ”Ή Revenue Impact Analysis

  • Calculates revenue at risk
  • Estimates recoverable revenue

πŸ”Ή Strategy Simulator (Power BI)

Interactive dashboard to answer:

β€œIf we improve retention by X%, how much revenue can we recover?”


πŸ“Š Dashboard Preview

πŸ“Œ Page 1 β€” Executive Overview

Executive Overview

  • Total Customers, Revenue, Orders
  • Country-level distribution
  • Business performance snapshot

πŸ“Œ Page 2 β€” Customer Segmentation (RFM)

Customer Segmentation

  • RFM clustering
  • Customer behavior vs value analysis
  • Strategy allocation

πŸ“Œ Page 3 β€” Revenue Impact & Opportunity

Revenue Impact

  • Revenue contribution by segment
  • CLV distribution
  • Revenue leakage identification

πŸ“Œ Page 4 β€” Strategy Simulator

Strategy Simulator

  • Retention rate slider (What-if analysis)
  • Revenue at risk vs recovery
  • At-risk customer targeting
  • Business decision insights

πŸ› οΈ Tech Stack

  • Python β†’ Data processing
  • Pandas / NumPy β†’ Transformation
  • Scikit-learn β†’ Clustering
  • MySQL β†’ Data storage
  • Power BI β†’ Visualization & simulation

πŸ“ Project Structure

customer-intelligence-platform/
β”‚
β”œβ”€β”€ data/
β”‚   └── raw_transactions.csv
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ ingestion.py
β”‚   β”œβ”€β”€ transform.py
β”‚   β”œβ”€β”€ rfm.py
β”‚   β”œβ”€β”€ clustering.py
β”‚   β”œβ”€β”€ clv_model.py
β”‚   β”œβ”€β”€ decision_engine.py
β”‚
β”œβ”€β”€ sql/
β”‚   └── schema.sql
β”‚
β”œβ”€β”€ app/
β”‚   └── streamlit_app.py
β”‚
β”œβ”€β”€ powerbi/
β”‚   └── dashboard.pbix
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ page1.png
β”‚   β”œβ”€β”€ page2.png
β”‚   β”œβ”€β”€ page3.png
β”‚   β”œβ”€β”€ page4.png
β”‚
β”œβ”€β”€ main.py
β”œβ”€β”€ requirements.txt
└── README.md

βš™οΈ How to Run

1. Clone Repository

git clone https://github.com/<your-username>/customer-intelligence-platform.git
cd customer-intelligence-platform

2. Install Dependencies

pip install -r requirements.txt

3. Run Data Pipeline

python main.py

4. Open Dashboard

  • Load output dataset into Power BI
  • Open dashboard.pbix

πŸ“ˆ Key Insights

  • A small percentage of customers drive the majority of revenue
  • Significant revenue lies in at-risk segments
  • Retention improvements directly impact revenue recovery

πŸ’° Business Impact

βœ” Identifies revenue leakage βœ” Prioritizes high-value customers βœ” Enables proactive retention strategies βœ” Simulates real-world business impact


πŸ”₯ Why This Project Stands Out

This is not just a dashboard.

It is a decision intelligence system that:

  • Connects data β†’ business strategy
  • Moves from reporting β†’ prediction
  • Enables simulation β†’ decision-making

πŸ‘€ Author

Jagadeeswari S Data Analyst | SQL | Power BI | Python


⭐ Support

If you found this useful, consider giving it a ⭐

About

Customer Intelligence Platform using RFM, ML, and Power BI to identify high-value customers, predict churn risk, and simulate revenue recovery strategies.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages