Jurnal Teknologi Informatika dan Komputer
Vol. 12 No. 1 (2026): Jurnal Teknologi Informatika dan Komputer

Sentiment Analysis of the Indonesian Megathrust Earthquake and Tsunami Issue Using BERT and Roberta Methods

Hendra Rahman (Universitas Pamulang)
Taswanda Taryo (Universitas Pamulang)
Sudarno Wiharjo (Universitas Pamulang)



Article Info

Publish Date
15 Jul 2026

Abstract

The megathrust earthquake in Indonesia is a major potential natural disaster capable of triggering high-magnitude earthquakes and tsunamis, thereby influencing public perception. This study aims to analyze public opinion and identify the main topics related to the megathrust earthquake issue using Bidirectional Encoder Representations from Transformers (BERT) and Robustly Optimized BERT Pretraining Approach (RoBERTa) models. The dataset consists of 16,592 comments collected from the X social media platform during the period 2012–2025, which were classified into three sentiment categories, positive, negative, and neutral. The research methodology included exploratory data analysis, text preprocessing, model training, and evaluation using four experimental scenarios. The results indicate that the best performance was achieved using an 80:10:10 train–validation test split with ten training epochs. The BERT model outperformed RoBERTa, achieving an accuracy of 92,4350%, precision of 92,4291%, recall of 92,4350%, and F1-score of 92,4292%. These findings demonstrate that BERT is more effective in capturing the linguistic context of the Indonesian language. Furthermore, this study contributes to the advancement of artificial intelligence-based sentiment analysis for monitoring public opinion on disaster-related issues and provides a valuable foundation for developing more effective risk communication strategies, disaster mitigation education, and evidence-based policymaking that is more responsive to public perception.

Copyrights © 2026






Journal Info

Abbrev

jtik

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering

Description

Jurnal Teknologi Informatika dan Komputer merupakan salah satu jurnal berbasis Open Journal System (OJS) yang dikelola oleh Lembaga Penelitian dan Pengabdian kepada Masyarakat (LPPM) Universitas Mohammad Husni Thamrin (UMHT) yang berisi artikel-artikel dengan topik Teknologi Informasi yang menampung ...