Skip to main content

Digital Marketing Ads Clustering Using Machine Learning


The ads24x7 is a Digital Marketing company which has now got seed funding of $10 Million. They are expanding their wings in Marketing Analytics. They collected data from their Marketing Intelligence team and now wants you (their newly appointed data analyst) to segment type of ads based on the features provided. Use Clustering procedure to segment ads into homogeneous groups.


🔍 Project Objective

This project focuses on applying unsupervised machine learning and dimensionality reduction techniques to solve two real-world analytical problems:

  1. Segment digital advertisements based on performance metrics to optimize marketing strategy.

  2. Reduce high-dimensional census data using PCA to extract meaningful population insights efficiently.

The project demonstrates strong skills in EDA, clustering, PCA, business interpretation, and actionable recommendations.


🧠 Part 1: Digital Marketing Ads Clustering (Business Analytics + ML)

📌 Problem Statement

A digital marketing company wanted to segment advertisements into homogeneous groups based on performance indicators such as CTR, CPM, CPC, revenue, spend, device type, and platform.

⚙️ Approach

  • Performed detailed EDA (univariate & bivariate analysis)

  • Treated missing values using domain-specific formulas for CTR, CPM, and CPC

  • Detected and treated outliers using the IQR method

  • Applied z-score scaling to improve clustering performance

  • Used:

    • Hierarchical Clustering (Ward + Euclidean)

    • K-Means Clustering

  • Identified optimal clusters using:

    • Elbow method

    • Silhouette score

📊 Key Results

  • Optimal number of clusters identified as 5

  • Each cluster represented a distinct ad performance pattern

  • Certain clusters delivered high revenue with low CPC

  • Large ad sizes did not necessarily translate to better performance

💡 Business Insights

  • Video ads generated the highest average revenue

  • Mobile ads had lower CPM and higher reach

  • Poster-sized vertical ads showed best CTR and efficiency

  • A significant portion of ads consumed budget with poor ROI

📈 Recommendations

  • Increase investment in mobile video ads

  • Prioritize poster-sized creatives for higher conversions

  • Reduce spend on clusters with high CPC & low revenue

  • Use clustering as a recurring optimization strategy


📉 Part 2: Census Data Analysis Using PCA (Data Science)

📌 Problem Statement

The Indian Census dataset contained 57+ highly correlated variables, making analysis complex and inefficient.
Objective was to reduce dimensionality while retaining maximum variance.

⚙️ Approach

  • Conducted EDA on selected demographic and workforce variables

  • Treated outliers and scaled data using z-score normalization

  • Verified suitability using:

    • Bartlett’s Test of Sphericity

    • KMO Test (0.93 – excellent adequacy)

  • Applied Principal Component Analysis (PCA) using Scikit-learn

  • Used Scree plot and cumulative explained variance for PC selection

📊 Key Results

  • Reduced 57 variables → 5 principal components

  • These 5 PCs explained 90.6% of total variance

  • Principal components captured:

    • Population size

    • Workforce composition

    • Agricultural labor patterns

    • Gender-based employment distribution

💡 Insights

  • Strong correlation between male & female population metrics

  • Workforce participation patterns varied significantly across states

  • PCA successfully eliminated multicollinearity while preserving structure


🛠 Skills Demonstrated

Technical Skills

  • Python, Pandas, NumPy

  • Scikit-learn

  • Clustering (K-Means, Hierarchical)

  • PCA & linear algebra concepts

  • Data preprocessing & scaling

Analytics & Business Skills

  • Exploratory Data Analysis

  • Marketing analytics

  • KPI interpretation

  • Insight generation

  • Recommendation framing


🚀 Business Impact

  • Enables data-driven ad optimization

  • Reduces marketing spend inefficiency

  • Improves campaign ROI and targeting

  • Simplifies complex demographic datasets for faster decision-making


🏁 Conclusion

This project showcases my ability to:

  • Translate business problems into data science solutions

  • Apply machine learning practically, not theoretically

  • Convert complex analysis into clear business recommendations



🔗 Project Resources

  • 📁 Dataset & Code

  • 📊 Report


















Comments

Popular posts from this blog

Raghvendra Singh Portfolio

  I’m Raghvendra Singh Business Analytics & Data Science Professional I help businesses make data-driven decisions using analytics, dashboards and data science techniques across Ecommerce, Retail, Finance and Marketing . I specialize in converting raw data into clear insights, measurable impact and actionable recommendations for business leaders and teams. Profile Links Github LinkedIn Portfolio  Below are selected projects showcasing my work in analytics, data science and business problem-solving . 1. Digital Marketing Ads Clustering for Ads24x7 2. Inferential statistics: Probability to ANOVA 📬 Let’s Connect 📧 Email: raghavsingh0027 @gmail.com 🔗 LinkedIn: https://www.linkedin.com/in/raghvendra0027

25 Game-Changing Use Cases of Data Science in Marketing

In today’s competitive and fast-paced marketing landscape, businesses are constantly seeking ways to optimize their strategies, engage with customers more effectively, and increase ROI. Enter data science , which has proven to be a powerful tool in transforming marketing practices. By leveraging data, machine learning, and artificial intelligence (AI), marketers can extract valuable insights, predict trends, and enhance decision-making. This article will explore 25 use cases of data science in marketing and illustrate how it can help companies unlock new opportunities and drive better outcomes. 1. Customer Segmentation What it is: Data science enables marketers to categorize customers based on shared traits, behaviors, or preferences, which allows for more targeted and personalized campaigns. Example: By analyzing purchasing history and browsing patterns, data science tools can create customer segments, enabling businesses to deliver tailored marketing messages for each group....

Machine Learning vs Deep Learning : Understand the difference!

In the world of artificial intelligence (AI), terms like "Machine Learning" (ML) and "Deep Learning" (DL) are frequently used, often interchangeably. However, while both fall under the umbrella of AI, they are distinct in their methodologies, applications, and capabilities. In this post, we'll explore the key differences between machine learning and deep learning, helping you understand when and why each is used. What is Machine Learning? Machine Learning is a subset of AI focused on developing algorithms that allow computers to learn from and make predictions based on data. The core idea behind machine learning is that the system can automatically learn and improve from experience without being explicitly programmed for each task. There are three main types of machine learning: Supervised Learning : The model is trained on labeled data, which means the input data has corresponding output labels. The algorithm's goal is to learn a mapping from inputs ...