Research Article | Open Access
Synchronous Firefly Algorithm for Cluster Head Selection in WSN
Wireless Sensor Network (WSN) consists of small low-cost, low-power multifunctional nodes interconnected to efficiently aggregate and transmit data to sink. Cluster-based approaches use some nodes as Cluster Heads (CHs) and organize WSNs efficiently for aggregation of data and energy saving. A CH conveys information gathered by cluster nodes and aggregates/compresses data before transmitting it to a sink. However, this additional responsibility of the node results in a higher energy drain leading to uneven network degradation. Low Energy Adaptive Clustering Hierarchy (LEACH) offsets this by probabilistically rotating cluster heads role among nodes with energy above a set threshold. CH selection in WSN is NP-Hard as optimal data aggregation with efficient energy savings cannot be solved in polynomial time. In this work, a modified firefly heuristic, synchronous firefly algorithm, is proposed to improve the network performance. Extensive simulation shows the proposed technique to perform well compared to LEACH and energy-efficient hierarchical clustering. Simulations show the effectiveness of the proposed method in decreasing the packet loss ratio by an average of 9.63% and improving the energy efficiency of the network when compared to LEACH and EEHC.
Wireless Sensor Network (WSN) finds extensive application in both civilian and military applications. It has been extensively used in target tracking, surveillance, monitor natural disasters, biomedical applications, habitat monitoring, and building management systems . Sensor nodes in natural disasters sense/detect an environment to forecast disasters. In biomedical applications, sensor surgical implants monitor patient’s health. In seismic sensing, sensors ad hoc deployment in a volcanic area detects earthquakes/eruptions . WSN nodes use nonrechargeable storage device with restricted energy and in general replacing batteries is not possible. Thus, energy efficiency is an important issue, and designing power-efficient protocols is critical to prolong life of the sensors . Typically WSNs monitor specific areas using sensors collect data and send to base station (BS). A typical WSN organized hierarchically is shown in Figure 1. In hierarchical structure, to save energy some nodes selected based on the objective function act as Cluster Head (CH) and aggregate data from its entire neighbor. The CH then sends the data to the BS and thus reduces network overheads to ultimately save energy in each node.
WSNs unlike traditional networks have their own design/resource constraints which include limited energy, shorter transmission range, limited bandwidth, and minimal processing power in nodes. Based on the deployment scheme, network size varies with the environment. One of the most important activities in WSN is data aggregation which is the process of gathering data from multiple sensors, fusion of the data, and reduction of redundant transmission. Hierarchical techniques have been found to be quite effective in data aggregation.
LEACH randomizes rotation of nodes as CH and thus distributes energy load among network sensors evenly. The idea of LEACH protocol is that nodes become CH periodically with every period having two stages. The first stage is cluster construction and the next is data communication . During the cluster formation each node selects a random number and compares with threshold values . If the number is less than , then it is chosen as CH; else it remains as a regular node in that round. The threshold is given by where is the percentage of the Cluster Heads over all nodes. is the round number. is the set of nodes that have not been CH in the first rounds.
From Table 1 it can be observed that clustering objectives are varied with one of the key objectives being improvement in the network lifetime. Often a clustering objective facilitates meeting application requirements [6–10].
As LEACH depends on probability model efficiency in energy savings may not be obtained as CHs may be close to each other . To overcome the disadvantages of LEACH many protocols have been proposed in literature to overcome the suboptimal solution. Various heuristic algorithms based on Genetic Algorithm (GA), Particle Swarm Optimization (PSO), and Artificial Bee Colony (ABC) algorithm have been proposed.
In this work, investigations were carried out using the firefly heuristic. A novel firefly heuristic to avoid the local minimum problem is proposed. Firefly heuristic is based on the light intensity produced by fireflies. The intensity of light produced is mapped to the objective function and hence fireflies with low intensity are attracted towards fireflies with higher light intensity. In this work, a hybrid firefly algorithm, synchronous firefly algorithm, is proposed based on(i)ranked sexual reproduction capability of select fireflies,(ii)the fireflies created by this method having the best genes from the ranked fireflies.The advantages of the proposed technique are(i)faster convergence,(ii)avoidance of multiple local optima.
2. Related Work
Hussain et al.  presented a wide taxonomy on CH selection techniques in WSN with comparative analysis. Hu et al.  proposed a multihop heterogeneous cluster-based optimization algorithm (MHCOA) which reduces the number of CHs, saving an average of 16.7% network energy with minimal end to end delay. Peng et al.  presented an energy-efficient prediction clustering algorithm to reduce energy consumption when broadcasting in clustering phase and prolong network lifetime. Bencan et al.  proposed an energy-heterogeneous clustering scheme (EHCS) which allows variations in the initial energy of the nodes based on the distance to sink to avoid the energy-hole problem.
Optimization techniques for cluster formation and CH selection using PSO, GA, and ACO have been extensively proposed in the literature. Kuila and Jana  proposed PSO based CH selection technique with a multiobjective function considering energy consumption of the CHs and delay in forwarding the data packets. In the proposed system, each particle’s dimension is equal to the number of sensor nodes in the network. Natarajan et al.  applied LEACH and PSO for optimal selection of energy-aware clusters and CHs. Ma et al.  proposed Dual Cluster Heads using Niching Particle Swarm Optimization (DCH-NPSO) which generated two CHs per cluster: Master Cluster Head (MCH) and the Slave Cluster Head (SCH). Ma et al.  proposed Adaptive Assistant-Aided Clustering Protocol using Niching Particle Swarm Optimization (AAAC-NPSO) to improve system lifespan and data delivery by optimizing energy dissipation in the networks. Shankar et al.  discussed an optimal radius algorithm and hybrid PSO algorithm for selection of CH to extend the lifetime of the network. Ali and Shahzad  studied PSO, ACO for routing overhead, route optimality, and energy consumption. Simulation results conclude that PSO and ACO based protocols are efficient routing optimization approaches for WSNs.
Rana and Zaveri  proposed an integrated approach of CH selection and routing in two-tier WSN using GA based CH selection with A-Star algorithm based routing to extend life of WSN. This approach leads to significant improvements in the network lifetime over other techniques. Peiravi et al.  proposed a multiobjective two-nested Genetic Algorithm (GA) based clustering for optimizing the network lifetime for different delay values. Kuila et al.  proposed a GA based load balanced clustering algorithm for WSN. Gupta et al.  presented GA based routing (GAR) to optimize the distance travelled by the data to reduce energy consumption. New routing schedules were calculated by the proposed GA based on the current network state. Cheng et al.  presented Dynamic Load Balanced Clustering Problem (DLBCP) and a dynamic GAs based solution to solve the dynamic network optimization requirements. Özdemir et al.  employed Multiobjective Evolutionary Algorithm based on Decomposition (MOEA/D) to optimize cluster-based WSNs. The proposed technique improved coverage and network lifetime compared to NSGA II.
Karaboga et al.  presented a novel energy-efficient clustering mechanism, based on Artificial Bee Colony algorithm to prolong the network lifetime. Kumar and Kim  proposed a new Efficient Learning Automata Based Cell Clustering Algorithm (ELACCA) for WSNs. Hoang et al.  proposed a harmony search algorithm for development of centralized cluster-based protocols by minimizing the intracluster distances between the cluster members and their CHs.
From literature it can be seen that GA, PSO, and ACO have been extensively used for CH selection. Though GA has good global search characteristics, convergence is poor. Representation of weights in PSO is done arbitrarily and hence search is limited to either global or local space. In this work, it is proposed to investigate the firefly metaheuristic which finds optimal global solution with fast convergence even under multiparameter optimization strategy.
Yang [31, 32] demonstrated that though PSO achieves better global optima for various test functions for multimodal optimization than GA firefly algorithm is superior to both PSO and GA in terms of both efficiency and success rate. Similarly, Łukasik and Żak  demonstrated the superiority of firefly algorithm in continuous constrained optimization tasks when compared to PSO. Fister Jr. et al.  reviewed the use of firefly algorithm in various application domains. The authors conclude that the firefly can efficiently handle multimodal problems, has fast convergence, and is effectively used for general, global, and also local search heuristic.
3. Problem Formulation
WSN can be represented by graph with vertices and edges . Each edge has weights which represents certain network parameters denoted bywhere () represents parameters of the network.
can be defined by
The objective of the heuristic algorithm is given by where is the th objective to be minimized for the problem.
In this work, three quality of service parameters, packet loss rate, end to end delay, and remaining energy, are considered to build the objective function as a minimization problem.
The first order energy model for energy consumed when communication occurs between two nodes is shown in Figure 2.
For distance between two nodes, the transmitter energy consumption  for transmitting bit is given by The energy consumed by the receiver is given by In the above equations, transmitting and receiving 1 bit data’s energy consumption is denoted by . , represent the coefficients of energy consumption for different channel propagation models. is a threshold value denoted as , to distinguish free-space path loss model from a multipath fading model. Energy consumption for integration of data packets of bit is expressed as , where is energy consumption for integration of data of 1 bit.
4.1. Proposed Firefly for Cluster Head Formation
Firefly algorithm metaheuristics work on the principle of the flashing lights of fireflies. The intensity of the light helps a firefly swarm move to brighter and attractive locations which can be mapped to an optimal solution in the search space. The algorithm standardizes some of the firefly characteristics and can be listed as follows:(i)Each firefly can be attracted to another irrespective of their sex.(ii)The brightness produced by the firefly is directly proportional to its attractiveness and between two fireflies, the firefly with higher brightness attracts the one which has lower brightness. A firefly moves randomly if it is not able to find a brighter neighboring firefly.(iii)In the mathematical model, firefly’s brightness is based on the objective function.Firefly metaheuristic is chosen for its capability of providing optimal solutions for multiobjective problems. In this work, a novel fitness function considering energy, end to end delay, and packet loss rate is proposed and given by where is the number of dropped packets. is the total number of packets sent. is the remaining energy in node . is the initial energy. is the end to end delay. is the maximum allowable delay.
The cluster formation and CH selection in firefly are given in Algorithm 1.
In firefly algorithm , variation of light intensity and the formulation of the problem in terms of attractiveness are crucial as the objective function is encoded into it. The light intensity is calculated using ; the fixed light absorption coefficient and the light intensity can be computed based on distance such that where is the original light intensity. Approximating using Gaussian law we haveThe attractiveness of a firefly is given in where is the attractiveness at .
In two-dimensional space the distance between two fireflies can be given by their Euclidean distance as . A firefly moves to a more attractive firefly by In this work, binary values are used to represent the nodes in each solution. The challenge in this type of encoding is between the real-valued vector space and binary space and given by where and .
In the proposed synchronous firefly algorithm, the fireflies are ranked and the best fireflies selected using tournament selection. The selected fireflies reproduce among themselves by crossover and mutation. An example of the proposed technique is shown. Table 2 shows the partial solution for the best fireflies obtained using tournament selection.
After crossover and mutation, the reproduced fireflies are given by Table 3.
The new solutions are added to the firefly pool and the next iteration of the firefly is continued.
4.2. Parameters for Network Simulation
The performance evaluation of the proposed algorithm was carried out using MATLAB. The base station is located 50 meters away from of the network. The base station is assumed to have infinite power source:(i)Nodes are static and do not change location after deployment.(ii)All nodes have uniform energy at the time of deployment.(iii)Base station is located outside the network area.(iv)Each node has a unique ID.(v)The transmission power in the node varies based on the distance between the communicating devices.
Table 4 shows the simulation parameters used in this work.
5. Result and Discussion
Simulations were carried out using LEACH, EEHC, firefly, and synchronous firefly algorithm. LEACH was used to compare the proposed algorithm due to its popularity in the literature and being a random method. Table 5 tabulates the simulation results of packet loss rate and end to end delay for various clustering techniques. Figures 3–5 show the results number of clusters formed, lifetime computation, and remaining energy, respectively.
The proposed hybrid firefly algorithm minimized the packet loss rate by 2.27% when compared to firefly based clustering with 225 nodes and by 39.74% when compared to LEACH with 450 nodes. The proposed hybrid firefly algorithm minimized the end to end delay by 6.42% when compared to firefly based clustering with 450 nodes and by 8.69% when compared to LEACH with 150 nodes. Figure 3 shows number of clusters formed for various clustering techniques for different number of nodes.
It is observed that the proposed algorithm increases the number of clusters hence reducing the energy consumption significantly. Figure 4 shows the lifetime computation in the form of percentage of nodes alive for various clustering techniques when the number of nodes used is 225.
The proposed hybrid firefly algorithm increased lifetime by 66.67% when compared to firefly based clustering in 400 rounds and by 66.67% when compared to LEACH in 600 rounds.
Figure 5 shows the remaining energy computation for various clustering techniques when the number of nodes is 225. The proposed hybrid firefly algorithm has an overall average remaining energy of 88.37% when compared to firefly based clustering in 500 rounds and by 28.57% when compared to LEACH in 600 rounds.
This work proposed a novel firefly based clustering protocol to select Cluster Head in WSNs. LEACH protocol needs the user to specify probability for use with a threshold function to determine whether a node will become a CH or not leading to NP problem. In the proposed hybrid firefly algorithm, the best fireflies selected using tournament selection are allowed to reproduce among themselves by crossover and mutation. The proposed method achieves faster convergence and avoids multiple local optima. Simulation results demonstrate the efficiency of the proposed method in decreasing the packet loss rate by 15.4% to 39.74% when compared to LEACH and by 6.16% to 30.66% when compared to energy-efficient hierarchical clustering. The proposed hybrid firefly algorithm also increased the lifetime of the network. Future work can be carried out to investigate the impact on increasing specific quality of service parameter.
Conflict of Interests
The authors declare that they have no competing interests.
- J. Yick, B. Mukherjee, and D. Ghosal, “Analysis of a prediction-based mobility adaptive tracking algorithm,” in Proceedings of the 2nd International Conference on Broadband Networks (BROADNETS '05), pp. 809–816, IEEE, October 2005.
- K. Lorincz, D. J. Malan, T. R. F. Fulford-Jones et al., “Sensor networks for emergency response: challenges and opportunities,” IEEE Pervasive Computing, vol. 3, no. 4, pp. 16–23, 2004.
- G. Wener-Allen, K. Lorincz, M. Ruiz et al., “Deploying a wireless sensor network on an active volcano,” IEEE Internet Computing, vol. 10, no. 2, pp. 18–25, 2006.
- V. B. Thakar, “Performance evaluation & augmentation of LEACH using a novel clustering hierarchy,” International Journal of Darshan Institute on Engineering Research & Emerging Technologies, vol. 1, no. 1, 2012.
- R. Rajagopalan and P. K. Varshney, “Data-aggregation techniques in sensor networks: a survey,” IEEE Communications Surveys & Tutorials, vol. 8, no. 4, pp. 48–63, 2006.
- M. Younis, K. Akkaya, and A. Kunjithapatham, “Optimization of task allocation in a cluster-based sensor network,” in Proceedings of the 8th IEEE International Symposium on Computers and Communication (ISCC '03), pp. 329–334, Antalya, Turkey, July 2003.
- G. Gupta and M. Younis, “Fault-tolerant clustering of wireless sensor networks,” in Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC '03), pp. 1579–1584, IEEE, New Orleans, La, USA, March 2003.
- S. Bandyopadhyay and E. J. Coyle, “An energy efficient hierarchical clustering algorithm for wireless sensor networks,” in Proceedings of the 22nd Annual Joint Conference of the IEEE Computer and Communications Societies (INFOCOM '03), vol. 3, pp. 1713–1723, IEEE, San Francisco, Calif, USA, April 2003.
- E. I. Oyman and C. Ersoy, “Multiple sink network design problem in large scale wireless sensor networks,” in Proceedings of the IEEE International Conference on Communications (ICC '04), pp. 3663–3667, Paris, France, June 2004.
- M. Younis, M. Youssef, and K. Arisha, “Energy-aware management for cluster-based sensor networks,” Computer Networks, vol. 43, no. 5, pp. 649–668, 2003.
- D. E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, New York, NY, USA, 1989.
- K. Hussain, A. H. Abdullah, K. M. Awan, F. Ahsan, and A. Hussain, “Cluster head election schemes for WSN and MANET: a survey,” World Applied Sciences Journal, vol. 23, no. 5, pp. 611–620, 2013.
- S. Hu, J. Han, X. Wei, and Z. Chen, “A multi-hop heterogeneous cluster-based optimization algorithm for wireless sensor networks,” Wireless Networks, vol. 21, no. 1, pp. 57–65, 2015.
- J. Peng, T. Liu, H. Li, and B. Guo, “Energy-efficient prediction clustering algorithm for multilevel heterogeneous wireless sensor networks,” International Journal of Distributed Sensor Networks, vol. 2013, Article ID 678214, 8 pages, 2013.
- G. Bencan, J. Tingyao, X. Shouzhi, and C. Peng, “An energy-heterogeneous clustering scheme to avoid energy holes in wireless sensor networks,” International Journal of Distributed Sensor Networks, vol. 2013, Article ID 796549, 8 pages, 2013.
- P. Kuila and P. K. Jana, “Energy efficient clustering and routing algorithms for wireless sensor networks: particle swarm optimization approach,” Engineering Applications of Artificial Intelligence, vol. 33, pp. 127–140, 2014.
- M. Natarajan, R. Arthi, and K. Murugan, “Energy aware optimal cluster head selection in wireless sensor networks,” in Proceedings of the 4th International Conference on Computing, Communications and Networking Technologies (ICCCNT '13), pp. 1–4, IEEE, July 2013.
- D. Ma, J. Ma, B. Huang, and P. Xu, “Energy-aware clustering protocol with dual cluster heads using niching particle swarm optimization for wireless sensor networks,” International Journal of Advancements in Computing Technology, vol. 5, no. 5, p. 127, 2013.
- D. Ma, J. Ma, and P. Xu, “An adaptive assistant-aided clustering protocol for WSNs using niching particle swarm optimization,” in Proceedings of the 4th IEEE International Conference on Software Engineering and Service Science (ICSESS '13), pp. 648–651, May 2013.
- T. Shankar, S. Shanmugavel, and A. Karthikeyan, “Hybrid approach for energy optimization in wireless sensor networks using PSO,” International Review on Computers and Software, vol. 8, no. 6, pp. 1454–1459, 2013.
- Z. Ali and W. Shahzad, “Analysis of routing protocols in ad hoc and sensor wireless networks based on swarm intelligence,” International Journal of Networks and Communications, vol. 3, no. 1, pp. 1–11, 2013.
- K. Rana and M. Zaveri, “Synthesized cluster head selection and routing for two tier wireless sensor network,” Journal of Computer Networks and Communications, vol. 2013, Article ID 578241, 11 pages, 2013.
- A. Peiravi, H. R. Mashhadi, and S. Hamed Javadi, “An optimal energy-efficient clustering method in wireless sensor networks using multi-objective genetic algorithm,” International Journal of Communication Systems, vol. 26, no. 1, pp. 114–126, 2013.
- P. Kuila, S. K. Gupta, and P. K. Jana, “A novel evolutionary approach for load balanced clustering problem for wireless sensor networks,” Swarm and Evolutionary Computation, vol. 12, pp. 48–56, 2013.
- S. K. Gupta, P. Kuila, and P. K. Jana, “GAR: an energy efficient GA-based routing for wireless sensor networks,” in Distributed Computing and Internet Technology, pp. 267–277, Springer, Berlin, Germany, 2013.
- H. Cheng, S. Yang, and J. Cao, “Dynamic genetic algorithms for the dynamic load balanced clustering problem in mobile ad hoc networks,” Expert Systems with Applications, vol. 40, no. 4, pp. 1381–1392, 2013.
- S. Özdemir, B. A. Attea, and Ö. A. Khalil, “Multi-objective evolutionary algorithm based on decomposition for energy efficient coverage in wireless sensor networks,” Wireless Personal Communications, vol. 71, no. 1, pp. 195–215, 2013.
- D. Karaboga, S. Okdem, and C. Ozturk, “Cluster based wireless sensor network routing using artificial bee colony algorithm,” Wireless Networks, vol. 18, no. 7, pp. 847–860, 2012.
- N. Kumar and J. Kim, “ELACCA: efficient learning automata based cell clustering algorithm for wireless sensor networks,” Wireless Personal Communications, vol. 73, no. 4, pp. 1495–1512, 2013.
- D. C. Hoang, P. Yadav, R. Kumar, and S. K. Panda, “Real-time implementation of a harmony search algorithm-based clustering protocol for energy-efficient wireless sensor networks,” IEEE Transactions on Industrial Informatics, vol. 10, no. 1, pp. 774–783, 2014.
- X.-S. Yang, “Firefly algorithms for multimodal optimization,” in Stochastic Algorithms: Foundations and Applications, vol. 5792 of Lecture Notes in Computer Science, pp. 169–178, Springer, Berlin, Germany, 2009.
- X.-S. Yang, “Multiobjective firefly algorithm for continuous optimization,” Engineering with Computers, vol. 29, no. 2, pp. 175–184, 2013.
- S. Łukasik and S. Żak, “Firefly algorithm for continuous constrained optimization tasks,” in Computational Collective Intelligence. Semantic Web, Social Networks and Multiagent Systems, vol. 5796 of Lecture Notes in Computer Science, pp. 97–106, Springer, Berlin, Germany, 2009.
- I. Fister Jr., X.-S. Yang, and J. Brest, “A comprehensive review of firefly algorithms,” Swarm and Evolutionary Computation, vol. 13, pp. 34–46, 2013.
Copyright © 2015 Madhusudhanan Baskaran and Chitra Sadagopan. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.