Skip to content

๐Ÿ“ŠThis project applies unsupervised machine learning techniques to segment customers based on spending behavior and demographic patterns. By leveraging K-Means clustering, we uncover hidden customer groups that can be useful for targeted marketing strategies. Itโ€™s a classic EDA + ML combo ideal for aspiring data scientists

License

Notifications You must be signed in to change notification settings

QuantumCoderrr/Customer_Seg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Customer Segmentation using Machine Learning ๐Ÿš€๐Ÿ“Š

Welcome to the Customer Segmentation using Machine Learning project! This initiative focuses on segmenting customers based on their purchasing behavior, using clustering techniques like K-Means and Hierarchical Clustering.


๐Ÿ“ Table of Contents


About the Project ๐Ÿ“š

The Customer Segmentation project applies machine learning techniques to cluster customers based on their Annual Income and Spending Score. Through this project, we aim to:

  • Perform data preprocessing and scaling.
  • Apply K-Means Clustering and determine the optimal K using the Elbow Method.
  • Apply Hierarchical Clustering and analyze the Dendrogram.
  • Visualize clusters to uncover meaningful customer segments.

Key Features ๐ŸŽฏ

  • Data Exploration: Understand customer spending habits and income groups.
  • Visualization: Interactive visualizations for better insights.
  • Machine Learning Models: K-Means and Hierarchical Clustering for segmentation.
  • Business Insights: Practical recommendations for marketing strategies.

Dataset ๐Ÿ“‚

The dataset, Mall_Customers.csv, contains customer information such as:

  • Customer ID
  • Age
  • Gender
  • Annual Income
  • Spending Score

Technologies Used ๐Ÿ› ๏ธ

  • Programming Language: Python
  • Libraries: NumPy, Pandas, Matplotlib, Seaborn, Scikit-learn
  • Tools: Jupyter Notebook

Getting Started ๐Ÿš€

Prerequisites

  • Python 3.8 or higher
  • Required libraries installed (pip install -r requirements.txt)

๐Ÿš€ Running the Code

  1. Clone this repository: git clone https://github.com/QuantumCoderrr/Customer-Segmentation-ML.git

  2. Install dependencies: pip install -r requirements.txt

  3. Run the script: python src/clustering.py

๐Ÿ“Œ Results

Our analysis yielded the following insights:

Optimal Clusters: The Elbow Method determined the best number of clusters for segmentation. Customer Segments: Clear groups of customers based on income and spending habits. Model Evaluation: The clustering models successfully segmented customers for targeted marketing.

๐Ÿ“ธ Visualizations

1. Elbow Method for KMeans
Elbow Method

2. K-Means Clustering
K-Means

3. Dendrogram for Hierarchical Clustering
Dendrogram

4. Hierarchical Clustering
Hierarchical

Contributing

We welcome contributions from everyone! To learn how you can contribute, please see our Contributing Guidelines.

Code of Conduct

Please note that we have a Code of Conduct in place to ensure that all participants can contribute in a respectful and welcoming environment.

License ๐Ÿ“œ

This project is licensed under the MIT License. See the LICENSE file for details.

About

๐Ÿ“ŠThis project applies unsupervised machine learning techniques to segment customers based on spending behavior and demographic patterns. By leveraging K-Means clustering, we uncover hidden customer groups that can be useful for targeted marketing strategies. Itโ€™s a classic EDA + ML combo ideal for aspiring data scientists

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published