Real Time Sentiment Analysis of YouTube Live Chat With Apache Spark and Kafka

The rapid growth of live streaming platforms has created a demand for systems that can analyze user sentiment in real time during high-impact events. This study presents a scalable architecture for real-time sentiment analysis of YouTube live chat, designed and implemented using Apache Kafka for message streaming, Apache Spark Structured Streaming for processing, and Prometheus–Grafana for system monitoring and visualization. Although Chandrayaan-3 was chosen as a representative test case, the framework is event-agnostic and can be applied to other mass participation contexts such as general elections, sports tournaments, and large-scale product launches, where real-time sentiment insights are equally crucial. A comparative analysis of traditional machine learning models and a deep learning model was conducted, with Logistic Regression achieving the best trade-off between accuracy (99.2%) and latency. While the LSTM model performed less effectively due to dataset size constraints, its inclusion provided valuable insights into the feasibility of deep learning in real-time pipelines. Performance metrics such as accuracy, precision, recall, and latency were validated using cross-validation to ensure robustness. The study also discusses practical limitations, including potential overfitting, the challenge of sarcasm and code-mixed language in sentiment analysis, and the generalizability of results beyond a single live-streaming event. Despite these constraints, the system demonstrates the feasibility of integrating scalable big data frameworks with visualization tools to provide actionable insights in mission-critical live events. Future research will focus on multilingual extensions, larger cross-event datasets, and advanced deep learning models such as transformers to further enhance reliability and adaptability.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3625785
Citations
1
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Real Time Sentiment Analysis of YouTube Live Chat With Apache Spark and Kafka

K. C. Shashidhar, Roshan Fernandes, S. Poornima
1 citations
IEEE Access
Sentiment Analysis and Opinion Mining
2.48
article

Real Time Sentiment Analysis of YouTube Live Chat With Apache Spark and Kafka

K. C. Shashidhar, Roshan Fernandes, S. Poornima
article en
1 citations

Abstract

The rapid growth of live streaming platforms has created a demand for systems that can analyze user sentiment in real time during high-impact events. This study presents a scalable architecture for real-time sentiment analysis of YouTube live chat, designed and implemented using Apache Kafka for message streaming, Apache Spark Structured Streaming for processing, and Prometheus–Grafana for system monitoring and visualization. Although Chandrayaan-3 was chosen as a representative test case, the framework is event-agnostic and can be applied to other mass participation contexts such as general elections, sports tournaments, and large-scale product launches, where real-time sentiment insights are equally crucial. A comparative analysis of traditional machine learning models and a deep learning model was conducted, with Logistic Regression achieving the best trade-off between accuracy (99.2%) and latency. While the LSTM model performed less effectively due to dataset size constraints, its inclusion provided valuable insights into the feasibility of deep learning in real-time pipelines. Performance metrics such as accuracy, precision, recall, and latency were validated using cross-validation to ensure robustness. The study also discusses practical limitations, including potential overfitting, the challenge of sarcasm and code-mixed language in sentiment analysis, and the generalizability of results beyond a single live-streaming event. Despite these constraints, the system demonstrates the feasibility of integrating scalable big data frameworks with visualization tools to provide actionable insights in mission-critical live events. Future research will focus on multilingual extensions, larger cross-event datasets, and advanced deep learning models such as transformers to further enhance reliability and adaptability.

IEEE AccessVol. 13
National Institute of Technology Karnataka (IN), Nitte University (IN), Manipal Academy of Higher Education (IN)
Openalex Percentile: Top 8%
Sentiment Analysis and Opinion Mining
2.48
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.