Next Article in Journal
Experimental Investigation of Cavity Flame Characteristics for Four-Orifice Fuel Injection at Variable Axial Locations in a Ma 1.6 Supersonic Combustor
Previous Article in Journal
Lipid and Apolipoprotein Profiles in Pre- and Postmenopausal Breast Cancer Patients with and Without Neoadjuvant Chemotherapy Exposure: A Cross-Sectional Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Transformer–DDQN-Based Explainable and Active Intrusion Detection Architecture for Network Traffic Analysis

Department of Computer Engineering, National Defence University, Istanbul 34149, Türkiye
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(12), 5912; https://doi.org/10.3390/app16125912
Submission received: 10 May 2026 / Revised: 3 June 2026 / Accepted: 5 June 2026 / Published: 11 June 2026
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

This study proposes a novel intrusion detection and response architecture that formulates network traffic analysis as a sequential decision-making problem rather than a static classification task. The architecture integrates a Transformer Encoder for temporal feature extraction with a Dueling Double Deep Q-Network (DDQN) to enable autonomous and risk-aware security decisions. Network flows are modeled within a Markov Decision Process, where the agent learns an optimal policy over a hierarchical action space consisting of IGNORE, LOG, ESCALATE, and BLOCK actions. To evaluate generalization capability, a transfer learning-based cross-domain adaptation strategy was employed. The CICIDS2018 and CICIoT2023 datasets were re-partitioned using a stratified 70/15/15 train/validation/test split. The proposed model achieved high detection performance on these datasets with F1-scores of 99.48% and 99.13%, respectively. After transfer learning to the AWID3 dataset, the model preserved strong generalization capability with F1-scores of 96.76% and 96.61%, demonstrating its robustness across wired, IoT, and wireless network environments. A risk-aware reward function is designed to balance detection accuracy and operational cost, while Integrated Gradients-based explainability is incorporated to analyze decision behavior. Experimental results further show that the proposed Transformer–DDQN framework achieves more stable learning, lower optimization loss, and more consistent action policies compared to alternative reinforcement learning-based approaches. The model operates with high computational efficiency while maintaining real-time processing capability in high-throughput network environments.
Keywords: intrusion detection system; transformer encoder; transfer learning; cross-domain adaptation; dueling DDQN; explainable AI intrusion detection system; transformer encoder; transfer learning; cross-domain adaptation; dueling DDQN; explainable AI

Share and Cite

MDPI and ACS Style

Okutan Kara, A.; Boyacı, A. Transformer–DDQN-Based Explainable and Active Intrusion Detection Architecture for Network Traffic Analysis. Appl. Sci. 2026, 16, 5912. https://doi.org/10.3390/app16125912

AMA Style

Okutan Kara A, Boyacı A. Transformer–DDQN-Based Explainable and Active Intrusion Detection Architecture for Network Traffic Analysis. Applied Sciences. 2026; 16(12):5912. https://doi.org/10.3390/app16125912

Chicago/Turabian Style

Okutan Kara, Ayşe, and Aytuğ Boyacı. 2026. "Transformer–DDQN-Based Explainable and Active Intrusion Detection Architecture for Network Traffic Analysis" Applied Sciences 16, no. 12: 5912. https://doi.org/10.3390/app16125912

APA Style

Okutan Kara, A., & Boyacı, A. (2026). Transformer–DDQN-Based Explainable and Active Intrusion Detection Architecture for Network Traffic Analysis. Applied Sciences, 16(12), 5912. https://doi.org/10.3390/app16125912

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop