OPTIMIZING TURKISH HATE SPEECH DETECTION WITH OPTUNA: A COMPARISON OF TRADITIONAL AND ATTENTION-BASED ENCODER-DECODER MODELS

This study evaluates the performance of machine learning and encoder-decoder architectures for Turkish hate speech detection, emphasizing the role of hyperparameter optimization and model design. Traditional classifiers, including Random Forest, eXtreme Gradient Boosting (XGBoost), Light Gradient-Boosting Machine (LightGBM), Naive Bayes, and Artificial Neural Networks (ANN) are compared with encoder-decoder models utilizing Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), and Gated Recurrent Unit (GRU) architectures integrated with attention mechanisms (Bahdanau, Luong, and Scaled Dot Product), exploring various feature representation techniques. Hyperparameter optimization using Optuna, Genetic Algorithm (GA), and Particle Swarm Optimization (PSO) significantly improved model performance, with Optuna demonstrating superior efficiency due to its adaptive sampling and pruning strategies. Optuna was selected as a modern automated hyperparameter optimization framework due to its adaptive sampling and efficient pruning strategies. This enables a more systematic comparison and provides insights into how advanced hyperparameter optimization frameworks influence hate speech detection performance. An Optuna-optimized ANN, achieved the highest F1 score of 0.8723, outperforming more complex attention-based encoder-decoder models. These findings underscore the value of combining robust feature engineering with effective hyperparameter optimization, indicating that simpler, well-tuned models can surpass deeper architectures in detecting hate speech in Turkish social media content. This study offers critical insights for developing efficient and accurate hate speech classifiers for real-world applications.

Authors

Institutions

Publication Details

Journal
Konya Journal of Engineering Sciences
Published
2026-12-03
DOI
https://doi.org/10.36306/konjes.1735209
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
NOV
article

OPTIMIZING TURKISH HATE SPEECH DETECTION WITH OPTUNA: A COMPARISON OF TRADITIONAL AND ATTENTION-BASED ENCODER-DECODER MODELS

Fatih Soygazi, Gözde Alp
Konya Journal of Engineering Sciences
Hate Speech and Cyberbullying Detection
article

OPTIMIZING TURKISH HATE SPEECH DETECTION WITH OPTUNA: A COMPARISON OF TRADITIONAL AND ATTENTION-BASED ENCODER-DECODER MODELS

Fatih Soygazi, Gözde Alp
article en

Abstract

This study evaluates the performance of machine learning and encoder-decoder architectures for Turkish hate speech detection, emphasizing the role of hyperparameter optimization and model design. Traditional classifiers, including Random Forest, eXtreme Gradient Boosting (XGBoost), Light Gradient-Boosting Machine (LightGBM), Naive Bayes, and Artificial Neural Networks (ANN) are compared with encoder-decoder models utilizing Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), and Gated Recurrent Unit (GRU) architectures integrated with attention mechanisms (Bahdanau, Luong, and Scaled Dot Product), exploring various feature representation techniques. Hyperparameter optimization using Optuna, Genetic Algorithm (GA), and Particle Swarm Optimization (PSO) significantly improved model performance, with Optuna demonstrating superior efficiency due to its adaptive sampling and pruning strategies. Optuna was selected as a modern automated hyperparameter optimization framework due to its adaptive sampling and efficient pruning strategies. This enables a more systematic comparison and provides insights into how advanced hyperparameter optimization frameworks influence hate speech detection performance. An Optuna-optimized ANN, achieved the highest F1 score of 0.8723, outperforming more complex attention-based encoder-decoder models. These findings underscore the value of combining robust feature engineering with effective hyperparameter optimization, indicating that simpler, well-tuned models can surpass deeper architectures in detecting hate speech in Turkish social media content. This study offers critical insights for developing efficient and accurate hate speech classifiers for real-world applications.

Konya Journal of Engineering SciencesVol. 14(4)
Adnan Menderes University (TR)
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.

Laika access coming soon