Abstract

In wireless sensor networks, localization is one of the fundamental technologies and is essential to its applications. In this paper, we propose a three-dimensional range-free localization scheme named hexahedral localization. In the scheme, the space is divided into a lot of hexahedrons. Then, all the unknown nodes are located by utilizing the perpendicular properties of the trajectory. The contribution of our scheme can be summarized into two points. First, it fills the gap of shortage of three-dimensional localization based on mobile beacons. Second, it brings in the outstanding localization accuracy. The simulation result reveals that this localization scheme has the relative high accuracy. At the end of the paper, the performance and error of our scheme are analyzed in aim of improving in the future work.

1. Introduction

Wireless sensor network (WSN) is considered as one of the most influencing technologies in the 21st century and one of the inventions which would change the future world [1]. As the technologies of sensor, microsystem, wireless communication, and the computer developed, the wireless sensor networks are applied more and more widely. In WSN, the location of nodes is significant to the detection. Location information also supports many fundamental network services, including network routing, topology control, coverage, boundary detection, and clustering [2]. So, it is obvious that localization is essential to the applications of wireless sensor network. The localization mechanisms in WSN are usually classified into two categories: range-based mechanisms and range-free mechanisms [1]. Typical range-free localization algorithms include Centroid [35], APIT [611], and DV-HOP [1214]. They leverage the limited hardware to acquire the location of the nodes with the advantage of low cost and little environmental impact. On the other hand, the range-based mechanisms, such as TOA [15, 16], TDOA [1720], and RSSI [2125], utilize signal or acoustic wave to get the distance or orientation between nodes in order to calculate the nodes’ coordinate.

To sum up, most of the localization mechanisms employ beacon (anchor) nodes and utilize the relationship between the beacons and the unknown node to gain the location of the nodes. However, the beacons should be embedded with the GPS which leads to high hardware cost. In light of this, the researchers propose the localization schemes based on mobile beacons in aim of reducing the cost of hardware. The localization based on mobile beacons utilizes just a few beacons broadcasting the message while moving among the unknown nodes instead of deploying many static beacons. These methods cut down the overhead by a wide margin.

The rest of the paper is organized as follows. Section 2 introduces the related works about the mobile beacon based localization in the past decade. Section 3 gives out the design of the HL. Section 4 is the simulation and result, followed by Section 5 which analyzes the relationship among the parameters. At last, Section 6 represents the error analysis, and we conclude in Section 7.

During the past decade, the localization schemes based on mobile beacons have been developed in a variety of directions.

The pioneer work can be traced back to 2004. North Carolina State University [26] firstly depicts the initial model of the mobile beacon-based localization. They acquire the node’s location via the PDF (probability distribution function) of the estimated position according to the RSSI (received signal strength indicator). Then, they make some remarks regarding two properties that the trajectory should have. At last, the experimental results reveal an unexpectedly good accuracy, almost an order of magnitude better than other static approaches. In 2005, the researcher of National Cheng Kung University, Ssu et al. [27], selects more than 3 beacon points to determine the position of unknown nodes. In the paper, the scheme adopts the RWP (random waypoint), and the paper analyzes the accuracy under different radio ranges of beacon moving speed, and so forth. The result reveals that, as a range-free approach, its accuracy is competitive to other range-based approaches. In 2006, the authors of [27] propose a new localization algorithm based on aerial beacons [28]. It utilizes an aerial beacon moving upon the sensor nodes to locate them via the geometry principles. It is a three-dimensional localization algorithm, although it is used in the two-dimensional environment. The simulation shows that its performance is better than other range-free localization schemes. In 2007, Purdue university [29] compared three trajectories of the beacons’ movement named Scan, Double Scan, and Hilbert. The result of simulation describes that Scan has the lowest localization error among the three trajectories, followed closely by Hilbert. However, Hilbert is the most robust to the obstacles. In 2008, the Chinese Academy of Science [30] improves the algorithm in [27] by searching for the “maximum RSSI” point as the midpoint of the chord. It gets more reliable reference points to make the accuracy more precise by the ratio of 50%. In 2009, the Chinese academy of Science [31] further improves the previous scheme through searching for 4 reference points to ensure the position of the unknown nodes. Compared to the previous work, the proposed approach enhances accuracy to a certain degree. In the same year, the Gwangju Institute of Science and Technology [32] improves the algorithm of [27] with the geometric constraints. It points out that the selection of the reference point in [27] is inaccurate and selects 3 noncollinear reference points to locate the nodes with the geometric constraints. As a result, the accuracy is improved. The Chinese National University of Defense and Technology [33] proposed two algorithms on the path planning. These two algorithms are based on graph theory and are called breadth-first and backtracking greedy. The goal of path planning is locating the nodes within less time and cost. In the view of coverage and cost, these two algorithms are effective. In addition, they obtain higher precision and are robust in the environment of the nodes randomly deployed. In 2010, the Ocean University of China [34] proposes a novel localization algorithm based on the mobile beacon. It plans a regular path consisting of equilateral triangles and utilizes the geometric property to locate the unknown nodes. As a latecomer in the part representation arena, this scheme attracts people’s eyes. Its design is motivated by the phenomenon between RSSI and straight trajectory of the mobile beacon. The experiment of the scheme with 100 TELOSB motes proves that this scheme is superior to all the existing approaches in terms of high precision.

In 2011, Ou [35] proposes a range-free localization scheme using mobile anchor nodes equipped with four directional antennas. In the proposed approach, each mobile anchor node determines its position via GPS, and then broadcasts its coordinates as it moves through the WSN. The sensor nodes detect these beacon messages and utilize a simple processing scheme to determine their own coordinates based on those of the anchors. It removes the requirement for specific ranging hardware on the sensor nodes and avoids the need for communications between the sensor nodes. In 2012, the INRIA [36] proposed a novel DeteRministic dynamic bEAcon Mobility Scheduling (DREAMS) algorithm, without requiring any prior knowledge of the sensory field. In this algorithm, beacon trajectory is defined as the track of depth-first traversal (DFT) of the network graph, which thus is deterministic. The mobile beacon performed DFT dynamically, under the instruction of nearby sensors on the fly. It moved from sensor to sensor in an intelligent heuristic manner according to received signal strength (RSS) based distance measurements. It was proved that DREAMS guarantees full localization (every sensor is localized) when the measurements are noise free. In the same year, Chang et al. [37] proposed the first study that applies the mobile anchor to improve the location inaccuracy under the condition that all sensors are with different sizes of estimative regions. In 2013, a range-free localization mechanism with ring overlapping by utilizing mobile anchors was proposed by Chen et al. [38]. Since the mobile anchor and the reference node know their own locations, the B-rings, in which the blind node is located, can be precisely derived. Therefore, by overlapping the B-rings, the proposed mechanism can obtain good location estimation for the blind node. Besides, two movement schemes, BTS and ESS, for mobile anchor are also proposed. The proposed scheme has better accuracy than other existing related schemes including ROCRSSI scheme, Centroid scheme, and PBCC scheme.

However, we see that almost all of the algorithms above rarely refer to the three-dimensional localization, since the localization in three-dimensional environments is more complex. According to this blankness, this paper proposes a novel three-dimensional localization scheme based on mobile beacon called HL (hexahedral localization). It is able to locate without any additional hardware and reach the relative high accuracy.

3. The Design of HL

In this section, the train of thought about the HL is described. The design of HL is inspired by literature [34]. Firstly, the experiment on RSSI versus Distance is made. Then, we present our new scheme. At last, we optimize the scheme.

3.1. The Experiment of RSSI versus Distance

As the most popular parameter used in the localization process, RSSI has the advantage of low cost and convenient operation. Theoretically, RSSI obeys the following formula [39]: is the RSSI according to the distance of , and is the carrier frequency. From the formula above, we can get that the RSSI decreases as increases.

Similar literature [34], we observe the interesting regularity. As shown in Figure 1, we deploy 11 TELOSB motes on the campus to observe the RSSI that the node on longitudinal axis receives from which is on the transverse axis. We are surprised to find that the data could plot into a curve as shown in Figure 1. The only difference between our research and literature [34] is the length of the transverse axis. In fact, it is unnecessary to study the width which is too large for the inaccurate RSSI.

As Figure 1 shows, we assume the transverse axis as the trajectory of a mobile beacon. When the mobile beacon tracks along a straight line, the nearest point of the unknown node is the foot point of the trajectory. At the same time, the RSSI is the largest.

Different from literature [34], the purpose of our experiment is to get the suitable distance that the RSSI is available. From Figure 1, we can obtain the trusty distance is 30 m when the radius is about 50 m. And we continue to do the similar but more accurate experiment under the radius from 40–100 m by the step of the 10 m. The result is shown in Table 1.

According to Table 1, the trusty radius analogously equal to 60% of the radius.

3.2. The Model of the HL

The observation above motivates the design of HL. We project HL as shown in Figure 2.

The mobile beacon moves along the given trajectory and broadcasts its own position periodically. Via RSSI, the unknown node selects the nearest reference points on the trajectory. The coordinate of the reference point is .And the unknown node is.The direction vector of , , is given as. Then, we have the following equations: According to the least square method, There must be a lot of errors in the process of calculation via the least square method. We will analyze that in Section 6.

3.3. The Optimization of the Trajectory

We have given out the trajectory of the HL. But how to make the model reasonable is an important issue. From literature [34], it can be known that the equilateral triangle is the best trajectory on the two-dimensional flat. And interestingly, we find that the equilateral triangles can be connected and divided into rectangles like Figure 3. The trajectory we proposed is more controllable at the same time.

As the trajectory described in Section 3.2, according to the radius , the ratio of the hexahedron’s edges should be optimized.

In Figure 4, take the red hexahedron, for example, AC, BD, HE, GF, AE, BF, DG, and CH are all the trajectories of the mobile beacon. To ensure the coverage of mobile beacons, the extension that the signal propagates should be equal. In another word, the point in the hexahedron which is furthest from the trajectory should be covered in the extension. According to the trusty radius, the largest distance should be equal to the trusty radius. As the trajectories are deployed symmetrically as shown in Figure 4, we find that the points I, J, K, L are the furthest points to the bevel trajectory like AC, BD, HE, and GF. And the point on PQ is the furthest point to the vertical trajectory like AE, BF, DG, and CH. We can calculate the distance between the furthest point and the trajectory And the distance from PQ to the trajectory AE, BF, DG, and CH is The distance IM and BQ should be equal to the trusty radius. Then, As described in literature [34], the ratio of AB and AD should be . According to (6),

The whole process of localization can be described as follows.

Step 1. The unknown nodes are randomly deployed in the three-dimensional space.

Step 2. The anchor moves along the trajectory according to the radius and broadcasts its location information and ID.

Step 3. The nodes receive and record information from the anchor (including signal strength).

Step 4. Each node finds out the nearest reference points on each of the three kinds of trajectory according to the RSSI.

Step 5. Implement the HL and calculate estimated position.

Step 6. The localization is finished.

The flow chart of IAPIT-3D is shown in Figure 5.

The Matlab pseudocode of localization period is displayed in Pseudocode 1.

For i=1:number_of_node
Min_distance_anchor1_number(i)=max(all of the reference1 RSSI(i))
Min_distance_anchor2_number(i)=max(all of the reference2 RSSI(i))
Min_distance_anchor3_number(i)=max(all of the reference3 RSSI(i))
End % find out the 3 reference points nearest to the unknown nodes
For i=1:number_of_node
  M=[1 sqrt(3) 0;1 -sqrt(3) 0;0 0 1];
  N=[anchor1_x(min_distance_anchor1_number(i))+sqrt(3)anch
or1_y(min_distance_anchor1_number(i));anchor2_x(min_dista
nce_anchor2_number(i))- sqrt(3)  anchor2_y(min_distance_an
chor2_number(i));anchor3_z(min_distance_anchor3_number(i)
)];
C= ;
estimate_x(i)=C(1);
estimate_y(i)=C(2);
estimate_z(i)=C(3);
end
%calculate the position via the least square method

4. Simulation and Result

In order to verify the theoretical feasibility of HL, the scientific tool MATLAB is adopted for the simulation. Take the conclusion of Section 3.1 for premise, we deploy 400 unknown nodes in the space of size 100 m × 100 m × 100 m. The experiment is separately simulated by the moving step length of 1 m, 2 m, 3 m, 5 m, 6 m, 10 m, and 15 m. The result is described by the average absolute error and normalized average error (which is normalized to the ratio of the absolute average error to the radio range).

As Figures 6 and 7 show, the errors are increasing as the moving step length increases. In another word, the longer the length of step is, the more inaccurate the localization is. The reason is obvious that the shorter the step, is the more virtual beacon nodes are deployed. The location error is shown in Tables 2 and 3.

5. The Relationship among the Parameters

5.1. The Radius and the Absolute Error

In Figure 6, the seven curves that present absolute errors under different radius almost coincide. That means, as long as lengths of step are same, the absolute error is changeless although the radius is different. We can explain this phenomenon as follows: though radius is related to the deployment of virtual beacon, it does not influence the trusty coverage of mobile beacon in the total space. In another word, the change of radius cannot effect whether unknown nodes are covered in the trusty communication extension as long as the step of movement is definite. From Table 2, we can discover that the absolute error is increasing when increases. However, the influence of radius to the error is negligible relative to that of step length. We depict the relationship among radius, length of step, and the absolute error in a 3D picture. In Figure 8, the -label and the -label present radius and length of step. And the -label presents the absolute error of the localization. From the piecemeal change of the color in Figure 8, we find that the influence of step length to the absolute error is greater than that of radius.

5.2. The Radius and the Normalized Error

The relationship between radius and the normalized error is shown in Figure 6 and Table 3. Different from Figure 6, we find that the normalized error is decreasing when the radius increases. The 3D picture of the normalized error is shown in Figure 9.

Normalized error is the ratio of the absolute error to the radius. As the absolute error increases, the radius increases. This phenomenon leads to a problem of balancing between radius and accuracy. In localization of WSN, there are two principle elements to be paid attention to: the cost; the accuracy and the precision [40]. In our scheme, the cost is reflected by the radius to a certain extent. Communication cost is influenced by two points: first, the size of model, which affects the number of the packages sent. Second, it is the transmitting power. And these two points are all relative to the radius. Next, we will analyze the relationship among these elements. Take moving step of 1 m for an example, the relationship between radius and number of packages sent is shown in Table 4.

According to the formula of the signal space loss,

The following equations should be established: In the light of the operating frequency = 2.4 GHz and the receiving sensitivity = −105 dBm of the CC2420 receiver, and the transmitting power is (dBm) when the radius is 30 m, the transmitting powers under different radius are shown in Table 5.

The formula of transforming dBm to mw obeys this equation: Combined with Table 4, we show the ratio of consumed energy under the same step length in Table 6.

As described in Table 6, it is obvious that the consumed energy is lowest when the radius is 30 m. So, the performance is increasingly excellent as the radius is reducing. At this moment, the traditional normalized error is meaningless. However, there is a drawback that the trajectory is less controllable in the short-radius localization of our scheme.

5.3. The Step Length and the Absolute Error

Taking  m for an example, the relationship between moving step and number of packages send is shown in Table 7.

According to the ratio of the message package numbers, we can get the approximate ratio of the consumed energy with different step length. Because the consumed energy of every package is equal, the product of absolute error and number of the package can be a norm to reflect the relative error of the localization under the same radius but with different step lengths. When  m, the relative error is shown in Table 8.

On the basis of Table 8, we find that the relative error is the lowest when the step length is 10 m. So, 10 m is the best length of steps to get the proper accuracy under relative smaller overhead of communication when  m.

6. The Error Analysis

The error in the process of localization is an important criterion of the locating performance. The goal of error analysis is finding out the “source of error” in order to improve and optimize the schemes in the future work. It is usually that errors are caused by various elements. In this section, we will analyze the main element that leads to the ultimate error of the localization. In our scheme, the largest error is aroused in the process of least square method. The reason is that the referenced point may not be the exact foot point of the trajectory. The error starts at the selection of reference point. Assume that, the length of moving step is , the distance between the foot of the trajectory’s perpendicular and the reference pointis in the interval . If the coordinates of the reference points are and the coordinates of the foot of the trajectory’s perpendicular are As described in Section 3, the direction vectors are

So, (3) is converted into

As to the specific size of the model, the relationship between the foot of the trajectory’s perpendicular and the reference point is revealed as follows: Equation (15) should be transformed into According to the above, the ultimate error is owing to the the theoretical maximum ultimate error In Table 2, we discovered that a few of errors are greater than the theoretical value as shown in Tables 9 and 10. This is caused by the imperfection of the model. The balance of size of the space and the model is also a key point of the localization here.

7. Conclusion and Future Work

HL is a range-free localization scheme and can be applied under the case that the hardware is relatively limited. We use the special property of trajectory’s perpendicular to calculate the coordinate of the unknown nodes. The trajectory is optimized via the geometry constraint, and the locating process is simulated by the tool of MATLAB. The performance of HL is relative perfect in aspect of accuracy. We compare the accuracy under different radius and obtain the coarse bound of the suitable radii. However, the mobile beacon’s trajectory may be uncontrollable, and the trajectory may not be the ultimate one. In the next period of work, we shall devote ourselves to studying in the research of model optimization.

Acknowledgments

The authors would like to thank Nataliya Shapovalova (Autonomous University of Barcelona, Spain) for providing us with fruitful comments which significantly increased the quality of the paper and Zhanwu Xiong (Autonomous University of Barcelona, Spain) for developing suitable software tools. This paper is sponsored by the National Nature Science Foundation of China (no. 61363015, no. 61262020), Aeronautical Science Foundation of China (2012ZC56006), and Key Project of Research Program of Jiangxi Province (CB201120382).