Mosquito Swarm Algorithm-Based Energy Minimization in Wireless Sensor Networks
Abstract
1. Introduction
2. Related Works
3. The Proposed Approach
3.1. Mosquito Swarm Algorithm (MSA)
- 1.
- The mosquito is searching for something smelly or carbon dioxide.
- 2.
- Once it has identified its favorite scent, it moves on to a place of intense concentration.
- 3.
- It descends as soon as it senses the host’s radiated warmth.
3.2. Clustering Configuration Phase Using MSA
| Algorithm 1 Mosquito Swarm Algorithm for cluster construction |
1. Enter: Initialize a set of K clusters and N mosquitoes. 2. Initialize the maximum number of iterations and the iteration t = 1. 3. For each mosquito, calculate the chemical sensor () and a heat sensor () using Formulas (1) and (2). 4. Find the best solutions using the objective function (Formula (3)). The best solutions are those that yield the maximum values of the objective function. 5. Repeat until is reached. 6. Start: 7. Make use of the chemical sensor () to assess and assign the feasibility of solutions: 8. Calculate the chemical sensor () values for the new solutions (). 9. Compare the chemical sensor () values of the new solutions () with those of the previous solutions and select the best values, which will become the cluster leaders. 10. Assign nodes to the new solutions () found as cluster leaders. 11. Calculate for each mosquito (which represents a WSN sensor) its chemical sensor and its heat sensor using Formulas (1) and (2). 12. Find the best solutions using the objective function (Formula (3)). 13. t = t + 1. 14. Check if , repeat steps 5 to 13. 15. End of repeat and end of algorithm. |
3.3. The Routing Phase Using MSA
| Algorithm 2 Mosquito Swarm Algorithm for data routing |
1. Initialize a set of n cluster heads representing mosquitoes. 2. Cnode = source node. 3. While Cnode != destination. 4. Start: 5. Find Cnode’s neighboring nodes. 6. For each mosquito (cluster head) adjacent to the current node, calculate the chemical and heat sensor value using Formulas (8) and (2). 7. Calculate the probability of neighboring nodes that one of these neighbors will be the next node, using Formulas (2), (5), (6), (7), (8) and (9). 8. Choose the neighboring node that has the highest probability value. 9. If there are several neighboring nodes with the same probability, the node that has the greatest CS value is selected. 10. Cnode = next node selected. 11. If Cnode != destination, repeat steps 5 to 11. 12. If Cnode = the destination, End of while. 13. End of algorithm. |
4. Results and Discussion
- ∗
- Active node: denotes the total number of nodes that continue to function until all nodes in the network have exhausted their energy.
- ∗
- Dead nodes: relates to the total count of inactive nodes at the point when all nodes in the network have exhausted their energy.
- ∗
- Throughput: represents the proportion of packets transmitted compared to the overall count of packets.
- ∗
- Traffic: indicates the overall count of transmitted packets throughout the network.
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- El Aalaoui, A. Advanced Minimization of Energy Consumption in Wireless Sensor Networks. Ph.D. Thesis, Abdelmalek Essaadi University, Tetouan, Morocco, 2021. [Google Scholar]
- Kechar, B. The Problem of Energy Consumption in Wireless Sensor Networks. Ph.D. Thesis, University of Oran, Oran, Algeria, 2010. [Google Scholar]
- Singh, A.; Sharma, S.; Singh, J. Nature-Inspired Algorithms for Wireless Sensor Networks: A Comprehensive Survey. Comput. Sci. Rev. 2021, 39, 100342. [Google Scholar] [CrossRef]
- Singh, S.; Tyagi, V.; Malik, A.; Kumar, R.; Kumar, N.; Kumar, N. Intelligent Energy-Aware Routing via Protozoa Behavior in IoT-Enabled WSNs. IEEE Trans. Netw. Serv. Manag. 2025, 23, 1960–1969. [Google Scholar]
- Agarkar, P.T.; Chawhan, M.D.; Kulat, K.D.; Hajare, P.R. MECT-PSO: A Reliable and Energy Efficient Topology Control Protocol for Wireless Sensor Networks. J. Inf. Sci. Eng. 2023, 39, 885. [Google Scholar]
- Chen, F.; Wu, X.; Wang, Z.; Qi, W.; Li, P. A New Ant Colony Optimization-Based Dynamic Path Planning and Energy Optimization Model in Wireless Sensor Networks for Mobile Sink by Using Mixed-Integer Linear Programming. Biomimetics 2026, 11, 44. [Google Scholar] [CrossRef] [PubMed]
- Narayan, V.; Faiz, M.; Srivastava, S.; Kumar, V.; Mishra, V.K.; Balyan, V. EE-FGO: Energy-Efficient Fuzzy Grey Wolf Optimization for Cluster Head Selection in WSN. J. Electr. Comput. Eng. 2026, 2026, 1973305. [Google Scholar] [CrossRef]
- Zehra, S.S.; Qureshi, R.; Dev, K.; Shahid, S.; Bhatti, N.A. Comparative analysis of bio-inspired algorithms for underwater wireless sensor networks. Wirel. Pers. Commun. 2021, 116, 1311–1323. [Google Scholar]
- Mohammed, H.S.; Abdulkareem, O.A.; Ahmad, A.; Dowse, C.S. Optimizing Energy Efficiency in Wireless Sensor Networks: Integrating Bluetooth M-LPN System with ABC Algorithm. Int. J. Eng. Trends Technol. 2024, 72, 85–89. [Google Scholar] [CrossRef]
- Feng, X.; Liu, X.; Yu, H. Group mosquito host-seeking algorithm. Appl. Intell. 2016, 44, 665–686. [Google Scholar] [CrossRef]
- Papaioannou, C.; Dimara, A.; Papaioannou, A.; Tzitzios, I.; Anagnostopoulos, C.-N.; Krinidis, S. Hierarchical Resources Management System for Internet of Things-Enabled Smart Cities. Sensors 2025, 25, 616. [Google Scholar] [CrossRef] [PubMed]
- Sangaiah, A.K.; Sadeghilalimi, M.; Hosseinabadi, A.A.R.; Zhang, W. Energy consumption in point-coverage wireless sensor networks via bat algorithm. IEEE Access 2019, 7, 180258–180269. [Google Scholar] [CrossRef]
- Sha’ban, R.; Alkallak, I. Adaptation of a Mosquito Swarm Algorithm to Solve a Binary Knapsack Problem. Al-Rafidain J. Comput. Sci. Math. 2018, 12, 13–24. [Google Scholar] [CrossRef]
- Mohajerani, A.; Gharavian, D. An ant colony optimization based routing algorithm for extending network lifetime in wireless sensor networks. Wirel. Netw. 2016, 22, 2637–2647. [Google Scholar] [CrossRef]
- Nayak, P.; Kavitha, K.; Khan, N. Cluster head selection in wireless sensor network using bio-inspired algorithm. In Proceedings of the 2019 IEEE Region 10 Conference (TENCON), Kerala, India, 17–20 October 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1690–1696. [Google Scholar]






| Parameters | Values |
|---|---|
| Total number of nodes | 100 |
| Beginning energy | 1 J |
| Packet size | 4000 bits |
| Length of the network | 100 m |
| Width of the network | 100 m |
| BS location on the X axis | 50 m |
| BS location on the Y axis | 100 m |
| Algorithm | Average Time (s) | Standard Deviation (±) |
|---|---|---|
| MSA | 2316 | 351 |
| PSO-R | 4328 | 10,234 |
| BA-R | 6197 | 10,339 |
| LEACH | 144 | 26 |
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
Aabdaoui, A.; Idrissi, N. Mosquito Swarm Algorithm-Based Energy Minimization in Wireless Sensor Networks. Computers 2026, 15, 521. https://doi.org/10.3390/computers15080521
Aabdaoui A, Idrissi N. Mosquito Swarm Algorithm-Based Energy Minimization in Wireless Sensor Networks. Computers. 2026; 15(8):521. https://doi.org/10.3390/computers15080521
Chicago/Turabian StyleAabdaoui, Amal, and Najlae Idrissi. 2026. "Mosquito Swarm Algorithm-Based Energy Minimization in Wireless Sensor Networks" Computers 15, no. 8: 521. https://doi.org/10.3390/computers15080521
APA StyleAabdaoui, A., & Idrissi, N. (2026). Mosquito Swarm Algorithm-Based Energy Minimization in Wireless Sensor Networks. Computers, 15(8), 521. https://doi.org/10.3390/computers15080521

