The 2024 Presidential Debate was a pivotal moment in Indonesia's democratic process, significantly influencing public perception and political decisions, particularly among swing voters and undecided voters. The comment section on YouTube serves as a representative platform capturing public emotional responses, opinions, and arguments regarding the performance of candidate pairs. This study aims to evaluate the effectiveness and measure the accuracy of the Recurrent Neural Network (RNN) algorithm with Long Short-Term Memory (LSTM) architecture in classifying multiclass sentiments (7 classes) related to the First 2024 Presidential Debate. Data was collected via web crawling using the YouTube Data API v3 from the metrotvnews and KPU RI channels, yielding a total of 23,163 comments. Following deduplication and text preprocessing stages (case folding, filtering, slang normalization, tokenizing, stopword removal, and Sastrawi stemming), 6,000 comments were manually annotated for model training. Experimental evaluations demonstrate that the LSTM model achieved an accuracy of 91.08%, an F1-score of 93.40%, a recall of 91.44%, and a precision of 95.61%. Sentiment distribution analysis reveals that Candidate Pair 01 (Anies Baswedan) dominated the positive sentiment with 35.0% (2,281 comments), followed by negative sentiment toward Candidate Pair 02 (Prabowo Subianto) at 15.4% (1,003 comments). These findings prove that the LSTM algorithm is highly reliable in modeling sequential dependencies in Indonesian political text.
Copyrights © 2026