# Geometric Location Based on TDOA for Wireless Sensor Networks

Authors: Xin-long Luo; Wei Li; Jia-ru Lin
Journal: ISRN Applied Mathematics
 (2012)

---

## Abstract

Wireless sensor networks (WSNs) consist of a large number of low-cost miniature sensors, which can be applied to battlefield surveillance, environmental monitoring, target tracking, and other applications related to the positions of sensors. The location information of sensors is of great importance for wireless sensor networks. In this paper, we propose a new localization algorithm for the wireless sensor network based on time difference of arrival (TDOA), which is a typical algorithm in the wireless localization field. In order to improve the localization accuracy of a sensor, a new strategy is proposed for a localized sensor being upgraded to an anchor node, which is used to localize the position of the next sensor. Performance analysis and simulation results show that the revised TODA localization algorithm has the higher localization accuracy when compared with the original TDOA location method.


---

## Body

## 1. Introduction

Wireless sensor networks (WSNs) are a technique which has a wide variety of applications, such as target tracking, battlefield surveillance, and environmental monitoring [1], and the position of the nodes is a crucial issue for that all the applications are based on the location information. GPS (global positioning system) is widely used today, and it could achieve the satisfied accuracy outdoors. However, it is relatively expensive when all the sensors are equipped with GPS receivers [2], and it is not working inside buildings. Therefore, many algorithms that do not rely on GPS are proposed to estimate the positions of the sensor nodes in the network in recent years [3–8].The trilateral positioning [2] is commonly adopted for the sensor localization. Its main idea can be illustrated by Figure 1. Let (xa,ya), (xb,yb), and (xc,yc) be coordinate vectors of the anchor nodes A, B, and C, respectively. The measurement distances from those anchors to the unknown sensor D are denoted by da, db, and dc. Let D(x,y) be the coordinate vector of the unknown sensor, which needs to be determined. Then, from the Euclidean distance formula, we obtain(1.1)(x-xa)2+(y-ya)2=da,(x-xb)2+(y-yb)2=db,(x-xc)2+(y-yc)2=dc.
When those three points A, B, C are not collinear, that is, the following matrix:(1.2)[xa-xcya-ycxb-xcyb-yc]
is nonsingular, then, from solving (1.1), we obtain the estimation position of the unknown sensor for D(x,y):(1.3)[xy]=12[xa-xcya-ycxb-xcyb-yc]-1[xa2+ya2-xc2-yc2-da2+dc2xb2+yb2-xc2-yc2-db2+dc2].Figure 1
Trilateral positioning method.The basic assumption for the trilateral positioning method (1.1) is that the measurement distances from anchors to the unknown sensor do not have errors. However, this assumption is almost impossible in practice. Furthermore, when the matrix (1.2) is ill-conditioned, the small measurement errors result in a large amplified error of the estimated position of the unknown sensors. Therefore, in order to improve the localization precision in the case of measurement errors, we consider the sensor network localization method based on the TDOA method [7, 8], of which localization precision is not so sensitive to measurement errors.The localization method based on TDOA estimates the unknown sensor nodeD(x,y) by the given coordinates of anchors and time difference of arrival from those anchors to the unknown sensor D, which can be illustrated by Figure 2.Figure 2
The localization method based on TDOA.The difference of the distances from the anchorsPi and Pj to the unknown sensor D is denoted by Δdij(1.4)Δdij≜‖Pi-D‖-‖Pj-D‖,i,j=1,2,…,N,
where ∥·∥ denotes the Euclidean norm, that is, ||xi-xj|| denotes the Euclidean distance between xi and xj.From (1.4), we obtain(1.5)‖Pi-D‖=‖Pj-D‖+Δdij,
which gives(1.6)‖Pi‖2-‖Pj‖2-Δdij2=2(Pi-Pj)DT+2Δdij‖Pj-D‖.
All terms divide by Δdij in (1.6); then we obtain(1.7)2Δdij(Pi-Pj)DT+2‖Pj-D‖=(‖Pi‖2-‖Pj‖2)Δdij-Δdij.
Let j=1 and i=2 in (1.7), then we get(1.8)2Δd21(P2-P1)DT+2‖P1-D‖=‖P2‖2-‖P1‖2Δd21-Δd21.
Let j=1 and i=3,…,N in (1.8) and two sides of (1.7) subtract two sides of (1.8), then we obtain(1.9)(2(Pi-P1)Δdi1-2(P2-P1)Δd21)DT=‖Pi‖2-‖P1‖2Δdi1-‖P2‖2-‖P1‖2Δd21-(Δdi1-Δd21).
Therefore, via solving the linear system (1.9), we obtain the coordinate vector D(x,y) of the current undetermined sensor. When the number of anchors N is greater than 4, the system (1.9) is overdetermined. In this case, from the linear least-squares method, we obtain the approximation solution D by(1.10)DT=(ATA)-1ATb,
where(1.11)A=[2(P3-P1)Δd31-2(P2-P1)Δd21⋮2(PN-P1)ΔdN1-2(P2-P1)Δd21],b=[‖P3‖2-‖P1‖2Δd31-‖P2‖2-‖P1‖2Δd21-(Δd31-Δd21)⋮‖PN‖2-‖P1‖2ΔdN1-‖P2‖2-‖P1‖2Δd21-(ΔdN1-Δd21)].This paper is organized as follows. In the next section, we give a revised geometric localization algorithm based on TDOA for the sensor network. In Section3, for typical sensor network localization model, we compare our revised localization algorithm with the original TDOA localization method (1.10). In Section 4, some discussions are also given.


## 2. Revised Localization Algorithm Based on TDOA

It needs at least four anchors (N≥4) to determine uniquely the position of a sensor by TDOA method. When there are not enough anchors for the unknown sensor, Savarese et al. [5] and Savvides et al. [6] proposed an iterative multilateral positioning method to handle this case. Its key point is that the localized sensor can be regarded as a new anchor to locate the next sensor. Evidently, this strategy could help locate more sensors when the anchors are sparse. And in this paper, we propose a revised strategy when a determined sensor is upgraded to an anchor node, that is, only the localized sensors with high precision can be upgraded to be anchor nodes, for it is obvious that the error propagates to the later sensor when the lower precision sensor is used to localize the later sensor node.Since there are errors in the measurement distances and the propagating errors in the process of numerical computation, recalculating the positions of the determined sensors help to reduce the accumulated errors, which are used by generic localized algorithm [9], n-hop multilateral primitive algorithm, and the two-phase positioning algorithm [10]. Here, we also borrow this refinement idea to improve the computing accuracy of the sensor position. In order to overcome the overhead and reduce the cost of refinement computation, we set the threshold of the number of the iteration refinement (the typical value is 3). Specifically, our revised geometric localization algorithm based on TDOA for sensor networks can be described as follows.Algorithm 2.1 (geometric localization method based on TDOA).
Firstly, search for at least four anchors around the current undetermined sensor node and use their distances with this sensor node and the TDOA method (1.10) to locate this unknown sensor node.
Secondly, use the geometric distance measurement error (GDME) to measure the localization accuracy. The GDME is defined as follows:(2.1)GDME=max⁡{|dij-d̂ij|dij,j=1:N},
where dij is the measurement distance between the ith unknown sensor and the jth anchor around this sensor and d̂ij is their distance computed according to the estimated coordinate of this sensor and the coordinate of the jth anchor by Euclidean distance formula. When the GDME is smaller than the prescribed threshold, this current determined sensor node is upgraded to the anchor node, that is, the lower precision localization sensor is not involved in the later sensor localization. Update the anchor set and the unknown sensor set, and repeat this step, until every unknown sensor is scanned for localization one time.
Thirdly, for those lower precision sensors which are not upgraded to the anchor nodes, in this refinement stage, we use the coordinate information of determined sensors and anchors and their distances recalculate the coordinates of those lower precision sensors.


## 3. Simulation Results

The simulation model is generated as follows. There are 60 points randomly generated in a one by one square area. Then, we choose the first 10% points as the anchor nodes and compute their all Euclidean distancesdij. Only those distances which are less than the given radio rage RD are viewed as the given distances and the rest distances are looked as unknown. Add a multiplicative random noise to every given distance as the measurement distance:(3.1)d̂ij=dij(1+nf⋅randn(1)),
where nf is a given noise factor and randn(1) is a standard Gaussian random variable function.We use the positioning accuracy and the successful localization probability to evaluate the performance of an algorithm. The positioning accuracy is defined by GDME (2.1) or defined by root mean square deviation (RMSD) as follows:(3.2)RMSD=12‖xi-x̅i‖,
where xi is the real position of the ith senor and x̅i is the estimated position by the localization algorithm. The successful localization probability is defined by(3.3)LP=mn×100%,
where n is the number of sensors and m is the number of located sensors in the network.In order to verify the performance of the revised geometric localization method based on (Algorithm2.1), we compare it with the original TDOA method. Figure 3 is their localization results for the test model with the small measurement noise case. The blue diamond node refers to the position of an anchor, and the blue cross node refers to the original location of an unknown sensor. The red star node refers to the located sensor whose localization accuracy meets the localization requirement. The green circle node refers to the located sensor whose localization accuracy does not meet the localization requirement, and the black circle node refers to the sensor which cannot be determined by the localization algorithm. The discrepancy between the original position and the localized position of a sensor node is indicated by the solid line.Localization results of Algorithm2.1 and the original TDOA method.
(a)(b)From Figure3, we find that all unknown sensors are located by Algorithm 2.1 (the revised geometric localization method based on TDOA), and some sensors cannot be located and some located sensors have high errors for the original TDOA method.In order to evaluate the performance of Algorithm2.1, we test this algorithm for simulation model with large measurement distance noises, compared with the original TDOA. Figures 4 and 5 are the simulation results of Algorithm 2.1, and the original TDOA method with the RMSD and GDME criteria when the measurement distance error is 2%, respectively. Figures 6 and 7 are the relations of localization accuracy and the successful localization probability with the RMSD and GDME criteria when the measurement distance error is 2%, respectively.nf=2%, localization errors with RMSD.
(a)(b)nf=2%, localization errors with GDME.
(a)(b)Figure 6
nf=2%, localization probability with RMSD.Figure 7
nf=2%, localization probability with GDME.From Figure4 to Figure 7, we find that the successful localization probability of the algorithm is superior to which of the original TDOA localization method under the same localization accuracy.For a real wireless sensor network, the measurement error is not avoided and the localization accuracy depends on the measurement error heavily. Therefore, we evaluate the performances of Algorithm2.1 and the original TDOA method when the relative measurement errors vary from 2% to 20%. Their successful localization probabilities and the localization accuracy are put in Tables 1 and 2, respectively. The sensor is regarded as the successful localization if the localization error is less than the measurement error.Table 1
The successful localization probability with different relative measurement errors.
Noise factorImproved TDOAOriginal TDOANull (Exact Distance)100.00%92.78%2%100.00%90.56%4%100.00%91.23%6%100.00%90.56%8%100.00%89.38%10%100.00%88.15%12%100.00%89.38%14%100.00%88.27%16%100.00%87.22%18%100.00%87.72%20%100.00%88.15%Table 2
The localization accuracy with different relative measurement error.
Noise factorImproved TDOAOriginal TDOARMSDGDMERMSDGDMENull (Exact Distance)1.3464E-151.5413E-144.1999E-014.4121E+002%5.6392E-042.7764E-037.1842E-016.5894E+004%4.5478E-046.5198E-032.7080E-012.6745E+006%7.7822E-048.3309E-034.6763E-014.4270E+008%9.4769E-049.0917E-032.7973E-012.2608E+0010%7.4960E-047.8121E-035.9484E-014.0471E+0012%1.1071E-031.8286E-024.5207E-015.4583E+0014%2.2427E-031.7131E-021.7496E+003.3375E+0116%9.8465E-041.2029E-029.3667E-017.5572E+0018%6.7687E-047.3791E-034.9262E-016.3574E+0020%1.0773E-031.0983E-024.6257E-014.4013E+00From Tables1 and 2, we find that the algorithm is effective even if the relative measurement error attains to 20%, and it is superior to the original TDOA localization method according to the evaluation criteria of the successful localization probability and the localization accuracy.


## 4. Conclusions

Our idea is to use the revised geometric localization method based on TDOA for the wireless sensor network with sparse anchors. For improving the localization accuracy, in the original TDOA localization method, we use the threshold to judge whether the determined sensor is upgraded an anchor node and the iterative refinement idea. Furthermore, for the typical simulation model of wireless sensor network localization problem, this revised strategy is effective, compared with the original TDOA localization method.



---

*Source: 710979-2012-01-11.xml*