CNN Hyperparameter Optimization for Image Classification Using Genetic Algorithm: A Simulation Study
Keywords:
algoritma genetika; hyperparameter; CNN; klasifikasi citra; optimasi metaheuristikAbstract
Manual determination of Convolutional Neural Network (CNN) hyperparameters is a time-consuming, error-prone, and non-scalable process for high-dimensional search spaces. Genetic Algorithms (GAs) offer a promising global search approach to automate this process, yet a systematic comparison of GAs with other methods—grid search, random search, and Bayesian optimization in the context of image classification remains limited. This study aims to analyze and compare the performance of four CNN hyperparameter optimization methods through a literature-based simulation study covering 2022–2026. The aspects compared include final classification accuracy, convergence patterns, and computational efficiency. The synthesis shows that GAs consistently achieve higher accuracy than grid search and random search; a hybrid GA-PSO approach reaches 94.47% accuracy on CIFAR-10, surpassing manually designed architectures and single evolutionary methods. Bayesian optimization offers competitive convergence speed but is susceptible in high-dimensional hyperparameter spaces. GAs excel in global search-space exploration and can avoid premature convergence through selection, crossover, and mutation mechanisms. This study concludes that GAs are an effective and flexible method for CNN hyperparameter optimization, especially when the search space is complex and fitness evaluation is computationally expensive.
References
Liu, Y., et al. (2025). Automatic design of CNN architecture based on genetic algorithm and particle swarm optimization. Evolving Systems. https://doi.org/10.1007/s12530-025-09738-1
Somani, Z., & Thangavelu, S. (2024). Hyperparameters' optimization of convolutional neural network using diversity-guided genetic algorithms for image classification. In Advances in Data-Driven Computing and Intelligent Systems (ADCIS 2023), LNNS 890, pp. 295–306. Springer. https://doi.org/10.1007/978-981-99-9531-8_24
Ensemble genetic and CNN authors. (2025). Ensemble genetic and CNN model-based image classification by enhancing hyperparameter tuning. Scientific Reports. https://doi.org/10.1038/s41598-024-76178-3
Wojciuk, M., Swiderska-Chadaj, Z., Siwek, K., & Gertych, A. (2024). Improving classification accuracy of fine-tuned CNN models: Impact of hyperparameter optimization. Heliyon, 10(5), e26586. https://doi.org/10.1016/j.heliyon.2024.e26586
Chihaoui, M., Dhibi, M., & Ferchichi, A. (2024). Optimization of convolutional neural network and VGG-16 using genetic algorithms for pneumonia detection. Frontiers in Medicine. https://doi.org/10.3389/fmed.2024.1482862
Liashchynskyi, P., & Liashchynskyi, P. (2019). Grid search, random search, genetic algorithm: A big comparison for NAS. arXiv preprint arXiv:1912.06059. (Cited as the basis for CIFAR-10 comparisons in 2022+ studies.)
Munsarif, M., Sam'an, M., & Fahrezi, A. (2024). Convolution neural network hyperparameter optimization using genetic algorithm for image classification. Journal of Informatics and Telecommunication Engineering.
Alibarahim, H., & Ludwig, S. A. (2021). Hyperparameter optimization: Comparing genetic algorithm against grid search and Bayesian optimization. In IEEE Congress on Evolutionary Computation (CEC). (Cited in 2022–2024 studies.)
Non-Dominated Sorted GA authors. (2023). An optimization approach for convolutional neural network using non-dominated sorted genetic algorithm-II. Computers, Materials & Continua, 74(3), 5641–5661. https://doi.org/10.32604/cmc.2023.033733
Mishra, V., & Kane, L. (2023). A survey of designing convolutional neural network using evolutionary algorithms. Artificial Intelligence Review, 56(6), 5095–5132. https://doi.org/10.1007/s10462-022-10303-4
Brain tumor optimization authors. (2024). Enhancing brain tumor diagnosis: An optimized CNN hyperparameter model for improved accuracy and reliability. PMC, 11041936. https://doi.org/10.3389/fonc.2024.1362717
Jordan, K. (2024). 94% on CIFAR-10 in 3.29 seconds on a single GPU. arXiv preprint arXiv:2404.00498.
Residual network authors. (2022). Optimizing a deep residual neural network with genetic algorithm for acute lymphoblastic leukemia classification. PMC, 9156643.
Published
Issue
Section
License
Copyright (c) 2026 Syawal Reynaldi, Okta Veza, Sherly Agustini (Penulis)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.