Mathematical Problems in Engineering

Volume 2014 (2014), Article ID 143938, 11 pages

http://dx.doi.org/10.1155/2014/143938

## Neighbor Constraint Assisted Distributed Localization for Wireless Sensor Networks

School of Automation, Beijing Institute of Technology, Beijing 100081, China

Received 24 April 2014; Accepted 30 May 2014; Published 22 June 2014

Academic Editor: Jinhui Zhang

Copyright © 2014 Longfei Wen et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Localization is one of the most significant technologies in wireless sensor networks (WSNs) since it plays a critical role in many applications. The main idea in most localization methods is to estimate the sensor-anchor distances that are used by sensors to locate themselves. However, the distance information is always imprecise due to the measurement or estimation errors. In this work, a novel algorithm called neighbor constraint assisted distributed localization (NCA-DL) is proposed, which introduces the application of geometric constraints to these distances within the algorithm. For example, in the case presented here, the assistance provided by a neighbor will consist in formulating a linear equality constraint. These constraints can be further used to formulate optimization problems for distance estimation. Then through some optimization methods, the imprecise distances can be refined and the localization precision is improved.

#### 1. Introduction

Wireless sensor networks (WSNs) composed of a large number of low-power sensors have been a subject of increased interest in recent years [1–3]. Location information of sensor nodes is vital for location-aware applications such as environmental monitoring, routing, and coverage control [4, 5]. Due to cost limitations and energy consumption, having each one of the sensors locate its position individually via GPS or other similar means is no longer a viable option. Hence, lots of works have focused on the localization algorithms for WSNs [6].

Based on the type of information they require, localization algorithms can be divided into two categories: (i) range-based and (ii) range-free [7–10]. For both categories of localization algorithms, the most crucial phase of the process lies in the determination of the distances between the sensor nodes which need to be located and the anchors. In range-based algorithms, the respective distances between sensors and anchors can be obtained via various ranging techniques such as time of arrival (TOA), time difference of arrival (TDOA), and received signal strength indication (RSSI). On the other hand, in range-free algorithms, distances can be estimated through topological or geometric information. DV-Hop is a classical distributed range-free algorithm which determines distances by hop counts [11]. By further combination with ranging techniques, DV-Hop can be extended in order to decrease its localization error; a noteworthy example of these methods is robust position [12–14]. However, no matter which method is used, the acquired distances information to the anchors is usually imprecise compared with the true distances because of ranging and estimation errors [15, 16]. The imprecise distances will result in poor localization performance. Actually, these imprecise distances can be refined since the true distances between nodes should satisfy the geometric relations. In other words, the localization precision can be improved with the help of some geometric constraints.

In this work, a novel algorithm called neighbor constraint assisted distributed localization (NCA-DL) is proposed which is effective in refining the distances required for localization. NCA-DL describes the geometric relations among the distances between sensor nodes and anchors as some equality constraints. The core idea behind NCA-DL is to use the* Cayley-Menger determinant *[17, 18] which will be defined in the following section. In NCA-DL, by using an adjacent neighbor which could be a mobile anchor, a linear equality constraint of distance estimation errors can be obtained. Through some optimal solution computation methods that are used to minimize the sum of the squared errors, the distances can be refined and the localization precision can be improved. The major contribution of this paper is twofold. First, the proposed algorithm is distributed so that sensor nodes can estimate their locations by themselves. Second, it introduces the idea of geometric constraints and decreases the distance estimation errors with the help of an adjacent neighbor. In general, the proposed method can largely improve the localization precision.

The layout of the paper is organized as follows. In Section 2, the preliminaries to the problem are introduced. In Section 3, the geometric relations among sensor nodes are formulated as constraints. In Section 4, the proposed distributed localization method will be described in detail. Section 5 presents the implementation and results of the numerical simulations that were performed to validate the method. Finally, conclusion will be drawn from this research in Section 6.

#### 2. Preliminaries

Let us first consider and which represent a set of distinct points, respectively. The* Cayley-Menger matrix* of these two sets can be defined as
where ; denotes the Euclidean distance between the points and .

The* Cayley-Menger bideterminant* of these two sequences of points is defined as

The above determinant is widely used in distance geometry theory [17]. When the two sequences of points are the same, is denoted for convenience by which is simply called a* Cayley-Menger determinant*.

A brief summary of the* Cayley-Menger determinant* is generalized as follows [19].

Theorem 1. *Consider an n-tuple of points in m-dimensional space. If , then the Cayley-Menger matrix is singular, namely,
*

*Theorem 2 (Theorem 112.1 in Blumenthal [17]). Consider an n-tuple of points in m-dimensional space. If , the rank of Cayley-Menger matrix is at most .*

*In a 2-dimensional Euclidean space, each node has a set of coordinates . The study of the localization problem applied to WSNs first requires some basic terminology and concepts to be defined.*

*Definition 3 (regular nodes). *Most of the nodes in the network do not know their locations. The whole purpose of localization algorithms is to estimate the coordinates of these nodes.

*Definition 4 (anchors). *Some of the nodes can know their locations through manual placement or with the help of specific equipment such as GPS. The coordinates of these nodes are used as reference information to assist in the localization procedure.

*According to the above theorems and definitions, an interesting development of localization is how to use the Cayley-Menger determinant to reduce the impact of distance measurement errors [20]. As shown in Figure 1, let denote the accurate Euclidean distance between anchors and with , (), which can be inferred from known anchor positions; denotes the accurate distances between the regular node and node with and denotes the inaccurate distances acquired by either noisy range measurement or computations. Then the following equation is defined:
*

*Theorem 5. The errors for as defined immediately above satisfy a single algebraic equality which is quadratic though not homogeneous in the ’s:
where
*

*Proof. *According to Theorem 1, we know that , namely,

Suppose the anchors are nonlinear, . From (7), the following equation can be derived:
where

Then according to (4), we can obtain

Multiplying both sides of (10) by the determinant of , we can arrive at (5). This completes the proof.

*3. Geometric Relations with Neighbor Constraint*

*3. Geometric Relations with Neighbor Constraint*

*In this section, we will focus on the geometric relations among the distances between nodes, which can be transformed to an algebraic constraint of the distance estimation errors. At first, we define another basic term.*

*Definition 6 (neighbors). *Each node in WSNs has a communication range. So, for a node in network, the nodes which can communicate with node directly are the neighbors of node .

*As shown in Figure 2, represents a regular node which needs to be located, represents a neighbor of node and represents the anchors with . Then Let denote the accurate Euclidean distance between anchors and with , denote the accurate distances between the neighbor node and anchor with , denote the accurate distances between the regular node and anchor with , and denote the accurate distance between regular node and its neighbor node .*

*In this case, suppose we know the accurate distances () and the accurate distance by refinement or setting node as a mobile anchor. Then denote the inaccurate distances squared between node and anchor with for some error . That is to say, the true distances represented by the dotted line in Figure 2 cannot be obtained. In this work, we aim to refine these inaccurate distances to trend toward actual values.*

*Theorem 7. The errors for as defined immediately above satisfy an algebraic equality in the ’s, and whose coefficients are determined by , for and for and :
where
*

*Proof. *According to Theorem 1, we know that , namely,
One can then obtain,
where

Suppose the anchors are nonlinear; , so is nonsingular. From (14), the following equation can be derived:
That is,
where
According to the proof procedure of Theorem 5, we can obtain . Then from (17), we obtain
This yields
Multiplying both sides of (20) by the determinant of , we obtain
whereAccording to (21), we can get (11). This completes the proof.

*4. Neighbor Constraint Assisted Distributed Localization*

*4. Neighbor Constraint Assisted Distributed Localization**Based on the algebraic constraints mentioned in the previous sections, a neighbor constraint assisted distributed localization algorithm (NCA-DL) is hereby proposed as a means of improving the localization precision. The main idea behind NCA-DL is to refine the distances to anchors using a neighbor node. In NCA-DL, the regular nodes estimate the initial distances to the anchors using the method similar to DV-Hop [11]. Then according to the algebraic constraints of the distance estimation errors, Lagrangian multiplier method is introduced in order to obtain the optimal errors and refine the distances. The following section will give a full description of the principles and performance analysis of this novel NCA-DL algorithm.*

*4.1. Principles of the Algorithm*

*4.1. Principles of the Algorithm**Initially, anchors (set ) are deployed in the sensing field with the regular nodes (set ). We assume each node has the ability of ranging, and for simplicity, the number of the anchors is set to 3. The whole process of NCA-DL is divided into four phases.*

*(A) Distance Estimation.* Each regular node is supposed to obtain initial distance estimation to the anchors. So two times of flooding are required to accomplish the process of distance estimation. In the first flooding, the anchors start by propagating their location information. Then all nodes receive the location information from every anchor as well as the hop count to these anchors. When an anchor node receives location information from other anchors, it can calculate the average size of a hop based on their locations and the hop count among them. In the second flooding, the average size of a hop is transmitted in a controlled manner into the network as a correction factor. When a regular node receives the correction, it can be able to estimate the distances to the anchors using the correction and the hop count information received in the previous flooding.

*(B) Neighbor Node Election*. The main purpose of this phase is to choose a proper neighbor for each regular node to assist distance refinement in the next phase. For most ranging technology, when sensors are closer, the distance estimations are more accurate. According to the requirement of Theorem 7, in order to obtain the constraint equation of the distance estimation errors, it is fundamental to choose an adjacent neighbor because the distance between the regular node and its neighbor can be measured accurately. Meanwhile, the distances among the neighbor and the anchors also should satisfy geometry relationship, that is to say, the distances should be refined by the method in [20]. So in this phase, the nearest node of each regular node is chosen as an assistant neighbor and its distances to the anchors obtained in the previous phase are supposed to be refined using Theorem 5.

*To improve the localization precision of the regular node further, the distances between the neighbor and the anchors need to be estimated accurately. Though the imprecise distances can be refined through Theorem 5 which can meet the requirement of Theorem 7, the distances are still imprecise. So in this phase, with the growing research for the mobility of sensors [21], a mobile anchor also can be used to be a “neighbor” of each regular node. The distances between this “neighbor” and the other static anchors can be accurately calculated by the coordinates of these anchors, which definitely meets the requirement of Theorem 7. In this case, the mobile anchor is supposed to move in the sensing field. The aim is just to assist the regular node with localization through the constraint defined in Theorem 7 and it does not need to consider the collinear problems of the anchors. So SCAN [22] could be used for the path planning method, which is the most straightforward one.*

*(C) Distance Refinement*. The algebraic equalities that define the errors and relate the distances to the anchors for each regular node have now been fully determined from the previous two phases, as described in Theorems 5 and 7. The next step of the algorithm attempts to quantify these errors in the inaccurate distance estimations between regular nodes and anchors. Let () as defined in (4) be the error in the estimated squared distances between a regular node and the anchors. The goal here is to minimize the sum of the squared errors:

*In (23), is subjected to a quadratic equality constraint defined in (5) and a linear equality constraint defined in (11). So, to solve the optimization problem with constraints, Lagrangian multiplier method has been implemented in the algorithm. It is a mathematical method used to solve the optimization problem, which can convert the constraints to the seeking of extreme values with the help of Lagrangian multipliers. We can get the following Lagrangian multiplier form:
where are the Lagrangian multipliers and are the functions of , whose coefficients can be obtained in (5) and (11).*

*By differentiating the Lagrangian with respect to () and () and equating the result to zero, five equations can be obtained. Solving these five algebraic equations numerically and discarding all the nonoptimal stationary-point solutions, can be solved. Then the distances to the anchors for the regular node are refined. The below example demonstrates the steps in this phase.*

*The simplest scenario as depicted in Figure 2 is considered, where node is the regular node that needs to be located. Node can measure its distances to three anchors whose coordinates are (10, 10), (90, 10), and (50, 90), respectively. The noisy distance measurements acquired by node are , , and . The distances between the neighbor node and other nodes are estimated in the previous phase as , , , and . In this case, the goal is to obtain the estimation errors and refine , , and .*

*Firstly, two equality constraints as described by (5) and (11) will be determined:
*

*To determine the optimal values for , the following problem needs to be solved:
*

*By differentiating the Lagrangian defined in (24), we obtain
*

*Solving the above five algebraic equations above, we get,
*

*Correspondingly, the refined distances between regular node and the three anchors are
*

*As shown in Figure 3, “.” represents the regular node, “□” represents the anchor, and the radius of the circle is the estimated distance between the regular node and the anchor. In Figure 3(b), the three circles intersect in one point, which proves that the refined distances satisfy the geometric constraints.*

*(D) Localization*. So far, regular nodes have known the refined distances to the anchors according to (29). Based on the above refinement scheme, we know that the refined distances satisfy the geometric constraints. Localization can be carried out by the least square method. represents the regular node, () represent the locations of the anchors, and represent the refined distances between the regular node and the anchors. The coordinate of the regular node can be estimated by
where

*Figure 4 illustrates the localization of the computational example above with both noisy and refined distances. “” represents the calculated location. The localization errors in Figures 4(a) and 4(b) are 0.67 m and 0.55 m, respectively.*

*4.2. Communication Cost Analysis*

*4.2. Communication Cost Analysis*

*For energy cost of NCA-DL, the communication consumption is mainly considered in the distance estimation and refinement phases. represents the number of the sensors and represents the number of the anchors. Then for the two flooding processes in the distance estimation phase, it gives a bound of to the communication cost in this process. While in the refinement phase, each node needs to communicate with its neighbors so the communication cost is . The total communication complexity is . It is known that the communication complexity of DV-Hop is . Since the method proposed in [20] is just to refine distance estimations with additional calculation, its communication complexity is the same as DV-Hop. So the cost of NCA-DL is in the same order of magnitude as other algorithms while it can largely improve the localization performance.*

*5. Numerical Results*

*5. Numerical Results*

*This section we will describe the implementation of the NCA-DL algorithm and evaluate its performance through extensive simulations. The results obtained from these simulations will focus on analysing the distance estimation errors and localization errors and further compare results obtained by NCA-DL, DV-Hop, robust position, and the method proposed in [20] which have been mentioned above.*

*5.1. Simulation Configuration*

*5.1. Simulation Configuration*

*The basic network setup area is considered to be a 100 m × 100 m square field. The communication radius of the nodes is set to 10 m. In our simulations, sensor nodes are deployed using two models: (i) random placement and (ii) perturbed grid. In the random placement model, sensor nodes are randomly deployed in the network by dropping from an airplane or some other methods. In this case, the topology of the network is likely to be irregular. In the second model, nodes are deployed using perturbed grid where the nodes are perturbed with a random shift from grid. In this situation, nodes will tend to uniformly occupy the field avoiding large concentration of nodes, which also guarantee the regularity of the topology of the network.*

*In all cases, regular nodes have the ability of ranging and the results are averaged over 10 trails. The average localization error is defined as follows:
where is the number of the regular nodes, is the actual location of regular node , is the estimated location of regular node , and is the communication radius.*

*5.2. NCA-DL Performance*

*5.2. NCA-DL Performance*

*At first, we focus on the distance estimation error between regular nodes and anchors. In this set of simulations, we varied the number of the nodes (avg. degree) from 124 (4.8) to 628 (14.2). The number of the anchors is set to 3. The average distance estimation errors obtained from these simulations are stated in Table 1.*

*As indicated in Table 1, we can observe that the distance estimation error of both DV-Hop and NCA-DL under perturbed gird deployment is smaller than that of these two algorithms under random placement. With the increase of the number of nodes (avg. degree), both DV-Hop and NCA-DL can improve the ranging effectiveness. Moreover, DV-Hop suffers large ranging error when the average degree is low while NCA-DL has smaller errors for divers network scales.*

*Now, it has been proved that the NCA-DL algorithm can significantly decrease the distance estimation errors with the help of a collaborating neighbor; both initial deployment model conditions were therefore simulated in order to graphically verify their respective localization performance.*

*Figure 5 exemplifies the distance estimation and localization error of NCA-DL against number of nodes in both deployment models. It is demonstrated that the distance estimation error in NCA-DL can be decreased with the increase of the number of nodes. As shown in Figure 5(b), the localization error decreases more obviously when the distance estimation error drops below a critical value (around 2 m).*

*Figure 6 exemplifies the localization performance of DV-Hop and NCA-DL. “” represents the anchors, “.” represents the true location, “*” represents the calculated location, and the line between them represents the localization error. In this set of simulations, the number of deployed nodes (avg. degree) is set to 403 (11.1) and the number of the anchors is set to 3. According to the definition of localization error in (32), in the random placement deployment, the average localization error resulting form DV-Hop is around 66% while the error goes down to around 46% in perturbed grid deployment, as shown in Figures 6(a) and 6(c). In Figures 6(b) and 6(d), we can see that NCA-DL decreases the localization error to 38% and 23%, respectively, in the two deployment models. In general, NCA-DL can increase the localization precision about 40% compared with DV-Hop under such network environment.*

*Figure 7 illustrates the localization error in both random placement and perturbed grid models. Compared with the other algorithms, NCA-DL has much lower localization error. With the increase of number of nodes, the performance of all the algorithms upgrades. It is also demonstrated that the NCA-DL algorithm can achieve high localization precision in the perturbed grid deployment model when the density of sensors is high, as shown by Figure 7(b).*

*6. Conclusions*

*6. Conclusions*

*Location information of sensors is vital in wireless sensor networks. In this paper, a novel distributed localization algorithm called NCA-DL is proposed, which introduces the Cayley-Menger determinant as an important tool for formulating the distances between pairs of regular nodes and anchors to algebraic constraints. In NCA-DL, an adjacent neighbor is chosen for each regular node to establish constraint equations. Then the imprecise distances can be refined by using these constraints and an appropriate objective function. Finally, the localization precision is improved.*

*The set of numerical simulations carried out to validate this method demonstrate the scalability of NCA-DL over a range of node numbers. Comparisons have been performed with other known localization algorithms, which show that NCA-DL can largely reduce the localization errors displayed by existing methods. In the considered sensor network cases initialized under random deployment conditions, the NCA-DL algorithm has proven to increase the localization precision by up to 30% compared with the method proposed in [20] and 40% compared with DV-Hop.*

*Conflict of Interests*

*Conflict of Interests*

*The authors declare that there is no conflict of interests regarding the publication of this paper.*

*Acknowledgments*

*Acknowledgments*

*This work was supported by National Defense Advanced Research Project of China (Grants nos. 104080 and 40405020401), National Natural Science Foundation of Youth Science Fund (no. 61203144), and Research Fund for the Doctoral Program of Higher Education of China (no. 20121101110032).*

*References*

*References*

- G. Han, H. Xu, T. Q. Duong, J. Jiang, and T. Hara, “Localization algorithms of wireless sensor networks: a survey,”
*Telecommunication Systems*, vol. 52, no. 4, pp. 2419–2436, 2013. View at Publisher · View at Google Scholar · View at Scopus - Y. Hu, Y. Ding, and K. Hao, “An immune cooperative particle swarm optimization algorithm for fault-tolerant routing optimization in heterogeneous wireless sensor networks,”
*Mathematical Problems in Engineering*, vol. 2012, Article ID 743728, 19 pages, 2012. View at Publisher · View at Google Scholar · View at Scopus - Y. Tian, Y. Ou, H. R. Karimi, Y. T. Liu, and J. Q. Han, “Distributed multitarget probabilistic coverage control algorithm for wireless sensor networks,”
*Mathematical Problems in Engineering*, vol. 2014, Article ID 421753, 8 pages, 2014. View at Publisher · View at Google Scholar · View at MathSciNet - Z. Liu, Q. Zheng, L. Xue, and X. Guan, “A distributed energy-efficient clustering algorithm with improved coverage in wireless sensor networks,”
*Future Generation Computer Systems*, vol. 28, no. 5, pp. 780–790, 2012. View at Publisher · View at Google Scholar · View at Scopus - Z. Liu, L. Dai, Y. Yuan, and J. Wang, “Distributed joint optimal control of power and rate with clustered routing protocol in wireless sensor networks,”
*Communications in Computer and Information Science*, vol. 334, pp. 325–334, 2013. View at Publisher · View at Google Scholar · View at Scopus - G. Mao, B. Fidan, and B. D. O. Anderson, “Wireless sensor network localization techniques,”
*Computer Networks*, vol. 51, no. 10, pp. 2529–2553, 2007. View at Publisher · View at Google Scholar · View at Scopus - J. Shen, A. F. Molisch, and J. Salmi, “Accurate passive location estimation using TOA measurements,”
*IEEE Transactions on Wireless Communications*, vol. 11, no. 6, pp. 2182–2192, 2012. View at Publisher · View at Google Scholar · View at Scopus - P. K. Sahu, E. H.-K. Wu, and J. Sahoo, “DuRT: dual RSSI trend based localization for wireless sensor networks,”
*IEEE Sensors Journal*, vol. 13, no. 8, pp. 3115–3123, 2013. View at Publisher · View at Google Scholar · View at Scopus - J. Lee, W. Chung, and E. Kim, “A new range-free localization method using quadratic programming,”
*Computer Communications*, vol. 34, no. 8, pp. 998–1010, 2011. View at Publisher · View at Google Scholar · View at Scopus - C.-C. Chen, C.-Y. Chang, and Y.-N. Li, “Range-free localization scheme in wireless sensor networks based on bilateration,”
*International Journal of Distributed Sensor Networks*, vol. 2013, Article ID 620248, 10 pages, 2013. View at Publisher · View at Google Scholar · View at Scopus - D. Niculescu and B. Nath, “Ad hoc positioning system (APS),” in
*IEEE Global Telecommunicatins Conference (GLOBECOM '01)*, pp. 2926–2931, San Antonio, Tex, USA, November 2001. View at Scopus - C. Savarese, J. Rabaey, and K. Langendoen, “Robust positioning algorithms for distributed ad-hoc wireless sensor networks,” in
*USENIX Annual Technical Conference*, pp. 317–327, Monterey, Calif, USA, June 2002. - Q. Qian, X. Shen, and H. Chen, “An improved node localization algorithm based on DV-Hop for wireless sensor networks,”
*Computer Science and Information Systems*, vol. 8, no. 4, pp. 953–972, 2011. View at Google Scholar - S. Kumar and D. K. Lobiyal, “An advanced DV-Hop localization algorithm for wireless sensor networks,”
*Wireless Personal Communications*, vol. 71, no. 2, pp. 1365–1385, 2013. View at Publisher · View at Google Scholar · View at Scopus - M. Li and Y. Liu, “Rendered path: range-free localization in anisotropic sensor networks with holes,”
*IEEE/ACM Transactions on Networking*, vol. 18, no. 1, pp. 320–332, 2010. View at Publisher · View at Google Scholar · View at Scopus - U. A. Khan, S. Kar, and J. M. F. Moura, “DILAND: an algorithm for distributed sensor localization with noisy distance measurements,”
*IEEE Transactions on Signal Processing*, vol. 58, no. 3, pp. 1940–1947, 2010. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - L. M. Blumenthal,
*Theory and Applications of Distance Geometry*, The Clarendon Press, Oxford, UK, 1953. View at MathSciNet - M. Cao, C. Yu, and B. D. O. Anderson, “Formation control using range-only measurements,”
*Automatica*, vol. 47, no. 4, pp. 776–781, 2011. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - L. Yang, “Solving geometric constraints with distance-based global coordinate system,” in
*International Workshop on Geometric Constraint Sloving*, Beijing, China, 2003. - M. Cao, B. D. O. Anderson, and A. S. Morse, “Sensor network localization with imprecise distances,”
*Systems and Control Letters*, vol. 55, no. 11, pp. 887–893, 2006. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet · View at Scopus - C.-H. Ou, “A localization scheme for wireless sensor networks using mobile anchors with directional antemnas,”
*IEEE Sensor Journal*, vol. 11, no. 7, pp. 1607–1616, 2011. View at Google Scholar - D. Koutsonikolas, S. M. Das, and Y. C. Hu, “Path planning of mobile landmarks for localization in wireless sensor networks,”
*Computer Communications*, vol. 30, no. 13, pp. 2577–2592, 2007. View at Publisher · View at Google Scholar · View at Scopus

*
*