Skip to content

kanish5/customer-segmentation-ml-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Customer Segmentation using K-Means Clustering

This project applies unsupervised machine learning to segment customers based on their behavior and demographics. The goal is to help businesses tailor marketing strategies and personalize experiences for different customer groups.


πŸ“Š Overview

  • Dataset: Mall Customer Segmentation Data
  • Problem Type: Clustering (Unsupervised ML)
  • Algorithm: K-Means
  • Tools: Python, Pandas, Scikit-learn, Matplotlib, Seaborn

🧰 Tech Stack

  • Python
  • Pandas, NumPy
  • Scikit-learn
  • Matplotlib, Seaborn
  • Google Colab

πŸ› οΈ Features

βœ… Data Preprocessing (Label Encoding + Standard Scaling)
βœ… Elbow Method to determine optimal K
βœ… K-Means Clustering (with n_clusters=5)
βœ… 3D Visualization of customer segments
βœ… Final CSV of customer segments for business use


πŸ“ˆ Key Insights

  • K-Means effectively grouped customers into 5 behavior-based clusters
  • Spending Score and Annual Income showed the most distinctive patterns
  • Helps identify target groups like:
    • High income, low spenders
    • Low income, high spenders
    • Balanced/mid-range customers

πŸ“ Project Structure

customer-segmentation/ β”œβ”€β”€ data/ β”‚ └── customers.csv β”œβ”€β”€ images/ β”‚ β”œβ”€β”€ 2d_clusters.png β”‚ β”œβ”€β”€ elbow_method.png β”œβ”€β”€ notebooks/ β”‚ └── 01_customer_segmentation.ipynb β”œβ”€β”€ customers_clustered.csv └── README.md



πŸ“¦ How to Run

  1. Upload the dataset (customers.csv) to your project
  2. Run the Jupyter/Colab notebook
  3. The clustered output is saved to customers_clustered.csv

πŸ“Œ Future Improvements

  • Use PCA or t-SNE for dimensionality reduction
  • Build an interactive dashboard with Streamlit
  • Apply DBSCAN or Hierarchical clustering for comparison

πŸ”— Dataset Source


🀝 Let's Connect

πŸ“§ kanishtyagi123@gmail.com
πŸ”— LinkedIn
πŸ”— GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors