How AI is Uncovering Hidden Ads on YouTube: A Deep Dive into ChatGPT’s Role in Sponsored Ad Detection

How AI is Uncovering Hidden Ads on YouTube: A Deep Dive into ChatGPT’s Role in Sponsored Ad Detection

YouTube has become the ultimate destination for entertainment, education, and everything in between. But have you ever noticed those sneaky product promotions embedded within your favorite educational videos? Sponsored segments have become a major part of content creators’ revenue streams, but identifying and analyzing them has been a challenge—until now.

A new study by researchers Brice Valentin Kok-Shun and Johnny Chan from the University of Auckland explores how ChatGPT can detect sponsored ad segments in YouTube videos and even analyze how well they align with the video content. Instead of relying on traditional, complex, and computationally expensive methods, they leverage Large Language Models (LLMs) like GPT-4o in a novel way.

In this blog, we’ll break down their methodology, findings, and what this means for the future of AI-powered content analysis.


Understanding Sponsored Ads on YouTube

What Are Sponsored Ads?

Sponsored ads on YouTube differ from traditional ads that play before or during a video. Instead, they blend directly into a video’s content, often in the form of a creator promoting a product or service. These segments can be subtle or explicit but are often hard to detect using traditional video and audio analysis.

For advertisers, this is a goldmine—it ensures their products are promoted by trusted figures in a way that seems natural to viewers. However, this blend of content and advertisement raises questions about transparency and relevance.

Why Is Detecting Sponsored Ads Important?

  1. Transparency: Viewers should know when they are being advertised to.
  2. Content Alignment: Do ads match the theme of the video, or are they random interruptions?
  3. Better Advertising Strategies: Advertisers aim for maximum engagement—understanding how well ads fit into content can enhance targeting.

Traditional ad detection methods focus on analyzing video and audio streams, but these approaches are often slow and resource-intensive. The study takes a text-based approach using AI to analyze video transcripts and automatically detect sponsored content.


How AI Detects Sponsored Ads in YouTube Videos

Step 1: Collecting the Data

The researchers built a dataset of 421 video transcripts from YouTube’s auto-generated captions and manually created transcripts. These transcripts were gathered from educational YouTube channels, ensuring a focus on informative content with possible integrated sponsorships.

Step 2: Cleaning & Processing the Text

Before AI could analyze the transcripts, they needed some cleanup:
- Removing special characters (to avoid unnecessary noise in the analysis).
- Eliminating stop words (common words like "the" and "and" that don’t add much meaning).
- Lemmatization (grouping different versions of a word, like “running” and “run,” under the same root).

Step 3: Detecting Sponsored Segments Using GPT-4o

To detect ad segments, the researchers crafted a special prompt for GPT-4o that instructed the AI model to look for clues indicating the presence of a sponsored ad.

Think of it as training a super-smart assistant to recognize when a YouTuber transitions from discussing the laws of physics to conveniently mentioning how an educational app can help you master the topic (sponsored, of course).

Step 4: Extracting Keywords and Grouping Them into Categories

Once the AI detected ad segments, the next step was to figure out what they were advertising.

This was done using KeyBERT, an AI tool that identifies important keywords from text. The extracted keywords were then refined using GPT-4o into broad ad categories such as:
- Product promotions (tech gadgets, learning tools).
- Education-related ads (online courses, academic services).
- Media advertising (streaming services, podcasts).
- Various (miscellaneous sponsorships).

Step 5: Comparing Ads vs. Video Content

Finally, the researchers compared the extracted keywords from ad segments to the video’s main content. This allowed them to examine how well the sponsored promotions aligned with the educational topics being discussed.

For example, did a math tutorial include an ad for a calculator app, or was it completely unrelated, like a subscription box for protein bars?


Key Findings: AI Exposes the Reality of YouTube Sponsorships

1. Sponsored Ads Were Everywhere

The study found that 45% of auto-generated transcripts and 57% of manually created transcripts contained sponsored ad segments. This highlights how common sponsored promotions have become, even in educational content.

2. Ads Didn’t Always Match the Video’s Theme

In some cases, the ads were aligned with the topic—physics videos often promoted science-related media. However, most sponsored segments were product-based ads, showing that companies are investing heavily in influencer-driven marketing regardless of content relevance.

3. AI Can Efficiently Detect Ads Without Audio or Video Analysis

Using GPT-4o, the researchers accurately identified sponsored ad segments based purely on textual data. This text-based approach is far less computationally expensive than traditional video processing techniques, making it more scalable and efficient.


Why This Matters for Content Creators, Advertisers, and Viewers

For Content Creators

  • This research helps creators understand how frequently sponsorships appear in their content.
  • They can strategize better ad placement to ensure relevance and engagement while maintaining audience trust.

For Advertisers

  • AI can help advertisers fine-tune partnerships by ensuring promotions are placed in the right types of content.
  • Better alignment of ads with content means more meaningful engagement with audiences.

For Viewers

  • Viewers can be more aware of sponsored messaging hidden in natural discussions.
  • Transparency in advertising ensures informed decision-making.

The Future of AI in Digital Advertising

This study showcases how AI can revolutionize online advertising by providing real-time, scalable ad detection. Future developments could:
- Enhance automatic transparency labeling on video platforms.
- Refine AI models to detect more subtle product placements.
- Expand research beyond educational content into other video genres like entertainment, gaming, and health.

Ultimately, AI-driven ad detection could ensure greater transparency, better ad targeting, and improved viewer experience on platforms like YouTube.


Key Takeaways

Sponsored ads are extremely common in educational YouTube videos, with nearly half of the examined videos containing integrated promotions.

Most sponsorships are product-related, meaning brands aggressively target educational audiences to push their offerings.

GPT-4o successfully detected ad segments based on text alone, proving that ad detection doesn’t require complex and expensive video analysis methods.

Ad relevance varies—while some promotions align with the video topic, many don’t, leading to potential concerns about viewer engagement and trust.

AI has the potential to improve online ad transparency, helping both advertisers and viewers make more informed decisions.


Final Thought: Can You Spot the Ads?

Next time you watch your favorite YouTube video, pay close attention—can you spot the sponsored mention before the AI does? With tools like ChatGPT advancing ad detection, we might soon have automated transparency features ensuring that no ad goes unnoticed! 🚀

What are your thoughts on AI detecting ads in YouTube content? Let us know in the comments! 👇

Stephen, Founder of The Prompt Index

About the Author

Stephen is the founder of The Prompt Index, the #1 AI resource platform. With a background in sales, data analysis, and artificial intelligence, Stephen has successfully leveraged AI to build a free platform that helps others integrate artificial intelligence into their lives.