Convolutional Neural Network-Based Model for Indonesian Offensive Text Classification

This study presents a Convolutional Neural Network (CNN)-based model for classifying offensive and non-offensive Indonesian text using a dataset of 10,054 tweets collected from Twitter/X. The dataset was manually annotated into two classes and processed through a series of text-cleaning, tokenization, and padding steps before being used to train the model. Several training durations were tested to evaluate the effect of epoch variation on model performance. The results show that the model trained for 70 epochs achieved the best overall performance, with a testing accuracy of 86.73%, precision of 0.8793, recall of 0.8834, F1-score of 0.8814, and a ROC-AUC value of 92.08%. The confusion matrix analysis indicates strong classification capability for both classes, with the model performing slightly better in identifying offensive text due to distinctive lexical patterns. These findings demonstrate that the CNN architecture, supported by trainable word embeddings, is effective for Indonesian offensive-text classification. Future improvements may include integrating pretrained language models or expanding the dataset to enhance contextual understanding and robustness.

Authors

Institutions

Publication Details

Journal
Emerging Information Science and Technology
Published
2025-11-29
DOI
https://doi.org/10.18196/eist.v6i2.29704
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Convolutional Neural Network-Based Model for Indonesian Offensive Text Classification

E M O N Haryanto, Ryan Ari Setyawan, Daniel Mayndeta
Emerging Information Science and Technology
Hate Speech and Cyberbullying Detection
article

Convolutional Neural Network-Based Model for Indonesian Offensive Text Classification

E M O N Haryanto, Ryan Ari Setyawan, Daniel Mayndeta
article en

Abstract

This study presents a Convolutional Neural Network (CNN)-based model for classifying offensive and non-offensive Indonesian text using a dataset of 10,054 tweets collected from Twitter/X. The dataset was manually annotated into two classes and processed through a series of text-cleaning, tokenization, and padding steps before being used to train the model. Several training durations were tested to evaluate the effect of epoch variation on model performance. The results show that the model trained for 70 epochs achieved the best overall performance, with a testing accuracy of 86.73%, precision of 0.8793, recall of 0.8834, F1-score of 0.8814, and a ROC-AUC value of 92.08%. The confusion matrix analysis indicates strong classification capability for both classes, with the model performing slightly better in identifying offensive text due to distinctive lexical patterns. These findings demonstrate that the CNN architecture, supported by trainable word embeddings, is effective for Indonesian offensive-text classification. Future improvements may include integrating pretrained language models or expanding the dataset to enhance contextual understanding and robustness.

Emerging Information Science and TechnologyVol. 6(2)
Janabadra University (ID)
Openalex Percentile: Top 18%
Hate Speech and Cyberbullying Detection
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.

Convolutional Neural Network-Based Model for Indonesian Offensive Text Classification — E M O N Haryanto, Ryan Ari Setyawan, et al. · Emerging Information Science and Technology (2025) | TGRS Research Map | TGRS