Intrusion detection in a controlled computer network environment using hybridized random forest and long short-term memory algorithms
Keywords:
Intrusion, Detection, Security, HybridAbstract
The unending reliant on network access in everything we do, and with the increasing dominance of online communication, there is urgent need to address computer network security challenges now, more than ever. Most of the existing Intrusion Detection Systems (IDSs) struggle to keep pace with the ever-changing characteristics of newly emerging threats. This research proposes a hybrid model that is effective in detecting both majority and minority attack classes using Random Forest (RF) and Long Short-Term Memory (LSTM) algorithms in a controlled computer network environment. Individually, the RF and LSTM models have limitations, but their individual strengths were extracted and subsequently hybridized to cover each other's weaknesses. To handle the challenge of class imbalance, a class weight was applied to the model’s loss function. This approach prompts the model to give extra attention to the minority class attacks. The meta classifier optimized the RF-LSTM combination and offered a more improved model that is effective in detecting both majority and minority classes simultaneously. The hybrid model was analyzed using the Neural Simulator Language- Knowledge Discovery in Databases (NSL-KDD) dataset. The model was deployed in a virtual network environment consisting of three operating systems and a host. The RF – LSTM hybrid model performed exceptionally well by achieving a prediction accuracy of 98.3%, precision of 96.98, recall and F1score of 96.58 and 97,03 respectively, all after 100 epochs at 0.01 learning rate. This outcome addresses shortcomings and lapses hitherto suffered by most intrusion detection models (assessing minority class attacks).
Published
How to Cite
Issue
Section
Copyright (c) 2025 A. I. Bassey, M. A. Agana, E. A. Edim, O. Njama-Abang

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
Similar Articles
- Denis U. Ashishie, Endurance O. Obi, Osowomuabe Njama-Abang, Ahena I. Bassey, Transformative approach in Lassa fever diagnostics: an innovative integrative strategy for early detection and outcome prediction , African Scientific Reports: Volume 4, Issue 3, December 2025 (In Progress)
- O. B. Ayoade, M. O. Raji, A. A. Akindele, K. J. Yusuf-Mashopa, M. F. Abdulrauf, I. A. Raji, F. B. Musah, Hyperparameter optimisation for support vector machine-based disease detection in maize leaf variants , African Scientific Reports: Volume 4, Issue 3, December 2025 (In Progress)
- E. K. Ukpoko, I. S. Eneji, Q. M. Amua, R. A. Wuana, Analysis of some heavy metals in foodstuffs contaminated with pesticides using a developed spot-test method , African Scientific Reports: Volume 4, Issue 1, April 2025
- Gafari Abiola Adepoju, Muniru Olajide Okelola, Muhammed Adekilekun Tijani, Hybrid Optimization Technique for Solving Economic Dispatch Problem: A Case Study of Nigerian Thermal Power System , African Scientific Reports: Volume 1, Issue 2, August 2022
- Gabriel James, Anietie Ekong, Etimbuk Abraham, Enobong Oduobuk, Nseobong Michael, Victor Ufford, Oscar Ebong, An enhanced control solutions for efficient urban waste management using deep learning algorithms , African Scientific Reports: Volume 3, Issue 3, December 2024
- Emmanuel Joseph, Gonto Kamal, Oluwasesan M. Bello, Natural radionuclide distribution and analysis of associated radiological concerns in rock samples from a rocky town (Dutsin-Ma) in the North-Western region of Nigeria , African Scientific Reports: Volume 2, Issue 3, December 2023
- M. A. Aliu, A. M. Junaid, A. Ibraheem, A. Ishaq, A. Lawal, K. E. Ayeni, A. R. Lawal, L. B. Abdulrauf, Dispersive liquid-liquid microextraction/HPLC techniques for determination of oxytetracycline and doxycycline residues in beef samples: method developments and statistical analysis , African Scientific Reports: Volume 2, Issue 1, April 2023
- D. Raymond, T. P. Pantuvo, A. Lydia, J. Sabo, R. Ajia, An Optimized Half-Step Scheme Third derivative Methods for Testing Higher Order Initial Value Problems , African Scientific Reports: Volume 2, Issue 1, April 2023
- D. Raymond, T. Y. Kyagya, S. John, A. Lydia, Numerical Application of Higher Order Linear Block Method for Solving Some Fourth Order Initial Value Problems , African Scientific Reports: Volume 2, Issue 1, April 2023
- Lawal Umar, Tafida M. Kabir, Ibrahim U. Haruna, An Inertial Algorithm of Generalized f -Projection for Maximal Monotone Operators and Generalized Mixed Equilibrium Problems in Banach Spaces , African Scientific Reports: Volume 1, Issue 1, April 2022
You may also start an advanced similarity search for this article.


