Next Article in Journal
A Robust Routing Protocol in Cognitive Unmanned Aerial Vehicular Networks
Previous Article in Journal
Sowing Depth Monitoring System for High-Speed Precision Planters Based on Multi-Sensor Data Fusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Robust Indoor Positioning with Smartphone by Utilizing Encoded Chirp Acoustic Signal

1
State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China
2
School of Automobile and Information Engineering, Guangxi Eco-Engineering Vocational and Technical College, Liuzhou 545005, China
3
School of Electronic Information, Wuhan University, Wuhan 430072, China
4
School of Geodesy and Geomatics, Wuhan University, Wuhan 430079, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(19), 6332; https://doi.org/10.3390/s24196332
Submission received: 14 August 2024 / Revised: 13 September 2024 / Accepted: 24 September 2024 / Published: 30 September 2024
(This article belongs to the Section Navigation and Positioning)

Abstract

:
Recently, indoor positioning has been one of the hot topics in the field of navigation and positioning. Among different solutions on indoor positioning, positioning with acoustic signals has its promise due to its relatively high accuracy in the line of sight scenarios, low cost, and ease of being implemented in smartphones. In this work, a novel acoustic positioning method, called RATBILS, is proposed, in which encoded chirp acoustic signals are modulated and transmitted by different acoustic base stations. The smartphones receive the signals and perform the following three steps: (1) preprocessing; (2) time of arrival (TOA) estimation; and (3) time difference of arrival (TDOA) calculation and location estimation. In the preprocessing stage, we use band pass filters to filter out low-frequency noise from the environment. At the same time, we perform a signal decoding function in order to lock onto the positioning source. In the TOA estimation stage, we conduct both coarse and fine detection to enhance the accuracy and robustness of TOA estimation. The primary goal of coarse detection is to establish a noise range for fine detection. The main objective of fine detection is to emphasize the intensity of the first arrival diameter and resistance with multipath and non-line-of-sight (NLOS) caused by human body obstruction. In the TDOA calculation and location estimation stage, we estimate the TDOA based on the TOA estimation and then use the TDOA results for position estimation. In order to evaluate the performance of the proposed RATBILS system, two indoor field tests are carried out. The test results show that the RATBILS system achieves a positioning error of 0.23 m at 92% in region 1 of scene 1 and is superior to the traditional threshold method. The RATBILS system achieves a positioning error of 0.56 m at 92% in region 2 of scene 1 and is superior to the traditional threshold method. In scene 2, the maximum average positioning error was 1.26 m, which is better than the 3.33 m and 3.87 m of the two traditional threshold methods.

1. Introduction

The Global Navigation Satellite Systems (GNSS) are widely and consistently utilized for outdoor positioning and navigation services [1,2]. However, when it comes to indoor positioning, challenges arise due to signal scattering, attenuation, and the multi-path propagation effects of wireless signals. As a result, the positioning performance degrades largely indoors [3,4]. In the meantime, indoor positioning is of great significance. To name a few, it is the basis for emergency safety, crowd monitoring, precision marketing, entertainment and life, and human social needs [5,6].
Currently, methods of indoor positioning include Bluetooth, Wi-Fi, ultra wide band (UWB), inertial measurement unit (IMU), and audio. Each technology has its own characteristics. Specifically, Wi-Fi [7,8] and Bluetooth positioning with fingerprint technologies [9,10] are easy to implement and compatible with mobile devices. However, the fingerprint-based positioning method [11] requires pre-collecting a location fingerprint database, which is time-consuming and labor-intensive. UWB is able to achieve high accuracy positioning with the triangulation method [12,13]. However, the cost of the UWB module is high, while the technology has not been widely supported by current smartphones. IMUs [14,15] are frequently used in indoor pedestrian positioning systems due to their small size and low cost. However, the cumulative error limits their application in long-term positioning.
Acoustic-based indoor localization systems (AIPSs) [16,17,18,19,20] offer several advantages over radio frequency (RF)-based [21] and IMU-based positioning systems. The advantages include the following: (1) Low cost: AIPSs are generally more affordable compared with RF-based. The basic components required for acoustic localization, such as microphones and speakers, are relatively inexpensive and widely available. (2) High accuracy: AIPSs can provide high levels of accuracy in indoor environments. Acoustic waves propagate at a lower speed compared with RF signals, allowing for more precise distance measurements and localization calculations. (3) High availability: Under conditions where the human body and furniture obstruct, acoustic waves will diffract and propagate towards the microphone, which means that AIPSs can function effectively in various indoor settings without significant signal degradation. (4) Easy integration and handling: AIPSs are relatively easy to integrate into existing infrastructures. They can be easily incorporated into buildings or indoor environments without requiring extensive modifications. Furthermore, the handling and maintenance of AIPSs are typically straightforward. Due to these advantages, acoustic-based indoor localization systems have gained prominence in the field of ranging and positioning technologies alongside RF and IMU-based systems.
Based on the above property, researchers are now investigating the possibility of using acoustic signals for indoor positioning. An actual linear frequency modulation (LFM) signal was applied as the positioning source (the LFM signal is also called a chirp signal). In reference [22], the author estimated the TOA of a chirp acoustic signal. However, the author did not achieve positioning for a smartphone. In the article [23], the author uses indoor acoustic fingerprints to achieve room-level positioning and differentiation. However, the actual application is greatly affected by environmental noise because of a lack of acoustic base. In reference [24], chirp signals increasing linearly in frequency are used to code the one. A chirp signal decreasing linearly is used to code the zero. When the acoustic node information is decoded, it is considered that the smartphone and the acoustic node are in the same area. However, the system cannot obtain TDOA information. Therefore, decimeter-level positioning cannot be achieved. In the article, the author proposed a transmission scheme of time division multiple access (TDMA) plus frequency division multiple access (FDMA). However, the number of acoustic nodes in this scheme is limited because of hardware conditions. It is difficult to deploy acoustic nodes in practical applications. Meanwhile, the system only generated two codes assigned to four acoustic nodes, which can easily lead to incorrect identification of acoustic nodes. In reference [25], the author employed the PRN signal to encode the transmitted audio signal. Due to the absence of up-conversion for the PRN signal, the received signal at the receiver end is susceptible to environmental noise interference. In reference [26,27], the author uses a microphone array module to locate the target. However, the system is suitable for robot platforms and is not suitable for users in daily life. In reference [28], the author uses TDOA as a fingerprint to locate the sound source. The capacity of users is limited in such systems. At the same time, the TDOA-fingerprint method requires collecting fingerprint information in advance, which is time-consuming and laborious. In reference [29], the authors conducted a study on utilizing FDM-CDMA sound signals for indoor localization of unmanned aerial vehicles (UAVs). They employed time of arrival (TOA) information obtained through the maximum value of cross-correlation. However, it is worth noting that actual indoor environments present challenges such as multipath interference resulting from obstructions. As a result, the maximum value of the cross-correlation detection method may not be suitable for real-world scenarios. In reference [30], the authors utilized a threshold method for TOA estimation and developed a frequency division, spatial division, and time division positioning system, achieving good positioning results. However, this system has two key shortcomings: (1) The TDOA measurement method uses signals from adjacent base stations for measurement (for example, T D O A 12 , T D O A 23 and T D O A 34 ). This is because the system adopts ARM architecture, resulting in a clock offset issue. (2) The system’s encoding signals are only two, allocated to multiple base stations. It is necessary to inform in advance in which area. Multiple base station identifications cannot be achieved. In reference [31], the author utilized an acoustic single base station to measure the relative displacement of mobile phones, combined with PDR information, achieving good positioning results. However, in this system, the clock of the acoustic single base station will drift over time, and the author did not analyze this issue. Furthermore, the author did not encode the signals or discuss and analyze multipath issues. In reference [32], the author utilized the semantic information of acoustic signals for indoor localization. However, in practical applications, it is susceptible to factors such as noise and human obstruction, making it impractical for real-world scenarios. In reference [33], the author proposed a combination of the normalization method and threshold method for detecting the first path. However, in practical scenarios with strong shadowing, the strength of the first path is attenuated, making it challenging to determine an appropriate threshold. In reference [34], the author proposed a positioning scheme for underground spaces utilizing acoustic signals. However, there was a lack of detailed discussion regarding the impact of multipath and potential solutions to mitigate it. To further elaborate, we categorize the above explanations. In terms of signal layer research, the authors used chirp in articles [22,30,31], which cannot simultaneously satisfy the coding of multiple base stations. Regarding ranging capabilities, in articles [28,32], effective ranging could not be achieved. In terms of system synchronization, articles [30,31] did not achieve true synchronization and did not discuss clock offset in the system. For signal TOA and TDOA estimation, in articles [33,34], the authors did not propose improved methods and continued to use the classic threshold method and cross-correlation maximum method. Regarding user capacity, in articles [25,26,27], the system is not applicable to multiple users. When multiple users transmit signals simultaneously, the system cannot locate them.
Based on the above discussions, exploring robust acoustic positioning systems still has its significance in both academia and industrial fields. In this work, a RATBILS system is developed, which only requires users to carry mobile phones for direct positioning without the need for additional auxiliary devices. Due to detrimental factors such as high levels of noise, echoes, multipath propagation, and the doppler effect in indoor acoustic channels, the quality of the transmitted signal is reduced, limiting the communication range and resulting in errors in demodulation. Traditional digital modulation techniques for wireless communication, such as amplitude, and phase modulation, are not directly suitable for our system. Additionally, it is worth noting that acoustic waves experience considerably higher attenuation (i.e., decrease in signal strength with distance) compared with electromagnetic waves of similar frequencies, resulting in low-amplitude received signals and limiting the operating range of the system. As stated in article [35], the achievement was limited to acoustic communication within a range of 0.7 m. In the fields of underwater acoustic communication [36,37,38] and wireless communication [39,40,41], chirp spread spectrum (CSS) techniques are recognized as highly efficient information transmission schemes. In CSS transmission schemes, the receiver employs matched filtering (MF) to optimize the signal-to-noise ratio (SNR), resulting in an extended communication range. Furthermore, these techniques exhibit exceptional effectiveness in dealing with low-amplitude received signals, interference, and selective fading. Based on CSS, we have developed the FDM-CSS solution, which balances positioning performance and coding effectiveness.
During the positioning process, acquiring distance information is a crucial step for smartphones. However, challenges arise in obtaining reliable distance information due to factors like indoor multipath and human obstruction. Even though we utilize the smartphone’s internal microphone for signal reception, its quality is compromised by the presence of the phone case. The signal received is inferior to that obtained by using the custom-made microphone. To enhance the reliability of distance measurement, we have devised coarse detection and fine detection techniques. During the coarse detection stage, we employ a combination of spectral subtraction and MF-backtracking to ascertain the approximate starting position of the receiving signal. During the fine detection stage, we combine the multi-threshold grouping method with normalization techniques to enhance the intensity of the first path and improve the accuracy of detection.
Acoustic indoor positioning technology leverages microphones and speakers for localization, and it possesses the following characteristics: Due to the relatively slower propagation speed of sound compared with radio frequencies, the synchronization requirements for achieving high-precision acoustic positioning are reduced. For location-based service providers, although deploying acoustic nodes indoors is necessary for acoustic indoor positioning technology, the affordability of commercial acoustic components is expected to enable cost-effective infrastructure investments while achieving sub-meter-level high-precision indoor positioning. For users, since microphones and speakers are standard features on handheld mobile devices, they can receive high-precision positioning services without any additional costs. These advantages have sparked an increasing interest among researchers in the field of acoustic indoor positioning technology. We also took these advantages into consideration and developed the RATBILS system. Specifically, we have conducted the following work:
(1)
We have designed an active sensing system that allows smartphones to determine their location information without requiring any additional sensors for users.
(2)
We propose a robust time-delay estimation algorithm, referred to as the coarse detection and fine detection method, which provides a reliable guarantee for accurate TDOA measurements and localization.
(3)
We have designed a FIR-MF detector for detection of encoded chirp signals transmitted by different acoustic nodes.
(4)
Our method is capable of adapting to adverse conditions such as human body occlusion and strong multipath interference through coarse and fine detection.
(5)
Our extensive experimental results demonstrate that our proposed system exhibits accuracy and robustness for smartphone localization across two real-world scenarios.

2. System Overview

2.1. Transmission Mechanism of the Acoustic Positioning System

As shown in Figure 1, we present the overall schematic diagram of the acoustic positioning system. In the localization system, multiple acoustic nodes are utilized to emit signals, and the smartphones are the receivers, where microphones are integrated. These acoustic nodes are separately placed in the room in order to achieve effective localization. In the localization system, the time of each transmitter is synchronized to the same timeline through a wireless scheduler. The wireless module in the wireless scheduler is a 433 MHz wireless module. The 433 MHz wireless module is driven through a serial port protocol. The scheduler transmits data every 2 s to synchronize all acoustic nodes. Since the speed of wireless signal propagation is 106 times that of acoustic waves, all acoustic nodes are synchronized to transmit signals on the same time axis. Our synchronization accuracy is approximately around 0.5 ms.
The hardware structure of the acoustic node is shown in Figure 2a. It mainly consists of a Field-Programmable Gate Array (FPGA), a Digital-to-Analog (DA) module, an RF module, and a speaker. At the same time, three IP cores are generated inside the FPGA: ROM IP, RF core, and timer, respectively. ROM IP is used to store fixed-pointed signals. The RF core is used to interact with the RF module and also interact with the FPGA control unit. The timer provides a clock to the FPGA control unit. The DA module is controlled by a clock to convert the digital audio signal into the analog signal, which directly drives the speaker. The hardware structure of the scheduler is shown in Figure 2b. The role of the scheduler is to generate wireless trigger signals for controlling the acoustic nodes. The RF core and timer in the scheduler have the same functionality as their corresponding modules in the acoustic node. The role of the instruction generation core is to generate instructions for the FPGA control unit, and the instructions are transmitted through the RF module. The key module in both the acoustic node and the scheduler has the functionality of starting or pausing the system.

2.2. Design of the Acoustic Signals

Chirp signals are a widely recognized source for localization due to their robustness, excellent range resolution, and simplicity. The frequency modulation of chirp signals allows the instantaneous frequency to take on different shapes, such as linear, exponential, and quadratic. In the continuous time domain, the most commonly employed modulation is linear frequency modulation. Mathematically, a linearly frequency-modulated chirp signal is defined as follows:
s ( t ) = A e j ( 2 π ( f 0 t + f c f 0 2 t 2 ) ) , 0 t T
where f 0 represents the starting frequency and f c denotes the cut-off frequency. A stands for the amplitude of the signal, while T indicates the duration of the chirp signal. Let us define k = f c f 0 . For k > 0 , the chirp signal is known as an up-chirp, whereas for k < 0 , it is referred to as a down-chirp. It is widely recognized that waveforms occupying the same frequency band but with inverse and significantly different chirp rates provide a desirable balance between frequency spectrum utilization and cross-correlation suppression.
A classical multiple access technique is CSS multiple access technology. However, the CSS multiple access technique still has certain limitations in acoustic positioning systems. The specific reasons can be summarized as follows: (1) Interference in the same frequency band: In CSS multiple access technology, both up-chirp and down-chirp occupy the same frequency band. In practical applications, utilizing the same bandwidth will reduce the distinguishability of the signals, thereby increasing the difficulty of decoding the signals emitted by acoustic nodes. (2) Far-field and near-field effects: signals emitted by acoustic nodes located at different distances, such as far-field and near-field, are difficult to differentiate due to occupying the same bandwidth. (3) Nonlinear frequency response of acoustic nodes: The frequency response of acoustic nodes demonstrates nonlinear characteristics, indicating that as the frequency increases, the amplitude of the response decreases. This nonlinearity has the potential to affect the accuracy and reliability of decoding schemes that rely on time-frequency analysis. To address the simultaneous requirements of coding and positioning functionality, we have designed a new coding scheme called frequency division multiplexing-chirp spread spectrum (FDM-CSS), as shown in the following Figure 3.
An FDM-CSS signal frame consists of a preamble portion used for positioning and a portion used for acoustic node encoding, as shown in Figure 3. FDM-CSS has a frame structure similar to traditional CSS signals but differs from CSS technology in two aspects. Firstly, the preamble portion has a larger time-bandwidth product compared with the encoding portion, allowing the preamble to have stronger positioning capabilities. Additionally, the frequency band ranges of the preamble and encoding portions are offset. On the other hand, the encoding portion consists of multiple up-chirps and down-chirps in different frequency bands appearing alternately. The specific design concept for FDM-CSS is as follows: For each FDM-CSS signal emitted by the base station, we first determine the transmission duration T and divide T into M segments (in this paper, it is divided into three segments as shown in Figure 3, where M = 3). Subsequently, we specify the chirp signal type (down or up), as well as the start and stop frequencies for each time segment. The mathematical formula for the FDM-CSS signal specifically designed in this paper is as follows:
s ( n ) = = s p 1 ( n ) = A e j ( 2 π ( f 1 t + f 2 f 1 2 t 2 ) )                                       t 1 < n < t 2 = s p 2 ( n ) = A e j ( 2 π ( f 3 t + f 4 f 3 2 t 2 ) )                                       t 2 < n < t 3 = s p 3 ( n ) = A e j ( 2 π ( f 4 t + f 5 f 4 2 t 2 ) )                                       t 3 < n < t 4
where s ( n ) consists of s p 1 ( n ) , s p 2 ( n ) and s p 3 ( n ) . s p ( n ) is the FDM-CSS signal. s p 1 ( n ) is the preamble portion of the FDM-CSS signal. s p 2 ( n ) and s p 3 ( n ) form the coding source of the FDM-CSS signal. Our design enables FDM-CSS to meet positioning requirement without affecting acoustic node encoding.

3. Robust TOA Detection for Acoustic Positioning

We propose a robust time-delay estimation algorithm, referred to as the coarse detection and fine detection method, which provides a reliable guarantee for accurate TDOA measurements and localization. First, we record a segment of the acoustic signal. Due to the presence of low-frequency noise in the indoor environment, such as human voices and air conditioning sounds, it is necessary to design a high-pass filter with a passband frequency range from 14 k H z to 20 k H z . Next, we proceed to identify the signals emitted by the acoustic nodes, primarily utilizing the FIR-MF detector for decoding. Next, we will perform TOA estimation, with a focus on both coarse detection and fine detection. Finally, we carry out location estimation, primarily involving TDOA measurements and position calculations. As shown in Figure 4, we demonstrate the overall processing.

3.1. FIR-MF Detector for Decoding FDM-CSS Signal

The distinctive feature of FDM-CSS signals is their ability to generate compressed pulses when processed through a matched filter [42,43]. It finds extensive application in radar systems due to its optimal performance in terms of signal-to-noise ratio (SNR), effectively maximizing the output SNR. By definition, a matched filter is designed specifically to match a given signal s ( n ) . Its impulse response and frequency response are defined as follows:
h M F n = s ( n )
H M F j n w = S ( j n w )
where H M F j n w is the frequency response of the matched filter and S ( j n w ) represents the complex conjugate of the reference signal’s spectrum. The MF output is mathematically expressed as follows:
y M F n = y n h M F n
where y n is the received signal, and indicates the convolution operation. The computational complexity of this operation in the time domain corresponds to O ( log n 2 ) ; however, it could be reduced by using the equivalent in the frequency domain [44]:
y M F n = F 1 ( F ( x n ) × F ( h M F n ) )
where F and F 1 represent the fourier transform and inverse fourier transform, respectively. It is crucial to emphasize that in order to implement a fast Fourier transform (FFT) with a computational complexity reduced to O ( nlogn ) , the size of the Fourier transform should be chosen as a power of 2. Specifically, when a duplicate of the reference signal is present at the input, it will generate highly amplified autocorrelation compressed pulses at a time delay τ , resulting in prominent peaks. Conversely, it will produce lower cross-correlation peaks. So when the main FDM-CSS signal is input to a matched filter, it has the potential to generate high-amplitude compressed pulses. Based on the MF method, we have developed the FIR-MF detector to decode signals emitted from different acoustic nodes. The specific schematic diagram is shown below:
According to Figure 5, we set different parameters in the FIR parameter module to obtain different bandwidth filters in the FIR module. In this paper, based on the FDM-CSS signal configuration and number of acoustic nodes, we set a total of four FIR parameters, denoted as FIR1, FIR2, FIR3, and FIR4. In the s p memory, we pre-store the encoded signals of C1, C2, C3, and C4. p ( τ i ) is the maximum value of p ( τ ) , and the approximate position of the preamble code can be determined based on τ i . When we obtain p ( τ i ) and τ i , we can decode the signal and determine the acoustic node of the positioning source.

3.2. Robust TOA Detection in the Multipath Inference

In practical applications, reliable TDOA measurements depend on accurate TOA estimation as a prerequisite condition. Commonly, acoustic signals are reflected by walls and windows, resulting in multiple propagation paths. As a result, signals from multiple paths continuously overlap, causing the peak obtained through cross-correlation algorithms to lag behind the peak reached by the first path. Thus, the expression for the received signal, due to the accumulation of signals from multiple paths, is as follows:
y n = i = 1 l a i s n n i + Q n
where y n represents the received signal, s n represents the transmitted signal, n i represents the delay arrival time of the i t h propagation path signal, Q ( n ) represents the noise in the environment, and there are a total of l propagation paths. To further utilize the preamble of the transmitted signal for MF, we perform band-pass filtering on y n to remove the coded part. This yields the received signal in the form of the preamble, expressed as follows:
y p n = i = 1 l a i s p 1 n n i + W n
where y p n represents the received signal in the form of the preamble, s p 1 represents the preamble portion of the transmitted signal, n i represents the delay arrival time of the i t h propagation path signal, W ( n ) represents the noise in the environment, and there are a total of l propagation paths. Based on the prior knowledge of the transmitted signal, the MF output R t n between the preamble portion of the transmitted signal and y p n is as follows:
R t n = ( i = 1 l a i s p 1 n n i ) s p 1 n + W n s p 1 n
Multipath phenomena will reduce the accuracy of TOA estimation. Figure 6 shows a schematic diagram of multipath under LOS conditions, as shown in the following figure:
To accurately locate the user’s mobile, the multipath effects have to be mitigated. In this work, we developed a method that combines coarse detection and fine detection to obtain reliable TOA estimation, ultimately resulting in robust TOA measurements.

3.2.1. Coarse Detection

The purpose of coarse detection in a signal has two objectives: (1) To provide a reliable noise interval for fine detection. (2) To provide a reliable multipath interval for fine detection. Based on the two objectives, we have developed a coarse detection algorithm, which includes two steps. The spectra subtraction method and backing method are described in detail as follows:
In step 1 of coarse search, spectral subtraction refers to the article referenced as [45].
The purpose of spectral subtraction is to reduce the impact of noise on backtracking in step 2 of coarse search. Further simplifying Formula (9), we obtain Formula (10):
E R n = E s n + E W n
By performing a Fourier transform on both sides of Formula (10), we have Formula (11):
Q E R j n w = Q E s j n w + Q N ( j n w )
In the field of acoustics, researchers are more concerned with the magnitude spectrum information. We calculate the square of the magnitude spectrum for both sides of Formula (11). We have Formula (12):
Q E R j n w 2 = Q E s j n w 2 + Q N j n w 2 + 2 R e ( Q E s j n w Q N ( j n w ) )
For noise power spectral density Q N j n w 2 , we typically choose the average power spectral density of the first few frames of the received signal instead. In order to estimate Q E s j n w 2 , we assume that Q N j n w 2 + 2 R e Q E s j n w Q N j n w α Q N j n w 2 , then we have the following formula:
Q E R j n w 2 Q E s j n w 2 + α Q N j n w 2 α 1
Based on Formula (13), we let D k = Q N j n w 2 and have the following equation:
Q E s j n w 2 Q E R j n w 2 α D k           Q E R j n w 2 α D ( k ) β D k                                   Q E R j n w 2 < α D ( k )
In this article, α is set to 2, and β is set to 0.01. Next, we convert the frequency domain signal into the time domain signal, with the specific formula as follows:
F n = i f f t ( Q E s j n w e j θ )
where i f f t represents the Inverse Fast Fourier Transform, Q E s j n w represents the frequency domain magnitude, θ represents the phase of Q E R j n w , and F n represents the time domain signal. Figure 7 is the overall flowchart of spectral subtraction, as shown in the following figure:
In step 2 of coarse search, we use the backtracking method to obtain the starting time of the coarse extraction signal. In the backtracking method, we first identify the discrete time corresponding to the maximum peak value and then provide multipath interval and noise interval for fine detection through backtracking. The backtracking process is as follows:
In Algorithm 1, F ( n ) is the absolute value result after spectral subtraction. CR represents the starting time of the coarse extraction signal. The parameter t y represents the scale factor for backtracking. In both experimental scenes of this paper, t y is set to 94. In both experimental scenes of this paper, W R is the span factor of the backtracking algorithm, which is set to 400 in both experimental scenarios of this article.
Algorithm 1. Backtracking
 Input: F ( n )
 Output: C R
 1: H D = m a x ( F ( n ) ) . ( H D is the maximum value of F ( n ) )
 2: B a = a r g m a x ( F ( n ) ) . ( B a is the discrete time corresponding to the maximum value of F ( n ) .)
 3: F B a + 1 : e n d = 0 .
 4: c j = 1
 5: Backtracking search:
            for h = 1: t y
C N T = find F n > 1 ( h 1 0.01 H D )
C T ( c j ) = C N T ( e n d )
            if C T c j > 20
F C T c j 20 : e n d = 0
            end
c j = c j + 1
            end
C T = C T ( e n d : 1 : 1 ) .
C R = C T 1 W R
 6: Return: C R
According to Figure 8, it is evident that under NLOS conditions, the signal experiences a more pronounced attenuation. Furthermore, the signal near the first path is nearly completely overshadowed by noise. Therefore, we need to conduct a fine search to improve the accuracy of TOA measurements. Figure 9 shows experiments under different conditions, corresponding to the signal in Figure 8

3.2.2. Fine Search

In Algorithm 1 of coarse detection, we can obtain the coarse detection signal through the output C R . Let the coarse detection signal be R τ = R t C R : C R + 3400 . At the same time, we assume R i is the result of taking the absolute value of R τ . Due to the effects of multipath and human body blocking, the strength of the first path of the signal is not always the maximum value. Therefore, the classical method for detecting the TOA is the threshold method. However, a single threshold method is not applicable to all positions in the same scene. Therefore, this paper proposes improvements based on the threshold method. The classical threshold method for detecting the TOA is as follows:
T O A = a r g m i n R τ T H R · max ( R τ )
where R τ is the result of MF. T H R is the threshold. In the classical threshold method, the threshold is a fixed value. Based on the classical threshold method, we divide the fine search method into the following two steps:
Step 1: Multiple threshold grouping. In article [44], the author proposes that the use of a multi-threshold method can yield peaks at different time indices and categorize these peaks into different groups. However, the author incorporates all potential first paths of each group into the localization process, which increases the complexity of localization. Additionally, the article also points out that if the signal is strongly influenced by reverberation, the number of groups will be greater. In article [46], the author utilizes the formula ± F S B to reflect the width of the main lobe after MF ( F S represents the sampling rate, B represents the bandwidth of the signal), which reflects the aggregation of MF output results in ideal conditions. Combining the two facts, we have developed a multi-threshold grouping method. First, we set a range for the threshold T H R in Equation (16), T H R [ p r : δ : 1 ] . By gradually increasing T H R from p r to 1 with a fixed step size δ , we can obtain a time series called T q n , where n = 1, 2, …, 1 p r δ + 1 . In other words, T q n is a discrete time series related to TOA estimation. Due to the effects of multipath and human body obstruction, the received signal exhibits certain clustering characteristics after MF processing, as shown in Figure 10. If peaks gather together, we consider them to belong to the same group. Subsequently, as shown in Equation (17), we can derive a time difference sequence I V n , which captures the time interval between consecutive time indices of T q n .
I V n = T q n + 1 T q n                       n = 1 ,   2 1 p r δ
From the analysis of Figure 10, it is evident that T q n can be divided into several groups. The fundamental reason for the existence of multiple clusters is due to multipath and human body blockage effects. The specific, detailed process of step 1 is shown in Algorithm 2.
Algorithm 2. Multiple Threshold Grouping
 Input: R i .
 Output: GD.
 1: Set threshold T H R ( T H R [ p r : δ : 1 ] ) ).
 2: Set δ = 0.01 .
 3: ρ = m a x ( R i ) .
 4: Find T q n = a r g m i n R i T H R n ρ , n = 1, 2, ..., 1 p r δ + 1 .
 5: Group decision:
      (1)
Set variable GD = 1, GD represents the number of the group.
      (2)
for n = 1: 1 p r δ
I V n = T q n + 1 T q n ;
             end for
             for n = 1:   1 p r δ 1
             if I V n   <   T B
i n d e x i n   B e l o n g s   t o   g r o u p   G D ;
                    else
GD = GD + 1;
T q n + 1   B e l o n g s   t o   g r o u p G D ;
                    end if
      end for
In Algorithm 2, R i is the coarse extraction result obtained based on C R and R t n . GD is the number of groups. T B represents the basis for grouping. We further define TB as follows:
T B = × F S B
where F S represents the sampling rate and is set to 48 kHz in this paper. B represents the bandwidth of the signal, which is set to 3 kHz in this paper. represents the adjustment factor and is set to 1.5, which reflects the maximum aggregation degree of each group. When = 1.5 and TB = 24, it meets the actual grouping requirements. When is smaller, there will be more groups, which will increase the computational complexity. When is larger, there will be fewer groups, which will reduce the accuracy of TOA estimation. In the two scenarios of this paper, the p r is set to 0.06. If the p r is set too high, it may miss the first path. If the p r is set too low, such as 0.02, it may introduce noise. The experiment shows that the 0.06 is good.
In Figure 10, the multiple threshold method can extract the time series Tq(n), and the red asterisk in the Figure 10 is represented by R i T q ( n ) . It is obvious that under NLOS condition, the red asterisk can be divided into more groups. Meanwhile, we can also clearly see that the red asterisks are more concentrated in LOS condition. For T q ( n ) , the maximum value of n is 1 p r δ + 1 , and in this article, the maximum value of n is set to 95. So there are a total of 95 red asterisks. The horizontal axis of the red asterisk is T q ( n ) . The vertical axis of the red asterisk is R i T q ( n ) .
Step 2: Normalization. In both article [33] and article [47], the authors have proposed the concept of normalization. However, their normalization was not performed based on the coarse extraction. When the noise segment length is very large, the first path intensity cannot be highlighted. We follow the principle of normalization to normalize the grouped sequences. By performing normalization, the SNR of each sequence group can be reflected. We assume there are k sequences in the j t h group, with the first sequence corresponding to time t m 1 j and the k t h sequence corresponding to time t m k j . Then we have the following definitions:
N R ( j ) = R i ( t m k j ) m e a n ( R i ( 1 : t m 1 j ) )
where m e a n ( R i ( 1 : t m 1 j ) ) is the average of R i at 1 τ t m 1 j and N R ( j ) represents the ratio of the maximum value of the j t h group to the noise level. In line-of-sight (LOS) conditions, if the estimated TOA is located in the j t h group, the maximum value of the j t h group should be much larger than the noise level. However, due to human blockage and the influence of strong multipaths, the N R ( j ) of the j t h group where the first path is located is reduced. According to Figure 11, we can observe that the first path is enhanced, regardless of whether it is under LOS or NLOS conditions. However, we still need to set an appropriate threshold to detect the first path. So the threshold parameter λ i ( i = 1,2 ) is set based on the threshold estimation experiment.
  T O A = a r g m a x N R > λ 1 × max N R           G D l y   a r g m a x ( N R > λ 2 × m a x ( N R ) )         G D > l y
where GD is the number of the group and l y is the upper limit for grouping under LOS conditions. We can determine l y through the experiment.

4. Localization Algorithm and Error Evaluation

4.1. Robust TDOA Measurement

The benefits of the TDOA-based positioning system have been described previously. For n acoustic nodes, we can obtain n TOAs. So we can obtain n − 1 TDOAs by the following formula:
T D O A j = T O A j + 1 T O A 1 0.3 s × j j = 1,2 , 3 n 1
where T O A 1 is the TOA corresponding to the signal transmitted by acoustic node 1. T O A j + 1 is the TOA corresponding to the signal transmitted by acoustic node j + 1 . T D O A j is the TDOA corresponding to the signals transmitted by acoustic node 1 and acoustic node j + 1 .

4.2. TDOA-Based Localization Algorithm

In our research, we conducted two experiments for static positioning to comprehensively assess the proposed algorithm’s performance. In the static positioning experiment, we utilized the localization error (LE), which is calculated based on Formula (22), as a metric to evaluate the accuracy of positioning.
L E = x x 2 + y y 2
where LE is the positioning error, ( x , y ) is the true position, and ( x , y ) is the estimation. The accuracy of positioning indirectly indicates the robustness of the TDOA detection algorithm. Although the least squares method provides an optimal solution, it ignores the influence of noise and lacks high accuracy in practical applications. Therefore, we use the maximum likelihood (ML) [48] algorithm as a localization algorithm. Without loss of generality, let us assume there are M + 1 acoustic nodes, denoted as S 1 , S M + 1 . We will select S 1 as the reference sensor. The received signals in the reference and other sensors are employed to extract M TDOA measurements by local processing. TDOA measurement can be easily converted to RDOA measurement given the signal propagation speed. Then we have the following formula:
R D O A i 1 = U S i U S 1
where U is the position of the smartphone and S i is the position of the acoustic node i . Owing to measurement noise, the observed RDOA is represented by R D O A i 1 = R D O A i 1 + n i 1 . Collecting all RDOA measurements yields in matrix form:
R D O A = R D O A + n
where R D O A = [ R D O A 1 , , R D O A m ] T , and R D O A and n are defined similarly. The noise matrix n is defined as a zero-mean Gaussian distributed matrix with covariance Q . The ML estimator of U can be expressed as follows:
U M L = a r g m i n ( R D O A H D ) T Q 1 ( R D O A H D )
D = [ U S 1 , , U S M + 1 ] T
H = [ 1 M E M ]
where 1 M and E M represent column matrix of all ones with length of M and identity matrix of size M × M , respectively. The solution corresponding to Equation (25) can be obtained by using the Gauss–Newton method [49] to solve the ML problem. One of the advantages of using the ML algorithm is its ability to easily detect abnormal localization results, making it sensitive to measurement noise.

5. Experiment

To evaluate the performance of the proposed TDOA detection method, we conducted experiments in two different typical indoor environments. Our experiments had three main objectives: (1) to determine the threshold parameters of the proposed signal detection algorithm; (2) to compare the performance of the proposed signal detection algorithm with the single-threshold method in indoor environments with multipath and NLOS propagation; (3) to highlight the robustness of the proposed algorithm compared with the traditional threshold method. In summary, through these experiments, our aim is to verify the robustness and practicality of the proposed algorithm in indoor environments.

5.1. Basic Parameters of the Experiment

In the experiment, four acoustic nodes were designed, and each node was equipped with a different encoding signal. As shown in the previous Figure 3, we need to pre-set parameters such as f 1 , f 2 , f 3 , and f 4 , the frequency parameter design of the FDM-CSS signal is shown in Table 1. In Table 2, We define ρ t 1 = t 2 t 1 , ρ t 2 = t 3 t 2 , and ρ t 3 = t 4 t 3 . Table 1 below shows the frequency parameters of FDM-CSS signals. Table 2 below shows the time parameters of FDM-CSS signals.
In two experimental scenarios, the acoustic node deployment shape is rectangular. In scenario 1, the coordinates of the four acoustic nodes are (0.0 m, 0.0 m, 2.13 m), (0.0 m, 4.8.m, 2.13 m), (4.8 m, 0.0 m, 2.13 m), and (4.8 m, 4.8 m, 2.13 m). In scenario 1, the height of the smartphone is 1.13 m. In scenario 2, the coordinates of the four acoustic nodes are (0.0 m, 0.0 m, 2.13 m), (0.0 m, 6.4 m, 2.13 m), (7.9 m, 0.0 m, 2.13 m), and (7.9 m, 6.4 m, 2.13 m). In scenario 2, the height of the smartphone is 1.13 m. The deployment diagram of the actual scenario 2 is shown in Figure 12.
According to the description of the fine search algorithm, we need to determine three thresholds ( E T P = l y , L E R = λ 1 , and E R = λ 2 ). To determine a reliable threshold E T P , we conducted signal group detection tests under LOS conditions. We choose to deploy acoustic node 1 and acoustic node 3 in a corridor environment, as shown in Figure 13.
Between the two acoustic nodes, we select seven test points to collect data. We can obtain TDOA measurement and signal grouping information at each test point. At different test points, the grouping information is shown in Figure 14:
In Figure 14a, the smartphone is placed on a stand without any obstructions. In Figure 14b, the experimenter holds the smartphone, with acoustic node 3 in NLOS condition and acoustic node 1 in LOS condition. Although acoustic node 1 in both Figure 14a,b is in the LOS, Figure 14b involves a person holding the phone, and it is not under the same time conditions, which results in different experimental samples. Therefore, the group averages differ. As for the definition of E T P , we defined it in the paper as E T P = l y . E T P can be used to distinguish the state of the signal, LOS or NLOS state. We can refer to the explanation in Equation (20). In Figure 14a, we calculated the average value, and the GD is less than or equal to 3. In Figure 14b, we calculated the average grouping, and under LOS conditions, most of the sample groups are less than or equal to 3. In the NLOS condition, the majority of groups are greater than 3. Additionally, even if a small portion of LOS samples are classified as NLOS, it will not have a significant impact on the actual TOA estimation because the normalization threshold in the NLOS state is smaller. The more groups there are, the smaller the required normalization threshold. In summary, there is no contradiction. So we will set E T P to 3 based on practical applications. After determining E T P , we determine L E R . We found that setting different thresholds for L E R (between 0.1 and 0.4) did not result in significant changes in the LOS condition.
From Table 3, we can observe that when LER is greater than or equal to 0.2, the range measurement error tends to stabilize. In practical applications, we set LER = 0.3. After determining L E R , we determine E R . By setting different values for ER and comparing the ranging accuracy, we can determine the optimal value for ER.
According to Figure 15, we can observe that the RDOA measurement error is relatively small when the ER is set to 0.1 or 0.2. At the same time, we also found that when ER is set to 0.3 or 0.4, the measurement error of RDOA from test point 1 to test point 5 is relatively small, while the measurement error of RDOA is particularly large at test points 6 and 7. To ensure the robustness of RDOA measurements, we set the ER to 0.2 in the experiments.

5.2. Experimental Results and Analysis

5.2.1. Performance Comparison of Different TDOA Detection Methods

To highlight the robustness of the TDOA detection algorithm in this paper, we present the TDOA measurement results for scenario 1. We compare the algorithm proposed in this paper with three traditional TDOA detection methods. Assuming the speed of sound is 340 m/s, a TDOA measurement error of 1 ms corresponds to a ranging error of 0.34 m. It is noteworthy that TDOA measurement can be easily converted to range difference of arrival (RDOA) measurement given the signal propagation speed. Therefore, TDOA and RDOA are used interchangeably throughout this paper.
Figure 16 corresponds to the schematic diagram of scene 1. In scene 1, we performed data collection at a total of 13 test points. These 13 testing points were further categorized into two distinct regions, namely region 1 and region 2. It is evident that the acoustic signal in region 2 is significantly affected by more pronounced obstruction and multipath effects, primarily due to the closer proximity of the testing point to the wall. We collected data 50 times at each test point, and there were human occlusion conditions during each data collection process. To compare the accuracy of different TDOA detection algorithms, we first performed RDOA measurements on the test points in region 1 of scene 1. The average RDOA measurement error was then used to evaluate the performance of different detection algorithms.
According to Figure 17 and Figure 18, the statistical results show that in region 1 of scene 1, the maximum measurement errors of the traditional threshold-based method are 1.27 m and 2.83 m, respectively, while the maximum error of the direct matching maximum value method reaches 12.36 m. However, when using the algorithm proposed in this paper, the errors are all below 0.5 m. In region 1 of scene 1, all the test points are located within the coverage of the acoustic nodes. The acoustic signals are mainly influenced by factors such as multipath and human obstruction, leading to significant ranging errors when using traditional algorithms. In region 1 of scene 1, if the ranging errors for all three RDOA measurements are within 1 m, there will be no abnormal positioning results. On the other hand, when the ranging errors are all less than 0.5 m, we consider it excellent ranging results. However, if all ranging errors exceed 1 m, there may be abnormal positioning results. Furthermore, the ranging error in this study is also dependent on the length and bandwidth of the source signal (i.e., time-bandwidth product). A larger time-bandwidth product corresponds to higher ranging accuracy. In the FDM-CSS signal, we select the signal with the maximum time-bandwidth product as the positioning source (i.e., the signal corresponding to the time interval ρ t 1 ). This statistical result validates the robustness of the proposed algorithm. The RDOA measurement error mainly originates from factors such as multipath and non-line-of-sight conditions. Traditional algorithms lack the ability to accurately detect changes in the intensity of the first path, leading to considerable discrepancies in RDOA measurement errors across various time intervals and test points. On the other hand, the algorithm proposed in this paper achieves an error below 0.5 m for all test points in region 1 of scene 1, which further confirms its effectiveness in enhancing the intensity of the first path. To further illustrate the robustness of our algorithm, we conducted experiments at different test points in region 2 of scene 1 and provided a CDF (Cumulative Distribution Function) statistical graph:
According to Figure 19 and Figure 20, the CDF statistical results indicate that the proposed algorithm yields RDOA measurement errors predominantly within 0.7 m at the 92% percentile. The MF-0.2 method closely follows, exhibiting RDOA measurement errors within 2.3 m at the 92% percentile. Meanwhile, the employment of the MF-0.3 method results in RDOA measurement errors within 3.9 m at the 89% percentile. Notably, the largest RDOA measurement errors occur when utilizing the MF-max method, with errors within 4 m at the 80% percentile. The algorithm proposed in this article involves coarse detection and fine detection, specifically designed to address multipath and human occlusion with a high degree of precision. In region 2 of scene 1, all test points are located near the wall. Consequently, the conventional algorithm’s measurement error in RDOA would increase. Furthermore, the absorption of sound wave energy by the wall can also impact the accuracy and stability of the detection process. Additionally, factors such as phone cases and human obstructions can diminish the strength of the first path, posing challenges for reliable first-path detection when using traditional algorithms. Based on the CDF statistical results, it is evident that the algorithm proposed in this paper performs comparably well in terms of accuracy and robustness when compared with traditional algorithms, specifically in region 2 of scene 1. The utilization of the proposed algorithm ensures a harmonious trade-off between accuracy and stability in all RDOA measurements, thereby substantiating the suitability of the proposed approach. Although the algorithm proposed in this article may lead to RDOA measurement errors of up to 1 m, we believe that it could be attributed to a lower ratio between the strength of the first path and the noise intensity during the normalization stage, resulting in occasional missed detections of the first path. However, reliable positioning results can still be achieved by measuring multiple different RDOAs. Subsequently, in the following section, we will provide a detailed explanation of this phenomenon through quantifiable indicators related to the positioning result.

5.2.2. Performance Analysis of Localization under Different Detection Methods

In the positioning experiment, we employed a classical ML algorithm for two specific reasons. Firstly, when dealing with RDOA measurements that exhibit significant errors, the resulting positioning values tend to approach infinity. This characteristic provides a basis for evaluating the proposed algorithm in this paper. Secondly, the ML algorithm offers higher accuracy compared with other variations of the least squares method. Since the experimental scenario in this paper is relatively small, the initial values have minimal impact on the accuracy of ML positioning. So we choose the center point of the region as the initial value for the ML algorithm. The primary objective of the positioning experiment is to assess the robustness of the TDOA detection algorithm proposed in this paper. Thus, the application of the ML positioning algorithm is more suitable. In this paper, if there are more than 8 abnormal positioning results, we consider the average positioning error to be infinite. If the number of abnormal positions is less than 8, we will exclude the abnormal positioning results and then calculate the average positioning error. The positioning outcomes for scenario 1 can be observed in Table 4.
According to Table 4, the statistical results indicate that the proposed algorithm exhibits positioning errors in region 1 and region 2 of 0.23 m and 0.56 m at the 92% percentile, respectively. By applying the threshold method, the maximum positioning errors in region 1 and region 2 increase to 1.31 m and 2.07 m, respectively. However, it should be noted that the MF-max detection method produces abnormal results, with positioning outcomes approaching infinity in certain indicators. Nevertheless, the proposed TDOA detection algorithm in this paper demonstrates better performance than traditional algorithms in various positioning indicators, thanks to its utilization of both coarse and fine detection techniques. Consequently, when employing the ML positioning algorithm, all positioning indicators surpass those of conventional algorithms. In scene 1, the positioning indicators in region 1 outperform those in region 2. This difference can be attributed to the fact that all test points in region 2 are situated near walls, resulting in more severe multipath and non-line-of-sight interference for the signals collected at these points. Furthermore, due to the ML positioning algorithm’s sensitivity to large-ranging errors, significant errors can cause the positioning results to approach infinity. These observations provide practical evidence supporting the robustness of the proposed TDOA detection algorithm. The experimental results from scene 1 further confirm the algorithm’s reliability. To further validate its effectiveness, positioning experiments were conducted at 20 test points in scene 2, as depicted in Figure 21. For each test point, 50 valid audio data samples were collected, and the average positioning results were calculated and listed in Table 5. The outcomes in Table 5 provide additional evidence supporting the algorithm’s robustness, as described in this paper. It is anticipated that these findings will hold true in other smaller-scale scenarios. However, notable positioning errors still persist in scene 2. For instance, at test point 3, the proposed algorithm yielded a positioning error of 1.26 m. This can be attributed to strong noise interference during certain moments, which makes the detection of the first path more challenging.

6. Conclusions

In this article, we have designed a robust acoustic localization system. The encoding scheme we designed is simple, and decoding only requires basic filtering and matching operations. The frequency used in this study is much higher than the frequency of environmental noise. However, the accuracy and stability of TDOA measurements are influenced by multipath effects and human obstruction, and the traditional threshold method cannot provide robust TDOA measurements. To address this issue, we have adopted a combined coarse detection and fine detection method to improve the robustness and reliability of the system. The proposed method significantly enhances the robustness of TDOA detection compared with the traditional threshold method. Additionally, we conducted static positioning experiments in two scenes, and the results demonstrate that the proposed method outperforms two traditional threshold methods in terms of positioning accuracy and robustness. However, there are still some issues that need to be addressed in future research:
(1)
Large-scene smartphone positioning: Our acoustic nodes are easy to deploy, and we have the ability to achieve positioning in large indoor spaces. However, there is a problem of the near–far effect in large indoor spaces. We plan to overcome this problem by increasing the length of the localization source signal and using the dereverberation processing.
(2)
Dynamic positioning: An acoustic signal is susceptible to doppler effects. This issue is something we need to address in the future. We plan to choose methods in the field of communication, such as carrier frequency offset compensation.
(3)
Switching between dynamic positioning and static positioning: When performing the positioning function, the user may be in a stationary state or in a moving state. In moving state, we can use the extended Kalman filter to improve positioning accuracy. We plan to use TOA information to detect movement distance and determine whether it is stationary.
(4)
Adaptive extraction of valid acoustic data segments: this article does not study the adaptive extraction method. However, signals from acoustic nodes can be encoded and decoded, which provides the possibility for adaptive extraction.

Author Contributions

Conceptualization, B.C. and Y.H.; methodology, B.C.; software, B.C.; validation, B.C.; formal analysis, B.C. and C.Z.; investigation, B.C. and Y.H.; resources, B.C.; data curation, B.C.; writing—original draft preparation, B.C.; writing—review and editing, B.C., C.Z. and Y.H.; visualization, B.C.; supervision, B.C. and Y.H.; project administration, B.C.; funding acquisition, B.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors gratefully acknowledge the valuable suggestions and the support from the UNIP (Ubiquitous Navigation and Indoor Positioning) Groups directed by Liang Chen of Wuhan University.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Dang, Y.; Benzaïd, C.; Yang, B.; Taleb, T.; Shen, Y. Deep-ensemble-learning-based GPS spoofing detection for cellular-connected UAVs. IEEE Internet Things J. 2022, 9, 25068–25085. [Google Scholar] [CrossRef]
  2. Li, X.; Li, X.; Jiang, Z.; Xia, C.; Shen, Z.; Wu, J. A unified model of GNSS phase/code bias calibration for PPP ambiguity resolution with GPS, BDS, Galileo and GLONASS multi-frequency observations. GPS Solut. 2022, 26, 84. [Google Scholar] [CrossRef]
  3. Kee, C.; Yun, D.; Jun, H. Precise calibration method of pseudolite positions in indoor navigation systems. Comput. Math. Appl. 2003, 46, 1711–1724. [Google Scholar] [CrossRef]
  4. Mehmood, H.; Tripathi, N.K.; Tipdecho, T. Seamless switching between GNSS and WLAN based indoor positioning system for ubiquitous positioning. Earth Sci. Inform. 2015, 8, 221–231. [Google Scholar] [CrossRef]
  5. Liu, M.; Cheng, L.; Qian, K.; Wang, J.; Wang, J.; Liu, Y. Indoor acoustic localization: A survey. Hum. Centric Comput. Inf. Sci. 2020, 10, 2. [Google Scholar] [CrossRef]
  6. Gu, Y.; Lo, A.; Niemegeers, I. A survey of indoor positioning systems for wireless personal networks. IEEE Commun. Surv. Tutor. 2009, 11, 13–32. [Google Scholar] [CrossRef]
  7. Ninh, D.B.; He, J.; Trung, V.T.; Huy, D.P. An effective random statistical method for Indoor Positioning System using WiFi fingerprinting. Future Gener. Comput. Syst. 2020, 109, 238–248. [Google Scholar] [CrossRef]
  8. Singh, N.; Choe, S.; Punmiya, R. Machine learning based indoor localization using Wi-Fi RSSI fingerprints: An overview. IEEE Access 2021, 9, 127150–127174. [Google Scholar] [CrossRef]
  9. Faragher, R.; Harle, R. Location fingerprinting with bluetooth low energy beacons. IEEE J. Sel. Areas Commun. 2015, 33, 2418–2428. [Google Scholar] [CrossRef]
  10. Molina, B.; Olivares, E.; Palau, C.E.; Esteve, M. A multimodal fingerprint-based indoor positioning system for airports. IEEE Access 2018, 6, 10092–10106. [Google Scholar] [CrossRef]
  11. Liu, W.; Jia, M.; Deng, Z.; Qin, C. Mhsa-ec: An indoor localization algorithm fusing the multi-head self-attention mechanism and effective csi. Entropy 2022, 24, 599. [Google Scholar] [CrossRef]
  12. Senevirathna, N.M.; De Silva, O.; Mann, G.K.; Gosine, R.G. Asymptotic Gradient Clock Synchronization in Wireless Sensor Networks for UWB Localization. IEEE Sens. J. 2022, 22, 24578–24592. [Google Scholar] [CrossRef]
  13. Li, D.; Wang, X.; Chen, D.; Zhang, Q.; Yang, Y. A precise ultra-wideband ranging method using pre-corrected strategy and particle swarm optimization algorithm. Measurement 2022, 194, 110966. [Google Scholar] [CrossRef]
  14. Wu, Y.; Kuang, J.; Niu, X. Wheel-INS2: Multiple MEMS IMU-Based Dead Reckoning System With Different Configurations for Wheeled Robots. IEEE Trans. Intell. Transp. Syst. 2022, 24, 3064–3077. [Google Scholar] [CrossRef]
  15. Bai, N.; Tian, Y.; Liu, Y.; Yuan, Z.; Xiao, Z.; Zhou, J. A high-precision and low-cost IMU-based indoor pedestrian positioning technique. IEEE Sens. J. 2020, 20, 6716–6726. [Google Scholar] [CrossRef]
  16. Cai, C.; Hu, M.; Cao, D.; Ma, X.; Li, Q.; Liu, J. Self-deployable indoor localization with acoustic-enabled IoT devices exploiting participatory sensing. IEEE Internet Things J. 2019, 6, 5297–5311. [Google Scholar] [CrossRef]
  17. Peng, C.; Shen, G.; Zhang, Y. BeepBeep: A high-accuracy acoustic-based system for ranging and localization using COTS devices. ACM Trans. Embed. Comput. Syst. (TECS) 2012, 11, 1–29. [Google Scholar] [CrossRef]
  18. Nasri, N.; Rached, M.; Chenini, S.; Kachouri, A. 3d indoor localization through a wireless acoustic sensor networks. Prog. Electromagn. Res. B 2018, 81, 123–139. [Google Scholar] [CrossRef]
  19. Kim, K.; Wang, S.; Ryu, H.; Lee, S.Q. Acoustic-based position estimation of an object and a person using active localization and sound field analysis. Appl. Sci. 2020, 10, 9090. [Google Scholar] [CrossRef]
  20. Kardous, C.A.; Shaw, P.B. Evaluation of smartphone sound measurement applications. J. Acoust. Soc. Am. 2014, 135, EL186–EL192. [Google Scholar] [CrossRef]
  21. Nawaz, H.; Tahir, A.; Ahmed, N.; Fayyaz, U.U.; Mahmood, T.; Jaleel, A.; Gogate, M.; Dashtipour, K.; Masud, U.; Abbasi, Q. Ultra-low-power, high-accuracy 434 MHz indoor positioning system for smart homes leveraging machine learning models. Entropy 2021, 23, 1401. [Google Scholar] [CrossRef] [PubMed]
  22. Zhang, L.; Chen, M.; Wang, X.; Wang, Z. TOA estimation of chirp signal in dense multipath environment for low-cost acoustic ranging. IEEE Trans. Instrum. Meas. 2018, 68, 355–367. [Google Scholar] [CrossRef]
  23. Song, X.; Wang, M.; Qiu, H.; Li, K.; Ang, C. Auditory scene analysis-based feature extraction for indoor subarea localization using smartphones. IEEE Sens. J. 2019, 19, 6309–6316. [Google Scholar] [CrossRef]
  24. Aguilera, T.; Aranda, F.J.; Parralejo, F.; Gutiérrez, J.D.; Moreno, J.A.; Álvarez, F.J. Noise-resilient acoustic low energy beacon for proximity-based indoor positioning systems. Sensors 2021, 21, 1703. [Google Scholar] [CrossRef] [PubMed]
  25. He, Y.; Wang, W.; Mottola, L.; Li, S.; Sun, Y.; Li, J.; Jing, H.; Wang, T.; Wang, Y. Acoustic Localization System for Precise Drone Landing. IEEE Trans. Mob. Comput. 2023, 23, 4126–4144. [Google Scholar] [CrossRef]
  26. Qiu, Y.; Li, B.; Huang, J.; Jiang, Y.; Wang, B.; Huang, Z. An Analytical Method for 3-D Sound Source Localization Based on a Five-Element Microphone Array. IEEE Trans. Instrum. Meas. 2022, 71, 7504314. [Google Scholar] [CrossRef]
  27. Manamperi, W.; Abhayapala, T.D.; Zhang, J.; Samarasinghe, P.N. Drone audition: Sound source localization using on-board microphones. IEEE/ACM Trans. Audio Speech Lang. Process. 2022, 30, 508–519. [Google Scholar] [CrossRef]
  28. Wang, S.; Yang, P.; Sun, H. Sound Source Localization Indoors Based on Two-Level Reference Points Matching. Appl. Sci. 2022, 12, 9956. [Google Scholar] [CrossRef]
  29. Famili, A.; Stavrou, A.; Wang, H.; Park, J.-M. idrop: Robust localization for indoor navigation of drones with optimized beacon placement. IEEE Internet Things J. 2023, 10, 14226–14238. [Google Scholar] [CrossRef]
  30. Xu, S.; Chen, R.; Guo, G.; Li, Z.; Qian, L.; Ye, F.; Huang, L.; Liu, Z. IALoc: Audio Chirp based Indoor Tracking System–Free from IMU Sensors Dependence. IEEE Internet Things J. 2023, 11, 6171–6184. [Google Scholar] [CrossRef]
  31. Lin, X.; Chen, R.; Huang, L.; Liu, Z.; Niu, X.; Guo, G.; Li, Z.; Qian, L. ChirpTracker: A Precise-Location-Aware System for Acoustic Tag Using Single Smartphone. IEEE Internet Things J. 2023, 11, 848–862. [Google Scholar] [CrossRef]
  32. Chen, C.; Ren, Y.; Liu, H.; Chen, Y.; Li, H. Acoustic-sensing-based location semantics identification using smartphones. IEEE Internet Things J. 2022, 9, 20640–20650. [Google Scholar] [CrossRef]
  33. Cai, C.; Zheng, R.; Li, J.; Zhu, L.; Pu, H.; Hu, M. Asynchronous acoustic localization and tracking for mobile targets. IEEE Internet Things J. 2019, 7, 830–845. [Google Scholar] [CrossRef]
  34. Malik, S.; O’Sullivan, C.; Reddyhoff, T.; Dini, D.; Holmes, A.S. An Acoustic 3-D Positioning System for Robots Operating Underground. IEEE Sens. Lett. 2022, 6, 6003504. [Google Scholar] [CrossRef]
  35. Nakamura, M.; Hashizume, H.; Sugimoto, M. Simultaneous localization and communication method using short-time and narrow-band dual-carrier acoustic signals. IEEE Sens. J. 2021, 22, 5163–5172. [Google Scholar] [CrossRef]
  36. Lee, J.; An, J.; Ra, H.-I.; Kim, K. Long-range acoustic communication using differential chirp spread spectrum. Appl. Sci. 2020, 10, 8835. [Google Scholar] [CrossRef]
  37. Bernard, C.; Bouvet, P.-J.; Pottier, A.; Forjonel, P. Multiuser chirp spread spectrum transmission in an underwater acoustic channel applied to an AUV fleet. Sensors 2020, 20, 1527. [Google Scholar] [CrossRef] [PubMed]
  38. Schott, D.J.; Gabbrielli, A.; Xiong, W.; Fischer, G.; Höflinger, F.; Wendeberg, J.; Schindelhauer, C.; Rupitsch, S.J. Asynchronous chirp slope keying for underwater acoustic communication. Sensors 2021, 21, 3282. [Google Scholar] [CrossRef] [PubMed]
  39. Yu, Q.; Wang, H.; Lu, Z.; An, S. Group-based CSS modulation: A novel enhancement to LoRa physical layer. IEEE Wirel. Commun. Lett. 2022, 11, 660–664. [Google Scholar] [CrossRef]
  40. Marquet, A.; Montavont, N.; Papadopoulos, G.Z. Investigating theoretical performance and demodulation techniques for LoRa. In Proceedings of the 2019 IEEE 20th International Symposium on “A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Washington, DC, USA, 10–12 June 2019; pp. 1–6. [Google Scholar]
  41. Pasolini, G. On the LoRa chirp spread spectrum modulation: Signal properties and their impact on transmitter and receiver architectures. IEEE Trans. Wirel. Commun. 2021, 21, 357–369. [Google Scholar] [CrossRef]
  42. Milewski, A.; Sedek, E.; Gawor, S. Amplitude Weighting of Linear Frequency Modulated Chirp Signals. In Proceedings of the 2007 IEEE 15th Signal Processing and Communications Applications, Eskisehir, Turkey, 11–13 June 2007; pp. 1–4. [Google Scholar]
  43. Chung, W.C.; Ha, D. An accurate ultra wideband (UWB) ranging for precision asset location. In Proceedings of the IEEE Conference on Ultra Wideband Systems and Technologies, Reston, VI, USA, 16–19 November 2003; pp. 389–393. [Google Scholar]
  44. Choi, J.; Kim, J.; Kim, N.S. Robust Time-Delay Estimation for Acoustic Indoor Localization in Reverberant Environments. IEEE Signal Process. Lett. 2017, 24, 226–230. [Google Scholar] [CrossRef]
  45. Youngberg, J.E.; Petersen, T.L.; Boll, S.F.; Cohen, E. Suppression of acoustic noise in speech using spectral subtraction. IEEE Trans. Acoust. Speech Signal Process. 1979, 27, 113–120. [Google Scholar]
  46. Khyam, M.O.; Ge, S.S.; Li, X.; Pickering, M.R. Orthogonal Chirp-Based Ultrasonic Positioning. Sensors 2017, 17, 976. [Google Scholar] [CrossRef]
  47. Lopes, S.I.; Vieira, J.M.; Reis, J.; Albuquerque, D.; Carvalho, N.B. Accurate smartphone indoor positioning using a WSN infrastructure and non-invasive audio for TDoA estimation. Pervasive Mob. Comput. 2015, 20, 29–46. [Google Scholar] [CrossRef]
  48. Luo, J.-a.; Tan, Z.-W.; Peng, D. A novel bearing-assisted TDOA-GROA approach for passive source localization. Int. J. Intell. Comput. Cybern. 2018, 11, 2–19. [Google Scholar] [CrossRef]
  49. Ljung, L.; Gunnarsson, S. Adaptation and tracking in system identification—A survey. Automatica 1990, 26, 7–21. [Google Scholar] [CrossRef]
Figure 1. Acoustic positioning system for a smartphone.
Figure 1. Acoustic positioning system for a smartphone.
Sensors 24 06332 g001
Figure 2. Hardware frame diagram (a) Acoustic node hardware architecture; (b) Scheduler hardware architecture.
Figure 2. Hardware frame diagram (a) Acoustic node hardware architecture; (b) Scheduler hardware architecture.
Sensors 24 06332 g002
Figure 3. Frequency division multiplexing-chirp spread spectrum (FDM-CSS).
Figure 3. Frequency division multiplexing-chirp spread spectrum (FDM-CSS).
Sensors 24 06332 g003
Figure 4. Flowchart of TDOA-based positioning.
Figure 4. Flowchart of TDOA-based positioning.
Sensors 24 06332 g004
Figure 5. The schematic diagram of FIR-MF detector.
Figure 5. The schematic diagram of FIR-MF detector.
Sensors 24 06332 g005
Figure 6. MF result within LOS condition and weak multipath.
Figure 6. MF result within LOS condition and weak multipath.
Sensors 24 06332 g006
Figure 7. Spectral subtraction flowchart.
Figure 7. Spectral subtraction flowchart.
Sensors 24 06332 g007
Figure 8. Coarse detection result in different conditions (a) Coarse detection result within LOS condition; (b) Coarse detection result within NLOS condition.
Figure 8. Coarse detection result in different conditions (a) Coarse detection result within LOS condition; (b) Coarse detection result within NLOS condition.
Sensors 24 06332 g008
Figure 9. Experiment in different conditions (a) Experiment within LOS condition; (b) Experiment within NLOS condition.
Figure 9. Experiment in different conditions (a) Experiment within LOS condition; (b) Experiment within NLOS condition.
Sensors 24 06332 g009
Figure 10. Multiple threshold extracting results in different conditions (a) Multiple threshold extracting results within LOS condition (red asterisk represents R i T q ( n ) ); (b) Multiple threshold extracting results within NLOS condition (red asterisk represents R i T q ( n ) ).
Figure 10. Multiple threshold extracting results in different conditions (a) Multiple threshold extracting results within LOS condition (red asterisk represents R i T q ( n ) ); (b) Multiple threshold extracting results within NLOS condition (red asterisk represents R i T q ( n ) ).
Sensors 24 06332 g010
Figure 11. Normalized results in different conditions (a) Normalized results within LOS condition; (b) Normalized results within NLOS condition.
Figure 11. Normalized results in different conditions (a) Normalized results within LOS condition; (b) Normalized results within NLOS condition.
Sensors 24 06332 g011
Figure 12. Experiment scene 2 diagram.
Figure 12. Experiment scene 2 diagram.
Sensors 24 06332 g012
Figure 13. Threshold estimation experiment (corridor scene).
Figure 13. Threshold estimation experiment (corridor scene).
Sensors 24 06332 g013
Figure 14. Group experiments under line-of-sight conditions and non-line-of-sight conditions: (a) acoustic nodes are within LOS condition; (b) acoustic node 1 is under LOS condition, and acoustic node 3 is under NLOS condition.
Figure 14. Group experiments under line-of-sight conditions and non-line-of-sight conditions: (a) acoustic nodes are within LOS condition; (b) acoustic node 1 is under LOS condition, and acoustic node 3 is under NLOS condition.
Sensors 24 06332 g014
Figure 15. Ranging error in different ER.
Figure 15. Ranging error in different ER.
Sensors 24 06332 g015
Figure 16. Distribution of acoustic nodes and test points in experiment scene 1.
Figure 16. Distribution of acoustic nodes and test points in experiment scene 1.
Sensors 24 06332 g016
Figure 17. Average measurement error of RDOA in region 1 of scenario 1: (a) RDOA measurement average error in region 1 (using prosed method); (b) RDOA measurement average error in region 1 (using MF-max method).
Figure 17. Average measurement error of RDOA in region 1 of scenario 1: (a) RDOA measurement average error in region 1 (using prosed method); (b) RDOA measurement average error in region 1 (using MF-max method).
Sensors 24 06332 g017
Figure 18. Average measurement error of RDOA in region 1 of scene 1: (a) RDOA measurement average error in region 1 (using MF-0.2 method); (b) RDOA measurement average error in region 1 (using MF-0.3 method).
Figure 18. Average measurement error of RDOA in region 1 of scene 1: (a) RDOA measurement average error in region 1 (using MF-0.2 method); (b) RDOA measurement average error in region 1 (using MF-0.3 method).
Sensors 24 06332 g018
Figure 19. CDF of the RDOA measurement errors in region 2 of scene 1: (a) CDF of the RDOA measurement errors in region 2 (using proposed method); (b) CDF of the RDOA measurement errors in region 2 (using MF-max method).
Figure 19. CDF of the RDOA measurement errors in region 2 of scene 1: (a) CDF of the RDOA measurement errors in region 2 (using proposed method); (b) CDF of the RDOA measurement errors in region 2 (using MF-max method).
Sensors 24 06332 g019
Figure 20. CDF of the RDOA measurement errors in region 2 of scene 1: (a) CDF of the RDOA measurement errors in region 2 (using MF-0.2 method); (b) CDF of the RDOA measurement errors in region 2 (using MF-0.3 method).
Figure 20. CDF of the RDOA measurement errors in region 2 of scene 1: (a) CDF of the RDOA measurement errors in region 2 (using MF-0.2 method); (b) CDF of the RDOA measurement errors in region 2 (using MF-0.3 method).
Sensors 24 06332 g020
Figure 21. Distribution of acoustic nodes and test points in experiment scene 2.
Figure 21. Distribution of acoustic nodes and test points in experiment scene 2.
Sensors 24 06332 g021
Table 1. FDM-CSS signal parameters of different acoustic nodes.
Table 1. FDM-CSS signal parameters of different acoustic nodes.
Acoustic Node f 1 f 2 f 3 f 4 f 4 f 5
node 114–17 kHz17–17.3 kHz17.5–17.3 kHz
node 214–17 kHz17.7–18 kHz18.2–18 kHz
node 314–17 kHz18.4–18.7 kHz18.9–18.7 kHz
node 414–17 kHz19.1–19.4 kHz19.6–19.4 kHz
Table 2. Time parameters of FDM-CSS signal.
Table 2. Time parameters of FDM-CSS signal.
Acoustic Node ρ t 1 ρ t 2 ρ t 3
node 130 ms10 ms10 ms
node 230 ms10 ms10 ms
node 330 ms10 ms10 ms
node 430 ms10 ms10 ms
Table 3. Average measurement error of RDOA under different LER values.
Table 3. Average measurement error of RDOA under different LER values.
Test PointLER = 0.1LER = 0.2LER = 0.3LER = 0.4
10.17 m0.15 m0.15 m0.15 m
20.24 m0.24 m0.24 m0.24 m
30.16 m0.16 m0.16 m0.16 m
40.21 m0.19 m0.19 m0.19 m
50.45 m0.23 m0.23 m0.23 m
60.68 m0.30 m0.30 m0.30 m
70.41 m0.37 m0.37 m0.37 m
Table 4. Localization results of experiment scene 1.
Table 4. Localization results of experiment scene 1.
RegionEvaluationMF-MaxMF-0.2MF-0.3Proposed
Region 1Max (m) 1.072.810.75
Mean (m) 0.290.480.17
RMSE(m) 0.400.840.23
STD(m) 0.280.690.15
92% (m) 0.811.310.23
50% (m)3.890.180.170.14
Region 2Max (m) 2.082.090.79
Mean (m) 0.670.890.31
RMSE (m) 0.841.090.36
STD (m) 0.500.620.18
92% (m) 1.372.070.56
50% (m)2.940.630.760.28
Table 5. Localization results of experiment scene 2.
Table 5. Localization results of experiment scene 2.
RegionTest PointMF-Max (m)MF-0.2 (m)MF-0.3 (m)Proposed (m)
Region 114.940.110.110.15
2 0.3
32.563.333.871.26
45.801.281.310.25
Region 252.560.210.250.15
60.310.110.100.11
72.320.110.110.11
83.180.150.170.15
Region 39 0.310.650.15
101.570.080.090.09
112.720.070.080.09
125.280.320.520.15
Region 4136.780.090.150.09
140.640.100.130.08
150.570.130.420.09
160.640.180.250.16
Region 5170.790.110.110.11
180.300.210.280.19
190.860.130.130.10
200.390.130.140.09
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cheng, B.; Huang, Y.; Zou, C. Robust Indoor Positioning with Smartphone by Utilizing Encoded Chirp Acoustic Signal. Sensors 2024, 24, 6332. https://doi.org/10.3390/s24196332

AMA Style

Cheng B, Huang Y, Zou C. Robust Indoor Positioning with Smartphone by Utilizing Encoded Chirp Acoustic Signal. Sensors. 2024; 24(19):6332. https://doi.org/10.3390/s24196332

Chicago/Turabian Style

Cheng, Bingbing, Ying Huang, and Chuanyi Zou. 2024. "Robust Indoor Positioning with Smartphone by Utilizing Encoded Chirp Acoustic Signal" Sensors 24, no. 19: 6332. https://doi.org/10.3390/s24196332

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop