Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Journal of Applied Computer Science, no.

6 (3) /2009, Suceava

An Energy Efficient Scheme for Data Gathering in Wireless Sensor Networks


Using Particle Swarm Optimization

Ayon Chakraborty 1, Kaushik Chakraborty 1, Swarup Kumar Mitra 2, M.K. Naskar 3


1
Department of Computer Science and Engineering , Jadavpur University, Kolkata – 32, India.
2
Department of Electronics &Communication Engineering, MCKV Institute of Engineering, Howrah.
3
Advanced Digital and Embedded Systems Lab, Department of ETCE, Jadavpur University, Kolkata– 32,India.
jucse.ayon@gmail.com, kaushik.chakraborty9@gmail.com
swarup.subha@gmail.com, mrinalnaskar@yahoo.co.in

Abstract-Energy efficiency of sensor nodes is a sizzling issue, taken network lifetime to be the time from inception to the
given the severe resource constraints of sensor nodes and time when the network becomes nonfunctional, which we
pervasive nature of sensor networks. The base station being have assumed to be the time when a single node dies.
located at variable distances from the nodes in the sensor field, Moreover it is widely accepted that balancing the energy
each node actually dissipates a different amount of energy to
transmit data to the same. The LEACH [4] and PEGASIS [5]
dissipation among the nodes of the network is a key factor
protocols provide elegant solutions to this problem, but may not for prolonging the network lifetime [2]. Each sensor node is
always result in optimal performance. In this paper we have provided with transmit power control and omni-directional
proposed a novel data gathering protocol for enhancing the antenna and therefore can vary the area of its coverage [3]. It
network lifetime by optimizing energy dissipation in the nodes. has been established in [4] that communication requires
To achieve our design objective we have applied particle swarm significant amount of energy as compared to computations.
optimization (PSO) with Simulated Annealing (SA) to form a In this paper, we consider a wireless sensor network where
sub-optimal data gathering chain and devised a method for the base station is fixed and located far off from the sensed
selecting an efficient leader for communicating to the base area. Furthermore all the nodes are static, homogeneous and
station. In our scheme each node only communicates with a
close neighbor and takes turns in being the leader depending on
energy constrained and capable of communicating with the
its residual energy and location. This helps to rule out the BS.
unequal energy dissipation by the individual nodes of the The LEACH protocol [4] presents an elegant solution to
network and results in superior performance as compared to this energy utilization problem where nodes are randomly
LEACH and PEGASIS. Extensive computer simulations have selected to collaborate to form small number of clusters and
been carried out which shows that significant improvement is the cluster heads take turn in transmitting to the base station
over these schemes. during a data gathering cycle. The PEGASIS protocol [5] is a
further improvement upon the LEACH protocol where a
Keywords: Wireless sensor network, Data Gathering Cycle, greedy chain of nodes is formed which take rounds in
Greedy Algorithm, Swarm intelligence, Simulated Annealing, transmitting data to the base station.
Network Lifetime. In this paper, we approach the problem from a new
viewpoint. In our scheme a chain is formed, but instead of
I. INTRODUCTION allowing all nodes to become the leader, to communicate
with the base station the same number of times, the network
Wireless sensor networks consist of sensor nodes that are lifetime is increased by allowing the individual nodes to
randomly deployed in a large area, collecting important transmit unequal number of times to the base station
information from the sensor field. Applications of sensor depending on their residual energy and location.
networks include climatic data gathering, underwater Furthermore, instead of forming a greedy chain, which may
monitoring, battlefield surveillance, national security, health not always ensure minimum energy dissipation, we make use
care etc. These sensor nodes have very limited energy of modern heuristic optimization techniques like particle
resources and hence, the energy consuming operations such swarm optimization (PSO) [6] and simulated annealing
as data collection, transmission and reception, must be kept (SA)[7]. This results in an enhanced network performance as
at a minimum [1]. Also, it is often infeasible to replace or balanced energy dissipation by the individual nodes is
recharge the sensors nodes deployed in inaccessible terrains. achieved in the network.
The sensor networks are required to transmit gathered data to The rest of the paper is organized as follows: Section 2
a base station (BS) or sink, often distantly located from the describes the energy dissipation model and Section 3 judges
sensor field. Network lifetime thus becomes an important the emergence of an energy-efficient data gathering protocol.
metric for sensor network design and efficiency. We have Section 4 begins with a brief idea about PSO and SA

1
Computer Science Section

followed by the gradual development of our algorithm. Our III. PROPOSED ENERGY EFFICIENT DATA GATHERING
scheme is evaluated by results obtained from extensive SCHEME FOR LIFETIME ENHANCEMENT
simulation in Section 5. Finally, we conclude in Section 6.
The PEGASIS scheme [5] depends upon a greedy chain
II. THE ENERGY DISSIPATION MODEL formation whereas the LEACH scheme [4] randomizes the
leader selection in the network. While the greedy chain can
Our aim in this paper is to minimize the energy usage in not always guarantee minimal energy consumption, the
the sensor nodes by formation of an optimal chain through randomized leader selection does not take into account the
which the data gathering will take place. For this purpose, we node's capability in being the leader, in terms of its energy
assume the radio model as discussed in [4]; for the radio content and transmit distance. Keeping the above drawbacks
hardware dissipation. This is one of the most widely used in mind, we proceed to form a suboptimal chain for data
models in sensor network simulation analysis. The energy gathering and device a scheme to choose an efficient leader
spent in transmitting a k-bit packet over a distance of d for communicating to the base station.
meters, is given by:
A. Basic PSO algorithm and Simulated Annealing
Etx(k, d) =( ξelec + ξamp * d2) *k (1)
Particle Swarm Optimization (PSO), a kind of
and that for receiving the packet is, evolvement-computation technology based on the concept of
swarm intelligence, was raised by Kennedy and Eberhart in
Erx(k)= ξelec * k (2) 1995 [6], who were inspired by the social behavior of
flocking birds. A “swarm” is an apparently disorganized
Here ξelec (50nJ/bit) is the energy dissipated per bit to run collection (population) of moving individuals that tend to
the radio electronics and ξamp is the energy expended to run cluster together while each individual seems to be moving in
the power amplifier for transmitting a bit over unit distance. a random direction. It uses a number of agents (particles) that
n is the path loss exponent, whose value enhances with constitute a swarm moving around in the search space
increasing channel non-linearities (usually, 2.0≤ n ≤4.0). In looking for the best solution. Each particle is treated as a
our approach, we have used both the free space (distance2 point in a D-dimensional space which adjusts its “flying”
power loss) and the multipath fading (distance4 power loss) according to its own flying experience as the overall
channel modes. In our model, we assume, that inter-nodal experience of the swarm. Each particle keeps track of its
distances are small compared to distance between the nodes coordinates in the problem space which are associated with
and the Base Station (BS). Thus for communication among the best solution (fitness) that has been achieved so far. This
sensors we take n = 2, and that between the leader and BS, value is called pbest. Another best value that is tracked by
we take n = 4, in equation (1). Value of ξamp = 100pJ/bit/m2 the PSO is the best value obtained so far by any particle in
for n = 2 and 0.0013pJ/bit/ m4 for n = 4. the neighbors of the particle. This value is called gbest. The
Now for all practical purposes, we can assume that the PSO concept consists of changing the velocity (or
computational energy is much less than the communicational accelerating) of each particle toward its pbest and the gbest
energy and thus can be neglected. Thus for the chain of position at each time step. The PSO formulae defines each
length n, the total energy expended in data gathering is the particle in the D-dimensional space as Xi = (xi1, xi2, xiD).
summation of the energy used by the individual sensor nodes Each particle has a little memory to store its pbest value
and the leader. Assuming a constant packet size of k = 2000 (previous best position) as Pi = (pi1,pi2, .. piD) and a
bits, velocity along each dimension as
n −1
Vi = (vi1,vi2, …viD).
Etotal={ ∑
i =1
(ξelec+ξamp*di2)+(ξelec + ξamp* D4)}*k (3)
The updating equations are,
xid = xid + vid (position update)
In equation (3) di denotes the distance between the (i+1)th vid = vid + c1r1(pbest – xid) + c2r2(gbest – xid)
node and the i th node in the data gathering chain. D is the (velocity update)
distance between the leader and the base station. The values The basic idea of simulated annealing (SA) proposed by
of ξelec and ξamp are stated earlier. Here we impose a threshold Metropolis in 1953 was used in compounding optimization
value on di as dTH . It is also assumed that the channel is by Kirkpatrick in 1983 [7]. It is a stochastic process that
symmetric so that the energy spent in transmitting from node accepts the current optimal solution at a probability after
i to j is the same as that of transmitting from node j to i for searching, which is called the Metropolis Law [8]. The
any given value of SNR. acceptance probability is determined by two factors, the
Energy factor, which can be thought of to be similar to the

10
Journal of Applied Computer Science, no. 6 (3) /2009, Suceava

cost factor or objective function in the PSO algorithm and the ability of PSO, a new algorithm is proposed for the minimum
temperature factor, Ө called the anneal temperature. Starting energy chain formation.
from a higher temperature, Ө is decreased to a lower limit, at
a rate determined by the cooling schedule. As Ө approaches Proposed algorithm for chain formation:
the lower-limit, searching region is constrained around the Input: A set of N sensor nodes, randomly deployed in the
best point. sensor field, and a base station.
B. Chain formation based on Particle Swarm
Optimization Step 1: Initialization
In order to avoid trapping at the local minima and
increase the diversity of the swarm, the simulated annealing At first, a swarm of m particles selected at random is
algorithm is applied to PSO to solve the problem of chain initialized which are expressed as: C1,C2,C3….Cm.
formation. The total number of nodes being n, the solution Ci={node[1], node[2],...,node[N]}, where node[i] = j means
space U can be said to be a collection of arrangements of that the ith member (node) of the chain has id j. The
{1,2,3, … ,n} where two consecutive numbers denote a parameters Өi (initial temperature), Өf (final temperature), α
direct link between those nodes. Thus every arrangement Ci (cooling rate) are initialized. The higher the initial
represents a chain, where U = {Ci | Ci is a permutation of temperature, the better the result is. At low temperature,
(1,2,.. n)}. So Ci denotes the ith particle in our n-dimensional every particle finds its local best chain Cilbest in its local
system. area. L is maximum number of iterations at a certain
temperature and t is the maximum number of iterations for
the total process (t is analogous to the maximum cooling
Energy Function: The energy function for the SA time).
algorithm is designed as
Step 2 : Finding a local best chain
n −1
f(Ci) = ∑
i =1
(100*di2 ) (4) For all the m particles, each one searches for its local best
chain, at a particular temperature Ө, for L iterations. This
The above equation is derived from equation (3), we have searching is done by a random binary swapping, where two
considered the terms (in the chain) related to distance only. positions in a chain (Cold) are randomly selected and
When a particle Cold updates its position to Cnew , ∆f = f(Cnew) exchanged, resulting in a new chain (Cnew). The new chain is
– f(Cold) is used as ∆E representing the energy difference the checked such that distance between the individual nodes do
two energy states. We start by guessing an initial solution, not exceed dTH or else another swapping is done. The old
and proceed, resulting in a solution with smaller energy chain is updated by the newly formed chain according to the
value, than the last solution. In case of a larger energy value, acceptance rule as stated in equation (5).
the decision to accept or reject the solution, is determined by
the probability function in equation (5), Step 3 : Updating the pbest and gbest values

For each particle the Cilbest chain obtained in step 2 is


P = 1 ∆E ≤ 0 compared to the historically obtained best chain Cipbest for
exp(-∆f/ Ө) ∆E > 0 (5) that particle. Again, Cipbest is updated by Cilbest according
to the following rule:
If ∆E is not positive, implying lower energy value of the
new solution, it is accepted; else the acceptable probability P Cipbest = Cilbest
is calculated as in equation (5). If P > rand (0, 1), a random if f(Cilbest) – f(Cipbest) < 0
number between 0 and 1, the new solution is also accepted = Cipbest
else it is rejected. if f(Cilbest) – f(Cipbest) ≥ 0
Cooling Schedule: One of the most important control
parameter in equation (5) is Ө, called the annealing Now, comparing the all the Cipbest values, Cgbest is
temperature; a parameter which is decremented, every time updated by that Cipbest which has minimum energy state i.e.
the system of particles approaches a better solution (or a low f(Cipbest).
energy state). If Өi be the initial temperature and Өf be the
final temperature, and t be the cooling time, Ө(t) = Өf +Өi *α Step 4 : Formation of a new chain
t
, is the designed cooling schedule. Here α is the rate of
cooling, usually (0.7≤ α ≤1.0) and t is the cooling time. For Based on the global knowledge of the swarm each
our purpose we considered t as the number of iterations. The particle forms a new chain from its original best chain
SA algorithm incorporates the concept of probability through (Cipbest) and the globally obtained best chain (Cgbest) by
the Metropolis acceptance rule into the fast optimal search the crossing method as discussed in [9]. For eg. say, Cipbest
= {4,5,2,3,6,1} and Cgbest = {5,2,1,4,3,6}. The slot {2,1,4}

11
Computer Science Section

is randomly chosen from Cgbest and inserted in the same


position in Cipbest and the node ids that are repeated are
deleted. Thus Cinew becomes {5,2,1,4,3,6}. After the
crossover, the energy state of Cinew is compared with that of
Cipbest and the best one (i.e. with lower energy state) is taken
as the new individual best position. The crossover can help
the particles jump out of the local optimization by sharing the
global information about the swarm.

Step 5: Loop
The temperature Ө(t) is calculated. If its value is less than
or equal to Өf or the total number of iterations up to now
exceeds the value of t, the algorithm comes to a halt. The
best chain formed is Cgbest. Else go to step 2.
C. Leader selection phase:
Once the sub-optimal chain is formed we look for the Fig.2 Performance analysis of different protocols with Energy/node 1J and
node which has the maximum value of Eresi /D4 . Here Eresi base station at (25,150).
denotes the residual energy of an individual node before
Here we consider the multipath fading (distance4 power loss)
starting a data gathering round and D is the distance of the
channel mode, as the leader is concerned with
base station from that node.
communicating to the distant base station.
IV. SIMULATION RESULTS To evaluate the performance of our scheme, extensive
simulations were performed on several random 100 node
The node with the maximum value of Eresi /D4 becomes the networks in a 50m*50m field as in [5]. Simulations
leader. performed in MATLAB show that our scheme outperforms
PEGASIS [5] and another scheme by Ant Colony
TABLE 1 Optimization technique (ACO) [10]. This readily implies the
Energy Protocol
efficiency of our method over LEACH [4]. As mentioned in
Section III, for implementing our energy efficient data
(J/node) PERCENTAGE OF DEAD NODES
gathering protocol the chain formation was done by Particle
1 10 20 30 40 50 Swarm Optimization with Simulated Annealing. Simulation
PEGASIS 698 987 1016 1024 1038 1048 results are shown in Table 1. The base station was located at
ACO 698 1008 1041 1049 1054 1056
(25m, 150m) and energy per node was varied. As mentioned
earlier, while comparing with PEGASIS [5], ACO [10] and
NUMBER OF ROUNDS

0.25
SA -PSO 698 1015 1048 1067 1079 1085 our proposed scheme, a common threshold was introduced as
PEGASIS 1157 1992 2026 2044 2071 2089 the inter-nodal
ACO
From Fig 2, we find that our algorithm largely
1157 1982 2062 2092 2109 2119
0.5 outperforms PEGASIS, and also the chain obtained by ACO
SA -PSO 1157 1991 2102 2125 2167 2174 as in [10] to some extent. It also reveals that SA-PSO
PEGASIS 3731 4001 4059 4107 4182 4217 performs better than both ACO and PEGASIS till about 70%
of nodes in the network are dead. Networks with over 70% of
ACO 3731 4110 4177 4209 4223 4241
1 nodes dead are very inefficient and therefore the degradation
SA -PSO 3731 4140 4213 4244 4257 4269 of performance of our schemes under these conditions can
easily be ignored keeping in mind the superior performance
with lesser percentage of dead nodes.
In Figure 3 the chain obtained by our SA-PSO algorithm
is shown for a network of 100 nodes. The base station and
the leader node are also shown in the figure.
Effect of number of nodes on performance:
The main advantage of using PSO is that the
performances of the schemes to which it is applied do not
deteriorate with increasing number of nodes, thus
overcoming the main drawback of other Data Handover
Schemes. This is illustrated in Fig. 1 and Fig. 4 which show
that percentage improvement in the metrics in consideration
Fig.1. Variations in percentage increment in lifetime with SA-PSO over
PEGASIS with number of nodes
does not show a decreasing trend with increasing no. of

12
Journal of Applied Computer Science, no. 6 (3) /2009, Suceava

nodes, with the no. varying from 50 to500 Development time is much shorter than when using more
traditional approaches.
The systems are very robust, being relatively insensitive
to noisy and/or missing data.
We have already developed the chain using SA-PSO, and
also have compared it to the ACO technique. Our future goal
is to study the problem using Genetic Algorithms (GA)
compare it to the SA-PSO and ACO techniques.

REFERENCES

[1] Clare, Pottie, and Agre, “Self-Organizing Distributed Sensor


Networks”,In SPIE Conference on Unattended Ground Sensor
Technologies and Applications, pages 229–237, Apr. 1999.
[2] Yunxia Chen and Qing Zhao, “On the Lifetime of Wireless
Fig3. SA-PSO algorithm applied in a random network of 100 sensor Sensor Networks”, Communications Letters, IEEE, Volume 9, Issue
nodes (figure obtained by Java Simulation). 11, pp:976–978, DigitalObjectIdentifier 10.1109/ LCOMM.
2005.11010., Nov. 2005.
V. CONCLUSION AND FUTURE WORKS [3] S. Lindsey, C. S. Raghavendra and K. Sivalingam, “Data
Gathering in Sensor Networks using energy*delay metric”, In
The protocol considered in this paper ensures that a near Proceedings of the 15th International Parallel and Distributed
optimum energy utilization occurs thereby increasing Processing Symposium, pp 188-200, 2001.
network lifetime as is validated by the simulation results. [4] W. Heinzelman, A. Chandrakasan, H. Balakrishnan, “Energy-
Efficient Communication Protocol for Wireless Microsensor
Networks”, IEEE Proc. Of the Hawaii International Conf. on
System Sciences, pp. 1-10,January 2000
[5] S. Lindsey, C.S. Raghavendra, “PEGASIS: Power Efficient
Gathering in Sensor Information Systems”, In Proceedings of IEEE
ICC 2001, pp. 1125-1130, June 2001.
[6] Eberhart, R. C, Kennedy, J. “A new optimizer using particle
swarm theory”, 1995 .
[7] Kirkpatrick S, “Simulated Annealing“ , Sci, Vol 220, 1983.
[8] N. Metropolis et. al. J. Chem. Phys. 21. 1087 (1953).
[9] Zhi-Feng Hao, Zhi-Gang Wang; Han Huang, “A Particle Swarm
Optimization Algorithm with Crossover Operator”, International
Conference on Machine Learning and Cybernetics 2007, pp -19-
22, Aug. 2007.
Fig.4. Variations in percentage improvement in E*D with SA-PSO over
PEGASIS with number of nodes.
[10] Ayan Acharya, Anand Seetharam, Abhishek
Bhattacharyya, Mrinal Kanti Naskar, “Balancing Energy
Dissipation in Data Gathering Wireless Sensor Networks Using Ant
The SA-PSO algorithm also helps to enhance the Colony optimization” ,10th International Conference on Distributed
performance of our scheme. Reports of applications of each Computing and Networking-ICDCN 2009, pp437-443, January 3-6,
of these tools have been widely published, thus forming a 2009
solid background. Developing solutions with these tools
offers two major advantages:

13

You might also like