Você está na página 1de 4

Double Cluster-Heads Clustering Algorithm for Wireless

Sensor Networks Using PSO


Zhang RuihuaˈJia Zhiping, Li Xin, Han Dongxue
School of Computer Science and Technology
Shandong University
Jinan 250101, China
Ruihua_zhang@sdu.edu.cn

Abstract- One of the most important design criteria for wireless stage, sensors join cluster heads that have the lowest cost
sensor networks (WSNs) is energy efficiency. Clustering provides within their range.
an effective way for extending the lifetime of the network. In this
paper, we propose a double cluster-heads clustering algorithm The particle swarm optimization (PSO) is a simple,
using particle swarm optimization (PSO-DH). The algorithm effective, and computationally efficient optimization algorithm.
generates two cluster heads. The election of the master It has been applied to address WSN issues such as optimal
cluster-head and the vice cluster-head needs consider the state deployment, node localization, clustering, and data
information, including location and energy reserved about nodes aggregation. The application of PSO algorithm to solve the
and their neighbors. The Master Cluster Head (MCH) receives problem of sensor network clustering has been proposed before
and aggregates the data from its member nodes. The aggregation
data are sent to the vice one. The Vice Cluster Head (VCH)
in [4]. The authors attempted to equalize the number of nodes
transmits aggregation data to the sink directly. This algorithm and candidate cluster heads in each cluster in order to minimize
can balance the energy consumption, so it can extend the network the energy expended by the nodes. However, no comparison
lifetime effectively. Simulation results show the lifetime of the with other clustering protocols in terms of energy efficiency
algorithm is extended for 50% contrast with LEACH. has been addressed in [4]. In [5], a protocol using PSO has
been proposed. It has the objective of minimizing the
Key words- particle swarm optimization; wireless sensor intra-cluster distance and optimizing the energy consumption
network;clustering; double cluster-heads of the network. In [6], a new cluster-based algorithm using
PSO is proposed. The election of cluster-heads needs to
ȱ. INTRODUCTION consider the information of location and energy reserved about
In recent years, WSNs are applied in many applications. candidates and their neighbors.
Sensor nodes are usually distributed in locations for real-time
Based on this observation, this paper proposes a double
monitor. So energy constraint is the vital problem of the
cluster-heads clustering algorithm using the particle swarm
WSNs. Clustering is one of the energy-efficient techniques for
optimization (PSO-DH). In the basis of LEACH, the algorithm
extending the lifetime of a sensor network. It is often coupled
generates two cluster heads using PSO. It not only considers
with data aggregation to extend the network lifetime [1]. Some
the cluster-head Optimized selection, but also considers node'
clustering algorithms have been proposed for sensor networks.
energy equilibrium. The intra-cluster data transmissions begin
One of the well known clustering protocols called LEACH has
after clusters have been formed. The Master Cluster Head
been introduced in [2]. LEACH is a cluster-based protocol that
(MCH) receives and aggregates the data from its cluster
includes distributed cluster formation in which the nodes elect
members. The aggregation data are sent to the vice one. The
themselves as cluster heads with some probability. The
Vice Cluster Head (VCH) transmits aggregation data to the
algorithm is run periodically and the probability of becoming a
sink directly. MCH is not direct communication with the sink,
cluster head for each period is chosen to ensure that every node
which can save energy. The mechanism better balances the
become a cluster head at least once within 1/P rounds, where P
network workloads, and clearly prolongs the lifetime of a
is the predetermined percentage of cluster heads. LEACH
sensor network.
organizes its operation into rounds, where each round consists
of a setup phase where clusters are formed and a steady state II. SYSTEM MODEL
phase that consists of the data communication process. LEACH
provides significant energy savings and prolonged network A. Network Model
lifetime over conventional multi-hop routing schemes. In
HEED [3], the initial probability for each sensor to become a We consider a square sensing field, and a total of N sensor
cluster head is dependent on its residual energy. Later, sensors nodes is uniformly distributed within the field. Sensed data is
that are not covered by any cluster heads double their collected in a periodic manner, and each such period is defined
probability of becoming a cluster head. This procedure iterates as a round. This period that we have named round consists of
until all sensors are covered by at least one head. In the final the cluster setup phase using PSO algorithm and a steady state
phase. Each round begins with a setup phase at which clusters

This research is sponsored by the Natural Science Foundation


of China (NSFC) under grant no. 60903031 and 61070022.

978-1-4244-8756-1/11/$26.00 2011
c IEEE 763
are formed. Clustering generates a master cluster-head and a global best position Pgd so far among the entire group of
vice cluster-head. This is followed by a steady state phase in particles. The particle will have velocities, which direct the
which the data sensed are transmitted to the sink. The master flying of the particle. In each generation, the velocity and the
cluster-head is used for the date collecting and date position of the particle will be updated. The velocity and the
aggregation. The aggregation dates are sent to the vice one. position update equations are given below as (3) and (4)
The Vice Cluster Head (VCH) transmits aggregation data to respectively.
the sink directly. Vid (t + 1) = WVid (t ) + c1α ( Pid − X id (t )) + c2 β ( Pgd − X id (t ))
We make some assumptions about the sensor nodes and the (3)
underlying network model:
X id (t + 1) = X id (t ) + Vid (t + 1) (4)
1) There is a sink located in the square sensing field.
Where, V is the particle velocity, X is the particle position,
Sensors and the sink are all stationary after deployment. This is
a typical property for sensor network application.
t is time. c1 and c2 are learning factors, Į and ȕ is random
2) All nodes are homogeneous and have the same numbers between 0 and 1, Pid is the particle’s best position, Pgd
capabilities. Each node is assigned a unique identifier (ID). is the global best position and W is the inertia weight.
3) Nodes can use power control to vary the amount of
IV. PSO-DH ALGORITHM
transmission power, which depends on the distance to the
receiver. Detailed descriptions of the PSO-DH are in the following
4) Each node knows its own location through location three subsections: the fitness function of PSO, the selection
techniques such as RSSI localization based on core [7]. MCH and VCH and PSO-DH algorithm steps.
B. Energy consumption model A. The fitness function of PSO
Our energy model for the sensors is based on the first order A major issue on using PSO algorithm is the determination
radio model as used in [5]. In this model, the transmitter of fitness function. Fitness function is closely related with the
dissipates energy to run the radio electronics and the power characteristics of problem domain, and it directly determines
amplifier, and the receiver dissipates energy to run the radio the performance of the optimal solution of the algorithm. Based
electronics. The radios can perform power control and hence on [5], we definite the fitness function, and analyze the
use the minimum energy required to reach the intended clustering of WSN. First, fitness function definition should
recipients. We adopt a typical energy consumption model consider the node residual energy, because cluster heads
whose specific details can be found in [5]. The energy spent for consume more energy than the member nodes. Second, the
transmission of an l-bit packet over distance d is: average distance between cluster heads and member nodes are
considered due to cluster head responsible for collecting data
­°l ⋅ E + l ⋅ ε d 2 , if d < d from member nodes.
elec FS 0 (1)
ETX (l , d ) = ®
4

°̄ elec
l E + l ⋅ εTR d , if d ≥ d0 Based on the above two points, we definite the fitness
WhereˈEelec is the energy dissipated per bit to run the functions f (i ) for node i :
transmitter or the receiver circuit, İFS and İTR depends on the
transmitter amplifier model we use, and d0 is the threshold
f (i ) = ε × f1 (i ) + (1 − ε ) f 2 (i ) (5)
m
transmission distance. In addition, to receive this message, the
radio expends energy: f1 (i) = E (i) / ¦ E (k ) (6)
k =1, k ≠ i
E RX (l ) = l ⋅ Eelec (2) m
The data aggregation model used in our simulations f 2 (i ) = (m − 1) / ¦ d (i, k ) (7)
assumes that the overall information collected by a cluster of n k =1, k ≠ i
nodes, where each node collects k bits of data, can be Function f1(i) is the ratio of node i’s energy to the total
compressed to k bits regardless of the number of nodes in that energy of cluster, m is the number of nodes within the cluster,
cluster. In our simulations, the energy cost for data aggregation E(k) is the energy of node k. Function f2(i) is the countdown of
is set as EDA. total Euclidean distance of cluster nodes to node i, d(i,k) is the
distance between node k and node i. İ is a user defined constant
III. PARTICLE SWARM OPTIMIZATION used to weigh the contribution of each of the sub-objectives.
The PSO algorithm is an evolutionary computing technique The fitness function defined above has the objective of
based on the principle such as bird flocking. This method was simultaneously minimizing the intra-cluster distance between
first proposed by Kennedy and Eberhart [8]. In PSO a set of nodes and their cluster head i, as quantified by f2(i); and also of
potential solutions are called particles that are initialized optimizing the energy efficiency of the network as quantified
randomly. Each particle will have a fitness value, which will be by f1(i). According to the fitness function defined above,
evaluated by the fitness function to be optimized in each choose the node with the maximum value of f(i) as cluster
generation. Each particle knows its best position Pid and the head, and it is the optimum.

764 2011 6th IEEE Conference on Industrial Electronics and Applications


B.The selection MCH and VCH V. SIMULATION RESULTS

In PSO iterative process, select the optimal solution as In this section, we evaluate the performance of the PSO-DH
MCH, and the suboptimal solution as VCH. When iterations of mechanism via simulations. Simulation experiments are carried
PSO ended, the global best is the optimal solution, and the out in the network simulator OMNET++ (Simulation
global best of the previous iterations is the suboptimal solution. Environment, http://www.omnetpp.org). We ran the
According to the fitness function, The VCH also has more simulations for 200 nodes in a 200 m × 200 m network area with
energy, and the nearest distance with the MCH. So we simply equal initial energy. The performance of our algorithm was
choose the suboptimal solution as the VCH. The simulation compared with the clustering protocols for WSNs, LEACH [2]
results show that such choice can achieve good performance. and PSO-LEACH [6]. Simulation compares their lifetime and
residual energy respectively. Network lifetime is the rounds
C. PSO-DH Algorithm Steps
until 20% nodes die. The simulation parameters are given in
PSO-DH algorithm is similar to LEACH. Its execution is Table 1, in which the parameters of the radio model are the
periodic. This algorithm first is initial clustering using LEACH same as those in [5].
algorithm. Each cluster optimally chooses the MCH and VCH TABLE 1 SIMULATION PARAMETERS
using PSO. The intra-cluster data transmissions begin after Parameter Value
clusters have been formed. Each MCH receives and aggregates
Network coverage (0,0)~(200ˈ200)m2
the data from its cluster members. Many clustering have
proposed the use of coordinated TDMA scheduling in the Sink location ˄100ˈ150˅m
MAC layer. The aggregation dates are sent to the VCH. The Transmitter circuitry, Eelec 50nȳ/bit
VCH transmits aggregation data to the sink directly. Process of
İTR 0.0013pȳ/bit/m4
the specific steps is as follows:
ǼFS 10 pȳ/bit/m2
(1) We first are initial clustering Using LEACH algorithms.
aggregation energy per bit, EDA 5nJ/bit
All member nodes send information about its current energy
and locations to its cluster head in each cluster. This cluster path lossˈĮ 2
head is the initial cluster head. Initial energy 0.5J
(2) Based on this information, the initial cluster head runs Data packet size 4000 bit
this algorithm to select the master cluster head and vice cluster Control packet size 100 bit
head using PSO. This step is the core, and the basic steps are as
N 200
follows:
1) Initialize particle swarm. Randomly initialize position c1 and c2 2
and velocity of each particle. W 0.9
2) Calculate the fitness of each particle using formula (5) to İ 0.6
(7).
3) Find the personal and global best for each particle. The Fig. 1 illustrates the system lifetime, defined by the number
personal best is the current position of the particle, and the of nodes alive. Clearly, our proposed algorithm can prolong the
global best is the position of the particle that has the maximum network lifetime significantly compared to LEACH and
fitness. PSO-LEACH. This is because our algorithm produces the
4) Update the each particle’s position and velocity using better network partitioning with minimum intra-cluster distance
formula (3) and (4). Map the new updated position with the and also cluster head that are optimally distributed across the
closest coordinate. network. Thus, the energy consumed by all nodes for
5) Repeat steps 2) to 4) until the maximum number of communication can be reduced since the distances between
iterations is reached. Select the global best as MCH, and the member nodes to their cluster head are shorter. On the
global best of the previous iterations as VCH. The initial contrary, in LEACH some nodes have to bridge long distances
cluster head transmits the information that contains the MCH in order to reach a cluster head due to poor network clustering.
and VCH ID to all nodes in the cluster. As a result, some nodes dissipate a large amount of energy
(3) The MCH sets up a TDMA schedule for its members to while transmitting their data to a faraway cluster head. In the
avoid collisions among data messages, allowing the radio PSO-LEACH cluster head excessive more workloads, so it
devices of each member to be turned off at all times, except consumes more energy. As we can be seen from the Fig.1, the
during their transmission time. Once the cluster head finishes lifetime of PSO-LEACH extends 15% to one of LEACH, and
receiving data from its entire members at the end of each the lifetime of PSO-DH extends nearly 50% to one of
frame, the cluster head performs data aggregation and sends the PSO-LEACH. So the proposed algorithm can effectively
aggregated data to the VCH. The VCH sends the aggregated balance energy consumption in the cluster.
data to the sink.

2011 6th IEEE Conference on Industrial Electronics and Applications 765


it adopts the communication mode of the dual cluster head, and
this mode can balance the network workload.

VI. CONCLUSIONS AND FUTURE WORK


In this paper, we have presented a double cluster-heads
clustering algorithm using the particle swarm optimization
(PSO) algorithm. We have defined a new fitness function that
takes into account the minimum distance between the member
node and its cluster head, and the residual energy of nodes in
the cluster-head selection algorithm. For balancing the network
workload, we adopt the dual cluster head strategy. Results from
the simulations indicate that the proposed algorithm gives a
higher network lifetime compared to LEACH and
PSO-LEACH. Our future work includes the implementation of
the multi-hop routing among the VCHs, and the effect of
parameters in this algorithm.
Fig.1 Number of nodes alive over time
REFERENCES
[1] AI Karaki JN, Kamal AE, “Routing techniques in wireless sensor
networks: A survey”, IEEE Wireless Communications, 2004,
11(6):6-28.
[2] W. R. Heinzelman, A. P. Chandrakasan, H. Balakrishnan,
“Energy-efficient communication protocol for wireless microsensor
networks”, Proceedings of the 33rd Hawaii International Conference on
System Sciences (HICSS-33), January 2000.
[3] O Younis, S Fahmy, “Distributed Clustering in Ad hoc Sensor
Networks: A Hybrid, Energy-Efficient Approach”, In Proc. IEEE
INFOCOM 2004, Hong Kong, China, March, 2004.
[4] J. Tillet, R. Rao, and F. Sahin, “Cluster-head identification in ad
hoc sensor networks using particle swarm optimization,” IEEE
International Conference on Personal Wireless Communications, pp.
201-205, December 2002.
[5] N. M. Abdul Latiff, C. C. Tsimenidis, B. S. Sharif, “Energy-aware
clustering for wireless sensor networks using particle swarm
optimization”, The 18th Annual IEEE International Symposium on
Personal, Indoor and Mobile Radio Communications (PIMRC'07), Sept.
Fig.2 The Residual Energy (J) 2007:1-5.
[6] Liang ying, Yu Haibin, Zeng Peng, “Optimization of cluster-based
Fig. 2 illustrates the system residual energies. We can see routing protocols in wireless sensor network using PSO”, Control and
from the Fig.2, although the PSO_LEACH algorithm can Decision, 2006, 21: 453-456.
prolong the lifetime, but its total energy consumption is same [7] Jia Fu-li, Li Feng, Zhang Rui-hua, “RSSI localization based on core in
with LEACH. It is because the collection of the position and WSN”, Computer Engineering and Applications, 2008, 44(30):118~120.
energy information for choosing the optimum cluster head [8] J. Kennedy and E. R.C., "Particle swarm optimization," in IEEE
International conference on Neural Networks, Perth, Australia, 1995,
would bring additional energy consumption. Our proposed pp.1942-1948.
algorithm can reduce the overall energy consumption, because

766 2011 6th IEEE Conference on Industrial Electronics and Applications

Você também pode gostar