You are currently viewing a new version of our website. To view the old version click .
Sensors
  • Article
  • Open Access

3 March 2023

Enhancing Localization Efficiency and Accuracy in Wireless Sensor Networks

,
,
,
,
and
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
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.
Figure 1. WSN localization.

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.

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.
Figure 4. Overall architecture of the proposed algorithm.
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 .
Figure 5. Example scenario of proposed algorithm.
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.
Table 1. Coordinates of anchor nodes.
Table 2. Minimum hop of node “N” from every anchor.
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.
Table 3. Average hop distance of all anchors.
Table 4. Refinement step in AHD for specific threshold “6”.
Table 5. Distance of node “N” from each anchor for specific threshold “6”.
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.
Figure 6. Schematic diagram of randomly generated WSN.
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].
Table 6. Parameter used in simulation.

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.
Figure 7. Comparison of threshold with/without using correction step.
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.
Table 7. Average localization error.
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.
Figure 8. ALE for WSN localization algorithms.
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.
Table 8. Comparison of 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.
Figure 9. Simulation results for localization error using various anchor ratios.
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.
Figure 10. Simulation results of ALE using various total numbers of nodes.
Table 9. Comparison of localization error using various total 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.
Table 10. Coverage area vs. average localization error.
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.
Table 11. Communication cost of different algorithms.
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.
Table 12. Comparison of the proposed algorithm, in terms of energy consumption, using various threshold values (anchor nodes = 150).
Figure 11. Threshold vs. energy consumption.
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.
Table 13. Impact of node density on energy consumption.
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.
Table 14. Comparison of localization times for various localization algorithms.
Figure 12. Localization time for localization algorithms.

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]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.