Next Article in Journal
Mathematically Improved XGBoost Algorithm for Truck Hoisting Detection in Container Unloading
Previous Article in Journal
Reinforcement Learning-Based Joint Beamwidth and Beam Alignment Interval Optimization in V2I Communications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Zero-Velocity Interval Detection Algorithm for a Pedestrian Navigation System with Foot-Mounted Inertial Sensors

College of Astronautics, Nanjing University of Aeronautics and Astronautics, Nanjing 211100, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2024, 24(3), 838; https://doi.org/10.3390/s24030838
Submission received: 25 December 2023 / Revised: 15 January 2024 / Accepted: 23 January 2024 / Published: 27 January 2024
(This article belongs to the Section Navigation and Positioning)

Abstract

:
The zero-velocity update (ZUPT) algorithm is a pivotal advancement in pedestrian navigation accuracy, utilizing foot-mounted inertial sensors. Its key issue hinges on accurately identifying periods of zero-velocity during human movement. This paper introduces an innovative adaptive sliding window technique, leveraging the Fourier Transform to precisely isolate the pedestrian’s gait frequency from spectral data. Building on this, the algorithm adaptively adjusts the zero-velocity detection threshold in accordance with the identified gait frequency. This adaptation significantly refines the accuracy in detecting zero-velocity intervals. Experimental evaluations reveal that this method outperforms traditional fixed-threshold approaches by enhancing precision and minimizing false positives. Experiments on single-step estimation show the adaptability of the algorithm to motion states such as slow, fast, and running. Additionally, the paper demonstrates pedestrian trajectory localization experiments under a variety of walking conditions. These tests confirm that the proposed method substantially improves the performance of the ZUPT algorithm, highlighting its potential for pedestrian navigation systems.

1. Introduction

As the need for improved pedestrian mobility continues to grow, the focus of research has increasingly shifted toward innovative pedestrian navigation solutions. Real-time position, as facilitated by pedestrian navigation, can boost mission effectiveness and success probability in emergency rescue and single-soldier operations. Navigational precision is particularly crucial in complex indoor environments, underground parking lots, and large theaters, among others.
Presently, pedestrian navigation technology falls into three primary categories: those based on Global Navigation Satellite System (GNSS) positioning technology, those relying on pre-installed devices, and those utilizing self-contained sensors, while GNSS-based positioning technology is highly developed and widely applicable, it is difficult to maintain positioning accuracy indoors or in areas where GNSS signals are unavailable. The second approach uses signals like Ultra-Wideband (UWB) [1], Bluetooth [2], Long-Term Evolution [3], and Wi-Fi [4] to determine location. Although the accuracy is high, this method depends on the pre-installed signal transmission equipment, which can increase costs. In contrast, self-contained sensor-based positioning techniques predominantly utilize accelerometers, gyroscopes, and magnetometers to perceive pedestrian location information. This method is cost-effective, highly independent, requires no pre-installation, and is less susceptible to interference. Moreover, advancements in microelectronics have considerably improved the size and precision of these sensors, making this approach much more convenient to implement.
However, low-cost inertial measurement units (IMUs) suffer from high noise levels and poor stability over the short and long terms. These errors continuously accumulate over the course of inertial navigation [5]. Without effective noise suppression methods, these accumulated errors can rapidly become substantial, often exceeding one meter within seconds of the navigation time for consumer-grade IMUs [6]. The zero-velocity update (ZUPT) method presents a mature solution to this issue. By segmenting a pedestrian’s gait into stance and swing phases, the ZUPT method effectively reduces the inertial drift within the stance phase [7]. A pedestrian’s gait exhibits cyclical variations corresponding to the alternating movement of the legs. At specific points, one foot makes full ground contact, reducing its velocity to nearly zero, thus creating a zero-velocity interval. This interval can be exploited to correct errors and reduce the impact of error accumulation. Accurate extraction of these zero-velocity intervals is therefore crucial for the effectiveness of this algorithm. Numerous researchers have proposed a variety of methods for detecting these intervals.
Tian et al. introduced a zero-velocity detection algorithm employing multiple threshold constraints [8], while Wagstaff et al. developed an adaptive-threshold adjustment method based on recognizing a pedestrian’s motion states through inertial sensors [9]. Ma et al. proposed a technique using high-resolution pressure sensors to detect zero-velocity intervals [10]. Another type of method uses machine learning to process and classify accelerometer and gyroscope data to detect zero-velocity intervals. Common techniques include Support Vector Machines (SVMs), Random Forests [11], Convolutional Neural Networks (CNNs) [12], and Long Short-Term Memory (LSTM) [13]. For example, Shi et al. suggested a thresholdless gait sequence segmentation algorithm using LSTM networks to detect zero-velocity intervals [14]. However, these methods typically require extensive training data, which can be time-consuming.
Conversely, threshold-based detection methods often use fixed thresholds. While they are effective in identifying zero-velocity intervals during consistent pedestrian motion, the randomness of pedestrian movement can result in false positives and negatives, especially when the detection threshold does not fit the pedestrian walking speed [15]. The most common incorrect detection examples are shown in Figure 1. The length of the zero-velocity interval will adversely affect the pedestrian motion solution, especially the distance moved.
Many researchers have turned to time–frequency analysis methods to extract pedestrian gait frequencies and adaptively adjust the thresholds accordingly. For instance, Sun et al. introduced a method that involves auto-correlation of acceleration data followed by Fast Fourier Transform (FFT)-based gait frequency extraction [16]. Similarly, Tian et al. proposed a zero-velocity detection method using the Smoothed Pseudo WVD (SPWVD) to extract frequency domain information from gyroscope data, eliminating harmonics to obtain the gait frequency [17]. These techniques use time–frequency analysis to analyze pedestrian gait from inertial sensor data, effectively capturing gait frequency during movement. However, common time–frequency analysis methods, such as Short-Time Fourier Transform (STFT) [18] and the Wigner–Ville Distribution (WVD) [19], have their limitations. STFT uses a fixed window, leading to a trade-off between frequency and time resolution, resulting in lower computational accuracy [20,21]. It is difficult for the WVD to suppress crossover terms [22]. The Smoothed Pseudo Wigner–Ville Distribution (SPWVD), an improvement over the WVD, introduces window functions in both the time and frequency domains, effectively mitigating cross-term interference but at the cost of increased computational complexity.
To overcome these limitations, this paper introduces the adaptive window gait frequency-based zero-velocity detector (AWGF-ZVD). Compared with the STFT, this method adaptively adjusts the window size to better accommodate the variations in gait frequency from inertial data, thus making the algorithm more sensitive to changes in the pedestrian gait frequency. At the same time, it does not have the cross-talk problem that exists in the WVD and is simpler than the SPWVD. Compared with the fixed-threshold method, it can adapt to the changes in pedestrian gait, which improves the correct detection rate. It does not require a lot of data like machine learning methods do.
The remainder of this paper is structured as follows: Section 2 analyzes the characteristics of pedestrian gait and the frequency spectral lines; Section 3 introduces the AWGF-ZVD method and the architecture of pedestrian navigation algorithms; Section 4 presents comparative experiments on various zero-velocity detection algorithms, single-step estimation experiments, and pedestrian trajectory localization experiments to assess the proposed algorithm’s efficacy; and Section 5 summarizes the research findings.

2. Analysis

For foot-mounted inertial navigation, the phenomenon of cumulative errors caused by continuous motion is commonly observed. Therefore, dividing the human gait into two phases—the static state and the motion state—and applying corresponding error compensation methods has been proven to be an effective and feasible strategy.

2.1. Analysis of Gait Characteristics

Figure 2 presents the outputs of the y-axis gyroscope and z-axis accelerometer during a complete gait cycle under stable walking conditions in the experimental setup described above. A full gait cycle is divided into four segments: S1, zero-velocity interval, S2, and S3. For the foot equipped with inertial sensors, S1 represents the phase from the heel strike to full foot–ground contact. During this phase, the foot rotates around the y-axis, resulting in a negative output from the y-axis gyroscope. This is followed by a phase of full foot–ground contact, known as the zero-velocity interval. In this interval, the sensor output is nearly constant, indicated by the y-axis angular velocity being close to zero and the z-axis acceleration approximating gravitational acceleration. The S2 phase encompasses the period from heel lift-off to the foot leaving the ground, during which the y-axis gyroscope output remains negative. Finally, the S3 phase involves thigh swinging and forward body movement until the completion of the cycle, with the y-axis angular velocity being positive during this stage.

2.2. Analysis of the Fourier Spectrum

According to the preceding analysis, the y-axis gyroscope output can be a fair depiction of the periodic variation in the human gait. As a result, a time–frequency analysis method may be used to derive the gait frequency of the human body. Initially, several sets of data are randomly extracted from the pedestrian’s stable walking process, leading to the determination that the average walking frequency of a pedestrian is approximately 0.8 Hz. A Fourier Transform spectrum is then extracted from a 3 s output of the y-axis gyroscope data during stable walking. As demonstrated in Figure 3, the amplitude is primarily concentrated within the 0–10 Hz range. Upon magnifying this segment, the spectrum reveals several peaks, with the highest peak corresponding to a frequency of 1.67 Hz, approximately twice the human gait frequency 2 f 0 (0.82 Hz). The other peaks at frequencies of 2.53 Hz, 3.33 Hz, and 4.17 Hz correspondingly align with 3 f 0 , 4 f 0 , 5 f 0 , respectively, indicating their harmonic relationships with the fundamental gait frequency.
Therefore, the key challenge lies in extracting effective frequencies among the several peaks. Hence, this paper proposes an adaptive window-based time–frequency analysis method, which dynamically adjusts the window parameters in response to changes in the frequency domain information.

3. Methods

The method’s procedural workflow is depicted in Figure 4. Initially, the inertial measurement unit (IMU) collects data followed by the correction of biases in the data. Subsequently, a zero-velocity detection algorithm is applied to extract zero-velocity intervals from the pedestrian gait. Next, an Extended Kalman Filter (EKF) based on quaternions is used to obtain attitude information. Then, through compensation for zero-velocity errors and integral calculations, the final position and velocity information is determined. This method can improve the positioning accuracy of foot-mounted inertial navigation systems.
Unlike the current widely used data-driven methods [23,24] that often require extensive datasets for training, our method demonstrates efficacy even with smaller datasets. This not only reduces the dependence on vast data resources, but also makes our approach more accessible to a broader range of researchers with varying computational capacities.
Furthermore, a distinctive feature of our proposed algorithm is its low computational resource requirements. Unlike data-driven methods that demand significant computing power, our algorithm is designed to operate efficiently even on modest hardware configurations. This characteristic not only reduces the barrier to entry for users with limited computational resources but also makes our algorithms cost-effective solutions for a variety of applications.

3.1. The Adaptive Window Gait Frequency-Based Zero-Velocity Detector

The characteristics analyzed in Section 2.1 can be leveraged to design a zero-velocity detection algorithm. The zero-velocity detection algorithm proposed in this paper, based on frequency domain analysis, consists of two main components: firstly, a frequency analysis method using an adaptive window, which is employed to extract the gait frequency during pedestrian walking; secondly, a zero-velocity interval detection algorithm that adaptively adjusts its threshold based on the gait frequency.

3.1.1. Adaptive Window Gait Frequency Extraction Algorithm

The Fourier Transform of a continuous-time signal x ( t ) can be represented as
X f = x t · e j 2 π f t d t
where x ( t ) is the time domain signal, X ( f ) is the spectral density function of the signal, j is the imaginary unit, and f is the frequency.
However, the signal collected by the sensor is a discrete signal. After discretizing the above equation, the Discrete Fourier Transform (DFT) of the discrete signal sequence x [ n ] can be expressed as
X k = n = 0 N 1 x n · e j 2 π k n / N
where X [ k ] is the spectral density function of the discrete sequence, N is the sequence length, and k is the sequence number.
Building on this, the Short-Time Fourier Transform (STFT) method applies a window to the time domain signal and then performs the Discrete Fourier Transform (DFT) on each windowed segment. The method proposed in this paper involves extracting the pedestrian gait frequency within each window and then adaptively adjusting the window in response to variations in frequency to accommodate for the changes in the frequency domain. The workflow of this adaptive time–frequency analysis method is depicted in Figure 5 and described below.
  • We initialized the window for the time domain signal with an initial window size set to 600. We then extended the data at the boundaries of the window with zeros to enhance the frequency resolution. We then used DFT to extract the spectral lines.
  • For the spectral lines of the i-th window W i , the adaptive multiscale-based peak detection (AMPD) algorithm [25] is applied to identify the peak frequencies F p = f p e a k , 1 , f p e a k , 2 , , f p e a k , k i and their corresponding amplitudes A p = A p e a k , 1 , A p e a k , 2 ,   , A p e a k , k i . Following this, the maximum peak of the spectrum A m a x is extracted, and the frequency associated with this peak is labeled as f m a x . Its index in F p is noted as i n d e x m a x .
  • We then find the maximum value of A p with an index less than i n d e x m a x and its corresponding frequency f i . This frequency f i is considered as the pedestrian gait frequency f h u m a n , i .
  • We move to the next window W i + 1 and repeat steps 2 and 3 to obtain the gait frequency f h u m a n , i + 1 of this window; we then calculate the frequency difference of the neighboring times: Δ f h u m a n , i = f h u m a n , i + 1 f h u m a n , i . When the frequency difference satisfies Δ f h u m a n , i > γ f , the sliding window width is reduced, and when the frequency difference satisfies Δ f h u m a n , i < γ f , the sliding window width increases. Based on the pedestrian’s average walking frequency of 0.8 Hz and maximum running frequency of 5 Hz, the frequency difference threshold γ f can be set to 0.3 Hz. Then we calculate the f h u m a n , i + 1 again.
  • Repeat steps 2–4 to acquire the pedestrian gait frequency.

3.1.2. The Adaptive-Threshold Zero-Velocity Detection Method

Building upon the adaptive window frequency analysis method described in Section 3.1.1, this section reports the design of the zero-velocity detection method that utilizes an adaptive threshold based on the Generalized Likelihood Ratio Test (GLRT). The underlying principle is as follows: For the output values of the inertial sensors during walking, a x k , a y k , a z k , ω x k , ω y k , ω z k , the GLRT statistic within the sliding window can be expressed as
T k = 1 w 1 σ a 2 j = k w 1 / / 2 k + w 1 / / 2 a j g · a ¯ k a ¯ k 2 + 1 σ ω 2 j = k w 1 / / 2 k + w 1 / / 2 ω x 2 j + ω y 2 j + ω z 2 j
where w denotes the size of the window, a j = [ a x j , a y j , a z j ] T , σ a 2 and σ ω 2 are the variance of the acceleration noise and angular rate noise, respectively, g is the local gravitational acceleration 9.78 m / s 2 , and a ¯ k is the mean value of the acceleration at moment k, which can be expressed as
a ¯ k = 1 w j = k w 1 / / 2 k + w 1 / / 2 a x j a y j a z j
By setting the GLRT threshold γ k , the zero-speed detection can finally be achieved. The threshold constraint conditions are presented as follows:
H 1 T k γ k H 0 T k > γ k
In the above formula, H 1 indicates that the interval at that moment is a zero-velocity interval, whereas H 0 signifies that the interval is not a zero-velocity interval.
In the traditional detection method, the threshold is set to a fixed value, making it only suitable for determining zero-velocity intervals during steady walking. When a pedestrian’s gait is complex and variable, the accuracy of this method is low. To address this issue, the GLRT threshold γ k is set as a dynamic value that adapts to the gait frequency, thus enhancing the robustness of the algorithm.
Through conducting experiments and statistical analysis on the data collected at various gait frequencies, the optimal threshold for each gait condition can been determined. The relationship between gait frequency and threshold was modeled using linear, quadratic, and cubic spline interpolation, as illustrated in Figure 6.
According to Table 1, the cubic fit has a higher goodness of fit and a smaller Root Mean Square Error (RMSE); therefore, it was used as a fit for the threshold and gait frequency. The fitted curve representing the relationship between the threshold and gait frequency, as shown in Figure 6c, can be presented as y = a x 3 + b x 2 + c x + d , where a, b, c, and d are the fitting coefficients. In this paper, a = 12 , 499.609 , b = 105 , 547.262 , c = 68 , 955.180 , d = 12 , 312.054 .

3.2. Pedestrian Navigation Algorithm

The IMU-based pedestrian navigation method used in this paper is divided into two parts: the adaptive zero-velocity detection algorithm and the strapdown inertial navigation algorithm. The adaptive zero-velocity detection algorithm was introduced in Section 3.1. This section will introduce the strapdown inertial navigation algorithm (SINS).
The navigation algorithm designed in this study predominantly utilizes the Kalman Filter for error correction during the zero-velocity interval, facilitating updating the attitude, velocity, and position. Consequently, the algorithm operates in a two-step process: prediction and updating. The navigation coordinate system adheres to a north–east–down (NED) orientation, aligning with the local geographical coordinate framework. Upon acquisition of IMU data, the system’s attitude is determined by updating the quaternion q k as
q k = Ω ω k d t q k 1
where Ω ω k d t is the quaternion update matrix; ω k is the angular velocity at moment k; and Δ t is the sampling interval Δ t = 1 f s , where f s is the sampling frequency of the IMU. The position and velocity can be solved as follows:
p k = p k 1 + v k 1 Δ t v k = v k 1 + q k 1 a k q k 1 g Δ t
where p k is the position at moment k; v k represents the velocity at moment k; a k is the acceleration at moment k; and q k 1 a k q k 1 represents a quaternion rotation, which means that the accelerometer data a k is rotated by the orientation represented by q k 1 , thus transforming the accelerometer data a k to the navigation coordinate system.
Therefore, the state update can be expressed as
p k v k q k = p k 1 + v k 1 v k 1 + q k 1 f k q k 1 g d t Ω ω k d t q k 1 = I I d t O O I q k 1 f k q k 1 g q k 1 d t O O Ω ω k d t p k 1 v k 1 q k 1
where the state transition matrix is denoted as Φ ,
Φ = I I d t O O I q k 1 f k q k 1 g q k 1 d t O O Ω ω k d t
Subsequent updates can be performed using an Extended Kalman Filter in the zero-velocity interval. The error state vectors are defined as
δ x = δ P δ v δ ϕ ϵ b b
where δ P is the position error vector, δ v is the velocity error vector, δ ϕ is the attitude error vector, ϵ b is the gyroscope bias error, and b is the accelerometer bias error vector.
The measurement equation of this system is
δ z k = H δ x k + ν k
where δ z k is the error measurement of time k, H is the measurement matrix, and ν k is the measurement noise. When the ZVI is detected, the error vector δ z can be obtained by performing a subtraction operation between the velocity and the heading attitude calculated by the SINS and in the ZVI. In this paper, the measurement matrix can be expressed as
H = 0 3 × 3 I 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 0 1 × 3 0 1 × 3 [ 0 0 1 ] 0 1 × 3 0 1 × 3
In practical applications, the filter stability can be improved by tuning the parameters in the Extended Kalman Filter; the parameters include the state estimation covariance matrix P , the process noise covariance matrix Q , and the measurement noise covariance matrix R . In this study, P is a diagonal 15 × 15 matrix with elements
P = diag ( [ 0 3 × 3 , 0 3 × 3 , 0 3 × 3 , ( 0.1 ) 2 I 3 × 3 , ( 0.1 ) 2 I 3 × 3 ]
and Q is a diagonal 12 × 12 matrix with elements
Q = diag [ 0 3 × 3 , 0 3 × 3 , ( 1 × 10 4 ) I 3 × 3 , ( 1 × 10 4 ) I 3 × 3 ] .
R is a diagonal 4 × 4 matrix with elements R = ( 0.01   m / s 2 ) 2 I 4 × 4 . After tuning the Kalman Filter parameters, stable experimental results can be obtained for the pedestrian navigation algorithm.

4. Experiments

This section reports on the experiments designed to empirically validate the algorithm proposed in this paper. Specifically, we explore the effectiveness of the adaptive window gait frequency-based zero-velocity detection algorithm proposed in this study. In addition, we report on the experiments conducted to assess the impact of various situational factors on a pedestrian’s ability to localize and how the algorithm improves localization accuracy.

4.1. Settings

As shown in Figure 7a, the inertial measurement unit has a size of 51 mm × 36 mm × 15 mm, a weight of 20 g, and integrates the ICM-42607 inertial sensor from TDK (Tokyo, Japan), which contains a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetic sensor inside. The accelerometer range is ± 16 g, the gyroscope range is ± 2000 /s, and the sampling rate is set to 200 Hz. This module communicates with a laptop via Bluetooth, facilitating the transfer of data to the laptop for subsequent computation. The data collecting program, as shown in Figure 7b, was ran on a laptop.
Figure 8 illustrates the IMU-based inertial navigation shoe, where the IMU was affixed at the tip of the left foot. As shown in Figure 8b, the origin of the coordinate system coincides with the center of mass of the carrier. The x-axis is aligned with the longitudinal axis of the shoe, pointing forward; the y-axis is oriented along the lateral axis, pointing to the right; and the z-axis is oriented downwards, along the vertical direction. The x-axis, y-axis, and z-axis together form a right-handed orthogonal coordinate system.

4.2. Zero-Velocity Interval Detection Experiment

When the subjects walked at slow, normal, fast, and randomly varying speeds, IMU data were collected. Subsequently, a fixed-threshold zero-velocity detection method was employed to identify the zero-velocity intervals (ZVI). Figure 9 illustrates the outcomes of the zero-velocity interval detection using the fixed-threshold approach alongside the output of the y-axis gyroscope. In this depiction, a value of 1 is assigned when the algorithm detects a zero-velocity interval and 0 otherwise. The results reveal that mismatched threshold values with the current gait frequency result in intermittent detection or undersized interval delineation, highlighting the importance of precise threshold selection for accurate zero-velocity interval detection in gait analysis and related research endeavors.
Simultaneously, a zero-velocity detection was performed using the adaptive window gait frequency-based zero-velocity detection method proposed in this study, and the results are presented in Figure 10. This illustrates that the method is robust in accurately detecting the zero-velocity interval in the pedestrian’s gait in all cases. This underscores the efficacy of the proposed method in accurately detecting zero-velocity intervals in diverse gait scenarios.
To further compare the performance of our method with others, the subjects walked along the trails at speeds of 80 steps/min, 100 steps/min, 120 steps/min, and at a mixed walking pace. Subsequently, we extracted 100 gait cycles during stable walking from each condition. Table 2 presents the detection results of the two methods under these various conditions. In this context, the fixed-threshold method employs a threshold based on a reference rate of 100 steps/min.
Table 2 illustrates that when the threshold does not match the preset reference walking speed, this method is prone to false detection. However, the zero-velocity interval detection method proposed in this paper is capable of adapting to various situations.

4.3. Single-Step Detection Experiments

To further investigate the impact of excessively long or short detection times during zero-velocity detection on the localization results, we conducted an analysis of the single-step solution performance during pedestrian motion. Initially, to mitigate the gait frequency fluctuations arising at the onset and conclusion of movement, we validated our approach using the average step length during walking. Participants were instructed to walk along a straight line for 10 steps (a gait cycle contains two steps) at a specified walking speed. Subsequently, the total walking distance was measured to acquire information on the participant’s step length under various gait conditions. This procedure aimed to provide insights into the performance of the single-step solution method under different speeds.
By employing the ZUPT-aided adaptive- and fixed-threshold methods, the trajectories and walking distances of the pedestrians were computed. This allowed for the derivation of the algorithmically estimated step length. Consequently, the compensation detection error rates under different gait frequencies were obtained, as shown in Figure 11.
Under conditions of extremely slow walking (0.55 Hz), extremely fast walking (1.4 Hz), and running (1.53 Hz and 1.68 Hz), both algorithms exhibited high horizontal errors in step length estimation, surpassing 1%. Figure 12 demonstrates the results of the two algorithms for zero-speed interval detection in the running condition. During running, the duration of the zero-velocity interval is so small that the detection algorithm will most likely fail to detect the zero-velocity interval, and the fixed-threshold method performs demonstrable worse in the figure, failing to identify the zero-velocity interval almost completely. This has a large impact on the localization accuracy. The ZUPT algorithm is unable to correct the speed error in the zero-speed interval, which leads to an overly long single-step estimation, and this error accumulates rapidly over time, leading to poor localization accuracy. However, the performance of the adaptive-threshold method remained superior to that of the fixed-threshold algorithm. Particularly during extremely slow walking, the fixed-threshold method demonstrated a horizontal error rate approaching 10%. When pedestrians walked at greater speeds or running, the error of the height solved by the algorithm proposed in this paper was also smaller than that of the fixed-threshold method, indicating its inability to adapt to this particular gait condition.

4.4. Pedestrian Walking Localization Experiments

This section validates the impact of the zero-velocity detection algorithm proposed in this article on the positioning accuracy within the navigation system. Here, participants were instructed to walk along a predetermined rectangular trajectory with their walking speed varying in the following sequence: slow–normal–fast–normal–slow. The total length of the trajectory was approximately 80 m. The output of the inertial sensors fixed to the subject’s shoe whilst walking is presented in the first panel of Figure 13. The third and fourth panels in Figure 13 illustrate the zero-velocity interval detection results obtained using the conventional fixed- and adaptive-threshold zero-velocity interval detection algorithm. The fifth panel in Figure 13 presents the variation in gait frequency observed during the walking experiment performed by the participants.
The results indicate that the time–frequency analysis method proposed in this paper demonstrates a remarkable capability to effectively extract information about the gait frequency during walking. This allows the algorithm to adaptively adjust various parameters based on gait frequency changes, thus improving the accuracy of the detection method. Consequently, the integration of these insights into the algorithmic framework ensures a more accurate and reliable pedestrian navigation system.
The inertial navigation algorithm, refined with zero-velocity correction, was subsequently utilized for calculations, and its results are illustrated in Figure 14. The black line delineates the predefined trajectory. The trajectories calculated using the ZUPT-aided fixed- and adaptive-threshold ZVI detection algorithms are represented by the blue and green lines, respectively. The trajectory marked by the blue solid line reveals a noticeable computational discrepancy in the north–south direction, extending beyond 1 m. In contrast, the trajectory calculated using the adaptive algorithm is more accurate, with a horizontal error of only 0.61 m at the endpoint. The formula for calculating the positioning error, as defined in this paper, is presented as follows:
σ = p ^ p 0 s
where p ^ is the calculated endpoint coordinates, p 0 is the actual endpoint coordinates of the set trajectory, and s is the total length of the set trajectory. The experiments were repeated three times, and then we have taken the average value of the endpoint horizontal error. The navigation positioning error rate using the proposed adaptive-threshold zero-velocity detection algorithm is approximately 0.82%, while the navigation positioning error rate using the fixed-threshold zero-velocity detection method is approximately 1.13%. Based on this, the localization experiments of pedestrian walking under the four gait conditions described in Section 4.2 were carried out, and the results are shown in Table 3.
The algorithm proposed in this paper performs well under many different gaits, whereas the fixed-threshold method was insufficiently adaptable to changes in gait.

5. Conclusions

This paper introduces an adaptive zero-velocity detection algorithm based on the AWGF-ZVD method. Contrary to data-driven approaches, this method requires fewer datasets and computational resources. The algorithm adaptively adjusts the window parameters of the time–frequency analysis in response to variations in gait frequency during walking, thereby enhancing the algorithm’s adaptability to variations in gait frequency. Leveraging the relationship between pedestrian gait frequency and the optimal threshold, the algorithm adaptively modifies the threshold for zero-velocity detection, improving the accuracy of detecting zero-velocity intervals. Of note, excessive or extended detection can lead to a decrease in localization accuracy. The experimental results show that, compared to traditional methods, the algorithm proposed in this paper is more reliable in different pedestrian gait conditions. The algorithm proposed in this paper also performs better in situations such as slow walking and running, reflecting its adaptability to the movement state of pedestrians.
In the future study, we will pay close attention to the problem of smoothing the trajectory, height correction, and localization at more extreme slow speeds and running. By applying the AWGF-ZVD algorithm to the ZUPT algorithm, the algorithm can be adapted to the user’s different movement states.

Author Contributions

Conceptualization, X.W. (Xiaotao Wang) and J.L.; methodology, J.L.; software, J.L.; validation, J.L., G.X. and X.W. (Xingyu Wang); formal analysis, J.L.; investigation, X.W. (Xiaotao Wang); resources, X.W. (Xiaotao Wang); data curation, J.L., G.X. and X.W. (Xingyu Wang); writing—original draft preparation, X.W. (Xiaotao Wang) and J.L.; writing—review and editing, J.L.; visualization, J.L.; supervision, X.W. (Xiaotao Wang); project administration, J.L.; funding acquisition, X.W. (Xiaotao Wang). 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

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
IMUinertial measurement unit
ZUPTzero-velocity update
GNSSGlobal Navigation Satellite System
PNSpedestrian navigation systems
AWGF-ZVDadaptive window gait frequency-based zero-velocity detector
SINSstrapdown inertial navigation algorithm

References

  1. Yao, S.; Su, Y.; Zhu, X. High Precision Indoor Positioning System Based on UWB/MINS Integration in NLOS Condition. J. Electr. Eng. Technol. 2022, 17, 1415–1424. [Google Scholar] [CrossRef]
  2. Rodrigues, B.; Halter, C.; Franco, M.; Scheid, E.J.; Killer, C.; Stiller, B. BluePIL: A Bluetooth-based Passive Localization Method. In Proceedings of the 2021 IFIP/IEEE International Symposium on Integrated Network Management (IM), Bordeaux, France, 8–20 May 2021; pp. 28–36. [Google Scholar]
  3. Shamaei, K.; Khalife, J.; Kassas, Z.M. Performance Characterization of Positioning in LTE Systems. In Proceedings of the 29th International Technical Meeting of the Satellite Division of the Institute of Navigation (ION GNSS+ 2016), Portland, OR, USA, 12–16 September 2016; pp. 2262–2270. [Google Scholar]
  4. Taneja, A.; Rani, S.; Breñosa, J.; Tolba, A.; Kadry, S. An Improved WiFi Sensing Based Indoor Navigation with Reconfigurable Intelligent Surfaces for 6G Enabled IoT Network and AI Explainable Use Case. Future Gener. Comput. Syst. 2023, 149, 294–303. [Google Scholar] [CrossRef]
  5. Foxlin, E. Pedestrian Tracking with Shoe-Mounted Inertial Sensors. IEEE Comput. Gr. Appl. 2005, 25, 38–46. [Google Scholar] [CrossRef]
  6. Ma, M.; Song, Q.; Li, Y.; Zhou, Z. A zero-velocity intervals Detection Algorithm Based on Sensor Fusion for Indoor Pedestrian Navigation. In Proceedings of the 2017 IEEE 2nd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China, 15–17 December 2017; pp. 418–423. [Google Scholar]
  7. 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]
  8. Tian, X.; Chen, J.; Han, Y.; Yang, L.; Yin, J. Zero-Velocity Detection algorithm for pedestrian navigation with multiconditional constraints. J. Chin. Inert. Technol. 2016, 24, 1–5. [Google Scholar] [CrossRef]
  9. Wagstaff, B.; Peretroukhin, V.; Kelly, J. Improving Foot-Mounted Inertial Navigation through Real-Time Motion Classification. In Proceedings of the 2017 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sapporo, Japan, 18–21 September 2017; pp. 1–8. [Google Scholar]
  10. Ma, M.; Song, Q.; Gu, Y.; Li, Y.; Zhou, Z. An Adaptive zero-velocity Detection Algorithm Based on Multi-Sensor Fusion for a Pedestrian Navigation System. Sensors 2018, 18, 3261. [Google Scholar] [CrossRef] [PubMed]
  11. Kone, Y.; Zhu, N.; Renaudin, V.; Ortiz, M. Machine Learning-Based Zero-Velocity Detection for Inertial Pedestrian Navigation. IEEE Sens. J. 2020, 20, 12343–12353. [Google Scholar] [CrossRef]
  12. Chen, Z.; Pan, X. A Novel Zero-Velocity Detector for Pedestrian Inertial Navigation Based on Deep Learning. In Proceedings of the 2021 6th International Conference on Intelligent Computing and Signal Processing (ICSP), Xi’an, China, 9–11 April 2021; pp. 807–811. [Google Scholar]
  13. Wagstaff, B.; Kelly, J. LSTM-Based Zero-Velocity Detection for Robust Inertial Navigation. In Proceedings of the 2018 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Nantes, France, 24–27 September 2018; pp. 1–8. [Google Scholar]
  14. Shi, X.; Wang, Z.; Zhao, H.; Qiu, S.; Liu, R.; Lin, F.; Tang, K. Threshold-Free Phase Segmentation and zero-velocity Detection for Gait Analysis Using Foot-Mounted Inertial Sensors. IEEE Trans. Hum.-Mach. Syst. 2023, 53, 176–186. [Google Scholar] [CrossRef]
  15. Wang, Z.; Zhao, H.; Qiu, S.; Gao, Q. Stance-Phase Detection for ZUPT-Aided Foot-Mounted Pedestrian Navigation System. IEEE/ASME Trans. Mechatron. 2015, 20, 3170–3181. [Google Scholar] [CrossRef]
  16. Sun, B.; Wang, Y.; Banda, J. Gait Characteristic Analysis and Identification Based on the iPhone’s Accelerometer and Gyrometer. Sensors 2014, 14, 17037–17054. [Google Scholar] [CrossRef] [PubMed]
  17. Tian, X.; Chen, J.; Han, Y.; Shang, J.; Li, N. A Novel zero-velocity interval Detection Algorithm for Self-Contained Pedestrian Navigation System with Inertial Sensors. Sensors 2016, 16, 1578. [Google Scholar] [CrossRef] [PubMed]
  18. Nawab, S.; Quatieri, T.; Lim, J. Signal Reconstruction from Short-Time Fourier Transform Magnitude. IEEE Trans. Acoust. Speech Signal Process. 1983, 31, 986–998. [Google Scholar] [CrossRef]
  19. Martin, W.; Flandrin, P. Wigner-Ville Spectral Analysis of Nonstationary Processes. IEEE Trans. Acoust. Speech Signal Process. 1985, 33, 1461–1470. [Google Scholar] [CrossRef]
  20. Varanis, M.; Silva, A.L.; Balthazar, J.M.; Pederiva, R. A Tutorial Review on Time-Frequency Analysis of Non-Stationary Vibration Signals with Nonlinear Dynamics Applications. Braz. J. Phys. 2021, 51, 859–877. [Google Scholar] [CrossRef]
  21. Gabor, D. Theory of Communication. Part 1: The Analysis of Information. J. Inst. Electr.-Eng. Part III Radio Commun. Eng. 1946, 93, 429–441. [Google Scholar] [CrossRef]
  22. Kwok, H.K.; Jones, D.L. Improved Instantaneous Frequency Estimation Using an Adaptive Short-Time Fourier Transform. IEEE Trans. Signal Process. 2000, 48, 2964–2972. [Google Scholar] [CrossRef]
  23. Chen, Z.; Pan, X.; Chen, C.; Wu, M. Contrastive Learning of Zero-Velocity Detection for Pedestrian Inertial Navigation. IEEE Sens. J. 2022, 22, 4962–4969. [Google Scholar] [CrossRef]
  24. Wang, Q.; Fu, M.; Wang, J.; Sun, L.; Huang, R.; Li, X.; Jiang, Z.; Huang, Y.; Jiang, C. Free-walking: Pedestrian inertial navigation based on dual foot-mounted IMU. Def. Technol. 2023; in press. [Google Scholar] [CrossRef]
  25. Scholkmann, F.; Boss, J.; Wolf, M. An Efficient Algorithm for Automatic Peak Detection in Noisy Periodic and Quasi-Periodic Signals. Algorithms 2012, 5, 588–603. [Google Scholar] [CrossRef]
Figure 1. Incorrect detection examples when the threshold does not match the pedestrian’s speed.
Figure 1. Incorrect detection examples when the threshold does not match the pedestrian’s speed.
Sensors 24 00838 g001
Figure 2. Outputs of the z-axis accelerometer and y-axis gyroscope in the gait cycle. The solid blue line shows the z-axis accelerometer data, and the dashed red line represents the y-axis gyroscope data.
Figure 2. Outputs of the z-axis accelerometer and y-axis gyroscope in the gait cycle. The solid blue line shows the z-axis accelerometer data, and the dashed red line represents the y-axis gyroscope data.
Sensors 24 00838 g002
Figure 3. The Fourier spectral lines of the pedestrian gait.
Figure 3. The Fourier spectral lines of the pedestrian gait.
Sensors 24 00838 g003
Figure 4. The algorithm workflow.
Figure 4. The algorithm workflow.
Sensors 24 00838 g004
Figure 5. The workflow of the adaptive window gait frequency analysis method.
Figure 5. The workflow of the adaptive window gait frequency analysis method.
Sensors 24 00838 g005
Figure 6. Threshold vs. gait frequency fitting curves.
Figure 6. Threshold vs. gait frequency fitting curves.
Sensors 24 00838 g006
Figure 7. The devices used in the experiments.
Figure 7. The devices used in the experiments.
Sensors 24 00838 g007
Figure 8. The navigation shoe.
Figure 8. The navigation shoe.
Sensors 24 00838 g008
Figure 9. Zero-velocity detection results with a fixed threshold (100 steps/min baseline). The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector. The threshold of the ZVI detector is set based on 100 steps/min.
Figure 9. Zero-velocity detection results with a fixed threshold (100 steps/min baseline). The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector. The threshold of the ZVI detector is set based on 100 steps/min.
Sensors 24 00838 g009
Figure 10. Zero-velocity detection results with an adaptive threshold. The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector.
Figure 10. Zero-velocity detection results with an adaptive threshold. The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector.
Sensors 24 00838 g010
Figure 11. Results of the single-step error. The bar graph represents the average horizontal error rate for a single step, while the dotted line graph shows the average error value for a single step.
Figure 11. Results of the single-step error. The bar graph represents the average horizontal error rate for a single step, while the dotted line graph shows the average error value for a single step.
Sensors 24 00838 g011
Figure 12. Zero-velocity detection results with an adaptive threshold. The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector.
Figure 12. Zero-velocity detection results with an adaptive threshold. The black lines represent the gyroscope data of the y-axis; the red lines represent the results of the ZVI detector.
Sensors 24 00838 g012
Figure 13. The IMU outputs, ZVI detection results, and gait frequency of the participants during walking.
Figure 13. The IMU outputs, ZVI detection results, and gait frequency of the participants during walking.
Sensors 24 00838 g013
Figure 14. Results of walking along the rectanglar trajectory. The blue and green lines represent the trajectory calculated using the ZUPT-aided pedestrian navigation algorithm with the traditional fixed-threshold method and the adaptive ZVI detection algorithm, respectively. The black line is the set trajectory.
Figure 14. Results of walking along the rectanglar trajectory. The blue and green lines represent the trajectory calculated using the ZUPT-aided pedestrian navigation algorithm with the traditional fixed-threshold method and the adaptive ZVI detection algorithm, respectively. The black line is the set trajectory.
Sensors 24 00838 g014
Table 1. The fitting models.
Table 1. The fitting models.
ModelsLinearQuadraticCubic
Mathematical Equation y = a x + b y = a x 2 + b x + c y = a x 3 + b x 2 + c x + d
R-Squared0.938120.981390.9814
RMSE8157.075476.634899.75
Table 2. The results of the ZVI-detector based on fixed vs. adaptive thresholds during walking.
Table 2. The results of the ZVI-detector based on fixed vs. adaptive thresholds during walking.
Speed (steps/min)Actual ZVI NumberDetected ZVI Numbers
Fixed-Threshold 1Adaptive-Threshold
80100121100
100100100100
120100105100
Mixed100124100
1 The threshold of the fixed-threshold detector is based on 100 steps/min.
Table 3. The navigation positioning error rate using the fixed-threshold method vs. the adaptive-threshold method during walking.
Table 3. The navigation positioning error rate using the fixed-threshold method vs. the adaptive-threshold method during walking.
Gait Frequency (Hz)Adaptive-ThresholdFixed-Threshold
0.670.86%1.26%
0.830.76%0.75%
10.89%1.34%
Mixed 10.82%1.13%
1 The participants walked in a slow–normal–fast–normal–slow sequence.
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

Wang, X.; Li, J.; Xu, G.; Wang, X. A Novel Zero-Velocity Interval Detection Algorithm for a Pedestrian Navigation System with Foot-Mounted Inertial Sensors. Sensors 2024, 24, 838. https://doi.org/10.3390/s24030838

AMA Style

Wang X, Li J, Xu G, Wang X. A Novel Zero-Velocity Interval Detection Algorithm for a Pedestrian Navigation System with Foot-Mounted Inertial Sensors. Sensors. 2024; 24(3):838. https://doi.org/10.3390/s24030838

Chicago/Turabian Style

Wang, Xiaotao, Jiacheng Li, Guangfei Xu, and Xingyu Wang. 2024. "A Novel Zero-Velocity Interval Detection Algorithm for a Pedestrian Navigation System with Foot-Mounted Inertial Sensors" Sensors 24, no. 3: 838. https://doi.org/10.3390/s24030838

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