Twitter Bot Detection Using Text-Based Feature Extraction Methods and Machine Learning Algorithms: A Comprehensive Comparative Study
Bilişim Teknolojileri Dergisi, cilt.19, sa.4, ss.543-556, 2026 (TRDizin)
- Yayın Türü: Makale / Tam Makale
- Cilt numarası: 19 Sayı: 4
- Basım Tarihi: 2026
- Doi Numarası: 10.17671/gazibtd.2034345
- Dergi Adı: Bilişim Teknolojileri Dergisi
- Derginin Tarandığı İndeksler: EBSCO Legal Source, TR DİZİN (ULAKBİM)
- Sayfa Sayıları: ss.543-556
- Gazi Üniversitesi Adresli: Evet
Özet
This study presents a comprehensive analysis of bot detection approaches that integrate text representation methods with machine learning (ML) algorithms using only tweet text without relying on profile metadata. Within this scope, 28 experimental models, formed by combinations of four different text representation methods (Term FrequencyInverse Document Frequency (TF-IDF), Count N-gram, Word2Vec, and FastText) and seven different classical ML algorithms (Linear Support Vector Machine (SVM), Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Gradient Boosting (GB), Light Gradient Boosting Machine (LightGBM), and eXtreme Gradient Boosting (XGBoost)), were systematically evaluated in the study. Experimental results show that bot detection models based on TF-IDF and Count N-gram representations outperform those using Word2Vec and FastText across almost all metrics. Among them, TF-IDF+LightGBM achieved the highest scores on most metrics: accuracy of 0.9393, precision of 0.9384, recall of 0.9404, F1-score of 0.9394, ROC-AUC of 0.9854, and PR-AUC of 0.9849. Quartile-zone analyses further indicate that TF-IDF+LR offers a favorable trade-off between performance and computational cost, combining a competitive F1-score (0.9270) with very low latency (0.000593 ms/sample), making it a promising candidate for real-time applications. The study also provides a systematic comparative framework for future research in this field. Keywords — twitter bot detection, feature extraction, text-