Blog

Consulting

Consulting Case Study: E-commerce Customer Segmentation

June 16, 2025

Background

Our client is a company manufacturing consumer electronic products like mobile devices, printers, computer monitors and so on, who is leading the electronic goods merchant wholesalers industry for many years. Their advanced data analytics team connected to WeCloudData for the machine learning solution on predicting their top merchandize sales and marketing strategies on their key customers for ecommerce customer segmentation.

The project of E-commerce Customer Segmentation will be discuss in this article.

Problem Statement

The client wants to analyze the customer spending patterns on certain product so as to guide the online promotions.

  1. Segment customers based on spending behaviour, time between multiple purchases.
  2. Identify the loyal customers and gain insights on how to improve the customer retention.

Tools used: SQL Server, Python, Tableau

Milestones

  1. Data Consolidation
    1. Transactional data
      1. Customer ID, Date of purchase, Transaction id of purchase, Total amount spent, Quantity of product ordered, etc.
    2. Project details
      1. Product Code, Product SKU, Product Description, Specifications of a device, Name of the device etc.
    3. Customer journey information
    4. 3rd party demographic data
      1. Postal code of the delivery address, City & Province on the delivery address, Average Household Income, Population etc.
  2. Model Development

RFM (Recency, Frequency & Monetary) model has been used for this case and the RFM score for each customer were calculated and recorded as new features to the dataset.

Recency (in number of days): How recently a customer has purchased

Frequency (in number of purchases): How often they purchase

Monetary (in CAD): How much the customer spends

ecommerce customer segmentation weclouddata

K-means clustering was then applied to come up with a RFM clusters separately with a compiled RFM score correspondingly of which the cluster number indicating the high, mid and low value customers.

ecommerce customer segmentation

Snapshot of the key findings

  • Customer segments
ecommerce customer segmentation weclouddata customer segments
  • Purchase Trends by Segments
purchase trends weclouddata ecommerce customer segmentation
  • Registered vs. Guest Customer
weclouddata registered vs guest customer case

Achievements & Conclusion

WeClouddata has achieved several outcomes through an advanced analysis and machine learning methodologies:

  • Targeted marketing for the identified customer clusters as per their product preferences and purchase behavior saved 10% of the overall marketing costs.
  • Targeted marketing improved the loyalty and retention of respective client segments, majorly the high-value segment.
  • The overall customer buying experience was improved by understanding the purchase behavior and offering the right product at the right time, which lead to enhanced retention and shortening of repeat purchase cycles.
  • Identified key geographies from where the clusters emerged and improved the marketing and service activity in those areas.

This project expanded the company’s ability in mastering the ecommerce customer segmentation in e-commerce and retail industry use cases.

SPEAK TO OUR ADVISOR
Join our programs and advance your career in Business IntelligenceData Science

"*" indicates required fields

Name*
This field is for validation purposes and should be left unchanged.
Other blogs you might like
Blog, Learning Guide
Infrastructure as Code (IaC) offers an efficient, reproducible, and error-resistant approach to managing infrastructure. IaC has become a vital…
by WeCloudData
May 2, 2025
Blog
“Discover Data Science, Engineering, and Analysis with WeCloudData. Uncover unique roles, skills, and tools in specialized bootcamps. Propel your…
by WeCloudData
January 24, 2024
Consulting
Background Our client is a company manufacturing consumer electronic products like mobile devices, printers, computer monitors and so on,…
by Beam Data
June 16, 2025

Kick start your career transformation