IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0299666.html
   My bibliography  Save this article

Advancements in intrusion detection: A lightweight hybrid RNN-RF model

Author

Listed:
  • Nasrullah Khan
  • Muhammad Ismail Mohmand
  • Sadaqat ur Rehman
  • Zia Ullah
  • Zahid Khan
  • Wadii Boulila

Abstract

Computer networks face vulnerability to numerous attacks, which pose significant threats to our data security and the freedom of communication. This paper introduces a novel intrusion detection technique that diverges from traditional methods by leveraging Recurrent Neural Networks (RNNs) for both data preprocessing and feature extraction. The proposed process is based on the following steps: (1) training the data using RNNs, (2) extracting features from their hidden layers, and (3) applying various classification algorithms. This methodology offers significant advantages and greatly differs from existing intrusion detection practices. The effectiveness of our method is demonstrated through trials on the Network Security Laboratory (NSL) and Canadian Institute for Cybersecurity (CIC) 2017 datasets, where the application of RNNs for intrusion detection shows substantial practical implications. Specifically, we achieved accuracy scores of 99.6% with Decision Tree, Random Forest, and CatBoost classifiers on the NSL dataset, and 99.8% and 99.9%, respectively, on the CIC 2017 dataset. By reversing the conventional sequence of training data with RNNs and then extracting features before applying classification algorithms, our approach provides a major shift in intrusion detection methodologies. This modification in the pipeline underscores the benefits of utilizing RNNs for feature extraction and data preprocessing, meeting the critical need to safeguard data security and communication freedom against ever-evolving network threats.

Suggested Citation

  • Nasrullah Khan & Muhammad Ismail Mohmand & Sadaqat ur Rehman & Zia Ullah & Zahid Khan & Wadii Boulila, 2024. "Advancements in intrusion detection: A lightweight hybrid RNN-RF model," PLOS ONE, Public Library of Science, vol. 19(6), pages 1-26, June.
  • Handle: RePEc:plo:pone00:0299666
    DOI: 10.1371/journal.pone.0299666
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0299666
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0299666&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0299666?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Chen Zheng & Yushu An & Zhanxi Wang & Xiansheng Qin & Benoît Eynard & Matthieu Bricogne & Julien Le Duigou & Yicha Zhang, 2023. "Knowledge-based engineering approach for defining robotic manufacturing system architectures," International Journal of Production Research, Taylor & Francis Journals, vol. 61(5), pages 1436-1454, March.
    2. He, Chengying & Huang, Ke & Lin, Jianwu & Wang, Tianqi & Zhang, Zuominyang, 2023. "Explain systemic risk of commodity futures market by dynamic network," International Review of Financial Analysis, Elsevier, vol. 88(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Youtao Xiang & Sumuya Borjigin, 2024. "High–low volatility spillover network between economic policy uncertainty and commodity futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 44(8), pages 1295-1319, August.
    2. Zhaohan Wang & Kishwar Ali & Sami Ullah, 2025. "Revisiting natural resources and financial development nexus in China under the lens of time‐frequency approach," Natural Resources Forum, Blackwell Publishing, vol. 49(1), pages 541-560, February.
    3. Junzhong Zou & Kai Wang & Keke Zhang & Murizah Kassim, 2024. "RETRACTED ARTICLE: Perspective of virtual machine consolidation in cloud computing: a systematic survey," Telecommunication Systems: Modelling, Analysis, Design and Management, Springer, vol. 87(2), pages 257-285, October.
    4. Pan Han-huai & Wang Lin-wei & Liu Hao & MohammadJavad Abdollahi, 2025. "Identifying influential nodes in complex networks: a semi-local centrality measure based on augmented graph and average shortest path theory," Telecommunication Systems: Modelling, Analysis, Design and Management, Springer, vol. 88(1), pages 1-18, March.
    5. Du, He & Zhang, Chunguang, 2024. "Economic policy uncertainty and natural resources commodity prices: A comparative analysis of pre- and post-pandemic quantile trends in China," Resources Policy, Elsevier, vol. 88(C).
    6. Tang, Yi, 2024. "Nexus of natural resource depletion, corruption and financial inclusion on bio-diversity loss: A systematic study on corrupt economies," Resources Policy, Elsevier, vol. 92(C).
    7. Xiaoyan Qian & Helen Huifen Cai & Nisreen Innab & Danni Wang & Tiziana Ciano & Ali Ahmadian, 2025. "A novel deep learning approach to enhance creditworthiness evaluation and ethical lending practices in the economy," Annals of Operations Research, Springer, vol. 346(2), pages 1597-1619, March.
    8. Dong, Xueqin & Dong, Dongdong & Yu, Qing, 2024. "Impact of oil, gold, and energy prices on resources footprint: Evaluating the role of digital governance and financial development," Resources Policy, Elsevier, vol. 92(C).
    9. Gunay, Samet & Kirimhan, Destan & Cevik, Emrah Ismail, 2024. "Commodity market downturn: Systemic risk and spillovers during left tail events," Journal of Commodity Markets, Elsevier, vol. 36(C).
    10. Wang, Yunqiao & Han, Liangliang & Sun, Jiaqi & Sun, Zheyu, 2024. "Financing the green transition: Mobilizing resources for efficient natural resource management," Resources Policy, Elsevier, vol. 89(C).
    11. R Sakthivel & Ch Vijayalakshmi & M Vanitha & Kareem M AboRas & Waleed Mohammed Abdelfattah & Yazeed Yasin Ghadi & Ch Rami Reddy, 2024. "Hardware optimization for effective switching power reduction during data compression in GOLOMB rice coding," PLOS ONE, Public Library of Science, vol. 19(9), pages 1-21, September.
    12. Muhammad Imran & Muhammad Kamran Khan & Shabbir Alam & Salman Wahab & Muhammad Tufail & Zhang Jijian, 2024. "The implications of the ecological footprint and renewable energy usage on the financial stability of South Asian countries," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-23, December.
    13. Zhouyu Tian & Lening Qiu & Litao Wang, 2024. "Drivers and influencers of blockchain and cloud-based business sustainability accounting in China: Enhancing practices and promoting adoption," PLOS ONE, Public Library of Science, vol. 19(1), pages 1-34, January.
    14. Hasan, Mohammad Maruf & Hasan, Md Enamul & Ghosh, Tusher, 2024. "Transforming developing economies by shifting paradigms beyond natural resources. The fintech and social dynamics for sustainable mineral policy," Resources Policy, Elsevier, vol. 94(C).
    15. Luqman, Muhammad & Mugheri, Adil & Ahmad, Najid & Soytas, Ugur, 2023. "Casting shadows on natural resource commodity markets: Unraveling the quantile dilemma of gold and crude oil prices," Resources Policy, Elsevier, vol. 86(PA).
    16. Ma Chenchen & Cheng Dongshu & Ge Mei & Cao Junrui & Kou Jiayang & Chen Ziyang, 2024. "The Impact of Geographic Factors on Credit Risk: A Study of Chinese Commercial Banks," Economics - The Open-Access, Open-Assessment Journal, De Gruyter, vol. 18(1), pages 1-20.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0299666. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.