1. Introduction
Wireless sensor networks (WSNs) have become integral to various applications, such as localization, environmental monitoring, emergency services, precision agriculture, smart homes, and intelligent transportation [
1,
2,
3]. Accurate target localization is crucial for the effectiveness of these networks. In environmental monitoring, for instance, poor localization accuracy may lead to incorrect mapping of pollution sources or wildlife habitats, resulting in flawed ecological assessments and ineffective mitigation strategies [
4]. For autonomous systems (e.g., drones or self-driving vehicles), even minor localization errors can cause navigation failures, increasing collision risks and compromising safety [
5]. In emergency scenarios, such as disaster response, inaccurate node positioning may delay rescue operations, directly threatening human lives [
6]. Furthermore, localization inaccuracies degrade network efficiency by necessitating redundant data retransmissions and excessive energy consumption, ultimately shortening network lifetime [
7]. The localization process begins by deploying anchor nodes, whose locations are known, while target nodes estimate their locations using a suitable algorithm. Common localization techniques include time of arrival (TOA) [
8,
9,
10], time difference of arrival (TDOA) [
11,
12], angle of arrival (AOA) [
13,
14,
15], and received signal strength (RSS) [
16,
17,
18,
19,
20,
21,
22], often combined to improve accuracy [
23,
24,
25,
26,
27,
28,
29,
30,
31,
32]. Among these, RSS-based localization stands out due to its simplicity, low hardware requirements, and minimal communication overhead. However, RSS measurements are prone to errors caused by log-normal distributions, often approximated by Gaussian distributions.
The problem of RSS-based localization is often tackled using the maximum likelihood (ML) estimator. While the ML estimator is asymptotically optimal, it is nonlinear and nonconvex, and its accuracy is highly dependent on the initial guess. An improper initial guess can result in significant localization errors. To overcome this issue, closed-form solutions and multidimensional scaling (MDS)-based methods have been introduced, which eliminate the need for an initial guess and perform well under low error conditions. A novel approach combining a differential evolution algorithm, opposition-based learning, and adaptive redirection has been proposed. This method avoids approximating the ML cost function, does not require a good initial point, and offers superior performance with relatively low computational complexity in practical scenarios [
33].
Convex relaxation techniques, such as semidefinite programming (SDP) and second-order cone programming (SOCP), have been employed to approximate the ML estimator with a convex estimator through relaxation [
34,
35]. These methods demonstrate robust performance even in noisy environments. Recent studies have increasingly favored convex relaxation methods [
19,
20,
21,
23]. In [
19], the authors eliminate the logarithmic terms and reformulate the ML problem into a min–max optimization, which is relaxed into an SDP estimator. Similarly, ref. [
20] proposes a convex SDP estimator based on relative error estimation. Another approach [
21] introduces a new objective function based on least squares (LS) to address the RSS localization problem and uses SOCP relaxation to convert the problem into a convex one.
However, these relaxation-based approaches often suffer from performance degradation due to two key limitations: (1) simplified convex models fail to fully capture the nonlinear effects of signal attenuation and log-normal shadowing, leading to biased estimates in high-noise scenarios [
20]; (2) most existing methods neglect the heterogeneous impact of noise across anchor nodes, particularly the stronger influence of distant anchors with weaker RSS signals [
19]. Additionally, traditional weighted strategies rely on fixed heuristics (e.g., uniform weights or simple distance thresholds), which cannot adaptively prioritize reliable measurements under dynamic noise conditions [
21]. To address these limitations, various nonconvex optimization approaches and weighting strategies have been proposed. For instance, ref. [
23] introduces an LS-based nonconvex estimator that approximates the ML estimator and reformulates it within a generalized trust region subproblem (GTRS) framework, effectively reducing computational complexity and improving solution speed. Additionally, ref. [
25] proposes an error covariance matrix-based weighting approach to enhance localization accuracy using WLS. Other studies, such as [
31,
36], introduce distance-based weighting methods to prioritize nearby links for improved accuracy. Similarly, ref. [
15] presents a two-step error variance-WLS method, where the first step estimates the target’s location using LS, and the second step refines this estimate with WLS, incorporating weights based on error variance from the first step. This approach mitigates the impact of uncertain anchors and terms, resulting in enhanced accuracy [
33]. Despite these advancements, existing studies have not fully addressed the aforementioned gaps, leaving room for further improvement in localization accuracy and network efficiency. By comparing the static nature of traditional weighting strategies with the dynamic nature of the proposed method, it is evident that there is a need for more adaptive and efficient approaches to address the limitations of current techniques.
In this paper, we introduce a two-step localization method, SD/SOCP-GTRS, to achieve globally optimal target localization using RSS measurements. The proposed method directly addresses the above gaps through two synergistic innovations: In Step 1, the convex relaxation process is designed to minimize initial bias by incorporating signal attenuation characteristics into the relaxation constraints, thereby preserving the nonlinear relationship between RSS and distance even under severe shadowing. In Step 2, a dynamic weighting mechanism is developed to refine the estimate. Unlike prior static weighting schemes, our weights adaptively combine Euclidean distance (to emphasize nearby anchors) and noise variance (to suppress high-noise measurements), enabling real-time adjustment based on the initial coarse estimate from Step 1. This dual-weighting strategy, coupled with the GTRS framework, effectively mitigates both relaxation-induced errors and measurement noise. The interplay between these steps ensures that the proposed method maintains robustness against signal attenuation while recovering the optimality lost in convex approximations.
The primary contributions of this paper are as follows:
(1) A nonconvex estimator is derived that approximates the ML estimator while eliminating the logarithmic term in the residual. A convex estimator is then obtained through convex relaxation.
(2) A weight is calculated based on the Euclidean distance and standard deviation, using the initial estimate from Step 1.
(3) The accuracy of the estimate is further refined using WLS and GTRS methods to recover performance degradation from the relaxation and approximation processes.
Throughout this paper, the following notations are used: denotes the set of n-dimensional real column vectors. The boldface lowercase letter represents a column vector, while the boldface uppercase letter represents an matrix. The entry denotes the i-th element of the vector . The notation refers to the -norm, and represents the -norm, also known as the Chebyshev norm. The transpose of vector is denoted as , and represents the variance of variable a. The operator denotes the diagonal matrix with as its diagonal elements, and represents an identity matrix. For Hermitian matrices and , the notation indicates that is positive semidefinite.
The remainder of this paper is organized as follows.
Section 2 introduces the RSS models, the localization scenario, and the localization problem.
Section 3 outlines the derivation of the proposed two-step localization method.
Section 4 discusses the computational complexity of the proposed method.
Section 5 presents computer simulation results and compares the performance of the proposed method with other approaches. Finally,
Section 6 concludes the paper.
2. System Model and Problem Formulation
Consider a WSN consisting of
N anchor nodes and a target node. The anchor nodes are randomly deployed at known locations
(
), while the target node’s location
is unknown. A designated reference node is positioned at a known reference distance
from the target node. It provides the reference path loss
(in dB) at
, which serves as a baseline for signal strength normalization. Using this reference, the
i-th anchor node can determine the path loss
between itself and the target node, as illustrated in
Figure 1. The corresponding measurement model is expressed as follows:
where
is the path loss exponent (PLE), and
represents log-normal shadowing terms (herein termed noise), which are modeled as
.
Given the RSS measurements
(
), the goal of RSS-based localization is to estimate the target’s location
using the model (
1). The ML estimator of the target’s location is derived by minimizing the following expression:
The goal is to obtain the most accurate estimate of the target node’s location,
. However, it is clear that (
2) is nonconvex, posing significant challenges in its solution.
3. The Proposed Localization Method
In this section, we will detail the implementation of the proposed two-step SD/SOCP-GTRS method. The methodology is structured into two steps:
Step 1 (Convex Relaxation): The nonconvex ML problem is transformed into a convex problem by applying SDP and SOCP relaxation. This step generates an initial coarse estimate of the target location.
Step 2 (Refinement): Measurements are dynamically weighted based on their Euclidean distance and noise variance. The weighted data are then processed using the WLS-GTRS framework to refine the initial estimate, converging toward the global optimum.
The framework of the proposed scheme is illustrated in
Figure 2.
3.1. Step 1: Convex Relaxation
To derive a convex estimator, the following lemmas are introduced.
Lemma 1. If , then
(1) ;
(2) .
Lemma 2. The norms and are equivalent if there exist positive constants and , such that for any .
Lemma 3. For any , .
Next, the proposed localization method is derived.
First, (
1) is rewritten as follows:
Using the change in base formula, (
3) is expressed as follows:
Applying the logarithmic identity, (
4) becomes the following:
Let
, where e is the base of the natural logarithm. Ref. (
5) is then transformed into the following:
Thus, the ML estimator is formulated as follows:
By applying Lemmas 1 and 2 and replacing the
norm with the
norm (also known as the Chebyshev norm), the optimization problem (
7) can be reformulated into a Chebyshev norm form:
The following can then be derived:
Substituting (
10) into (
8) results in the following:
Since
is a strictly monotonic function within its domain, (
11) can be simplified by eliminating the logarithm, resulting in the following form:
Using Lemma 3, the following inequality is obtained:
Thus, the (
12) can be reformulated as follows:
By applying Lemmas 1 and 2 and substituting the
norm with the
norm, the optimization problem (
14) is expressed as follows:
Introducing auxiliary variables
,
and
, (
15) can be further expressed as follows:
To solve (
14) more effectively, an epigraph variable
t is introduced, and semidefinite and second-order cone relaxations are applied in the forms of
and
, respectively. As a result, the optimization problem (16) is transformed into the following epigraph form:
Next, let
. Using the relationship between SDP and SOCP, we can express the nonconvex constraint
as
. This allows the problem (17) to be reformulated as the following convex problem:
Upon solving the convex problem (18), a preliminary estimate of the target’s location, denoted as , is obtained. This estimator is referred to as “SD/SOCP”.
3.2. Step 2: Refinement
In Step 1, the effects of noise and distance on localization performance are not considered. In this step, the approximate solution obtained in Step 1 is utilized to account for the impact of log-normal shadowing terms. Additionally, weights are introduced to emphasize nearby links, incorporating the influence of the distance between anchor nodes and the target node to further enhance localization accuracy.
First, note that (
6) can be reformulated as follows:
Next, a first-order Taylor series approximation is applied to the logarithmic terms, leading to the following expression:
where
.
The Variance of
is calculated as follows:
For simplicity, assume that
for all anchor nodes. In this case, the weight
can be expressed as follows:
To further enhance the localization accuracy, an additional weight
is introduced to prioritize nearby links:
where
, and
is the target node’s estimated location from Step 1. This weighting scheme is based on the fact that RSS short-range measurements are more reliable than long-range ones. The RSS measurements have a constant multiplicative factor with distance, leading to larger errors for remote links compared to nearby ones. Thus, this weight definition better reflects the reliability of different links, improving localization accuracy.
The final comprehensive weight is then calculated as follows:
Thus, the WLS estimator becomes the following:
By introducing the substitution
, the optimization problem (
27) can be reformulated into a GTRS form:
where
,
,
, and
,
.
The refinement step involves using the estimate from Step 1 to calculate the weights, giving more importance to nearby links and accounting for the noise variance at each anchor node to improve the accuracy of the target’s location estimation. Simulation results in
Section 5 demonstrate the effectiveness of the proposed method. In the following sections, we refer to the convex problem (26) as “SD/SOCP-GTRS”.
Figure 3 illustrates the two-step localization process. For (a), the original nonconvex ML problem (red curve) exhibits multiple local minima, making it challenging to find the global optimum. This complexity is due to the nonlinear effects of signal attenuation and noise. For (b), convex relaxation (blue region) transforms the nonconvex problem into a convex problem by expanding the feasible space. This step simplifies the search space, enabling an efficient global search for an initial estimate (
). Although this may introduce slight bias, it ensures a feasible initial estimate even under severe noise conditions. For (c), refinement via WLS-GTRS (green arrow) adjusts the initial estimate toward the true ML optimum. This refinement prioritizes reliable measurements by dynamically weighting based on Euclidean distance and noise variance, effectively ’pulling’ the solution closer to the true target location. The interplay between these steps ensures robustness against signal attenuation and noise while recovering the optimality lost in convex approximations.
4. Computational Complexity Analysis
This section analyzes the computational complexity of the proposed SD/SOCP-GTRS method and compares it with existing approaches. Grasping the computational demands of each step is vital for evaluating the method’s practicality and efficiency. All considered methods involve an inherent trade-off between estimation accuracy and implementation complexity. Here, the method for the worst-case complexity of the mixed SD/SOCP, as presented in [
37], is adopted to analyze the complexities of the proposed method and other methods considered in this paper. The computational complexity formula is as follows:
where
L represents the number of iterations of the method,
m is the number of equality constraints,
and
are the numbers of semi-definite cone (SDC) and second-order constraints (SOC), respectively, and
and
are the dimensions of the
i-th SDC and
i-th SOC, respectively. Assume
is the maximum number of steps in the bisection procedure used by GTRS.
For the proposed SD/SOCP-GTRS method, in Step 1, it needs to solve a SOCP with two constraints and an SDP with constraints. The worst-case complexity, mainly determined by the interior point algorithm, scales as . This step is crucial as it transforms the nonconvex problem into a tractable convex form, thus providing a reliable initial estimate. In Step 2, GTRS has to solve a quadratically constrained quadratic program. With the bisection method involving iterations, the complexity is . This refinement step improves the accuracy of the initial estimate by adaptively weighing measurements according to their reliability. Consequently, the overall complexity of the proposed method is the sum of the complexities of these two steps, namely .
Table 1 summarizes the worst-case complexities of each method. The proposed SD/SOCP-GTRS method strikes a favorable balance between computational complexity and localization accuracy. By effectively integrating convex relaxation with a refinement step, it attains high accuracy while maintaining manageable computational requirements. This makes it especially suitable for real-time applications in WSNs and other resource-constrained scenarios.
5. Simulation Results
In this section, we evaluate the performance of the proposed SD/SOCP-GTRS estimator through Monte Carlo (Mc) simulations. We simulate a relatively small environment, such as a home or a small office, where one target node is randomly and uniformly distributed within a square area of
.
Figure 4 shows an example of a network deployed with one target node and five anchor nodes. We examine networks with two different anchor node deployments. In the first network, the anchor nodes are regularly placed at the corners and the center of the area, as shown in
Figure 4a. In the second network, the anchor nodes are irregularly placed, as depicted in
Figure 4b. In the simulations, unless otherwise specified, in the simulated experiments, the positions of the target node and the anchor nodes are irregularly and randomly distributed within the square area of
. Initially, it is assumed that the network is fully connected; that is, all anchor nodes and the target node can communicate with each other. The path loss exponent of the RSS measurement model (
1) is set to
, and the shadowing standard deviation is set to
dB. It is assumed that all nodes have the same transmission power, and the received power at the reference distance
m is set to
dB. We use the CVX toolbox to solve the SDP and SOCP problems [
34,
35,
37,
38,
39,
40] and use MATLAB’s
lsqnonlin function to solve the ML estimator. The proposed method is compared with three other algorithms in the literature, and these algorithms are described in
Table 1. For context, we also include the CRLB and the ML solution using the true target location as the starting point, referred to as “ML-True”. In the following sections, we will assess the performance of the proposed method across various scenarios. The performance of the discussed methods is evaluated using the root mean square error (RMSE), defined as follows:
where
and
represent the estimated and true locations for the
i-th Monte Carlo run, respectively, and
denotes the number of runs.
5.1. Effect of the Shadowing Standard Deviation
Figure 5 shows the RMSE performance of different localization methods under different shadowing standard deviations (
). As
increases from low to high values, the RMSE of all methods increases due to reduced RSS measurement reliability from higher noise levels. Specifically, the RMSE of the DEOR method shows a significant increase at higher
values, while the proposed SD/SOCP-GTRS method achieves a notable reduction in error compared to others. Although the intermediate estimate of the first step (SD/SOCP) remains stable with a certain level of RMSE, it is slightly less accurate than the SDP-LSRE method. However, after the second step (GTRS refinement), the RMSE of SD/SOCP-GTRS further decreases, outperforming others and staying close to the theoretical bounds across all
values. This indicates that the proposed method can maintain robustness through two-step optimization even under strong noise interference, with performance approaching the theoretical optimum.
5.2. Effect of the Number of the Anchor Nodes
Figure 6 shows how the number of anchor nodes (
N) affects localization accuracy when
dB and
. As
N increases from 4 to 16, the RMSE of all methods decreases significantly. For instance, the RMSE of our SD/SOCP-GTRS method drops substantially with increasing
N, showing a marked improvement in localization accuracy. More anchor nodes provide redundant RSS measurements, and their spatial diversity effectively suppresses noise. Notably, SD/SOCP-GTRS outperforms other methods (except ML-True) across all anchor node configurations. At moderate
N values, its RMSE is significantly lower than SDP’s and remains close to the theoretical bounds. This indicates that SD/SOCP-GTRS remains robust, whether in sparse or dense anchor node deployments, offering a flexible precision-cost trade-off for real-world networks like urban environments or industrial facilities.