BECT : A Block-Embedded ConvNeXt Transformer for robust intrusion detection using adversarial self-paced learning
Majid A. Jahshmajid.abduljabar@phd.tabrizu.ac.irDepartment of Computer EngineeringFaculty of Electrical & Computer EngineeringUniversity of TabrizTabriz, Iran0009-0005-9774-7681View full profile → , *Mina Z. LighvanCorresponding authormzolfy@tabrizu.ac.irDepartment of Computer EngineeringFaculty of Electrical & Computer EngineeringUniversity of TabrizTabriz, Iran0000-0002-4555-597XView full profile → , Seyed A. Mortazavisa.mortezavi@tabrizu.ac.irDepartment of Computer EngineeringFaculty of Electrical & Computer EngineeringUniversity of TabrizTabriz, Iran0000-0002-3391-3290View full profile →
* Corresponding author · click or hover a name for details
- Received:
- 01 Jun 2026
- Published Online:
- 27 Nov 2026
- Article type:
- Research Article
- Language:
- EN
- Article no.:
- JIOS-2431
Abstract
Block-Embedded ConvNeXt Transformer (BECT) addresses the growing challenge of detecting sophisticated cyber-attacks in dynamic network environments by jointly modeling fine-grained traffic content and high-level flow context. In this work, raw network packets in pcap format are chronologically ordered, grouped into flows, normalized to a fixed length, and reshaped into image-like matrices that preserve both byte sequences and structural dependencies. These flow images are then processed by a hybrid backbone that embeds ConvNeXt-style convolutional blocks and window-based transformer attention within each block to capture local spatial patterns and long-range temporal relationships in traffic data. Robustness and training stability are further enhanced by an adversarial self-paced learning regime that combines projected gradient descent–generated adversarial examples with a curriculum-like schedule that gradually shifts focus from easy to harder samples. Extensive experiments on chronologically split traffic demonstrate that BECT achieves strong detection performance under benign conditions and maintains high resilience against adversarial evasion, while ablation studies confirm the complementary benefits of window-based attention and adversarial self-paced training over purely convolutional, purely transformer, or standard training baselines. Overall, the proposed framework provides an effective and principled solution for robust intrusion detection in complex and adversarial network settings.
Keywords
Subject Classifications
References
[1] P. Wasnik and N. Chavhan, “Designing intelligent intrusion detection system using deep learning,” in Proc. 14th Int. Conf. Comput. Commun. Netw. Technol. (ICCCNT), pp. 1–9 (2023).
[2] S. Al-Emadi, A. Al-Mohannadi, and F. Al-Senaid, “Using deep learning techniques for network intrusion detection,” in Proc. IEEE Int. Conf. Informat., IoT, Enabling Technol. (ICIoT), pp. 171–176 (2020).
[3] P. Chellammal, S. K. Malarchelvi, K. Reka, and G. Raja, “Fast and effective intrusion detection using multi-layered deep learning networks,” Int. J. Web Services Res., vol. 19, no. 1, pp. 1–16 (2022).
[4] A. R. Khan, M. Kashif, R. H. Jhaveri, R. Raut, T. Saba, and S. A. Bahaj, “Deep learning for intrusion detection and security of Internet of Things (IoT): Current analysis, challenges, and possible solutions,” Secur. Commun. Netw., vol. 2022, pp. 1–23 (2022).
[5] A. Awajan, “A novel deep learning-based intrusion detection system for IoT networks,” Computers, vol. 12, no. 2, Art. no. 34 (2023).
[6] M. A. Agalit and Y. Idrissi Khamlichi, “Optimization of intrusion detection with deep learning: A study based on the KDD Cup 99 database,” Int. J. Saf. Secur. Eng., vol. 14, no. 4, pp. 1029–1038 (2024), doi: 10.18280/ijsse.140402.
[7] J. Jose and D. V. Jose, “Deep learning algorithms for intrusion detection systems in Internet of Things using CIC-IDS2017 dataset,” Int. J. Electr. Comput. Eng., vol. 13, no. 1, pp. 1134–1141 (2023).
[8] P. Ananthi, K. Nirmaladevi, and N. Kumar, “Intrusion detection mechanism using deep learning,” in Proc. Int. Conf. IoT Based Control Netw. Intell. Syst. (ICICNIS), pp. 188–194 (2024).
[9] A. Odeh and A. Abu Taleb, “Ensemble-based deep learning models for enhancing IoT intrusion detection,” Appl. Sci., vol. 13, no. 21, Art. no. 11985 (2023).
[10] P. Naresh, P. Srinath, K. Akshit, M. S. S. Raju, and P. VenkataTeja, “Decoding network anomalies using supervised machine learning and deep learning approaches,” in Proc. 2nd Int. Conf. Autom., Comput. Renewable Syst. (ICACRS), pp. 1598–1603 (2023).
[11] R. Jablaoui and N. Liouane, “An effective deep CNN-LSTM based intrusion detection system for network security,” in Proc. Int. Conf. Control, Autom. Diagnosis (ICCAD), pp. 1–6 (2024).
[12] B. AlOmar, Z. Trabelsi, and F. Saidi, “Attention-based deep learning modelling for intrusion detection,” in Proc. Eur. Conf. Cyber Warfare Secur. (ECCWS) (2023).
[13] P. Shrivastava and R. Yadav, “Deep learning approach for intelligent intrusion detection system,” SSRN Electron. J. (2023).
[14] N. Yadav, S. Pande, A. Khamparia, and D. Gupta, “Intrusion detection system on IoT with 5G network using deep learning,” Wireless Commun. Mobile Comput., vol. 2022, pp. 1–11 (2022).
[15] V. Hnamte and J. Hussain, “Dependable intrusion detection system using deep convolutional neural network: A novel framework and performance evaluation approach,” Telematics Informat. Rep., vol. 11, Art. no. 100077 (2023).
[16] T. Pardeshi, D. Vekariya, and A. Gandhi, “Exploring the synergy of GAN and CNN models for robust intrusion detection in cyber security,” in Proc. 3rd Int. Conf. Innov. Mech. Ind. Appl. (ICIMIA), pp. 1470–1475 (2023).
[17] V. Takale, A. Patil, A. Lonikar, A. Shinde, and V. Rupnar, “SecureNet: Network intrusion detection using machine learning and deep learning techniques,” Int. J. Res. Appl. Sci. Eng. Technol., vol. 12, no. 4 (Apr. 2024).
[18] S. L. Jacob and P. S. Habibullah, “A systematic analysis and review on intrusion detection systems using machine learning and deep learning algorithms,” J. Comput. Cogn. Eng., vol. 4, no. 2, pp. 108–120 (2025).
[19] M. Bhavsar, K. Roy, J. Kelly, and O. Olusola, “Anomaly-based intrusion detection system for IoT application,” Discover Internet Things, vol. 3, no. 1, Art. no. 5 (2023).
[20] B. Madhu, M. V. G. Chari, R. Vankdothu, A. K. Silivery, and V. Aerranagula, “Intrusion detection models for IoT networks via deep learning approaches,” Measurement: Sensors, vol. 25, Art. no. 100641 (2023).
[21] P. B. Jadhav, “Intrusion detection using IoT with deep learning,” IJSAT—Int. J. Sci. Technol., vol. 16, no. 3 (2025).
[22] A. A. Yılmaz, “A novel deep learning-based framework with particle swarm optimisation for intrusion detection in computer networks,” PLoS ONE, vol. 20, no. 2 (2025).
[23] Y. Zeng, “CSAGC-IDS: A dual-module deep learning network intrusion detection model for complex and imbalanced data,” arXiv: 2505.14027 (2025).
[24] A. A. A. Mohammed, “Improving intrusion detection systems by using deep learning methods on time series data,” Eng. Technol. Appl. Sci. Res., vol. 15, no. 1, pp. 19267–19272 (2025).
[25] W. Wang, M. Zhu, X. Zeng, X. Ye, and Y. Sheng, “Malware traffic classification using convolutional neural network for representation learning,” in Proc. Int. Conf. Inf. Netw. (ICOIN), pp. 712–717 (2017).
[26] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby, “An image is worth 16 × 16 words: Transformers for image recognition at scale,” in Proc. Int. Conf. Learn. Represent. (ICLR), (2021).
[27] Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, and S. Xie, “A ConvNet for the 2020s,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), pp. 11976–11986 (2022).
[28] Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo, “Swin Transformer: Hierarchical vision transformer using shifted windows,” in Proc. IEEE/CVF Int. Conf. Comput. Vis. (ICCV), pp. 10012–10022 (2021).
[29] A. Madry, A. Makelov, L. Schmidt, D. Tsipras, and A. Vladu, “Towards deep learning models resistant to adversarial attacks,” in Proc. Int. Conf. Learn. Represent. (ICLR), (2018).
[30] M. P. Kumar, B. Packer, and D. Koller, “Self-paced learning for latent variable models,” in Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 23, pp. 1189–1197 (2010).
[31] Y. Bengio, J. Louradour, R. Collobert, and J. Weston, “Curriculum learning,” in Proc. 26th Int. Conf. Mach. Learn. (ICML), pp. 41–48 (2009).
[32] I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” in Proc. 4th Int. Conf. Inf. Syst. Secur. Privacy (ICISSP), pp. 108–116 (2018).
[33] A. B. Kathole, K. Vhatkar, G. Dharmale, S. Chiwhane, V. V. Kimbahune, and A. Goyal, “A novel approach to IoT security for intrusion detection system using ensemble network and heuristic-assisted feature fusion,” J. Discrete Math. Sci. Cryptogr., vol. 27, no. 7, pp. 2207–2217 (2024), doi: 10.47974/JDMSC-2092.
[34] J. S. Nixon, S. K. Gorva, S. Solanki, D. K. J. B. Saini, S. N. Prajwalasimha, and P. Tiwari, “Privacy-preserving federated learning for cyber threat intelligence in industrial systems with blockchain security,” J. Inf. Optim. Sci., pp. 1–10 (2026), doi: 10.47974/JIOS-2203.




