Feature importance guided autoencoder for dimensionality reduction in intrusion detection systems

M Mohamed A. Abdel-Rahman A Ala Saleh Alluhaidan S Sahar A. El-Rahman A Ahmed E. Masnour A Ahmed S. I. Amar M Mohamed A. Sobh A Ayman M. Bahaa-Eldin T Tamer Shamseldin M Mohamed Shalaby

Abstract

Abstract Intrusion detection systems (IDS) play a vital role in protecting computer networks from malicious activities. Dimensionality reduction techniques are commonly employed to enhance the effectiveness and accuracy of machine learning based IDS. In this study, we proposed an effective dimensionality reduction technique called feature importance-based autoencoder (FI-AE) for intrusion detection systems. Our proposed approach encompasses several key components. First, we introduce a novel feature importance method known as one-versus-all feature importance (OVA), which utilizes a random forest algorithm. Next, we train an autoencoder model using a weighted loss function that takes into account the feature importance values obtained through the OVA method. Finally, we utilized the trained autoencoder to reduce the number of features in the benchmark datasets, followed by the application of a random forest classifier to the reduced datasets. We tested our proposed model using three well-known datasets, namely NSL-KDD, UNSW-NB15, and CIC-IDS2017. The experiments revealed that the random forest classifier, combined with our proposed model, outperformed previous dimensionality reduction techniques in terms of accuracy and F1-score.

Article Details

Volume / Issue Vol. 16, Issue 1
Published February 04, 2026
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (9)

M

Mohamed A. Abdel-Rahman

A

Ala Saleh Alluhaidan

S

Sahar A. El-Rahman

A

Ahmed E. Masnour

A

Ahmed S. I. Amar

M

Mohamed A. Sobh

A

Ayman M. Bahaa-Eldin

T

Tamer Shamseldin

M

Mohamed Shalaby