Skip to content
Data Science & information systems International Journal of Advances in Data and Information Systems
Open access E-ISSN 2721-3056 Acceptance rate: 28%

Network Traffic Anomaly Detection for Server Security Using a Hybrid CNN–BiLSTM and LightGBM Optimized by Whale Optimization Algorithm

Authors

  • Marliana Sari Computer Engineering and Information, Politeknik Negeri Medan, Indonesia image/svg+xml
  • Nanang Sadikin Computer Engineering and Information, Sekolah Tinggi Teknologi Informasi NIIT, Indonesia image/svg+xml
  • Andi Supriadi Chan Computer Engineering and Information, Politeknik Negeri Medan, Indonesia image/svg+xml

DOI:

https://doi.org/10.59395/ijadis.v7i2.1545

Keywords:

IoT, DDoS, CNN–BiLSTM , Optimization, hyperparameters

Abstract

The rapid growth of server-based digital services (e.g., web services, databases, cloud platforms, and IoT gateways) expands the attack surface, while threats such as DDoS, brute-force attempts, port scanning, web attacks, bot activity, and infiltration are increasingly difficult to distinguish from legitimate traffic. This study proposes a hybrid anomaly detection pipeline that combines deep learning for representation learning with gradient-boosted decision trees for multiclass classification on structured traffic features. The pipeline applies Min–Max scaling to harmonize feature ranges and SMOTE to mitigate class imbalance, then uses a CNN–BiLSTM network to capture local patterns and temporal dependencies, followed by LightGBM as the final classifier. To enhance LightGBM performance, its hyperparameters are optimized using the Whale Optimization Algorithm (WOA). We evaluate the approach using accuracy, precision, recall, and F1-score in a multiclass setting. Experimental results show that the CNN–BiLSTM + LightGBM baseline achieves 0.92 accuracy with strong performance on most attack categories, while rare and ambiguous classes (notably Infiltration and Web Attack) remain challenging. With WOA-based optimization, overall accuracy increases to 0.93 and the macro-average F1-score improves from 0.88 to 0.89, with clearer gains for several time-dependent attack classes. While the proposed framework is designed with practical deployment in mind by leveraging a tree-based classifier on learned features, this study does not report system-level efficiency measurements (e.g., training time, inference latency, or memory footprint); these will be addressed in future work to substantiate computational feasibility in real server environments.

344 83

Downloads

Download data is not yet available.

References

[1] R. Taheri, H. Ahmed, and E. Arslan, Deep learning for the security of software-defined networks: a review, Cluster Comput., vol. 26, no. 5, pp. 30893112, 2023, doi: 10.1007/s10586-023-04069-9. DOI: https://doi.org/10.1007/s10586-023-04069-9

[2] A. Diro, S. Kaisar, A. V. Vasilakos, A. Anwar, A. Nasirian, and G. Olani, Anomaly detection for space information networks: A survey of challenges, techniques, and future directions, Comput. Secur., vol. 139, pp. 132, Apr. 2024, doi: 10.1016/j.cose.2024.103705. DOI: https://doi.org/10.1016/j.cose.2024.103705

[3] A. S. Chan, H. A. Dwisastri, and F. Fachrizal, Prediction of Poultry Farmer Performance Recapitulation Values in Broiler Chicken Farming Using Random Forest Regression, 2025, pp. 406414. doi: 10.2991/978-94-6463-926-1_46. DOI: https://doi.org/10.2991/978-94-6463-926-1_46

[4] A. S. Chan, M. Husna, and P. P. Putra, A Performance Enhancement Strategy for Sentiment Classification Models On Political Social Media Using Hyperparameter Tuning And Boosting, International Journal of Advances in Data and Information Systems, vol. 6, no. 3, pp. 763772, Dec. 2025, doi: 10.59395/ijadis.v6i3.1455. DOI: https://doi.org/10.59395/ijadis.v6i3.1455

[5] B. Harjito, K. N. Aini, A. Wijayanto, and B. Murtiyasa, Comparison of Multinomial Nave Bayes with K-Nearest Neighbors, Support Vector Machine and Random Forest for Classification of Network Attacks Document, in Fourth International Conference on Informatics and Computing (ICIC), IEEE Xplore, 2020, pp. 16. doi: 10.1109/ICIC47613.2019.8985919. DOI: https://doi.org/10.1109/ICIC47613.2019.8985919

[6] E. Alagz, Y. M. Sahin, K. zdem, A. O. Gedik, and M. A. Akcayol, Log Anomaly Detection in Application Servers Using Deep Learning, in International Conference on Artificial Intelligence and Applied Mathematics in Engineering, D. J. Hemanth, U. Kose, B. Patrut, and M. Ersoy, Eds., 2024, pp. 258268. doi: 10.1007/978-3-031-56310-2_20. DOI: https://doi.org/10.1007/978-3-031-56310-2_20

[7] K. Inayah and K. Ramli, Analisis Kinerja Intrusion Detection System Berbasis Algoritma Random Forest Menggunakan Dataset Unbalanced Honeynet BSSN, Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 4, no. 11, pp. 867876, Aug. 2024, doi: 10.25126/jtiik1148911. DOI: https://doi.org/10.25126/jtiik.1148911

[8] R. P. Putra and Amarudin, A Comparative Study of Machine Learning Algorithms for Intrusion Detection Systems using the NSL-KDD Dataset, Sistemasi: Jurnal Sistem Informasi, vol. 14, no. 4, pp. 16541664, 2025, doi: 10.20895/inista.v6i2.1389. DOI: https://doi.org/10.32520/stmsi.v14i4.5246

[9] M. R. Wijaya, Inovasi Model Intrusion Detection System (IDS) menggunakan Double Layer Gated Recurrent Unit (GRU) dengan Fitur Berbasis Fusion, Jurnal Ilmiah Edutic: Pendidikan dan Informatika, vol. 12, no. 1, pp. 1021, Feb. 2025, doi: 10.21107/edutic.v12i1.28822. DOI: https://doi.org/10.21107/edutic.v12i1.28822

[10] A. R. Syujak, K. Diantoro, V. Yuni T, A. Soderi, and P. A. Sucipto, Integrasi Deep Packet Inspection dengan Intrusion Detection System (IDS) untuk Identifikasi Serangan DDoS dalam Jaringan Skala Besar, Jurnal Minfo Polgan, vol. 13, no. 2, pp. 19711975, Dec. 2024, doi: 10.33395/jmp.v13i2.14324. DOI: https://doi.org/10.33395/jmp.v13i2.14324

[11] R. Sovia, M. K. Anam, I. A. Wisky, R. Permana, N. A. Rahmi, and R. H. Zain, Robust Predictive Model for Heart Disease Diagnosis Using Advanced Machine Learning Techniques, Journal of Applied Data Sciences, vol. 7, no. 1, pp. 541553, Jan. 2026, doi: 10.47738/jads.v7i1.1092. DOI: https://doi.org/10.47738/jads.v7i1.1092

[12] M. K. Anam et al., Enhancing the Performance of Machine Learning Algorithm for Intent Sentiment Analysis on Village Fund Topic, Journal of Applied Data Sciences, vol. 6, no. 2, pp. 11021115, 2025, doi: 10.47738/jads.v6i2.637. DOI: https://doi.org/10.47738/jads.v6i2.637

[13] M. K. Anam, S. Defit, Haviluddin, L. Efrizoni, and M. B. Firdaus, Early Stopping on CNN-LSTM Development to Improve Classification Performance, Journal of Applied Data Sciences, vol. 5, no. 3, pp. 11751188, 2024, doi: 10.47738/jads.v5i3.312. DOI: https://doi.org/10.47738/jads.v5i3.312

[14] M. K. Anam et al., Improved Performance of Hybrid GRU-BiLSTM for Detection Emotion on Twitter Dataset, Journal of Applied Data Sciences, vol. 6, no. 1, pp. 354365, Jan. 2025, doi: 10.47738/jads.v6i1.459. DOI: https://doi.org/10.47738/jads.v6i1.459

[15] N. F. Fahrudin, K. R. Putra, S. Umaroh, and G. B. Lautan, Influence of Data Scaling and Train/Test Split Ratios on LightGBM Efficacy for Obesity Rate Prediction, MIND Journal, vol. 9, no. 2, pp. 220234, Dec. 2024, doi: 10.26760/mindjournal.v9i2.220-234. DOI: https://doi.org/10.26760/mindjournal.v9i2.220-234

[16] M. H. Nadimi-Shahraki, H. Zamani, Z. Asghari Varzaneh, and S. Mirjalili, A Systematic Review of the Whale Optimization Algorithm: Theoretical Foundation, Improvements, and Hybridizations, Archives of Computational Methods in Engineering, vol. 30, no. 7, pp. 41134159, Sep. 2023, doi: 10.1007/s11831-023-09928-7. DOI: https://doi.org/10.1007/s11831-023-09928-7

[17] M. K. Anam, T. P. Lestari, H. Yenni, T. Nasution, and M. B. Firdaus, Enhancement of Machine Learning Algorithm in Fine-grained Sentiment Analysis Using the Ensemble, ECTI Transactions on Computer and Information Technology (ECTI-CIT), vol. 19, no. 2, pp. 159167, Mar. 2025, doi: 10.37936/ecti-cit.2025192.257815. DOI: https://doi.org/10.37936/ecti-cit.2025192.257815

[18] K. Alemerien, S. Alsarayreh, and E. Altarawneh, Diagnosing Cardiovascular Diseases using Optimized Machine Learning Algorithms with GridSearchCV, Journal of Applied Data Sciences, vol. 5, no. 4, pp. 15391552, Dec. 2024, doi: 10.47738/jads.v5i4.280. DOI: https://doi.org/10.47738/jads.v5i4.280

[19] S. Chopannejad, A. Roshanpoor, and F. Sadoughi, Attention-assisted hybrid CNN-BILSTM-BiGRU model with SMOTETomek method to detect cardiac arrhythmia based on 12-lead electrocardiogram signals, Digit. Health, vol. 10, pp. 120, Jan. 2024, doi: 10.1177/20552076241234624. DOI: https://doi.org/10.1177/20552076241234624

[20] M. K. Anam et al., Sara Detection on Social Media Using Deep Learning Algorithm Development, Journal of Applied Engineering and Technological Science, vol. 6, no. 1, pp. 225237, Dec. 2024, doi: 10.37385/jaets.v6i1.5390. DOI: https://doi.org/10.37385/jaets.v6i1.5390

[21] X. Li, Y. Lei, and S. Ji, BERT- and BiLSTM-Based Sentiment Analysis of Online Chinese Buzzwords, Future Internet, vol. 14, no. 11, pp. 115, Nov. 2022, doi: 10.3390/fi14110332. DOI: https://doi.org/10.3390/fi14110332

[22] J. M. Ahn, J. Kim, and K. Kim, Ensemble Machine Learning of Gradient Boosting (XGBoost, LightGBM, CatBoost) and Attention-Based CNN-LSTM for Harmful Algal Blooms Forecasting, Toxins (Basel)., vol. 15, no. 10, pp. 115, Oct. 2023, doi: 10.3390/toxins15100608. DOI: https://doi.org/10.3390/toxins15100608

[23] A. Brodzicki, M. Piekarski, and J. Jaworek-Korjakowska, The whale optimization algorithm approach for deep neural networks, Sensors, vol. 21, no. 23, pp. 116, Dec. 2021, doi: 10.3390/s21238003. DOI: https://doi.org/10.3390/s21238003

[24] M. K. Anam, T. P. Lestari, L. Efrizoni, N. S. Handayani, and I. Andhika, Sentiment Analysis Optimization Using Ensemble of Multiple SVM Kernel Functions, Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 4, pp. 905914, Aug. 2025, doi: 10.29207/resti.v9i4.6708. DOI: https://doi.org/10.29207/resti.v9i4.6708

[25] P. P. Putra, M. K. Anam, A. S. Chan, A. Hadi, N. Hendri, and A. Masnur, Optimizing Sentiment Analysis on Imbalanced Hotel Review Data Using SMOTE and Ensemble Machine Learning Techniques, Journal of Applied Data Sciences, vol. 6, no. 2, pp. 936951, May 2025, doi: 10.47738/jads.v6i2.618. DOI: https://doi.org/10.47738/jads.v6i2.618

[26] Mesran, S. R. Yahya, F. Nugroho, and A. P. Windarto, Investigating the Impact of ReLU and Sigmoid Activation Functions on Animal Classification Using CNN Models, Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 8, no. 1, pp. 111118, Feb. 2024, doi: 10.29207/resti.v8i1.5367. DOI: https://doi.org/10.29207/resti.v8i1.5367

[27] U. I. Arsyah, M. Pratiwi, H. Fryonanda, M. K. Anam, and Munawir, ACLM Model: A CNN-LSTM and Machine Learning Approach for Analyzing Tourist Satisfaction to Improve Priority Tourism Services, Journal of Applied Data Sciences, vol. 6, no. 4, pp. 28912906, Sep. 2025, doi: 10.47738/jads.v6i4.974. DOI: https://doi.org/10.47738/jads.v6i4.974

[28] M. R. P. Putra and E. Utami, Comparative Analysis of Hybrid Model Performance Using Stacking and Blending Techniques for Student Drop-Out Prediction in MOOC, J. RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 8, no. 3, pp. 346354, 2024, doi: 10.29207/resti.v8i3.5760. DOI: https://doi.org/10.29207/resti.v8i3.5760

Downloads

Published

2026-08-04

How to Cite

[1]
M. . Sari, N. . Sadikin, and A. S. . Chan, “Network Traffic Anomaly Detection for Server Security Using a Hybrid CNN–BiLSTM and LightGBM Optimized by Whale Optimization Algorithm”, International Journal of Advances in Data and Information Systems, vol. 7, no. 2, pp. 656–670, Aug. 2026, doi: 10.59395/ijadis.v7i2.1545.

Share



Plum Analytics


Similar Articles

1-10 of 44

You may also start an advanced similarity search for this article.