Transformer-based models for sentiment analysis of YouTube video comments

The rapid expansion of online video content has positioned platforms like YouTube as substantial sources of multimedia data, rich in diverse user interactions and expressions. Among these, comments have emerged as a significant source of sentiment, opinion, and feedback. The objective of this research is to improve comprehension of the emotions conveyed in YouTube comments through the assessment and comparison of transformer-based sentiment analysis algorithms. The main objectives were to assess various transformer architectures, including BERT, GPT, RoBERTa, and T5, for their effectiveness in sentiment classification tasks. The research utilized the Just Dance dataset for training and evaluated the models on several state-of-the-art sentiment analysis datasets to ensure robustness and generalizability. Methods involved exploring different pre-training tech- niques, loss functions, optimizers, and hyperparameter settings to optimize model performance. The findings reveal that RoBERTa consistently demonstrated superior performance, achieving the highest accuracy and F1-scores across various configurations, particularly with its specialized to- kenizer and the AdamW optimizer. This study contributes novel insights into the strengths and limitations of transformer-based approaches for analyzing YouTube comments and offers valu- able recommendations for improving sentiment analysis frameworks across diverse contexts while suggesting avenues for future improvements.

Authors

Institutions

Publication Details

Journal
Scientific African
Published
2025-07-20
DOI
https://doi.org/10.1016/j.sciaf.2025.e02836
Citations
2
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Transformer-based models for sentiment analysis of YouTube video comments

Said Jai Andaloussi, Oussama El Azzouzy, Tarik Chanyour
2 citations
Scientific African
Sentiment Analysis and Opinion Mining
4.96
article

Transformer-based models for sentiment analysis of YouTube video comments

Said Jai Andaloussi, Oussama El Azzouzy, Tarik Chanyour
article en
2 citations

Abstract

The rapid expansion of online video content has positioned platforms like YouTube as substantial sources of multimedia data, rich in diverse user interactions and expressions. Among these, comments have emerged as a significant source of sentiment, opinion, and feedback. The objective of this research is to improve comprehension of the emotions conveyed in YouTube comments through the assessment and comparison of transformer-based sentiment analysis algorithms. The main objectives were to assess various transformer architectures, including BERT, GPT, RoBERTa, and T5, for their effectiveness in sentiment classification tasks. The research utilized the Just Dance dataset for training and evaluated the models on several state-of-the-art sentiment analysis datasets to ensure robustness and generalizability. Methods involved exploring different pre-training tech- niques, loss functions, optimizers, and hyperparameter settings to optimize model performance. The findings reveal that RoBERTa consistently demonstrated superior performance, achieving the highest accuracy and F1-scores across various configurations, particularly with its specialized to- kenizer and the AdamW optimizer. This study contributes novel insights into the strengths and limitations of transformer-based approaches for analyzing YouTube comments and offers valu- able recommendations for improving sentiment analysis frameworks across diverse contexts while suggesting avenues for future improvements.

Scientific AfricanVol. 29
University of Hassan II Casablanca (MA)
Openalex Percentile: Top 5%
Sentiment Analysis and Opinion Mining
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.