Next Article in Journal
An Evolving TinyML Compression Algorithm for IoT Environments Based on Data Eccentricity
Previous Article in Journal
Fully Parallel Implementation of Otsu Automatic Image Thresholding Algorithm on FPGA
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Recursive DV-Hop Localization Algorithm with RSSI Measurement for Wireless Sensor Networks

1
Research Laboratory of Automatic Signal and Image Processing (LARATSI), National Engineering School of Monastir (ENIM), 5019 Monastir, Department of Electrical Engineering, University of Monastir, Monastir, Tunisia
2
Department of Computer Science, College of Computers and Information Technology, Taif University, P.O. Box 11099, Taif 21944, Saudi Arabia
3
Electrical Engineering, Faculty of Engineering, Moncton University, Moncton, NB E1A3E9, Canada
4
Research Department, International Institute of Technology (IIT), 1.5 Mharsa Route, Sfax, Tunisia
5
School of Electrical Engineering, Depatrment of Electrical and Electronic Engineering Science, University of Johannesburg, Johannesburg 2006, South Africa
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(12), 4152; https://doi.org/10.3390/s21124152
Submission received: 17 March 2021 / Revised: 23 May 2021 / Accepted: 24 May 2021 / Published: 17 June 2021
(This article belongs to the Special Issue Sensors and Autonomous Systems in Smart Cities)

Abstract

:
As localization represents the main backbone of several wireless sensor networks applications, several localization algorithms have been proposed in the literature. There is a growing interest in the multi-hop localization algorithms as they permit the localization of sensor nodes even if they are several hops away from anchor nodes. One of the most famous localization algorithms is the Distance Vector Hop (DV-Hop). Aiming to minimize the large localization error in the original DV-Hop algorithm, we propose an improved DV-Hop algorithm in this paper. The distance between unknown nodes and anchors is estimated using the received signal strength indication (RSSI) and the polynomial approximation. Moreover, the proposed algorithm uses a recursive computation of the localization process to improve the accuracy of position estimation. Experimental results show that the proposed localization technique minimizes the localization error and improves the localization accuracy.

1. Introduction

Nowadays, Wireless Sensor Networks (WSNs) are used in several applications including healthcare, home monitoring, smart transportation [1], military tracking [2], environmental supervising, indoor navigation, etc.
These applications generally provide location-aware services where the geographical positions of sensor nodes are a fundamental part of the application data [3]. Researchers pay attention to the domain of location-aware applications and context-aware computing [3].
The presence of obstacles, noise and signal fluctuation make the sensing environment complicated. Therefore, huge challenges have emerged for localization investigation. The common solution to determine an accurate and very precise geographical location of sensor node is the Global Positioning System (GPS). That said, this localization solution is not practicable due to its high cost, power consumption, and ineffective performance in such sensor applications. Due to the disadvantages of GPS solutions, researchers proposed some alternatives to this localization problem, where a few sensor nodes are only equipped with a GPS module and a pretty energy resource to participate in the localization process of other nodes. Sensor nodes that are equipped with GPS are conceived as anchor nodes, and the other nodes of the network as unknown nodes [4].
The existing localization techniques can be broadly classified into two categories: range-based and range-free algorithms. The latter are based on network connectivity with no need of any additional hardware equipment, making them more useful in terms of low cost and energy conservation. The commonly used range-free algorithms include DV-hop [5,6], centroid algorithm [7], APIT [8], MDS-MAP [9,10] and Amorphous [11]. The range-based algorithms are based on measurement of signal characteristics, which requires expensive equipment to compute some metrics such as the angle or distance between a sensor node and its neighboring nodes [12]. The well-known range-based methods of localization in WSN are time difference of arrival [13], time of arrival [14], angle of arrival [5], and Received Signal Strength Indicators (RSSI) [15], which attracted great attention [16,17,18]. RSSI-based localization techniques have gained interest thanks to the availability of RSSI in many current technologies such as Bluetooth, Zigbee and WiFi. Since there is no need for additional hardware and due to the easy implementation, RSSI-based localization techniques are the most suitable and efficient in terms of cost and  simplicity [19]. They also ensure more accuracy in position estimation than range-free algorithms.
Moreover, in some WSN scenarios, the lack of anchors might impede the localization process. To overcome this limitation, multi-hop localization techniques can be used [20]. Indeed, in multi-hop localization, sensor nodes might use an anchor even if it is not in its communication range (not a neighbor). One of the most famous multi-hop localization algorithms is DV-Hop [6]. Although DV-Hop is simple, its accuracy is low, and therefore several improvements are proposed in the literature [3,4,21]. However, the accuracy of existing solutions is still unsatisfactory.
Aiming to enhance the localization accuracy, we designed a novel method assessing the distance between an unknown node and its neighboring anchor nodes by employing both RSSI and polynomial approximation. Our approach is an enhancement of the original DV-Hop algorithm in terms of localization accuracy and can be extended to other schemes as well. The proposed algorithm is a combination of both range-free and range-based techniques. Moreover, the proposed localization technique is based on sequential computation, which permits taking the available anchors for the localization process into consideration and, therefore, provides a better localization accuracy.
The main contributions of this study can be summarized as follows:
  • We used the polynomial approximation to compute the distance between anchor and unknown nodes.
  • We adjusted the estimated distance thanks to RSSI measurement.
  • We introduced the recursive concept to enhance the localization accuracy of the proposed method.
The rest of this paper is organized as follows. Firstly, we expose the works related to localization in WSNs. Secondly, we describe the traditional DV-Hop algorithm, as well as its drawbacks, in Section 3. Then, our proposed localization scheme is presented in Section 4. Simulation results are given and discussed in Section 5. Finally, we conclude the paper in Section 6.

2. Related Works

Various range-based and range-free localization algorithms in wireless sensor networks have been proposed in the literature. The estimation of distances between the unknown node and anchor nodes can be carried out using standard approaches by various disposable techniques such as the time of arrival method [14], time difference of arrival method [13], RSSI [15], etc. Afterwards, by using the Trilateration technique, and referring to the calculated distance separating the unknown node with its neighboring anchor nodes, the geographical position of the unknown node can be estimated. It is worth noting that every unknown node should have at least three neighboring anchors to carry out the Trilateration method.
The RSSI-based localization technique is a common ranging method and is nowadays used by researchers in several localization algorithms aiming to enhance the accuracy of estimated positions of nodes. Additionally, once the majority of existing sensor nodes have the RSSI function, the RSSI-based localization technique does not require extra hardware deployment. Therefore, this method is cost-effective [22,23,24]. RSSI-based techniques could be be clustered as either fingerprinting or signal propagation modeling-based algorithms. The signal propagation modeling-based algorithms require an optimized propagation model that captures the fading and interference resulting from multi-path propagation as well as shadowing in a specified deployment area [25].
In [26], the authors propose an improved RSSI-Least Squares Support Vector Regression (RSSI-LSSVR) to optimize the position estimation accuracy as well as to minimize the cost of localization. The simulation results of this work prove that their technique can enhance the localization accuracy, minimize the localization cost and guarantee the reliability. Another RSSI-based localization technique was proposed in [27], where authors introduce a new algorithm-triangle centroid localization technique based on weighted feature points. They are interested in two positioning key issues: accuracy of RSSI value and optimization of a localization algorithm. In [28], a Received signal strength (RSS)-based algorithm to estimate positions of nodes was proposed. The authors use a Gaussian and an averaging filter to estimate distances between nodes, as well as trilateration and least square estimation for the localization process. The RSSI technique and Zigbee communication method in [29] have been also investigated to compute the distance separating the unknown node with anchor. According to the calculated distance by RSSI, less than 10 m or not, the authors calculate the position of unknown nodes by the methods of Mini-Max Positioning or Maximum Likelihood Estimation, respectively. In [30], the authors propose a novel technique of device-free human detection by using RSSI measurement in WSN based on ZigBee. Simulation results proves the validity of the proposed detection method [30].
The approach of RSSI measurement is incorporated in many improved DV-Hop algorithms, such as in [31], where the authors propose a localization technique based on RSSI and an enhanced artificial immune algorithm. In their work, they use the RSSI information admitted by the node to perform a correction coefficient in order to revise the HopCount value. Then, an enhanced artificial immune algorithm was developed to optimize the position estimation of the unknown node by Gaussian mutation in the process of a local search. In our previous work [3], we designed a new DV-Hop-based localization algorithm for large scale WSN. The proposed solution used the RSSI values for links between one-hop neighbor nodes. After being localized, nodes were promoted to act as anchors and assist the localization process with the rest of anchors.
Although several attempts have been made to enhance the DV-Hop algorithm, their localization accuracy is still unsatisfactory and did not fit context-aware applications needs. Therefore, more research efforts need to be made for this. In this paper, we propose a new localization method that leverages the polynomial approximation technique and RSSI to improve the distance estimation accuracy. In what follows, we first present an overview of the original DV-Hop algorithm and then we detail our proposed protocol.

3. The Original DV-Hop Localization Algorithm

In this section, we give an overview of the original DV-Hop localization algorithm and we discuss its drawbacks.

3.1. Unknown Node Localization Process

DV-Hop is a famous multi-hop localization algorithm. It was developed by Niculescu and Nath [5,32] and consists of three different steps, as follows.
In Step 1, known as flooding phase, each anchor broadcasts its position and a HopCount value via a beacon packet within the sensing network. The HopCount value, which is initialized to 1 and incremented in each hop, determines the number of hops between the receiving node and the sending anchor. Once this beacon packet has been received, an unknown node updates its table with the received information, ( x i , y i , h i ) from anchor i, where ( x i , y i ) is the position of the anchor i and h i is the number of hops to reach anchor i. If many packets from the same anchor are received by the unknown node, the minimum HopCount value is only updated.
In Step 2, after the flooding phase is completed, each anchor computes its hopSize—i.e, the average distance of hops, which is based on the distance and the minimum number of hops from other anchors. More precisely, the H o p S i z e i of anchor i is computed according to the following equation:
H o p S i z e i = i j n ( x i x j ) 2 + ( y i y j ) 2 i j n h i j
where ( x i , y i ) and ( x j , y j ) are the coordinates of anchor i and anchor j, respectively, h i j is the minimum hop count between anchor i and j, and n is the total number of anchors.
Once the average distance of hops is estimated, each anchor broadcasts its H o p S i z e to the network. This allows unknown nodes to compute their distances to reachable anchors. More precisely, an unknown node u estimates its distance to anchor i using Equation (2) as follows.
d i = H o p S i z e i × h u i
where H o p S i z e i is the average distance per hop for anchor i and h u i is the minimum number of hops between node u and anchor i.
In Step 3 of the algorithm, an unknown node determines its position by Trilateration [33]. Let d i be the estimated distance separating the unknown node and an anchor i, (x, y) is the position of the unknown node, and ( x 1 , y 1 ), ( x 2 , y 2 ),…,( x n , y n ) are the coordinates of anchor nodes. The following set of equations are deduced:
d 1 2 = ( x x 1 ) 2 + ( y y 1 ) 2 d 2 2 = ( x x 2 ) 2 + ( y y 2 ) 2 . . . d n 2 = ( x x n ) 2 + ( y y n ) 2
Then, Equation (3) can be transformed by:
A X = B
We define the terms A, X, and B as follows:
X = x y
A = 2 × x 1 x n y 1 y n x 2 x n y 2 y n . . . x n 1 x n y n 1 y n
B = x 1 2 + y 1 2 x n 2 y n 2 + d n 2 d 1 2 x 2 2 + y 2 2 x n 2 y n 2 + d n 2 d 2 2 . . . x n 1 2 + y n 1 2 x n 2 y n 2 + d n 2 d ( n 1 ) 2
By solving Equation (4) and using the least squares method [33], the unknown node can compute its coordinates as follows (Equation (5)):
X = ( A T A ) 1 A T B

3.2. Error Analysis of the Original DV-Hop Localization Algorithm

The original DV-Hop algorithm helps the unknown node obtain the average distance of hop (hopSize) and the HopCount value of anchors through flooding exchange. Then, by using the received information, the unknown node estimates its position. Therefore, the localization accuracy depends on the accuracy of the estimated average distance per hop. However, the estimated average distance per hop can be erroneous and thus lead to an erroneous estimated position of an unknown node.
To illustrate the impact of average distance per hop on distance estimation between anchors and unknown nodes, we used the network topology shown in Figure 1. In this example, A 1 , A 2 , and A 3 represent anchor nodes, and U 1 , U 2 , U 3 , U 4 and U n represent unknown nodes. The two nodes connected by an orange line can communicate directly. The average hop-distance (hopSize) of anchor A 2 can be computed according to the original DV-Hop algorithm as follows: ( 70 + 35 ) / ( 4 + 4 ) = 13.125 . Then, the estimated distance between anchor A 2 and unknown node U n , calculated using the DV-Hop algorithm, is 13.125 × 1 = 13.125 m. However, in the graph, we can observe that the real distance between unknown node U n and anchor node A 2 is 25 m. Therefore, the computed distance and the real distance are not closer. In conclusion, the use of the hopSize of anchors may cause errors when estimating the distance between unknown nodes and anchors.
Various improvements of the original DV-hop algorithm have been proposed [3,21,34]. Most of these techniques are based on hopSize. However, as previously proved, the hopSize computation might involve an error that consequently decreases the localization accuracy.
In this work, we aim at improving the DV-Hop algorithm to localize the unknown nodes. The proposed approach focuses on the RSSI of each link between the nodes and a polynomial approximation to determine the distance between the anchor and unknown node.

4. The Proposed Recursive Localization Algorithm

In this section, we design an improvement to the original DV-Hop algorithm in order to increase the localization accuracy. We aim at developing a new technique to estimate the distance between sensor nodes with more precision. The proposed technique is based on the polynomial approximation and the RSSI measurement to estimate the distance separating unknown node and their neighboring anchor nodes in the network.

4.1. RSSI-Based Distance Estimation

The transmitter and the receiver communicate within a distance d. The power strength of the radio signal broadcasted by the transmitter decreases over the distance. Therefore, the closer the receiver is to the transmitter, the stronger the signal is. Hence, the received signal strength becomes a relevant distance indicator for wireless sensor nodes. This RSSI becomes one of the more practical and effective ranging methods for wireless sensor fields thanks to its hardware cost and power consumption conservation (i.e., it does not require additional equipment) [35]. Researchers generated models for the radio channel, such as the log-normal shadowing model presented in [36]. This model describes the fading behaviour of signal propagation. The received signal power of sensor node R S S ( d ) , which is a distance of d from the transmitter, is defined as in [37].
R S S ( d ) ( d b m ) = P t P l o s s ( d 0 ) 10 τ l o g 10 d d 0 + X σ
where d 0 represents the reference distance, P t is the power of the transmitted signal, P l o s s denotes the signal power loss through the reference distance d 0 , τ is the path loss exponent where its value depends on the propagation medium. X σ is the noise that is assumed to be a Gaussian random variable with a mean value equal to zero, and a standard deviation σ .
In the experimental studies of [3,38], the authors affirmed that due to the relation between RSSI, as expressed in Equation (6), and distance (as seen in Figure 2) under various conditions and despite the promising hypothetical advantages of RSSI, even under ideal conditions, it cannot give good precision when determining internodal distances in WSN. In Figure 2, Δ R S S I and Δ d represent the variation of RSSI and distance, respectively. This variation gives four different areas, as presented in plot of Figure 2. These four areas are as follows:
  • Area 1: a very small variation in Δ d generates a small variation Δ R S S I , and so a very small estimation error is achieved;
  • Area 2: a small variation in Δ d generates a small variation Δ R S S I , and so a small estimation error is achieved;
  • Area 3: a very large variation in Δ d generates a small variation Δ R S S I , and so a very large estimation error is achieved;
  • Area 4: a very large variation in Δ d generates a very small variation Δ R S S I , and so a very large estimation error is achieved.
We deduced that area 1 and area 2 are the optimal cases in terms of localization accuracy. In addition to the distance impact, the authors in [39] prove that the main drawback of the RSSI technique is its sensitivity to harsh and uncertain sensing environments. Additionally, the RSSI level changes according to the geometrical orientation of sensors and environmental characteristics, which leads to significant estimation errors. Starting from these statements, and aiming to overcome these problems, we suggested to find a combination between hop count and RSSI in order to minimize the positioning error. We used the LogNormal Shadowing Model in this work [36].

4.2. Proposed Localization Method

To overcome the limitation of the original DV-Hop algorithm, we aimed at developing a new technique to estimate the distance between sensor nodes with more precision. This technique replaces the use of the average distance per hop (HopSize) computed in the second step of the original DV-Hop, which might introduce localization error. In our proposed method, an unknown node will first estimate the distance to three anchors and then estimate its position recursively.
As part of our proposal, we are interested in stage 2 of the original DV-Hop and suggest a new formulation to estimate the distance between anchor nodes and an unknown node. This new formulation is a function of HopCounts and RSSI values.
In our previous work [4], the distance separating anchor node and unknown node were estimated using only polynomial approximation. More precisely, the estimated distance is equal to:
d ( h , θ ) = k = 0 m θ k h k
where θ is a vector containing m parameters (m is the order of the polynomial), and h is the HopCount between the unknown node and anchor node.
In this paper, we propose to use both the RSSI technique and the polynomial approximation for better precision of the estimated distance separating the unknown node and anchor node. Moreover, we considered a polynomial of order m = 2 . Then, by introducing the RSSI values, the estimation of the distance between anchor i and unknown node j can be computed within the following formula:
d i , j = θ 0 + θ 1 ( h i j 1 ) + θ 2 ( h i j 1 ) 2 + D I S T R S S I ( k , j )
where θ 0 , θ 1 and θ 2 are the polynomial coefficients. D I S T R S S I ( k , j ) is the value of the estimated distance between unknown node j and its neighbor node k, which is the last node in the path from i to j. This distance is computed using the RSSI value. h i , j presents the minimum HopCounts between anchor i and unknown node j. In this equation, we used ( h i , j 1 ) instead of h i , j , as for the last hop, the distance was measured through the RSSI method. The aim of the polynomial approximation is to adjust the polynomial coefficients θ k , k = { 0 , 1 , 2 } , so that the error introduced in the computed distance is reduced. The Polynomial coefficients θ k are determined by the least squares method as follows:
θ k = ( H T H + λ I ) 1 H T D
where H and D are the matrix containing the minimal HopCount and the distance values between anchors, respectively. The coefficient λ is a regularization parameter of the least square solution, and I is the identity matrix.
Figure 3 gives an example of the proposed method. Nodes A 1 , A 2 and A 3 are the anchors, and N u is the unknown node to be localized. To compute its position, the unknown node N u uses the RSSI values of its neighbors as well as the number of hops away from the three anchors. Then, the following equations are applied as follows:
d A 1 , N u = θ 0 + θ 1 ( h 1 u 1 ) + θ 2 ( h 1 u 1 ) 2 + D I S T R S S I 1 d A 2 , N u = θ 0 + θ 1 ( h 2 u 1 ) + θ 2 ( h 2 u 1 ) 2 + D I S T R S S I 2 d A 3 , N u = θ 0 + θ 1 ( h 3 u 1 ) + θ 3 ( h 3 u 1 ) 2 + D I S T R S S I 3
where h 1 u , h 2 u and h 3 u are the total number of hops between anchors A 1 , A 2 and A 3 and unknown node N u , respectively.
Moreover, as sensor nodes have constrained energy and lifetime limits, they may break down for lack of energy, which leads to progressive network deconstruction and consequently the localization process will be perturbed [40]. To deal with this problem and to improve localization accuracy, we proposed, in a previous work [4], a recursive method for the localization process. Then, we used the recursive least squares estimation to derive X k + 1 as an update of the estimated position X k .
A k A k + 1 X = B k B k + 1
The proposed algorithm recursively estimates the position of unknown nodes by improving the accuracy of the estimated result in each iteration. The recursive formula of estimated position X k + 1 of unknown node is as follows:
X k + 1 = X k + P k + 1 A k + 1 T ( B k + 1 A k + 1 X k )
where P is a covariance matrix of the estimate and expressed as follows:
P k + 1 = P k P k A k + 1 T ( I + A k + 1 T A k + 1 P k ) 1 A k + 1 T P k
This matrix is initialized to P 0 = α I , where I is the identity matrix, and α is a very big positive number.
The mathematical development of the obtained formula is detailed in [4].
More precisely, the proposed algorithm is described in Figure 4 and works as follows. First, each anchor broadcasts a packet containing its identity ID and a HopCount parameter initialized to 0. The HopCount memorizes the minimal number of hops between the sending anchor and the receiving nodes. This packet will be flooded in the network and the HopCount value is incremented at each node before forwarding the packet. At the end of this flooding phase, each unknown node maintains a HopCount table containing the minimal HopCount for each reachable anchors.
Then, to estimate its position, an unknown node repeats the following five steps N b i t e r times, where N b i t e r is the number of iterations initially chosen. In the first step, the unknown node selects randomly three anchors from the set of reachable anchors. After that, the unknown node computes the RSSI values of its neighboring nodes (i.e., HopCount = 1). Then, the distance between unknown node and each anchor is estimated by using the polynomial approximation and the RSSI technique using Equation (8). Based on these estimated distances and using trilateration, the unknown node computes A k and B k matrix, where k is the iteration number. In the final step, the unknown node estimates its position X k by using a recursive form as in Equation (12), where this estimated position is based on the previous iteration estimated position X k 1 . The recursive form aims to improve the accuracy of the resulting position of the unknown node.
The pseudocode of the proposed localization algorithm is presented in Algorithm 1.
Algorithm 1 Improved recursive DV-Hop algorithm.
Input: WSN; Anchor nodes with their positions ( x i , y i ) where i = 1 n , n is the total number of anchors;
Output: Estimated position X of unknown node
1: Begin
2: X 0 = 0 ; /* initialization
3: P 0 = α * I ; /* initialize the covariance matrix P
4: S= set of reachable anchor nodes, where unknown node can communicate with them
5: For ( k = 0 to N b i t e r ) Do
      5.1: Selection of randomly three different anchors from S
      5.2: Computation of RSSI values between unknown node and its neighbors
      5.3: Estimation of distance between anchors and unknown node using
      the polynomial approximation and the RSSI technique Equation (8)
      5.4: Computation of A k and B k based on estimated distance using Trilateration, and the covariance matrix P k Equation (11)
      5.5: Estimation of unknown node position X k using Recursive Least Square method Equation (12)
6: end For;
7: X = X N b i t e r /* Final estimated position of unknown node
8: end;

5. Performance Evaluation

Several simulations were performed in order to evaluate the localization accuracy of the proposed localization method. The latter is compared with the original DV-Hop algorithm, Hybrid DV-Hop [3], IR-DV-Hop [4] and improved DV-Hop [41] localization algorithms through simulations by MATLAB software 2015a. For better simulation results, the reported results of all comparisons are the average over 100 trials.

5.1. Localization Results with Different Distributions of Anchors

In this section, we conduct simulations using different distributions of anchors. We aim to highlight the localization error of both the proposed algorithm and the original DV-Hop algorithm. Sensor nodes are randomly deployed in an isotropic 100 × 100 m sensing area. Nodes communicate within the same radio range of 10 m. Three different distributions of anchor nodes in the area are considered in this experiment: random, circular and spiral deployments, as shown in Figure 5, Figure 6 and Figure 7. In these Figures, anchor nodes are denoted by red squares and blue circles represent the real positions of unknown nodes, and the black line marks the localization error.
As shown in these figures, we can conclude that the localization error resulting from the proposed algorithm is lower than the error of the original DV-Hop algorithm for all different anchor placement scenarios. Therefore, our proposed solution outperforms the previous algorithms in terms of accuracy.

5.2. Localization Error of the Proposed Algorithm

We assumed that the anchor nodes and the unknown nodes were randomly distributed in a 100 × 100 m square monitoring field, with the communication range of the radio frequency R = 10 m. Let u denote the number of unknown nodes in the network and ( x i , y i ) and ( x i ^ , y i ^ ) denote the real and estimated unknown node locations, respectively. In this paper, the localization criteria chosen in order to validate the proposed localization algorithm and compare it to other existent algorithms is the average localization error, which is denoted as e and is defined by Equation (14):
e = i = 1 u ( x i ^ x i ) 2 + ( y i ^ y i ) 2 n
In order to emphasize the relationship between the average localization error and the ratio of anchor nodes, we conducted simulations in the Matlab 2015a environment with the following configurations: 100 sensor nodes, the ratio of anchor nodes to total nodes varies from 5% to 30%, the communication range was fixed to R = 30 m. The performance comparisons are shown in Figure 8.
As seen in Figure 8 and as expected, the accuracy of localization improved with the increase in the ratio of anchor nodes in the network. In fact, the increase in the number of anchors led to maximization of the number of inputs to the Trilateration equation, used by the unknown node to estimate its distance with its neighboring anchors; thus, a better precision was achieved. It is worthy noting that, in Figure 8, the localization error decreases with the increase in the number of anchors in the network for all the compared algorithms (original DV-Hop, improved DV-Hop algorithm in [41], Hybrid DV-Hop [3], IR-DV-Hop [4], and the proposed algorithm). Furthermore, the localization error of our designed algorithm was smaller than that of its counterparts.
Table 1 shows the results of localization error when varying the anchors rate. The results are for 100 simulation runs.
Moreover, under the same simulation parameters of 100 sensor nodes randomly deployed in the sensing field of 100 × 100 m, we studied the impact of the communication range on the localization error. For this purpose, we fixed the ratio of anchor nodes to 10 % , and we varied the communication range R from 15 to 40 m. Figure 9 shows the localization error of the different compared localization algorithms.
We determined, as seen in Figure 9, the relationship between the average localization error and the nodes communication range. As is evident from this figure, the localization error decreased as the transmission radio increased. This result is expected as the increase in the transmission range led to maximization of the number of one-hop anchors and then the RSSI factor aims to improve the accuracy in the position estimation. Moreover, considering the same communication radius, the average localization error of the proposed algorithm is less than that of its counterparts.
The results of the localization error when varying the communication range for 100 simulation runs are shown in Table 2.
It is worth noting that, generally, RSSI-based localization algorithms are prone to noise effects. This can clearly be deduced from Equation (6), which shows the impact of noise in RSSI value computation. Our proposed algorithm is also vulnerable to noise effects. However, as the RSSI method is used to compute only a one-hop distance, this effect is low compared to other RSSI-based methods that use RSSI to compute the distance along the path from the unknown node to anchor. This claim is justified by the results of Figure 9, as the communication range variation has a low impact on localization error reduction.
Moreover, it is worth noting that the complexity of the proposed algorithm is O ( n ) , where n is the number of iterations. The complexity used in this work is the time complexity, which is also referred to as the computational complexity. It is a quantitative measure for the amount of computer time required to run an algorithm. This amount is estimated by counting the number of elementary operations performed by the algorithm. Here, we assume that each elementary operation takes a fixed amount of time to perform.

6. Conclusions

Localization methods in WSN are becoming very relevant topics. They have a vast scope of applications such as monitoring human beings or objects. Considering the drawbacks of a large localization error existing in the original DV-Hop algorithm, this paper proposed an improved DV-Hop algorithm based on distance correction. Additionally, the average hop-distance of each anchor, used by the algorithm to estimate the distance between unknown nodes and anchors, is replaced by a new formula that includes received signal strength indication (RSSI) ranging technology and the polynomial approximation. The proposed algorithm has a recursive form in position calculation in order to improve the localization accuracy. Experimental results prove that the proposed algorithm minimizes the error positioning of nodes and has a higher location accuracy compared with its counterparts.

Author Contributions

Conceptualization, S.M. and O.C.; methodology, S.M. and O.C.; software, H.L.; writing—original draft preparation, S.M.; writing—review and editing, O.C. and H.H; visualization, H.H.; supervision, O.C. and H.L.; funding acquisition, O.C. All authors have read and agreed to the published version of the manuscript.

Funding

No Funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors thank Taif University Research Supporting Project number (TURSP-2020/55), Taif University, Taif, Saudi Arabia. The authors would like to thank Asma Cheikhrouhou from University of Carthage, Tunis, Tunisia, for her English editing services.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jamil, F.; Cheikhrouhou, O.; Jamil, H.; Koubaa, A.; Derhab, A.; Ferrag, M.A. PetroBlock: A Blockchain-Based Payment Mechanism for Fueling Smart Vehicles. Appl. Sci. 2021, 11, 3055. [Google Scholar] [CrossRef]
  2. Allouch, A.; Cheikhrouhou, O.; Koubâa, A.; Khalgui, M.; Abbes, T. MAVSec: Securing the MAVLink protocol for ardupilot/PX4 unmanned aerial systems. In Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco, 24–28 June 2019; pp. 621–628. [Google Scholar]
  3. Cheikhrouhou, O.; Bhatti, G.M.; Alroobaea, R. A hybrid DV-hop algorithm using RSSI for localization in large-scale wireless sensor networks. Sensors 2018, 18, 1469. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Messous, S.; Liouane, H.; Liouane, N. Improvement of DV-Hop localization algorithm for randomly deployed wireless sensor networks. Telecommun. Syst. 2020, 73, 75–86. [Google Scholar] [CrossRef]
  5. Niculescu, D.; Nath, B. Ad hoc positioning system (APS) using AOA. In Proceedings of the IEEE INFOCOM 2003. Twenty-second Annual Joint Conference of the IEEE Computer and Communications Societies (IEEE Cat. No. 03CH37428), San Francisco, CA, USA, 30 March–3 April 2003; Volume 3, pp. 1734–1743. [Google Scholar]
  6. Niculescu, D.; Nath, B. DV based positioning in ad hoc networks. Telecommun. Syst. 2003, 22, 267–280. [Google Scholar] [CrossRef]
  7. Bulusu, N.; Heidemann, J.; Estrin, D. GPS-less low-cost outdoor localization for very small devices. IEEE Pers. Commun. 2000, 7, 28–34. [Google Scholar] [CrossRef] [Green Version]
  8. He, T.; Huang, C.; Blum, B.M.; Stankovic, J.A.; Abdelzaher, T. Range-free localization schemes for large scale sensor networks. In Proceedings of the 9th Annual International Conference on Mobile Computing and Networking, Wuhan, China, 21–22 December 2003; pp. 81–95. [Google Scholar]
  9. Shang, Y.; Ruml, W.; Zhang, Y.; Fromherz, M.P. Localization from mere connectivity. In Proceedings of the 4th ACM International Symposium on Mobile ad Hoc Networking & Computing, New York, NY, USA, 1–3 June 2003; pp. 201–212. [Google Scholar]
  10. Shang, Y.; Ruml, W. Improved MDS-based localization. In Proceedings of the IEEE INFOCOM 2004, Hong Kong, China, 7–11 March 2004; Volume 4, pp. 2640–2651. [Google Scholar]
  11. Nagpal, R.; Shrobe, H.; Bachrach, J. Organizing a global coordinate system from local information on an ad hoc sensor network. In Information Processing in Sensor Networks; Springer: Berlin/Heidelberg, Germany, 2003; pp. 333–348. [Google Scholar]
  12. Kaur, A.; Kumar, P.; Gupta, G.P. A weighted centroid localization algorithm for randomly deployed wireless sensor networks. J. King Saud-Univ.-Comput. Inf. Sci. 2019, 31, 82–91. [Google Scholar] [CrossRef]
  13. Okello, N.; Fletcher, F.; Musicki, D.; Ristic, B. Comparison of recursive algorithms for emitter localisation using TDOA measurements from a pair of UAVs. IEEE Trans. Aerosp. Electron. Syst. 2011, 47, 1723–1732. [Google Scholar] [CrossRef]
  14. Pal, A. Localization algorithms in wireless sensor networks: Current approaches and future challenges. Netw. Protoc. Algorithms 2010, 2, 45–73. [Google Scholar] [CrossRef]
  15. Sadowski, S.; Spachos, P. Rssi-based indoor localization with the internet of things. IEEE Access 2018, 6, 30149–30161. [Google Scholar] [CrossRef]
  16. Ren, Q.; Zhang, Y.; Nikolaidis, I.; Li, J.; Pan, Y. RSSI quantization and genetic algorithm based localization in wireless sensor networks. Ad Hoc Netw. 2020, 107, 102255. [Google Scholar] [CrossRef]
  17. Jondhale, S.R.; Deshpande, R.S. GRNN and KF framework based real time target tracking using PSOC BLE and smartphone. Ad Hoc Netw. 2019, 84, 19–28. [Google Scholar] [CrossRef]
  18. Luomala, J.; Hakala, I. Analysis and evaluation of adaptive RSSI-based ranging in outdoor wireless sensor networks. Ad Hoc Netw. 2019, 87, 100–112. [Google Scholar] [CrossRef]
  19. Mahfouz, S.; Nader, P.; Abi-Char, P.E. RSSI-based Classification for Indoor Localization in Wireless Sensor Networks. In Proceedings of the 2020 IEEE International Conference on Informatics, IoT, and Enabling Technologies (ICIoT), Doha, Qatar, 2–5 February 2020; pp. 323–328. [Google Scholar]
  20. Messous, S.; Liouane, N.; Pegatoquet, A.; Auguin, M. Hop-based routing protocol based on energy efficient Minimum Spanning Tree for wireless sensor network. In Proceedings of the 2018 International Conference on Advanced Systems and Electric Technologies (IC_ASET), Hammamet, Tunisia, 22–25 March 2018; pp. 421–426. [Google Scholar]
  21. Cheikhrouhou, O.; Koubâa, A. BlockLoc: Secure Localization in the Internet of Things using Blockchain. In Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco, 24–28 June 2019; pp. 629–634. [Google Scholar]
  22. Xiao, F.; Wu, M.; Huang, H.; Wang, R.; Wang, S. Novel node localization algorithm based on nonlinear weighting least square for wireless sensor networks. Int. J. Distrib. Sens. Netw. 2012, 8, 803840. [Google Scholar] [CrossRef] [Green Version]
  23. Luo, J.; He, Z.; Liu, Y.; Zha, J.; Li, K. Energy Confirmable Overlapping Target Tracking Based on Compressive Sensing in Wireless Sensor Networks. Ad Hoc Sens. Wirel. Netw. 2016, 32, 131–148. [Google Scholar]
  24. Gumaida, B.F.; Luo, J. Novel localization algorithm for wireless sensor network based on intelligent water drops. Wirel. Netw. 2019, 25, 597–609. [Google Scholar] [CrossRef]
  25. Merhi, Z.; Nahas, M.; Abdul-Nabi, S.; Haj-Ali, A.; Bayoumi, M. RSSI range estimation for indoor anchor based localization for wireless sensor networks. In Proceedings of the 2013 25th International Conference on Microelectronics (ICM), Beirut, Lebanon, 15–18 December 2013; pp. 1–4. [Google Scholar]
  26. Zhang, L.; Yang, H.; Yu, Y.; Peng, F. A Three-Dimensional Node Security Localization Method for WSN Based on Improved RSSI-LSSVR Algorithm. In Proceedings of the 2018 10th International Conference on Measuring Technology and Mechatronics Automation (ICMTMA), Changsha, China, 10–11 February 2018; pp. 182–186. [Google Scholar]
  27. Yu, Z.Z.; Guo, G.Z. Improvement of positioning technology based on RSSI in ZigBee networks. Wirel. Pers. Commun. 2017, 95, 1943–1962. [Google Scholar] [CrossRef]
  28. Mahapatra, R.K.; Shet, N. Localization based on RSSI exploiting gaussian and averaging filter in wireless sensor network. Arab. J. Sci. Eng. 2018, 43, 4145–4159. [Google Scholar] [CrossRef]
  29. Ding, X.; Dong, S. Improving positioning algorithm based on RSSI. Wirel. Pers. Commun. 2020, 110, 1947–1961. [Google Scholar] [CrossRef]
  30. Wang, H.; Zhang, F.; Zhang, W. Human Detection through RSSI Processing with Packet Dropout in Wireless Sensor Network. J. Sens. 2020, 2020. [Google Scholar] [CrossRef]
  31. Pang, M.; Feng, Z.; Bai, W. DV-Hop Localization Algorithm Based on RSSI Hop Number Correction and Improved Artificial Immune Algorithm Optimization. In Proceedings of the 2019 International Conference on Robots & Intelligent System (ICRIS), Haikou, China, 15–16 June 2019; pp. 501–504. [Google Scholar]
  32. Niculescu, D.; Nath, B. Ad hoc positioning system (APS). In Proceedings of the GLOBECOM’01. IEEE Global Telecommunications Conference (Cat. No. 01CH37270), San Antonio, TX, USA, 25–29 November 2001; Volume 5, pp. 2926–2931. [Google Scholar]
  33. Zhang, S.; Er, M.J.; Zhang, B.; Naderahmadian, Y. A novel heuristic algorithm for node localization in anisotropic wireless sensor networks with holes. Signal Process. 2017, 138, 27–34. [Google Scholar] [CrossRef]
  34. Messous, S.; Liouane, H. Online Sequential DV-Hop Localization Algorithm for Wireless Sensor Networks. Mob. Inf. Syst. 2020, 2020, 8195309. [Google Scholar] [CrossRef]
  35. Chuang, P.J.; Jiang, Y.J. Effective neural network-based node localisation scheme for wireless sensor networks. IET Wirel. Sens. Syst. 2014, 4, 97–103. [Google Scholar] [CrossRef]
  36. Yedavalli, K.; Krishnamachari, B.; Ravula, S.; Srinivasan, B. Ecolocation: A sequence based technique for RF localization in wireless sensor networks. In Proceedings of the IPSN 2005. Fourth International Symposium on Information Processing in Sensor Networks, Boise, ID, USA, 15 April 2005; pp. 285–292. [Google Scholar]
  37. Xu, Y.; Luo, X.; Wang, W.; Zhao, W. Efficient dv-hop localization for wireless cyber-physical social sensing system: A correntropy-based neural network learning scheme. Sensors 2017, 17, 135. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  38. Parameswaran, A.T.; Husain, M.I.; Upadhyaya, S. Is rssi a reliable parameter in sensor localization algorithms: An experimental study. In Proceedings of the Field failure data analysis workshop (F2DA09), Niagara Falls, NY, USA, 27–30 September 2009; pp. 27–30. [Google Scholar]
  39. Dolha, S.; Negirla, P.; Alexa, F.; Silea, I. Considerations about the signal level measurement in wireless sensor networks for node position estimation. Sensors 2019, 19, 4179. [Google Scholar] [CrossRef] [Green Version]
  40. Joshi, Y.K.; Younis, M. Restoring connectivity in a resource constrained WSN. J. Netw. Comput. Appl. 2016, 66, 151–165. [Google Scholar] [CrossRef] [Green Version]
  41. Xue, D. Research of localization algorithm for wireless sensor network based on DV-Hop. EURASIP J. Wirel. Commun. Netw. 2019, 2019, 218. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Wireless sensor network topology sample.
Figure 1. Wireless sensor network topology sample.
Sensors 21 04152 g001
Figure 2. RSSI vs. distance variation.
Figure 2. RSSI vs. distance variation.
Sensors 21 04152 g002
Figure 3. Example of a wireless sensor network. Localization of node N U using RSSI values and HopCount to anchors.
Figure 3. Example of a wireless sensor network. Localization of node N U using RSSI values and HopCount to anchors.
Sensors 21 04152 g003
Figure 4. Flowchart of the proposed localization algorithm.
Figure 4. Flowchart of the proposed localization algorithm.
Sensors 21 04152 g004
Figure 5. Localization results with random deployment of anchors.
Figure 5. Localization results with random deployment of anchors.
Sensors 21 04152 g005
Figure 6. Localization results with circular deployment of anchors.
Figure 6. Localization results with circular deployment of anchors.
Sensors 21 04152 g006
Figure 7. Localization results with spiral deployment of anchors.
Figure 7. Localization results with spiral deployment of anchors.
Sensors 21 04152 g007
Figure 8. Localization error as function of anchor rate, with 100 sensor nodes and R = 30 m.
Figure 8. Localization error as function of anchor rate, with 100 sensor nodes and R = 30 m.
Sensors 21 04152 g008
Figure 9. Localization error as function of transmission range, with 100 sensor nodes and ratio of anchors = 10%.
Figure 9. Localization error as function of transmission range, with 100 sensor nodes and ratio of anchors = 10%.
Sensors 21 04152 g009
Table 1. Localization error as function of anchor rate.
Table 1. Localization error as function of anchor rate.
Anchors Rate (%)51015202530
Min localization error (m)3.9953.7153.2143.7252.3532.216
Max localization error (m)4.5254.4523.9523.253.1562.856
Mean localization error (m)4.2234.1713.322.852.4532.351
Standard deviation0.0180.0200.0350.0150.0450.022
Table 2. Localization error as function of communication range.
Table 2. Localization error as function of communication range.
Communication Range (m)152025303540
Min localization error (m)5.854.3512.752.2312.2152.112
Max localization error (m)6.7415.1233.1243.1253.3213.885
Mean localization error (m)6.0124.6232.9122.3652.4532.625
Standard deviation0.2170.3320.1240.1240.0820.112
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Messous, S.; Liouane, H.; Cheikhrouhou, O.; Hamam, H. Improved Recursive DV-Hop Localization Algorithm with RSSI Measurement for Wireless Sensor Networks. Sensors 2021, 21, 4152. https://doi.org/10.3390/s21124152

AMA Style

Messous S, Liouane H, Cheikhrouhou O, Hamam H. Improved Recursive DV-Hop Localization Algorithm with RSSI Measurement for Wireless Sensor Networks. Sensors. 2021; 21(12):4152. https://doi.org/10.3390/s21124152

Chicago/Turabian Style

Messous, Sana, Hend Liouane, Omar Cheikhrouhou, and Habib Hamam. 2021. "Improved Recursive DV-Hop Localization Algorithm with RSSI Measurement for Wireless Sensor Networks" Sensors 21, no. 12: 4152. https://doi.org/10.3390/s21124152

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop