1. Introduction
Accurate 3D real-time positioning with high spatial and temporal resolution is pursued by a growing number of research projects and industry teams. A number of ready for growth markets are waiting for reliable, fast, and affordable technologies capable of providing tridimensional coordinates for people and objects indoors. This large audience is looking for the indoor equivalent of what is the Global Positioning System (GPS) for open air spaces, but with better tracking accuracy and higher refresh rate. In fact, positioning from satellite services such as GPS or Galileo is inadequate inside closed environments due to the lack of line-of-sight and low signal level, while also accuracy and refresh rates are insufficient. Applications include man-machine gestural interfaces, marketing, and navigation in closed environments such as malls, hospitals, airports, etc., virtual and augmented reality for gaming, museum and historical heritage sites, domotics by controlling home appliances with human presence and movements, security by controlling access, tracking persons, and monitoring assets, etc. [
1,
2,
3,
4,
5,
6,
7,
8]. It is worth noting that many of these applications require, in addition to absolute positioning, also the trajectory of motion with sufficient repeatability and smoothness to derive high quality gestural features or vectors, rather than high absolute positioning accuracy.
To date, no indoor positioning technology well suited for all purposes has emerged as a final winning solution, and the research field is still fully open. Many attempts to develop indoor positioning systems have been reported in the literature [
9], but none of them seems sufficiently accurate, low cost, miniaturizable, and showing at the same time energy consumption compatible with small batteries. Proposed systems rely on a number of technologies including Radio Frequency (RF) signals [
10], multiple cameras, lasers [
11], infrared beams [
12], magnetic sensors [
13], and ultrasonic signals [
14]. Among these techniques, systems based on ultrasonic waves can provide distances and spatial positions with a high degree of precision at a relatively low cost [
15].
The most used techniques are time of arrival (TOA) and time difference of arrival (TDOA). TOA based methods require knowing exactly when (time of emission, TOE) the emitter starts to emit the ultrasonic signal, and thus require a tight synchronization between emitter and receiver, usually obtained using a suitable RF communication channel. In such systems, ultrasonic and reference Radio Frequency (RF) signals are emitted synchronously at a given TOE, and distances are estimated by neglecting the propagation time of the RF signal, so that the TOF = TOA- TOE is the time elapsed from the RF emission at TOE to the reception TOA of the ultrasonic signal with an excellent degree of approximation. This implies the knowledge of both TOE and TOA at the place where the TOF is estimated. Often TOE is transmitted through a trigger signal from the emitter to the MD using a RF or infrared (IR) additional channel. The emitter-receiver distance is then computed by multiplying this TOF and the known propagation speed of sound in air [
16,
17]. The comparatively low propagation velocity of ultrasonic waves in air allows high accuracy of signal’s time of flight (TOF) measurement, and thus high accuracy ranging and positioning. TOF ultrasonic positioning systems use true range multilateration for the spatial positioning of a mobile device (MD) starting from the measurements of the distance between the MD and a set of reference points. Unfortunately, in such positioning systems, the inclusion of an RF or IR subsystem to provide a time trigger signal adds significant complexity, size, power consumption, and cost [
18].
Knowing the distances between MD and reference points (at least three for 3D positioning in a hemispace) allows finding the position of the MD as the intersection of spheres centered at the reference points, which implies the solution of a set of nonlinear equations. There are many approaches to solving these nonlinear equations: Direct geometric solution, minimization of a suitable cost function, or statistical methods (Bayesan methods, Kalman filtering) [
19]. Geometric methods are based on the linearization of the system of equations in order to find a mathematically closed form solution [
20,
21]. When it is allowed to appropriately choose the number and arrangement of the emitters, the system of nonlinear equations can be solved directly [
22]. The main problem with these methods is noise sensitivity in some positioning areas.
In the absence of any synchronization between emitter and receiver, it is possible to obtain a positioning with pseudo range multilateration by only measuring TOAs. The technique is based on the differences in the TOAs of two or more received signals, using one of them as a reference, thus obtaining TDOAs. Successively, the TDOAs are converted in differences of distances. At least three distance differences from four reference points are needed to obtain the tridimensional MD positioning as an intersection of three of hyperboloids. In [
23], a solution based on both TDOA and frequency difference of arrival (FDOA) for including target speed information was presented. The hyperbolic multilateration problem can also be approached using the iterative numerical approach based on Cayley–Menger bideterminant [
24], but with a significant computational cost, especially considering small and battery-operated sensors. Moreover, for numerical iterative methods, it is essential for convergence, but not always viable, to provide a good initial guess.
In [
25], the experimental 2D positioning for indoor navigation of smartphones acting as acoustical receivers is reported. TDOA positioning is achieved using an iterative least square matrix method. Sub-decimeter positioning accuracy was reported together with an analysis of the acoustic reception quality related to the rotation angle of the smartphone in respect to the emitters.
In [
26], many beacons were placed in unknown positions, and statistical and iterative methods, through linear approximations of highly nonlinear equations (GN, LM, particle filter, Kalman filter etc.) were employed to obtain the position of the receiver. 2D positioning accuracy in the order of tens of centimeters was reported.
In [
27], a simultaneous 2D TDOA positioning of many transmitters and a moving receiver is presented. Positioning is obtained iteratively solving a nonlinear optimization problem of TDOA using a physical spring–mass representation of the error function. However, this solution shows a high computational cost and a consequent large footprint for the powerful processor required and its large battery.
In [
28], an algebraic solution of the 2D TDOA positioning is provided using more than four reference points. It is also shown that in regions of poor geometric dilution of precision (GDOP), the algebraic solution always performs better than an iterative solution derived from linear approximation of a nonlinear computation. In [
29] a mathematically closed form is derived for TDOA positioning, analyzing ambiguity issues of the set of possible solutions.
In [
30], three-dimensional positioning is obtained using five reference points or beacons and thus four TDOAs. This redundancy allows equation linearization and therefore algebraic solution. Simulative results were also reported therein. In [
31], a room level positioning system for mobile robots navigation was reported, with experimental results in the floor plane (2D positioning). In [
32], a low cost ultrasonic based positioning system for indoor mobile robots navigation was described. This system was intended for distribution at floor level and was based on a least squares (LS) method for calculating positioning. TOAs were obtained with dynamic threshold detection, and operation was partially limited by the narrow emission cone of the employed transducers. A positioning dilution of precision (PDOP) analysis depending on the relative position between MD and reference points was also provided.
A recently proposed indoor ultrasonic positioning system uses a sort of TOF positioning without using reference signals of any kind to signal the ultrasonic TOE [
33]. It employs a hybrid combination of angle of arrival (AOA) and TOF with a clever timing recovery algorithm that is able to indirectly estimate the correct timing during operation. Recovery of synchronization is obtained in two steps. An array of at least three receivers allows to estimate the direction of origin of the signal from a given ultrasonic beacon, placed in a reference point. With three beacons transmitting at known and fixed rates, the three estimated directions through an angulation method produce a coarse estimate of the 3D position of the MD. The coarse MD-beacon distances and the estimated times of arrival (TOA) allow to estimate the TOEs of the ultrasonic signals. Since the emission timing sequences are known, the estimated TOEs determine the timing offset (TO) estimates of the beacon emission sequences, which are constant relative to the MD’s clock. As a consequence, the TO estimates can be averaged over a number of ultrasonic emission periods. Assuming that the TO estimates relative to the MD’s clock are noisy with their mean equal to the true TO, a moving average will converge over time to the true TO. Based on this, a more accurate estimate of the MD location is then obtained through a conventional TOF method, where the TOF is computed using the measured TOAs and the TOEs estimates from the converged TO. Ultimately, the averaging of the TO estimates ensures a reduced estimation noise, in turn allowing for a more accurate estimate of the position based on TOF, e.g., using the intersection of spheres.
Despite the clever design, this system still presents some critical issues. In fact, in real systems, the beacon clock and the MD clock, although nominally at the same frequency, show a relative clock drift, due among other things to manufacturing tolerances, temperature, and aging. The clock drift causes an event that happens at the beacons at constant intervals to be seen by the MD as happening at slowly increasing or decreasing time intervals over time. Therefore, over time the TO is not seen by the MD as a constant, but it is seen as a time ramp. For this reason, the estimate of TO computed with a simple moving average does not converge to the true value. Furthermore, the need to equip the MD with at least three ultrasonic receivers does not favor a compact and low-power design. Moreover, the reported iterative computation load for positioning is not easily achievable with a low power design.
In this work, a system is proposed that, inspired by that described above [
33], overcomes some of its critical elements, namely the use of three receiving microphones and the clock drift. Our system uses four ultrasonic beacons and the MD has only one ultrasonic receiver. Periodically, the four beacons emit a sequence of ultrasonic signals, regardless of the presence or absence of MDs. All the positioning computations are performed onboard each MD.
In a first step, a moving MD estimates the TO using only TDOA information using a mathematically closed form, in this work derived from the intersection of hyperboloids, which however is notoriously highly sensitive to measurements’ uncertainty [
34,
35,
36]. The MD estimates TO from scratch, i.e., without prior information. As explained, due to the unavoidable clock drift, the MD does not see a constant TO with respect to its clock, but a time ramp with slope proportional to the clock drift. It is therefore not possible to obtain a convergent estimate of true TO using simple moving averages. Hereafter, a new solution of the above problem using a suitable ramp follower that converges even in the presence of clock drift is also presented.
In the second step, a more accurate estimate of the MD position is obtained through spheres’ intersection, whose radii are obtained through converged TO estimates and measured TOAs. Both TO estimation and spherical positioning calculations are performed using two closed form formulas, thus minimizing the computational load with significant savings on complexity, size, and energy consumption of the MD.
The main advantage of this method is the elimination of the trigger signal between beacons and MD, and consequently of the one-way RF communication from the beacon set to the MD. The elimination of the RF section leads to a reduction in the complexity, size, and power consumption of both the beacon set and the MD. Furthermore, the proposed method does not present convergence problems, has a much lower computational complexity than iterative or statistical methods and a lower sensitivity to noise compared to other geometric methods based on linearization (see [
19,
20,
21] and [
23,
24,
25,
26,
27,
28,
29,
30,
31,
32]).
Similarly to the GPS system for open-air environment, this system can be used in an indoor environment by a variety of different devices that meet a pre-established standard. So, in perspective, special purpose MD, smartphones, tablets, notebooks could exploit the existence of a common indoor positioning structure running a simple software application and easily getting indoor positioning and navigation services in certain places such as malls, hospitals, and airports.
This paper is structured as follows.
Section 2 explains the proposed system and algorithm.
Section 3 reports the preliminary simulations and the experimental results.
Section 4 draws the paper conclusions.
2. System Architecture and Synchronization Recovery
In this section, an innovative solution to the MD timer synchronization with the Beacons emission is presented.
The proposed system consists of four coplanar emitters, placed at the corners of a rectangle of sides
a and
b, designed to be positioned on the ceiling of a room (see
Figure 1). At first, only an MD is considered, however in the following our considerations are extended to any number of MDs.
The four beacons emit ultrasonic signals in a predefined sequence (i.e., 1, 2, 3, 4, T
SILENCE, 1, 2, 3, 4…) starting from the time t
0BEACONS, and the time interval between emissions is T
REPETITION (see
Figure 2). Each emission duration is T
EMISSION < T
REPETITION. The beacons belong to the same circuit and are intrinsically synchronized with each other. The sequence of the four signals is repeated in identical frames emitted at regular time intervals of duration T
FRAME (frame repetition time). Chirps are the simplest and more suitable ultrasonic signals that allow to take full advantage of correlation-based ranging techniques. Anyhow, the following reasoning applies to any type of signal that is able to provide a ranging with the required accuracy.
The MD records the ultrasonic signal coming from the Beacon Set for a duration time of TFRAME, according to its internal timer.
Therefore, two distinct periodic processes can be considered: (1) The ultrasonic emission frame repetition which starts at t
0BEACONS; (2) the listening window which starts at t
0MD (see
Figure 2). They are repeated with equal periods but with different starting times. There is, therefore, a lag or time offset between the two processes T
OFFSET = t
0BEACONS- t
0MD that is unknown.
Typically, one of the synchronization techniques known in the literature is used to estimate T
OFFSET, for example Reference Broadcasting [
37,
38], which however require additional hardware (wires, RF, etc.) and protocols. On the contrary, here an innovative solution completely devoid of synchronization hardware that allows the recovery of T
OFFSET is proposed.
The MD knows in advance the emitted signal, which is a linear chirp, in order to be able to process it and to obtain information on the arrival time. A very effective processing is the cross-correlation between the received chirp signal and a copy of the chirp stored in advance in the MD, which is used below. Digital cross-correlation shows high accuracy and, in general, good acoustical noise immunity in estimating TOA [
39]. In short, the received acoustical signal is properly sampled and converted from analog to digital. The resulting numerical array of samples S is cross-correlated with the digital reference signal R, previously stored in the memory of the MD. The maximum of the cross-correlation indicates the point in time where S and R are best aligned. The lag τ, or inter-signals displacement, corresponding to the cross-correlation peak is proportional to the TOF, or in the absence of synchronization, proportional to the TOA referred to the local clock.
Since the MD does not know the time of emission of each ultrasonic signal, it is not able to estimate the TOF, but only the TOAs of each signal referred to the local clock, which are TOA
1, TOA
2, TOA
3, TOA
4, respectively. From these, three TDOA
dtj (
j = 1, 2, 3) are obtained:
Knowing the propagation velocity of the sound wave in the air
cair:
the range differences
dj (
j = 1, 2, 3) from the time differences are calculated as:
where
l1,
l2,…
l4 are the distances between the MD and the four beacons. In what follows, it is assumed that, as usual, in a room the air flows and temperature gradient are kept under control for reasons of well-being of the occupants of the room. Residual fluctuations have very small effects on positioning accuracy. Alternatively, methods based on direct or indirect measurement of the speed of sound along the propagation path (see e.g., [
40]) can be adopted.
If necessary, in environments with fast temperature variations, a temperature sensor for direct compensation can be included in the MD onboard equipment. From (3), using the intersection of hyperboloids, the coordinates (
x,
y,
z) of the MD are calculated:
where
XRPi = (
xRPi,
yRPi,
zRPi) is the reference position of the
ith (
i = 1, 2,…4) beacon.
The relative position of the MD with respect to the emitters, the distance between the emitters and the noise level greatly influence the accuracy of the solution. In particular, whenever the MD is located in points of space equidistant at least by two emitters, or in their proximity, the solutions of (4) are affected by errors whose entity can be significant, as shown later in
Section 3.
Considering the arrangement of the four beacons at the corners of a rectangle of sides
a and
b, with coordinates
XRP1 = (
0,
0,
0),
XRP2 = (
a,
0,
0),
XRP3 = (
a,
b,
0),
XRP4 = (
0,
b,
0), respectively, the (4) can be rewritten as follows:
and rearranging the terms:
Rewriting the first and third of the (6):
and replacing the (7) in the second of the (6), is obtained:
Resolving the (8) for
l1, finally is obtained:
Equation (9) gives an estimate of l1 and from this, through the (2), of l2, l3, and l4. From l1, TOF1 = l1/cair is obtained, and from this, knowing TOA1 = TOF1 + TOFFSET, TOFFSET is finally estimated.
The accuracy of the current estimate of TOFFSET from (9) strongly depends on the position of the MD with respect to the four beacons. The (9) produces bad estimates in some positions, where the denominator becomes very small or almost zero. In the space points set where there is an unlimited error and (9) is “blind”. Each TOFFSET estimated directly from (9) is therefore affected by a considerable uncertainty or noise (see Figure 6).
It is important to note that TOFFSET is the same for all the beacons, which belong to the same synchronous circuit, and, above all, TOFFSET is the same for any position of the MD.
At each positioning operation, the obtained noisy value of TOFFSET can be used to refine the estimate of the true value of TOFFSET.
As already mentioned in
Section 1, there are two processes running concurrently, one in the Beacon Set and the other in the MD, which in principle are perfectly synchronous, where the difference between the initial times of the two clocks T
OFFSET is the only unknown factor.
If T
OFFSET were really constant, in order to obtain an accurate estimate of the T
OFFSET, it would be enough to make an average of the noisy values of the rough T
OFFSET estimates coming from (9), provided that the noise has zero mean value. This is in fact the approach followed by [
33], which used a moving average. In practice, however, this approach does not work well.
In fact, even if nominally the clocks of the beacon set and of the MD have the same frequency, in practice the frequencies of the two clocks differ for some part per million (ppm) and there is a clock drift over time. Considering commercial microcontrollers with a quartz clock, a typical value for clock total uncertainty is 100 ppm, depending on the temperature, manufacture, and aging of the clock components.
Clock drift, which is one of the components of the total uncertainty of a clock, produces remarkable effects. For example, if the clock frequency of our beacon set and MD systems is 10 MHz, and they differ by 50 ppm, after one second, in the worst case, the two clocks differ by 500 clock periods or 50 μs. Assuming a sound speed of 343 m/s, this difference produces a measurement error of 1.7 cm.
However, it is worth noting that, even starting from the unrealistically favorable hypothesis of initial synchronization between the two clocks, over the course of time an error of 1.7 cm is accumulated for every additional second of the system operation, and therefore after 60 s the error exceeds 1 m. The presence of clock drift is such that an event produced by the beacons at constant intervals is seen by the MD as happening at slowly increasing intervals over time. With a clock drift, the MD actually records an event that happens at the beacons at constant intervals, as if it happened at intervals that slowly increase over time. At MD, the emission constant time interval becomes a time ramp and the same happens to the TOFFSET. Therefore, TOFFSET(k) has to be estimated as a function of time, where k is a time index (see below).
It is possible to estimate the clock drift value through a ramp follower [
41], under the hypothesis that the value of the drift, or the slope of the time ramp, remains reasonably constant or very slow varying during the time interval of the operations of the system:
where
k is the
kth time step of
TFRAME duration, i.e., the repetition time of the positioning operation,
ref(
k) is the noisy ramp to be followed, i.e., the current value of T
OFFSET(
k),
y(
k) = T
*OFFSET(
k) is the estimate of the true T
OFFSET(
k) after the noise rejection,
x1(
k) and
x2(
k) are the internal states of the ramp follower, and
K is a constant parameter tuned by trial and error procedure, the smaller its value, the greater the noise rejection and convergence time of the ramp follower. Note that (10) is only one of the possible ways to estimate a ramp shaped T
*OFFSET(
k), however a thorough discussion on this issue is beyond the scope of this work.
It is worth noting that, if an output follower were applied to the time sequence of coordinates from (4), in order to filter out the jerks due to the numerically weak solution of the intersection of hyperboloids, its time filtering effect would make it difficult to reproduce abrupt variations well.
On the contrary, in this work, the ramp follower is applied to the parameter TOFFSET which varies very slowly, obtaining the T*OFFSET. It is worth noting that (10) converges recovering the synchronization without having any prior information on the TOFFSET and starting from the first value provided by (9). It is also possible to observe that Equations (9)–(10) do not introduce any constraint on the trajectory of the measured MD positions to estimate l1 and T*OFFSET. In fact, (10) converges regardless of the trajectory followed by the MD.
The T*OFFSET(k) sequence thus obtained, although heavily filtered over time, allows to obtain the TOF(k)i = TOA(k)i + T*OFFSET(k) sequence and therefore to use the intersection of spheres (12)–(13), which produces much more accurate results than the intersection of hyperboloids (4), therefore overcoming the issue of noisy results from (4). Ultimately, this approach allows trajectories to be tracked with reduced noise even in the presence of abrupt variations.
The T*
OFFSET(
k) estimate allows finding the estimates
l*i(
k) through the following:
Equation (11) allows calculating the estimate of the position of the MD at the
kth positioning frame through the simplified spherical equations intersection solution [
22,
29]:
By picking in all combinations three sphere equations at a time from the available four (12), four sets of coordinates for the position of the MD are obtained:
with
zi ≥ 0 (
i = 1, 2...4).
Finally, the position of the MD can be calculated as an average of the four positions computed by (13), making it more robust against small and unbiased errors on the estimates of the four distances:
A block diagram of the proposed positioning algorithm, as executed onboard the MD, is shown in
Figure 3.
At the start, T
OFFSET(0) and T*
OFFSET(0) are set to zero. Subsequently, the algorithm works as an infinite loop. During the signal acquisition phase, the ultrasonic signal is received, sampled, and recorded for a period of time suitable for surely acquiring all four ultrasonic emissions considering the duration of the twitter used. The recording duration is therefore longer than the T
FRAME used. The details are described in
Section 3. The successive step includes the cross-correlation between the recorded signal and a copy of the expected signal, previously stored in the MD memory. In this way, four sharp consecutive peaks are obtained. The positions, or lags, of the peaks in the computed cross-correlation vector are proportional to the four TOAs of the four ultrasonic signals travelling from the emitter to the MD.
In our system, the emission sequence is “1, 2, 3, 4” followed by a suitable “silence window”, much longer than the duration of the chirp (see
Figure 2). For always increasing (or decreasing) values of T
OFFSET frame by frame, this order may appear altered in reception. For example, due to the clock drift, after a certain operation time, the sequence “4, silence window, 1, 2, 3” can be received instead of the expected sequence “1, 2, 3, 4, silence window”. Furthermore, it is clear that T
OFFSET has a cyclic behavior, since every time it exceeds the T
FRAME value, it returns to zero, wrapping around the value T
FRAME as in the modulus operation. The correct sequence of events is restored at the receiver periodically in the third step of the algorithm by considering each intervened T
OFFSET reset along time.
The system is conceived for use with non-stationary MDs. In fact, in this case the major part of the noise on the TO estimate is non-stationary too and therefore it is properly averaged and rejected.
The single positioning operation has minimal computational impact: Evaluation of 12 equations (see Equation (13)), averaging of (14), and single update of the tracker (see Equations (9) and (10)) for each computed position.
3. Algorithm Simulation and Experimental Results
The verification of the theoretical results is initially made with the MATLAB code simulation of a system suitable to provide positioning in a typical office or home room, and subsequently with the realization and characterization of an experimental prototype.
3.1. System Simulation Setup and Results
The following simulation shows that the proposed algorithm converges in the estimate of the true TOFFSET at the accuracy level that can be achieved with the given sampling frequency FS. The beacon system is fixed at the center of the ceiling of a 4 × 4 × 3 m3 room. The beacons are fixed at the corners of a square having side a = 50 cm, so as to constitute an element that can easily be integrated into a typical room ceiling panel.
The simulation computations start from the knowledge of the four TOAs, which are detected in the correlation between received signal and signal stored in memory with uncertainty Δ
TOA [
18,
38]. In the following simulations, F
S = 1/T
S = 192 kS/s (F
S = 192 kHz) and Δ
TOA = ± T
S/2 have been set.
Assuming the sound speed 343 m/s, the time interval of TS corresponds to a space interval of 1.8 mm. A random value for the starting TOFFSET(0) and a Beacon Set-MD relative clock drift of 200 ppm has been assumed.
In the presence of clock drift, we have:
where Δ
CLOCK = 25 μs is computed taking into account that a 200 ppm clock drift applies to an external 32768 Hz crystal, from which the microprocessor clock is derived, and T
FRAME is 0.125 s.
In the simulation, the MD moves along a preset trajectory following the sides of a 2 × 4 m
2 rectangle, with 12 positioning measures or frames every 1 m along the way (se
Figure 4) and the T
FRAME is 0.125 s (i.e., frame rate 8 Hz). The rectangular trajectory is repeated for a total of 200 positioning frames to show the convergent behavior of the T
OFFSET recovery process.
Figure 4 shows the estimated trajectory compared to the true one indicated by the last 12 position estimates, i.e., after algorithm convergence. The overall 3D positioning error at coordinates (
x’,
y’,
z’) is given by the Euclidean distance
between each ground truth point at coordinates (
x’,
y’,
z’) and the estimated one at coordinates (
x,
y,
z).
Figure 5 reports the
eED behavior along the 200 positioning frames. The last 12 values refer to the positioning shown in
Figure 4, after the convergence of the process from successive application of (9) and (10) starting from no prior information on the T
OFFSET value.
The positioning error
eED is shown in
Figure 5: The error obtained using the proposed method decreases over time as ramp follower converges (thick solid line) approaching the small error achievable by the synchronized TOF positioning (dash-dot line), while the error obtained using TDOA remains large (dotted line).
Figure 6 shows the instantaneous values of T
OFFSET, and its over time estimate T
*OFFSET using the ramp follower (10) with
K = 2.5.
Figure 7 shows the cumulative error distribution (CDF) of the simulated positioning data set of
Figure 4 over the 200 positioning frames (dotted line) and of the last 20 trajectory points (solid line) after convergence transient, compared to CDF of the TDOA technique (dash-dot line). The positioning Euclidian error of the last 20 points obtained by the proposed method is below 5 cm.
3.2. Experimental System Realization
In general, it is not trivial to know the true position of an MD at any time to compare it with the estimated one, especially when points belonging to any 3D trajectory are considered. However, a reference position set is necessary to characterize and validate a 3D positioning system. Therefore, a prototype PC based positioning system was developed, capable of providing both a reference position and the one estimated with the proposed method in order to make the comparison.
The system consists of a PC, a Data Emission/Acquisition Board, an ultrasonic Emitter Set, and microphone. It emulates the beacons/MD system and is capable of executing both the asynchronous algorithm described in the block diagram of
Figure 3 and the synchronous positioning described in detail in [
18]. Briefly, the system described in [
18] provides the position of an MD using a technique of intersection of spheres based on four TOFs calculated by means of emissions and reception of ultrasonic signals synchronized through a suitable RF channel.
The present prototype emulates the positioning system [
18] step by step and shows the same positioning performances. In fact, it emits the same signals, carries out the same operations on the same input data, and produces positioning results identical to those of the system reported in [
18].
At the same time, this system performs the steps of the algorithm proposed here (see
Figure 3) to also calculate the MD trajectory without taking into account the synchronization, i.e., asynchronously. Then, comparing the positions obtained separately with the two methods, synchronous and asynchronous, the additional error committed specifically by the proposed synchronization recovery method is estimated.
However, in the PC/Board system there is no clock drift since the process of emission and reception of the ultrasonic signal are inherently synchronous as they are managed by the Data Emission/Acquisition board processor itself. Therefore, in calculating the position with the asynchronous method, a drift of 200 ppm has been added in order to simulate the clock drift that affects the asynchronous applications of the real world, plus a starting time offset of 7 ms.
The different components forming our laboratory positioning system setup are listed below:
Processing unit: A PC (Intel Core 2 Duo, 3.06 GHz, 8 GB RAM) is employed as the central processing unit of the positioning system. It runs a code written in MATLAB (The MathWorks, Inc.) for ultrasonic signal generation and for acquiring, storing, and analyzing the signals received by the single microphone.
Data Emission/Acquisition Board: MOTU 828 mk3 (MOTU, Cambridge, Massachusetts, USA). It is provided with ten analog inputs and outputs that can operate at sample rates up to 192 ksamples/s (see
Figure 8). The PC connection is realized through FireWire. Four outputs and one input are employed in our experimental setup. A linear up-chirp in the bandwidth 30–50 kHz is employed. The chirp signal, composed of 512 samples at 192 ksamples/s, is Hanning windowed to avoid audible “clicking”, while the emission sequence shows T
FRAME = 125 ms, T
EMISSION = 2.66 ms, T
REPETITION = 5 ms, and T
SILENCE = 109.34 ms (see
Figure 2).
Ultrasonic power amplifier and emitters: The generated chirps are emitted in sequence through four MOTU output channels. They are voltage amplified and fed to a four-channel Class AB MOSFET power amplifier. Each chirp signal level is further raised to 300 Vp-p in each of the four output channels with a signal voltage multiplier realized using the miniaturized 1:100 coil transformer LPR6235-752S (Coilcraft, Glasgow, UK) and fed to four ultrasonic transducers Series 7000 Electrostatic Transducer (SensComp Inc., Livonia, MI, USA) [
42]. The capacitive transducers are DC-biased by 200 V supplied by the ultra-miniature DC to HV DC Converter Q02-5-R (EMCO High Voltage Corp., Sutter Creek, CA, USA).
Since Series 7000 transducers have not been designed for such application and their emission cone is not wide enough to cover the intended volume, they were adapted according to the extensive discussion in [
18]. Their emission cone half angle (far field) was widened from 24.7° up to 80.95° at 50 kHz by reducing the aperture diameter down to 8.5 mm with a suitable mask.
The Beacon Set Unit components are mounted on a square 52 × 52 cm
2 panel. The four transducers are placed at the corners of a 50 × 50 cm
2 square, face up toward the room volume (see
Figure 9).
Mobile Device: Here, the MD is mimicked by a wired miniature microphone, amplified, and sampled by the MOTU at 192 ksamples/s (F
S = 192 kHz). The microphone is an FG-6163 (Knowles Acoustics, Itasca, Illinois, USA), a micromachined condenser microphone encapsulated in a cylindrical package, 2.6 mm length and diameter, 0.79 mm acoustical receiver window diameter, and 80 mg weight (see
Figure 8). This microphone is the same one that equips the MD described in [
18].
3.3. Experimental Results
The experimental trajectory was obtained by manually moving a microphone along a random 3D path. The microphone is continuously moved at a moderate speed, such as a normal human gesture (< 1 m/s). During experiments, the sound velocity was assumed to be constant at 344.6 m/s (T = 22.0 °C).
The four emitters driven by the power amplifier fed by the acquisition/emission board emit in sequence the ultrasonic signals at the rate of 8 Hz (1/TFRAME). This positioning rate is actually limited by the computational power of the employed PC.
The ultrasonic signal is received through the microphone, conditioned, amplified, and recorded by the acquisition/emission board. The recorded signal is sent to the PC where the MATLAB code performs both synchronous and asynchronous positioning, estimating the T
OFFSET along the successive positioning frames. After the convergence of the synchronization recovery process, the microphone coordinates measured by the system are in good agreement with the ones measured using the synchronism information (see
Figure 10).
Since the reference trajectory and the trajectory estimated with the proposed asynchronous technique are computed starting from the same ultrasonic data, the difference between them is exclusively due to the errors in the T
OFFSET estimation. Microphone absolute positioning uncertainty is instead mainly due to the TOA time quantization error propagation, deeply discussed in our previous work [
18].
In
Figure 11, the experimental results of the positioning operations for all the points on the trajectory are plotted. In particular, the positioning error is computed as the point-to-point Euclidian distance of the trajectory obtained using the synchronization recovery method from the trajectory obtained using the synchronization information.
Figure 12 shows the experimental instantaneous values of T
OFFSET, and its estimate over time T
*OFFSET using the ramp follower (10) with
K = 2.5.
Figure 13 shows the cumulative error distribution (CDF) of the experimental positioning data set of
Figure 11 over the 200 positioning frames (dotted line) and of the last 20 trajectory points (solid line) after convergence transient, compared to CDF of the TDOA technique (dash-dot line). The positioning Euclidian error of the last 20 points obtained by the proposed method after convergence is below 5 cm.
3.4. Error Propagation Remarks
Although the causes of error are several, here for simplicity only the effect of quantization error is presented (see for further details [
18]). The quantization error has a uniform distribution and, from an engineering point of view, it is useful to know the worst-case error, which is the maximum error that can be made on each coordinate.
Briefly, considering the functional relationship
y =
f(
x1,
x2,…
xk), small changes Δ
x1 in
x1, Δ
x2 in
x2,…, Δ
xk in
xk, all propagate to produce a worst-case small change Δ
y in
y in the following manner:
The use of the partial derivative module takes into account the fact that in the worst case the contributions relating to each of the independent variables are added together.
Equation (16) is used when it is not given to repeat a sufficiently high number of measures (>10) to estimate the average quadratic error. We are considering an MD that does not stay fixed in space, so that generally the measurement at a given spatial point is single. Equation (16) is actually an approximation, since any higher order terms such as (Δx1)2 have been set to zero, however, it is sufficiently accurate for most purposes.
For the error propagation analysis, it is sufficient to consider the positioning with three emitters, the fourth one employed to determine the validity of the measure and reduce the location error through the mean. By applying (16) to the second group of (13), it is therefore obtained:
where Δ
lj is the quantization error of the measurement of the Beacon-MD distance. In the worst case, Δ
lj is equal to the half quantization interval, i.e., Δ
lj =
vT
s/2, where
v is the speed of the sound in air and
Ts the sampling period. In (17), the resulting values must be considered values that cannot under any circumstances be exceeded, and not as standard deviations. However, in practice, the typical values may be smaller but reasonably of the same order of magnitude.
Δx and Δy are proportional to the Beacon-MD distance, while Δz explicitly depends on the MD x and y coordinates. In our experimental setup, with a = b = 0.5 m and Δl i ≤ 0.9 mm (i.e., half range quantum Δlj = vTs/2, with FS = 192 kHz) and considering that the geometrical center of the system is (0.25, 0.25, 3), at the furthest and less favorable point in the 4 × 4 × 3 m3 room P = (−1.75, 2.25, 0) using (17)
ΔPMAX must be regarded as upper bound of the real error, which occurs only in the worst case when all the Δli (i = 1, 2, 3) assume their maximum value at the same time. Equation (17) shows that to obtain a positioning accuracy of the order of centimeters, measurement accuracy of the order of millimeters is required. Moreover, it shows that the error magnitude is approximately inversely proportional to the length of the sides a and b of the rectangle formed by the Beacons.
The positioning error
due to the quantization error is shown in
Figure 14. It is computed in a grid of points of plane z = 1.5 m (Beacon Set at z = 3) with
a =
b = 0.5 m, with maximum error about 14.7 mm. Same error shape with
a =
b = 1.5 and 0.25 m, but with maximum error about 5.1 and 32.0 mm, respectively.
The error magnitude is of the same order, but lower, than the value provided by (17), which is in fact the upper bound of the real error. In particular, the quadrangular symmetry of the Beacon Set produces an error shape with the same symmetry, as shown in
Figure 14. It is worth noting that there are no blind or poor accuracy points, since the positioning is performed with the spherical equations (13), once T*
OFFSET has been estimated.
It is interesting to analyze by simulation the dependence of the error committed in the estimate of
l1 by (9) following the variation of
a and
b, which (9) does not explicitly show.
Figure 15 shows the simulation estimation error trend of (9) due to the quantization error on the estimate of
d1,
d2, and
d3, for a grid of points belonging to the plane
z = 1.5 m (Beacon Set at z = 3), and by considering in sequence
a =
b = 1.5, 0.5, 0.25 m, respectively. Due to the very large dynamic of the error values, they are shown in decibels (dB).
As anticipated in
Section 2, the accuracy of the current estimate of
l1, and consequently of T
OFFSET, from (9) strongly depends on the position of the MD with respect to the four beacons, but also on the beacon separation, as shown by
Figure 15. The (9) produces bad estimates in some positions, where the denominator becomes very small or almost zero, as in the neighborhood of the “central cross” artifact visible in
Figure 15. On the “central cross”, or in its neighborhood, due to the combined effect of the quantization error on the
dis, it results
in many points with an unlimited error. In practice, the values of (9) are suitably limited with an adequate threshold tuned by trial and error procedure before feeding them to the ramp follower (10). Larger Beacon Sets considerably reduce the size of the “bad” region, as shown by
Figure 15. On the other hand, smaller Beacon Sets are more easily integrated into room ceiling panels.
3.5. Discussion
Synchronization recovery between the reference set and MD required for accurate positioning is achieved using ultrasonic signals only, thus avoiding the costs, the board occupancy, and the power consumption of the RF section. This result is obtained by calculating the position through intersecting hyperboloids to recover synchronism, and then recalculating the same position using the acquired synchronism information, i.e., using intersecting spheres. In both cases intersections are computed by means of computationally efficient closed form formulas. In particular, the closed form formula for the calculation of the emitter-MD distance from the TDOAs is presented here for the first time.
Preliminary simulation using the MATLAB code has shown that the algorithm converges towards the estimation of the true TOFFSET and that, after a certain transient time from the beginning of the operations, the synchronism is recovered, thus avoiding any RF reference signals. The clock drift problem afflicting every real system is solved with a suitable output estimator. The accuracy of the TOFFSET estimate depends on the kind of estimator employed, in our case a ramp follower. As a drawback, while the ramp follower converges to the true value, it provides a sufficiently small error only after many estimation cycles. Estimation could be improved with a more refined estimator, which is however beyond the scope of this work.
The presented experimental setup provided both the reference positions and the positions estimated by the proposed technique for a point-to-point comparison. Comparing the two systems, the synchronized system [
18] and the synchronization recovery-based system presented here, exactly the difference between the two systems due to the synchronization has been shown, while the rest of the hardware and the technique for measuring the TOA are identical. In this way, TOA and TDOA measurements underlie the same geometrical and noise conditions and localization results are comparable.
The experimental results obtained in a typical office room confirm the preliminary MATLAB code simulations, although obtained using a prototype with large margins for improvement. Positions with an error of less than 5 cm in respect to the reference system at a rate of 8 Hz were obtained.
In the proposed system architecture, each MD computes the positioning autonomously and privately, since it does not require any acknowledge message exchange similarly to GPS units, so that the same infrastructure can support positioning of an unlimited number of MDs.
In fact, given a fixed infrastructure, composed of a set of ultrasonic emitters, any number of mobile devices can perform the positioning autonomously, requiring only a priori knowledge of the shape and periodicity of the signals emitted. Shape (e.g., chirp lower and higher frequencies) and periodicity in perspective can be also used to distinguish one emitter set from the neighbors in large spaces covered by multiple emitter sets in “cellular” way.
Mobile devices such as smartphones, tablets, and notebooks using appropriately low acoustic frequencies, can benefit, without hardware modifications, of the proposed positioning algorithm that can be simply executed as software by PCs or smartphones. In perspective, the use of commercial CMUT microphones such as the one used in our prototype would allow the use of higher frequencies, e.g., in the 30–50 kHz band, even on smartphones and PCs. Such a system paves the way to many applications and services, such as augmented reality, gestural interfaces, monitoring of the posture of the human body for recreational and medical purposes, training, indoor navigation of people, and devices within the framework of the Internet of Things.