Next Article in Journal
Photoacoustic Imaging of COVID-19 Vaccine Site Inflammation of Autoimmune Disease Patients
Previous Article in Journal
Real-Time Laser Interference Detection of Mechanical Targets Using a 4R Manipulator
Previous Article in Special Issue
Data Dissemination in VANETs Using Particle Swarm Optimization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing Localization Efficiency and Accuracy in Wireless Sensor Networks

1
Department of Computer Science & Information Technology, University of Malakand, Chakdara 18800, Pakistan
2
Department of Software Engineering, University of Malakand, Chakdara 18800, Pakistan
3
Department of Computer Science, College of Computer Science, King Khalid University, Abha 62529, Saudi Arabia
4
Department of Computer Science, Superior University, Lahore 54000, Pakistan
5
Department of Computer Science, National University of Computer and Emerging Sciences, Chiniot-Faisalabad Campus, Chiniot 35400, Pakistan
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(5), 2796; https://doi.org/10.3390/s23052796
Submission received: 2 December 2022 / Revised: 13 January 2023 / Accepted: 15 January 2023 / Published: 3 March 2023
(This article belongs to the Special Issue Wireless Sensor Networks and Communications)

Abstract

:
Accuracy is the vital indicator in location estimation used in many scenarios, such as warehousing, tracking, monitoring, security surveillance, etc., in a wireless sensor network (WSN). The conventional range-free DV-Hop algorithm uses hop distance to estimate sensor node positions but has limitations in terms of accuracy. To address the issues of low accuracy and high energy consumption of DV-Hop-based localization in static WSNs, this paper proposes an enhanced DV-Hop algorithm for efficient and accurate localization with reduced energy consumption. The proposed method consists of three steps: first, the single-hop distance is corrected using the RSSI value for a specific radius; second, the average hop distance between unknown nodes and anchors is modified based on the difference between actual and estimated distances; and finally, the least-squares approach is used to estimate the location of each unknown node. The proposed algorithm, named Hop-correction and energy-efficient DV-Hop (HCEDV-Hop), is executed and evaluated in MATLAB to compare its performance with benchmark schemes. The results show that HCEDV-Hop improves localization accuracy by an average of 81.36%, 77.99%, 39.72%, and 9.96% compared to basic DV-Hop, WCL, improved DV-maxHop, and improved DV-Hop, respectively. In terms of message communication, the proposed algorithm reduces energy usage by 28% compared to DV-Hop and 17% compared to WCL.

1. Introduction

Wireless sensor networks (WSNs) have garnered significant interest from academia and industry due to their potential use in various applications such as disaster monitoring, target tracking, routing, battlefield surveillance, and many others [1]. Some applications have recently emerged that require the random deployment of many nodes over large hostile environments to be monitored. Based on WSN deployment, we have isotropic and anisotropic categories. In an isotropic network, sensor nodes are uniformly distributed throughout the network with a uniform node density. In contrast, sensor nodes in an anisotropic network are unevenly distributed. If these sensors’ positions are unknown, the data collected is useless until and unless the most feasible exact location can be estimated [2]. Even though several analyses of the relevant literature have been conducted, localization remains a complex and unsolved problem. Developing cost-effective, scalable, efficient, and reliable localization techniques for WSNs has been an active research area. Localization in sensor networks is a significant issue that requires robust solutions.

1.1. High-Level Description

Localization has received significant attention in recent years. In WSN, some nodes are aware of their location and are referred to as anchor nodes. On the other hand, nodes that do not know their coordinates are called unknown or unlocalized. The coordinates of anchor nodes are calculated using the global positioning system (GPS) [3], whereas unknown nodes estimate their coordinates using anchor nodes, as shown in Figure 1. Many localization algorithms have been developed, but they often face a trade-off between localization accuracy and energy efficiency. High energy costs can impact localization accuracy; conversely, efforts to minimize energy can impact location accuracy. Therefore, it is important to consider accuracy and energy efficiency to achieve a cost-effective and highly accurate localization solution.

1.2. Motivation

Numerous localization algorithms have been reviewed and analyzed for accuracy and energy efficiency. These algorithms can be categorized as either range-based or range-free. Some examples of range-based algorithms are AOA, TDOA, TOA, and RSSI schemes [4,5,6]. Alternatively, the location of an unlocalized node can be computed based on Euclidean distance from anchor nodes using algorithms such as DV-Hop [7], a range-free algorithm. Range-free solutions are often preferred in cases where the hardware constraints or energy limitations of sensor nodes require a high degree of localization accuracy. They are also a cost-effective option in such situations.
This paper aims to address the challenges of DV-Hop-based localization in WSNs regarding accuracy, energy efficiency, and position estimation. Ensuring a long network lifespan and high localization accuracy is critical for WSN localization, and determining an accurate and cost-effective localization technique for sensor networks remains challenging. Therefore, there is a need for a mechanism to accomplish energy-efficient and precise localization in WSNs, which motivated this study.

1.3. Contribution

This paper proposes an energy-efficient and accurate localization scheme for WSNs. We reduce the number of packets transmitted during the localization phase to improve energy efficiency. We add a step to increase localization accuracy that calculates the accumulated error of the average hop distance (AHD).
The work presented in this paper makes the following research contributions:
  • The proposed scheme restricts the broadcasting range or the packets transmitted between nodes by defining a specific threshold that minimizes communication overhead and saves precious network lifetime.
  • Introduces a refining step based on the calculation of the AHD error.
  • The computational cost of localization time is minimized by introducing a threshold in the proposed algorithm.
  • The performance of the proposed algorithm is compared to the state-of-the-art using a MATLAB-based simulator, demonstrating the improvements in energy efficiency and localization accuracy for WSNs.
The remaining sections of the paper are structured as follows: Section 2 examines the current literature on improvements to DV-Hop. The proposed novel algorithm is presented in Section 3. In Section 4, we provide an example of the proposed algorithm. The performance analysis is discussed in Section 5. Finally, Section 6 ends with an overview of the research and suggestions for further study.

2. Related Work

Over time, many algorithms to attain energy-efficiency and location accuracy in WSNs have been recommended in the relevant literature. These solutions are divided into range-based and range-free localization approaches [8,9]. For location estimation, the previous approaches employed range or angle measures such as angle of arrival (AOA) [4], time difference of arrival (TDOA) [5], and received signal strength indicator (RSSI) [6]. In contrast, the latter methods used a different localization methodology. In terms of power consumption, hardware cost, and complexity, it has been found that range-free approaches are better than range-based techniques [10]. This part will review some localization techniques based on DV-Hop and its variants.
DV-Hop is a traditional localization method that has gained popularity among academics due to its ease of use, stability, affordability, and minimal hardware requirements. Unknown nodes acquire anchor node information in this algorithm within a defined number of hops and calculate distances between themselves and anchors using DV-Hop [7], as the DV-Hop technique uses the connection information to calculate the shortest paths. Unknown nodes employ the AHD to determine approximated distances to anchors. The three phases of the DV-Hop algorithm are described in the following lines.
  • Phase 1: Determining Minimum Hop Count by Flooding
All anchors broadcast control packets containing their coordinates, i.e., (Xi, Yi). These coordinates are sent to their neighbors in this stage, and hop values are set to zero. The control packet has the following format: (Xi, Yi, hop value). A neighbor node receives a packet from a specific anchor with a lower hop count, the anchor node’s coordinates are preserved, and its hop value is updated by “1” before forwarding the packet to additional neighbor nodes; otherwise, the message is rejected, as shown in Figure 2. Consequently, each unlocalized node receives the lowest hop count for each anchor.
  • Phase 2: Determining Distance by Calculating AHD
In this phase, the anchors receive the minimum hop count computed in the first phase. Then, using the Euclidean formula, the anchor can calculate its distance from different anchors and divide it by the minimum hop count. Anchors determine the AHD of each anchor node in this step, as depicted in Figure 3. The AHD for the anchor node is computed using Equation (1):
A H D = i = j d i , j i = j h i , j
where  d i , j = ( x i x j ) 2 ( y i y j ) 2  and the coordinates of anchor nodes i and j are provided by  ( x i , y i )  and  ( x j , y j )  respectively, whereas the minimum hop value is represented by  h i , j . After computing HopSizei, each anchor node uses controlled flooding to broadcast its HopSizei throughout the system. The approximate distance between the anchor “i” and the unlocalized node “u” is computed using Equation (2):
d u , i = A H D × h u , i
where  h i , u  is the shortest distance between “i” and “u”.
  • Phase 3: Unknown Node’s location Estimate
In this stage, the coordinates of all unlocalized nodes are established. The multi-literation technique [9] approximates the unlocalized node’s position.
It is presumed that  ( x ,   y )  are the coordinates of an unlocalized node and (xi, yi) are the known coordinates of anchor “i”. Let “dm” be the distance between the unlocalized and the anchor, where m represents the total anchors.
Equation (3) has the following form:
{ ( x x 1 ) 2 + ( y y 1 ) 2 = d 1 2 ( x x 2 ) 2 + ( y y 2 ) 2 = d 2 2 : ( x x m ) 2 + ( y y m ) 2 = d m 2
The matrix representation of Equation (4) from Equation (3) is as follows:
A X u n = B
A = 2 × [ x m x 1 y m y 1 x m x 2 y m y 2 x m 1 x m y m 1 y m ]
B = [ d 1 2 d m 2 + x m 2 x 1 2 + y m 2 y 1 2 d 2 2 d m 2 + x m 2 x 2 2 + y m 2 y 2 2 d m 1 2 d m 2 + x m 2 x m 1 2 + y m 2 y m 1 2 ]
X = [ x y ]
The unknown node X possessing coordinates  ( x ,   y )  can obtain its calculated coordinates using least-squares methods as follows:
X = ( A T A ) 1 A T B
This scheme will consume more energy due to flooding and position errors due to AHD and will be employed only for isotropic networks. This algorithm still needs improvement with consideration of essential factors such as increasing energy efficiency, improving location accuracy, and reducing communication overhead. The distribution of sensor nodes affects the DV-Hop algorithm’s accuracy; specifically, if the distances between nodes are approximately equal, the average hop size anticipated will be correct, leading to a low localization error. However, the algorithm’s accuracy suffers if the distribution of nodes is unequal [11]. To overcome the drawbacks of the DV-Hop algorithm, a novel method based on the DV-Hop localization technique was proposed by Fang et al. [12]. The RSSI technology is introduced when classifying the current methods based on whether the placement node is one hop away from anchor nodes. Utilizing signal attenuation during signal transit, RSSI calculates the distance. If the sending node’s transmitting signal strength and the receiving node’s received signal strength are known, the signal loss during transmission can be calculated and the formula may then be used to convert the transmission loss to distance. This capability is mostly used in this article so that RSSI technology may find the single hop between two nodes. The other purpose of this technology and the existence of constraints, therefore, had no impact and may be disregarded. Low cost and low power requirements are met via the improved DV-Hop Algorithm. However, external influences can readily impact a signal and affect the ability to ensure that anchor nodes are distributed uniformly and in a specific proportion.
Liu, J. et al. propose various average hop distance (VAH-DV-hop) methods [13] which can reduce energy consumption and eliminate extra hardware. The fundamental ideas of this method are to utilize the angle approach to solve the problems faced by routing and to use varied AHD to improve distance estimation accuracy. According to simulation results, VAH-DV-Hop can boost location precision, especially in networks with uneven coverage. In the DV-Hop method, hop distance is used for straight-line hop distance. However, in a real network, the route between the anchor node and the unknown nodes is not straight. The authors of [14] found that altering the distance between the anchor and unlocalized nodes improved the DV-Hop approach’s accuracy and reduced the localization errors it introduced.
IDVLA, a reliable DV-Hop variant suggested by Chen et al. [15], assesses the average hop size rather than the initial hop size. The least-squares approach was replaced by the weighted least-squares method. Thus, each anchor helps to determine the location of the node. However, if we investigate only a few anchors close to a unlocalized node, there is a greater possibility that the node can be located with more precision. Zhang et al. provide a unique weighted centroid localization (WCL) based on DV-Hop that can only find unknown nodes that are strongly related to the anchor nodes, as illustrated in Equation (9) in [16]:
x j = i = 1 n w i x i n , y j = i = 1 n w i y i n ,   where   w i = 1 h o p i , j
where (xi, yi) are the known coordinates, (xj, yj) are the unknown coordinates, and n is the total nodes. WCL consumes more energy, like DV-Hop, and the weight calculation increases computational complexity, which, again, consumes more energy. Furthermore, G. Song et al. introduced the Refined DV-Hop localization technique in [17], which uses a hyperbolic function rather than multiliteration to estimate the average of the average hop size of all nodes. X.Fang et al., in [18], established a technique based on the compensation coefficient that may decrease error by correcting the distances between anchors and unlocalized nodes.
S. Tomic [19] exploited three advanced DV-Hop variants (iDV-Hop1, iDV-Hop2, and Quad DV-Hop), in which the first two algorithms used the geometry method, which improved accuracy slightly. However, the other algorithm uses a quadratic programming solution instead of the least-squares method to solve non-linear equations. It significantly improves accuracy. As mentioned above, the first two phases in all algorithms are identical and require significant energy due to broadcasting. Energy use can be greatly reduced if this message transmission can be managed somehow. Furthermore, the authors in [20] provide a method for comparing hop sizes to determine the best maximum hop count. The AHD from the source node is modified using this method using a single-hop average error function and a sub-error estimate function. Although employing all anchors reduces inaccuracy, the method requires significant online and offline computing. A non-linear weighted hyperbolic (WH) approach is implemented on each node to acquire its location in [21] by J. Mass-Sanchez et al., which improved accuracy significantly while increasing complexity and processing time. According to the research in [22], a threshold for distance or hop count should be used to improve computation and prevent energy loss from dying nodes.
Xin Qiao [23] proposed a WSN localization technique, based on DV-Hop, which adjusts both the AHD and position computation. The technique utilizes the optimized anchor node information and has better placement precision compared to a single anchor node. The main algorithmic improvements in this technique are the initial value estimate and final estimation of node coordinates. The initial estimate uses the min-max approach when there are fewer anchor nodes, and the ML algorithm is used when there are more anchor nodes. The final estimation’s initial value is repeatedly optimized using the quasi-Newton method. The experiments showed that it provides an efficient and effective ranging-free locating solution for WSN. However, the main benefit of the min-max algorithm is its ability to produce good positioning results with minimal calculation; however, if there are many anchor nodes, its accuracy could suffer.
A technique for enhancing the precision of target localization and tracking in indoor industrial environments was suggested by Khan, M.A., et al. [24]. The method involves selecting dependable nodes by considering the distance between nodes within a cluster and the destination to reduce placement errors. The technique was found to be more accurate in tracking targets than traditional trilateration. However, it is inappropriate for outdoor use or large-scale applications.
D. Xue [25] suggested an improved DV-Hop algorithm based on hop thinning and distance adjustments to mitigate the significant error in DV-Hop. Using RSSI ranging technology, the weighted average of the estimated distance and hop distance errors are utilized to change the AHD and the minimum hop distance. The literature review demonstrated that most efforts have focused on enhancing localization accuracy, whereas energy reduction, a crucial aspect of WSN localization, has not been addressed. Although all the work mentioned above enhances localization precision, relatively few efforts have focused on minimizing energy consumption. Moreover, in [26], the inverse distance weighting (IDW) correction approach produces a precise AHD. Different weights are assigned to anchors based on their distances.
A priority-based algorithm [27] is another strategy that gives a few anchors precedence depending on their AHD. Using high-priority anchors, the weighted centroid approach is then used to locate unknown nodes. Results reveal that the methodology works better in anisotropic fields than the current weighted centroid methods. A second study direction examined the locations of uneven fields. A chaotic environment, network gaps, uneven fields, and irregular node radio propagation patterns are a few anomalies that make node localization challenging [28].
An improved version of the DV-Hop algorithm for industrial WSNs, based on the multi-communication radius localization technique and utilizing the cosine theorem to optimize distance estimation for unidentified nodes and correct hop count estimations, was proposed in [29]. The algorithm employs multiple communication radii for broadcasting positions and seeks to minimize the number of hops between unknown and beacon nodes. It then utilizes maximum likelihood estimation to identify the coordinates of the position of the unknown node after modifying hop distance estimations with the cosine theorem. The performance of this improved algorithm is compared to the traditional DV-Hop and DDV-Hop algorithms under varying densities of anchor nodes and communication radii. Results from experiments have shown that the improved DV-Hop algorithm leads to increased location accuracy and a reduction in average location error for unlocalized nodes when compared to the traditional algorithms.
DV-maxHop localization, based on anisotropic and isotropic networks, was proposed by Shehzad et al. [30]. For better network location, the authors included a control parameter named MaxHop. If the hop count exceeds MaxHop, the information from the anchor nodes is ignored by the destination node. This prevents the use of data from different anchor nodes, which leads to distance estimate inaccuracies. The MaxHop technique improves convergence speed, localization precision, and energy usage in both isotropic and anisotropic networks. If anchor nodes are distributed unevenly, the technique either fails to locate all unknown nodes or its precision is significantly reduced. Improved DV-maxHop [31] was proposed in the context of examining the DV-maxHop constraint. In this scheme, we adjust the average hop count of each link between the anchor and unlocalized nodes to rectify the distances using a correction approach. This change, based on the distribution of sensors in the network, enables the sensors to more accurately position themselves. Based on the simulation findings, it is clear that improved DV-maxHop significantly improves location error without adding any additional hardware or increasing communication costs.
Messous, S., et al. proposed a scheme [32] for estimating the distance between unidentified nodes and anchors using the polynomial approximation and the RSSI. In addition, this approach employs a recursive calculation of the localization to increase location estimate precision. Experimental findings demonstrate that this method reduces localization error and enhances localization precision.
In addition to DV-Hop and its other latest algorithms, an energy-efficient strategy is presented by S. Kumar et al. in [33], which suggests that anchors’ hop sizes are calculated and modified at the target node, generating an energy-efficient algorithm. This technique reduces considerable communication between the nodes. Goyat, R., et al. [34] described a three-phase procedure for energy-efficient localization in WSNs. Discovering the one-hop neighbor nodes via beacon nodes by sending additional tone requests and reply packets via the MAC layer to minimize packet collisions is the initial stage. The second stage is to separate the detected one-hop unlocalized nodes into two groups: those with direct and those with indirect communication. This action is taken to increase energy efficiency. To reduce localization errors, a correction factor is then used, and the localized nodes are turned into assistance nodes. In addition, Kaur et al. [35] suggested an approach to investigate how tight anchors affect the results of DV-Hop algorithms, which consume less energy. However, this often leads to overestimating the distance and decreased localization accuracy. Liu et al. [36] reduced hops between unknown and anchor nodes to save energy. Accuracy is achieved by modifying positioned nodes and weighting one-hop distance. Simulations show the above strategy reduces localization rounds, positioning error, and energy consumption.
This section presents the enhanced version of the DV-Hop algorithm [35], which consists of the three phases outlined below:
  • Step 1. The first step is similar to that of a traditional DV-Hop.
  • Step 2. All anchors calculate their AHD using Equation (1) and forward it to all other nodes. The unknown node locates the “t” anchors nearby, calculates their distance from those “t” anchors, and then multiplies the number of hops by the AHD using Equation (2).
  • Step 3. Using the least-squares method and only “t” nearby anchors, the coordinates of all nodes can be computed using the given Equations (10)–(13).
A X u n = B
A = 2 × | x 1 x i y 1 y i x 2 x i y 2 y i : : x t 1 x t y t 1 y t |
B = | x 1 2 x t 2 + y 1 2 y t 2 d 1 t 2 d u n t 2 x 2 2 x t 2 + y 2 2 y t 2 d 2 t 2 d u n t 2 x t 1 2 x t 2 + y t 1 2 y t 2 d t ( t 1 ) 2 d u n t t 2 |
The unknown node X with coordinates  ( x ,   y )  can calculate its estimated coordinates using least-squares methods as follows:
X = ( A T A ) 1 A T B
From the literature review, it is evident that when we improve localization accuracy, energy consumption increases. On the other hand, location accuracy is compromised if we want to minimize energy consumption. While previous research has made some progress in improving localization accuracy in some studies [7,12,16,25,30,31,32] and reducing energy consumption in others [33,35,36], there is still room for further improvement. To the best of our knowledge, no studies have been focused on minimizing the trade-off between energy efficiency and localization accuracy. Thus, there is a dire need for a contemporary solution in WSN localization to obtain higher localization accuracy while focusing on minimized energy consumption. These techniques allow a certain degree of localization error reduction, but there is still room for improvement.

3. The Proposed Enhanced DV-Hop Algorithm

In this paper, we propose the Hop-correction and energy-efficient DV-Hop (HCEDV-Hop) algorithm, an enhanced version of DV-Hop, to enhance location accuracy and energy efficiency. The HCEDV-Hop algorithm aims to exclude anchor nodes that could cause significant errors in the AHD calculation by setting a range error factor. This improves the accuracy of AHD calculations and reduces the impact of random topology. Next, the anchor node broadcasts the corrected AHD to the t-hop threshold to prevent unknown nodes from receiving information from all anchor nodes. The algorithm then calculates the distances between the anchor and unlocalized nodes based on the corrected AHD for t hops. It approximates these distances using the least-squares method to enhance location accuracy as shown in Algorithm 1.
Algorithm 1 HCEDV-Hop WSN Localization with Correction step
 This study introduces an enhanced version of the DV-Hop algorithm named Hop-correction and energy-efficient DV-Hop (HCEDV-Hop). We demonstrate that this algorithm can accurately predict the locations of unlocalized nodes with low energy consumption by introducing a threshold and correcting the AHD.
Input: Total nodes n, Anchor nodes m, coordinates (Xi, Yi), communication range R, area 500 * 500 m2
Output: Location estimate Xn of unknown nodes
Initialization: i = 1,2, 3, …, n
 Packet = 0
Selecting a set of anchors for the localization procedure
f o r ( i = 2   t o   n )
f o r ( j = 1   t o   i 1 )
d i , j = ( x i x j ) 2 + ( y i y j ) 2
Packet = Packet + 1
i f   ( d i , j < = R   )
    h o p = 1
e l s e
    h o p = h o p + 1
e n d
h i j = h j i
e n d   f o r  
e n d   f o r
f o r ( i = 1   t o   n m )
Packet = Packet + 1
i f   ( h o p = = 1 )
   Using RSSI by Equation (14).
e l s e
    f i n d i n g   m i n i m u m   h o p
e n d
Calculate AHD using Equation (16)
Calculate the AHD error using Equation (17)
Calculate distance by adding error using Equation (18)
Position estimation Xn of the unknown node using Equation (10)–(13) for t-specific threshold
e n d   f o r
Estimate coordinates of unknown node n and energy consumption in terms of a packet exchanged
End
  • Design Goals
In the DV-Hop localization technique, the distance between unlocalized and anchor nodes is calculated using an unbiased estimate, which can introduce errors in the AHD calculation, such as cumulative errors in the AHD and unknown node estimates. We propose an AHD removal step in the HCEDV-Hop algorithm to minimize these errors. This enhances the accuracy of the AHD and unknown node estimation calculations in the final step of the algorithm.
Flooding is a resource-intensive and energy-demanding process that generates significant communication overhead. In the first phase of the proposed algorithm, anchor nodes transmit information data packets which are then forwarded by neighbor nodes, increasing the hop value by one and saving the anchor node’s information. The information is then sent on to other nodes rather than back to the source. During the flooding communication stage, an unknown node may receive the same data from multiple anchor nodes through different routes. The unknown node saves the information data that have traveled the minimum number of hops, which minimizes resource and energy consumption.
The overall architecture of the HCEDV-Hop algorithm is depicted in Figure 4.
The proposed solution, similar to DV-Hop, comprises three phases, but the second step includes a refinement sub-step.
  • Phase 1. Minimum Hop Calculation
The localization of unidentified nodes is initiated by anchors. To initiate localization, each anchor specifically sends a begin anchor msg (BAG) message to its neighbors. The BAG message consists of the fields (N_ID, coordinates, hop value), where N_ID is the node identification, coordinates are the node’s location, and hop value is the node’s hop count. Each node that receives this message evaluates its location before forwarding it to its neighbors. By employing this method, we guarantee that the closest nodes to the anchor nodes are localized first and sequentially. Every node that receives this message stores the identifier and approximate position of its neighbor. Once a node has at least three anchors and/or neighbors, it may use multiplication to determine its location.
Recall that each node has a table named H_Table that includes the hop value and the coordinates of every other node. Phases 1 and 2 of this study provide the data. The N_ID and the coordinates of the neighboring node are stored in the H_Table, and this table is updated whenever a BAG message is received from a neighbor.
To minimize message forwarding and energy consumption and increase network lifespan, the last two phases of the proposed algorithm utilize controlled flooding or thresholding.
  • Phase 2. Distance Calculation
If the anchor and unknown nodes have just one hop value, distance estimation is performed using the RSSI approach, as suggested by L. Girod et al. in [36] using Equation (14).
d = 10 A R S S I 10 n
where d is the distance, A is the transmitted power at the transmitter node, RSSI is the transmitter power at the received signal, and n is the attenuation constant.
The RSSI method involves anchor nodes sending beacons to every nearby node in the given dataset, and the neighbors respond with a beacon containing signal strength data. Using the RSSI value doesn’t call for any specialized hardware or add extra expenses because the MAC sub-layer in the majority of current WSNs computes and transfers the RSSI value for every received packet to higher layers. The RSSI can be calculated using Equation (15):
R S S I = A 10 n log 10 d d 0 + X σ
Theoretically, with path loss assumed to be negligible, the signal intensity is proportional to the distance between anchors and adjacent nodes. From this information, the distance of an anchor node to a neighboring node can be calculated for a single hop.
Each anchor i calculates its approximate AHD under a specific threshold using Equation (16) to minimize the amount of energy used:
A H D i = i = 1 i j m ( x j x i ) 2 + ( y j y i ) 2 i = 1 i j m h j i
In WSN, nodes are deployed randomly, resulting in non-linear paths between them that can cause the AHD to be larger than the actual value and introduce errors in estimation. Improving the precision of the AHD increases the accuracy of estimated locations. In the proposed algorithm, we introduce a refinement step in AHD calculation under threshold “t” to minimize errors in estimated positions and improve localization accuracy, rather than using broadcast communication. This is achieved by defining a new formulation for AHD calculation in this phase.
In a WSN where nodes are deployed randomly, the AHD (which represents the distance between nodes) is not a straight line and can deviate significantly from its actual value. In contrast, the Euclidian distance formula is applied to a straight line. This leads to large errors when the AHD error is multiplied by the hop count value.
Each anchor is able to determine its own refine error value as a result of the error correction formula, which has the consequence of effectively reducing the cumulative error when identifying unknown nodes. It is important to note that the AHD of all anchors are correct to a sufficient degree in the scenario being discussed, and that the best possible solution has been found. To reduce this error, the AHD is corrected by subtracting it from the communication radius and multiplying the result by the hop count value before dividing the full expression by the communication radius. This correction results in a small difference between the real and estimated coordinates, thereby improving accuracy under a specific threshold. In our simulation, we varied the threshold value from three to eight. We determined the most appropriate threshold value through iterative execution of the proposed algorithm to achieve the desired accuracy. The error calculation in the second phase of DV-Hop, as shown in Equation (17), can be fine-tuned to improve accuracy.
R E F = ( H C * ( R A H D i ) ) R
The correction term (REF) and the anchor’s minimum hop count (HC) from an unknown node u, as well as the communication range (R), are used to calculate the refined AHD value for each anchor under a specific threshold. The network broadcasts this refined AHD value. The distance (di) between “i” and “u” within a specific threshold is then determined using Equation (18):
d i = ( H C * A H D i ) + R E F
  • Phase 3. Unknown Node Position Estimation
In the final stage, the unknown node improves the accuracy of its estimated coordinates using the least-squares method for a specific threshold “t”, as shown in the Equations (10)–(13). The proposed solution reduces energy consumption and improves localization accuracy by minimizing errors.

4. Example Scenario of the Proposed HCEDV-Hop Algorithm

In an WSN with a 50 * 50 m2 region, 15 anchors and 35 unknown nodes are dispersed randomly with a communication radius of 10 m, as depicted in Figure 5. Suppose we wish to discover the position of a particular node “N” in the WSN grid with actual coordinates  36.24   28.81 .
Node “N” follows the steps below to estimate its coordinates:
Phase 1. The first stage is identical to the DV-Hop process. As indicated in Table 1, the anchor nodes provide information to all other nodes. Table 2 provides the minimum hop value of a node “N” from each anchor node.
Phase 2. Equation (16) is used in this phase to compute the AHD of all anchor nodes under a specific threshold. The AHD for each network anchor is shown in Table 3. Then, we calculate the AHD correction using Equation (17), which is shown in Table 4. After calculating the AHD from each anchor, Node “N” adds the refinement and calculates the distance under a specific threshold, as illustrated in Equation (18). The distance between node “N” and each anchor is depicted in Table 5.
Phase 3. The position is estimated using the least-squares approach for a given threshold with six hops to locate the node “N” location.
The coordinates of unknown nodes can be calculated using Equation (10), where
A = 2 × | x 1 x i y 1 y i x 2 x i y 2 y i : : x 5 x 6 y 5 y 6 |
B = | x 1 2 x 6 2 + y 1 2 y 6 2 d 6 2 d u n 6 2 x 2 2 x 6 2 + y 2 2 y 6 2 d 12 2 d u n 6 2 x 3 2 x 6 2 + y 3 2 y 6 2 d 18 2 d u n 6 2 x 4 2 x 6 2 + y 4 2 y 6 2 d 24 2 d u n 6 2 x 5 2 x 6 2 + y 5 2 y 6 2 d 30 2 d u n 6 2 |
Solving Equation (10) produces node “N” coordinates much closer to the actual values.
The proposed algorithm can be used for various applications. Possible application scenarios (static anchor and unlocalized static nodes) include the case in which a WSN is deployed in an industry/factory to monitor the temperature and vibration of different machines and equipment. The WSN is composed of anchor nodes and unlocalized nodes. The anchor nodes could also be used for other purposes, such as providing power to the unlocalized nodes, or acting as routers to relay data from the unlocalized nodes to the central server. These anchor nodes have GPS or other external localization capabilities and serve as reference points for the localization of the unlocalized nodes. They act as gateways to the central server and are used to communicate with the unlocalized nodes, supplying the essential information for calculating their positions. The unlocalized nodes could be placed on or near a wide range of machines and equipment, such as pumps, motors, and conveyor belts, depending on the specific needs of the factory, to measure temperature and vibration. These unlocalized nodes do not have GPS or other external localization capabilities, and they communicate with the anchor nodes using wireless signals. The unlocalized nodes are not linked to the central server; therefore, they communicate sensor data to the anchor nodes, which utilize the method to determine the unlocalized nodes’ positions based on hop count information and wireless signal RSSI. It uses a distributed technique in which each network node is able to perform localization computations. In the first phase, each node determines its minimum hop value, stored in the H_Table. In the second phase, if the hop value is one, then its distance is measured by RSSI using Equation (14) otherwise, the AHD is calculated using Equation (16) and then the refinement step is performed using Equation (17). Based on this refined AHD, the algorithm uses the refined AHD to compute the distance between the unlocalized node and the anchor nodes by using Equation (18) in the last phase. This distance is then used to estimate the location of the unlocalized node by multilateration. Once the algorithm has converged and estimated the unlocalized node’s position, the anchor nodes transmit the localization information to the central server. The central server could use this information to provide real-time monitoring and analysis of temperature and vibration in the factory, as well as historical trend analysis. The central server could also incorporate machine learning models to analyze the sensor data, automatically identify patterns in the data, and notify the factory operators of potential issues. The detailed location and sensor data can provide valuable insights for the maintenance and operation of the factory.
Overall, this scenario describes a wireless sensor network that can be used to monitor the conditions of the machines and equipment in an industrial factory. The WSN can be configured to handle the specific needs of the factory and the proposed algorithm can be implemented in a factory environment to accurately locate unlocalized nodes, therefore providing valuable insights for maintenance, operation, and predictive maintenance. It is worth noting that the proposed algorithm assumes that the network is static and that the anchor nodes and unlocalized nodes are placed at fixed locations. As with any localization algorithm, the accuracy of the proposed algorithm depends on the quality of the input data (hop count and RSSI measurements) and the environment; therefore, it may require some form of calibration and fine-tuning to achieve optimal performance in a specific environment.

5. Implementation and Simulation Setup

This section assessed the evaluation metrics and simulation setup with related parameters under several conditions. Simulation results are produced and elaborated on in the following section.

5.1. Network Model and Setup

In the simulation, N-m unknown nodes and “m” anchor nodes are dispersed in a WSN with a 500 * 500 m2 area, with the option of deploying 500 sensor nodes, which uses the random function to construct network topology, as shown in Figure 6. The diagram’s 50 red stars (“*”) represent 50 anchor nodes, whereas the 450 black points (“.”) represent unknown nodes. It is assumed that the network is ideal, i.e., all nodes can communicate freely.
Our proposed algorithm is an enhancement of the DV-Hop localization algorithm for WSNs, using hop count information to estimate node distances and determine the location of unlocalized nodes. However, the DV-Hop algorithm can be implemented on top of various wireless standards and protocols that are used for WSNs. It can be implemented on various wireless standards and protocols for WSNs, including IEEE 802.11 and Z-Wave.

5.2. Wireless Channel

A realistic wireless connection model is required for a reliable evaluation. The most typical model used to represent the shadowing path loss effect is a log-normal model, as indicated in Equation (21), which results in the following:
P l ( d ) B = P l ( d e ) B + 10 y log ( d d e ) + X 0 B
The power loss after the signal has traveled through distance d is represented by Pl(d)B, with Pl(de)B as the power loss at the reference distance de. The path loss exponent is represented by γ, while Xσ is a Gaussian random variable with a mean of 0 and standard deviation σ that accounts for shadowing effects.

5.3. Assumption

Localization methods such as DV-HOP and our proposed algorithm assume a spherical radio range; however, when the radio range becomes irregular, the performance of such protocol declines. In the event of radio irregularities, they may not be able to ensure complete coverage, and blind areas may result. As a result, we used an isotropic WSN, based on the spherical radio spectrum, in place of an irregular WSN and we chose the regular model rather than the RIM model [37].

5.4. Parameters Setting

The simulation settings employed in the experiment are shown in Table 6. The selected area, i.e., 500 * 500 m2, is selected for a fair comparison with the algorithm chosen in the previous research studies [16,35].

5.5. Simulation Setup

The performance of the proposed method, in terms of localization accuracy and energy usage, was assessed by an Intel(R) Core(TM) i5-5200U, 2.20GHz CPU PC with 8 GB RAM using MATLAB 2020a [38]. The outcomes were compared with DV-Hop [7], WCL [16], improved DV-maxHop [31], and improved DV-Hop [35]. For each simulation, we performed 50 iterations (with a distinct topology for every iteration) and plotted the average results.

5.6. Performance Analysis

Localization accuracy and cost metrics were considered while evaluating and analyzing the HCEDV-Hop algorithm. Comparing the outcomes of the proposed method with DV-Hop, WCL improved DV-maxHop and improved DV-Hop by programming with their descriptions in [16,31,35].
The following metrics evaluate the performance analysis.

5.6.1. Accuracy Metric

Localization accuracy can be defined based on localization error, which is the difference between actual and calculated location. The accuracy is tested by adjusting parameters such as average localization error, anchor ratio, and node density.
The optimal value of “t” for the proposed algorithm
In the WSN area, 100 anchors are deployed to ascertain the value of “t”. As “t” approaches six, Figure 7 shows how the localization error becomes constant.
The accuracy metric is evaluated under the following:
  • Average localization error analysis;
  • Impact of anchor ratio;
  • Effect of varying node density.

Average Localization Error Analysis

The average localization error (ALE) [39,40] is the sum of localization errors for unknown nodes. However, accuracy should also consider the number of nodes; hence, the ALE determines the implemented algorithm’s accuracy level. Equation (22) is used to calculate the ALE, which is used as the evaluation criterion:
A L E = i = 1 n ( x i x ) 2 + ( y i y ) 2 n × R
The numerator in Equation (22) reflects the Euclidean distance [41] between the predicted (x, y) and actual locations (xi, yi) of the unknown node, as well as the calculated error distance; n is the total number of nodes and R represents the radius.
The algorithm proposed in this study enhances localization accuracy by reducing the localization error, as depicted in Table 7, in terms of maximum, minimum, average, and standard deviation.
In terms of minimum, maximum, and average, the suggested method outperformed the other three localization algorithms average in terms of average localization error. Figure 8 shows that the proposed algorithm achieved significantly lower ALE compared to DV-Hop, WCL, improved DV-maxHop, and improved DV-Hop, with reductions of 81.36%, 77.99%, 39.72%, and 9.96%, respectively.

Impact of Anchor Ratio

The anchor ratio is the proportion of anchor nodes participating in the localization process. While maintaining the total number of nodes and the communication radius at 500 and 100 m, respectively, the localization error decreases as the anchor ratio increases. Table 8 presents the empirical analysis of the average localization error under various anchor node ratios.
As the proportion of anchor nodes participating in the localization process increases from 100 to 175, the improved DV-Hop algorithm reduces the localization error from 0.3528 to 0.3066. Our proposed approach decreases the localization error from 0.294917 to 0.289721, as depicted in Figure 9.
When the total number of anchors is 175, the HCEDV-Hop algorithm performs the best, with the lowest error rate, compared to DV-Hop [7], WCL [16], improved DV-maxHop [31], and improved DV-Hop [35], resulting in a reduction in error of 79.41%, 78.11%, 11.26%, and 5.5%, respectively. As the number of network anchors increases, localization accuracy improves. However, using GPS to determine the positions of anchors beforehand can be expensive and energy-consuming. When the anchor node ratio increases, the number of neighbor nodes within the communication radius and hop size increases, tending towards the actual value.
It is evident from Table 8 that the anchor node ratio is between 50 and 100, and that the localization error of our proposed algorithm, HCEDV-Hop, differs significantly from that of the improved DV-Hop algorithm. However, this difference decreases slightly when the anchor node ratio exceeds 100. Our proposed algorithm, HCEDV-Hop, exhibits a very low localization error, performing significantly better than the other algorithms.

Impact of Varying Node Density

During simulation, the number of nodes steadily rises from 300 to 800, and the number of anchor nodes is set at 50. Figure 10 and Table 9 list the empirical outcomes of the average localization error for various numbers of nodes.
The proposed algorithm demonstrated a decrease in localization errors compared to DV-Hop, WCL, and improved DV-Hop when the total number of nodes was 300, with reductions of 80.4%, 75.14%, and 1.64%, respectively. As the total number of nodes increased beyond 800, the proposed algorithm continued to outperform traditional DV-Hop [7], WCL [16] and improved DV-Hop [35] by 80.17%, 75.41%, and 2.2%, as depicted in Figure 10.
The localization error reduces as the number of sensor nodes grows. The increase in sensor node density leads to an increase in the number of one-hop neighbors, which improves network connectivity.
The proposed algorithm demonstrates improved localization accuracy and energy efficiency performance compared to other methods. We could minimize communication costs and extend network lifetime while improving localization accuracy by introducing a threshold in the final two phases and adding a correction step. The results clearly show that the proposed algorithm outperforms the others.

Impact of Varying Coverage Area

The coverage area of a sensor field refers to the geographical area or region that is covered or monitored by the sensors in the field. In the simulation, we deployed a coverage area from 100 to 900 and analyzed its impact on average localization error. While maintaining the total number of nodes and communication radius at 300 and 100 m, respectively, the localization error increases as the coverage area increases.
Table 10 shows the relationship between coverage area and average localization error. The ALE increases as we move from denser to more sparse coverage, due to high hop value and a decrease in the connectivity between different nodes. The results prove the validity of our proposed algorithm, which obtained a lower ALE than its counterparts. In sparse networks with poor connectivity, it may be difficult to accurately locate certain isolated nodes.
The overall summary of this section is:
  • As the ratio of anchor nodes increases, there are more anchor nodes in the deployment region; thus, the AHD of anchor nodes is more precise.
  • As the number of deployed nodes increases, the dispersion of nodes tends to become denser and more concentrated in dense networks. As each node is connected to more nodes through a single hop, network connectivity improves. Overall, as the number of deployed nodes increases, the ALE of nodes reduces, generating a more efficient network.
  • In denser networks, the ALE tends to decrease due to better connectivity between nodes. However, in sparser networks, the ALE tends to increase due to poorer connectivity between nodes. This occurs as a result of a decrease in connectivity among sensor nodes when the sensing field grows. As a result, some isolated nodes may be unable to be accurately located, leading to an overall increase in the ALE.

5.6.2. Average Energy Consumption

Energy is mostly utilized in three phases by localization solutions: packet transmission, packet reception, and localization calculations. There are various methods to determine the consumed energy. Regardless, we only looked at the cost of communication based on the number of data or control packets exchanged inside the network during the localization process. Communication is widely considered the network’s most power-intensive resource. Calculating the communication cost is necessary to assess the energy consumption involved in localizing the whole network. The proposed algorithm’s energy model is the same as [42,43,44]. We neglect the energy spent during calculating, listening, and sleep stages since it is little compared to the energy consumed during transmission and reception [45]. The majority of the energy is used up by the transmission of data packets from one node to another. In the first phase of our proposed algorithm, the anchor determines the minimum hop count, and AHD packets are the same as in IEEE 802.11. As a result, by limiting packet transmission between nodes, energy consumption may be minimized. Equation (23) may be expressed for DV-Hop as in [7]:
E n e r g y c o n s u m = 2 × ( n 1 ) × m × E
where n represents the total number of nodes, m represents the total number of anchor nodes, and E represents the average energy utilized to send a packet. Hence, packet transmission occurs in two stages multiplied by two. On the other hand, in our proposed solution, energy is minimized due to specific threshold value generation instead of broadcasting to the whole network, as shown in Equation (24):
E n e r g y c o n s = 2 × ( n 1 ) × ( m t ) × E a v g
where Eavg denotes the average energy inside a t hop, m represents the total number of anchor nodes, and 2 indicates packet transmission in two phases. The total number of sent and received packets (TSRP) is computed to determine the communication cost of all techniques.
Table 11 displays the TSRP for all methods, where “n” denotes the total number of network nodes, “m” represents the number of anchor nodes, and Cavg indicates the average connectivity.
In our simulation, the “300” total number of nodes is dispersed in a WSN with a 500 * 500 m2 area. A single iteration of the simulation was performed to compute the result, setting the threshold from 3 to 6 with a communication radius of 100 m.
The proposed algorithm demonstrates superior energy efficiency compared to DV-Hop, WCL, and improved DV-Hop when t = 3, 5, and 6. Specifically, it reduces energy consumption by 28.24% compared to DV-Hop, reduces it by 17.30% compared to WCL, and slightly increases it—by 1.8%—compared to improved DV-Hop, when t = 3; reduces energy consumption by 28.1% compared to DV-Hop, reduces it by 17.21% compared to WCL, and somewhat increases it—by 1.2%—compared to improved DV-Hop, when t = 5; and reduces energy consumption by 27.88% compared to DV-Hop, reduces it by 16.9% compared to WCL, and slightly increases it—by 0.8%—when compared to improved DV-Hop, when t = 6, as depicted in Table 12 and Figure 11.
It has been found that when the threshold value rises, so does energy usage. The slight increase in energy consumption with our proposed algorithm is due to the extra step for enhancing localization accuracy. Thus, we suggest almost the same behavior for threshold values for minimizing energy consumption. Therefore, the proposed scheme is appropriate for WSNs because it has lower communication costs, improves localization accuracy, and increases the lifetime of WSNs by saving energy.
Table 13 provides a summary of the communication costs associated with the localization process for different numbers of nodes in the network. The energy consumption may also be affected by the number of hops (or relay steps) required to transmit a message from one node to another. A larger number of nodes may require more hops to transmit a message, leading to higher energy consumption. This can result in higher energy consumption for transmission, reception, and processing.
In general, it appears that energy consumption increases as the number of nodes increases for all four methods. However, the “Improved DV-Hop” and “Proposed” methods demonstrate consistently lower energy consumption than the other two methods, regardless of the number of nodes. This suggests that these methods may be more energy-efficient than the other methods.
The overall summary of this section is that the proposed algorithm has effectively reduced energy consumption and increased the lifetime of WSNs, although it does so with a slight increase in energy consumption due to the additional step taken to enhance location accuracy. This slight increase has been controlled by introducing a specific threshold in the last two phases. The number of hops required for message transmission can also affect energy consumption; fewer hops result in lower energy consumption. Overall, the proposed algorithm is a suitable choice for WSNs due to its reduced communication costs, improved localization accuracy, and increased energy efficiency.

5.6.3. Computational Cost in Terms of Localization Time

The computational cost of the technique is defined by the time required to complete the localization procedure. The network’s size and scalability affect the amount of time it takes. In this simulation, 300 and 150 anchor nodes were randomly distributed in a 500 × 500 m2 space with a communication range of 100 m.
It is observed that traditional DV-Hop consumes more time due to broadcasting packets to all networks. At the same time, the improved DV-Hop consumes little time due to limiting the broadcast to a specific threshold. Our proposed algorithm has better localization time than DV-Hop due to an extra correction step for the AHD; it consumes a little more time than improved DV-Hop, as shown in Table 14 and Figure 12. Thus, from the above performance analysis, it is confirmed that the proposed algorithm significantly improves the trade-off between localization accuracy and energy efficiency in WSNs.

6. Conclusions and Future Work

The HCEDV-Hop algorithm was developed to enhance the traditional DV-Hop method, with the goal of improving localization accuracy while reducing energy consumption. Simulation results showed that the HCEDV-Hop algorithm consistently outperformed other algorithms, such as DV-Hop, WCL, improved DV-maxHop, and improved DV-Hop, in terms of localization accuracy and energy efficiency, with an average improvement of 81.36%, 77.99%, 39.72%, and 9.96%, respectively. In particular, the HCEDV-Hop algorithm demonstrated a significant decrease in energy consumption for message communication compared to traditional DV-Hop and WCL, at 27.88% and 17%, respectively. These findings demonstrate the efficacy of the proposed algorithm in improving the trade-off between localization accuracy and energy efficiency in wireless sensor networks.
In future work, the HCEDV-Hop algorithm will be tested with mobile anchor nodes and evaluated in large-scale networks to improve localization accuracy by using an optimal path model for mobile anchor nodes. Mobile anchor nodes are essential in modern applications as they increase node lifespan and conserve energy in anisotropic WSNs.

Author Contributions

Conceptualization, M.F., M.Z.K. and K.U.; Methodology, M.F. and D.S.; Validation, K.U. and H.A.; Formal analysis, M.Z.K., D.S. and B.K.; Resources, D.S.; Writing—original draft, M.F.; Writing—review & editing, H.A. and B.K.; Visualization, K.U. and H.A.; Funding acquisition, H.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deanship of Scientific Research at King Khalid University for funding this work through the Large Groups Project under grant number RGP.2/201/43.

Data Availability Statement

Data will be available on request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wang, D.; Zhang, Q.; Liu, J. Partial network coding: Concept, performance, and application for continuous data collection in sensor networks. ACM Trans. Sens. Netw. (TOSN) 2008, 4, 1–22. [Google Scholar] [CrossRef]
  2. Lu, S.Y.; Xie, J.Y.; Pang, L.L. An improved WSN localization algorithm. In Proceedings of the 2018 IEEE 2nd International Electrical and Energy Conference (CIEEC), Beijing, China, 4–7 November 2018. [Google Scholar]
  3. Chowdhury, T.J.; Elkin, C.; Devabhaktuni, V.; Rawat, D.B.; Oluoch, J. Advances on localization techniques for wireless sensor networks: A survey. Comput. Netw. 2016, 110, 284–305. [Google Scholar] [CrossRef]
  4. Peng, R.; Sichitiu, M.L. Angle of arrival localization for wireless sensor networks. In Proceedings of the 2006 3rd Annual IEEE Communications Society on Sensor and Ad Hoc Communications and Networks, Reston, VA, USA, 25–28 September 2006. [Google Scholar]
  5. Sun, Y.; Zhang, F.; Wan, Q. Wireless Sensor Network-Based Localization Method Using TDOA Measurements in MPR. IEEE Sens. J. 2019, 19, 3741–3750. [Google Scholar] [CrossRef]
  6. Adewumi, O.G.; Djouani, K.; Kurien, A.M. RSSI based indoor and outdoor distance estimation for localization in WSN. In Proceedings of the 2013 IEEE International Conference on Industrial Technology (ICIT), Western Cape, South Africa, 25–28 February 2013. [Google Scholar]
  7. Niculescu, D.; Nath, B. DV based positioning in ad hoc networks. Telecommun. Syst. 2003, 22, 267–280. [Google Scholar] [CrossRef]
  8. Mao, G.; Fidan, B. Localization Algorithms and Strategies for Wireless Sensor Networks: Monitoring and Surveillance Techniques for Target Tracking: Monitoring and Surveillance Techniques for Target Tracking; IGI Global: Hershey, PA, USA, 2019. [Google Scholar]
  9. Paul, A.K.; Sato, T. Localization in Wireless Sensor Networks: A Survey on Algorithms, Measurement Techniques, Applications and Challenges. J. Sens. Actuator Netw. 2017, 6, 24. [Google Scholar] [CrossRef]
  10. Nemer, I.; Sheltami, T.; Shakshuki, E.; Abu Elkhail, A.; Adam, M. Performance evaluation of range-free localization algorithms for wireless sensor networks. Pers. Ubiquitous Comput. 2020, 25, 177–203. [Google Scholar]
  11. Gayan, S.; Dias, D. Improved DV-Hop algorithm through anchor position re-estimation. In Proceedings of the 2014 IEEE Asia Pacific Conference on Wireless and Mobile, Bali, Indonesia, 28–30 August 2014. [Google Scholar]
  12. Fang, W.; Yang, G. Improvement based on DV-Hop localization algorithm of wireless sensor network. In Proceedings of the 2011 international conference on mechatronic science, electric engineering and computer (MEC), Jilin, China, 19–22 August 2011. [Google Scholar]
  13. Liu, J.; Wang, W.; Shang, Y. An improving localization algorithm for wireless sensor networks based on DV-Hop. In Proceedings of the 2012 International Conference on Measurement, Information and Control, Harbin, China, 18–20 May 2012. [Google Scholar]
  14. Yu, W.; Li, H. An improved DV-Hop localization method in wireless sensor networks. In Proceedings of the 2012 IEEE international conference on computer science and automation engineering (CSAE), Seoul, Korea, 20–24 August 2012. [Google Scholar]
  15. Chen, Y.; Li, X.; Ding, Y.; Xu, J.; Liu, Z. An improved DV-Hop localization algorithm for wireless sensor networks. In Proceedings of the 2018 13th IEEE conference on industrial electronics and applications (ICIEA), Wuhan, China, 31 May–2 June 2018. [Google Scholar]
  16. Zhang, B.; Ji, M.; Shan, L. A weighted centroid localization algorithm based on DV-hop for wireless sensor network. In Proceedings of the 2012 8th international conference on wireless communications, networking and mobile computing, Shanghai, China, 21–23 September 2012. [Google Scholar]
  17. Song, G.; Tam, D.; Xue, Y.; Liu, B. RDV-Hop localization algorithm for randomly deployed wireless sensor networks. In Proceedings of the International Conference on Software Intelligence Technologies and Applications & International Conference on Frontiers of Internet of Things 2014, Hsinchu, Taiwan, 4–6 December 2014. [Google Scholar]
  18. Fang, X. Improved DV-Hop Positioning Algorithm Based on Compensation Coefficient. J. Softw. Eng. 2015, 9, 650–657. [Google Scholar] [CrossRef]
  19. Tomic, S.; Mezei, I. Improvements of DV-Hop localization algorithm for wireless sensor networks. Telecommun. Syst. 2015, 61, 93–106. [Google Scholar] [CrossRef]
  20. Xiang, M.; Wang, S.; Yang, Y. Improved DV-Hop localization algorithm based on threshold mechanism and distance correction for WSN. J. Transducer Technol. 2016. [Google Scholar] [CrossRef]
  21. Mass-Sanchez, J.; Ruiz-Ibarra, E.; González, J.C.; Espinoza-Ruiz, A.; Castro, L.A. Weighted Hyperbolic DV-Hop Positioning Node Localization Algorithm in WSNs. Wirel. Pers. Commun. 2016, 96, 5011–5033. [Google Scholar] [CrossRef]
  22. Wang, J.; Gao, Y.; Yin, X.; Li, F.; Kim, H.-J. An Enhanced PEGASIS Algorithm with Mobile Sink Support for Wireless Sensor Networks. Wirel. Commun. Mob. Comput. 2018, 2018, 9472075. [Google Scholar] [CrossRef]
  23. Qiao, X.; Chang, F.; Ling, J. Improvement of Localization Algorithm for Wireless Sensor Networks Based on DV-Hop. Int. J. Online Biomed. Eng. (iJOE) 2019, 15, 53–65. [Google Scholar] [CrossRef]
  24. Khan, M.A.; Khan, M.A.; Rahman, A.U.; Malik, A.W.; Khan, S.A. Exploiting cooperative sensing for accurate target tracking in industrial Internet of things. Int. J. Distrib. Sens. Netw. 2019, 15, 1550147719892203. [Google Scholar] [CrossRef]
  25. 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]
  26. Wang, J.; Hou, A.; Tu, Y.; Yu, H. An Improved DV-Hop Localization Algorithm Based on Selected Anchors. Comput. Mater. Contin. 2020, 65, 977–991. [Google Scholar] [CrossRef]
  27. Bhat, S.J.; Santhosh, K. Priority based localization for anisotropic wireless sensor networks. In Proceedings of the 2020 IEEE International Conference on Distributed Computing, VLSI, Electrical Circuits and Robotics (DISCOVER), Udupi, India, 30–31 October 2020. [Google Scholar]
  28. Bhat, S.J.; Santhosh, K. Is localization of wireless sensor networks in irregular fields a challenge? Wirel. Pers. Commun. 2020, 114, 2017–2042. [Google Scholar] [CrossRef]
  29. Li, X.; Wang, K.; Liu, B.; Xiao, J.; Han, S. An improved range-free location algorithm for industrial wireless sensor networks. EURASIP J. Wirel. Commun. Netw. 2020, 2020, 81. [Google Scholar] [CrossRef]
  30. Shahzad, F.; Sheltami, T.; Shakshuki, E. DV-maxHop: A fast and accurate range-free localization algorithm for anisotropic wireless networks. IEEE Trans. Mob. Comput. 2016, 16, 2494–2505. [Google Scholar]
  31. Gupta, A.; Mahaur, B. An improved DV-maxHop localization algorithm for wireless sensor networks. Wirel. Pers. Commun. 2021, 117, 2341–2357. [Google Scholar] [CrossRef]
  32. 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. [Google Scholar] [CrossRef]
  33. Kumar, S.; Lobiyal, D.K. Novel DV-Hop localization algorithm for wireless sensor networks. Telecommun. Syst. 2016, 64, 509–524. [Google Scholar] [CrossRef]
  34. Goyat, R.; Rai, M.K.; Kumar, G.; Saha, R.; Kim, T.-H. Energy Efficient Range-Free Localization Algorithm for Wireless Sensor Networks. Sensors 2019, 19, 3603. [Google Scholar] [CrossRef] [PubMed]
  35. Kaur, A.; Kumar, P.; Gupta, G. Improving DV-Hop-Based Localization Algorithms in Wireless Sensor Networks by Considering Only Closest Anchors. Int. J. Inf. Secur. Priv. 2020, 14, 1–15. [Google Scholar] [CrossRef]
  36. Liu, X. Research on WSN Node Localization Algorithm Based on RSSI Iterative Centroid Estimation. Teh. Vjesn. Tech. Gaz. 2020, 27, 1544–1550. [Google Scholar]
  37. Zhou, G.; He, T.; Krishnamurthy, S.; Stankovic, J.A. Models and solutions for radio irregularity in wireless sensor networks. ACM Trans. Sens. Netw. 2006, 2, 221–262. [Google Scholar]
  38. The Math Works, Inc. MATLAB, Version 2020a; The Math Works, Inc.: Natick, MA, USA, 2020. [Google Scholar]
  39. 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, San Diego, CA, USA, 14–19 September 2003. [Google Scholar]
  40. Peng, B.; Li, L. An improved localization algorithm based on genetic algorithm in wireless sensor networks. Cogn. Neurodynamics 2015, 9, 249–256. [Google Scholar] [CrossRef]
  41. Wang, C.; Chen, J.; Sun, Y.; Shen, X. Wireless sensor networks localization with isomap. In 2009 IEEE International Conference on Communications; IEEE: Piscataway, NJ, USA, 2009. [Google Scholar]
  42. Kaur, A.; Kumar, P.; Gupta, G. Analysis on DV-Hop Algorithm and its variants by considering threshold. J. Telecommun. Electron. Comput. Eng. (JTEC) 2017, 9, 79–83. [Google Scholar]
  43. Khelifi, F.; Bradai, A.; Benslimane, A.; Kaddachi, M.L.; Atri, M. Energy-saving performance of an improved DV-hop localization algorithm for wireless sensor networks. In Proceedings of the GLOBECOM 2017–2017 IEEE Global Communications Conference, Singapore, 4–8 December 2017. [Google Scholar]
  44. Kotwal, S.B.; Verma, S.; Abrol, R.K. RSSI WSN localization with Analysis of Energy Consumption and Communication. Int. J. Comput. Appl. 2012, 50, 11–16. [Google Scholar]
  45. Baba, A.I.; Wu, F. Energy-Accuracy Trade-off in Wireless Sensor Network Localization. Int. J. Handheld Comput. Res. 2015, 6, 1–18. [Google Scholar] [CrossRef]
Figure 1. WSN localization.
Figure 1. WSN localization.
Sensors 23 02796 g001
Figure 2. Determining minimum hop count.
Figure 2. Determining minimum hop count.
Sensors 23 02796 g002
Figure 3. Calculating average hop distance.
Figure 3. Calculating average hop distance.
Sensors 23 02796 g003
Figure 4. Overall architecture of the proposed algorithm.
Figure 4. Overall architecture of the proposed algorithm.
Sensors 23 02796 g004
Figure 5. Example scenario of proposed algorithm.
Figure 5. Example scenario of proposed algorithm.
Sensors 23 02796 g005
Figure 6. Schematic diagram of randomly generated WSN.
Figure 6. Schematic diagram of randomly generated WSN.
Sensors 23 02796 g006
Figure 7. Comparison of threshold with/without using correction step.
Figure 7. Comparison of threshold with/without using correction step.
Sensors 23 02796 g007
Figure 8. ALE for WSN localization algorithms.
Figure 8. ALE for WSN localization algorithms.
Sensors 23 02796 g008
Figure 9. Simulation results for localization error using various anchor ratios.
Figure 9. Simulation results for localization error using various anchor ratios.
Sensors 23 02796 g009
Figure 10. Simulation results of ALE using various total numbers of nodes.
Figure 10. Simulation results of ALE using various total numbers of nodes.
Sensors 23 02796 g010
Figure 11. Threshold vs. energy consumption.
Figure 11. Threshold vs. energy consumption.
Sensors 23 02796 g011
Figure 12. Localization time for localization algorithms.
Figure 12. Localization time for localization algorithms.
Sensors 23 02796 g012
Table 1. Coordinates of anchor nodes.
Table 1. Coordinates of anchor nodes.
Anchor IDX CoordinateY Coordinate
129.6319.335
224.07429.108
38.93819.338
419.14422.799
513.71124.57
645.92647.122
716.54646.217
89.79740.045
927.99447.507
1019.92615.123
1133.68048.236
1246.44019.567
1319.9793.788
1412.6353.335
152.074221.108
Table 2. Minimum hop of node “N” from every anchor.
Table 2. Minimum hop of node “N” from every anchor.
Anchor IDAverage Hop Distance
11
21
34
43
53
62
74
84
92
103
111
122
134
145
155
Table 3. Average hop distance of all anchors.
Table 3. Average hop distance of all anchors.
Anchor IDAverage Hop Distance
129.261
234.467
323.946
424.786
522.386
618.692
721.370
819.704
922.533
1022.199
1121.887
1225.697
1321.960
1421.832
1529.229
Table 4. Refinement step in AHD for specific threshold “6”.
Table 4. Refinement step in AHD for specific threshold “6”.
Anchor IDRefinement Value of AHD
12.400
22.210
61.965
91.927
111.848
121.672
Table 5. Distance of node “N” from each anchor for specific threshold “6”.
Table 5. Distance of node “N” from each anchor for specific threshold “6”.
Anchor IDDistance (diu)
135.23
235.23
635.23
935.23
1147.901
1247.901
Table 6. Parameter used in simulation.
Table 6. Parameter used in simulation.
Parameters for SimulationValue
WSN area (m2)500 * 500
Total nodes300–500
Anchor nodes50–175
Threshold (hops)3–7
Radius (m)100
Iterations50
Table 7. Average localization error.
Table 7. Average localization error.
Localization AlgorithmsMax.Avg.Min.Std. Dev
DV-Hop (traditional)1.80981.5849261.4076430.1358
WCL1.36441.342621.323790.0144
Improved DV-maxHopNA0.49NANA
Improved DV-Hop0.35280.328080.30130.02489
HCEDV-Hop0.300080.295400.289720.00361
Table 8. Comparison of localization error under various anchor node ratios.
Table 8. Comparison of localization error under various anchor node ratios.
No. of AnchorsDV-HopWCLImproved DV-MaxHopImproved DV-HopProposed
501.8089171.3644580.70230.35280.294917
751.6242041.3463860.61190.35260.294601
1001.6114651.3509040.48980.34640.2985
1251.5605101.3328310.39710.30130.300085
1501.4968151.3373490.34720.30880.2946
1751.4076431.3237950.32650.30660.289721
Table 9. Comparison of localization error using various total numbers of nodes.
Table 9. Comparison of localization error using various total numbers of nodes.
No. of NodesDV-HopWCLImproved DV-HopProposed
3001.4740951.1620980.2936210.288824
4001.4705061.1840610.3014440.291524
5001.4908541.1922900.3031210.289620
6001.4873301.1959520.3047700.289464
7001.4717561.2041750.2998060.286361
8001.4861771.1986860.3011600.294684
Table 10. Coverage area vs. average localization error.
Table 10. Coverage area vs. average localization error.
Size of Coverage AreaDV-HopWCLImproved DV-HopProposed
1001.2765670.9324400.290360.278921
3001.598751.385670.3383260.31768
5001.678971.458760.4728770.387654
7001.89401.657920.4997850.44654
9002.23451.786590.516760.495432
Table 11. Communication cost of different algorithms.
Table 11. Communication cost of different algorithms.
AlgorithmOperationStep 1Step 2TTRP
DV-HopTransmit packets n × m n m × c a v g ( 2 n 1 ) + 2 n m
Get m × ( n 1 ) × C a v g n m
Total m × n + ( n 1 ) × C a v g 2 n m
Improved DV-HopTransmit packets n × m n m × c a v g ( 2 n t ) + 2 n m t
Get m × ( n t ) × C a v g n m t
Total m × n + ( n t ) × C a v g 2 n m t
Proposed AlgorithmTransmit packets n × m n m × c a v g ( 2 n t ) + 2 n m t + R E F
Get m × ( n t ) × C a v g n m t + R E F
Total m × n + ( n t ) × C a v g 2 n m t + R E F
Table 12. Comparison of the proposed algorithm, in terms of energy consumption, using various threshold values (anchor nodes = 150).
Table 12. Comparison of the proposed algorithm, in terms of energy consumption, using various threshold values (anchor nodes = 150).
ThresholdDV-HopWCLImproved DV-HopProposed Algorithm
3250,850217,676176,760180,000
5250,850217,676178,070180,210
6250,850217,676179,460180,900
Table 13. Impact of node density on energy consumption.
Table 13. Impact of node density on energy consumption.
No. of NodesDV-HopWCLImproved DV-HopProposed
10031,40024,20016,27016,396
200143,07791,54286,35786,573
300250,850217,676178,070180,210
400371,066356,070338,990339,202
500581,456561,987540,840541,032
Table 14. Comparison of localization times for various localization algorithms.
Table 14. Comparison of localization times for various localization algorithms.
Localization AlgorithmsLocalization Time(s)
DV-Hop [7]0.6572
Improved DV-Hop [35]0.1078
HCEDV-Hop Algorithm0.1237
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Fawad, M.; Khan, M.Z.; Ullah, K.; Alasmary, H.; Shehzad, D.; Khan, B. Enhancing Localization Efficiency and Accuracy in Wireless Sensor Networks. Sensors 2023, 23, 2796. https://doi.org/10.3390/s23052796

AMA Style

Fawad M, Khan MZ, Ullah K, Alasmary H, Shehzad D, Khan B. Enhancing Localization Efficiency and Accuracy in Wireless Sensor Networks. Sensors. 2023; 23(5):2796. https://doi.org/10.3390/s23052796

Chicago/Turabian Style

Fawad, Muhammad, Muhammad Zahid Khan, Khalil Ullah, Hisham Alasmary, Danish Shehzad, and Bilal Khan. 2023. "Enhancing Localization Efficiency and Accuracy in Wireless Sensor Networks" Sensors 23, no. 5: 2796. https://doi.org/10.3390/s23052796

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