Improving UWB-Based Localization in IoT Scenarios with Statistical Models of Distance Error

Interest in the Internet of Things (IoT) is rapidly increasing, as the number of connected devices is exponentially growing. One of the application scenarios envisaged for IoT technologies involves indoor localization and context awareness. In this paper, we focus on a localization approach that relies on a particular type of communication technology, namely Ultra Wide Band (UWB). UWB technology is an attractive choice for indoor localization, owing to its high accuracy. Since localization algorithms typically rely on estimated inter-node distances, the goal of this paper is to evaluate the improvement brought by a simple (linear) statistical model of the distance error. On the basis of an extensive experimental measurement campaign, we propose a general analytical framework, based on a Least Square (LS) method, to derive a novel statistical model for the range estimation error between a pair of UWB nodes. The proposed statistical model is then applied to improve the performance of a few illustrative localization algorithms in various realistic scenarios. The obtained experimental results show that the use of the proposed statistical model improves the accuracy of the considered localization algorithms with a reduction of the localization error up to 66%.


Introduction
Nowadays, the number of interconnected devices is highly increasing and it is expected that in the near future it will continue its exponential growth. For this reason, Internet of Things (IoT) is a very up-to-date research topic, which involves various application scenarios, with the aim of developing smart environments [1]. One of the enabling technologies related to IoT is localization, which can be considered the estimation problem of locating objects and users from radio signals, in order to provide context aware services to users. As possible applications of location-based services, it is worth mentioning: facilitating navigation inside large indoor areas, such as shopping mall, airports, and train stations; tracking people and objects inside buildings; and locating goods stored inside warehouses. All of these scenarios can be considered as related to IoT applications. In all such cases, the Global Positioning System (GPS) cannot be used, as it is not helpful in indoor environments. Therefore, in recent years, different technologies have been proposed to solve indoor localization issues [2]. In this paper, we focus on one of these technologies, namely Ultra Wide Band (UWB), which can be fruitfully applied in IoT scenarios.
UWB technology is very attractive for indoor communications. The large bandwidth and the high time resolution of UWB signals can theoretically reduce the impact of phenomena, which typically interfere with wireless communications in indoor environments (e.g., non-line-of-sight propagation, multipath, and multiple access interference) [3]. As a matter of fact, the large frequency

Statistical Model of the Range Estimation Error: Experimental Derivation
In order to derive an analytical model for the range estimation error, an extensive experimental campaign of range measurements between two pairs of UWB sensors is carried out. The UWB sensors used to collect our results are the P410, which are equipped with RCM firmware and software (version 2.1 build 3, Time Domain, Huntsville, AL, USA) to enable ranging purposes. One of the used boards is shown in Figure 1.
Such sensors are single-board UWB radio components that can be integrated into users' electronic devices to obtain high precision range measurement. The Radio Frequency (RF) transmission of the RCMs is centered at 4.3 GHz and a bandwidth of more than 1 GHz is guaranteed, as the RF band is from 3.1 GHz to 5.3 GHz. Each sensor is composed of a single board with dimensions 7.6 × 8.0 × 1.6 cm 3 and a UWB antenna. Each sensor needs to be powered. The RCMs can be programmed using C or Matlab libraries (version 2.1, Time Domain, Huntsville, AL, U.S.A.) provided by Time Domain. The software version of the RCMs used in this work is 2.4. The transmit power is −14.5 dBm and the value of the Pulse Integration Index (PII) has been set equal to 5: this corresponds to a data rate of 316 kpbs. Moreover, range estimates are obtained with a frequency of 118 Hz. Range estimates are defined as the Precision Range Measurements (PRMs), namely the two-way ToF distance between the requesting and responding RCMs, which is returned in millimeters [15]. A typical UWB communication architecture involves many RCMs, with corresponding assigned IDs, and at least one host, connected to a RCM via USB connection. The communication between pairs of RCMs can be carried out via broadcast or by directly interrogating a given ID corresponding to a RCM. The requests are always originated from hosts and confirmed by RCMs. More precisely, the interface between a host and a RCM consists of six request messages from the host to the RCM with their associated confirm messages. In addition, info messages are sent to the host every time a UWB packet is received from other RCMs. Each RCM can communicate, on the UWB channel, to all the RCMs in the considered environment and each communication is associated with a message ID. We consider inter-sensor distances from 1 m to 10 m, as this is realistic for many indoor scenarios. The (true) distances between the sensors have been measured using a laser. The range estimates are taken at 1 m step: more precisely, for every considered distance, N re = 1000 (independent) range estimates are taken-we will refer to each of the N re estimations of the same distance as "iterations". All the data are collected in a corridor whose width and height are 2.5 m and 4 m, respectively. The UWB sensors are placed at a height equal to 1.5 m. The considered experimental setup is shown in Figure 2.
We remark that, in the setup in Figure 2, the requester and the responder are in Line-of-Sight (LoS), hence, it is reasonable to assume that the obtained results do not suffer from Non-Line-of-Sight (NLoS) propagation. The assumption of LoS between the sensors may seem strong, but is rather typical in several indoor environments. For instance, in industrial scenarios, the shelves dedicated to goods storage create corridors, where people and/or vehicles may move, and this leads to LoS communication conditions. Moreover, the approach used to derive an analytical model of the distance error can be applied also to NLoS scenarios. In the latter cases, however, the statistical model would depend on the specific scenario, e.g., on the material of possible obstacles between the nodes and on multipath components (i.e., on the geometry of the scenario). The derivation of statistical models for the range estimation error in NLoS scenarios is the object of future research. Let us denote as {r k } 10 k=1 the true distances between the two UWB nodes (spanning over the 10 possible responder positions, as shown in Figure 2) and as [r k ] j the range estimate, relative to r k , in the j−th iteration (or measurement), j ∈ {1, . . . , N re }, where N re is the number of iterations. For each distance r k , k ∈ {1, . . . , 10}, and for each iteration j ∈ { 1, . . . , N re } the range estimate [r k ] j is assumed to be modeled as follows: where the range error [ν k ] j depends on a number of factors, including the used UWB nodes and the communication scenario. The error [ν k ] j can be positive or negative, depending on whether the distance between the two UWB sensors is overestimated or underestimated, respectively. Since {[ν k ] j } N re j=1 are relative to independent range measurements, it is reasonable to assume that they can be considered as independent random variables.
In Figure 3, the probability Density Function (PDF) of the distance estimates {[r 3 ] j }, relative to a true distance of r 3 = 3 m, is shown. It can be shown that the probability mass concentrates in a 0.1 m-range around 2.9 m. In other words, there is a 0.1 m offset with respect to the true distance.
The statistical model derived in the following aims at systematically correcting this offset. Let us define asν k the average value of the range errors relative to the true distance r k : We are now set to derive a statistical model for the range estimation error, in terms of its average value. In general, one can write:r where r andr represent the true and estimated distances, respectively, and ν(r) is a random variable that models the range error. In particular, we assume that the range error depends on the true distance-the validity of this assumption will later be confirmed by our experimental data. In order to characterize statistically the range estimation error in Label (3), we analyze the results obtained in the experimental scenario described above. The values of the average range errors {ν k } 10 k=1 (evaluated according to Label (2)) are shown in the second column of Table 1 as functions of the true distances {r k } 10 k=1 . From the results in Table 1, it can be observed that the average errorν k tends to increase as the distance r k between the two nodes increases, suggesting that the average errorν k could be approximated as a (linearly) increasing function of the true distance r k . For this reason, we consider the following Least Square (LS) approximation, based on the collected data of the range estimation errorν whereν (LS) k is the LS approximation of the average range errorν k and the coefficients a and b are found by applying LS estimation. More precisely, the coefficients a and b in (4) can be found by solving the linear system A t = ν, where A is a 10 × 2 matrix where the k−th element of its first column is r k , k ∈ {1, . . . , 10} and the elements of its second column are all equal to 1; the k−th element of ν isν k (its value depends on the collected experimental data); and t = [a, b] T is the solution vector. Applying the LS technique to solve the system of Equation (5), one obtains that the LS linear approximation of the average range estimation errorν k can be expressed asν whereν k and r k are expressed in meters. The values of {ν (LS) k } 10 k=1 are shown in the third column of Table 1. A graphical representation of the average errorν k (indicated with 95% confidence intervals), together with its linear approximationν (LS) k , is shown in Figure 4.  From Figure 4, it can be observed that the LS linear approximation fits well the experimental data. In order to better evaluate the accuracy of the LS approximation, define as ∆ν k the absolute value of the difference betweenν k and its approximationν (LS) k , i.e.,: The values of ∆ν k are shown in the fourth column of Table 1, from which it can be observed that: (i) ∆ν k is, on average, shorter than 20 mm; (ii) its largest value (in correspondence to r k = 4 m) is equal to 41 mm. Hence, it can be concluded that the derived LS model for the range estimation error is accurate and, generalizing (4), one can write: From (3) and (8), the estimated distancer can thus be approximated aŝ Observe that the values ofν(r) are negative for small values of r (namely, r < r th 8.117 m), while they become positive as r increases. In order to highlight this fact, in Figure 4, we also show the absolute values {|ν k=1 . This means that distances shorter than r th are typically underestimated, while distances longer than r th are overestimated. Moreover, it can be observed that the absolute value of the error ν(r) decreases as r increases from r = 1 m to r = r th . This is due to the specific approach used by Time Domain to perform range estimates. More precisely, the range accuracy is based on the estimation of the leading edge [15]. Hence, the key to accurate range measurements is having a robust leading edge detection algorithm, which allows determining the instant at which the first energy impulse (which is likely the one associated with the direct path, in LoS conditions) arrives at the responder. In order to do so, a correlation process is performed, which involves the correlation of the received waveform with a template waveform. This process works well except when the received waveform is compressed. When transmitting at a high power, as in our scenario, then the received waveform is compressed if the responder is close to the transmitter and, therefore, the resulting correlation is also distorted, leading to a range estimation error. This problem can be addressed by reducing the transmit power or, as proposed in the current paper, by applying a proper correction.
We remark that the obtained range error estimation model is substantially similar to the one derived in [16] and used in [19], even if the indoor scenarios of the experimental distance measurement campaigns are different. The similarity between the two models, however, confirms that the proposed LS approximation of the range error is reliable (regardless of the environment and the considered set of distance measurements).

Localization: General Problem Formulation and Selected Algorithms
In this section, we consider a practical, yet general, localization problem. We remark that we do not aim at proposing new localization algorithms but at showing that the distance model derived in Section 2 is useful to improve the accuracy of (known) localization algorithms. We also remark that the results outlined in Section 2 can be considered as a calibration phase, based on the extensive experimental campaign we performed. Similar approaches can be found in [20,21].
We consider four RCMs in a bi-dimensional scenario: assuming to know the positions of three of them, we aim at finding the (unknown) position of the remaining one. We denote as Anchor Nodes (ANs) the three nodes with known positions and we denote their coordinates as Finally, we denote as Target Node (TN) the node whose position needs to be estimated and we indicate its coordinates as u [x, y].
In order to gather experimental results, we connect the RCM, which corresponds to the TN to a host. Proper Matlab libraries have been used for the communication between the TN and its host. First, the TN collects the range estimates from the three ANs by directly interrogating, one after another, the IDs corresponding to each of the three ANs-the TN is assumed to know the IDs of the ANs. Once the TN receives the range estimates from all the ANs, recalling that the coordinates of the ANs are known, it can compute its position by means of proper localization algorithms. In the following, two relevant localization algorithms will be considered. We remark that we do not aim at introducing new localization algorithms. Rather, our goal is to investigate the impact of the statistical characterization of the range estimation error derived in Section 2 on the accuracy of existing localization algorithms. As a matter of fact, our approach is general and can be applied to virtually any localization algorithm.
In order to statistically characterize the accuracy of the position estimates, for each localization problem, we consider 1000 location estimations (denoted as iterations). In the following, we denote: [r i ] j as the estimated distance between AN i , i ∈ {1, 2, 3}, and the TN in the j−th iteration; and The two considered localization algorithms are described in Sections 3.1 and 3.2, respectively.

Circumference Intersection (CI) Algorithm
In this subsection, a simple localization algorithm, denoted as Circumference Intersection (CI), is presented. A similar approach is introduced in [22]. In order to better explain the CI algorithm, let us make a few geometrical considerations on the localization problem. The knowledge of the coordinates of AN i and of the true distances {r i } 3 i=1 would allow obtaining the true position of the TN. As a matter of fact, the TN has to lay on each of the circumferences identified by the following equations: Hence, the TN coordinates u = [x, y] could be found as the (unique) point where the three Since the values of the true distances {r i } 3 i=1 are unknown, one can only rely on their estimates For this reason, at each step j ∈ {1, . . . , 1000}, the system (11) should be replaced by the following: The equations in (12) refer to the three circumferences, denoted as (11) intersect in a unique point (which corresponds to the true TN position), due to the errors that affect the range estimates may not intersect in a unique point. In order to find the TN position estimates in the j−th iteration, denoted as , it is therefore necessary to consider a proper localization approach: rather than looking for the intersection of the three circumferences identified by (12) (which would not lead to any solution), we intersect pairs of them (namely, ( 3 2 ) = 3 pairs). More precisely, for each iteration j ∈ {1, . . . , 1000}, let us define the following three sets (each of which contains two points), obtained by intersecting the three different pairs of circumferences: We then choose a point from each of the three sets, in such a way that the three selected points are the nearest ones to each other. Finally, the TN position estimate is found as the center of gravity of these three points.
We remark that the intersection between two circumferences could also be an empty set. In this case, the localization algorithm needs to be slightly modified. Without loss of generality, let us assume that [Ĉ 1 ] j and [Ĉ 2 ] j do not intersect. We can then find P 12 ∈ [Ĉ 1 ] j and Q 12 ∈ [Ĉ 2 ] j as the two points of the two circumferences, which are nearest to each other, namely: At this point, if the distance ||P 12 − Q 12 || between P 12 and Q 12 is lower than a given threshold, (In the following, we will consider a threshold equal to 500 mm.), then the two points are considered as if they were the two points of intersection between [Ĉ 1 ] j and [Ĉ 2 ] j . Otherwise, they are ignored and the localization strategy is only based on the remaining pairs of circumferences. A similar strategy can be carried out in the case that more than one pair of circumferences does not intersect.

Two-Stage Maximum-Likelihood (TSML) Algorithm
In the literature, this algorithm is considered as optimal as it allows attaining the Cramer-Rao bound, which is a universal lower bound for the variance of an estimator [17]. For each iteration j ∈ {1, . . . , 1000}, the starting point of this algorithm is the system given by (12), which is a quadratic system in the two unknowns x and y. To solve system (12), we consider a two-step approach, based on a Maximum-Likelihood (ML) technique, which has been proposed in [17] and is known as the Two-Stage Maximum-Likelihood Time-Of-Arrival (TSML-TOA) algorithm (for short, TSML).
The first phase of the TSML algorithm relies on introducing the variable so that system (12) can be rewritten, in matrix notation, as where: and K i x 2 i + y 2 i , ∀i ∈ {1, 2, 3}. While (18) might look like a linear system, in reality, it is not, since, according to (17), the third element of the solution vectorω 1 depends on the first two. The solution ω 1 of the system (18) can be determined through a ML approach. The second stage of the algorithm is meant to take into account the dependence of n on the other unknowns of (18) and involves the solution of the following system: where and [ω 1 ] j denotes the j−th component ofω 1 . System (20) can be solved, once again, through the ML technique-the interested reader is referred to [17] for further details. Finally, the position estimate can be expressed as: where U = diag(sign(ω 1 )) [17].

Localization: Experimental Performance Investigation
In this section, the statistical model for the range estimation error derived in Section 2 is applied to practical localization problems, in order to analyze its impact on the accuracy of the obtained position estimate. In particular, we show how the statistical model derived in Section 2 is effective in improving (with gains up to 66%) the performance of the localization algorithms (CI and TSML) recalled in Section 3.
From (9), it follows that: Instead of applying the localization strategies described in Sections 3.1 and 3.2 with the distances (estimated from the nodes), we consider the following modified distances, obtained by In particular, denote: as [d] j the distance between the true TN position and its estimate in the j−th iteration, without taking into account the statistical model of the range estimation error; and, as [ď] j , the distance between the true TN position and its estimate in the j−th iteration with the use of the proposed statistical model, i.e., (22). Therefore, one can write: [ď] j .
The following experimental results are relative to the two relevant scenarios shown in Figure 5a and Figure 5b, which are representative of "good" and "bad" topological conditions, respectively. In both cases, the range estimates have been obtained in a square room with side 5 m, namely in a different environment with respect to that where the previously described measurement campaign was performed. The main difference between the two scenarios in Figure 5 is that, in the first case, the TN lies inside the convex hull of the three ANs, while, in the latter, the TN lies outside the convex hull of the three ANs. We remark that the statistical model of the range estimation error was derived in Section 2 through an experimental campaign in a corridor (see Figure 2). Its applicability to another scenario (a square room) is a further indicator of its validity and robustness.
We then apply both the CI and the TSML algorithms, described in Sections 3.1 and 3.2, respectively, to both scenarios in Figure 5.

"Good" Geometrical Scenario
First, we consider the scenario shown in Figure 5a, where the coordinates of the ANs, expressed in meters, are while the TN coordinates, expressed in meters, are The (true) distances {r i } 3 i=1 between each AN and the TN are also shown. From (26) and (27), it follows that their values are: We first consider the CI algorithm. In Figure 6, we compare the true TN position (red star) with the position estimates obtained over 1000 measurements with (green circles) or without (magenta pluses) the correction (22).
From Figure 6, it is apparent that the proposed statistical model allows for improving the performance accuracy of the CI localization algorithm. In Figure 7, the Cumulative Distribution Functions (CDFs) of the distances between the true TN position and its estimates are shown.
More precisely, the solid line is relative to the position estimates obtained without the statistical model for the distance estimates, while the dashed line is relative to the position estimates obtained applying the corrections in (22). From Figure 7, it can be observed that, when applying the proposed correction, the distance error is smaller than 40 mm about 90% of the times. At the opposite, if the statistical model for the distance estimates is not used, the distance error is smaller than 40 mm less than 2% of the times. Considering a probability equal to 0.9, it can be concluded that the average distance error reduces from 117 mm to 38 mm, with a relative performance improvement (in terms of reduction of the average distance error) around 66%. In Table 2, we show the average and the maximum distances between the true TN position and its estimates obtained with and without considering the statistical model for the range estimation error. From the second column of Table 2, it can be observed that using the values of the distances {ř i } 3 i=1 , obtained with the correction (22), instead of the values of the distances {r i } 3 i=1 , directly estimated by the nodes, allows for reducing the average range estimation error. As a matter of fact, the value of d avg is 60 mm lower thand avg (corresponding to a reduction of 68%). Similarly, the maximum range errorď max , obtained using {ř i } 3 i=1 , is 40 mm shorter (corresponding to a reduction of 22%) than the maximum range errord max obtained using {r i } 3 i=1 .  The true TN position (red star) is compared with the position estimates obtained over 1000 iterations with (green circles) or without (magenta pluses) the correction (22). From Figure 8, it can be observed that the use of the proposed statistical model improves the performance accuracy of the TSML localization algorithm as well, even if in this case the improvement is limited. In Figure 9, the CDFs of the distances between the true TN position and its estimates (obtained according to the TSML algorithm) are shown. In Figure 9, the performance of the TSML localization algorithm is investigated. More precisely, the solid line is relative to the position estimates obtained without the statistical model for the distance estimates, while the dashed line is relative to the position estimates obtained using the corrections (22). Unlike Figure 7, the two CDFs are similar and the distance error turns out to be smaller than 60 mm, more than 95% of the times even without correction. Considering a probability equal to 0.9, the relative reduction of the average distance estimation error, using the proposed statical model, is around 33%. As a matter of fact, from the third column of Table 2, it can be observed that the value ofď avg is only 14 mm smaller (corresponding to a reduction of 35%) thand avg , while the value ofď max is only 3 mm (corresponding to a reduction of 3%) shorter thand max .

"Bad" Geometrical Scenario
We now consider the scenario shown in Figure 5b, where the TN is outside the convex hull of the ANs, which have the following coordinates (in meters): while the position of the TN is the same as in Section 4.1, namely: From (27) and (29), it follows that the values of the distances {r i } 3 i=1 are: As for the previous ("good") scenario, we localize the TN by applying the CI and the TSML algorithms.
In Figure 10, we directly compare the true TN position (red star) with the position estimates obtained according to the CI algorithm over 1000 iterations with (green circles) or without (magenta pluses) the correction (22). The obtained results show that the use of the proposed statistical model improves significantly the performance accuracy of the CI localization algorithm.
In Figure 11, the CDFs of the distances between the true TN position and its estimates in the scenario of Figure 5b are shown without (solid line) and with (dashed line) the correction (22).
From Figure 11, it can be observed that, when applying the statistical model, the distance error is smaller than 90 mm more than 95% of the times. At the opposite, if the statistical model for the distance estimates is not used, the distance error is smaller than 90 mm only in 2% of the times. Moreover, in the latter case, the probability of having distance errors smaller than a given threshold is above 95% only if one can tolerate errors up to 190 mm. Considering a probability equal to 0.9, the relative reduction of the average distance estimation error, using the proposed statical model, is around 56%. In Table 3, we show the average and the maximum distances between the true TN position and its estimates obtained with and without considering the statistical model for the range estimation error. In particular, from the second column of Table 3, it can be observed that the value ofď avg obtained using the distances {ř i } 3 i=1 is 90 mm shorter (corresponding to a reduction of 59%) than the value ofd avg , obtained by applying the CI localization algorithm with the distances {r i } 3 i=1 directly estimated by the nodes. Similarly, the maximum range errorď max obtained using {ř i } 3 i=1 is reduced by 100 mm (corresponding to a reduction of 43%) with respect to the value ofd max obtained using {r i } 3 i=1 .  Figure 11. CDFs of the distance errors obtained with the CI localization algorithm in Figure 10 without (solid line) and with (dashed line) the statistical model.
Finally, Figure 12 refers to the TSML localization algorithm. The true TN position (red star) is compared with the position estimates obtained over 1000 iterations with (green circles) or without (magenta pluses) correction (22). From Figure 12, it can be observed that the use of the proposed statistical model is beneficial also for the TSML localization algorithm, and that the improvement is comparable with the one of the CI algorithm. In Figure 13, the CDFs of the distances between the true TN position and its estimates, without (solid line) and with (dashed line) the correction (22), are shown.
Once more, the results in Figure 13 show that the use of the correction (22) makes the distance error smaller than 90 mm more than 95% of the times. At the opposite, if the statistical model for the distance estimates is not used, the distance error is rarely smaller than 90 mm, as when using the CI localization algorithm (Figure 11), the probability of having distance errors lower than a given threshold is above 90% only if one can tolerate errors up to 190 mm. As a matter of fact, from the third column of Table 3, it can be observed that the value ofď avg is nearly 90 mm shorter (corresponding to a reduction of 54%) thand avg , while the value ofď max is nearly 100 mm smaller (corresponding to a reduction of 46%) thand max , as in the case with the CI algorithm. Considering a probability equal to 0.9 in Figure 13, the relative reduction of the average distance estimation error, using the proposed statical model, is around 50%.

Discussion
The proposed "range error reduction" approach is based on two phases: (i) in the first ("calibration") phase, a range estimation error model is derived, on the basis of experimental measurements; (ii) in a second phase, the derived model is used in practical localization algorithms, by simply correcting the estimated pairwise distances before using them in the localization algorithms. The outcome of the first phase depends on the used nodes (in our case, the Time Domain RCMs), but the approach is general.
In Table 4, we summarize the obtained results in terms of algorithms' sensitivity to error. In particular, considering a CDF value equal to 0.9, we extract the corresponding distances. In other words, we identify the limiting value within which the distance error lays with probability 0.9. In order to do so, we define [d] j th as the value, which satisfies  Table 4, it can be observed that the CI algorithm particularly benefits from the range estimates correction proposed by our model. As a matter of fact, when considering the "good" scenario, the value of ∆ relative to the CI algorithm is 79 mm and it is larger than that relative to the TSML algorithm, which is 19 mm. Also in the "bad" scenario, the CI algorithm takes advantage of the distance correction more than the TSML algorithm, even though the difference between the two values of ∆ is less significant (namely, 11 mm). This is probably due by the fact that the TSML algorithm is known to be more robust than the CI algorithm [14]. Comparing the results in Table 2 with those in Table 3, it can be observed, as expected, that both the considered localization algorithms (namely, CI and TSML) guarantee a better accuracy in the scenario where the TN is inside the convex hull of the ANs. Moreover, the performance improvement due to the use of the distances {ř i } 3 i=1 , obtained according to (21), is more evident if the TN is outside the convex hull of the ANs, i.e., with a "worse" geometric configuration of the nodes. In fact, when the target is outside the convex hull, then the "diversity" of the anchors reduces and the performance of the algorithms degrades. This is intuitively evident with the CI algorithm, as the intersecting circumferences are much more affected by measurement noise. It can thus be concluded that the geometry of the scenario has an impact on the benefits brought by the use of the proposed statistical model of the range estimation error. More precisely, when the geometry is "favorable", i.e., when the TN is inside the convex hull of {AN i } 3 i=1 , the use of the corrected (according to (21)) distances {ř i } 3 i=1 is relevant with a "weak" localization algorithm (e.g., the CI algorithm), while it becomes limited with a "strong" localization algorithm (e.g., the TSML algorithm). On the contrary, with an "unfavorable" geometry, i.e., the TN is outside the convex hull of {AN i } 3 i=1 , the use of the corrected distances {ř i } 3 i=1 significantly improves the performance also with a "strong" localization (namely, the TSML) algorithm. This suggests that the proposed approach is attractive in practical scenarios (e.g., industrial scenarios), where the position of the TN may vary significantly, moving often outside the convex hull of fixed ANs.

Conclusions
In this paper, we have first carried out, using Time Domain RCMs, an extensive experimental campaign of range measurements for various pairwise distances (between 1 m and 10 m). The average range estimation error has been statistically analyzed and the obtained results show that it is well approximated as a linear function of the true distance between the considered pair of nodes. Then, the derived statistical model has been applied to two different localization algorithms (namely, CI and TSML) in two realistic localization scenarios (with different nodes' topology) in a different indoor environment. More precisely, the proposed model is used to correct the estimated pairwise distances before feeding the localization algorithms. We remark that the proposed model is valid in LoS scenarios, but the same ideas could be generalized to take into account NLoS scenarios, in which the statistical model would depend on the specific geometry of the environment and on the material of obstacles between the considered nodes. Our results show that the use of the proposed model allows for improving the performance of the considered localization algorithms. In particular, the more the improvement is pronounced, the less favorable is the nodes' geometry. This makes the proposed approach very attractive in scenarios where the geometry of the localization problem may vary significantly, e.g., in industrial scenarios where a node (to be localized) may move among fixed (anchor) nodes.