Sentiment classification of Indonesian YouTube comments remains challenging because informal language, target ambiguity, and severe class imbalance can obscure minority-class performance. This study evaluates the individual and combined contributions of attention pooling, supervised contrastive loss (SCL), and dynamic adaptive focal loss to IndoBERT using a complete 2×2×2 full-factorial ablation design. From an initial 75,453 comments, temporal filtering using 21 August 2026 as the case reference date retained 67,633 comments. After removing 159 irrelevant comments and 2,721 exact duplicates, 64,753 weak-labelled comments remained, with a majority-to-minority ratio of 22.24. A disproportionate stratified sample of 500 comments was independently audited by a human annotator; among 498 valid sentiment items, LLM-to-human agreement reached a Macro-F1 of 0.5389 and Cohen’s kappa of 0.3146, indicating substantial weak-label noise. The dataset was split 80:10:10 using a fixed stratified split, and each IndoBERT variant was trained with three seeds (42, 123, and 3407). Plain IndoBERT achieved a mean Macro-F1 of 0.9566 ± 0.0064. The highest observed mean was obtained by the dynamic-focal-only variant at 0.9595 ± 0.0023, closely followed by the full configuration at 0.9595 ± 0.0011. Paired marginal comparisons showed small, context-dependent effects, with all 95% confidence intervals crossing zero. Overall, most gains over TF-IDF baselines came from IndoBERT’s contextual representations, while the added components produced comparatively small and unstable improvements.
Copyrights © 2026