Reconstruction-Error Augmentation of Deep Q-Network Intrusion Detectors Under Leave-One-Attack-Family-Out Evaluation
DOI:
https://doi.org/10.58564/IJCCN.2.4.2026.25Keywords:
Network intrusion detection, Unseen attacks, Autoencoder, Deep Q-network, Leave-one-family-out evaluationAbstract
Detectors trained on labeled network traffic may miss attack families that were absent from training. This study tests whether appending the reconstruction error of a normal-traffic autoencoder to the input of a reward-trained deep Q-network improves detection of withheld attack families. Two public benchmarks, UNSW-NB15 and NSL-KDD, were cleaned of duplicate and conflicting records and evaluated by leaving one attack family out at a time (9 and 4 families), with five training seeds and seven models, including a random forest and a multilayer perceptron. Decision thresholds were set on normal validation traffic at a one percent false alarm rate. Reconstruction error did not improve withheld-family recall: the mean paired difference was −0.008 on UNSW-NB15 (95% interval −0.060 to +0.048) and −0.002 on NSL-KDD. A multilayer perceptron given the same input exceeded the hybrid detector by 0.188 recall on UNSW-NB15, and a random forest exceeded it by 0.374 on NSL-KDD, although with more false alarms. Thresholds did not transfer to test data, with false alarm rates from 1.4% to 10.0%. Under this protocol, no consistent improvement from reconstruction error was observed, and the benchmarks approximate unseen attacks only.
References
[1] R. Sommer and V. Paxson, “Outside the closed world: On using machine learning for network intrusion detection,” in Proc. IEEE Symp. Secur. Privacy, Oakland, CA, USA, 2010, pp. 305-316, doi: 10.1109/SP.2010.25. [Online]. Available: https://doi.org/10.1109/SP.2010.25
[2] D. Arp, E. Quiring, F. Pendlebury, et al., “Dos and don’ts of machine learning in computer security,” in Proc. 31st USENIX Secur. Symp., Boston, MA, USA, 2022, pp. 3971-3988. [Online]. Available: https://www.usenix.org/conference/usenixsecurity22/presentation/arp
[3] N. Moustafa and J. Slay, “UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set),” in Proc. Mil. Commun. Inf. Syst. Conf., Canberra, Australia, 2015, pp. 1-6, doi: 10.1109/MilCIS.2015.7348942. [Online]. Available: https://doi.org/10.1109/MilCIS.2015.7348942
[4] M. Tavallaee, E. Bagheri, W. Lu, et al., “A detailed analysis of the KDD CUP 99 data set,” in Proc. IEEE Symp. Comput. Intell. Secur. Defense Appl., Ottawa, Canada, 2009, pp. 1-6, doi: 10.1109/CISDA.2009.5356528. [Online]. Available: https://doi.org/10.1109/CISDA.2009.5356528
[5] G. Pang, C. Shen, L. Cao, et al., “Deep learning for anomaly detection: A review,” ACM Comput. Surv., vol. 54, Art. no. 38, 2021, doi: 10.1145/3439950. [Online]. Available: https://doi.org/10.1145/3439950
[6] V. Mnih, K. Kavukcuoglu, D. Silver, et al., “Human-level control through deep reinforcement learning,” Nature, vol. 518, pp. 529-533, 2015, doi: 10.1038/nature14236. [Online]. Available: https://doi.org/10.1038/nature14236
[7] S. Yu, R. Zhai, Y. Shen, et al., “Deep Q-network-based open-set intrusion detection solution for industrial Internet of Things,” IEEE Internet Things J., vol. 11, pp. 12536-12550, 2024, doi: 10.1109/JIOT.2023.3333903. [Online]. Available: https://doi.org/10.1109/JIOT.2023.3333903
[8] S. Tiwari, N. D. Bastian, and G. Kul, “DQN-IDS: A deep reinforcement learning approach for open set-enabled intrusion detection,” in NDSS Symposium 2026 Workshop Proceedings, Internet Society, 2026. [Online]. Available: https://www.ndss-symposium.org/ndss-paper/auto-draft-729/
[9] N. Moustafa and J. Slay, “The evaluation of network anomaly detection systems: Statistical analysis of the UNSW-NB15 data set and the comparison with the KDD99 data set,” Inf. Secur. J.: Glob. Perspect., vol. 25, pp. 18-31, 2016, doi: 10.1080/19393555.2015.1125974. [Online]. Available: https://doi.org/10.1080/19393555.2015.1125974
[10] F. Pendlebury, F. Pierazzi, R. Jordaney, et al., “TESSERACT: Eliminating experimental bias in malware classification across space and time,” in Proc. 28th USENIX Secur. Symp., Santa Clara, CA, USA, 2019, pp. 729-746. [Online]. Available: https://www.usenix.org/conference/usenixsecurity19/presentation/pendlebury
[11] Y. Mirsky, T. Doitshman, Y. Elovici, et al., “Kitsune: An ensemble of autoencoders for online network intrusion detection,” in Proc. Netw. Distrib. Syst. Secur. Symp., San Diego, CA, USA, 2018, doi: 10.14722/ndss.2018.23204. [Online]. Available: https://doi.org/10.14722/ndss.2018.23204
[12] H. van Hasselt, A. Guez, and D. Silver, “Deep reinforcement learning with double Q-learning,” in Proc. 30th AAAI Conf. Artif. Intell., Phoenix, AZ, USA, 2016, pp. 2094-2100, doi: 10.1609/aaai.v30i1.10295. [Online]. Available: https://doi.org/10.1609/aaai.v30i1.10295
[13] M. Lopez-Martin, B. Carro, and A. Sanchez-Esguevillas, “Application of deep reinforcement learning to intrusion detection for supervised problems,” Expert Syst. Appl., vol. 141, Art. no. 112963, 2020, doi: 10.1016/j.eswa.2019.112963. [Online]. Available: https://doi.org/10.1016/j.eswa.2019.112963
[14] R. Shwartz-Ziv and A. Armon, “Tabular data: Deep learning is not all you need,” Inf. Fusion, vol. 81, pp. 84-90, 2022, doi: 10.1016/j.inffus.2021.11.011. [Online]. Available: https://doi.org/10.1016/j.inffus.2021.11.011
[15] L. Grinsztajn, E. Oyallon, and G. Varoquaux, “Why do tree-based models still outperform deep learning on tabular data?,” in Adv. Neural Inf. Process. Syst., vol. 35, 2022, pp. 507-520. [Online]. Available: https://arxiv.org/abs/2207.08815
[16] R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed. Cambridge, MA, USA: MIT Press, 2018.
[17] UNSW Canberra, “The UNSW-NB15 dataset,” dataset source page. [Online]. Available: https://research.unsw.edu.au/projects/unsw-nb15-dataset (accessed Oct. 10, 2026).
[18] University of New Brunswick, Canadian Institute for Cybersecurity, “NSL-KDD dataset.” [Online]. Available: https://www.unb.ca/cic/datasets/nsl.html (accessed Oct. 10, 2026).
[19] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in Proc. Int. Conf. Learn. Represent., San Diego, CA, USA, 2015. [Online]. Available: https://arxiv.org/abs/1412.6980
[20] L. Breiman, “Random forests,” Mach. Learn., vol. 45, pp. 5-32, 2001, doi: 10.1023/A:1010933404324. [Online]. Available: https://doi.org/10.1023/A:1010933404324
[21] T. Saito and M. Rehmsmeier, “The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets,” PLoS ONE, vol. 10, Art. no. e0118432, 2015, doi: 10.1371/journal.pone.0118432. [Online]. Available: https://doi.org/10.1371/journal.pone.0118432
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Ahmed Amer Rashid

This work is licensed under a Creative Commons Attribution 4.0 International License.