Swarm Intelligence Approach for Optimizing Neural Network Architectures in Medical Data Classification

Main Article Content

Maher Al-Asaady
Teh Noranis Mohd Aris
Nurfadhlina Sharef
Hazlina Hamdan

Abstract

The capability of an Artificial Neural Network (ANN) to achieve accurate classification outcomes depends heavily on its architectural design, particularly the number of hidden layers, nodes, and other hyperparameters. Selecting an optimal architecture remains a crucial yet challenging task for improving network accuracy, especially in medical informatics, where reliability is essential. This paper introduces a novel model, MRFO-MLP, which integrates the Manta Ray Foraging Optimization (MRFO) algorithm with a Multi-layer Perceptron (MLP). MRFO is a swarm-intelligence metaheuristic inspired by the cooperative foraging behaviour of manta rays and is employed to explore potential MLP configurations within the solution space. In the MRFO-MLP model, each candidate solution is represented as a binary vector, which reduces both computational time and implementation complexity. Furthermore, a customised fitness function is designed to evaluate candidate architectures by simultaneously considering network complexity and generalisation error, thereby mitigating the risk of overfitting. The proposed model is evaluated using five medical datasets from the UCI repository. Its performance is compared with several optimisation algorithms, including the Genetic Algorithm (GA), Particle Swarm Optimisation (PSO), and traditional machine learning classifiers. Experimental results demonstrate that MRFO-MLP produces efficient and accurate MLP architectures, achieving the best performance on three datasets and the second-best performance on another, highlighting its competitive effectiveness for medical data classification tasks.

Article Details

How to Cite
Al-Asaady, M., Mohd Aris, T. N., Sharef, N., & Hamdan, H. (2026). Swarm Intelligence Approach for Optimizing Neural Network Architectures in Medical Data Classification. Journal of Studies in Science and Engineering, 6(1), 321–346. https://doi.org/10.53898/josse2026624
Section
Research Articles

References

S. S. Haykin, Neural Networks: A Comprehensive Foundation, 2nd ed. Upper Saddle River, NJ, USA: Prentice Hall, 1999.

M. T. Alasaady, T. N. Mohd Aris, N. Mohd Sharef, and H. Hamdan, "A proposed approach for diabetes diagnosis using neuro-fuzzy technique," Bulletin of Electrical Engineering and Informatics, vol. 11, no. 6, pp. 3590-3597, 2022, doi: https://doi.org/10.11591/eei.v11i6.4269.

P. Bansal, S. Gupta, S. Kumar, S. Sharma, and S. Sharma, "MLP-LOA: a metaheuristic approach to design an optimal multi-layer perceptron," Soft Computing, vol. 23, no. 23, pp. 12331-12345, 2019, doi: https://doi.org/10.1007/s00500-019-03773-2.

H. T. Ünal and F. Başçiftçi, "Evolutionary design of neural network architectures: a review of three decades of research," Artificial Intelligence Review, vol. 55, no. 3, pp. 1723-1802, 2022, doi: https://doi.org/10.1007/s10462-021-10049-5.

M. T. Al-Asaady, T. N. Mohd Aris, N. Mohd Sharef, and H. Hamdan, "XCOA-MLP: Extended Coyote Optimization Algorithm for Training Neural Networks in Medical Data Classification," International Journal of Intelligent Engineering and Systems, vol. 18, no. 11, pp. 746-762, 2025, doi: https://doi.org/10.22266/ijies2025.1231.46.

L. Yang and A. Shami, "On hyperparameter optimization of machine learning algorithms: Theory and practice," Neurocomputing, vol. 415, pp. 295-316, 2020, doi: https://doi.org/10.1016/j.neucom.2020.07.061.

R. Andonie, "Hyperparameter optimization in learning systems," Journal of Membrane Computing, vol. 1, no. 4, pp. 279-291, 2019, doi: https://doi.org/10.1007/s41965-019-00023-0.

B. A. S. Emambocus, M. B. Jasser, and A. Amphawan, "A survey on the optimization of artificial neural networks using swarm intelligence algorithms," IEEE Access, vol. 11, pp. 1280-1294, 2023, doi: https://doi.org/10.1109/ACCESS.2022.3233596.

M. T. Al-Asaady, T. N. Mohd Aris, N. Mohd Sharef, and H. Hamdan, "Recent advances on meta-heuristic algorithms for training multilayer perceptron neural network," JOIV: International Journal on Informatics Visualization, vol. 9, no. 2, pp. 658-673, 2025, doi: https://doi.org/10.62527/joiv.9.2.3109.

F. Z. El-Hassani, Y. Ghanou, and K. Haddouch, "A novel model for optimizing multilayer perceptron neural network architecture based on genetic algorithm method," in Artificial Intelligence and Industrial Applications, vol. 772, (Lecture Notes in Networks and Systems. Cham, Switzerland: Springer, 2023, pp. 366-380, doi: https://doi.org/10.1007/978-3-031-43520-1_31

M. N. Alam, A. Sallem, P. Pereira, B. Bachir, and N. Masmoudi, "Optimal artificial neural network using particle swarm optimization," 2023, doi: https://doi.org/10.1051/e3sconf/202346900019

O. Altay and E. V. Altay, "A novel hybrid multi-layer perceptron neural network with improved grey wolf optimizer," Neural Computing and Applications, vol. 35, no. 1, pp. 529-556, 2023, doi: https://doi.org/10.1007/s00521-022-07775-4.

F. Anka, F. S. Gharehchopogh, G. G. Tejani, and S. J. Mousavirad, "Advances in Mountain Gazelle Optimizer: A comprehensive study on its classification and applications," International Journal of Computational Intelligence Systems, vol. 18, no. 1, p. 247, 2025, doi: https://doi.org/10.1007/s44196-025-00968-4.

F. Anka, N. Agaoglu, S. Nematzadeh, M. Torkamanian-afshar, and F. S. Gharehchopogh, "Advances in Artificial Rabbits Optimization: A comprehensive review," Archives of Computational Methods in Engineering, vol. 32, no. 4, pp. 2113-2148, 2025, doi: https://doi.org/10.1007/s11831-024-10202-7.

M. T. Al-Asaady, T. N. Mohd Aris, N. Mohd Sharef, and H. Hamdan, "COA-MLP: Training neural networks using the Coyote Optimization Algorithm for medical data classification," presented at the 2025 7th International Conference on Interdisciplinary Computer Science and Engineering (ICICSE), Kuala Lumpur, Malaysia, 2025. [Online]. Available: https://doi.org/10.1109/ICICSE67247.2025.11390755

F. Anka and N. Aghayev, "Advances in Sand Cat Swarm Optimization: A comprehensive study," Archives of Computational Methods in Engineering, vol. 32, no. 5, pp. 2669-2712, 2025, doi: https://doi.org/10.1007/s11831-024-10217-0.

F. Anka, "A multi-strategy chimp optimization algorithm for solving global and constraint engineering problems," Knowledge and Information Systems, vol. 67, no. 8, pp. 6753-6802, 2025, doi: https://doi.org/10.1007/s10115-025-02422-5.

M. F. Şahin and F. Anka, "Metaheuristics role in image processing and computer vision applications: a comprehensive review," Cluster Computing, vol. 28, no. 13, p. 871, 2025, doi: https://doi.org/10.1007/s10586-025-05610-8.

F. Anka, "A novel hybrid metaheuristic method for efficient decentralised IoT network layouts," Internet of Things, vol. 32, p. 101612, 2025, doi: https://doi.org/10.1016/j.iot.2025.101612.

F. Anka, G. G. Tejani, S. K. Sharma, and M. Baljon, "A bioinspired method for optimal task scheduling in fog-cloud environment," Computer Modeling in Engineering & Sciences, vol. 142, no. 3, pp. 2691-2724, 2025, doi: https://doi.org/10.32604/cmes.2025.061522.

F. Kiani and Ö. F. Saraç, "A novel intelligent traffic recovery model for emergency vehicles based on context-aware reinforcement learning," Information Sciences, vol. 619, pp. 288-309, 2023, doi: https://doi.org/10.1016/j.ins.2022.11.057.

L. Ma and K. Khorasani, "Constructive feed-forward neural networks using Hermite polynomial activation functions," IEEE Transactions on Neural Networks, vol. 16, no. 4, pp. 821-833, 2005, doi: https://doi.org/10.1109/TNN.2005.851786.

M. Pelikan, Hierarchical Bayesian Optimization Algorithm: Toward a New Generation of Evolutionary Algorithms. Berlin, Germany: Springer, 2005, doi: https://doi.org/10.1007/b10910

Z. B. Zabinsky, "Random search algorithms," in Wiley Encyclopedia of Operations Research and Management Science: John Wiley & Sons, 2011, doi: https://doi.org/10.1002/9780470400531.eorms0704

N. Bacanin et al., "Artificial neural networks hidden unit and weight connection optimization by quasi-refection-based learning artificial bee colony algorithm," IEEE Access, vol. 9, pp. 169135-169155, 2021, doi: https://doi.org/10.1109/ACCESS.2021.3135201.

J. C. T. Arroyo and A. J. P. Delima, "An optimized neural network using genetic algorithm for cardiovascular disease prediction," Journal of Advances in Information Technology, vol. 13, no. 1, pp. 95-99, 2022, doi: https://doi.org/10.12720/jait.13.1.95-99.

J. V. Domashova, S. S. Emtseva, V. S. Fail, and A. S. Gridin, "Selecting an optimal architecture of neural network using genetic algorithm," Procedia Computer Science, vol. 190, pp. 263-273, 2021, doi: https://doi.org/10.1016/j.procs.2021.06.036.

A. A. M. Lima, F. K. H. de Barros, V. H. Yoshizumi, D. H. Spatti, and M. E. Dajer, "Optimized artificial neural network for biosignals classification using genetic algorithm," Journal of Control, Automation and Electrical Systems, vol. 30, no. 3, pp. 371-379, 2019, doi: https://doi.org/10.1007/s40313-019-00454-1.

J. Cheng, J. Jiang, H. Kang, and L. Ma, "A hybrid neural architecture search algorithm optimized via lifespan particle swarm optimization for coal mine image recognition," Mathematics, vol. 13, no. 4, p. 631, 2025, doi: https://doi.org/10.3390/math13040631.

D. Sarkar, T. Khan, and F. A. Talukdar, "Hyperparameters optimization of neural network using improved particle swarm optimization for modeling of electromagnetic inverse problems," International Journal of Microwave and Wireless Technologies, vol. 14, no. 10, pp. 1326-1337, 2022, doi: https://doi.org/10.1017/S1759078721001690.

R. Jamous, H. AlRahhal, and M. El-Darieby, "Neural network architecture selection using Particle Swarm Optimization technique," Applied Artificial Intelligence, vol. 35, no. 15, pp. 1219-1236, 2021, doi: https://doi.org/10.1080/08839514.2021.1972251.

X. Han, Y. Xue, Z. Wang, Y. Zhang, A. Muravev, and M. Gabbouj, "SaDENAS: A self-adaptive differential evolution algorithm for neural architecture search," Swarm and Evolutionary Computation, vol. 91, p. 101736, 2024, doi: https://doi.org/10.1016/j.swevo.2024.101736.

S. Moradi, M. Gerdooei, S. M. Varedi-Koulaei, and H. G. Nosrati, "MLP neural network with an optimal architecture for modeling the ECAP-C process," Neural Computing and Applications, vol. 35, no. 3, pp. 2701-2715, 2023, doi: https://doi.org/10.1007/s00521-022-07685-5.

O. I. Simsek and B. B. Alagoz, "Optimal architecture artificial neural network model design with exploitative alpha gray wolf optimisation for soft calibration of CO concentration measurements in electronic nose applications," Transactions of the Institute of Measurement and Control, vol. 45, no. 4, pp. 686-699, 2023, doi: https://doi.org/10.1177/01423312221119648.

Y. Ghanou and G. Bencheikh, "Architecture optimization and training for the multilayer perceptron using ant system," IAENG International Journal of Computer Science, vol. 43, no. 1, pp. 10-18, 2016.

M. Aviles, J. Rodríguez-Reséndiz, and D. Ibrahimi, "Optimising EMG classification through metaheuristic algorithms," Technologies, vol. 11, no. 4, p. 87, 2023, doi: https://doi.org/10.3390/technologies11040087.

S. B. M. Sambatti, J. A. Anochi, E. F. P. da Luz, A. R. Carvalho, E. Shiguemori, and H. F. C. Velho, "MPCA meta-heuristics for automatic architecture optimisation of a supervised artificial neural network," presented at the 10th World Congress on Computational Mechanics, São Paulo, Brazil, 2012, doi: https://doi.org/10.5151/meceng-wccm2012-19075

D. H. Wolpert and W. G. Macready, "No free lunch theorems for optimization," IEEE Transactions on Evolutionary Computation, vol. 1, no. 1, pp. 67-82, 1997, doi: https://doi.org/10.1109/4235.585893.

M. Rashid, O. M. Yaseen, R. R. Saeed, and M. T. Alasaady, "An improved ensemble machine learning approach for diabetes diagnosis," Pertanika Journal of Science and Technology, vol. 32, no. 3, 2024, doi: https://doi.org/10.47836/pjst.32.3.19.

W. Zhao, Z. Zhang, and L. Wang, "Manta ray foraging optimisation: An effective bio-inspired optimiser for engineering applications," Engineering Applications of Artificial Intelligence, vol. 87, p. 103300, 2020, doi: https://doi.org/10.1016/j.engappai.2019.103300.

F. Daqaq, R. Ellaia, M. Ouassaid, H. M. Zawbaa, and S. Kamel, "Enhanced chaotic manta ray foraging algorithm for function optimization and optimal wind farm layout problem," IEEE Access, vol. 10, pp. 78345-78369, 2022, doi: https://doi.org/10.1109/ACCESS.2022.3193233.

S. Duman, A. Dalcalı, and H. Özbay, "Manta ray foraging optimisation algorithm-based feed-forward neural network for electric energy consumption forecasting," International Transactions on Electrical Energy Systems, vol. 31, no. 9, 2021, doi: https://doi.org/10.1002/2050-7038.12999.

H. Faris, S. Mirjalili, and I. Aljarah, "Automatic selection of hidden neurons and weights in neural networks using grey wolf optimizer based on a hybrid encoding scheme," International Journal of Machine Learning and Cybernetics, vol. 10, no. 10, pp. 2901-2920, 2019, doi: https://doi.org/10.1007/s13042-018-00913-2.

C. M. Bishop, Neural Networks for Pattern Recognition. Oxford, UK: Oxford University Press, 1995.

V. K. Ojha, A. Abraham, and V. Snášel, "Metaheuristic design of feed-forward neural networks: A review of two decades of research," Engineering Applications of Artificial Intelligence, vol. 60, pp. 97-116, 2017, doi: https://doi.org/10.1016/j.engappai.2017.01.013.

S. Mirjalili, "How effective is the Grey Wolf optimizer in training multi-layer perceptrons," Applied Intelligence, vol. 43, no. 1, pp. 150-161, 2015, doi: https://doi.org/10.1007/s10489-014-0645-7.

M. Kelly, R. Longjohn, and K. Nottingham. "The UCI Machine Learning Repository", 2010, https://archive.ics.uci.edu (accessed Feb 12, 2025).

M. T. Alasaady, M. G. Saeed, and K. H. Faraj, "Evaluation and comparison framework for data modeling languages," presented at the 2019 2nd International Conference on Electrical, Communication, Computer, Power and Control Engineering (ICECCPCE), 2019, doi: https://doi.org/10.1109/ICECCPCE46549.2019.203750

M. G. Rojas, A. C. Olivera, and P. J. Vidal, "Optimising multi-layer perceptron weights and biases through a Cellular Genetic Algorithm for medical data classification," Array, vol. 14, p. 100173, 2022, doi: https://doi.org/10.1016/j.array.2022.100173.

G. H. de Rosa, D. Rodrigues, and J. P. Papa, "Opytimizer: A nature-inspired Python optimizer," vol. arXiv:1912.13002, doi: https://doi.org/10.48550/arXiv.1912.13002.

J. Derrac, S. García, D. Molina, and F. Herrera, "A practical tutorial on the use of non-parametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms," Swarm and Evolutionary Computation, vol. 1, no. 1, pp. 3-18, 2011, doi: https://doi.org/10.1016/j.swevo.2011.02.002.