IDEAS home Printed from https://ideas.repec.org/a/gam/jftint/v17y2025i6p258-d1677348.html
   My bibliography  Save this article

Generative Adversarial and Transformer Network Synergy for Robust Intrusion Detection in IoT Environments

Author

Listed:
  • Pardis Sadatian Moghaddam

    (Department of Computer Science, Georgia State University, Atlanta, GA 30302, USA)

  • Ali Vaziri

    (Department of Systems and Enterprises, Stevens Institute of Technology, Hoboken, NJ 07030, USA)

  • Sarvenaz Sadat Khatami

    (Department of Data Science Engineering, University of Houston, Houston, TX 77204, USA)

  • Francisco Hernando-Gallego

    (Department of Computer Science, Escuela de Ingeniería Informática de Segovia, Universidad de Valladolid, 40005 Segovia, Spain)

  • Diego Martín

    (Department of Computer Science, Escuela de Ingeniería Informática de Segovia, Universidad de Valladolid, 40005 Segovia, Spain)

Abstract

Intrusion detection in the Internet of Things (IoT) environments is increasingly critical due to the rapid proliferation of connected devices and the growing sophistication of cyber threats. Traditional detection methods often fall short in identifying multi-class attacks, particularly in the presence of high-dimensional and imbalanced IoT traffic. To address these challenges, this paper proposes a novel hybrid intrusion detection framework that integrates transformer networks with generative adversarial networks (GANs), aiming to enhance both detection accuracy and robustness. In the proposed architecture, the transformer component effectively models temporal and contextual dependencies within traffic sequences, while the GAN component generates synthetic data to improve feature diversity and mitigate class imbalance. Additionally, an improved non-dominated sorting biogeography-based optimization (INSBBO) algorithm is employed to fine-tune the hyper-parameters of the hybrid model, further enhancing learning stability and detection performance. The model is trained and evaluated on the CIC-IoT-2023 and TON_IoT dataset, which contains a diverse range of real-world IoT traffic and attack scenarios. Experimental results show that our hybrid framework consistently outperforms baseline methods, in both binary and multi-class intrusion detection tasks. The transformer-GAN achieves a multi-class classification accuracy of 99.67%, with an F1-score of 99.61%, and an area under the curve (AUC) of 99.80% in the CIC-IoT-2023 dataset, and achieves 98.84% accuracy, 98.79% F1-score, and 99.12% AUC on the TON_IoT dataset. The superiority of the proposed model was further validated through statistically significant t -test results, lower execution time compared to baselines, and minimal standard deviation across runs, indicating both efficiency and stability. The proposed framework offers a promising approach for enhancing the security and resilience of next-generation IoT systems.

Suggested Citation

  • Pardis Sadatian Moghaddam & Ali Vaziri & Sarvenaz Sadat Khatami & Francisco Hernando-Gallego & Diego Martín, 2025. "Generative Adversarial and Transformer Network Synergy for Robust Intrusion Detection in IoT Environments," Future Internet, MDPI, vol. 17(6), pages 1-36, June.
  • Handle: RePEc:gam:jftint:v:17:y:2025:i:6:p:258-:d:1677348
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1999-5903/17/6/258/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1999-5903/17/6/258/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jftint:v:17:y:2025:i:6:p:258-:d:1677348. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.