Open Access iconOpen Access

ARTICLE

An Overall Optimization Model Using Metaheuristic Algorithms for the CNN-Based IoT Attack Detection Problem

Le Thi Hong Van1,*, Le Duc Thuan1, Pham Van Huong1, Nguyen Hieu Minh2

1 Faculty of Information Technology, Academy of Cryptography Techniques, Hanoi, 100000, Vietnam
2 Deputy Director, Academy of Cryptography Techniques, Hanoi, 100000, Vietnam

* Corresponding Author: Le Thi Hong Van. Email: email

(This article belongs to the Special Issue: Advances in Machine Learning and Artificial Intelligence for Intrusion Detection Systems)

Computers, Materials & Continua 2026, 87(1), 81 https://doi.org/10.32604/cmc.2025.075027

Abstract

Optimizing convolutional neural networks (CNNs) for IoT attack detection remains a critical yet challenging task due to the need to balance multiple performance metrics beyond mere accuracy. This study proposes a unified and flexible optimization framework that leverages metaheuristic algorithms to automatically optimize CNN configurations for IoT attack detection. Unlike conventional single-objective approaches, the proposed method formulates a global multi-objective fitness function that integrates accuracy, precision, recall, and model size (speed/model complexity penalty) with adjustable weights. This design enables both single-objective and weighted-sum multi-objective optimization, allowing adaptive selection of optimal CNN configurations for diverse deployment requirements. Two representative metaheuristic algorithms, Genetic Algorithm (GA) and Particle Swarm Optimization (PSO), are employed to optimize CNN hyperparameters and structure. At each generation/iteration, the best configuration is selected as the most balanced solution across optimization objectives, i.e., the one achieving the maximum value of the global objective function. Experimental validation on two benchmark datasets, Edge-IIoT and CIC-IoT2023, demonstrates that the proposed GA- and PSO-based models significantly enhance detection accuracy (94.8%–98.3%) and generalization compared with manually tuned CNN configurations, while maintaining compact architectures. The results confirm that the multi-objective framework effectively balances predictive performance and computational efficiency. This work establishes a generalizable and adaptive optimization strategy for deep learning-based IoT attack detection and provides a foundation for future hybrid metaheuristic extensions in broader IoT security applications.

Keywords

Genetic algorithm (GA); particle swarm optimization (PSO); multi-objective optimization; convolutional neural network—CNN; IoT attack detection; metaheuristic optimization; CNN configuration

Cite This Article

APA Style
Van, L.T.H., Thuan, L.D., Huong, P.V., Minh, N.H. (2026). An Overall Optimization Model Using Metaheuristic Algorithms for the CNN-Based IoT Attack Detection Problem. Computers, Materials & Continua, 87(1), 81. https://doi.org/10.32604/cmc.2025.075027
Vancouver Style
Van LTH, Thuan LD, Huong PV, Minh NH. An Overall Optimization Model Using Metaheuristic Algorithms for the CNN-Based IoT Attack Detection Problem. Comput Mater Contin. 2026;87(1):81. https://doi.org/10.32604/cmc.2025.075027
IEEE Style
L. T. H. Van, L. D. Thuan, P. V. Huong, and N. H. Minh, “An Overall Optimization Model Using Metaheuristic Algorithms for the CNN-Based IoT Attack Detection Problem,” Comput. Mater. Contin., vol. 87, no. 1, pp. 81, 2026. https://doi.org/10.32604/cmc.2025.075027



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 612

    View

  • 307

    Download

  • 0

    Like

Share Link