You are on page 1of 10

Performance Evaluation of a Wireless Sensor Network Based Tracking System

Nadeem Ahmed, Yifei Dong, Mark Rutten, Travis Bessell,


Salil S Kanhere, Sanjay Jha Neil Gordon
School of Computer Science and Engineering, ISR Division,
The University of New South Wales, Defence Science and Technology Organisation,
Sydney, Australia. Edinburgh, Australia.
{nahmed, ydon, salilk, sanjay} {Mark.Rutten, Travis.Bessell, Neil.Gordon}
@cse.unsw.edu.au @dsto.defence.gov.au

Abstract Carlo method, because it approximates a belief state for


the presence of the target by means of many but finite ran-
In this paper, we present a comprehensive analysis of dom samples. In the past [2-4] PF was shown to be a suit-
the performance of a wireless sensor network based tar- able candidate for deployment in tracking applications us-
get tracking system using the Particle Filter. In particular, ing WSN. However, the achievable tracking and detection
we evaluate the effect ofvarious network design parameters performance of the system, is significantly influenced by
such as the number ofnodes, number ofgenerated particles, several network design parameters, namely: the number of
and sampling interval on the tracking accuracy and compu- deployed sensor nodes, the number of generated particles,
tation time of the tracking system. Based on our analysis, and the sampling interval ofsensor nodes (which is defined
we also present recommendations on suitable values for the as the idle interval between successive samples). All prior
relevant network design parameters, which provide a rea- work simply assumes a particular set of values for these pa-
sonable tradeoff between accuracy and computational ex- rameters without providing insight into how they affect the
pense for this problem. In addition, we also analyse the behaviour of the tracking system. To the best of our knowl-
theoretical Cramer-Rao Bound as the benchmark for the edge, this is the first study that provides a detailed and thor-
best possible tracking performance. We demonstrate that ough examination of the effects of these parameters on the
the results from our simulations closely match the theoreti- tracking and detection performance in a realistic simulation
cal bounds. environment. Based on our observations, we also suggest
We also present initial results from experiments compris- suitable values for the relevant network design parameters.
ing of a 25 node wireless sensor network. Initial experi- In our evaluations, we consider the problem of simulta-
mental results are promising and show that the PF based neous detection and tracking of an object moving through a
estimation is suitable for detection and tracking using inex- particular target region, where a WSN has been deployed.
pensive wireless sensor network devices. The sensor nodes are equipped with acoustic sensors, which
periodically sample the ambient sound and relay the mea-
sured samples to a central base station. The base station ex-
1 Introduction ecutes the PF algorithm on the collected data-set. We used
the Ns2 discrete event simulator [5] for this study. The two
Wireless Sensor Networks (WSN) are increasingly used metrics that we have used to evaluate the performance of
in a variety of applications ranging from environmental the system are: estimation of the tracking error, Le., the
monitoring to industrial automation. A particularly promis- distance between the predicted and the actual location of
ing military application involves using WSN for detecting the target and computation time Le., the time required by
and tracking moving targets such as tanks, vehicles and the PF to execute and detect the target. We evaluated the
troops. Detection and tracking of targets is a mature and effect of each of the aforementioned network parameters on
well-established research area. However, the proposed so- these two performance metrics.
lutions rely on expensive and bulky sensors. Using low-cost We have also analysed the theoretical Cramer-Rao
sensor nodes is an attractive and complementary approach. Bound [6] as the benchmark for the best possible track-
Among several tracking algorithms in literature, for non- ing performance and compared the results of our simulated
linear filtering the Particle Filter (PF) [1], has been a pop- PF algorithm with respect to this bound. Our compari-
ular choice. The PF is also known as the sequential Monte son shows that the accuracy of the simulated PF algorithm

978-1-4244-2575-4/08/$20.00@2008 IEEE

163

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
closely matches the theoretical bound. the local level nodes. Therefore, it is not suited for low-cost
We have conducted experiments with off-the-shelf WSN sensors.
devices (Xbow MicaZ motes) to verify the validity of our Simon et a!., designed and implemented a sniper local-
simulation results. We first conducted calibration exper- isation system based on acoustic signal processing and tri-
iments to characterize the gain for each sensor and noise angulation in [7]. Special hardware (Digital Signal Process-
variations in a realistic environment. These calibration val- ing board) was designed in [7] for the resource-intensive
ues are then used by the PF algorithm for tracking purposes. acoustic signal processing tasks. In [8], He et a!., designed
The experimental results are promising and the PF based and implemented a WSN with magnetic, acoustic, and mo-
tracking system is able to track the movement of the target tion sensors, which could classify a moving target such as
with high accuracy. a walking person or a vehicle. The motion sensor used in
The rest of this paper is organised as follows: Section 2 this work is a micro-power impulse radar. Due to their high
summarises related work. In Section 3 we provide a brief cost (typically US$5K), they may not be a suitable choice
overview of the PF and discuss how we adapt it to our sys- for many WSN systems.
tem. Interested readers are referred to a book by one of Coates et a!., also make use of the PF for target tracking
the co-authors [1] for further elaboration. The simulation- in [9]. However, they propose to model each mote as a par-
based evaluations along with relevant discussions on appro- ticle. Consequently, the corresponding real-world deploy-
priate system design parameters are presented in Section 4. ment would require thousands of motes to achieve tracking
Section 5 derives the Cramer-Rao bound and presents a performance comparable to their simulation results. Fur-
comparison of our simulation results with this theoretical ther, the authors assumed that the motes have a fixed sens-
bound. Section 6 presents results from our initial experi- ing range of 8 meters, a fixed detection probability of 0.7
ments using a 25 node WSN. Finally, Section 7 concludes within this sensing range and also assumed absence of any
the paper and discusses future work. communication errors. All these assumptions make it diffi-
cult to apply the proposed algorithm in a real-world system.
2 Related Work What is lacking is a comprehensive study of a WSN-
based detection and tracking system, based on realistic as-
sumptions, that explains the effect of various network pa-
In this section, we present a brief overview of previous
rameters on the tracking accuracy of the system. This is
work on using miniature sensor devices for target tracking.
precisely the objective of our work.
The work introduced in [4], is one of the earliest attempts to
use tiny acoustic sensor devices for tracking purposes. The
target is estimated via triangulation, i.e., comparing the dif- 3 Overview of the Particle Filter
ference in sound propagation delays from the sound source
to different acoustic sensors. In [2], Gu et a!. developed a In this section we describe a recursive Bayesian tracking
light-weight multi-modal detection algorithm for Mote level algorithm referred to as a Track-Before-Detect Particle Fil-
micro-sensors. They found out that simple fusion algo- ter (TBD-PF) in [1]. Using this type of filter allows the in-
rithms such as moving averages with thresholds are useful formation in the measurements from all sensors to be incor-
in object detection using WSN. Unfortunately, both of these porated exactly into the estimation of the target state. The
studies assume that the sensor readings are free of ambient PF is a suboptimal non-linear filter that performs estima-
noise, which is a highly unrealistic assumption. In a typical tion using sequential Monte Carlo methods to represent the
outdoor environment (especially given the hostile nature of probability density function of the target state. There are
battlefields), it is expected that the sensor readings would several advantages of using a PF based estimator over other
be significantly influenced by ambient noise. In addition, non-linear filtering approaches including
given that the sensor nodes are small form factor devices
and low-cost, it is expected that the readings would inher- • Target presence and absence are explicitly modelled by
ently be noisy due to their low fidelity. the probability function.
In [3], Duarte et a!., evaluated different machine learn-
• The method can track targets moving randomly in the
ing algorithms in the context of vehicle detection. The au-
field of deployment.
thors proposed a two level detection architecture to increase
the reliably of the PF. Different target detection algorithms, • Non-Gaussian noise in sensor readings can be incorpo-
such as K-nearest neighbour, maximum likelihood classi- rated into the filter by estimating the distribution func-
fier and support vector machine classifier, were evaluated at tion of this noise. This incorporates the noise due to
a local node level. Then, the results of the local node level calibration errors in sensors in addition to the environ-
evaluation are passed to a group, which is formed dynam- mental noise.
ically. The fusion algorithms are performed at the group
level nodes. However, resource-intensive tasks such as Fast • It permits us to detect targets with variable levels of
Fourier Transform (FFf) are required to be performed at intensity.

164

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
The design of the filter has been limited to estimating the where ql and q2 control the uncertainty of the target trajec-
state of a single target for the purposes of this work. tory in position and intensity respectively.
We now give a step by step overview of the operation of
the PF and discuss how it is adapted to meet the require- 3.2 Sensor Model
ments of our system.
Each sensor i E {I ... N} provides a measurement
3.1 Target Model (acoustic in our case) at discrete instants of time t. The
source is assumed to be emitting a white acoustic signal of
We begin by assuming that N sensors are deployed in constant power. This measurement is made by calculating
a n x m surveillance area, with known positions (Xi, Yi), the variance (the acoustic power) of 1000 acoustic samples
i E {I ... N}. Suppose that a target is moving in this area taken at a constant sampling rate. It is assumed that each of
according to a known dynamic model: these samples is approximately Gaussian distributed, with
zero mean and variance given by
X t +1 = FXt + Vt (1)
where ai2 + "Ii I t d-t,i'e (7)

• Vt is the process noise, normally assumed to be Gaus- where It is the intensity of the target at time t, is the a;
sian noise with covariance matrix Q. measurement noise variance for sensor i, "Ii is the gain fac-
tor for sensor i and ~ is the path loss, assumed identical for
• t is time index.
each sensor. The distance dt,i from the target to sensor i at
• X t is the target state vector defined as follow: time t is given by
Xt = [Xt, Xt, Yt, 1h, It]T (2) dt,i = J(Xi - Xt)2 + (Yi - Yt)2. (8)
here (Xt, Yt) and (Xt,1it) denote the position and the It can be easily shown that the resulting measurement is X2 -
velocity of the target and It denotes the target's inten- distributed with 1000 degrees of freedom. This distribution
sity. can be quite accurately approximated by a Gaussian with
The existence of the target in the data is also modelled. mean and variance
The target existence variable, E t , can take on two values,
namely E t = 0 indicating the absence of the target and hi(Xt ) = a; + "Iiltd~f (9)
E t = 1 denoting its presence. The target can appear at any
place and at any time-step. Following its appearance, the
Ri(Xt ) = ~s c [0-; + 'Yiltd~fr (10)

target proceeds on a trajectory until it disappears, i.e., the where c is a constant used to model nonlinearities in the
intensity of the target signal strength falls below the sensor's system and N s is the number of samples in the measurement
sensitivity level. We can model the transitional probabilities (1000 in this case). Section 4.1 discusses the method of
of the target birth, P b , and its death, Pd , as follows calibration used to determine a;
and "Ii for each sensor.
Pb = Pr{Et = llEt - 1 = O} (3) The sensor model can thus be summarised as
Pd = Pr{Et = 0IEt - 1 = I}.
if E t ~ 1
(4)
Zt i = {hi(Xt) + Wi (Xt ) (11)
It is assumed that these probabilities are known a priori. 'wi otherWIse
However, if they are not known a very low value is assumed
(e.g., 0.01). where Wi (Xt ) is Gaussian distributed with zero mean and
The motion matrix, F, in (1) for a sampling interval of variance Ri(Xt ) and wi is Gaussian distributed with zero
T is given by mean and variance -f1 cat.
The complete measurement
recorded at time t is denoted as Zt = {Zt,i : i = 1 ... N},
1 T 0 0 0 and the set of all measurements up to time t is denoted
0 1 0 0 0 Zl:t = {Zk : k = 1 ... t}.
F= 0 0 1 T 0 (5)
0 0 0 1 0 3.3 Estimation Algorithm
0 0 0 0 1
The covariance matrix Q of Vt is given by The basic function of the particle filter is to approximate
the posterior density of the target state, given all measure-
T ql
3
T ql
2
0 0 0
2 ments, by a set of P points, X ~p) , called particles, and cor-
T~ql 0 0 0
2 Tql responding weights, w(p) [1]. That is
Q= 0 0 T 3 ql T 2 ql 0 (6)
-2- p
0 0
T~ql
2 Tql 0 p(XtIZ1 :t ) ~ L w~p)6(Xt - X~p»), (12)
0 0 0 0 Tq2 p=l

165

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
where 8(.) is the Dirac delta function. The particles and 4. Probability of existence: The probability of a target
their weights are updated recursively as new measurements existing in the data can be calculated using the sum of
become available. At each time step the particle positions the weights of the birth and target particles [11]
are proposed from their previous position by sampling from
the target dynamics (1) and the weights are calculated using pe Q (16)
+ PdPte_ 1 + (1 - Pb)(1 - pte_I)
r-..J

the likelihood function arising from the measurement equa- t r-..J a


tion (11) assuming that the target is present a = Wt(T) (1 - Pd)Pte_ 1 + Wt(B) Pb(1 - pte_I)'
N (17)
w~p) ex II N {Zt, hi(Xt ), Ri(Xt )} . (13)
5. Combining: The birth and target particles are then
i=1
combined into one set of PB + PT particles with
where N { x, J-l, (J2} is the multivariate Gaussian function weights
with mean JL and variance (J2 evaluated at x.
Since the target motion model is linear in the target state w~B,p)* = Pb(1 - Pte_I)Wt(B)w~B,p) (18)
and the measurement model does not depend on the ve-
locities a technique known as Rao-Blackwellisation [1] or w~T,P)* = (1 - Pd)Pte_ 1 Wt(T)w~T,p), (19)
marginalisation [10] can be used to update the velocities
followed by another normalisation.
of each particle. In this case each particle uses a standard
Kalman filter to update the velocities exactly, given the po- 6. Resampling: The last step in the PF is the resampling
sitions, rather than rely on Monte Carlo methods to explore process. Resampling eliminates particles with weights
the velocity space. The method is one of a family of vari- that are of low importance and multiplies those with
ance reduction techniques, which aim to reduce the variance higher values. The resampling also reduces the set of
of the particle weights resulting in a more efficient filter. P B + PT particles down to PT , resulting in the set of
At each time step the particle filter implemented here
particles {X~P)}:~I all with uniform weights. We use
forms two sets of particles. One set of particles carries
the systematic resampling procedure described in [1].
information about the target from the previous time step
(called the target particles), while the other set searches for a 7. If Pe is above a predetermined threshold then a target
new target in the data (called the birth particles). The prob- is declared present, where the particles resulting from
ability of the target existing in the data, pte = Pr{ E t = 1}, the previous step describe the target state. An estimate
can be calculated as a function of the weights of these two of the target position can be calculated from the set of
sets of particles [11]. particles by taking their mean
The resulting particle filter algorithm follows
1. Particle proposal (birth): A set of PB particles, (20)
{X~B,p)}:~I' is generated assuming that there is no
target in the data. In this case we randomly place sam-
ples around the coverage region. 8. For the next time step, we collect a new set of readings
Zt+1 and go back to Step 1.
2. Particle proposal (target): A set of PT particles,
{X~T,p)}:~1 is proposed from the particles at the pre-
4 Simulation Results
vious time, X ~~)I' sampling from (1) in combination
with the Rao-Blackwellised velocities.
As discussed earlier, one of the goals of this study is
3. Weight calculation: Once we have placed all the parti- to determine the effect of various parameters on the per-
cles we need to compute their associated weights using formance of the tracking system. A secondary goal is to
(13) and the measurement from the current time, Zt provide recommendations on the choice of these network
design parameters to engineer a real WSN-based tracking
II N { Zt, hi (XIS,p)), Ri(XIS,p))}
N
solution. The simulations were conducted using the NS2
w~S,p) = (14)
discrete event simulator [5].
i=1
For our simulation studies, we assume that N sensors
and then normalise are statically deployed in an area of size 120m x 120m.
We studied two deployment topologies: (i) Grid: where
-(S,p) Ps
w(B,p) - ~ where WeB) - '""" iiJ(B,i) (15) the nodes are placed at an equal distance from each other
t - weB) , t - L-t t resembling a perfect grid shape and (ii) Uniform Random
t i=1
(UR): where the nodes are uniformly distributed over the
where S can refer to either B or T. entire field of deployment. However, to avoid large areas

166

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
120
Table 1. Simulation Parameters
J"
Parameter Value
102
~/ Radio Propagation Model Two Ray Ground
90 85

75 ~ ~:.. • .. "0 . .~.. ... .,., ,;roo ~ oo. ."' ~


~/ Node transmission range 35m
68
~V Acoustic sensing range 25m
A' Speed of target
51
O.35m1sec
~r Region 120m x 120m
1
17

.~
o 17 34 51 66 85 102 120
15 30 45 00 75 90 105 12D
grid and DR deployment. As can be seen from this fig-
ure, the PF is very accurate in tracking the motion of the
(a) (b) target. To quantitatively measure the performance of the
tracking system, we define a metric, accuracy ofestimation
as the average Euclidean distance between the actual and
Figure 1. Grid and Uniform deployment topol-
estimated location of the target. This metric is computed
ogy (49 nodes) with the actual and estimated
at each step of the execution of the PF. The second metric
target trajectories.
used in our evaluation is the computation time required for
executing the PF algorithm. The total computation time is
T comp = T ns + Tpf where T ns is time (real-time) taken in
without sensor coverage, we divided the area into a num- Ns2 to collect all the measurements at the base station for a
ber of smaller cells of equal size (number of equal sized particular run of simulation and Tp f denotes the time taken
cells depends on the total number of nodes that are being by MATLAB to run the PF at the base station.
deployed) and then randomly placed a node in each of the For each run of the simulation, the measurements were
resulting cells. Figure 1 illustrates the grid and uniform de- taken for each node at the sampling interval T. For each
ployment topologies with 49 nodes in the target area. time step when the PF detects the presence of the target,
We assume that each node is equipped with an acoustic the error is calculated in terms of the Euclidean distance
sensor and that it samples the ambient sound at predefined between the estimated location as indicated by the PF and
intervals. We refer to these intervals as time steps in the the actual target location. For each run of the simulation,
rest of this report. In the simulator, we have modelled the we calculated the statistical mean and standard deviation of
acoustic samples measured by the sensors as a simple dis- these errors. We repeated each of our simulations 100 times
tance based function, wherein the intensity of these readings and the results are shown as an average result across all the
is an inverse function of the Euclidean distance between the runs including the standard deviation. A similar process is
current position of the target and the location of the sen- repeated for the second metric, the computation time.
sors. The acoustic measurements recorded by the sensors
are, therefore, not actual readings but rather synthetically 4.1 Calibration
generated based on the calibration results.
For simplicity, we limit this work to estimation of a sin- Calibration of the nodes is an important aspect of a re-
gle target moving along a straight diagonal line from a point alistic target tracking system. Referring to the mean of the
at the bottom left comer of the topology to the right hand top measurement function (9), repeated here, dropping the time
comer. The velocity of the target was set to 0.35m/sec and index for brevity
each simulation was run for 450 seconds. The base station
is located at the centre of the topology (at location 60,60).
-
Zi -
2
ai + "Ii Id-~
i , (21)
The complete simulation consists of two parts. The first part in order to accurately track a target there are two parameters
is performed in NS2 where all the measurements during the which must be determined for each sensor i, that is the gain,
simulation run are recorded by each node and then these "Ii and the noise variance, a;. It is assumed that the other
measurements are forwarded to the centrally located base values, ~ and c from (10) are known, or can be calculated
station, over multi-hop, where they act as inputs to the PF. by a separate calibration mechanism, and are identical for
The PF assumes the values ql = 0.002 and q2 = 10- 6 , in each mote. We assume that a white noise source of unit (ar-
reference to (6), and low values for the birth and death prob- bitrary) intensity is available, which can be placed at a unit
abilities, Pb = Pd = 0.01, in this case. Once all the data distance from the sensor to be calibrated. We also assume
is available, the base station runs the PF code (offline, in that the resulting parameters are independent of the sensor
MATLAB). The NS2 simulation setup parameters are listed orientation, which mayor may not be valid, depending on
in Table 1. the sensor.
Figure 1 shows the actual trajectory of the target and an From (21), if there is no signal from the source (1 = 0 or
example of the estimated track predicted by the PF for both di ~ 00) then each measurement is solely from the noise,

167

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
Grid Deployment Uniform Random Deployment CompLtation Time

- Grid Dep!oymen1
roo - + - UnIfonn Random D&ployment

500

300

16 25 36 49 64 81 100 16 25 36 49 64 81 100 16 25 36 49 64 81 100


Number of Nodes Number of Nodes Number of Nodes

(a) (b) (c)

Figure 2. Effect of number of deployed nodes on the estimation error and computation time

which encapsulates background noise and internal measure- these figures, for grid deployment the mean tracking error
ment noise. Thus, taking the mean of M o measurements drops from about 5.3 meters for 16 nodes to 2.47 meters
ziO,m) from sensor i gives an estimate of a; for 49 nodes. For DR deployment the corresponding de-
crease is from 5.37 meters to 2.45 meters. A high variation
Mo in mean and standard deviation is observed for DR deploy-
,,2 _ _1_ "" (O,m)
ai - M ~ zi . (22) ment. This can be attributed to the random nature of the
°m=l DR deployment strategy. For a fixed target trajectory, ran-
Similarly, if the source of unit acoustic power is placed at dom placement of nodes results in more variation in track-
exactly unit distance from the sensor, then 21 reduces to ing error across the simulation run as compared to the grid
deployment. The DR deployment performs better or worse
(1) 2 than the grid deployment depending on the node placement
Zi = ai + 1i (23)
with respect to the target trajectory.
and so if M 1 measurements are taken, then the sample mean
%age Packet Lost
gives an estimate of 1i
--II- Grid Deploymen1
.......... Uniform Random Deployment
20
(24)

For the simulations, gain and noise variations values are


randomly selected for each mote. The gain is chosen be-
tween 1000 and 8000 and the noise variance between 5 and
40. The remaining parameters in the measurement model
are chosen to be ~ = 2.2 (the path loss factor) and c = 1.5
(the measurement nonlinearity) as these values correspond 16 25 36 49 64 81 100
Num bar 01 No des
well to the measurements taken in the calibration procedure
before the experiments described in Section 6. Figure 3. Effect of the number of nodes on
packet loss.
4.2 Effect of the number of sensor nodes

To begin with, we focus our attention on evaluating the The mean tracking error for both grid and DR deploy-
effect of the number of deployed sensor nodes on the afore- ment fluctuates in a very small band for any further increase
mentioned performance metrics. We increased the number in the number of the nodes beyond 49. However, if we
of sensor nodes from 16 to 100 in a 120m x 120m area. look at Figure 2(c), which shows the computation time of
Other important simulation parameters selected for this set the PF versus the number of deployed nodes, we can see
of simulations include fixing the number of particles to 5000 that the computation time of the PF grows almost linearly
and the sampling interval equal to 1 sec. Figures 2 (a,b) with the number of deployed nodes for both grid and uni-
show the mean tracking error in the target's location for both form random deployment. Packet loss also increase sharply
grid and uniform random topologies. As can be seen from with increase in number of nodes beyond 49 as shown in

168

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
Grid Deployment Uniform Random Deployment
Computation Tme

- - - Grid Deploymerrt
350 --+- Uniform Random Deployment

250

-
'- -
...........

- 200

150

100'-------1-'--'---'--'---'--'--'---'---'------'
1K 2K 3K 4K 5K 6K 7K 8K 9K 10K 1K 2K 3K 4K 51< 6K 7K 6K 9K 10K 1K 2K 3K 4K 51< 6K 7K 6K 9K 10K
Number 01 Particles Number of Particles Number of Particles

(a) (b) (c)

Figure 4. Effect of the number of generated particles on the estimation accuracy and computation
time.

Figure 3. This suggests, that for the given size of the de- 4.4 Effect of the sampling interval
ployment field, target and sensor node characteristics (size,
velocity, and intensity of target, and sensitivity of sensors Figure 5, shows the effect of the variation in sampling
etc.), and the selected networking and simulation parame- interval on the PF's behaviour. The number of nodes is set
ters, the optimal density for the deployment of sensor nodes as 49 with 5000 particles. Intuitively, the larger the sam-
should be somewhere around 34 nodes per 100m2 , which pling interval, the longer the nodes will remain idle, hence
corresponds to 49 nodes for the target area under investiga- the less energy that they will consume. However, as can be
tion. This node density gives a balance between the error seen from this figure, the error in estimation of the target's
in estimation (mean tracking error of about 2.5m) and total location begins to increase with the increase in the sampling
computation time (about 230 seconds). interval. Best tracking results are obtained with 0.5 to 1 sec
sampling interval for both grid and DR deployment. The
computation time, on the other hand, reduces from about
4.3 Effect of the number of generated par- 500 sec to 230 sec as the sampling interval is increased from
ticles 0.5 sec to 1 sec in Figure 5(c). This implies that given the
node density and the selected simulation parameters, 1 sec
Next, we examined the effect of the number of generated sampling time is a sensible choice for this case.
particles on the performance of the tracking system. Re-
call that in our system, a number of particles are randomly
generated near the sensor nodes. Further, the number of par- 5 Theoretical Analysis and Comparison
ticles are independent of the number of deployed nodes (see
Section 3) and only the Tpf component of the total compu- In this section we first derive the Cramer-Rao Bound for
tation time varies with change in number of particles. the scenario used in our simulations. We next compare this
Figure 4 shows the results of the simulation for differ- theoretical lower-bound with the results from our simula-
ent number of generated particles for both grid and DR de- tions.
ployments. The number of nodes are 49 and the sampling
interval is 1 sec. The error in estimation for grid deploy- 5.1 The Posterior Cramer-Rao Bound
ment reduces from about 3.5 meters to 2.2 meters when the (PCRB)
number of particles are increased from 1000 to 6000. Af-
ter that the error begins to decrease at a much slower rate. The Cramer-Rao Bound (CRB) is a theoretical construct,
For DR deployment, the mean tracking error reduces from which specifies a lower bound on the second-order estima-
3.49 meters with 1000 particles to 2.45 meters at 5000 par- tion error performance of any unbiased estimator [6]. We
ticles. However, from Figure 4(c) we can see that the com- now proceed to compute this theoretical bound for the sce-
putation time of the PF grows linearly with the number of nario used in our simulations (refer to Section 4 for details
generated particles. This suggests that given the simulation on the simulation scenario).
parameters, 5000-6000 particles is a good tradeoff between The state evolution model and the measurement model
detection accuracy and computation time. are as described in Section 3 (see also [12] for further de-

169

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
Computation Tme
Grid Deployment (49 Nodes, 5000 Partides) UR Deploymeri (49 Nodes, 5000 Particles)
'0 ___ Grid Deployment
~ Uniform Random Deploymen1

'50

'00
50
OL--L..--L..--L..-'-----J'-----J~~~--------'--------' _, L---L..-L..-L..-L..-'------J'------Jl..--Jl..--Jl..--J--'

o , 2 3 4 5 6 7 8 9 10 " o , 2 3 4 5 6 7 8 9 '0 " , 2 3 4 5 6 7 8 9 '0


sampling Interval (in sec) sampling In1erval (in sec) sampling Interval (sec)

(a) (b) (c)

Figure 5. Effect of sampling interval on estimation accuracy and computation time.

tails). For simplicity we will limit our analysis to the sin-


gle target case, although the multi-target CRB directly fol- 0.7
-CRLB
-RMSError
lows [13]. As in the case of the simulation scenario, a WSN 0.6
composed of N = 49 acoustic sensor nodes is deployed in 0.5
a two-dimensional region of size 120m x 120m. E
~0.4
An unbiased estimate of the state vector Xt, based on t:
w
0.3
ZI:t and the known distribution of the initial target state,
p(Xo), is denoted by Xt, and its covariance matrix by Pt.
0.2

The lower bound of Pt, referred to as the posterior Cramer- 0.'

Rao bound is expressed as follows [6] 50 '00 '50 200 250 300 350 400 450
Time (sec)

Pt === E {(Xt - Xt)(Xt - Xtflzl:t,p(Xo)} ~ Jt- 1


Figure 6. Comparison of CRB and simulation
(25) results.
The inequality in (25) implies that the difference Pt - Jt- 1 is
a positive semi-definite matrix. Matrix Jt in Equation (25)
is referred to as the information matrix and its inverse is the
PCRB. once again evaluated at the true value of Xt. The terms in
For a deterministic nonlinear filtering problem specified (27) and (28) are as defined in Section 3.
by equations (1) and (11), the information matrix can be
computed recursively as follows [1] 5.2 Comparison of PCRB and Simulation
N
Results
J t+ 1 = [F-
1
]T J t F-
1
+ L H'!+I,i R t-Jl,i Ht +1 ,i, (26)
i-I For the PCRB calculations the initial state vector was
chosen as
where it is assumed that Q is zero. Here Ht,i is the Jacobian
of hi (Xt ) evaluated at the true value of X t X o = [15 0.25 5 0.25 0.7]T (29)

(Xi - Xt)~'iltd~ff-2 where the first and the third components are in meters, while
o the second and the fourth components are in meters/sec. For
Ht,i = (Yi - Yt)~'Yiltd~ff-2 (27) the purposes of this work the initial J 0 was approximated as
o a diagonal matrix with
-e
'Yi dt,i
J0 1 = Po = diag([O.l 0.05
0.01]2). 0.1 0.05
and R~; is given by (30)
The displayed error bounds are computed as follows:
(28)
(31)

170

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
....
)( ~

Figure 9. Particle Filter Convergence


Figure 7. Target and Experimental Setup
24 25
Acoustic Variance Vs Time (Route' ,2--'3, '4--23,24) @ @

18 2D
@ @,

~. 15
IS'

4000 ~o

5
@
3000

2000

'000

21 22
@ @

17
1
18
2 @ @

'-2
I"
~1
Figure 8. Acoustic Variance vs Time
(gI

7
~ 1 @

where J t- 1 [1, 1] and Jt- 1 [3, 3] are the diagonal elements of


the inverse of the information matrix corresponding to the
x and y coordinates respectively.
Next we compare the theoretical lower error bounds with
the root-mean square (RMS) errors of the simulated PF. The Figure 10. Tracking Results
number of particles used was 5000 and the PF was run 100
times for the bound comparison. Figure 6 illustrates that was 0.03rn/sec.
the simulated PF follows the general trend of the theoretical Time synchronisation among the motes was achieved by
bound. We expect some mismatch between the filter per- a Beeper mote broadcasting a beacon message every 0.5
formance and the bound due to the fact that the bound is a seconds (sampling interval). On receiving a beacon, each
theoretically ideal quantity. mote starts sampling to collect 1000 discrete samples (tak-
ing 0.2s at 5kHz). To reduce the storage requirements at the
6 Initial Experiments motes, radio communications and the size of the data pack-
ets' motes only maintain summary statistics (sum and sum
of squares) instead of the raw values. These summary statis-
In order to test the performance of the PF based track-
tics were then transferred during the next 0.3 seconds over
ing system in a real world environment, we have conducted
the wireless link to the base station. Note that the sample
some preliminary experiments. These experiments are also
variance can be easily calculated at the base station as we
used to validate the simulation results. In this section we
know the total number of samples, sum, and sum of squares
present our initial findings obtained from these experiments.
of the samples, as shown
Figure 7 shows the setup of our testbed. We used a proto-
type testbed consisting of twenty five of the Xbow MicaZ
motes. These motes were programmed to perform high fre- (32)
quency sampling to measure the acoustic signals (at 5kHz)
generated by the target (a remote controlled toy car). These
MicaZ motes were deployed in a grid of size 2.5 meters x To ensure that all data packets are received at the
2.5 meters (Figure 7) with 50cm grid spacing. A mote at- base station, we incorporated an application level TDMA
tached with a laptop was used as the data sink. The motes scheme to allocate discrete contention-free time slots to
measure the acoustic signals and send a summary of the each mote for data transfer to the base station. The base sta-
acoustic samples to the laptop (single hop communication), tion executes the PF with 5000 particles. Prior to running
which executes the PF. The approximate speed of the target the experiments, the environmental path loss factor and the

171

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.
standard deviation of the background noise are estimated cations. Artech House, 2004.
by calibrating each mote carefully in the same experimental
environment, as described in Section 4.1. [2] L. Gu, D. Jia, P. Vicaire, T. Yan, L. Luo, A. Tirumala,
Figure 8 shows the acoustic variance with time calcu- Q. Cao, T. He, J. A. Stankovic, T. Abdelzaher, and
lated at the base station for some of the deployed sensors. B. H. Krogh, "Lightweight detection and classifica-
Figure 9 illustrates the two states of the PF, where the ini- tion for wireless sensor networks in realistic environ-
tial set of particles are shown searching for a new target ments," in Proceedings of ACM SenSys 2005, 2005,
on the left, and particles, after a number of measurements pp.205-217.
from the target, are shown on the right. Some of the track- [3] M. F. Duarte and Y. H. Hu, "Vehicle classification in
ing results are shown in Figure 10 where actual paths are distributed sensor networks," J. Parallel Distrib. Com-
shown in black arrows. The figures only show the quali- put, vol. 64, no. 7,pp.826-838,2004.
tative performance of the WSN based tracking system. We
have not used the quantitative metrics described in the simu- [4] Q. Wang, W. Chen, R. Zheng, K. Lee, and L. Sha,
lation (Section 4) as fine-grained ground truth about the po- "Acoustic target tracking using tiny wireless sensor
sition of the target, both in time and space, was not available devices," in 2nd Inti. Conf. on Information Processing
for error computation. The qualitative results demonstrate in Sensor Networks (IPSN03), 2003.
that the PF based estimator performs very well in tracking
[5] NS2, "Network simulator 2,"
different trajectories of the target using real data collected
http://www.isi.com/nsnam/ns/.
by off-the shelf WSN devices.
[6] H. L. V. Trees, Detection, Estimation and Modulation
7 Conclusion and Future Work Theory (Part I). John Wiley and Sons, 1968.

In this paper we present a detailed simulation-based eval- [7] A. Ledeczi, A. Nadas, P. Volgyesi, G. Balogh,
uation of the performance of a WSN tracking system, which B. Kusy, J. Sallai, G. Pap, S. Dora, K. Molnar,
employs the PF algorithm. We observed the effect of vari- M. Maroti, and G. Simon, "Countersniper system for
ous network design parameters such as number of deployed urban warfare," ACM Transaction Sensor Networks,
nodes, number of particles, and sampling interval on the vol. l,no.2,pp. 153-177,2005.
estimation accuracy and computation time of the tracking
system. We found that, for the given Ns2 simulation param- [8] T. He, S. Krishnamurthy, J. A. Stankovic, T. F. Ab-
delzaher, L. Luo, R. Stoleru, T. Yan, L. Gu, J. Hui,
eters, the optimal deployment density is around 34 nodes
and B. Krogh, "An energy-efficient surveillance sys-
per 100m2 , optimal number of generated particles is about
5000, and optimal sampling interval is 1 sec. These recom- tem using wireless sensor networks," in Proceedings
ofACM Mobisys, 2004.
mendations on the choice of network design parameters can
be utilized to engineer a real WSN-based tracking solution. [9] M. 1. Coates and G. lng, "Sensor network particle
We also derived the theoretical lower bound, the Cramer- filters: motes as particles," in Proceedings of IEEE
Rao Bound (CRB) and demonstrated that the results from Workshop on Statistical Signal Processing, Bordeaux,
our simulations are comparable to the bound. We presented France, 2005.
initial results on the performance of a prototype WSN track-
ing system with 25 sensor nodes. The PF based tracking [10] T. Schon, F. Gustafsson, and P.-J. Nordlund,
system performs well in tracking targets performing differ- "Marginalized particle filters for mixed lin-
ent manoeuvres in the target area. ear/nonlinear state-space models," IEEE Trans.
We are currently conducting further experiments to test Signal Processing, 2005.
our system in real environments. Our future goals are to en-
[11] M. G. Rutten, N. J. Gordon, and S. Maskell, "Recur-
able real-time distributed tracking of multiple targets and to
sive track-before-detect with target amplitude fluctua-
incorporate a localisation algorithm in the tracking system.
tions," lEE Proc.-Radar Sonar Navig., vol. 152, no. 5,
pp. 345-352, Oct. 2005.
Acknowledgement
[12] B. Ristic and S. Arulampalam, "Integrated detection
This work is funded by the Defence Science and Tech- and tracking of multiple objects with a sensor net-
nology Organisation (DSTO), Australia. work," in Preprint.

[13] B. Ristic and M. Morelande, "Cramer-rao bound for


References multiple target tracking using intencity measurments,"
in Conference on Information, Decision and Control
[1] B. Ristic, S. Arulampalam, and N. Gordon, Beyond (IDC 2007), Adelaide, Australia, Feb. 2007.
the Kalman Filter: Particle Filters for Tracking Appli-

172

Authorized licensed use limited to: IEEE Xplore. Downloaded on October 30, 2008 at 00:59 from IEEE Xplore. Restrictions apply.

You might also like