Live Analytics Platform

Smart Customer
Segmentation
Powered by K-Means Clustering

Unlock actionable customer insights from the Mall Customers dataset using machine learning. Segment customers by behaviour, identify patterns, and drive targeted marketing strategies — all in one premium dashboard.

0
Customers
0
Segments
0
Features
0
Silhouette Score
Customer Segments
🏦
Careful Spenders
High Income · Low Spending
🛒
Budget Shoppers
Low Income · Low Spending
Impulsive Buyers
Low Income · High Spending
🎯
Target Customers
High Income · High Spending
📊
Average Customers
Mid Income · Mid Spending
Project Objective

What This Dashboard Does

A complete end-to-end customer analytics pipeline — from raw data to actionable insights.

🔍

Exploratory Data Analysis

Comprehensive step-by-step EDA with shape, dtypes, null checks, outliers, distributions, and correlations.

🧹

Data Cleaning

Remove duplicates, handle missing values, encode categoricals, and validate data types for a clean feature set.

⚙️

K-Means Clustering

Apply StandardScaler + K-Means with Elbow Method and Silhouette Score to find the optimal number of segments.

📊

Interactive Visualizations

Plotly-powered histograms, scatter plots, heatmaps, cluster plots, and radar charts — all fully interactive.

🧠

Cluster Interpretation

Profile each customer segment with income, spending, age, and gender patterns for business decision-making.

📣

Marketing Recommendations

Practical, cluster-specific marketing strategies — loyalty programmes, targeted discounts, VIP offers, and more.

🔮

Live Prediction

Enter any customer's data and get their predicted segment instantly, with results saved to a SQLite database.

📈

Executive Dashboard

Monitor cluster health, customer distribution, and key segmentation metrics from one analytics view.

Technology Stack

Python 3.11 Flask 3.0 Pandas NumPy Scikit-learn Plotly Matplotlib Seaborn Bootstrap 5 SQLite
Workflow

Step-by-Step
Pipeline

The entire machine learning workflow is implemented transparently — every step explained with code, theory, and visualisations.

Start with EDA
1
Load & Inspect Dataset

Load Mall_Customers.csv, check shape, dtypes, and missing values.

2
Exploratory Data Analysis

Distributions, outliers, correlations, and gender analysis.

3
Data Cleaning

Remove duplicates, encode gender, drop CustomerID.

4
Feature Scaling

StandardScaler on Annual Income and Spending Score.

5
Elbow + Silhouette

Determine optimal K using WCSS and silhouette scores.

6
K-Means Clustering

Fit final model with K=5, assign cluster labels.

7
Interpret & Recommend

Profile clusters and generate marketing strategies.

Ready to Explore?

Dive into the full analytics pipeline or try predicting a new customer's segment right now.