An explainable multi-stage framework for cyber-attack detection: component analysis on UNSW-NB15 and the case for generative AI

Intrusion detection systems have to separate attack traffic from normal traffic accurately and also explain how they reach their decisions. This paper studies an explainable multi-stage framework for binary attack detection on UNSW-NB15. A deep autoencoder is trained on the training partition, and the gradient explainer of SHAP attributes its reconstruction error to the input features, which keeps the 20 most influential of the 42 features. The selected features pass through a learned feature-transformation block (GTN), an LSTM layer and a capsule-style vector projection, and an XGBoost classifier makes the final decision on the resulting 64-dimensional representation. Trained on 82,332 records and tested on 175,341 records, the main run reached an accuracy of 87.23%, an attack-class precision of 97.78%, a detection rate of 83.13%, an F1-score of 0.8986 and a ROC-AUC of 0.9778, with a false positive rate of 4.02% and a false negative rate of 16.87%. Over five random seeds the mean accuracy was 87.67%. A twelve-variant ablation study shows that removing the LSTM, the linear GTN block or the capsule projection does not lower accuracy (88.04% to 88.27%), that replacing the linear GTN block by an attention-based graph transformer is the only neural change that helps (88.57%), and that standard classifiers trained on the same data are better, for example a random forest (90.12%) and XGBoost (89.94%). Class weights, SMOTE and a validation-tuned threshold do not help, because the dominant error comes from a shift in class prior between the two partitions (68.1% against 55.1% attack records): a prior-aware threshold raises the accuracy of the main run to 89.64%. With the split roles listed on the dataset page, XGBoost reaches 87.53% and the framework 83.70%. The autoencoder-based SHAP ranking agrees only weakly with the features that matter to the classifier (Spearman correlation 0.23) and is not significantly better than a random choice of 20 features. The contribution of the framework is therefore a transparent and reproducible attribution pipeline together with an honest account of what each component adds, and not a gain in accuracy. Generative AI for data augmentation, adversarial testing and explanation is proposed as the most promising direction for the next version of the hybrid system.

Authors

Institutions

Publication Details

Journal
Discover Artificial Intelligence
Published
2026-11-25
DOI
https://doi.org/10.1007/s44163-026-02711-0
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An explainable multi-stage framework for cyber-attack detection: component analysis on UNSW-NB15 and the case for generative AI

N. R. Sunitha, Aniruddha Prabhu B.P.
Discover Artificial Intelligence
Network Security and Intrusion Detection
article

An explainable multi-stage framework for cyber-attack detection: component analysis on UNSW-NB15 and the case for generative AI

N. R. Sunitha, Aniruddha Prabhu B.P.
article en

Abstract

Intrusion detection systems have to separate attack traffic from normal traffic accurately and also explain how they reach their decisions. This paper studies an explainable multi-stage framework for binary attack detection on UNSW-NB15. A deep autoencoder is trained on the training partition, and the gradient explainer of SHAP attributes its reconstruction error to the input features, which keeps the 20 most influential of the 42 features. The selected features pass through a learned feature-transformation block (GTN), an LSTM layer and a capsule-style vector projection, and an XGBoost classifier makes the final decision on the resulting 64-dimensional representation. Trained on 82,332 records and tested on 175,341 records, the main run reached an accuracy of 87.23%, an attack-class precision of 97.78%, a detection rate of 83.13%, an F1-score of 0.8986 and a ROC-AUC of 0.9778, with a false positive rate of 4.02% and a false negative rate of 16.87%. Over five random seeds the mean accuracy was 87.67%. A twelve-variant ablation study shows that removing the LSTM, the linear GTN block or the capsule projection does not lower accuracy (88.04% to 88.27%), that replacing the linear GTN block by an attention-based graph transformer is the only neural change that helps (88.57%), and that standard classifiers trained on the same data are better, for example a random forest (90.12%) and XGBoost (89.94%). Class weights, SMOTE and a validation-tuned threshold do not help, because the dominant error comes from a shift in class prior between the two partitions (68.1% against 55.1% attack records): a prior-aware threshold raises the accuracy of the main run to 89.64%. With the split roles listed on the dataset page, XGBoost reaches 87.53% and the framework 83.70%. The autoencoder-based SHAP ranking agrees only weakly with the features that matter to the classifier (Spearman correlation 0.23) and is not significantly better than a random choice of 20 features. The contribution of the framework is therefore a transparent and reproducible attribution pipeline together with an honest account of what each component adds, and not a gain in accuracy. Generative AI for data augmentation, adversarial testing and explanation is proposed as the most promising direction for the next version of the hybrid system.

Discover Artificial IntelligenceVol. 6(1)
Visvesvaraya Technological University (IN)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon