A Comparison of Transformer-based Innovative Models and Traditional Machine Learning Algorithms in Detecting Android Malicious Software
JOURNAL OF POLYTECHNIC-POLITEKNIK DERGISI, cilt.29, sa.5, ss.1-11, 2026 (ESCI)
- Yayın Türü: Makale / Tam Makale
- Cilt numarası: 29 Sayı: 5
- Basım Tarihi: 2026
- Doi Numarası: 10.2339/politeknik.1455125
- Dergi Adı: JOURNAL OF POLYTECHNIC-POLITEKNIK DERGISI
- Derginin Tarandığı İndeksler: Emerging Sources Citation Index (ESCI)
- Sayfa Sayıları: ss.1-11
- Açık Arşiv Koleksiyonu: AVESİS Açık Erişim Koleksiyonu
- Gazi Üniversitesi Adresli: Evet
Özet
The Android ecosystem has become increasingly vulnerable to malware threats as the number of applications and users continues to grow rapidly. Accurate and timely detection of these threats is crucial for safeguarding user data. In recent years, alongside traditional machine learning algorithms, Transformer-based models and natural language processing techniques have emerged as powerful approaches in Android malware detection. This study compares traditional algorithms (Random Forest, Decision Tree, K-NN, Naive Bayes) and Transformer models (DistilBERT, GPT-2, BERT, RoBERTa) across three benchmark datasets: CICMal2020, VirusShare, and Drebin. The findings indicate that dataset characteristics play a decisive role in model performance. On the CICMal2020 dataset, Transformer models demonstrated relatively low performance (0.560), whereas traditional methods—especially Random Forest—achieved high accuracy (0.947). In contrast, on context-rich datasets such as VirusShare and Drebin, Transformer models reached competitive results (0.931–0.945), yet traditional algorithms still delivered more stable and higher performance (0.955–0.995). In conclusion, while Transformer-based architectures offer a strong alternative for Android malware detection, traditional machine learning methods can still provide more reliable solutions depending on the dataset characteristics. This study highlights that model selection should be guided by the structural properties of the data. Keywords: Android, malicious software detection, transformer-base models, traditional machine learning algorithms, natural language processing.