{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,24]],"date-time":"2026-06-24T16:04:58Z","timestamp":1782317098240,"version":"3.54.5"},"reference-count":53,"publisher":"MDPI AG","issue":"6","license":[{"start":{"date-parts":[[2025,6,12]],"date-time":"2025-06-12T00:00:00Z","timestamp":1749686400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.3390\/fi17060258","type":"journal-article","created":{"date-parts":[[2025,6,12]],"date-time":"2025-06-12T06:42:48Z","timestamp":1749710568000},"page":"258","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":20,"title":["Generative Adversarial and Transformer Network Synergy for Robust Intrusion Detection in IoT Environments"],"prefix":"10.3390","volume":"17","author":[{"given":"Pardis Sadatian","family":"Moghaddam","sequence":"first","affiliation":[{"name":"Department of Computer Science, Georgia State University, Atlanta, GA 30302, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-2801-9416","authenticated-orcid":false,"given":"Ali","family":"Vaziri","sequence":"additional","affiliation":[{"name":"Department of Systems and Enterprises, Stevens Institute of Technology, Hoboken, NJ 07030, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sarvenaz Sadat","family":"Khatami","sequence":"additional","affiliation":[{"name":"Department of Data Science Engineering, University of Houston, Houston, TX 77204, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2995-138X","authenticated-orcid":false,"given":"Francisco","family":"Hernando-Gallego","sequence":"additional","affiliation":[{"name":"Department of Computer Science, Escuela de Ingenier\u00eda Inform\u00e1tica de Segovia, Universidad de Valladolid, 40005 Segovia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8810-0695","authenticated-orcid":false,"given":"Diego","family":"Mart\u00edn","sequence":"additional","affiliation":[{"name":"Department of Computer Science, Escuela de Ingenier\u00eda Inform\u00e1tica de Segovia, Universidad de Valladolid, 40005 Segovia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2025,6,12]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"127017","DOI":"10.1016\/j.neucom.2023.127017","article-title":"A Review of IoT Applications in Healthcare","volume":"565","author":"Li","year":"2024","journal-title":"Neurocomputing"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Panduman, Y.Y.F., Funabiki, N., Fajrianti, E.D., Fang, S., and Sukaridhoto, S. (2024). A Survey of AI Techniques in IoT Applications with Use Case Investigations in the Smart Environmental Monitoring and Analytics in Real-Time IoT Platform. Information, 15.","DOI":"10.3390\/info15030153"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"5415","DOI":"10.1109\/TII.2023.3333842","article-title":"Secrecy Performance Analysis of RIS-Aided Smart Grid Communications","volume":"20","author":"Kaveh","year":"2024","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"50","DOI":"10.1007\/s10586-024-04711-0","article-title":"Securing Fog-Assisted IoT Smart Homes: A Federated Learning-Based Intrusion Detection Approach","volume":"28","author":"Bensaid","year":"2025","journal-title":"Clust. Comput."},{"key":"ref_5","first-page":"100607","article-title":"An Overview of Smart Agriculture Using Internet of Things (IoT) and Web Services","volume":"26","author":"Choudhary","year":"2025","journal-title":"Environ. Sustain. Indic."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"4535","DOI":"10.1109\/JSYST.2019.2963235","article-title":"A Lightweight Mutual Authentication for Smart Grid Neighborhood Area Network Communications Based on Physically Unclonable Function","volume":"14","author":"Kaveh","year":"2020","journal-title":"IEEE Syst. J."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Zikria, Y.B., Ali, R., Afzal, M.K., and Kim, S.W. (2021). Next-Generation Internet of Things (IoT): Opportunities, Challenges, and Solutions. Sensors, 21.","DOI":"10.3390\/s21041174"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"101228","DOI":"10.1016\/j.segan.2023.101228","article-title":"An Efficient Authentication Protocol for Smart Grid Communication Based on On-Chip-Error-Correcting Physical Unclonable Function","volume":"36","author":"Kaveh","year":"2023","journal-title":"Sustain. Energy Grids Netw."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"91357","DOI":"10.1109\/ACCESS.2024.3418995","article-title":"Internet of Things (IoT): Origin, Embedded Technologies, Smart Applications and Its Growth in the Last Decade","volume":"12","author":"Yalli","year":"2024","journal-title":"IEEE Access"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"2422","DOI":"10.1109\/TMC.2024.3494612","article-title":"EPUF: An Entropy-Derived Latency-Based DRAM Physical Unclonable Function for Lightweight Authentication in Internet of Things","volume":"24","author":"Najafi","year":"2025","journal-title":"IEEE Trans. Mob. Comput."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"57128","DOI":"10.1109\/ACCESS.2024.3382709","article-title":"A Survey on Security, Privacy, Trust, and Architectural Challenges in IoT Systems","volume":"12","author":"Adam","year":"2024","journal-title":"IEEE Access"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"2412","DOI":"10.1109\/LWC.2024.3416700","article-title":"Performance Analysis of FAS-Aided Backscatter Communications","volume":"13","author":"Ghadi","year":"2024","journal-title":"IEEE Wirel. Commun. Lett."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"104310","DOI":"10.1016\/j.cose.2024.104310","article-title":"Current Research on Internet of Things (IoT) Security Protocols: A Survey","volume":"151","author":"Mishra","year":"2025","journal-title":"Comput. Secur."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Dritsas, E., and Trigka, M. (2025). A Survey on Cybersecurity in IoT. Future Internet, 17.","DOI":"10.3390\/fi17010030"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"109944","DOI":"10.1016\/j.compeleceng.2024.109944","article-title":"A Hybrid Ant Lion Optimization Algorithm Based Lightweight Deep Learning Framework for Cyber Attack Detection in IoT Environment","volume":"122","author":"Gupta","year":"2025","journal-title":"Comput. Electr. Eng."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"279","DOI":"10.1109\/TIV.2023.3337898","article-title":"Performance Analysis of RIS\/STAR-IOS-Aided V2V NOMA\/OMA Communications over Composite Fading Channels","volume":"9","author":"Ghadi","year":"2024","journal-title":"IEEE Trans. Intell. Veh."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"100082","DOI":"10.1016\/j.csa.2024.100082","article-title":"A Survey on Intrusion Detection System in IoT Networks","volume":"3","author":"Rahman","year":"2025","journal-title":"Cyber Secur. Appl."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Kaveh, M., Rostami Ghadi, F., J\u00e4ntti, R., and Yan, Z. (2023). Secrecy Performance Analysis of Backscatter Communications with Side Information. Sensors, 23.","DOI":"10.3390\/s23208358"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Diana, L., Dini, P., and Paolini, D. (2025). Overview on Intrusion Detection Systems for Computers Networking Security. Computers, 14.","DOI":"10.3390\/computers14030087"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"112189","DOI":"10.1109\/ACCESS.2023.3318866","article-title":"A Novel Federated Edge Learning Approach for Detecting Cyberattacks in IoT Infrastructures","volume":"11","author":"Abbas","year":"2023","journal-title":"IEEE Access"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Wang, Y.C., Yng, Y.C., Chen, H.X., and Tseng, S.M. (2023). Network Anomaly Intrusion Detection Based on Deep Learning Approach. Sensors, 23.","DOI":"10.3390\/s23042171"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Ahmed, S.W., Kientz, F., and Kashef, R. (2023, January 18\u201320). A Modified Transformer Neural Network (MTNN) for Robust Intrusion Detection in IoT Networks. Proceedings of the 2023 International Telecommunications Conference (ITC-Egypt), Alexandria, Egypt.","DOI":"10.1109\/ITC-Egypt58155.2023.10206134"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"143608","DOI":"10.1109\/ACCESS.2021.3121998","article-title":"Network Anomaly Detection with Temporal Convolutional Network and U-Net Model","volume":"9","author":"Mezina","year":"2021","journal-title":"IEEE Access"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"2477","DOI":"10.1109\/TNSM.2024.3352586","article-title":"Reinforcement Learning Meets Network Intrusion Detection: A Transferable and Adaptable Framework for Anomaly Behavior Identification","volume":"21","author":"He","year":"2024","journal-title":"IEEE Trans. Netw. Serv. Manag."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"28","DOI":"10.55056\/jec.648","article-title":"A Long Short-Term Memory Based Approach for Detecting Cyber Attacks in IoT Using CIC-IoT2023 Dataset","volume":"3","author":"Jony","year":"2024","journal-title":"J. Edge Comput."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Jaradat, A.S., Nasayreh, A., Al-Na\u2019amneh, Q., Gharaibeh, H., and Al Mamlook, R.E. (2023, January 14\u201317). Genetic Optimization Techniques for Enhancing Web Attacks Classification in Machine Learning. Proceedings of the IEEE International Conference on Dependable, Autonomic & Secure Computing, Abu Dhabi, United Arab Emirates.","DOI":"10.1109\/DASC\/PiCom\/CBDCom\/Cy59711.2023.10361399"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Guo, G., Pan, X., Liu, H., Li, F., Pei, L., and Hu, K. (2023, January 8\u201311). An IoT Intrusion Detection System Based on TON IoT Network Dataset. Proceedings of the 2023 IEEE 13th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA.","DOI":"10.1109\/CCWC57344.2023.10099144"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Neto, E.C.P., Dadkhah, S., Ferreira, R., Zohourian, A., Lu, R., and Ghorbani, A.A. (2023). CICIoT2023: A Real-Time Dataset and Benchmark for Large-Scale Attacks in IoT Environment. Sensors, 23.","DOI":"10.20944\/preprints202305.0443.v1"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Tseng, S.M., Wang, Y.Q., and Wang, Y.C. (2024). Multi-Class Intrusion Detection Based on Transformer for IoT Networks Using CIC-IoT-2023 Dataset. Future Internet, 16.","DOI":"10.3390\/fi16080284"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Khatami, S.S., Shoeibi, M., Salehi, R., and Kaveh, M. (2025). Energy-Efficient and Secure Double RIS-Aided Wireless Sensor Networks: A QoS-Aware Fuzzy Deep Reinforcement Learning Approach. J. Sens. Actuator Netw., 14.","DOI":"10.3390\/jsan14010018"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"73468","DOI":"10.1109\/ACCESS.2025.3554083","article-title":"Intrusion Detection in IoT and IIoT: Comparing Lightweight Machine Learning Techniques Using TON_IoT, WUSTL-IIOT-2021, and EdgeIIoTset Datasets","volume":"13","author":"Ismail","year":"2025","journal-title":"IEEE Access"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"287","DOI":"10.1038\/s41592-024-02523-z","article-title":"Nucleotide Transformer: Building and Evaluating Robust Foundation Models for Human Genomics","volume":"22","author":"Gonzalez","year":"2025","journal-title":"Nat. Methods"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"112490","DOI":"10.1016\/j.buildenv.2024.112490","article-title":"Street Microclimate Prediction Based on Transformer Model and Street View Image in High-Density Urban Areas","volume":"269","author":"Ma","year":"2025","journal-title":"Build. Environ."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"124746","DOI":"10.1016\/j.apenergy.2024.124746","article-title":"Predictive Pretrained Transformer (PPT) for Real-Time Battery Health Diagnostics","volume":"377","author":"Zhao","year":"2025","journal-title":"Appl. Energy"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Zhang, X., Lin, M., Hong, Y., Xiao, H., Chen, C., and Chen, H. (2025). MSFT: A Multi-Scale Feature-Based Transformer Model for Arrhythmia Classification. Biomed. Signal Process. Control, 100.","DOI":"10.1016\/j.bspc.2024.106968"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Madan, S., Lentzen, M., Brandt, J., Rueckert, D., Hofmann-Apitius, M., and Fr\u00f6hlich, H. (2024). Transformer Models in Biomedicine. BMC Med. Inform. Decis. Mak., 24.","DOI":"10.1186\/s12911-024-02600-5"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"e1725","DOI":"10.1002\/wcms.1725","article-title":"Transformer Technology in Molecular Science","volume":"14","author":"Jiang","year":"2024","journal-title":"Wiley Interdiscip. Rev. Comput. Mol. Sci."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"110936","DOI":"10.1016\/j.ymssp.2023.110936","article-title":"Bayesian Variational Transformer: A Generalizable Model for Rotating Machinery Fault Diagnosis","volume":"207","author":"Xiao","year":"2024","journal-title":"Mech. Syst. Signal Process."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"118128","DOI":"10.1016\/j.eswa.2022.118128","article-title":"Stock Market Index Prediction Using Deep Transformer Model","volume":"208","author":"Wang","year":"2022","journal-title":"Expert Syst. Appl."},{"key":"ref_40","first-page":"881","article-title":"5DGWO-GAN: A Novel Five-Dimensional Gray Wolf Optimizer for Generative Adversarial Network-Enabled Intrusion Detection in IoT Systems","volume":"82","author":"Khatami","year":"2025","journal-title":"Comput. Mater. Contin."},{"key":"ref_41","first-page":"100004","article-title":"Generative Adversarial Network: An Overview of Theory and Applications","volume":"1","author":"Aggarwal","year":"2021","journal-title":"Int. J. Inf. Manag. Data Insights"},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"210","DOI":"10.1016\/j.jmapro.2025.02.053","article-title":"Generative Adversarial Networks (GAN) Model for Dynamically Adjusted Weld Pool Image toward Human-Based Model Predictive Control (MPC)","volume":"141","author":"Li","year":"2025","journal-title":"J. Manuf. Process."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"100501","DOI":"10.1016\/j.egyai.2025.100501","article-title":"Data Efficiency Assessment of Generative Adversarial Networks in Energy Applications","volume":"20","author":"Nabila","year":"2025","journal-title":"Energy AI"},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"062002","DOI":"10.1088\/1361-6501\/ad356d","article-title":"A Review: The Application of Generative Adversarial Network for Mechanical Fault Diagnosis","volume":"35","author":"Liao","year":"2024","journal-title":"Meas. Sci. Technol."},{"key":"ref_45","first-page":"992","article-title":"Deblurring Images via Deep Blind Residual Learning","volume":"27","author":"Pan","year":"2018","journal-title":"IEEE Trans. Image Process."},{"key":"ref_46","first-page":"2009","article-title":"Image Deraining Using a Conditional Generative Adversarial Network","volume":"43","author":"Zhang","year":"2021","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_47","unstructured":"Kupyn, O., Martyniuk, T., Wu, J., and Wang, Z. (November, January 27). DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better. Proceedings of the IEEE\/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea."},{"key":"ref_48","unstructured":"Zhang, X., Zhang, L., Dong, C.C., and Lin, L. (2020, January 13\u201319). Detail Enhanced Interactive Deraining Network Using Multi-Dimensional Supervision. Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"702","DOI":"10.1109\/TEVC.2008.919004","article-title":"Biogeography-Based Optimization","volume":"12","author":"Simon","year":"2008","journal-title":"IEEE Trans. Evol. Comput."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"127897","DOI":"10.1016\/j.neucom.2024.127897","article-title":"A Biogeography-Based Optimization Algorithm with Local Search for Large-Scale Heterogeneous Distributed Scheduling with Multiple Process Plans","volume":"595","author":"Zhang","year":"2024","journal-title":"Neurocomputing"},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"9715","DOI":"10.1007\/s11227-023-05047-z","article-title":"TDMBBO: A Novel Three-Dimensional Migration Model of Biogeography-Based Optimization (Case Study: Facility Planning and Benchmark Problems)","volume":"79","author":"Kaveh","year":"2023","journal-title":"J. Supercomput."},{"key":"ref_52","doi-asserted-by":"crossref","unstructured":"Gao, C., Li, T., Gao, Y., and Zhang, Z. (2024). A Comprehensive Multi-Strategy Enhanced Biogeography-Based Optimization Algorithm for High-Dimensional Optimization and Engineering Design Problems. Mathematics, 12.","DOI":"10.3390\/math12030435"},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"1593","DOI":"10.1007\/s42835-022-01056-9","article-title":"Biogeography Based Optimization Algorithm and Neural Network to Optimize Place and Size of Distributed Generating System in Electrical Distribution","volume":"17","author":"Suraya","year":"2022","journal-title":"J. Electr. Eng. Technol."}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/6\/258\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T17:50:41Z","timestamp":1760032241000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/6\/258"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,12]]},"references-count":53,"journal-issue":{"issue":"6","published-online":{"date-parts":[[2025,6]]}},"alternative-id":["fi17060258"],"URL":"https:\/\/doi.org\/10.3390\/fi17060258","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,12]]}}}