Firefly Algorithm Optimization Based WSN Localization Algorithm PDF
Firefly Algorithm Optimization Based WSN Localization Algorithm PDF
Firefly Algorithm Optimization Based WSN Localization Algorithm PDF
LOCALIZATION ALGORITHM
Bingnan Pei, Hao Zhang*, Tengda Pei,Hongyan Wang
Information Engineering College,Dalian University,Dalian,Liaoning 116622
Keywords Wireless sensor network(WSN), Firefly
algorithm, Node location, Location error.
Abstract
Regarding the relatively big errors with running the DV-Hop
localization algorithm in a network topology environment,
with which the nodes were randomly distributed, the firefly
algorithm(FA) was used to correct the position estimated by
DV-Hop, a firefly optimization localization algorithm based
on DV-Hop was proposed. The mathematical model was
built with the smallest error for all of unknown nodes, and
the firefly algorithm was used to obtain the optimal solution
of the model without additional devices and increasing the
traffic. The simulation results show that the average
localization error of the FDV-Hop algorithm is significantly
improved compared with the original algorithm.
1 Introduction
In Wireless Sensor Networks, location information is critical
for the monitoring activities of sensor networks, the monitor
messages without location information are usually
meaningless. Therefore, to determine the position the event
occurred or the location information of the sensor nodes is
one of the most basic functions of the sensor nodes, which
plays a crucial role in the sensor network application [1].
The sensor nodes are divided into beacon nodes and
unknown nodes depending on whether the node's position is
known or not. Beacon nodes share a very small proportion in
the network nodes and their exact location can be got
through GPS positioning equipment or other methods.
Beacon nodes are reference point for the location of the
unknown nodes. According to whether the positioning
process need to measure distance between nodes, the
localization algorithm [2] are divided into distance-based
and distance irrelevant. The distance-based ones estimate the
position through measuring the actual distance or the
azimuth between the neighboring nodes, which can obtain a
better positioning accuracy at the cost of external hardware
support, the other ones use the number of hops between
nodes to estimate the distance without external hardware
devices support, the cost is relatively lower comparing to the
distance-based ones. At the same time, since the algorithm is
simple, the distance-independent positioning algorithms are
getting more and more attention. Nowadays the most studied
algorithms include centroid algorithm [3], amorphous
algorithm [4], APIT algorithm [5] and DV-Hop algorithm
[6].
HopSizei
j zi
( xi x j ) 2 ( y i y j ) 2
(1)
j zi
d k12
dk 22
(3)
( x N x) 2 ( y N y ) 2 d kN 2
The N-th equation was subtracted by the previous (N-1)
equations
respectively.
Set
di
A
#
#
2( x N 1 x N ), 2( y N 1 y N )
xi2 yi2
,then
the
x
y
2
d12 d N2 d kN
d k21
2
d k22
d 22 d N2 d kN
b
.
#
2
2
2
2
d N 1 d N d kN d k ( N 1)
The result of Ax=b can be got according to Eq(3) as
x=(ATA)-1ATb.
Where
the
neighborhood
i
Ni (t) { j : dij (t) Rd (t);li (t) l j (t)},0 Rdi (t) d Rs ,Rs is
set
the
di
( xi x ) 2 ( y i y ) 2
(8)
Fitness( x, y )
(d i d i )
(9)
nt
l0
0.4
0.6
0.08
20m
( xi x ) 2 ( y i y i ) 2
i 1
Run
(10)
communication radius R
u 100 %
parameter
location region
the number of nodes
2m
values
100mh100m
100
20m25m30m
4,8,12,16,20,24
100
50
20
Fig2.the location error distribution of FDV-Hop
5 Conclusions
This paper proposed a firefly algorithm optimization based
DV-Hop algorithm(FDV-Hop) for wireless sensor network,
established a mathematical model of minimal the sum of
location error of all unknown nodes and used firefly
algorithm to get the optimal solution of the models to get the
best position estimate of the unknown nodes. Simulation
results show that the proposed algorithm is effective and the
ALE of FDV-Hop algorithm is less than DV-Hop algorithm.
The improved algorithm does not add any extra hardware
cost and traffic. At the same time, it has a good adaptability
for a variety of wireless sensor network. If necessary, better
location accuracy can be got when the proposed algorithm is
combined with other algorithms.
References
Fig.3 The variation of the average location error with the number
of anchor nodes for comparison of