{'fraction_non_alphanumeric': 0.03217052351112646, 'fraction_numerical': 0.015345142349632407, 'mean_word_length': 4.711568268282373, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Low-Cost Foot-Placed UWB and IMU Fusion-Based Indoor Pedestrian Tracking System for IoT Applications

Among existing wireless and wearable indoor pedestrian tracking solutions, the ultra-wideband (UWB) and inertial measurement unit (IMU) sensors are the popular options due to their accurate and globally referenced positioning, and low-cost and compact size, respectively. However, the UWB position accuracy is compromised by the indoor non-line of sight (NLOS) and the IMU estimation suffers from orientation drift as well as requiring position initialization. To overcome these limitations, this paper proposes a low-cost foot-placed UWB and IMU fusion-based indoor pedestrian tracking system. Our data fusion model is an improved loosely coupled Kalman filter with the inclusion of valid UWB observation detection. In this manner, the proposed system not only adjusts the consumer-grade IMU’s accumulated drift but also filters out any NLOS instances in the UWB observation. We validated the performance of the proposed system with two experimental scenarios in a complex indoor environment. The root mean square (RMS) positioning accuracy of our data fusion model is enhanced by 60%, 53%, and 27% compared to that of the IMU-based pedestrian dead reckoning, raw UWB position, and conventional fusion model, respectively, in the single-lap NLOS scenario, and by 70%, 34%, and 12%, respectively, in the multi-lap LOS+NLOS scenario.


Introduction
With the emergence of the Internet of Things (IoT), indoor location-based services (ILBSs) to assist daily life tasks (such as smart healthcare, real-time mobility monitoring, etc.) are becoming a trending topic [1][2][3]. The key issue for ILBSs is to accurately locate the pedestrians (patients) indoors [4]. For precise pedestrian tracking, although, non-wearable vision-based solutions are available [5][6][7]; these are expensive, passive, and short-range systems [6]. Moreover, these solutions are unsafe for user privacy and sensitive to indoor light illumination and occlusion [7]. Therefore, there is a demand for affordable, compactsize, accurate, globally referenced, active, and wide-range wearable indoor pedestrian tracking solutions. To meet the target application's demands, the candidate solutions can be distributed into the globally (e.g., WiFi, Bluetooth (BLE), UWB, etc.) and locally referenced (e.g., pedestrian dead reckoning (PDR)) indoor pedestrian tracking systems [8,9]. The positioning accuracy of the WiFi and BLE is at the meter-level, and so cannot be rated as a high-precision indoor pedestrian tracking system. On the other hand, the UWB-based indoor pedestrian tracking system provides a centimeter-level positioning accuracy [10]. The UWB positioning system is generally considered a high-precision tracking solution. Nevertheless, it requires a clear line of sight (LOS) to guarantee the centimeter-level error [11,12]. For that reason, the UWB positioning accuracy drops significantly in a complex indoor environment where the UWB signal is blocked by obstacles such as furniture and building infrastructure (walls and pillars) [13]. To address the indoor NLOS problem using the UWB positioning system, numerous research schemes have been conducted. Barral et al. [14] present the machine learning-(ML) based NLOS recognition and mitigation 3 of 18 magnetometer when solving the UWB NLOS and IMU drift problems. Furthermore, these studies are limited to either revealing the robustness against the IMU drift or UWB NLOS but not both issues in the same study.
Unlike previous research works, our proposed work addresses the UWB NLOS and IMU drift issues of a low-cost foot-placed UWB and IMU module using a single estimator without the need for a magnetometer. The main contributions of this paper are summarized as follows: • We propose a low-cost foot-placed UWB and IMU fusion-based indoor pedestrian tracking system to overcome the practical limitations of UWB and IMU wearable sensors. Our data fusion model processes the valid UWB observation by inspecting the residual error to exclude any NLOS instances. As a result, it tackles the UWB's indoor NLOS and IMU's accumulated drift issues; it provides a simple but effective indoor pedestrian tracking solution for IoT applications.

•
The system hardware is built using off-the-shelf devices. We assembled a prototype of a foot-placed UWB and IMU module to shape a compact-sized battery-powered wearable IoT device, in addition to reducing its cost by up to USD 40, and to incorporate the open-platform software for facilitating the flexible data handling needs of an IoT use case with no additional expense.

•
The performance of our system is validated using a Hokuyo Lidar in comparison with an IMU-based PDR, raw UWB position, and conventional fusion model. We conducted two experimental scenarios, a single-lap NLOS and a multi-lap LOS+NLOS, in a complex indoor environment to demonstrate the robustness of our solution against the UWB indoor NLOS and IMU long-term drift.
The remainder of this paper is organized as follows. Section 2 describes the materials and methods required for our proposed system implementation including hardware, the operation principle of the UWB positioning, and the detailed structure of the proposed UWB and IMU fusion. Sections 3 and 4 present the experiment description and experiment results, respectively, of the proposed data fusion. The discussion and future work appear in Section 5. The conclusion is summarized in Section 6.

Materials and Methods
In this section, we explain our proposed system ( Figure 1) by first presenting the system hardware and data acquisition in terms of characterizing the UWB sensor, showing the design of a low-cost foot-placed module, and describing the working principle of the UWB positioning system. In the end, we illustrate the proposed UWB+IMU fusion structure in detail.   We utilized a UWB sensor network called MDEK1001 (DecaWave, Ireland) [31] to track the foot-placed UWB tag's position. The MDEK1001 development kit consists of twelve DWM1001DEV and costs about USD 199 [32], which is relatively low. Moreover, each DWM1001DEV is based on the DWM1001C chip and can be assigned to multiple operating modes such as anchor, tag, and data receiver called listener and bridge. We adopted the bridge option as it suits well the IoT application. The anchor and bridge are static devices while the tag is a movable device. The DWM1001DEV can be easily configured via an Android smartphone over BLE to specify each device's operation mode and to set up the UWB infrastructure. The currently deployed UWB infrastructure comprises four anchors and one gateway which are mounted on the ceiling and wall, respectively. Moreover, the coordinates of the four anchors are manually measured using a precise instrument, i.e., the BOSCH GLM 150C laser range finder. The four anchors perform the TWR measurements with a tag and the 3D position is calculated at the tag, similar to the concept illustrated in Section 2.1.2. The data acquisition from the UWB infrastructure is achieved by connecting a bridge with the Raspberry PI 3B+ header, which is collectively regarded as a gateway. The gateway receives the tag position over the UWB channel and publishes it over the WLAN (wireless local area network) as an MQTT (message queuing telemetry transport) message for the external use case. The MQTT message can be subscribed to the cloud anywhere with a specified message topic. The gateway topology also supports expanding the UWB coverage and forming a multi-room and multi-agent indoor tracking system [31]. In this work, all UWB sensors, i.e., six DWM1001DEV, are configured with the UWB parameters of channel 5, data rate 6.81 Mbps, PRF (pulse repetition frequency) 64 MHz, preamble length 128, and preamble code 9.
As the tag is supposed to be foot-placed, it is preferable to mount minimalistic hardware rather than a standard DWM1001DEV (dimensions = 62.0 mm × 43.0 mm). For this sake, we reclaimed a DWM1001C chip (dimensions = 26.2 mm × 19.1 mm) from the sixth DWM1001DEV and soldered the necessary pins, i.e., the power supply and firmware upload, to operate the customized DWM1001C like a standard tag. Figure 2 characterizes the UWB sensor hardware as an anchor, bridge, and customized tag.

Working Principle of UWB Positioning System
The UWB positioning system works similarly to any other wireless sensor network (WSN) [16] in which some sensors should be deployed on known coordinates and some kept floating on unknown coordinates. The sensors with known coordinates are called anchors (A ) while the sensors with unknown coordinates are called tags (T). To locate a tag in two dimensions (2D), at least three anchors are required, and locating a tag in threedimension (3D) space requires at least four anchors. Figure 3 briefly introduces the concept of a UWB positioning system to locate a tag in 3D using four anchors with known position coordinates.
Generally, the position of a tag in a UWB positioning system can be computed in three steps. Firstly, the anchors' coordinates can be measured manually using a precise

Working Principle of UWB Positioning System
The UWB positioning system works similarly to any other wireless sensor network (WSN) [16] in which some sensors should be deployed on known coordinates and some kept floating on unknown coordinates. The sensors with known coordinates are called anchors (A i ) while the sensors with unknown coordinates are called tags (T). To locate a tag in two dimensions (2D), at least three anchors are required, and locating a tag in three-dimension (3D) space requires at least four anchors. Figure 3 briefly introduces the concept of a UWB positioning system to locate a tag in 3D using four anchors with known position coordinates.  To qualify as an IoT device, our designed prototype is compact-sized, battery-powered, and capable of communicating both with fellow devices and a central computer over a wireless interface such as UWBs and WiFi, respectively. Our module, as shown in Figure  4a, is placed on the right shoe of the pedestrian. It includes a DWM1001C as the UWB tag, a D1MINI (WEMOS, China) as the WiFi transceiver, an MPU6050 (InvenSense, USA) as the IMU, and a lithium battery 650 mAh as the power source. The lithium battery is directly connected to D1MINI which further powers the DWM1001C at 3.3 V. In addition, both the DWM1001C and D1MINI can also process information onboard. The DWM1001C runs the default PANS library to measure the four anchors' ranges, and to compute and then transmit the 3D position over the UWB channel for the external use case. Meanwhile, the D1MINI executes the Arduino firmware for the acquisition of the IMU 6 degree-offreedom (DOF) data via I2C communication, initial calibration of the IMU to remove offsets caused by the manufacturing, and transmission of the calibrated 6DOF data stream over WiFi UDP (user datagram protocol) to the outer application. Figure 4b highlights the circuit diagram of the custom board to accommodate the above-mentioned tasks. The sampling rates of the UWB 3D position and the IMU 6DOF data measurements are set to 10 Hz and 100 Hz, respectively, and the lithium battery can last up to 5.30 h at these sampling rates. The IMU has a sensitivity of 8 g for the accelerometer and 2000°/s for the gyroscope. Table 1 illustrates the specifications of our module.   Generally, the position of a tag in a UWB positioning system can be computed in three steps. Firstly, the anchors' coordinates can be measured manually using a precise instrument such as a handheld laser range finder to decrease human error. Secondly, the ranges can be measured among anchors and tags using the two-way ranging (TWR) method [16]. Finally, an algebraic trilateration technique [16] can be applied to calculate the position of a tag as presented in (1) and (2).
where i is the number of anchors, i.e., i = 1, 2, 3, 4, (x i , y i , z i ) is the known coordinates of each anchor, (x U , y U , z U ), and x U , y U , z U are the unknown tag positions before and after error minimization of an algebraic trilateration technique [16], respectively. r i is the TWR measurement between each anchor and a tag. t iCycle is the time period on a tag from sending the poll message to receiving the response message, t iReply is the time period on an anchor from receiving the poll message to sending the response message, and c (= 3 × 10 8 m/s) is the speed of light. In this work, for a quick and easy integration of off-the-shelf hardware into our system, we relied on the MDEK1001 positioning and networking stack (PANS) library [31] for the UWB positioning.

Wearable IoT Device: A Low-Cost Foot-Placed UWB and IMU Module
To qualify as an IoT device, our designed prototype is compact-sized, battery-powered, and capable of communicating both with fellow devices and a central computer over a wireless interface such as UWBs and WiFi, respectively. Our module, as shown in Figure 4a, is placed on the right shoe of the pedestrian. It includes a DWM1001C as the UWB tag, a D1MINI (WEMOS, China) as the WiFi transceiver, an MPU6050 (InvenSense, USA) as the IMU, and a lithium battery 650 mAh as the power source. The lithium battery is directly connected to D1MINI which further powers the DWM1001C at 3.3 V. In addition, both the DWM1001C and D1MINI can also process information onboard. The DWM1001C runs the default PANS library to measure the four anchors' ranges, and to compute and then transmit the 3D position over the UWB channel for the external use case. Meanwhile, the D1MINI executes the Arduino firmware for the acquisition of the IMU 6 degree-of-freedom (DOF) data via I2C communication, initial calibration of the IMU to remove offsets caused by the manufacturing, and transmission of the calibrated 6DOF data stream over WiFi UDP (user datagram protocol) to the outer application. Figure 4b highlights the circuit diagram of the custom board to accommodate the above-mentioned tasks. The sampling rates of the UWB 3D position and the IMU 6DOF data measurements are set to 10 Hz and 100 Hz, respectively, and the lithium battery can last up to 5.30 h at these sampling rates. The IMU has a sensitivity of 8 g for the accelerometer and 2000 • /s for the gyroscope. Table 1 illustrates the specifications of our module.
both the DWM1001C and D1MINI can also process information onboard. The DWM1001C runs the default PANS library to measure the four anchors' ranges, and to compute and then transmit the 3D position over the UWB channel for the external use case. Meanwhile, the D1MINI executes the Arduino firmware for the acquisition of the IMU 6 degree-offreedom (DOF) data via I2C communication, initial calibration of the IMU to remove offsets caused by the manufacturing, and transmission of the calibrated 6DOF data stream over WiFi UDP (user datagram protocol) to the outer application. Figure 4b highlights the circuit diagram of the custom board to accommodate the above-mentioned tasks. The sampling rates of the UWB 3D position and the IMU 6DOF data measurements are set to 10 Hz and 100 Hz, respectively, and the lithium battery can last up to 5.30 h at these sampling rates. The IMU has a sensitivity of 8 g for the accelerometer and 2000°/s for the gyroscope. Table 1 illustrates the specifications of our module.

Proposed UWB and IMU Fusion Structure
Theoretically, the correctly initialized IMU can produce accurate state estimates after zero velocity update (ZUPT) [23]. However, it is not applicable for the consumer-grade low-cost IMU in which the errors accumulate swiftly due to the mathematical integration and small measurement biases. The globally referenced sensor such as a magnetometer is normally fused to improve the position accuracy. Still, the magnetometer is strongly influenced by indoor magnetic field interference caused by electronic appliances and needs extra calibration to match the building reference frame. In this paper, we fuse the UWB position observation with the ZUPT-assisted IMU algorithm, which is an improved loosely coupled Kalman filter (ILCKF), as we directly read the UWB position from the MDEK1001 PANS library. Figure 5 portrays the insight into the proposed UWB and IMU fusion structure. For a clear understanding of our fusion structure, we added three flow points, O1, O2, and O3, to indicate the outputs from the strap-down mechanism, ZUPT-assisted IMU, and ILCKF, respectively.
The ZUPT-assisted IMU is a fundamental approach for PDR when the IMU sensor is placed on a foot [23,34]. It mainly consists of a Kalman filter with the strap-down mechanism-assisted state propagation and ZUPT-assisted state correction stages. Figure 6 details the block diagram of a typical ZUPT-assisted IMU navigation system. fusion structure. For a clear understanding of our fusion structure, we added three flow points, O1, O2, and O3, to indicate the outputs from the strap-down mechanism, ZUPTassisted IMU, and ILCKF, respectively.
The ZUPT-assisted IMU is a fundamental approach for PDR when the IMU sensor is placed on a foot [23,34]. It mainly consists of a Kalman filter with the strap-down mechanism-assisted state propagation and ZUPT-assisted state correction stages. Figure 6 details the block diagram of a typical ZUPT-assisted IMU navigation system.

Strap-Down Mechanism
We used a set of equations that estimates the inertial navigation state of the IMU in three parts. First, it integrates the gyroscope's turn rates to calculate the orientation and rotation matrix. Second, it transforms the accelerometer's forces from the body to the earth's navigation frame and removes the earth's gravity. At last, it integrates the transformed accelerometer's forces to calculate the velocity followed by the position. The basic equation utilizing the IMU 6DOF data to compute the propagated navigation state [34] is as follows where is the time iterator, is the time differential, g = 0 0 9.81 is the gravity, ∈ ℝ are the accelerometer's forces in the body frame, ∈ ℝ are the gyroscope's turn rates, ∈ ℝ is the pedestrian's position, ∈ ℝ is the pedestrian's velocity, and ∈ ℝ is the quaternion describing the system orientation. The triple product * denotes the rotation of by , and Ω( ) is the skew-symmetric matrix of the quaternion form of angular velocity.

Strap-Down Mechanism
We used a set of equations that estimates the inertial navigation state of the IMU in three parts. First, it integrates the gyroscope's turn rates to calculate the orientation and rotation matrix. Second, it transforms the accelerometer's forces from the body to the earth's navigation frame and removes the earth's gravity. At last, it integrates the transformed accelerometer's forces to calculate the velocity followed by the position. The basic equation utilizing the IMU 6DOF data to compute the propagated navigation state [34] is as follows where k is the time iterator, dt is the time differential, g = [0 0 9.81] T is the gravity, a k ∈ R 3 are the accelerometer's forces in the body frame, w k ∈ R 3 are the gyroscope's turn rates, p k ∈ R 3 is the pedestrian's position, v k ∈ R 3 is the pedestrian's velocity, and q k ∈ R 4 is the quaternion describing the system orientation. The triple product q k−1 a k q * k−1 denotes the rotation of a k by q k , and Ω(w k ) is the skew-symmetric matrix of the quaternion form of angular velocity.
where X k ∈ R 10 is the state propagation, P k is the propagated covariance matrix, F k is the state transition matrix which can be deduced from Equation (3), and Q k is the process noise covariance matrix. σ a and σ w are the standard deviations of accelerometer and gyroscope noises, respectively. s qk s T qk represents the quaternion dynamics. 0 m×n and I m×n (m is the number of rows and n is the number of columns) are the zero and identity matrices, respectively.

ILCKF Correction Stage1: ZUPT
For the IMU's orientation drift compensation, the ZUPT is applied periodically at every stance phase detection [23] as follows stance phase = 1; when |w| ≤ ψ 0; when |w| > ψ where |w| is the magnitude of gyroscope 3DOF values and ψ is the zero velocity detection threshold. Figure 7 describes the result of stance phase detection in a red color square waveform. Now, the ILCKF correction stage for the ZUPT can be expressed aŝ whereX k is the corrected navigation state,P k is the corrected covariance matrix, and K k is the Kalman gain. 0 1×3 is the ZUPT observation value, H and R are the ZUPT observation matrix and observation noise covariance matrix, respectively, and σ v is the standard deviation of zero velocity noise. For the IMU's orientation drift compensation, the ZUPT is applied periodically at every stance phase detection [23] as follows stance phase = 1; ℎ | | ψ 0; ℎ | | ψ where | | is the magnitude of gyroscope 3DOF values and ψ is the zero velocity detection threshold. Figure 7 describes the result of stance phase detection in a red color square waveform. Now, the ILCKF correction stage for the ZUPT can be expressed as = H (H H + R) where is the corrected navigation state, is the corrected covariance matrix, and is the Kalman gain. 0 × is the ZUPT observation value, H and R are the ZUPT observation matrix and observation noise covariance matrix, respectively, and σ is the standard deviation of zero velocity noise.

ILCKF Correction Stage2: UWB Observation Update
It is understood that the UWB positioning accuracy degrades in NLOS and upgrades in LOS. Thus, to ensure the LOS condition, we checked the validity of every UWB observation by making use of the short-term accurate positioning characteristics of the IMU (Section 2.2.3). The valid UWB position detection is expressed as follows valid UWB = 1; when p u where p u k ∈ R 3 is the UWB position observation,p k ∈ R 3 is the ZUPT corrected position, p u k −p k is the absolute residual error, and is the threshold value which is also regarded as a radial distance. Figure 8 presents the block diagram of valid UWB observation detection.

ILCKF Correction Stage2: UWB Observation Update
It is understood that the UWB positioning accuracy degrades in NLOS and upgrades in LOS. Thus, to ensure the LOS condition, we checked the validity of every UWB observation by making use of the short-term accurate positioning characteristics of the IMU (Section 2.2.3). The valid UWB position detection is expressed as follows where ∈ ℝ is the UWB position observation, ̂ ∈ ℝ is the ZUPT corrected position, | ̂ | is the absolute residual error, and Ʈ is the threshold value which is also regarded as a radial distance. Figure 8 presents the block diagram of valid UWB observation detection. After the success of the UWB position validity check, the current UWB position observation is processed in the second ILCKF correction stage as stated in Equations (12)- (14).
whereX u k is the UWB corrected navigation state,P u k is the UWB corrected covariance matrix, and K u k is the UWB Kalman gain. H u and R u are the UWB observation matrix and observation noise covariance matrix, respectively, and σ u is the standard deviation of the UWB position noise. In all equations, the non-italic symbols represent the constant values and matrices.
The presence of valid UWB position detection improves the reliability of our fusion model by enabling pedestrian tracking in an NLOS-prone indoor environment. Moreover, the dependency on a simple position difference (i.e., an absolute residual error) transforms our system into a practical solution for IoT applications.

Experiment Description
This section describes the experimental setup used for the validation of the developed algorithm along with the data processing at the central computer and performance criteria.

Experimental Setup
We conducted the pedestrian tracking experiment in Room 513, Dasan Building, Gwangju Institute of Science and Technology (GIST). In our experiment, the pedestrian was a healthy male subject of 34 years of age and 1.78 m tall. Figure 9 details the experimental space which comprised furniture and a pillar, which in general is a complex indoor environment. In order to investigate the qualitative and quantitative performances of the proposed fusion scheme, we deployed a state-of-art laser sensor, a Hokuyo Lidar UTM-30LX (Japan), which has a 0.1 m-30 m range, ±30 mm accuracy from a 0.1 m-10 m range, ±50 mm accuracy from a 10 m-30 m range, a 270 • horizontal field of view, and a 25 ms scan speed. The Hokuyo Lidar was mounted on a tripod at the pedestrian's head height for easy tracking of the pedestrian's center position.   In Figure 9, the blue circles and the square are the UWB sensors, the red triangle is a Hokuyo Lidar, the large black square is a pillar, and the other icons are furniture. Furthermore, the yellow and white trajectories describe the two reference paths on which the pedestrian walked at normal walking velocity during the experiment. The yellow trajectory indicates the first experimental scenario, named the single-lap NLOS, and the addition of a white trajectory alongside the yellow trajectory formulates the second experimental scenario, called the multi-lap LOS+NLOS. More details about the experimental scenarios are provided in Section 4. Table 2 lists the coordinates needed for our setup configuration. Figure 10 shows the pedestrian's head segmentation in the Hokuyo frame with red dots and the raw point cloud with white dots. The centroid or center position of the segmented points is the desired ground truth position of the pedestrian.

Data Handling at Central Computer
The overall data processing required for our experiment setup is portrayed in Figure 11. The ROS (robot operating system) framework records data as a ROSBAG file synchronized at the central computer's clock, even though the data are streaming from three unsynchronized ROS nodes: 40 Hz for Hokuyo, 10 Hz for UWB, and 100 Hz for IMU. The Hokuyo ROS node uses the standard ROS package to access the Lidar over a USB port and publishes the ROSTOPIC /tp1. The UWB and IMU ROS nodes are based on the custom ROS packages. In detail, the UWB ROS node subscribes to the tag 3D position coordinates as an MQTT message from the gateway and publishes the ROSTOPIC /tp2. In addition, the IMU ROS node receives the 6DOF data stream over WiFi UDP and publishes the ROSTOPIC /tp3. Afterward, the recorded ROSBAG file is played for post-analysis of the proposed UWB+IMU fusion under the two experimental scenarios.

Data Handling at Central Computer
The overall data processing required for our experiment setup is portrayed in Figure  11. The ROS (robot operating system) framework records data as a ROSBAG file synchronized at the central computer's clock, even though the data are streaming from three unsynchronized ROS nodes: 40 Hz for Hokuyo, 10 Hz for UWB, and 100 Hz for IMU. The Hokuyo ROS node uses the standard ROS package to access the Lidar over a USB port and publishes the ROSTOPIC /tp1. The UWB and IMU ROS nodes are based on the custom ROS packages. In detail, the UWB ROS node subscribes to the tag 3D position coordinates as an MQTT message from the gateway and publishes the ROSTOPIC /tp2. In addition, the IMU ROS node receives the 6DOF data stream over WiFi UDP and publishes the ROSTOPIC /tp3. Afterward, the recorded ROSBAG file is played for post-analysis of the proposed UWB+IMU fusion under the two experimental scenarios.

Performance Criteria
We selected four criteria-the 2D trajectory, root mean square error (RMSE), cumulative distribution function (CDF), and box plot-to investigate the pedestrian tracking performance of our fusion model in comparison with the IMU-based PDR [23], raw UWB position [31], and conventional fusion [26] algorithms. The positioning errors are calculated based on the RMSE criterion, but after transforming the ground truth position from the Hokuyo frame to the UWB global frame. It should be noted that to extract the realistic positioning error, we shifted the estimated position by 0.1 m (displacement between pedestrian's head and foot) towards the ground truth position at every stance phase instance. In a box plot, the inner red line and floating red plus of the blue box specify the median and mean values, while the bottom and top edges of the blue box indicate the positioning errors of 25% and 75%, respectively. The outer black whiskers of the blue box

Performance Criteria
We selected four criteria-the 2D trajectory, root mean square error (RMSE), cumulative distribution function (CDF), and box plot-to investigate the pedestrian tracking performance of our fusion model in comparison with the IMU-based PDR [23], raw UWB position [31], and conventional fusion [26] algorithms. The positioning errors are calculated based on the RMSE criterion, but after transforming the ground truth position from the Hokuyo frame to the UWB global frame. It should be noted that to extract the realistic positioning error, we shifted the estimated position by 0.1 m (displacement between pedestrian's head and foot) towards the ground truth position at every stance phase instance. In a box plot, the inner red line and floating red plus of the blue box specify the median and mean values, while the bottom and top edges of the blue box indicate the positioning errors of 25% and 75%, respectively. The outer black whiskers of the blue box show the minimum and maximum errors.
We used MATLAB R2018A (MathWorks, USA) for the implementation and analyses. During initialization, the noise parameters are tuned as σ a =0.001 m/s 2 , σ w =0.01 rad/s, σ v =0.001 m/s, and ψ = 0.6 rad/s for the ZUPT-assisted IMU propagation and update, and σ u = 0.2 m and = 3σ u for the UWB position update.

Experiment Results
This section validates and discusses the performance of the proposed system through experimental results under two scenarios.

Single-Lap NLOS Scenario
In this scenario, we revealed the performance of the proposed system mainly under the UWB NLOS situation. To emulate the severe NLOS phenomena in an indoor environment, we considered a path passing by the building infrastructure such as a pillar of 0.75 m × 0.75 m thickness. As a pedestrian crosses the pillar, the UWB anchors, i.e., A3 and A4, are subjected to the UWB signal blocking which ultimately creates an NLOS phenomenon. Figure 9 displays this scenario with a yellow trajectory where the NLOS region is indicated by an overlapped black trajectory. The pedestrian starts walking near the yellow arrow and walks for one lap in a counterclockwise direction. Figure 12 details the visual comparison among the PDR in the cyan line, the UWB positioning system (UWB) in the blue line, the conventional UWB+IMU fusion (CONV.) in the green line, the proposed UWB+IMU fusion (OUR) in the red line, and the Hokuyo reference system in the dotted black line. The PDR trajectory is smooth but has an orientation drift even in a single lap, while the UWB depicts a large error in the NLOS region. On the other hand, the CONV. achieves a slightly improved trajectory compared to the UWB in the NLOS region, but still shows a diverted tail during the NLOS recovery region. Overall, OUR accomplishes a smooth trajectory in both regions, i.e., with and without the NLOS phenomenon. This signifies that the addition of the valid UWB observation detection produces high-precision pedestrian tracking compared to the other three algorithms. The CDF of the positioning errors among all the algorithms is visualized in Figure 13. At the 95th percentile, the UWB, PDR, CONV., and OUR exhibit errors of 1.45 m, 0.80 m, 0.65 m, and 0.40 m, respectively. Figure 14 presents the box plot of the positioning errors for the four algorithms to highlight the mean, median, and extreme points of the positioning errors. It can be deduced from Figure 14 that the UWB shows the worst performance and OUR reflects the best performance. Table 3 states the positioning errors quantitatively as 2D, X-axis, Y-axis, mean, median, and maximum errors. Both Figure 14 and Table 3 depict a similar performance trend where OUR reflects the smallest maximum error compared to the other three algorithms.
In summary, our UWB+IMU fusion accomplishes a more enhanced performance in a complex indoor space than that of the algorithms without the valid UWB observation: 53% and 27% better than raw UWB and conventional fusion models, respectively. It could also be concluded that when the UWB observation is corrupted or the UWB signal is lost in the NLOS region, the proposed fusion model successfully rejects the corrupted UWB observation by trusting the IMU position estimation.
the four algorithms to highlight the mean, median, and extreme points of the positioning errors. It can be deduced from Figure 14 that the UWB shows the worst performance and OUR reflects the best performance. Table 3 states the positioning errors quantitatively as 2D, X-axis, Y-axis, mean, median, and maximum errors. Both Figure 14 and Table 3 depict a similar performance trend where OUR reflects the smallest maximum error compared to the other three algorithms.   the four algorithms to highlight the mean, median, and extreme points of the positioning errors. It can be deduced from Figure 14 that the UWB shows the worst performance and OUR reflects the best performance. Table 3 states the positioning errors quantitatively as 2D, X-axis, Y-axis, mean, median, and maximum errors. Both Figure 14 and Table 3 depict a similar performance trend where OUR reflects the smallest maximum error compared to the other three algorithms.

Multi-Lap LOS+NLOS Scenario
This scenario emphasizes the evaluation of the robustness of the proposed system for longer distances, especially against the IMU's accumulated drift under mixed surrounding situations. For this sake, we emulated a lengthier path just by increasing the same path repetition up to four laps for LOS white trajectory and three laps for NLOS yellow trajectory, as shown in Figure 9. The pedestrian walks non-stop in both trajectories successively and starts walking near the white arrow in a counterclockwise direction. The distance covered in each lap of the LOS white trajectory and NLOS yellow trajectory was about 20 m and 10 m, respectively, so, collectively the pedestrian walked for 110 m, i.e., (4 laps × 20 m) + (3 laps × 10 m). Figure 15 presents the comparative 2D position of the trajectories among the various algorithms, similarly to Figure 10. It can be seen that all of the algorithms have similar trajectories except the PDR. Moreover, the UWB position has a consistent and repeatable accuracy throughout the four laps of the LOS trajectory; on the other hand, due to the NLOS situation in the three laps of the NLOS trajectory, the UWB data have considerable noise. The fusion of UWB and IMU sensors significantly enhanced the pedestrian tracking performance in both LOS and NLOS situations, but OUR outperforms the CONV. due to the valid UWB observation detection. Figure 16 shows the comparative CDF of positioning errors among all of the algorithms. Evidently, OUR achieves a 0.45 m positioning error compared to the 1.63 m of the PDR at the 95th percentile. Figure 17 provides a box plot to visualize the mean, median, and extreme values of the positioning errors. Table 4 illustrates the quantitative values in terms of 2D, X-axis, Y-axis, mean, median, and maximum errors. According to Figure 17 and Table 4, the IMU-based PDR is the only algorithm to reveal the larger error values of all performance criteria in contrast with the UWB, CONV., and OUR. errors. According to Figure 17 and Table 4, the IMU-based PDR is the only algorithm to reveal the larger error values of all performance criteria in contrast with the UWB, CONV., and OUR.

Discussion and Future Work
To address the UWB NLOS and IMU accumulated drift problems, the existing footplaced solutions for indoor pedestrian tracking usually depend on involving quality-grade expensive hardware [23], ML-based NLOS detection and mitigation [14], and more than one estimator alongside a magnetometer [25,29,30]. This ultimately increases the system's cost and complexity and makes it susceptible to indoor magnetic field interference. The goal of this work was to develop a low-cost foot-placed UWB+IMU fusion-based indoor pedestrian tracking solution that can overcome the UWB's indoor NLOS and consumergrade IMU's accumulated drift in the long term. The proposed system was evaluated by computing the RMS positioning errors using the pedestrian's ground truth position obtained from the state-of-the-art Hokuyo Lidar with a ±30 mm accuracy. The pedestrian tracking experiment, comprising of two scenarios, was conducted in a complex indoor environment by walking on the predefined trajectories. Furthermore, the qualitative and quantitative performances were validated in comparison with the three algorithms: IMUbased PDR [23], raw UWB position [31], and conventional fusion model [26]. With the two experimental scenarios, we justified that the IMU estimation helps to select the valid UWB observation which further corrects the long-term IMU accumulated drift. Eventually, the proposed system accomplished the RMS positioning error of 0.29 ± 0.03 m.
Thanks to the off-the-shelf hardware and open-platform software ROS and Arduino, our system can be deployed with a low cost and easy accessibility for accurate indoor pedestrian tracking IoT applications. In addition, the inclusion of the UWB positioning system brings the advantage of actively tracking the pedestrians in a building reference frame at a centimeter-level accuracy. At the same time, the need for special infrastructure is a downside of using the UWB positioning system. So far, the developed system was tested for room-scale single-unit pedestrian tracking in a mixed LOS+NLOS indoor environment. However, in narrow corridors and crowded areas, the pedestrian tracking accuracy using our system might drop due to the long-interval blocking of the UWB signal and the severity of the NLOS situation compared to inside the rooms. In the future, we would like to extend our current work by considering dynamic NLOS situations in more complex and realistic indoor environments as well as the consumer-grade IMU parameters uncertainties. We will optimize the sampling rates of IMU and UWB data acquisition to prolong the battery life by reducing power consumption. Moreover, we want to scale up the coverage area of the UWB sensor network to multiple units and track multiple pedestrians by incorporating the MDEK1001 suggested topology as portrayed in Figure 18. Ultimately, we envision our wearable IoT device to be a part of future smart shoes that can track the patients' walking patterns and automatically diagnose and prevent gait-related issues in real time.

Conclusions
In this paper, we proposed a low-cost foot-placed UWB and IMU fusion-based indoor pedestrian tracking system. Our system fused the off-the-shelf UWB and consumergrade IMU sensors to simultaneously counter their practical limitations such as the UWB's indoor NLOS and IMU's accumulated drift problems in a complex indoor environment. It was validated from the two experimental scenarios that the proposed system achieved a superior performance of 53% better than the raw UWB position in the NLOS situation, and 70% better than the IMU-based PDR in the long run. We expect that our outcomes can contribute to the adaption of low-cost wearables in the accurate and intelligent monitoring of pedestrians for indoor IoT applications.

Conclusions
In this paper, we proposed a low-cost foot-placed UWB and IMU fusion-based indoor pedestrian tracking system. Our system fused the off-the-shelf UWB and consumer-grade IMU sensors to simultaneously counter their practical limitations such as the UWB's indoor NLOS and IMU's accumulated drift problems in a complex indoor environment. It was validated from the two experimental scenarios that the proposed system achieved a superior performance of 53% better than the raw UWB position in the NLOS situation, and 70% better than the IMU-based PDR in the long run. We expect that our outcomes can contribute to the adaption of low-cost wearables in the accurate and intelligent monitoring of pedestrians for indoor IoT applications.

Data Availability Statement:
The data presented in this study are available from the corresponding author upon reasonable request.

Conflicts of Interest:
The authors declare that there are no conflict of interest.