[Paper Review] Classifying YouTube Comments Based on Sentiment and Type of Sentence
This paper proposes a hybrid approach combining statistical feature extraction (document frequency and TF-IDF) with supervised machine learning models to classify YouTube comments into six categories: Positive, Negative, Interrogative, Imperative, Corrective, and Miscellaneous. The best-performing model, Logistic Regression with TF-IDF, achieved an F1-score of 0.86 and cross-validation score of 0.84, demonstrating effective classification of informal, noisy YouTube comments for improved creator engagement.
As a YouTube channel grows, each video can potentially collect enormous amounts of comments that provide direct feedback from the viewers. These comments are a major means of understanding viewer expectations and improving channel engagement. However, the comments only represent a general collection of user opinions about the channel and the content. Many comments are poorly constructed, trivial, and have improper spellings and grammatical errors. As a result, it is a tedious job to identify the comments that best interest the content creators. In this paper, we extract and classify the raw comments into different categories based on both sentiment and sentence types that will help YouTubers find relevant comments for growing their viewership. Existing studies have focused either on sentiment analysis (positive and negative) or classification of sub-types within the same sentence types (e.g., types of questions) on a text corpus. These have limited application on non-traditional text corpus like YouTube comments. We address this challenge of text extraction and classification from YouTube comments using well-known statistical measures and machine learning models. We evaluate each combination of statistical measure and the machine learning model using cross validation and $F_1$ scores. The results show that our approach that incorporates conventional methods performs well on the classification task, validating its potential in assisting content creators increase viewer engagement on their channel.
Motivation & Objective
- To address the challenge of manually sifting through large volumes of noisy, informal YouTube comments for actionable feedback.
- To improve content creator engagement by automatically categorizing comments into sentiment (positive/negative) and sentence type (interrogative, imperative, etc.).
- To overcome limitations of prior work that focused only on sentiment or sentence type in isolation, especially on non-traditional text like YouTube comments.
- To evaluate and compare multiple machine learning models and feature extraction techniques for robust classification in low-resource, noisy comment environments.
Proposed method
- Preprocessing YouTube comment data using spell correction and normalization to reduce noise from typos and informal language.
- Applying two feature extraction methods: document frequency (df) and TF-IDF to represent textual features for classification.
- Training five supervised machine learning models—Logistic Regression, Linear SVC, Multinomial Naive Bayes, Random Forest, and Decision Tree—on the preprocessed data.
- Using 5-fold cross-validation to evaluate model performance and F1-score as the primary metric to assess classification accuracy.
- Fine-tuning models using grid search and hyperparameter optimization to maximize performance on the YouTube comment dataset.
- Analyzing misclassified examples to identify root causes such as ambiguous sentence structures and rare sentiment keywords.
Experimental results
Research questions
- RQ1Can a combination of statistical feature extraction and supervised learning effectively classify YouTube comments into both sentiment and sentence type categories?
- RQ2How do different machine learning models perform when classifying informal, noisy YouTube comments compared to traditional text corpora?
- RQ3What impact do feature selection methods (df vs. TF-IDF) have on model performance in multiclass comment classification?
- RQ4Why do certain categories like Miscellaneous, Imperative, and Negative show lower classification accuracy despite high overall model performance?
- RQ5To what extent do spelling corrections and data preprocessing improve the robustness of the classification pipeline?
Key findings
- Logistic Regression with TF-IDF achieved the highest F1-score of 0.86 and cross-validation score of 0.84, outperforming other models.
- The Decision Tree Classifier showed the weakest performance (F1-score: 0.81) due to high-dimensional feature space and poor generalization on sparse data.
- Performance degraded in the Miscellaneous category due to the high diversity and ambiguity of sentence types grouped under this label.
- Imprecise classification of imperative and negative comments was caused by overlapping linguistic cues, such as 'please' (imperative) and 'why' (interrogative) in the same sentence.
- Model accuracy improved with increasing training data size, as shown in performance plots for both df and TF-IDF feature methods.
- Spelling correction had a negligible impact (≤0.01% change in performance), indicating that models are robust to minor lexical errors in YouTube comments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.