K-Means, DBSCAN, Hierarchical Clustering
Advanced clustering analysis to identify distinct customer segments from marketing and transaction data.
Overview
This project applied various clustering algorithms to segment customers based on their responses to marketing campaigns and transaction behavior. Using data from email newsletters and purchase history, the analysis compared multiple clustering techniques (K-Means, DBSCAN, hierarchical clustering) to identify natural groupings in customer behavior that could inform targeted marketing strategies.
The challenge
Determining the optimal number of clusters without labeled data. Handling mixed data types from marketing and transaction sources. Interpreting clusters in a meaningful business context that could drive actionable marketing strategies.
The approach
Preprocessed marketing newsletter and transaction data from Excel workbooks. Implemented and compared multiple clustering techniques including K-Means and DBSCAN. Evaluated models using silhouette scores, elbow method, and gap statistics. Identified DBSCAN as the superior method based on silhouette scores. Recommended focusing on 2-4 customer segments that showed the clearest separation.
Key features
- Multi-algorithm comparison (K-Means
- DBSCAN
- Hierarchical)
- Silhouette score analysis
- Elbow method implementation
- Gap statistic calculation
- Customer segment profiling
Outcomes
- Identified optimal customer segments using multiple clustering algorithms with DBSCAN yielding the highest silhouette score
- Discovered 2-4 distinct customer behavior patterns that could be leveraged for targeted marketing
- Created visualization framework for comparing clustering algorithm performance
Technologies
Want something like Customer Segmentation?
This is the kind of work I take on for clients. Pick a service to see the stack and process.
More data projects
See all →AlgoGP
Describe a trading idea in plain English, get a Python strategy, and backtest it point-in-time with an AI copilot.
Threadline
Turns raw user-to-AI conversations into product intelligence: what users want, where the assistant falls short, and what to fix next.
VitalOS
Connects Fitbit, Apple Watch and Oura into one schema, with daily scores, grounded AI briefings and a web + mobile dashboard.