Skip to content

Abdullah321Umar/Arch-Technologies-DataScience_Internship-TASK3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌈 Data Science Internship Task 3 | 🛍️ Customer Segmentation — Decoding Shopper Behavior through Data Science

🚀 Prelude: Understanding Customers Beyond Numbers

In today’s data-driven economy, businesses thrive on understanding who their customers are and how they behave. In this project, we explore the art and science of Customer Segmentation — clustering shoppers into distinct behavioral groups using machine learning. By harnessing the power of K-Means Clustering, this project transforms raw purchasing data into meaningful patterns that reveal spending habits, preferences, and lifestyle indicators.


🧠 Project Synopsis

The Customer Segmentation project is an unsupervised machine learning initiative designed to categorize mall customers based on their purchasing behavior. Through exploratory data analysis (EDA), clustering algorithms, and visual analytics, this project unveils data-driven customer personas that can help businesses craft targeted marketing strategies and improve decision-making.


🎯 Project Steps:-

🧩 1️⃣ Data Genesis: The Mall Customers Dataset

The dataset serves as a digital snapshot of real-world mall customer behavior, containing demographic and financial information for 200 individuals.

📊 Dataset Composition

  • Total Records: 200
  • Total Features: 5
  • Key Attributes: Gender, Age, Annual Income (k$), Spending Score (1–100) Each record symbolizes a customer’s lifestyle profile, allowing us to detect behavioral patterns through clustering.

🧹 2️⃣ Data Refinement and Preprocessing

Before performing clustering, meticulous data preprocessing was conducted to prepare the dataset for analysis and ensure its accuracy.

🔧 Operations Executed

  • Removed non-informative field: CustomerID
  • Encoded categorical variable: Gender using Label Encoding (Male=0, Female=1)
  • Standardized numeric features (Age, Annual Income, Spending Score) to ensure balanced scaling
  • Validated dataset integrity — no missing or duplicate values found

💡 Insight: Proper preprocessing ensures that clustering algorithms treat each feature fairly, allowing for more accurate and interpretable group formation.

🎨 3️⃣ Exploratory Data Visualization

To reveal the hidden patterns within the data, 15 visually engaging dark-themed plots were created using Seaborn and Matplotlib. These visualizations illuminate relationships between age, income, gender, and spending score.

🌈 Visual Insights Created:

  • Gender Distribution: Balanced customer demographic, slightly higher female representation.
  • Age Distribution: Majority between 20–40 years, representing the most active spending group.
  • Annual Income vs Spending Score: Clear segmentation of high-spending versus budget-conscious clusters.
  • Correlation Heatmap: Strong relationship between income, spending score, and age.
  • Cluster Visualizations: Color-rich scatter plots showcasing 5 distinct customer clusters.
  • Pairplots & Boxplots: Depict distribution and variance among demographic attributes. These visualizations were not just statistical tools — they acted as windows into customer behavior, transforming data into visual storytelling.

⚙️ 4️⃣ Model Architecture: The K-Means Clustering Paradigm

The heart of this project lies in the K-Means Clustering Algorithm, an unsupervised technique that groups customers with similar behaviors.

🧮 Steps Executed:

  • Determined optimal number of clusters using the Elbow Method and Silhouette Analysi
  • Trained K-Means with n_clusters=5
  • Computed cluster centroids and assigned each customer to a unique group

📈 Model Evaluation Metrics:

  • Silhouette Score: ~0.34 (indicating meaningful cluster formation)
  • Cluster Centers: Highlighted differences in income and spending patterns

📊 5️⃣ Cluster Profiling and Interpretation

Each cluster reveals a unique customer persona derived from their shopping habits and spending potential.

Cluster Characteristics Segment Type
0 Older moderate spenders
1 High income low spending Conservative Spenders
2 Moderate income, high spending Trend Followers
3 Young, high income & high spending Premium Buyers
4 Low income, moderate spending Budget Seekers

💬 Business Insight:

These segments can empower marketing teams to personalize campaigns — rewarding loyal buyers, promoting premium offers, and engaging potential high-value customers through targeted outreach.

🧠 6️⃣ Interpretative Insights

  • Spending Score and Annual Income are the strongest influencers in customer segmentation.
  • Younger shoppers exhibit higher spending tendencies.
  • Customers with similar incomes can display contrasting spending behaviors — revealing lifestyle-driven choices.
  • Data-driven segmentation enables companies to enhance customer satisfaction through personalized marketing strategies.

🧭 7️⃣ Concluding Reflections

The Customer Segmentation Project embodies the power of data science in revealing the unseen layers of consumer behavior. By leveraging machine learning and visual analytics, it transforms raw data into actionable business insights. From preprocessing and clustering to beautiful visual storytelling, this project demonstrates the core capabilities of a Data Scientist — analytical precision, technical mastery, and narrative clarity.

🌟 8️⃣ Epilogue: Beyond the Data — Towards Decision Intelligence

While the dataset captures only a small world of mall customers, the methodology scales to any business context — from retail and e-commerce to banking and telecom. Through this project, data science once again proves that “understanding customers is not an art — it’s a science fueled by insight.”

⚙️ Tools and Technologies Employed

🔧 Programming Language:

  • Python 🐍 — the backbone of data science workflows

📊 Data Handling and Analysis:

  • Pandas 🧩 — for data manipulation and cleaning
  • NumPy ⚙️ — for numerical computations

🤖 Machine Learning:

  • Scikit-learn 🧠 — for implementing K-Means, scaling, and silhouette analysis

🎨 Data Visualization:

  • Matplotlib 📈 — for static plots with dark themes
  • Seaborn 🌈 — for aesthetically rich, modern statistical graphics

💻 Development Environment:

  • VS Code 💡 — clean, powerful IDE for project development and execution

🏁 Conclusion

This project marks a milestone in transforming unstructured customer data into strategic marketing intelligence. It stands as a practical demonstration of unsupervised learning in action — bridging the gap between numbers and human behavior.

✨ Final Thought:

“Every customer leaves a data footprint — data science helps us read the story it tells.”

  • Author — Abdullah Umar, Data Science Intern at Arch Technologies

🔗 Let's Connect:-


Task 3 Statement:-

Preview


Dark Background Plots Preview:-

Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview Preview


About

✨ Customer Segmentation Using Customers Dataset ✨ This project groups mall customers based on their age, income, and spending behavior to uncover distinct shopper personas. Using unsupervised machine learning, data preprocessing, and visual analytics, the project identifies key customer segments like premium buyers and budget seekers.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages