# A novel energy-aware cluster head selection based on particle swarm optimization for wireless sensor networks

## Authors

- First Online:

- Received:
- Accepted:

DOI: 10.1186/2192-1962-2-13

- Cite this article as:
- Singh, B. & Lobiyal, D.K. Hum. Cent. Comput. Inf. Sci. (2012) 2: 13. doi:10.1186/2192-1962-2-13

## Abstract

The wireless sensor networks have long been an attractive field to the researchers and scientists for its ease in deployment and maintenance. In this research, we focus on the maximization of network lifetime which has become a critical issue in sensor networks. Clustered organization of nodes with aggregation of data at the cluster head becomes one of the significant means to extend life expectancy of the network. This paper proposes Particle Swarm Optimization (PSO) approach for generating energy-aware clusters by optimal selection of cluster heads. The PSO eventually reduces the cost of locating optimal position for the head nodes in a cluster. In addition, we have implemented the PSO-based approach within the cluster rather than base station, which makes it a semi-distributed method. The selection criteria of the objective function are based on the residual energy, intra-cluster distance, node degree and head count of the probable cluster heads. Furthermore, influence of the expected number of packet retransmissions along the estimated path towards the cluster head is also reflected in our proposed energy consumption model. The performance evaluation of our proposed technique is carried out with respect to the well-known cluster-based sensor network protocols, LEACH-C and PSO-C respectively. Finally, the simulation clarifies the effectiveness of our proposed work over its comparatives in terms of network lifetime, average packet transmissions, cluster head selection rounds supported by PSO and average energy consumption.

### Keywords

Wireless sensor network Particle swarm optimization Energy-aware clusters Intra-cluster distance Packet retransmission## Introduction

Wireless sensor networks have revolutionized the recent years of development by creating significant impact throughout the society. The demand for these networks is spurred by various civilian and military applications [1, 2]. The sensor network consists of battery-powered devices bestowed with a multitude of sensing modalities. Such networks are usually formed with great bulk of nodes (called sensors) distributed over the sensing area in order to capture maximum coverage [3]. The battery operated sensors are known for their lightweight and economic pricing. The sensors are responsible for sensing certain environmental property and periodically transmitting the related information to the processing station (cluster head or sink). These devices are generally deployed in unattended hostile regions, which ultimately makes the power source of the sensors non-renewal (i.e. difficult to recharge). However, in the research there exist a number of relevant energy preserving techniques, which tends to prolong the network lifespan. In this paper, we have considered one such swarm intelligence mechanism known as Particle Swarm Optimization [4, 5].

Particle Swarm Optimization (PSO) is an artificial intelligence mechanism which is motivated by the social behaviors of natural species, for instance - herd of animals, swarm of birds, etc. [6]. The population-based swarm intelligence method executes with the aim of optimizing an objective (or fitness) function. The algorithm employs a swarm of search points (also called particles) and tracks the fitness of each particle. Every particle is associated with corresponding velocity. This assists the particle to move onto a better position, if the cost to the objective function is optimized. PSO is known is to perform better than other swarm intelligence techniques (Ant Colony Optimization, Genetic Algorithm, etc.) in terms of computation complexity and convergence rate [7, 8]. In PSO, the particles possess a fitness criterion for all the positions they visit. Hence, it becomes essential to maintain a local best fitness value for the particles during every generation (iteration). The local information further helps to locate the trajectory towards global best position. The pattern emerged from the collective intelligence of the particles ultimately optimizes the objective function. In this paper, we apply the swarm optimization to find cluster head positions in order to reduce the intra-cluster distance and overall energy consumption during packet transmission to the sink.

The rest of the paper organization is done as follows: Section 2 summarizes the previous work in the related area. The assumptions regarding the network model is provided in section 3. The proposed PSO-based cluster head selection scheme is analyzed in section 4. This is followed by section 5 that presents analytical retransmissions computation along with estimation of average distance between a sensor node and cluster head (intra-cluster distance). In section 6 the proposed energy model is provided to analyze the average power consumption of the network. The simulation and performance modeling is carried out in section 7. Finally we conclude our research work in section 8.

## Related work

Plenty of research is available in literature to reflect the application of swarm optimization in the context of wireless sensor network. A novel cluster-based approach is introduced in [9] using PSO. The authors have proposed a fitness function to minimize the intra-cluster distance between the sensor nodes and cluster head. The function also helps in optimizing the energy efficiency of the network. The implementation of the PSO is completely centralized and is executed at the base station (sink). Moreover, at the initiation phase of every cluster head selection round, all the sensors in the network are required to send their location information and residual energy level to the sink. Such transmissions in bulk not only increases congestion in the network, but also lead to unnecessary energy drainage. However, the simulation results for the method (PSO-Clustering or PSO-C) have shown outperforming results in comparison with LEACH [10] and LEACH-C [11] protocols respectively.

An improved PSO has been proposed in [12] for improving the performance of the optimization technique and keep a sense of balance between exploration and exploitation of particles in the swarm. The authors have tried to broaden the exploration ability of particle swarm by using Metropolis Algorithm (MA). In [13] another research work evaluates a routing optimization method on the basis of graph theory and particle swarm optimization algorithm in multi-hop sensor network. The cluster head is elected with a help of a weighted function *ω*(*i*), which is computed iteratively for each *ith* round. Moreover, routing of packets in the network is optimized with the fitness function that aims at maximizing two topological properties, i.e. transmission distance and residual energy after every round of transmission (to the base station). The work is simulated and compared with the probabilistic method of selecting cluster heads and the experiments showed positive results. Further, the authors in [14] have used PSO to optimize the location of the sensors with an objective to enhance the network connectivity. Two types of optimization schemes are used, namely - single directional and bi-directional approaches. The proposed work also considers the effect of localization errors. However, the simulation results confirm that the proposed scheme executes perfectly for a sparse sensor network. Similar works can also be found in [15–18] that proposed energy efficient layout for better coverage and connectivity in the sensor networks through the application of particle swarm optimization.

In a research conducted in [19] swarm optimization with Dijkstra algorithm is utilized to find the optimal path from initial to target state, in accordance with some well-defined performance criterion. The mobile sensors (or beacon nodes) are assumed to be aware of their dynamically changing coordinates. The simulation of the algorithm showed better performance than some exiting path-finding methods. However, the implementation of the PSO method bears certain impediments in theoretical foundation. In some another recent work in [20] the authors have used swarm optimization method to localize head nodes on the basis of the distance and residual energy of the cluster members. However, the contribution lacks proper estimation of the intra-cluster distance. In yet another work carried out in [21] PSO is applied to optimize the sensor deployment strategy in order to maximize the network coverage in mobile sensor network. The authors also attempt to find the optimal position for cluster heads with the help of a familiar energy model. During the process of coverage optimization, the sensors move to new positions, thereby forming uniformly distributed topology. As compared with Genetic Algorithm (GA), the proposed method worked quite efficiently. However the algorithm is completely executed in a centralized manner, i.e. directly monitored by the base station, which pose as a major drawback in application.

In this paper, we make contributions that are worth in enhancing the lifetime and performance of the sensor network. We proposed a PSO-based cluster head selection scheme to find the fittest position for the head nodes. In a cluster, the head node is known to be located in the best position, if it reduces the intra-cluster distance. Theoretically, the core of the distribution with maximum density is considered to be equidistant from all its boundaries. Therefore, the sole aim of our PSO-based method is to localize the head nodes around the center of cluster density. On the basis of the optimized CH position we compute the estimated distance covered by packet transmission from a sensor node to its cluster head. Further, we analyze the effect of link failure on transmission of packets and also derived expected number of retransmission over the path to cluster head. Finally, energy computation is performed to evaluate the energy savings performed by our proposed technique as compared with the LEACH-C [8] and PSO-C [6] protocols.

## Network model & assumptions

In this section we describe our network scenario model (Figure 1) used for simulation. The assumptions made regarding the sensor network is provided in the following:

• The wireless sensor network is assumed to be a circular geographic area with the sink *S*, positioned at coordinate (0,0), and radius *R*_{
s
}.

• The sensor nodes are uniformly deployed in the sensing area *A*_{
s
}. The number of sensor nodes are distributed according to the two dimensional Poisson point process with *ρ* as the expected density of nodes in a cluster *A*_{
C
}.

• The cluster covers a circular region with its cluster head at the center *o* with radius *R*.

*k*clusters in the sensor network. Further, owing to the uniform node deployment strategy, we can compute an approximation for the cluster radius,

*R*:

• A sensor is allowed to use different levels of transmission power depending upon its distance from the target node (or the cluster head). The distance can be estimated from the strength of the signal received from the destination node.

• Altering transmission power results in varying transmission ranges$\phantom{\rule{0.5em}{0ex}}{r}_{i}\phantom{\rule{0.5em}{0ex}}\left(i=1,2,3,\dots \right)$. *r*_{min} is considered as the minimum allowable range of transmission for any sensor.

• The member nodes transmit their samples to the cluster head, after which the CH processes and aggregates the gathered samples and finally forwards the information to the sink.

• The cluster member nodes are able to temporarily switch off its power supply and enter sleep mode to preserve energy waste. Every node uses a probability *β*_{s} to sleep for certain time span.

• During data transmission, packets are relayed to the cluster head by the intermediate sensors in *h* hops. Further, it is also assumed that every communication link in the network is associated with a link failure probability (*p*_{
lk
}).

• To compute the energy expended in transmission, we consider maximum number of hops (*h*_{max}) traversed with minimum transmission range (*r*_{min}).

• In our research, we have applied swarm optimization in clustered sensor network, where the nodes are assumed to be stationery. The basic aim is to find optimized

*COM*). The mass center (Figure 3) of a cluster can be defined as the mid-position of the sensor distribution within the cluster. Such localization for cluster head would ultimately assist to minimize the average distance covered by the sensors to transmit data to the cluster head. The swarm intelligence considers

*N*points or particles around the

*COM*area and iterates in search of the best location.

• Moreover, the velocity of the particle is assumed to be the rate at which the position of the particle is changed, i.e. the sensor does not move but the particle coordinate under consideration is shifted. Also, the sensor node found nearest to any particle is associated with the node’s residual energy (particle energy) and head count (particle count). These parameters are required during the evaluation of the objective function for each particle in all iterations.

• In PSO application a centralized coordinator is required to maintain several attributes of the particles for every generation. In order to accomplish the requirement, we randomly select a sensor node in every cluster and appoint it as *cluster assistant* (*n*_{
CA
}). The cluster assistant is assumed to maintain the local best position of every sensor along with other sensor characteristics, like - current position, particle energy, head count, global best solution and additional PSO parameter values. At the beginning of every round of cluster head selection, all the sensors in a cluster provide the required information to their respective assistant node.

• The cluster assistant node is supposed be the local processing center for PSO computations carried out within a cluster. It does not perform environmental sensing, nor does it participate in data communication to the cluster head. Since, the power expended in computation is quite insignificant than the energy exhausted in communication, *n*_{
CA
} survives quite long to function as the processing node. The assistant node prefers to sleep while the selection round is over. The node only awakes when it is informed by the present CH about its inefficiency to function as the head node.

• However, if the energy falls below certain level the *n*_{
CA
} node sends a request message to its nearest node to serve as the processing center for future rounds.

Our assumption regarding PSO application not only helps in the swarm computation, but also makes the application of PSO Semi-Distributed (PSO-SD), unlike the research carried out so far in the related area. The implementation of the swarm intelligence method is described in the following section.

## Proposed cluster head selection technique using PSO

We have modeled a novel usage of particle swarm optimization in cluster head selection, which makes the algorithm semi-distributed and comparatively more energy-efficient. In order to accomplish the purpose, we have proposed a novel fitness function for PSO on the basis of distance, energy, node degree and head count of the sensor nodes in a cluster.

### Cluster-based particle swarm optimization

*S*. If there are

*N*particles (candidate solutions) in the swarm, then each particle possesses a position vector (

*x*

_{ i }) and velocity vector (

*v*

_{ i }) given by:

*M*represents the dimension. Moreover,

*x*

_{ ij }(

*t*) and

*v*

_{ ij }(

*t*) signifies the

*ith*particle position and velocity in

*jth*dimension during the time instant

*t*. To track the global best positioning,

*n*

_{ CA }maintains the local best positions of the particles in the set $\Pi =\left\{{p}_{1},{p}_{2},\dots ,{p}_{N}\right\}$ which contains the best positions of all the particles ever visited.

*ith*particle and overall global best location (with respect to all particles in the swarm within a cluster) at time

*t*are denoted as

*p*

_{ i }(

*t*) and

*p*

_{ g }(

*t*) respectively.

*n*

_{ CA }uses the following equations to update the particle position and velocities:

*t*= 0…

*T*

_{max}and

*T*

_{max}represents the maximum number of generations. Also

*r*

_{1}and

*r*

_{2}are the random variables uniformly generated between [0,1]. The cognitive and social parameters, denoted by

*c*

_{ cog }and

*c*

_{ soc }, defines the magnitude of search in the swarm.

*ω*(

*t*) is the inertia weight that is used for reducing the effect of previous particle velocity on the current generation. Absence of which may result in unusual drifts from the best achievable positions.

### Proposed fitness function for PSO

*ith*particle is specified in the following equation:

In the above equation *α*_{1}, *α*_{2}, *α*_{3} are the weightage parameters. In our optimization function we provide comparatively more valuation to the residual energy associated with the particle *p*_{
i
}. The sensor (*n*_{
j
}) must have its energy level within the range [*E*_{min}, *E*_{max}], or else the node is filtered out and hence not selected for comparison with other nodes in particle *p*_{
i
}. Moreover, *E*(*p*_{
i
}), *N*_{deg}(*p*_{
i
}) and *H*(*p*_{
i
}) represents the energy, node degree and head count associated with the particle *p*_{
i
}. Also, *n*_{
j
} is the *jth* node of *kth* cluster (*C*_{
k
}) and $\left|{C}_{k}\right|$ denotes the total number of nodes in the respective cluster. The Euclidean distance between node *n*_{
j
} and particle *p*_{
i
} is represented by notation$\phantom{\rule{0.5em}{0ex}}\Vert {n}_{j},{x}_{i}\Vert $. It is clear from the equation that *χ*_{1} is the average distance of particle *p*_{
i
} from all other sensors in the cluster and *χ*_{2} is the measure of particle energy w.r.t. other nodes. The *χ*_{3} parameter refers to the node degree associated with particle *p*_{
i
}. This criterion helps to select the node around the particle with highest degree. Moreover, the number of neighbors for a sensor can be easily determined with help of in-built commands of network simulator. The sensor that is connected to more number of nodes reflects greater efficiency in receiving more packets easily. *χ*_{4} is the probability of choosing a node in particle *p*_{
i
} on the basis of its head count. The head count is basically the frequency of a node of becoming cluster head so far. As the head count increases, the probability of its selection as cluster head decreases by certain magnitude.

Finally, at the end of each round (i.e. on completion of *T*_{max} number of generations), the particle whose attributes optimizes the objective function is chosen as the global best position for the head node. The sensor nearest to the global best location is elected as the CH for the current round. The selected node acts as CH until its energy drops beyond a specified level. After which the current CH informs *n*_{
CA
} to initiate the PSO computation for the next round of cluster head selection.

## Packet retransmissions computation

Our energy consumption model considers the energy used in successful transmissions, receptions as well as the number of times a packet is collided (retransmissions). For this purpose, we have computed the average number of times a packet is retransmitted due to collision before successfully receiving at the destination (i.e. cluster head).

We assume that in average there are *n* links between member nodes and cluster head. Therefore in ideal case, exactly *n* transmissions would be required to successfully deliver one packet to CH. However, owing to the inherent nature of wireless communication in sensor network, packet losses are quite inevitable. The communication path remains highly vulnerable to network disturbances due to several factors. This increases the likelihood of retransmissions of the collided packets. In order to assess the energy consumption, we have theoretically computed the packet retransmissions within the cluster. Hence, the significant contributions included in this section are summarized as follows:

• Estimation of the average intra-cluster distance

• Determination of the number of communication links between the member nodes and the cluster head

• Derivation of average retransmissions of the collided packets

• Justification of the theoretical computation with simulated performance

The PSO-based cluster aims at selecting cluster heads that reduces the intra-cluster distance and minimizes the redundant packet transmissions. As a result of which large amount of energy wasted in communication can be preserved. In best case, CHs are ensured to be located within the COM area. However, due to the depletion of sensor energy, the position of selected CHs might not be always within the suitable region, yet assuming ideal behavior we can approximate the actual performance. In the subsequent research, we presumed ideal conditions and obtained an estimation of the distance.

### Distance estimation of sensors to cluster head

*d*from the cluster member to its cluster head within a particular cluster region. In the following equation, the cluster head is assumed to be in the middle (i.e. center of mass) of the cluster$\phantom{\rule{0.5em}{0ex}}\left({x}_{c}=0\phantom{\rule{0.5em}{0ex}}\text{,}\phantom{\rule{0.5em}{0ex}}{y}_{c}=0\right)$.

*p*in equation (14), we have:

*r*

_{min}as the minimum permissible transmission range of a sensor node:

### Expected number of retransmission attempts

We know that clustered sensor members having their communication ranges overlapped are regarded as neighbors. This implies that communication path exists between the neighboring nodes, which further results in existence of an aggregation tree in every cluster with the cluster head (CH) as the root. The CH is also regarded as the aggregation center, which aggregates the data gathered from the member nodes for a given period of time. The transmission of data to the CH follows the path in the aggregation tree. We assume that there are *h* hops or links between the source node and CH. Also, every link between sensors possesses *link failure probability* (*p*_{
lk
}), which refers to the susceptibility of the channel to failures, due to different reasons.

*h*links, the number of transmissions required for one successful sending of packet to CH is also

*h*. Now, the probability of

*h*successful transmission for one successful end-to-end data delivery towards CH is$\phantom{\rule{0.5em}{0ex}}{\left(1-{p}_{\mathit{lk}}\right)}^{h}$. Also, the probability of at least one failed transmission, leading to unsuccessful data delivery, is$\phantom{\rule{0.5em}{0ex}}1-{\left(1-{p}_{\mathit{lk}}\right)}^{h}$. Let us consider a random variable

*Y*which denotes the number of successful data delivery attempts. Further, (

*η*–1) failures followed by one successful attempt, satisfies geometric distribution. This can be written as follows:

*h*we finally get:

Equation (21) provides an average perception of needed retransmissions which is not computed by the individual sensors. This estimation is only derived to assist the determination of the average energy consumption in the network, as described in the next section. Moreover, the behavioral analysis of our theoretical model with respect to actual simulation results is provided in the following.

## Proposed energy consumption model

Sensor nodes mainly dissipate radio energy in form of electronics and amplifier energy. The energy consumed in the radio electronics (*E*_{
elec
}) fundamentally depends on how efficiently the signal is encoded, modulated and filtered. The energy dissipation rate in the radio amplifier (*ϵ*_{
amp
}) is directly proportional to *d*^{
γ
}. Here, *d* is regarded as the distance between the source and destination node, and *γ* is the path loss component. The path loss experienced by signal can be different depending upon the power loss model employed.

*d*

^{2}) between the member node (source) and cluster head (destination). Moreover, the expected value of

*d*

^{2}, represented by $E[{d}^{2}]$ is obtained as following:

*m*–

*bit*length of packet over a distance

*d*, the energy used by a sensor node is given by:

*v*

_{ o }is the threshold distance, beyond which the strength of the signal is affected by multi-path fading. Moreover, the energy required by a sensor to receive one

*m*–

*bit*packet is:

*ξ*

_{ node }) by a sensor node to perform transmission-reception operations accompanied with occasional sleep phases, can be determined by the following equation:

*β*

_{ s }is the sleep probability of a sensor node calculated on the basis of the outcome of randomized scheduler. Besides the power expended by an individual sensor, the total energy required for successful delivery of a packet fundamentally relies on the estimated number of hops to be traversed to reach the destination and the expectation of the packet retransmissions required. So, the total energy in delivering a packet (

*ξ*

_{ pkt }) can be expressed as following:

*h*,

*E*[

*η*] and

*ξ*

_{ node }from equations (17, 21 and 25), we get the following result for energy expended in a packet delivery operation:

*ρ*, is expressed as:

Therefore, equation (28) clearly explains that the overall energy consumption depends upon the expected number of retransmissions, average number of hops or links, active probability of a sensor and the expected number of nodes in the cluster, i.e. $\rho \pi {R}^{2}$.

## Simulation & performance evaluation

**Network simulation parameters**

PARAMETER |
VALUE |
---|---|

Sensor network dimension |
1000 x 1000 sq. meters |

Base station location |
At (600,600) |

Sensor radius ( |
115 meters |

Transmission power ( |
12.910 watts |

Reception power ( |
11.081 watts |

Sleep power ( |
0.00214 watts |

Packet Length ( |
14 bytes |

Weightage parameters ( |
(0.3,0.4,0.2) |

Energy required in radio electronics ( |
50 nJ/bit |

Energy required in radio electronics ( |
10pJ/bit/m |

Initial sensor energy |
150 joules |

Number of generations ( |
250 |

Number of particles ( |
20 |

Cognitive parameter ( |
2 |

Social parameter ( |
2 |

Inertia weight ( |
from 1.2 to 0.4 |

Routing protocol |
Destination Sequence Distance-Vector (DSDV) protocol |

Total sensor nodes deployed |
200 |

Total simulation period |
800 seconds |

*t*= 425 sec, after which it gradually drops due to energy insufficiency in the network. However, the rate of successful packet delivery still retains greater performance than the referenced counterparts. LEACH-C suffers the most as poorly managed clusters fail to communicate the packets to the head node. Also, it does not take residual energy into account while selecting the cluster head. Though, PSO-C survives to support packets transmission but it ultimately perishes due to the centralized execution of swarm optimization.

## Conclusion & future work directions

The energy constraints in sensors pose serious challenges to the developers of sensor network. In order to improve the network performance several energy-aware cluster-based techniques are designed. The issue of optimal cluster head selection is often formulated as an optimization problem. Particle Swarm Optimization (PSO) is such a method which is known for its easy implementation and fast convergence.

In this paper, we have applied PSO for selecting the cluster heads by optimizing certain performance criteria. Our cluster-based strategy enhances network performance as compared to certain existing techniques. The proposed PSO-SD reduces the intra-cluster distance from the cluster members to the cluster head. The location of the cluster head is optimized by the proposed objective function used by PSO. Moreover, retransmissions computation for collided packets also assists in the derivation of overall energy consumption in the network. The simulation results illustrate that our PSO-SD delivers better performance than its comparatives in terms of lifetime, energy consumption and average number of packets communicated to the base station. There are several promising research directions that can be projected from our present contribution. Our future work includes the implementation of sensor mobility in higher dimensional region of interest. Moreover we would also focus on the distributed PSO-application in heterogeneous sensor networks.

## Acknowledgement

This work was supported by the Council of Scientific and Industrial Research (CSIR), Human Resource Development Group, India under grant Senior Research Fellowship (SRF) – 09/263(0820)/2010-EMR-1. We would also like to thank the anonymous reviewers for their valuable comments.

## Supplementary material

## Copyright information

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.