This project uses K-Means Clustering to segment retail customers based on their purchasing behaviour. Customers are grouped using Age, Annual Income, and Spending Score, helping businesses identify valuable customer segments and design targeted marketing strategies.
The repository also includes a modern Streamlit dashboard for real-time customer segmentation.
Retail businesses often use the same marketing strategy for every customer. This project identifies distinct customer groups so businesses can:
- Improve targeted marketing
- Increase customer retention
- Identify high-value customers
- Personalize promotional campaigns
Dataset: Mall_Customers.csv
Features used:
- Age
- Annual Income (k$)
- Spending Score (1-100)
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Plotly
- Scikit-Learn
- Streamlit
- Data Cleaning
- Exploratory Data Analysis
- Label Encoding
- Feature Scaling using StandardScaler
- Elbow Method
- K-Means Clustering
- Cluster Analysis
- Business Recommendations
| Cluster | Segment | Strategy |
|---|---|---|
| 0 | Senior Value Customers | Loyalty rewards and value offers |
| 1 | Premium Customers | VIP services and exclusive rewards |
| 2 | Young Active Shoppers | Student offers and social media campaigns |
| 3 | Affluent Conservative Customers | Personalized luxury promotions |
Features:
- Interactive customer prediction
- Business recommendations
- Plotly visualization
- Random customer generator
- Responsive UI
Retail-Customer-Segmentation/
│
├── data/
├── models/
├── Final App/
├── Notebook/
├── Graphs/
├── screenshots/
├── requirements.txt
└── README.md
git clone <repository-url>
cd Retail-Customer-Segmentation
pip install -r requirements.txt
streamlit run "Final App/app.py"- Four meaningful customer segments identified
- Business-driven customer insights
- Interactive prediction dashboard
- Segment-specific recommendations
- CSV upload support
- Additional clustering algorithms
- PCA visualization
- Cloud deployment
- Downloadable reports
Streamlit App
https://customer-clustering-dashboard.streamlit.app/
https://www.linkedin.com/in/rohit-jha-ai/
GitHub
Rohit Jha
Aspiring AI Engineer | Machine Learning | Data Science
If you found this project useful, consider giving it a star on GitHub.


