Enhanced cybersecurity threat detection using novel tri-metaheuristic loss functions in generative adversarial networks with adaptive attention preservation for network traffic augmentation
This paper proposes a tri-component loss function framework integrated within Generative Adversarial Networks for network traffic augmentation in cybersecurity threat detection. The framework combines nine differentiable loss components: feature importance preservation via attention-based weighting, distribution alignment via Wasserstein distance, gradient regularization via gradient penalty, adversarial discrimination via hinge loss, embedding clustering via triplet constraints, curriculum scheduling via progressive difficulty adjustment, perturbation-aware training via projected gradient descent, multi-scale consistency via wavelet transform, and diversity promotion via cosine similarity regularization. We clarify that these components employ established techniques, with our contribution lying in their systematic integration and domain-specific adaptation rather than fundamentally new algorithms. Energy-aware adaptive attention dynamically allocates computational resources based on threat likelihood, reducing training energy consumption by 40% (76.8 kWh versus 128.4 kWh baseline). Experimental evaluation across seven cybersecurity datasets (NSL-KDD, UNSW-NB15, CIC-IDS2017, CIC-IDS2018, Bot-IoT, CICDDOS2019, CSE-CIC-IDS2018) yielded 98.73% accuracy and 0.987 F1-score. Ablation analysis revealed that 49.4% of improvement stems from addressing class imbalance through augmentation, while 50.6% derives from the proposed loss combination, with 2.0% additional synergistic benefit. Cross-dataset transfer achieved 87.45–94.23% accuracy without retraining. Adversarial robustness evaluation of 95.67% accuracy under perturbation budget ε = 0.3. Limitations include poor infiltration attack detection (16.44–28.13% recall) and ground truth verification covering only 1.8% of deployment samples. Statistical significance was confirmed with p-values below 0.0001 and Cohen’s d exceeding 3.4. The framework provides evidence that systematic integration of established techniques with domain-specific adaptation can yield measurable improvements in cybersecurity applications under the evaluated conditions. Generalization to broader deployment contexts warrants further investigation.
Authors
- Mohamed Loey (ORCID: https://orcid.org/0000-0002-3849-4566)
- Mostafa Elbaz
- Heba M. Khalil
- Ahmed Elrefaiy
Institutions
- Kafrelsheikh University (EG)
- Zagazig University (EG)
- Benha University (EG)
- Egypt-Japan University of Science and Technology (EG)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-04-12
- DOI
- https://doi.org/10.1038/s41598-026-46375-3
- Primary Topic
- Software-Defined Networks and 5G
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Science and Technology Development Fund