Twine

Customer Segmentation

Inam Alee Mangi
Published

0
  • Project creator

This project uses machine learning to split customers into groups with similar buying behavior. Each group gets its own profile, so a business knows who its high spenders, bargain shoppers, and untapped customers are.

What I did
Cleaned the data and put all features on the same scale so no single feature dominated the results
Tested 2 to 10 groups using three checks (Elbow, Silhouette, Davies-Bouldin) to choose the number of segments
Applied K-Means clustering to create 10 customer segments (7% to 16% of customers each)
Profiled each segment by average age, income, and spending
Exported every customer with their segment label to a CSV, ready to use

Visuals included:
Cluster selection charts
2D and 3D cluster plots
Box plots comparing segments
Segment size charts
A heatmap of segment profiles

Example insights:
Young, high-income, high-spending customers: best targets for premium offers
High income but low spending: a hidden opportunity for targeted campaigns
Low income, high spending: loyal customers who respond to value deals

Tools used:
Python, Pandas, NumPy, Scikit-learn, Matplotlib, Seaborn

Deliverables:
Full Python script
Segmented customer data (CSV)
6 charts (PNG)
Setup guide and documentation

Business use:
Targeted marketing, personalized offers, loyalty programs, and smarter budget allocation.