On the Joint Time Synchronization and Source Localization Using TOA Measurements

This paper considers the problem of estimating the clock bias and the position of an unknown source using time of arrival (TOA) measurements obtained at a sensor array to achieve time synchronization and source localization. The study starts with deriving the localization mean square error (MSE) for the case where we pretend that the source clock bias is absent and apply TOA positioning to find the source position. An upper bound on the clock bias, over which we shall obtain a higher localization MSE than that from jointly identifying the clock bias with the source position, is established. Motivated by the MSE analysis, this paper proceeds to develop a new efficient solution for joint synchronization and source localization. The new method is in closed-form, computationally attractive, and more importantly; it is shown analytically to attain the CRLB accuracy under small Gaussian TOA measurement noise. Computer simulations are conducted to corroborate the theoretical development and illustrate the good performance of the proposed algorithm.


Introduction
Recently, source localization using wireless sensor networks (WSNs) has attracted great research efforts [1][2][3][4]. To determine the source position, positioning parameters such as time of arrival (TOA), time difference of arrival (TDOA), received signal strength (RSS), and angle of arrival (AOA) are commonly used. In this paper, we shall consider determining the source position using TOAs of the source signal received at a wireless sensor network, which is essential for emerging applications including logistics, search and rescue, medical service, smart homes, environmental monitoring, and surveillance [5]. For this problem, a large number of algorithms such as those in [6][7][8][9][10][11][12][13][14] have been developed in literatures. Nevertheless, almost all of them assumed that the source and the sensors are synchronized ahead of the localization process. In other words, the clock biases of the source and the sensors are known a priori so that the obtained TOA measurements can be transformed into range measurement for source localization via TOA positioning.
In practice, the source clock bias may not be readily available and the TOA measurements are therefore subject to unknown source clock bias. In this case, we may simply ignore the source clock bias and still locate the source through TOA positioning. It can be expected by intuition that the obtained source localization accuracy would be worse than the case where the source clock bias is known a priori. However, the amount of performance degradation would be small if the source clock bias is negligible compared to the source-sensor distances. On the other hand, another way to handle the presence of the unknown source clock bias is to estimate it jointly with the source position. This would also yield a source localization accuracy poorer than that when the source clock bias is known a priori, due to the increase in the number of unknowns to be identified. Clearly, a theoretical analysis is needed here to compare the performance of the above two methods in terms of their localization accuracy. The obtained results would reveal the sensitivity of TOA positioning to the presence of the unknown source clock bias in the TOA measurement. More importantly, they would establish the conditions under which 2 International Journal of Distributed Sensor Networks joint time synchronization and source localization should be preferred in order to achieve better source localization accuracy. To the best of our knowledge, this has not been addressed in existing literatures.
When the source clock bias cannot be ignored and/or it is also of interest besides the source position, an algorithm that can estimate both the source position and clock bias from the TOA measurements is definitely needed. For example, this could occur when a sensor is newly added to the WSN and it needs to be located and synchronized. Conventionally, synchronization and source localization are treated separately. In particular, synchronization is usually achieved first via applying one of the available protocoldomain techniques, such as [15][16][17], and the localization task can then be accomplished by executing various algorithms, such as those developed in [7][8][9][12][13][14]. A more recent trend is to perform joint synchronization and source localization owing to their close relationship [18][19][20][21][22]. For this problem, given the statistical model of the TOA measurement noise, the maximum likelihood estimator (MLE) can be developed. However, since the cost function is nonconvex, MLE often resorts to the iterative search with a good initial guess for finding a globally optimal solution. This approach possesses the local convergence and even divergence problems. Another disadvantage is the high computational complexity due to possibly large number of iterations. Therefore, a closed-form solution is highly desirable. Bancroft's closed-form solution [23] is the first linearization-based algorithm for 1D timing (i.e., clock bias estimation) and 3D positioning. Zhu and Ding extended Bancroft's method in [21] to the case where the number of TOA measurements is more than the dimension of the unknowns (i.e., the source position plus the clock bias). However, this approach is in general not efficient. In other words, it can attain the Cramér-Rao Lower Bound (CRLB), the best accuracy for an unbiased estimator, in certain scenarios only.
The contribution of this paper is twofold. Firstly, we conduct a mean square error (MSE) analysis to derive the source localization MSE when the source clock bias in the TOA measurements is neglected and TOA positioning is performed to locate the source. For this purpose, a firstorder analysis on a pseudo-MLE source location estimator is utilized, which indicates that the obtained results are valid for small TOA noise and source clock bias. The obtained source localization MSE would be partially dependent on the value of the source clock bias and as a result, it reflects the sensitivity of the TOA positioning accuracy to the presence of source clock bias. Moreover, an upper bound on the absolute value of the source clock bias is derived, over which joint synchronization and source localization would provide better localization accuracy in terms of smaller localization MSE than TOA positioning after ignoring the source clock bias. Secondly, this paper proposes a new efficient solution in closed-form for joint synchronization and localization. The newly developed method consists of two processing steps, where the first step locates the source and the second step estimates the clock bias. Compared with the iterative MLE method, the proposed solution is computationally more attractive, since it does not possess local convergence or divergence problem. Moreover, in contrast to the closedform Bancroft's method [23] and its generalized version [21], the new approach is shown analytically to be able to attain the CRLB accuracy for both source location and source clock under small TOA noise. We support our theoretical developments using extensive computer simulations.
It is worthwhile to point out that the theoretical approach adopted in this paper to perform the MSE analysis and develop the proposed algorithm can be applied in a straightforward manner to the case when the TOAs are deduced from twoway/round-trip time of flight (TOF) measurements. TOF is usually considered as an inexpensive but effective alternative to obtain TOAs without using the cumbersome and costly source-sensor synchronization [24][25][26]. In this case, however, the turn-around time at the source needs to be either estimated [26] or small enough to be negligible [27,28] so that TOA positioning can be utilized. With the above observation in mind, it is not difficult to show that the turn-around time in the TOF-deduced TOA measurements can be considered mathematically as an equivalent source clock bias. As a result, the MSE analysis and the proposed algorithm presented in this paper can be applied without much modifications to investigate the effect of ignoring the turn-around time and perform joint estimation of the turnaround time and the source position.
The structure of this paper is as follows. Section 2 formulates the joint time synchronization and source localization problem under Gaussian TOA noise model. Besides, the corresponding CRLB is established and analyzed in detail to motivate the MSE analysis and the new estimation algorithm development. Section 3 derives and verifies by computer simulations the localization MSE when the source clock bias in the received TOAs is ignored and the source position is found via TOA positioning. Section 4 presents the proposed closed-form solution for joint synchronization and source localization. Theoretical performance analysis that establishes the efficiency of the new method under small TOA measurement error is also conducted. Section 5 gives the simulation results to illustrate the good performance of the newly developed algorithm, and Section 6 concludes the paper and discusses the future work.

Problem Formulation and CRLB
In this section, we shall first formulate the joint time synchronization and source localization problem in consideration. The CRLB for the unknowns is then derived and analysed to motivate the MSE analysis and the algorithm development presented in the following two sections.

Signal Model.
We shall consider jointly synchronizing and locating a single source in a 2D plane. The extensions of the theoretical developments in this paper to the more general case of synchronizing and localizing a source in the 3D space are straightforward.
The source is located at an unknown position p = [ , ] . It has an unknown clock bias of̃seconds with respect to the reference time (i.e., the true time). Mathematically, the local time at the source would be −̃if the reference time is . The value of̃can be negative or positive. Besides,ĩ s unknown but deterministic.
A sensor array composed of sensors at accurately known positions p = [ , , , ] , = 1, 2, . . . , , is used to identify p and̃by measuring the TOAs of the source signal. Without loss of generality, we assume that the source starts emitting signals at its local time 0, which corresponds to the reference timẽ. The source signal reaches sensor at the reference timẽ+ / , where = ‖p − p ‖ is the true distance between the source and sensor , ‖ ⋆ ‖ denotes the 2-norm and is the signal propagation speed. Let̃be the known clock bias of sensor with respect to the reference time. The TOA measurement obtained at sensor would be [21], after taking into account the measurement error̃, Multiplying both sides of the above equation with the signal propagation speed yields the TOA equation where =̃, =̃, =̃, and =̃. Note that the scaled clock biases in (2), namely and , now have the units of meters. Noting that estimating the original source clock bias̃is equivalent to identifying its scaled version , we shall focus on determining in the rest of this paper to simplify the presentation.
Following the noise model in [21], we assume that the TOA measurement errors in (2) are independently and identically distributed (i.i.d.) Gaussian random variables with zero mean and variance 2 . This model has been commonly adopted in literatures such as [10][11][12][13][14] for developing TOA-based localization algorithms and/or studying their performance via computer simulations. Nevertheless, it is a simplification of the real scenario where besides zeromean Gaussian random errors due to the additive Gaussian noise at every sensor [10], the TOA measurements are also subject to errors owing to the multipath and nonline-ofsight (NLOS) propagation of the source signal as shown in recent experimental studies [29][30][31]. The fundamental limits of localization accuracy under these realistic factors was established in [32]. Extending our work to more realistic TOA noise models is beyond the scope of this paper, but it is under investigation.
By introducing the × 1 vectors, we can express the measured TOA in (2) using the following signal model in matrix form: The problem of interest is to estimate the source position vector p and the source clock bias given T and p .

CRLB Analysis.
The CRLB for the composite unknown vector = [ , p ] under the joint time synchronization and localization scenario presented in the previous subsection is [21] CRLB where p,p = (p − p )/‖p − p ‖ is a unit vector from p to p. The CRLB of the source clock bias , denoted by CRLB( ), is given by the upper left component of CRLB( ) while the lower right 2 × 2 block of CRLB( ) is the CRLB of the source position p, denoted by CRLB(p). Applying the partitioned matrix inversion formula [33], we have We proceed to evaluate (6b) more carefully to gain more insights. Collecting p,p , = 1, 2, . . . , , yields the × 2 partial derivative matrix H given as ] .
CRLB(p) can then be expressed as where R = I − (1/ )1 1 , I is an × identity matrix and 1 is an × 1 column vector whose elements are all equal to one as defined in (4). The matrix R can be rewritten as the following matrix product: International Journal of Distributed Sensor Networks where I −1 is an ( −1)×( −1) identity matrix and 1 −1 is an ( − 1) × 1 column vector whose elements are all equal to one. Applying the matrix inversion lemma [33] to the matrix in the middle of the right hand sides of (9) yields Clearly, Q is an ( − 1) × ( − 1) matrix with all its diagonal elements equal to 2 and others equal to 1. Substituting (10) back into (9) and putting the result into (8), we have Comparing (11) with (33) from [34], we notice that within the considered time synchronization and source localization framework, the CRLB of the source position is equal to that of locating the source from − 1 time difference of arrival (TDOA) measurements 1 = ( + ) − ( 1 + 1 ), where = 2, 3, . . . , . In other words, the TDOA measurements 1 are indeed generated by subtracting the TOA obtained at sensor 1 from the remaining TOAs. From the definition of the TOA measurements given in (2), all the TOAs are linearly related to the unknown source clock bias and hence, the subtraction operation eliminates the presence of in the obtained TDOAs 1 . This enables TDOA positioning of the source and also forms the basis of the joint synchronization and localization algorithm proposed in Section 4 of this paper.
It is worthwhile to point out that we choose to produce the TDOAs through subtracting the TOA measured at sensor 1 from the rest − 1 TOAs for two reasons. First, this facilitates the comparison of the CRLB result derived in (11) with (33) from [34], where the TDOA measurements were also obtained with respect to sensor 1. Second, subtracting the TOA at any sensor other than sensor 1 from the remaining − 1 TOAs would yield a different set of TDOA measurements but with the same quality as 1 in terms of the source localization CRLB. This can be verified by applying the fact from Section 2 that the TOA measurement noises are i.i.d. and they have the same variance. Nevertheless, the above observation would become invalid if are no longer i.i.d. Investigating the approach that takes into account the statistical information on to produce the optimal TDOA measurement set is an important topic subject to future researches.
When the clock bias of the source, , is available a priori, but the source position p remains unknown, the joint synchronization and localization task reduces to the classic problem of TOA positioning using the measurements in (2). The best possible localization accuracy for this case becomes [21] CRLB(p) and CRLB(p) given in (6b) are the CRLBs of the source location estimation under two different scenarios, namely, when the source block bias is known and when is unknown. They are both 2 × 2 matrices and have the same units, which makes subtracting CRLB(p) in (13) from CRLB(p) in (6b) feasible. In fact, it can shown that CRLB(p)-CRLB(p) is a positive semidefinite matrix, which indicates that compared with TOA positioning, the problem of joint time synchronization and source localization considered in this paper has a worse localization accuracy in general. This is expected, because we need to estimate one more unknown, specifically the source clock bias , from the same set of TOA measurements.
On the other hand, carefully examining (2) reveals that if the clock bias is negligible compared to the sourcesensor distance , = 1, 2, . . . , , or equivalently / ≈ 0, and the source position is of primary interest, we may simply ignore the presence of and apply TOA positioning technique to the TOA measurements in (2) for identifying p. In this way, the obtained location estimate will be biased, but it could have a smaller localization MSE than that of the location estimate from an efficient estimator for joint time synchronization and source localization. We shall theoretically illustrate the above observations in the following section.

Localization MSE Analysis
In this section, we shall derive the localization MSE when identifying the source position p from the TOA measurements in (2) via TOA positioning and pretending that the source clock bias is zero. The obtained results will be contrasted with the best achievable localization MSE under the framework of joint estimation of and p, which is equal to the trace of the CRLB(p) given in (6b). The theoretical developments are based on an estimator that utilizes the Taylor-series linearization and estimates the source location from via the classic weighted least squares (WLS) technique. The reason behind the use of a WLS source location estimate is that it enables obtaining its localization MSE in closed form in terms of the TOA measurement noise power 2 and the source clock bias to gain more insights. The localization MSE result in this section is valid for the scenario where the TOA measurement noise and the source clock bias are both small, due to the use of first-order approximation in the considered location estimator. But it applies to any TOA positioning technique that achieves the CRLB accuracy (13) when the source clock bias is known a priori. We shall corroborate the analytical results using numerical examples in Section 3.1 where the maximum-likelihood (ML) estimator for TOA positioning that attains (13) asymptotically when the source clock bias is known is simulated.
The MSE analysis starts with approximating the TOA measurement in (2) via applying the Taylor-series expansion up to the linear term to the source-sensor distance = ‖p − p ‖ using an initial source position guessp. Mathematically, we have International ] ⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ G (p −p) + 1 + n, (15) where 1 and n are defined in (4). Pretending that = 0 and utilizing n being zero-mean Gaussian random vector, the maximum likelihood (ML) estimate for (p−p) can be derived using the WLS technique [35]. Adding the result to the initial solution guess for p yields the final source position estimatẽ Substituting (15) into the above equation and subtracting the true source position p from both sides give the estimation error, when the clock bias is ignored Assuming that the initial source position guessp is sufficiently close to the true value p, we can ignore the error in G and approximate it with H defined in (7) whose row vectors are p,p . Therefore, (17) becomes It can been observed thatp is a biased estimate of p and the estimation bias is equal to (H H) − where tr() is the trace of a matrix. On the other hand, the localization MSE of an efficient estimator for jointly identifying p and can be derived by applying the matrix inversion lemma [33] to (8) This indicates that ignoring the clock bias may still lead to a location estimate with a smaller localization MSE than that of jointly identifying it together with the source position p, if the following inequality holds: The term on the right hand side of (21) is dependent on the TOA measurement noise power and the localization geometry. In particular, it increases with 2 . Furthermore, it would also become relatively large when the source lies away from the sensor array. This is because in this case, the matrix inverse (H H) −1 in the denominator, which is in fact the scaled version of the best TOA localization accuracy CRLB(p) when the clock bias is known (see (13)), would increase. On the other hand, the term on the right hand side of (21) would decrease if H 1 is close to a zero vector. This could occur when the source is inside the sensor array.

Numerical Examples.
We shall verify the theoretical analysis results via computer simulations. The considered scenario is depicted in Figure 1, where = 6 sensors are uniformly deployed along a circle centered at the origin and having a radius of 20m. The source is located either at p = [50, 50] m which is outside the sensor array or at p = [−10, 10] m which is inside the sensor array.
The MLE is realized to identify the source position and its localization MSE is defined as (1/ ) ∑ =1 ‖p − p‖ 2 , where p is the source location estimate in the th ensemble run and = 20, 000 is the total number of ensemble runs. The noisy TOA measurements fed to the MLE in each ensemble run are generated by adding to the true values zero-mean Gaussian noise with variance 2 set to be −20 in log scale. The source position is found via maximizing the pseudo-ML cost function (T − d) (T − d) with respect to the source position p, where T and d are both defined in (4), T collects the TOA measurements (having clock bias) and d is functionally dependent on p. In this way, the MLE performs the TOAlocalization task by pretending that the clock bias in T is absent. The maximization is conducted via applying the iterative Taylor-series method [36] with the initial solution guess produced by adding to the true source position zeromean Gaussian random vector with a covariance matrix of 2CRLB(p), where CRLB(p) is defined in (6b). This ensures that the MLE would normally need several iterations to converge to a solution.
Two sets of simulation results are generated, one for the source outside the sensor array and the other for the source inside the sensor array. They are plotted as function of the source clock bias in Figures 2 and 3. Also included in the figures are the theoretical localization MSE when ignoring the clock bias, which is given in (19). We plot as well the traces of CRLB(p) in (6b) and CRLB(p) in (13). They denote the lowest possible localization MSEs when the clock bias is jointly estimated with the source position and when is known a priori.
We can see from Figure 2 that when the source clock bias is zero, the localization MSE of the simulated ML estimator reaches CRLB(p) as expected. As increases, the localization  performance of the considered MLE degrades as predicted in (19). The simulation MSE matches the theoretical results very well, which justifies the validity of the localization MSE analysis. Furthermore, the localization MSE of the MLE remains to be smaller than that of jointly identifying the source clock bias and the source position, until the clock bias reaches a certain level (in this simulation, around = 2.77 m). This is consistent with the analysis in (21). In Figure 2, the boundary condition (i.e., the crossing point of curves (2) and (3)) that makes (21) achieve equality is also verified through simulation. Curves (2) and (3) are indeed the localization MSEs when the source is located jointly with the source clock bias and when the source position is found via ignoring the source clock bias and applying TOA positioning. The existence of a crossing point indicates that the two techniques can yield the same performance in terms of localization MSE for a particular value of the source clock bias.
The observations from Figure 3 where the source is inside the sensor array are very similar to those obtained from Figure 2 where the source is outside the sensor array. An important difference is that in this case, the crossing point of curves (2) and (3) appears when the source clock bias is equal to = 0.0492 m. This observation is consistent with the analysis under (21). The crossing point being much closer to the origin compared with Figure 2 indicates that when the source lies inside the sensor array, ignoring the source clock bias and locating the source via TOA positioning is more likely to produce worse localization performance than joint clock bias and source position estimation, considering the presence of clock asynchronization (see, e.g., [32]). It is worthwhile to point out that the above observation is obtained without taking into account other realistic factors such as the multipath effect in signal propagation. We are currently extending our theoretical developments to more realistic signal models.
It can also be seen from Figure 3 that when the clock bias is as low as 0.05 m, which corresponds to around 0.17 nanoseconds, if the signal propagates at the speed of light, ignoring leads to an amount of more than 10 dB degradation in source localization MSE, compared to the joint time synchronization and localization. With those observations in mind and noting that existing closed-form joint synchronization and localization techniques, such as the one proposed in [21], are not able to provide the CRLB accuracy, we are motivated to develop in the next section a novel algorithm in closed-form that can identify and the source position p efficiently.
International Journal of Distributed Sensor Networks 7

Algorithm and Performance Analysis
In this section, we shall develop an efficient algorithm for jointly estimating the clock bias and the source position p from the TOA measurements in (4). The algorithm is in closed-form and has low computational complexity. It consists of two processing steps, where Step 1 locates the source and Step 2 estimates . We shall show analytically that under small TOA measurement noise, the proposed algorithm reaches the CRLB accuracy for both the source position and the clock bias.
Step 1. The development of Step 1 processing is motivated by the CRLB analysis presented in Section 2.2. In particular, we have shown there that the CRLB of the source position, when jointly identified with the clock bias, is identical to that under TDOA positioning, where the − 1 TDOAs are produced by subtracting the TOA measurement obtained at sensor 1 from the remaining − 1 TOA measurements. Following this observation, we locate the source position p as follows. First, we obtain the TDOA measurements via From (2), the measurement errors in 1 are 1 = − 1 . Collecting 1 forms the ( − 1) × 1 column vector r = [ 21 , 31 , . . . , 1 ] and its error vector is correspondingly where n is the TOA measurement noise vector defined in (4).
Δr is a zero-mean random vector because n have zero mean and its covariance matrix is 2 Q , where Q is defined in (10). Next, the source position p is estimated from r using the closed-form twostage algorithm developed in [34]. We shall briefly summarize the computations. Interested readers can find the algorithm details in [34]. Stage 1 of Step 1 processing estimates p together with an extra variable 1 = ‖p − p 1 ‖ that is the distance between the source and sensor 1. The functional relationship between them is ignored in Stage 1. Define the unknown vector as 1 = [p , 1 ] and its weighted least squares (WLS) estimate is found viâ1 where the weighting matrix W 1 is equal to . , ]) and , = 2, 3, . . . , , are the ranges between the source and sensor (see (2)). The matrix G 1 and the column vector h 1 both have ( − 1) rows and their ( − 1)th rows are G 1 ( − 1, :) = −2 ⋅ [(p − p 1 ) , 1 ] and h 1 ( − 1) = 2 1 − p p + p 1 p 1 . The estimation error is equal to Δ̂1 = ( which is approximately zero-mean (under small noise condition and G 1 being approximately noise-free) and has a covariance matrix cov(̂1) = (G 1 W 1 G 1 ) −1 .

Stage 2 of
Step 1 processing refines the source position estimate from Stage 1, which iŝ1(1 : 2), by exploring the relation between the unknowns p and 1 . The unknown vector of this stage is 2 = (p − p 1 ) ⊙ (p − p 1 ), where ⊙ is the Schur product (element by element multiplication). Its estimate is again found via applying the WLS technique, which is given bŷ where the weighting matrix is W 2 = (B 2 cov(̂1)B 2 ) −1 and . G 2 and h 2 are equal to where I 2 is a 2 × 2 identity matrix and 1 2 is a 2 × 1 column vector of ones. The estimation error in̂2 The source position estimate is obtained through map-pinĝ2 usinĝ where sgn( ) is a sign function equal to 1 for ≥ 0 and 0 otherwise. The source localization error would be Δp = The covariance matrix ofp can be shown to be cov(p) = B − 3 cov(̂2)B −1 3 .
Step 2 estimates the clock bias . In particular, under the joint synchronization and localization problem formulated in Section 2.1 (see (4)), the maximum likelihood (ML) estimates of and the source position p can be found via solving the following minimization problem: where the fact that the TOA measurement noise vector n is a zero-mean Gaussian random vector has been applied. Differentiating the cost function in (27) with respect to and setting the result to zero yield the ML estimator for the clock bias . Mathematically, we havê d is defined in (4) and it is unknown because the true source position p is not available. We replace it withd that has the same functional form as d except that p has been replaced by Step 1 outputp. Hence, the proposed algorithm estimates the clock bias viâ= We now summarize the processing required to estimate the source position p and the clock bias . The proposed algorithm accomplishes the joint synchronization and source localization task by evaluating sequentially (24), (25), (26), and (29). Note that in computinĝ1 and̂2 using (24) and (25), the true source position p is needed to produce the weighting matrices W 1 and W 2 . To bypass these difficulties, 8 International Journal of Distributed Sensor Networks when evaluating (24), we first set W 1 to be an identity matrix of appropriate dimension and computê1 to find 1 . Then, (24) is calculated again with p in W 1 being replaced bŷ 1 (1 : 2) that is just obtained. In evaluating (25), the source position estimate from Stage 1 of Step 1 processing is utilized to generate W 2 .

Performance Analysis.
We shall establish the efficiency of the algorithm proposed in the previous subsection under the condition that the TOA measurement noise are sufficiently small. Mathematically, we need to show that the algorithm output, namely the source position estimatep and the clock bias estimatê, is unbiased and their covariance matrices are approximately equal to the corresponding CRLBs, that is, cov (̂) ≈ CRLB ( ) .
cov(p) is the covariance matrix ofp given under (26) and CRLB(p) is the CRLB of the source position p defined in (6b). The validity of (30) can be verified by following the performance analysis procedure adopted in [34]. The unbiasedness ofp can be shown as follows. The estimation error inp can be written as, from the definitions of Δp, Δ̂2 and Δ̂1 given below (26), (25), and (24), where Δr is the error in the TDOA measurement vector produced from the TOA measurements , which is defined in (23) and shown to have zero mean. Under the small TOA measurement noise condition, we can ignore the noise in G 1 and as a result, Δp is linearly proportional to Δr and is zeromean, which establishes that the source location estimate from the proposed algorithm is unbiased.
We proceed to prove (31), where cov(̂) is the covariance matrix of the clock bias estimate in (29) and CRLB( ) is the CRLB defined in (6a). As pointed out above (29), the clock bias is identified within the proposed algorithm using an ML estimator. We have shown above that the source position estimatep is an efficient estimate and as such, it can be expected from the property of the ML estimator [35] that the clock bias estimatêwould have an accuracy approximately equal to its CRLB. To derive cov(̂), the estimation error in , denoted by Δ̂, needs to be found. For this purpose, we expandd in (29) at the true source position p using the Taylor-series expansion up to the linear term, substitute (4), and subtract from both sides of (29) to arrive at where H is defined in (7). It can be shown by putting (32) into (33) that the clock bias estimatêfrom the proposed algorithm is also zero-mean since its estimation error Δ̂is linearly proportional to the zero-mean TOA measurement noise vector n, under small TOA noise condition. cov(̂) can be obtained via squaring both sides of (33) and taking expectation. We have, after some simplifications, where (30) has been substituted and F = H ⋅ E[Δpn ]. We shall show that F ⋅ 1 = 0 , where 0 is an × 1 vector of zeros. In particular, after putting (32) and (23), Putting the above result into (34) and comparing (34) with (6a) after applying the matrix inversion lemma [33] and ∑ =1 p,p = 1 H, which is would yield (31). This completes the establishment of the efficiency of the proposed algorithm.

Simulations
We shall demonstrate the estimation performance of the algorithm developed in the previous section for identifying the position and the clock bias of the unknown source in a twostep manner via computer simulations. The simulation scenario is the same as in Section 3.1, which is depicted in Figure 1.
The newly proposed algorithm in Section 4 is applied to estimate the source position p as well as the clock bias fixed at = 15 m. The accuracy for source localization and synchronization is quantified using (1/ ) ∑ =1 ‖p − p‖ 2 and (1/ ) ∑ =1 ‖ − ‖ 2 , where = 20, 000 is the total number of ensemble runs and p and are the source position and clock bias estimates in ensemble . In each ensemble run, the erroneous TOA measurements are produced by adding to the true values zero-mean Gaussian noise with variance 2 . For the purpose of comparison, we also realize the algorithm developed in [21] for joint source localization and synchronization.
For each of the two sources shown in Figure 1, we generate two figures for plotting the synchronization and source localization MSEs as function of the TOA measurement noise power 2 , respectively. The corresponding CRLBs, specifically CRLB( ) and CRLB(p) from (6a) and (6b), are included in the figures as performance benchmark.
International Journal of Distributed Sensor Networks It can be seen from the figures that the proposed algorithm is able to attain the CRLB accuracy for the source position and clock bias before the TOA measurement noise power 2 reaches 0 in log scale. This is consistent with the theoretical performance analysis presented in Section 4.1 that the proposed algorithm is approximately efficient for accurate TOA measurements. On the other hand, the previously developed method from [21] cannot reach the CRLB accuracy, and its synchronization and localization MSEs are higher than the CRLB by an amount of more than 17 dB when 2 lies in the range from −40 to −25 in log scale. As the TOA measurement noise power further increases over −10 in log   scale, the performance improvement due to the use of the newly proposed method is even more significant. Figures 6 and 7 depict the estimation MSEs for the clock bias and the position of the source p = [−10, 10] inside the sensor array. Comparing with Figures 4 and 5 immediately reveals that the estimation performance is much better in this case, mainly because the localization geometry is improved. Moreover, in contrast to the case where the source is outside the sensor array, the proposed method and the algorithm from [21] yield similar estimation accuracy that matches the CRLBs for both the clock bias and the source position. This again verifies the performance analysis results in Section 4.1 on the approximate efficiency of the proposed solution. Interestingly, the method from [21] suffers from the threshold effect later than the new algorithm in this simulation. However, its better performance does not persist as the source location moves outsides the sensor array, as shown in Figures 4 and 5. In contrast, the proposed algorithm can attain the CRLB performance for both cases where the source lies within and outside the sensor array, when the TOA measurement noise power is not sufficiently large.

Conclusions and Future Work
In this paper, the TOA-based joint synchronization and source localization problem was considered. Effects of neglecting the presence of the source clock bias in TOA measurements on source location estimation accuracy was first investigated. For this purpose, an MSE analysis was performed for the case where the source is localized via TOA positioning when assuming the source clock bias does not exist, but in fact it is nonzero. Comparing the obtained source localization MSE with that from joint estimating the source position and clock bias, we derived a condition under which ignoring the source clock bias may provide a smaller localization MSE. Numerical examples were provided to validate the analysis and reveal that, in some cases, neglecting the clock bias can severely degrade the localization performance. As a result, a new efficient closed-form solution for joint synchronization and source localization was proposed. The new method can identify the source location and clock bias using a twostep approach. Theoretical performance analysis and simulations were conducted to show that it can achieve the CRLB accuracy for both source location and clock bias estimates under small Gaussian TOA measurement noise.
Some recent work such as [22] adopted a more completed model where both the time offset (clock bias) and skew are considered. However, the proposed least squares (LS) estimator in [22] cannot reach the CRLB accuracy. As a future topic, we would like to derive an efficient closed-form estimator for joint synchronization and source localization in the presence of time skew.