International Journal of Advanced Multidisciplinary Research and Studies
Volume 6, Issue 6, 2026
Engagement-weighted Sentiment Analysis of YouTube Comments using Hybrid Natural Language Processing and Logarithmic Weighting
Author(s): Mweemba Bright, Sikwa
Abstract:
Comment sections on YouTube provide a continuous stream of unstructured viewer feedback that is valuable to content creators, brand strategists, and media analysts. Extracting reliable sentiment from this stream is difficult because of the volume of comments, the prevalence of slang, abbreviations, emojis, and sarcasm, and the statistical distortion caused by treating every comment as an equal vote regardless of community endorsement. This study presents an automated end-to-end framework for sentiment analysis of YouTube comments. The framework integrates paginated comment retrieval through the YouTube Data API, a preprocessing pipeline that preserves emoji semantics, hybrid polarity inference that combines the VADER lexicon with RoBERTa transformer representations, and a logarithmic engagement-weighting algorithm that incorporates comment like counts into the aggregate sentiment score. The system was evaluated on 6,000 annotated comments drawn from three content domains. Emoji translation improved the accuracy of the lexicon-based classifier from 74.85% to 81.20%, and the transformer model reached an accuracy of 89.45%. Logarithmic weighting amplified widely endorsed community opinion without allowing a single viral comment to dominate the aggregate score, and it corrected distortions caused by spam and low-engagement comments in two of the three test videos. An interactive dashboard delivers the results in real time. These findings indicate that engagement-weighted aggregation reflects audience reception more faithfully than unweighted averaging.
Keywords: Sentiment Analysis, Natural Language Processing, Opinion Mining, Engagement Weighting, Social Media Analytics, YouTube Comments
Pages: 1362-1370
Download Full Article: Click Here

