Time Difference of Arrival Source Localization:
Exact Linear Solutions for the General 3D Problem
1. Introduction
The time difference of arrival (TDOA) problem admits exact, purely algebraic solutions for the situation in which there are 4 and 5 sensors and a single source whose position is to be determined in 3 dimensions. The solutions are exact in the sense that there is no least squares operation (i.e., projection) involved in the solution. The solutions involve no linearization or iteration, and are algebraically transparent via vector algebra in Cartesian coordinates. The solution with 5 sensors requires no resolution of sign ambiguities; the solution with 4 sensors requires resolution of one sign ambiguity. Solutions are effected using only TDOA and not, e.g., frequency difference of arrival (FDOA) or angle of arrival (AOA) [1].
We note previous work towards achieving closed-form solutions to the TDOA problem in 2 dimensions ([2, 3]) and 3 dimensions ([4]). Our work differs from the former in that it is fully general in 3 dimensions. It differs from the latter in that we demonstrate a purely linear algebraic solution in Cartesian coordinates without auxiliary variables and show clearly how the requirement for ambiguity resolution arises for the 4-sensor case but does not appear in the 5-sensor case.
We first present the 5-sensor solution (Section 2) and then follow with the 4-sensor scenario (Section 3). Numerical experiments (Section 4) are presented showing the performance of the calculations in the case of no noise, before closing with conclusions (Section 5). Performance of the calculations below is exact within numerical error, and in the small fraction of cases in which source localization does not occur, it is driven by misidentification in resolution of sign ambiguity without priors.
Our results are suitable for self-localization applications such as simultaneous localization and mapping (SLAM) and precision navigation and timing (PNT, through, e.g., GPS), as well electromagnetic and acoustic signal source geolocation problems. For their speed, exactness, and linearity, we believe the calculations below have substantial practical utility.
2. The TDOA Solution for 5 Sensors in 3 Dimensions
First we consider the 5-sensor scenario. Let the sensors have positions given by , and the source position, to be solved for, be given by . If is set to be the origin of the coordinate system [5], then , , and .
The ranges from the source to the sensors, , are unknowns, while the quantities are measured/inferred quantities based on time arrival differences of some waveform. That is, for measurement times and at the and sensor respectively, where is the speed of light and the s are corrected times of arrival at each sensor. Since , .
We have for , ,
(1) |
Upon rearranging and squaring, we get an expression for that is linear in the source position :
(2) |
The expression for can be substituted into any expression for () to yield an expression for :
(3) |
The vector transpose multiplying on the left hand side of Eq. (3) is built up into a matrix B, while the scalars on the right hand side are built up into a vector x so that . Since we are solving for a array, we need 3 pairs of indices that will maintain the full rank of B. We choose , so that explicitly, we have
(7) |
and
(11) |
Thus,
(12) |
The solution is exact (so long as sensor geometry ensures B has rank 3) and requires no resolution of sign ambiguities. Note that since the coordinates have been referenced to , we have the actual source location as
(13) |
3. The TDOA Solution for 4 Sensors in 3 Dimensions
The 4-sensor solution has its starting point in Eq. (2). Taking , we have
(14) | |||||
(15) | |||||
(16) |
or, defining
(26) |
we have equivalently
(27) |
If the sensor geometry ensures C has rank 3, then we have
(28) |
Define for convenience and . Then using gives a quadratic equation for
(29) |
with a solution
(30) |
Once is solved for, the solution for is effected through Eq. (28), and the actual source position via Eq.(13).
The sign ambiguity in Eq. (30) can usually be resolved by taking the two source positions corresponding to the two solutions ( and , say), recalculating the corresponding , and determining the one of two solutions that minimizes . The presence of priors (positions constrained, e.g., by fixed beam widths) can also be used to constrain the solution.
4. Numerical Experiments
The calculations above have been numerically tested with generally excellent, exact performance. Suppose the source location is varied in fully 3-dimensional space (, , and ) over 1,000 Monte Carlo instances, and the locations of up to 5 sensors are also varied in 3-dimensional space. The sensor positions () and source position are drawn from uniform distributions . The source positions are multiplied by a scaling factor relative to the sensor locations:
(31) | |||||
(32) |
In each experiment, the inferred source position is compared to the truth source position with no measurement noise. For each Monte Carlo instance, if the relative error is less than some threshold , the calculation is considered a success. For a given , the fraction of successes over all 1,000 Monte Carlo runs is calculated. In Fig. 1 below, we show results from numerical experiments for cases with and .
The very small fraction of errors that does exist is driven by numerical matrix inversion errors for cases in which sensor positions have poor geometric diversity and when the source positions are highly constrained compared to the sensors. For the 4-sensor solution, errors that exist for have been verified to be driven entirely by the incorrect choice in when solving Eq. (30). Hence, in all cases (4- or 5-sensor), the inferred solution for no noise is within numerical error of the exact value, and even in incorrect inferences in the limiting 4-sensor case, the correct solution is still one of two tested values that may potentially be easily selected based on priors. Depending on the application, the existence of this error may therefore have negligible practical impact.
5. Conclusions
We have presented here fully algebraic solutions to the TDOA problem. For the case of 5 sensors, the solution method requires only inverting a set of 3 linear equations. For the case of 4 sensors, the solution method requires inverting a set of 3 linear equations and solving one quadratic equation. Numerical experiments have been carried out using the techniques derived for varying sensor and source positions, each over 1,000 Monte Carlo instances with excellent, exact performance in the noiseless case. To the best of our knowledge, this is the first presentation of exact, linear solutions to the TDOA problem for 4- or 5-sensor scenarios in 3 dimensions.
That 4 sensors require ambiguity resolution while 5 sensors do not is perhaps evident from geometrical considerations, although the presence of a purely linear algebraic solution to the 5-sensor case might be somewhat unexpected. For 2 sensors in 3 dimensions, the TDOA problem possess a degeneracy about the surface of a hyperboloid. Introducing a third sensor reduces this degeneracy to a line (the intersection between two hyperboloids; Fig. 2), while a fourth sensor reduces the source location to up to two points, depending on the shape of the line and the new hyperboloid. The introduction of a fifth sensor ensures that if there are two possible solutions from the 4-sensor case, only the viable one is selected.
The fact that our solutions are linear make them amenable to rapid, on-platform calculation. The lack of need for iteration obviates concerns about convergence. We believe there is substantial practical utility in implementing these solutions for a range of localization and tracking problems.



References
- [1] K.C. Ho and Wenwei Xu. An accurate algebraic solution for moving source location using tdoa and fdoa measurements. IEEE Transactions on Signal Processing, 52(9):2453–2463, 2004.
- [2] Petr Hubáček, Jiří Veselỳ, and Jana Olivová. The complete analytical solution of the tdoa localization method. Defence Science Journal, 72(2):227–235, 2022.
- [3] Trung-Kien Le and Nobutaka Ono. Closed-form solution for tdoa-based joint source and sensor localization in two-dimensional space. In 2016 24th European Signal Processing Conference (EUSIPCO), pages 1373–1377, 2016.
- [4] Steven J Spencer. Closed-form analytical solutions of the time difference of arrival source location problem for minimal element monitoring arrays. The Journal of the Acoustical Society of America, 127(5):2943–2954, 2010.
- [5] J. Smith and J. Abel. Closed-form least-squares source location estimation from range-difference measurements. IEEE Transactions on Acoustics, Speech, and Signal Processing, 35(12):1661–1669, 1987.