Customer Segmentation using KMeans A machine learning project that applies KMeans clustering on mall customer data to group customers based on Age, Annual Income, and Spending Score. The project helps businesses gain insights into customer behavior, identify high-value groups, and design targeted marketing strategies.
Analyze customer data to identify patterns and trends Group customers into meaningful segments using clustering algorithms Provide actionable business insights for targeted marketing and decision-making
Source: Mall Customers Dataset Features Used: Customer ID Gender Age Annual Income (k$) Spending Score (1–100) Technologies Used Python Pandas, NumPy Matplotlib, Seaborn Scikit-learn Jupyter Notebook
- Data Preprocessing Cleaned and formatted dataset Selected relevant features for clustering Scaled data for better model performance
- Exploratory Data Analysis (EDA) Analyzed distributions of age, income, and spending Visualized relationships between features Identified key patterns in customer behavior
- Clustering Techniques Applied K-Means Clustering Used Elbow Method to determine optimal clusters Evaluated clusters using Silhouette Score
- Model Deployment Trained model saved as kmeans_model.pkl Used for predicting customer segments
The model identified distinct customer segments such as: High Income – High Spending: Premium customers, target with luxury products High Income – Low Spending: Potential customers, focus on engagement strategies Low Income – High Spending: Offer discounts and deals Low Income – Low Spending: Budget-conscious group These insights can help businesses optimize marketing campaigns and improve customer retention.
├── Customer_Segments.xls ├── Mall_Customers_Clustered.xls ├── Project.ipynb ├── kmeans_model.pkl ├── requirements.txt ├── README.md
Implement additional clustering algorithms (DBSCAN, Hierarchical Clustering) Build an interactive dashboard using Streamlit Add real-time customer segmentation system Apply dimensionality reduction techniques like PCA Develop recommendation system based on customer segments
Enables personalized marketing strategies Improves customer targeting and engagement Helps increase revenue and customer satisfaction