LEACH-CSA: A Clustering Algorithm for Wireless Sensor Networks
Abstract
1. Introduction
2. Method
2.1. Low-Energy Adaptive Clustering Hierarchy (LEACH)
2.2. LEACH-CSA Algorithm
- Crows live in a flock (population).
- Crows memorize positions of their hiding places (solutions).
- Crows follow each other to thieve (search algorithm).
- Crows protect their caches from being pilfered (probability of solution).
2.3. Energy Model
3. Results and Discussion
3.1. LEACH-CSA Tuning Parameters
3.2. LEACH-CSA vs. Metaheuristic Algorithms
3.3. Node Density Variation Analysis
3.4. Area-Scaling Analysis
3.5. LEACH-CSA vs. Classical Algorithms
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A. Computer Program
Appendix A.1. Introduction
Appendix A.2. Program Structure and Description of Subroutines

References
- Miller, T.; Durlik, I.; Kostecka, E.; Kozlovska, P.; Łobodzińska, A.; Sokołowska, S.; Nowy, A. Integrating Artificial Intelligence Agents with the Internet of Things for Enhanced Environmental Monitoring: Applications in Water Quality and Climate Data. Electronics 2025, 14, 696. [Google Scholar] [CrossRef]
- Jahmani, K.; Mohammad, S.I.; Mohammad, A.A.S.; Vasudevan, A.; Al-Momani, A.M.; Almomani, H.M.; Masadeh, M.; Mohammad, R.I. The Internet of Things Adoption Landscape: Insights from a Comprehensive Bib-liometric Review. In Artificial Intelligence, Sustainable Technologies, and Business Innovation: Opportunities and Challenges of Digital Transformation; Springer: Berlin/Heidelberg, Germany, 2025; pp. 47–58. [Google Scholar] [CrossRef]
- Alakkari, K.; Ali, B. Artificial Intelligence of Things: A Review. Babylon. J. Internet Things 2025, 2025, 113–120. [Google Scholar] [CrossRef]
- Sial, Q.A.; Safder, U.; Iqbal, S.; Ali, R.B. Advancement in Supercapacitors for IoT Applications by Using Machine Learning: Current Trends and Future Technology. Sustainability 2024, 16, 1516. [Google Scholar] [CrossRef]
- Helwan, A.; Azar, D.; Ma’aitah, M.K.S. Conventional and deep learning methods in heart rate estimation from RGB face videos. Physiol. Meas. 2024, 45, 02TR01. [Google Scholar] [CrossRef]
- Helwan, A.; Ma’aitah, M.K.S. Machine learning in automated chest radiographs classification. In International Conference on Theory and Applications of Fuzzy Systems and Soft Computing; Springer International Publishing: Cham, Switzerland, 2020; pp. 810–816. [Google Scholar]
- Bhat, V.S.; Kakunje, A. Artificial Intelligence in Health Care. Arch. Med. Health Sci. 2024, 12, 1–2. [Google Scholar] [CrossRef]
- Ma’aitah, M.K.S.; Helwan, A.; Radwan, A. Urinary Bladder Acute Inflammations and Nephritis of the Renal Pelvis: Diagnosis Using Fine-Tuned Large Language Models. J. Pers. Med. 2025, 15, 45. [Google Scholar] [CrossRef]
- Ma’aitah, M.K.S.; Helwan, A.; Radwan, A.; Mohammad Salem Manasreh, A.; Alshareef, E.A. Multimodal model for knee osteoarthritis KL grading from plain radiograph. J. X-Ray Sci. Technol. 2025, 33, 608–620. [Google Scholar] [CrossRef] [PubMed]
- Selvaraj, S.; Sundaravaradhan, S. Challenges and Opportunities in IoT Healthcare Systems: A Systematic Review; Springer Nature: New York, NY, USA, 2020. [Google Scholar] [CrossRef]
- Polireddi, N.S.A. An effective role of artificial intelligence and machine learning in banking sec-tor. Meas. Sens. 2024, 33, 101135. [Google Scholar] [CrossRef]
- Douglas, D.D. The Transformative Impact of AI in Finance and Banking. J. Investig. Bank. Financ. 2024, 2, 1–8. [Google Scholar] [CrossRef]
- Menekay, M.; Ma’aitah, M.K.S. Applying expert system for bank credit authorization using fuzzy tools. In Proceedings of the 9th International Conference on Education Technology and Computers; Association for Computing Machinery: New York, NY, USA, 2017; pp. 258–261. [Google Scholar]
- Zhang, L.; Innab, N.; Shuhidan, S.M.; Pan, Y.; Zhang, Y.; Som, H.M.; Alasbali, N. Artificial intelligence-driven internet of things-based green supply chain for carbon reduction in sustainable manufacturing. J. Environ. Manag. 2025, 389, 126170. [Google Scholar] [CrossRef]
- Liu, P. Analysis of the Application of Artificial Intelligence in Transportation. J. World Archit. 2024, 8, 78–83. [Google Scholar] [CrossRef]
- Abiyev, R.H.; Ma’aitah, M.; Sonyel, B. Fuzzy logic traffic lights control (FLTLC). In Proceedings of the 9th International Conference on Education Technology and Computers; Association for Computing Machinery: New York, NY, USA, 2017; pp. 233–238. [Google Scholar]
- Jami Pour, M.; Hosseinzadeh, M.; Moradi, M. IoT-based entrepreneurial opportunities in smart transportation: A multidimensional framework. Int. J. Entrep. Behav. Res. 2024, 30, 450–481. [Google Scholar] [CrossRef]
- Bono, F.M.; Polinelli, A.; Radicioni, L.; Benedetti, L.; Castelli-Dezza, F.; Cinquemani, S.; Belloli, M. Wireless Accelerometer Architecture for Bridge SHM: From Sensor Design to System Deployment. Future Internet 2025, 17, 29. [Google Scholar] [CrossRef]
- Singh, P.; Vir, R. Enhanced energy-aware routing protocol with mobile sink optimization for wireless sensor networks. Comput. Netw. 2025, 261, 111100. [Google Scholar] [CrossRef]
- Mushtaq, M.U.; Venter, H.; Singh, A.; Owais, M. Advances in Energy Harvesting for Sustainable Wireless Sensor Networks: Challenges and Opportunities. Hardware 2025, 3, 1. [Google Scholar] [CrossRef]
- Radwan, A.; Kamarudin, N.H.; Solihin, M.I.; Leong, H.; Hoong, J.M.V. A Survey on Energy efficient Clustering Algorithms for Wireless Sensor Networks. Solid State Technol. 2020, 63, 1046–1060. [Google Scholar]
- Hussein, M.K. Impact of various data packet sizes on the performance of WSN-based clusters: Study. In 2021 5th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT); IEEE: New York, NY, USA, 2021; pp. 424–428. [Google Scholar] [CrossRef]
- Lan, Y.; Kan, M.; Cao, B.; Rao, C.; Zhou, M.; Zhou, P. Optimized energy efficient clustering in WSNs through modified zebra optimization. Sci. Rep. 2025, 15, 37366. [Google Scholar] [CrossRef]
- Lee, J.-G.; Chim, S.; Park, H.-H. Energy-Efficient Cluster-Head Selection for Wireless Sensor Networks Using Sampling-Based Spider Monkey Optimization. Sensors 2019, 19, 5281. [Google Scholar] [CrossRef]
- Buratti, C.; Conti, A.; Dardari, D.; Verdone, R. An Overview on Wireless Sensor Networks Tech-nology and Evolution. Sensors 2009, 9, 6869–6896. [Google Scholar] [CrossRef]
- Ompal, O.; Mishra, V.M.; Kumar, A. Zigbee Internode Communication and FPGA Synthesis Using Mesh, Star and Cluster Tree Topological Chip. Wirel. Pers. Commun. 2021, 119, 1321–1339. [Google Scholar] [CrossRef]
- Pan, J.; Hou, Y.T.; Cai, L.; Shi, Y.; Shen, S.X. Topology control for wireless sensor networks. In Proceedings of the 9th Annual International Conference on Mobile Computing and Networking; ACM: New York, NY, USA, 2003; pp. 286–299. [Google Scholar] [CrossRef]
- Dutta, M.K. Comparative Study Between Star and Mesh Topology for the Application in All-Optical WDM Network. In Progress in Computing, Analytics and Networking; Springer: Singapore, 2020; pp. 255–263. [Google Scholar] [CrossRef]
- Dey, I.; Marchetti, N. Optimized Topology Control for IoT Networks using Graph-based Locali-zation. arXiv 2024, arXiv:2410.03204. Available online: http://arxiv.org/abs/2410.03204 (accessed on 8 April 2026).
- Shakhov, V.; Migov, D. On the Reliability of Wireless Sensor Networks with Multiple Sinks. Sensors 2024, 24, 5468. [Google Scholar] [CrossRef]
- Dai, Y.; Ji, J.; Qiu, Y. A dual-hop topology-aware routing protocol for underwater optical wire-less sensor networks. Opt. Switch. Netw. 2022, 45, 100682. [Google Scholar] [CrossRef]
- Akkaya, K.; Younis, M. A survey on routing protocols for wireless sensor networks. Ad Hoc Netw. 2005, 3, 325–349. [Google Scholar] [CrossRef]
- Ganesan, D.; Govindan, R.; Shenker, S.; Estrin, D. Highly-resilient, energy-efficient multipath routing in wireless sensor networks. ACM SIGMOBILE Mob. Comput. Commun. Rev. 2001, 5, 11–25. [Google Scholar] [CrossRef]
- Arumugam, G.S.; Ponnuchamy, T. EE-LEACH: Development of energy-efficient LEACH Proto-col for data gathering in WSN. EURASIP J. Wirel. Commun. Netw. 2015, 2015, 76. [Google Scholar] [CrossRef]
- Heinzelman, W.R.; Chandrakasan, A.; Balakrishnan, H. Energy-efficient communication proto-col for wireless microsensor networks. In Proceedings of the Hawaii International Conference on System Sciences; IEEE: New York, NY, USA, 2000; Volume 2, p. 223. [Google Scholar] [CrossRef]
- Heinzelman, W.B.; Chandrakasan, A.P.; Balakrishnan, H. An application-specific protocol ar-chitecture for wireless microsensor networks. IEEE Trans. Wirel. Commun. 2002, 1, 660–670. [Google Scholar] [CrossRef]
- Kim, D.S.; Chung, Y.J. Self-organization routing protocol supporting mobile nodes for wireless sensor network. In First International Multi-Symposiums on Computer and Computational Sciences; IMSCCS’06; IEEE: New York, NY, USA, 2006; Volume 2, pp. 622–626. [Google Scholar] [CrossRef]
- Xiao, X.; Huang, H.; Wang, W. Underwater Wireless Sensor Networks: An Energy-Efficient Clustering Routing Protocol Based on Data Fusion and Genetic Algorithms. Appl. Sci. 2020, 11, 312. [Google Scholar] [CrossRef]
- Gupta, S.K.; Jana, P.K. Energy Efficient Clustering and Routing Algorithms for Wireless Sen-sor Networks: GA Based Approach. Wirel. Pers. Commun. 2015, 83, 2403–2423. [Google Scholar] [CrossRef]
- Adumbabu, I.; Selvakumar, K. Energy Efficient Routing and Dynamic Cluster Head Selection Using Enhanced Optimization Algorithms for Wireless Sensor Networks. Energies 2022, 15, 8016. [Google Scholar] [CrossRef]
- Al-Mahdi, H.; Elshrkawey, M.; Saad, S.; Abdelaziz, S. An Intelligent Energy-Efficient Data Rout-ing Scheme for Wireless Sensor Networks Utilizing Mobile Sink. Wirel. Commun. Mob. Comput. 2024, 2024, 7384537. [Google Scholar] [CrossRef]
- Ding, Q.; Zhu, R.; Liu, H.; Ma, M. An Overview of Machine Learning-Based Energy-Efficient Routing Algorithms in Wireless Sensor Networks. Electronics 2021, 10, 1539. [Google Scholar] [CrossRef]
- Radwan, A.; Abdellatif, N.; Radwan, E.; Akhozahieh, M. Fitness function X-means for prolong-ing wireless sensor networks lifetime. Int. J. Electr. Comput. Eng. 2023, 13, 465–472. [Google Scholar] [CrossRef]
- Badawy, T.R.; Ziedan, N.I. Optimized Intelligent Localization Through Mathematical Model-ing and Crow Search Algorithms. Sensors 2025, 25, 4804. [Google Scholar] [CrossRef]
- Zhang, X.; Huang, C.; Gui, W. A multi-strategy improved crow search algorithm for multi-level thresholding image segmentation. Sci. Rep. 2025, 15, 20033. [Google Scholar] [CrossRef]
- Amrouche, A.; Boubchir, L.; Yahiaoui, S. Metaheuristic-driven neural architecture search for deep learning-based side-channel analysis. Cyber Secur. Appl. 2026, 4, 100125. [Google Scholar] [CrossRef]
- Zamani, H.; Nadimi-Shahraki, M.H. An evolutionary crow search algorithm equipped with in-teractive memory mechanism to optimize artificial neural network for disease diagnosis. Biomed. Signal Process. Control 2024, 90, 105879. [Google Scholar] [CrossRef]
- Shanmugapriya, M.; Manivannan, K.K. Compare the performance of meta-heuristics algorithm: A review. In Metaheuristics Algorithm and Optimization of Engineering and Complex Systems; IGI Global: New York, NY, USA, 2024; Volume 4, pp. 242–253. [Google Scholar] [CrossRef]
- Makhadmeh, S.N.; Awadallah, M.A.; Kassaymeh, S.; Al-Betar, M.A.; Sanjalawe, Y.; Kouka, S.; Al-Redhaei, A. Recent advances in Multi-objective Cuckoo Search Algorithm, its variants and applications. Arch. Comput. Methods Eng. 2025, 32, 3213–3240. [Google Scholar] [CrossRef]
- Sadeghian, Z.; Akbari, E.; Nematzadeh, H.; Motameni, H. A review of feature selection methods based on meta-heuristic algorithms. J. Exp. Theor. Artif. Intell. 2025, 37, 1–51. [Google Scholar] [CrossRef]
- Nurwinto, C.; Kurniawan, T.B.; Sutabri, T.; Kunang, Y.N. Enhancing Classification Algorithms with Metaheuristic Technique. J. Data Sci. 2024, 2024. [Google Scholar] [CrossRef]
- Askarzadeh, A. A novel metaheuristic method for solving constrained engineering optimization problems: Crow search algorithm. Comput. Struct. 2016, 169, 1–12. [Google Scholar] [CrossRef]
- Holland, J.H. Genetic Algorithms. Sci. Am. 1992, 267, 66–73. [Google Scholar] [CrossRef]
- Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of ICNN’95-International Conference on Neural Networks; IEEE: New York, NY, USA, 1995; pp. 1942–1948. [Google Scholar] [CrossRef]
- Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
- Mirjalili, S.; Lewis, A. The Whale Optimization Algorithm. Adv. Eng. Softw. 2014, 95, 46–61. [Google Scholar] [CrossRef]






| Parameter Name | Description | Value |
| Frequency | Operating frequency | 914 MHz |
| ht = 1.5 m, hr = 1.5 m | ||
| Amplification energy when the distance between transmitter and receiver is less than | 10 pJ/bit/m2 | |
| Amplification energy when the distance between transmitter and receiver exceeds | 0.0013 pJ/bit/m4 | |
| Eelec | The energy required by electronics to process a single data bit | Tx or Rx = 50 nJ/bit, Data Aggregation = 5 nJ/bit |
| Data Packet (P) | Collected data size | 4.2 Kb/packet |
| AP | FL | POP | ITER | FND_mean |
|---|---|---|---|---|
| 0.4442 | 1.0029 | 14 | 23 | 936 |
| 0.0928 | 1.5281 | 25 | 18 | 936 |
| 0.1476 | 1.1121 | 8 | 25 | 935 |
| 0.0016 | 1.0804 | 23 | 12 | 933 |
| 0.107 | 1.165 | 10 | 23 | 932 |
| 0.4549 | 1.3595 | 8 | 21 | 932 |
| 0.4211 | 0.2802 | 17 | 15 | 932 |
| 0.3067 | 1.242 | 17 | 21 | 932 |
| 0.459 | 1.1054 | 9 | 23 | 931 |
| 0.4772 | 1.0332 | 24 | 9 | 931 |
| Scenario | Algorithm | FND_mean | FND_std | HND_mean | HND_std | LND_mean | LND_std |
|---|---|---|---|---|---|---|---|
| 100 × 100_100 nodes | LEACH | 659 | 17 | 854 | 12 | 1178 | 10 |
| 100 × 100_100 nodes | GA | 750 | 30 | 872 | 4 | 1225 | 19 |
| 100 × 100_100 nodes | PSO | 754 | 23 | 877 | 6 | 1218 | 11 |
| 100 × 100_100 nodes | GWO | 754 | 16 | 877 | 5 | 1222 | 7 |
| 100 × 100_100 nodes | WOA | 805 | 11 | 867 | 2 | 1222 | 10 |
| 100 × 100_100 nodes | CSA | 877 | 33 | 968 | 1 | 991 | 5 |
| 100 × 100_300 nodes | LEACH | 660 | 13 | 950 | 8 | 1321 | 11 |
| 100 × 100_300 nodes | GA | 735 | 43 | 932 | 3 | 1352 | 12 |
| 100 × 100_300 nodes | PSO | 709 | 74 | 933 | 13 | 1332 | 11 |
| 100 × 100_300 nodes | GWO | 673 | 24 | 920 | 5 | 1341 | 15 |
| 100 × 100_300 nodes | WOA | 805 | 16 | 940 | 5 | 1327 | 13 |
| 100 × 100_300 nodes | CSA | 893 | 12 | 989 | 3 | 1153 | 16 |
| 100 × 100_500 nodes | LEACH | 655 | 4 | 972 | 9 | 1324 | 8 |
| 100 × 100_500 nodes | GA | 769 | 6 | 993 | 4 | 1332 | 16 |
| 100 × 100_500 nodes | PSO | 789 | 7 | 980 | 2 | 1333 | 8 |
| 100 × 100_500 nodes | GWO | 710 | 33 | 956 | 3 | 1366 | 13 |
| 100 × 100_500 nodes | WOA | 782 | 11 | 994 | 3 | 1338 | 5 |
| 100 × 100_500 nodes | CSA | 882 | 8 | 1012 | 4 | 1205 | 2 |
| 100 × 100_700 nodes | LEACH | 648 | 6 | 984 | 6 | 1355 | 10 |
| 100 × 100_700 nodes | GA | 761 | 10 | 1014 | 1 | 1357 | 16 |
| 100 × 100_700 nodes | PSO | 770 | 12 | 1008 | 4 | 1375 | 12 |
| 100 × 100_700 nodes | GWO | 730 | 21 | 995 | 4 | 1374 | 18 |
| 100 × 100_700 nodes | WOA | 771 | 16 | 1011 | 4 | 1356 | 14 |
| 100 × 100_700 nodes | CSA | 881 | 6 | 1025 | 3 | 1244 | 8 |
| 100 × 100_1000 nodes | LEACH | 611 | 23 | 987 | 11 | 1342 | 7 |
| 100 × 100_1000 nodes | GA | 721 | 14 | 1024 | 2 | 1338 | 8 |
| 100 × 100_1000 nodes | PSO | 746 | 7 | 1019 | 2 | 1352 | 11 |
| 100 × 100_1000 nodes | GWO | 786 | 10 | 1009 | 4 | 1357 | 7 |
| 100 × 100_1000 nodes | WOA | 745 | 11 | 1021 | 3 | 1349 | 3 |
| 100 × 100_1000 nodes | CSA | 842 | 8 | 1026 | 3 | 1256 | 9 |
| Scenario | Algorithm | FND_mean | FND_std | HND_mean | HND_std | LND_mean | LND_std |
|---|---|---|---|---|---|---|---|
| 100 × 100_100 nodes | LEACH | 656 | 19 | 854 | 12 | 1185 | 13 |
| 100 × 100_100 nodes | GA | 738 | 26 | 872 | 5 | 1220 | 15 |
| 100 × 100_100 nodes | PSO | 752 | 25 | 875 | 5 | 1215 | 12 |
| 100 × 100_100 nodes | GWO | 766 | 17 | 877 | 4 | 1215 | 20 |
| 100 × 100_100 nodes | WOA | 803 | 10 | 868 | 4 | 1215 | 14 |
| 100 × 100_100 nodes | CSA | 854 | 52 | 969 | 2 | 990 | 4 |
| 200 × 200_200 nodes | LEACH | 167 | 21 | 492 | 15 | 1011 | 17 |
| 200 × 200_200 nodes | GA | 217 | 4 | 552 | 7 | 956 | 17 |
| 200 × 200_200 nodes | PSO | 223 | 5 | 564 | 5 | 944 | 16 |
| 200 × 200_200 nodes | GWO | 230 | 11 | 563 | 5 | 899 | 13 |
| 200 × 200_200 nodes | WOA | 248 | 8 | 575 | 8 | 964 | 16 |
| 200 × 200_200 nodes | CSA | 398 | 39 | 640 | 3 | 865 | 4 |
| 300 × 300_300 nodes | LEACH | 46 | 7 | 263 | 20 | 942 | 13 |
| 300 × 300_300 nodes | GA | 75 | 1 | 340 | 7 | 920 | 19 |
| 300 × 300_300 nodes | PSO | 77 | 3 | 346 | 4 | 908 | 12 |
| 300 × 300_300 nodes | GWO | 74 | 8 | 340 | 6 | 859 | 18 |
| 300 × 300_300 nodes | WOA | 75 | 4 | 354 | 6 | 914 | 8 |
| 300 × 300_300 nodes | CSA | 111 | 31 | 410 | 10 | 749 | 2 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Radwan, A.; Hamdan, M.; Ismagulova, Z.; Ma’aitah, M.; Alshubbak, A.; Nasir, M. LEACH-CSA: A Clustering Algorithm for Wireless Sensor Networks. Future Internet 2026, 18, 269. https://doi.org/10.3390/fi18050269
Radwan A, Hamdan M, Ismagulova Z, Ma’aitah M, Alshubbak A, Nasir M. LEACH-CSA: A Clustering Algorithm for Wireless Sensor Networks. Future Internet. 2026; 18(5):269. https://doi.org/10.3390/fi18050269
Chicago/Turabian StyleRadwan, Abdelrahman, Mohammad Hamdan, Zhuldyz Ismagulova, Mohammad Ma’aitah, Ala’a Alshubbak, and Mohammad Nasir. 2026. "LEACH-CSA: A Clustering Algorithm for Wireless Sensor Networks" Future Internet 18, no. 5: 269. https://doi.org/10.3390/fi18050269
APA StyleRadwan, A., Hamdan, M., Ismagulova, Z., Ma’aitah, M., Alshubbak, A., & Nasir, M. (2026). LEACH-CSA: A Clustering Algorithm for Wireless Sensor Networks. Future Internet, 18(5), 269. https://doi.org/10.3390/fi18050269

