Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Precision improvement for indoor positioning based on fuzzy inference system with ultra-wideband wireless communications

  • Shu-Hung Lee,

    Roles Conceptualization, Formal analysis, Investigation, Methodology, Validation, Writing – original draft, Writing – review & editing

    Affiliation School of Intelligent Manufacturing and Automotive Engineering, Guangdong University of Business and Technology, Zhaoqing, China

  • Shu-Wai Chang,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Software, Validation, Writing – original draft

    Affiliation Department of Information and Communication Engineering, Chaoyang University of Technology, Taichung, Taiwan

  • Yung-Fa Huang ,

    Roles Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Supervision, Validation, Writing – original draft, Writing – review & editing

    yfahuang@cyut.edu.tw (YFH); yhsheu@nfu.edu.tw (YHS)

    Affiliation Department of Information and Communication Engineering, Chaoyang University of Technology, Taichung, Taiwan

  • Yung-Hoh Sheu

    Roles Formal analysis, Funding acquisition, Project administration, Resources, Supervision, Validation, Visualization, Writing – review & editing

    yfahuang@cyut.edu.tw (YFH); yhsheu@nfu.edu.tw (YHS)

    Affiliation Department of Computer Science and Information Engineering, National Formosa University, Yunlin County, Taiwan

Abstract

This paper investigates the enhancement of positioning accuracy in indoor non-line-of-sight (NLOS) environments using ultra-wideband (UWB) and angle of arrival (AoA) technologies. It examines the application of moving average filters and the adaptive offset cancellation (AOC) method in known target’s location area scenario. Furthermore, this study evaluates the performance of positioning accuracy using various input membership functions in fuzzy inference systems for aera recognition in unknown target’s location area situation, in conjunction with the AOC method. Experimental results show that the AOC method effectively reduces positioning errors by an average of 29.38 cm across twelve test points when the area where the target is located are known, achieving an error reduction to within 20 cm. In cases where target’s location area is unknown, the fuzzy inference system using fuzzy triple std as input membership function achieves an average regional recognition accuracy of 95.68%, outperforming other methods. The proposed fuzzy inference combined with AOC (FAOC) method improves the average positioning error by 40.9% compared to the original positioning method, reducing from 69.03 cm to 44.48 cm.

1. Introduction

With the development of smart cities and Internet of Things (IoT) technologies, there is a high demand for indoor positioning services. Positioning refers to the process of estimating the location of mobile devices or individuals relative to their surrounding working area during motion. In outdoor environments, GPS (Global Positioning System) is a highly effective technology for locating mobile devices or personnel in activities such as driving navigation and drone positioning. GPS is a satellite-based technology that provides accurate information on the longitude, latitude, and altitude of any location on Earth. Current-ly, outdoor positioning systems have an error margin of approximately 5–10 meters [1]. However, in indoor environments, the signal weakening caused by shadowing fading and multipath effects can significantly decrease positioning accuracy, limiting the utility of GPS for indoor positioning purposes [2].

In order to provide reliable indoor positioning, various ground-based wireless communication systems have been explored for indoor positioning technologies. Common indoor positioning technologies include Wi-Fi and Bluetooth technologies widely used in any connected mobile terminals for positioning [37], ZigBee [8], as well as architecture modified through Radio Frequency Identification (RFID) [9] to not only provide identification but also target location information [10,11]. Although these wireless communication standards were designed for purposes other than positioning and ranging, they can still be utilized for positioning at the cost of certain performance limitations such as shorter distances, low or moderate accuracy, and limited detectability coverage. Unlike traditional positioning technologies that rely on signal strength received by target objects to meet in-door high-precision requirements, Ultra-Wideband (UWB) positioning technology com-pliant with the IEEE 802.15.4–2011 standard is a novel short-range, high-rate wireless communication technology [1214]. It employs ultra-low duty cycle impulse pulses as the information carrier using carrier-free spread spectrum technology. Characterized by high temporal resolution, strong anti-interference capabilities, and wide bandwidth, it can achieve centimeter-level positioning accuracy [15], and is gradually being applied in the high-precision positioning field [16].

Ultra-Wideband (UWB) positioning methods commonly include Received Signal Strength Indication (RSSI), Two-Way Time-of-Flight (TW-ToF), Time of Arrival (ToA), Time Difference of Arrival (TDoA), and Angle of Arrival (AoA) [17]. These methods offer various techniques for estimating distances and determining transmitter locations. RSSI measures the power of received signals, with signal strength inversely proportional to distance [1820]. RSSI estimates location through triangulation by analyzing the signal strength received by readers. [21,22]. However, it is sensitive to environmental factors like obstacles and interference, limiting its precision in high-accuracy applications. This technology relies on existing empirical propagation models [23], with more complex models needed for higher precision. TW-ToF calculates distance using the round-trip time of signals between a transmitter and receiver, offering higher accuracy and lower costs but facing challenges in environments with high latency or multipath effects [24]. The ToA method measures the time between transmission and reception of a signal to estimate distance. It requires precise clock synchronization but is heavily impacted by multipath effects, making it complex to implement in real-world environments [25,26]. TDoA, on the other hand, uses multiple receivers to measure the time differences in signal arrival, allowing for high-precision positioning with minimal interference. However, it demands synchronized receivers and increased hardware, adding complexity and cost [27,28]. Lastly, AoA estimates the transmitter’s location by measuring the angle at which signals arrive, often using antenna arrays. While it provides high precision and performs well in multipath environments, AoA accuracy depends heavily on environmental factors like antenna layout and blockage [29,30].

Although UWB has higher positioning accuracy, UWB signals are susceptible to reflection, diffraction, and obstruction during transmission, resulting in weakened signals. Additionally, multipath interference and non-line-of-sight (NLOS) conditions can also cause significant errors in positioning results. Recent advancements in the field have further highlighted the critical need for robust NLOS mitigation strategies. Comprehensive surveys [31,32] indicate that while UWB remains a dominant technology for high-precision indoor localization, current research trends are shifting towards integrating adaptive algorithms to handle environmental uncertainties [33]. Notably, contemporary studies have successfully demonstrated the efficacy of hybrid approaches that incorporate fuzzy logic for NLOS identification and mitigation, proving that fuzzy-based inference remains a powerful tool for enhancing robustness in complex multipath environments [34,35]. This paper will investigate the performance of moving average (MA) filtering and Adaptive Offset Cancellation (AOC) to reduce positioning errors in NLOS environments using a UWB combined with AOA positioning method. However, in practical applications, the location of the tag is unknown. Therefore, we propose a fuzzy inference system (FIS) to infer the location of the tag and conduct detailed research and analysis on the positioning errors after combining with AOC.

The primary motivation of this work is to address the dual challenge in practical UWB/AoA positioning: mitigating NLOS-induced errors when the target zone is known, and accurately identifying the target zone when it is unknown. To this end, the novelty of this paper is threefold: (1) We propose the Adaptive Offset Cancellation (AOC) method to compensate for systematic positioning errors in known target zones. (2) We introduce a novel fuzzy inference system utilizing a “fuzzy triple standard deviation” input membership function, which is tailored to handle the biased and overlapping coordinate distributions in NLOS settings, for high-accuracy area recognition when the target zone is unknown. (3) We integrate these two components into a unified FAOC (Fuzzy-AOC) framework, which first identifies the target zone and then applies zone-specific error compensation, demonstrating significant overall positioning accuracy improvement in real-world-like scenarios. Moreover, the proposed FAOC framework is designed to be compatible with existing commercial UWB hardware and can be integrated into current indoor positioning systems with minimal software adaptation, facilitating its practical deployment in real-world applications.

The remaining part of this paper is outlined as follows: Section 2 discusses the related materials and methods. Section 3 focuses on the application of adaptive offset cancellation for improving positioning error. Section 4 addresses the use of fuzzy inference system for indoor area recognition. Finally, Section 5 presents the conclusions.

2. Materials and methods

2.1 Ultra-wideband and wireless channel model

Ultra-Wideband (UWB) technology is characterized by its broad frequency range, spanning from 3.1 GHz to 10.6 GHz, as defined by international standards. This extensive spectrum allows for the further division of UWB into two sub-bands: the low-frequency band (3.1 GHz to 4.8 GHz) and the high-frequency band (6.5 GHz to 10.6 GHz). The low-frequency band plays a key role in UWB applications, particularly in indoor environments [36]. Signals within this range can penetrate obstacles with greater depth, making them ideal for indoor positioning and short-range communication. Additionally, UWB signals in the low-frequency band help mitigate the impact of multipath fading, enhancing the reliability of both communication and positioning systems. On the other hand, the high-frequency band is used primarily for high-speed data transmission and radar applications. It offers higher transmission rates, enabling faster data speeds and greater bandwidth. However, signals in this band are more susceptible to interference due to lower penetration capabilities compared to the low-frequency band. Overall, UWB technology offers great potential in areas like indoor positioning, the Internet of Things (IoT), and wireless communication. Its ability to operate across a wide frequency spectrum makes it adaptable to various environments, providing benefits like resistance to interference and high time resolution. UWB technology is governed by various global standards to ensure device interoperability and consistency. A key standard is IEEE 802.15.4a [37], which defines the physical layer (PHY) and medium access control (MAC) of UWB and its compatibility with other wireless technologies. This standard outline transmission modes, modulation schemes, frequency ranges, and power limits and specifies data formats, synchronization, and node management. IEEE 802.15.4a identifies two main UWB modulation schemes: Direct Sequence Ultra-Wideband (DS-UWB), which uses ultra-wide pulse signals for transmission and positioning, and Orthogonal Frequency Division Multiplexing (OFDM), which divides bandwidth into subcarriers for high-speed data transfer. UWB is also regulated by international organizations like the International Telecommunication Union (ITU) and the Federal Communications Commission (FCC), ensuring global coordination on frequency ranges and power limits.

The wireless channel may involve line-of-sight (LOS) propagation or be influenced by various factors, such as interference from multi-path effects, which occur when signals pass through buildings. Additionally, changes in the relative positions of transmitting and receiving points can lead to the Doppler effect, causing channel characteristics to vary over time and resulting in unstable signal quality. These phenomena, caused by either multipath or Doppler effects, are collectively referred to as fading [38]. Fading can be categorized into two main types: large-scale fading and small-scale fading. Large-scale fading is influenced by factors like distance and obstacles in the signal path. It is a slow-varying phenomenon that affects long-distance wireless communications. Techniques such as adaptive antenna gain and relay station deployment can help reduce large-scale fading effects, with shadowing often occurring over long distances, following a log-normal distribution. In contrast, small-scale fading occurs within large-scale fading areas, involving multiple signal paths over short distances. This results in rapid fluctuations in signal strength, influenced by multipath and Doppler effects, which can severely impact communication systems. Effective modeling and compensation are crucial to mitigate small-scale fading for optimal system performance. Line-of-sight (LOS) propagation occurs when radio waves travel directly between transmitting and receiving points. Non-line-of-sight (NLOS) propagation, where obstacles obstruct the direct path, can significantly affect signal quality, especially in indoor positioning systems [39].

2.2 Angle of arrival positioning algorithm

Most positioning algorithms rely on at least three base stations to establish a positioning system, leading to a more complex and costly system setup. In the study documented in [40], a positioning method based on the Angle of Arrival (AoA) algorithm using a single base station is proposed as shown in Fig 1. This method significantly reduces the setup cost by requiring only a single base station.

thumbnail
Fig 1. Illustration of AoA positioning method.

https://doi.org/10.1371/journal.pone.0349251.g001

The AoA positioning technique primarily involves measuring the angle of arrival between the target tag and the base station. Utilizing a directional antenna originating from the base station, which must pass through the tag, the intersection point of the two rays indicates the tag’s location. A drawback of this algorithm is the increased error in NLOS environments. When the base station is equipped with an antenna array, the array determines the angle of incidence based on the signal transmitted by the target object. The angles of incidence for two antennas are denoted as α1 and α2. By using these two angles with the antennas as reference points, the intersection of the lines constructed in the direction of incidence represents the location of the target object. Assuming the coordinates of the target object are (, ) and the coordinates of the antennas are (, ), with two antennas labeled as (, ) and (, ), their positions satisfy the geometric properties of AoA shown below,

(1)

where A = W = , Z = . After performing matrix operations on Equation (1), we could obtain the solution by

(2)

2.3 Adaptive offset cancellation

During the experimental process of measuring errors, we observed that the positioning errors in each measurement varied due to environmental changes. Therefore, by conducting measurements over a period of time and collecting sufficient data, we identified the average offset of the x and y coordinates of test points in different areas. Then, during testing, we compensated for the coordinate measurement values of the test point by the average offset of its corresponding area to reduce positioning errors. We named this method adaptive offset cancellation (AOC) [41,42].

The calculation method for the average offset of the x and y coordinates of the i-th training test point can be expressed by

(3)

and

(4)

respectively, where and represent the average coordinates after applying moving average filtering to the training data, and and are the true coordinates of the test point for x and y, respectively.

After obtaining the offsets of x and y in each region, the experiment first processes the measured signals using moving average filtering, and then corrects them based on the offset of the region where the test point is located. The corrected coordinates of the test point (, ) are

(5)(6)

where and are the offsets of the x and y coordinates for each test point, where i = 1 ~ 12, and and are the average coordinates after applying moving average filtering to the i-th test point.

2.4 Fuzzy inference system

Fuzzy inference originated in the 1960s when Professor L.A. Zadeh introduced fuzzy logic to address real-world phenomena that involve uncertainty and imprecision, which traditional Boolean logic struggles to manage. Unlike Boolean logic, fuzzy logic allows conclusions to reflect varying degrees of fuzziness and uncertainty, making it applicable to a wide range of practical problems [4345]. A fuzzy inference system, as shown in Fig 2, typically consists of five main components: Fuzzification, Fuzzy Inference Engine, Database, Fuzzy Rule Base, and Defuzzification.

thumbnail
Fig 2. Architecture of fuzzy inference system.

https://doi.org/10.1371/journal.pone.0349251.g002

In the fuzzification stage, the system’s primary task is to define fuzzy sets and map input variables to these sets using membership functions. These membership functions, which are stored in the Database, are commonly represented by triangular, trapezoidal, or Gaussian shapes [42]. In this study, trapezoidal membership functions are used for input, while triangular membership functions are employed for output.

During the Fuzzy Inference Engine stage, fuzzy input sets are processed and mapped to fuzzy output sets using membership functions and a fuzzy rule base. This rule base contains “if-then” rules that define the relationship between fuzzy conditions and their corresponding outcomes. Finally, in the defuzzification stage, the system converts the fuzzy results into precise numerical values or operations for further evaluation and decision-making [46]. Various defuzzification methods can be applied, with the Centroid Method being one of the most widely used.

The Centroid Method calculates the defuzzification result based on the center or centroid of the fuzzy set, positioning the result at the center point of the fuzzy set according to its distribution. The other defuzzification method is the Max-Membership Value Averaging approach. In this method, the maximum membership value for each fuzzy rule’s output is first determined. Then, the highest of these maximum values is selected, and the average of these values is calculated to obtain the final fuzzy output.

2.5 Experimental hardware setup

The UWB ranging and communication were implemented using Decawave DW1000 transceiver modules (compliant with IEEE 802.15.4–2011 UWB standard). A custom-designed four-element linear antenna array with an element spacing of 5 cm was used at the base station to enable AoA estimation. The tag node consisted of a single DW1000 module with an omnidirectional antenna. An ESP32 microcontroller served as the processing unit on both the base station and the tag, handling signal timing, data packaging, and communication. The base station communicated with a central processing server via a Wi-Fi module (ESP32 integrated) using WebSocket protocol for real-time data transfer. All devices were mounted on tripods at a fixed height of 1.2 meters to maintain consistency throughout the experiments. It is worth noting that the proposed FAOC method is implemented at the software level and is fully compatible with commercially available UWB systems, such as those based on Decawave DW1000 modules. The fuzzy inference engine can be executed on low-cost microcontrollers (e.g., ESP32), making it suitable for embedded deployment without requiring hardware modifications.

3 Adaptive offset cancellation for indoor positioning

During experiments, it was found that the positioning errors of the test points vary due to daily environmental changes. Therefore, we propose the AOC method with the intention of collecting sufficient data to determine the offsets of the x and y coordinates within each area. During testing, compensating for the measured offsets is applied to reduce positioning errors.

3.1 Experimental environment

The experimental environment in this study is a space measuring 600 cm by 800 cm. We divided this space into 12 uniformly distributed areas and placed a test point (TP) at the center of each area, as shown in Fig 3. This uniform distribution of test points across the experimental area allows for a comprehensive evaluation of the positioning system. Points at varying distances and angles relative to the base station are included. Specifically, test points located at the far corners of the environment (e.g., TPC, TPF, TPI, TPL) represent more demanding NLOS scenarios due to extended signal travel distances and increased potential for signal blockage and multipath interference.

thumbnail
Fig 3. Illustration of the experimental environment.

https://doi.org/10.1371/journal.pone.0349251.g003

The coordinates of the base station (BS) are (150,14). The coordinates and distance data between the BS and the TPs in each area are shown in Table 1. A positive angle in Table 1 indicates that the TP is to the right of the two antennas at the BS, while a negative angle suggests that the TP is to the left at the BS.

thumbnail
Table 1. The coordinates, distance and angle data between the TPs and the BS.

https://doi.org/10.1371/journal.pone.0349251.t001

3.2 Experimental procedures

The experimental procedure is intentionally structured into two distinct phases—training and testing—to emulate a practical deployment paradigm: an initial long-term calibration period followed by operational use. This separation ensures that the system’s error compensation is learned from comprehensive calibration data, preventing overfitting and providing a realistic assessment of performance in a scenario akin to real-world application.

  • Training Phase: The training phase aimed to establish a robust, zone-specific error model. Data collection spanned seven days to capture a wide range of environmental variations. At each of the 12 test points, TPA to TPL, 7,000 consecutive positioning samples were collected at a sampling rate of 1 Hz. This extensive dataset ensures statistical significance for subsequent analysis. The procedure began with the UWB tag transmitting signals to the base station (BS). The BS, equipped with an antenna array, calculated the raw tag coordinates, angles, and distance information using the AoA algorithm. This raw data stream was transmitted to a central server via Wi-Fi. A moving average filter with a window size of 10, as optimized in Section 3.3 and Fig 4, was then applied to the raw coordinates of this long-term data to suppress high-frequency noise and yield a stable, representative average position ( for each point. The systematic error, or zone-specific offset (XO,i,YO,i), was computed as the difference between this filtered average position and the known true coordinates (Tx,i,Ty,i) of the training test point, seeing Eqs. 3 and 4. These 12 offset pairs, each uniquely associated with a zone label, A through L, were stored in a lookup table. The proposed training procedure is shown in Fig 4.
thumbnail
Fig 4. Proposed training procedure for parameter estimation.

https://doi.org/10.1371/journal.pone.0349251.g004

  • Testing Phase: The testing phase evaluated the system’s positioning accuracy using a separate dataset. A comparable volume of test samples, 7,000 samples per point at 1 Hz, was collected to match the training data’s statistical scale. In this phase, the tag transmits signals in real-time. The BS calculates instantaneous coordinates using AoA, which are immediately processed by the same moving average filter with window size 10. The primary role of the filter here is to provide a smoothed, real-time coordinate estimate by mitigating instantaneous measurement noise, thus preparing a cleaner signal for the subsequent correction step. The system then proceeds under one of two conditions: (i) for evaluating the AOC method alone, the true zone of the tag is assumed to be known, and the corresponding pre-stored offset is retrieved from the lookup table; (ii) For evaluating the integrated FAOC method, the smoothed coordinates are first input to the Fuzzy Inference System detailed in Section 4 to estimate the tag’s zone. Finally, the offset pair corresponding to the identified zone is fetched and subtracted from the smoothed coordinates, as specified by Equations 5 and 6, producing the final corrected position.

3.3 Experiment on moving average filtering

The moving average filter is a common signal processing technique used to remove high-frequency noise from the signal, smooth the signal, and improve the signal-to-noise ratio. Tests were performed at test points A, C, J, and L, located in the four corner areas of the experimental environment, to examine the variations in RMSE across different window sizes, as shown in Fig 5.

thumbnail
Fig 5. Variations in RMSE for different window sizes at TPs(a) A, (b) C, (c) J, and (d)L.

https://doi.org/10.1371/journal.pone.0349251.g005

3.4 Experiment on adaptive offset cancellation

In this section, we apply adaptive offset elimination in an NLOS environment to analyze the experimental results. The offset values obtained during the training phase for each test point are then used with the adaptive offset cancellation technique to remove these values for the corresponding test points. Fig 6 shows the cumulative distribution function (CDF), which illustrates the positional error distribution at test points A, C, J, and L, located in the four corners of the experimental setup, evaluated using four different methods.

thumbnail
Fig 6. The CDFs of different positioning methods in NLOS at TPs(a) A, (b) C, (c) J, and (d)L.

https://doi.org/10.1371/journal.pone.0349251.g006

In Table 2, it can be observed that the positioning errors of the three test points, TPA, TPD, and TPG in front of the base station are lower than those of the other test points. This is because some are farther from the base station, while others exceed the effective angle range of AoA. Although TPJ is located in front of the base station, its positioning error is larger due to being in NLOS environment and being farther from the base station. However, the adaptive offset elimination method can reduce its positioning error by approximately 20 centimeters. Besides, the test points located on the edge of the experimental area and farther from the base station, such as TPC, TPI, and TPL, have the highest positioning errors, reaching potentially close to 100 centimeters. Nevertheless, after applying the adaptive offset elimination method, it can be observed that the positioning errors for these three test points, TPC, TPI, and TPL, can be reduced by approximately 30–50 centimeters.

thumbnail
Table 2. The average positioning errors of TPs in the NLOS environment using different methods.

https://doi.org/10.1371/journal.pone.0349251.t002

The results in Table 2 demonstrate that when the locations of target areas are known, the proposed AOC method effectively mitigates positioning errors induced by NLOS environments, resulting in an average reduction of 29.38 cm in positioning error across twelve test points, achieving the high precision with the position error below 40 cm.

3.5 Discussion on AOC robustness in diverse NLOS environments

The AOC method demonstrates consistent error reduction across various NLOS conditions encountered in our experimental setup, which included walls, office partitions, and intermittent human obstructions. As shown in Table 2, test points located behind obstacles (e.g., TPC, TPF, TPI) still achieved significant error reduction, confirming the method’s applicability in common indoor NLOS scenarios.

However, the performance of AOC is influenced by the spatial consistency of systematic errors within each zone. In environments where error patterns change rapidly due to highly dynamic or metallic-dense obstacles, the pre-calibrated offset values may require more frequent updates. Future implementations could integrate real-time environmental sensing or adaptive learning mechanisms to maintain accuracy in such challenging conditions.

Nevertheless, for most typical indoor environments—such as offices, warehouses, and smart homes—the AOC method provides a computationally efficient and effective means of mitigating NLOS-induced positioning errors.

4 Fuzzy inference system for indoor area recognition

The experimental results from Section 3 demonstrate that the positioning errors in indoor environments can be reduced using the adaptive offset elimination method. However, this method requires information about the area where the target is located (target area) to eliminate offset errors. Therefore, in this section, a fuzzy inference system will first discriminate the target area and compare its accuracy with clear area recognition and K-means area recognition methods.

The clear area recognition method employs the boundaries of each area shown in Fig 3 as the criteria for region recognition. Furthermore, as this study divides the experimental environment into twelve zones, the K value for K-means method in this research will be set to 12.

4.1 Experimental environment and procedures

The experimental environment is an indoor space measuring 600 cm by 800 cm, divided into 12 zones, with a test point located at the center of each zone, as shown in Fig 3. The experimental framework consists of training and testing phases, corresponding to Figs 4 and 7, respectively. The training phase follows the data collection and parameter estimation procedures detailed in Section 3.2 and illustrated in Fig 4. The testing phase shown in Fig 7 shares the same initial three steps of signal acquisition and processing as the training phase. However, in the final step, the smoothed coordinates are input into the Fuzzy Inference System (FIS)—developed during the training phase—to execute region classification and determine the final target zone.

thumbnail
Fig 7. Testing procedure for fuzzy area recognition.

https://doi.org/10.1371/journal.pone.0349251.g007

To identify a membership function with superior performance, this study uses raw x- and y-coordinate data measured in the experimental environment as inputs to the fuzzy inference system. We first derived the probability density function (PDF) of the data to understand its distribution, which served as the basis for constructing the input membership functions. Based on the experimental layout, the x-coordinate was divided into three linguistic levels: Near (N), Middle (M), and Far (F). The y-coordinate was divided into four levels: Near (N), Middle (M), Far (F), and Very Far (VF). The resulting PDFs for the x- and y-coordinate levels are shown in Figs. 8 and 9, respectively.

thumbnail
Fig 8. The PDFs of N, M and F levels in x-coordinate.

https://doi.org/10.1371/journal.pone.0349251.g008

thumbnail
Fig 9. The PDFs of N, M, F and VF levels in y-coordinate.

https://doi.org/10.1371/journal.pone.0349251.g009

Building on our prior research [47,48], we compared the area recognition accuracy of three different types of membership functions—Type I, Type II, and Type III—which correspond to functions based on 2, 3, and 4 standard deviations, respectively. The results, summarized in Table 3, indicate that Type II (3 standard deviations) achieved the highest recognition accuracy. This is because Type I covers a narrower range of the training data, while Type II encompasses a broader and more representative portion. Although Type III has the widest interval and covers the most data, it also introduces irrelevant data points, leading to a decrease in accuracy [48].

thumbnail
Table 3. The average recognition accuracy of three different input membership functions.

https://doi.org/10.1371/journal.pone.0349251.t003

Based on the above analysis, we propose using an input membership function with a triple standard deviation interval (Fuzzy triple std), as illustrated in Figs 10 and 11. This configuration demonstrated the highest average area recognition accuracy and was therefore adopted for subsequent experiments in combination with the Adaptive Offset Cancellation (AOC) method. The selection of the specific “fuzzy triple standard deviation” (triple std) membership function was driven by the need to effectively model this observed data characteristic—namely, the biased and overlapping distributions caused by systematic NLOS errors. Compared to conventional symmetric membership functions (e.g., standard triangular or Gaussian), the triple std function offers two key advantages for our application: (1) It is inherently data-driven, anchored on the median and scaled by the standard deviation of the training data, which automatically accounts for the distribution’s shift and spread. (2) Its asymmetric design, with core (±1.5σ) and support (±3σ) intervals, provides a more flexible and representative fuzzy set for data points that do not conform to idealized, symmetric clusters. This flexibility is crucial for accurately classifying coordinates in the presence of NLOS-induced uncertainty.

4.2 Proposed fuzzy inference system area recognition

The proposed system for indoor area recognition is a Mamdani-type fuzzy inference system (FIS) with a two-input, one-output architecture, designed for efficient and interpretable classification of measured coordinates into one of twelve predefined zones (A–L).

4.2.1. Input stage.

In this study, the fuzzy inference system (FIS) employs two input variables: and , representing the measured -coordinate and -coordinate of the target tag, respectively. Specifically, the -coordinate is partitioned into three linguistic levels: Near (N), Middle (M), and Far (F), corresponding to the fuzzy set where Similarly, the -coordinate is divided into four linguistic levels: Near (N), Middle (M), Far (F), and Very Far (VF), represented by the fuzzy set where , as illustrated in Figs 10 and 11.

4.2.2. Output stage.

The fuzzy inference system (FIS) in this study has a single output variable, , which represents the recognized region. This variable corresponds to a total of 12 possible regions, with its linguistic terms denoted as Triangular membership functions are used to define these output terms. These functions are preferred for their structural simplicity and parameter efficiency—requiring only the specification of the peak position and the two side slopes to fully describe their shape. The resulting output membership functions are shown in Fig 12.

4.2.3. Fuzzy rule base.

The fuzzy inference engine operates on a set of linguistic IF-THEN rules. To formalize the inference logic, the k-th fuzzy rule Rk is represented as follows:

(7)

where , and are the linguistic terms of the input variables x, y and the output variable z, respectively, and l1 = 1, 2, 3, l2 = 1,2,  .., 4, l3 and the index of rule k = 1, 2, …, 12. According to the above rule, the corresponding region output based on the input x and y values is shown in Table 4.

thumbnail
Table 4. The output of the fuzzy rule used for FIS area recognition.

https://doi.org/10.1371/journal.pone.0349251.t004

4.2.4. Defuzzification.

There are several defuzzification methods available to convert fuzzy inference results into a crisp output. In this study, the centroid calculation method, also known as the Center of Area (COA), is employed. This method calculates the center of gravity of the aggregated membership functions’ curve to determine the most representative numerical value for the identified region. The centroid output zCOA is determined by substituting the discrete parameters of the inference results expressed by

(8)

where q denotes the total number of predefined zones (q = 12 in this study), represents the discrete values in the fuzzy set of inference results—corresponding to the numerical identifiers of the 12 predefined zones—and denotes the degree of membership for the i-th discrete value. Through this process, the fuzzy linguistic labels derived from the rules in Table 4 are transformed into a singular identified zone label for subsequent error compensation.

4.3 Fuzzy inference system combined with adaptive offset cancellation

The experimental results in section 3 demonstrate that the AOC method can improve the positioning errors of test points, but such improvement can only be carried out once the true target area is known. However, in practical applications, the target area is generally not known in advance. This section will first identify the location of the target area using the Fuzzy triple std method, and then conduct experiments using the AOC method. The experimental results are shown in Table 5, including the region recognition accuracy of the FIS using Fuzzy triple std in 12 areas, the original positioning error (Original), the positioning error after improvement by the AOC method (AOC), and the positioning error using the Fuzzy triple std region recognition method combined with the AOC method (FAOC).

thumbnail
Table 5. The accuracy of fuzzy area recognition in different regions and positioning error using different methods. (unit: cm).

https://doi.org/10.1371/journal.pone.0349251.t005

In Table 5, the original positioning error (Original) represents the unprocessed positioning error of the test data. The positioning error after using the AOC method (AOC) is the result of the experiment in Section 3, assuming the known location of the target area and applying the AOC method for positioning error improvement. The improved positioning error by the Fuzzy triple std combined with the AOC method (FAOC) involves using Fuzzy triple std as the input membership function of the FIS for regional recognition of the target area when the location is unknown, and then applying the AOC method based on the recognition results.

As shown in Table 5, Areas A, B, D, and H achieve a 100% recognition rate, resulting in identical positioning accuracy for both AOC and the proposed FAOC methods in these regions. In contrast, for the remaining regions where recognition rates exceed 90% but fall short of 100%, the positioning error of FAOC is slightly higher than that of AOC. This discrepancy arises from area misclassifications; even with high recognition rates, an incorrect regional judgment introduces additional error. Consequently, the performance gap between FAOC and AOC widens as the fuzzy recognition rate decreases. Overall, the proposed FAOC method—which sequentially identifies the target area via the fuzzy inference system before applying AOC—successfully reduces the average positioning error across all twelve regions from 69.03 cm to 44.48 cm, achieving a significant improvement rate of 40.9%.

4.4 Scalability and applicability in complex environments

While the experiments in this study were conducted in a controlled indoor environment measuring 600 cm × 800 cm, the proposed FAOC method is designed with scalability in mind. In larger or more complex environments, such as multi-story buildings or smart city infrastructures, the system can be extended by increasing the number of zones and corresponding fuzzy rules. The modular structure of the fuzzy inference system allows for easy reconfiguration by adjusting membership functions and rule bases. For multi-story scenarios, a hierarchical fuzzy system could be implemented to first identify the floor level and then the specific zone within that floor. Furthermore, the computational efficiency of the FAOC method makes it suitable for distributed deployment across multiple base stations, enabling seamless coverage expansion. These scalability features position the FAOC method as a viable solution for a wide range of indoor positioning applications.

5. Conclusions

This study presents a comprehensive framework for enhancing UWB/AoA-based indoor positioning accuracy in NLOS environments by addressing both area recognition and error compensation. Experimental results demonstrate that the proposed AOC method effectively mitigates NLOS-induced errors, reducing the average positioning error by 29.38 cm and achieving sub-40 cm precision when the target area is known. In scenarios with unknown locations, the fuzzy inference system using ‘Fuzzy triple std’ membership functions achieved a 95.68% recognition accuracy, outperforming both the direct boundary-based ‘Clear’ method (85.21%) and the K-means approach (95.45%). Overall, the integrated FAOC method reduced the average positioning error from 69.03 cm to 44.48 cm, representing a 40.9% improvement.

Building on these promising results, our future research will first address the challenges of real-time environmental dynamics and long-term stability. We recognize that the current AOC method, which relies on pre-calibrated offsets, may have limitations in highly dynamic scenarios. Therefore, we plan to develop an online adaptive offset update mechanism. This mechanism will continuously monitor incoming positioning data and dynamically refine zone-specific offset values using sliding window estimation or recursive learning techniques. By doing so, the system will be capable of adapting to instantaneous environmental changes—such as moving obstacles or varying multipath conditions—while maintaining accuracy over extended periods without requiring manual recalibration. This advancement will transform the current FAOC framework into a truly adaptive real-time positioning system.

In parallel, we will pursue several avenues to further enhance positioning accuracy towards sub-20 cm levels across all zones. First, we plan to integrate fuzzy logic with advanced machine learning techniques, such as deep neural networks and hybrid neuro-fuzzy systems (e.g., ANFIS), to improve NLOS identification and mitigation. Comparative studies with state-of-the-art machine learning and big data-based localization models will also be conducted to validate and refine our approach. Second, from a hardware and signal processing perspective, we will explore the integration of higher-precision UWB modules, improved antenna arrays for more accurate AoA estimation, and advanced filtering techniques such as adaptive Kalman filtering. Finally, multi-sensor fusion approaches that combine UWB with inertial measurement units (IMU) or visual sensors will be investigated to complement UWB measurements in particularly challenging NLOS conditions.

Finally, to facilitate practical deployment, we will focus on scaling the FAOC framework to larger and more complex environments, such as multi-story buildings, through hierarchical fuzzy systems and distributed base station architectures. Concurrently, we aim to deploy the system on low-power embedded platforms (e.g., ARM Cortex-M series) to validate its compatibility with commercial UWB hardware and its suitability for real-world applications like smart warehouses and asset tracking.

Supporting information

S1 File. The data set obtained in positioning experiments.

https://doi.org/10.1371/journal.pone.0349251.s001

(XLSX)

Acknowledgments

The authors are grateful to their home institutions for administrative support.

References

  1. 1. Montavont J, Noel T. IEEE 802.11 handovers assisted by GPS information. In: IEEE International conference on wireless and mobile computing, networking and communications, 2006. (WiMob’2006). 166–72.
  2. 2. Geok TK, Aung KZ, Aung MS, Soe MT, Abdaziz A, Liew CP. Review of indoor positioning: radio wave technology. Appl Sci (Basel). 2020;11:279.
  3. 3. You Y, Wu C. Indoor positioning system with cellular network assistance based on received signal strength indication of beacon. IEEE Access. 2020;8:6691–703.
  4. 4. Álvarez-Merino CS, Luo-Chen HQ, Khatib EJ, Barco R. WiFi FTM, UWB and cellular-based radio fusion for indoor positioning. Sensors (Basel). 2021;21(21):7020. pmid:34770327
  5. 5. Wang L, Zawodniok M. RSSI-based localization in cellular networks. In: 37th Annual IEEE conference on local computer networks – workshops. 2012. 820–6.
  6. 6. Biswas J, Veloso M. WiFi localization and navigation for autonomous indoor mobile robots. In: 2010 IEEE International conference on robotics and automation, 2010. 4379–84.
  7. 7. Schwarz D, Schwarz M, Stückler J, Behnke S. Cosero, find my keys! Object localization and retrieval using Bluetooth low energy tags. In: Bianchi RAC, Akin HL, Ramamoorthy S, Sugiura K, editors. RoboCup 2014: Robot World Cup XVIII. Cham: Springer; 2015. 195–206.
  8. 8. Loganathan A, Ahmad NS, Goh P. Self-adaptive filtering approach for improved indoor localization of a mobile node with zigbee-based RSSI and odometry. Sensors (Basel). 2019;19(21):4748. pmid:31683837
  9. 9. Sanpechuda T, Kovavisaruch L. A review of RFID localization: applications and techniques. In: 2008 5th International conference on electrical engineering/Electronics, computer, telecommunications and information technology. Krabi, Thailand, 2008. 769–72.
  10. 10. Finkenzeller K. RFID handbook: fundamentals and applications in contactless smart cards and identification. 3rd ed. Hoboken: Wiley. 2010.
  11. 11. Jinhong X, Zhi L, Yang Y, Dan L, Xu H. Comparison and analysis of indoor wireless positioning techniques. In: 2011 International Conference on Computer Science and Service System (CSSS), 2011. 293–6.
  12. 12. Liu A, Lin S, Wang J, Kong X. A novel loosely coupling fusion approach of ultra-wideband and wheel odometry for indoor localisation. Electronics. 2023;12(21):4499.
  13. 13. IEEE standard for low-rate wireless networks. Piscataway: IEEE Standards Association; 2020.
  14. 14. IEEE 802.15.4z-2020; amendment to IEEE standard 802.15.4-2020. IEEE standard for low-rate wireless networks--amendment 1: enhanced ultra-wideband (UWB) physical layers (PHYs) and associated ranging techniques. Piscataway: IEEE Standards Association; 2020.
  15. 15. Bregar K. Indoor UWB positioning and position tracking data set. Sci Data. 2023;10(1):744. pmid:37884571
  16. 16. Yang Z, Wang Y, Chen G, Zhang Y. Research on high precision indoor positioning technology of UWB. J Navig Posit. 2014;2:31–5.
  17. 17. Hou H, Dai C, Li J, Guo H. An adaptive robust Kalman filter algorithm based on UWB/INS. Comput Simul. 2023;40:496–501.
  18. 18. Dardari D, Closas P, Djuric PM. Indoor tracking: theory, methods, and technologies. IEEE Trans Veh Technol. 2015;64(4):1263–78.
  19. 19. Dardari D, Di Dio M, Emmanuele A, Fontanella D, Gezici S, Gholami MR, et al. Innovative signal processing techniques for wireless positioning. In: Satellite and terrestrial radio positioning techniques. Elsevier; 2012. 207–315.
  20. 20. Lee S-H, Cheng C-H, Lin C-C, Huang Y-F. Target positioning and tracking in WSNs based on AFSA. Information. 2023;14(4):246.
  21. 21. Mazuelas S, Bahillo A, Lorenzo RM, Fernandez P, Lago FA, Garcia E, et al. Robust indoor positioning provided by real-time RSSI values in unmodified WLAN networks. IEEE J Sel Top Signal Process. 2009;3(5):821–31.
  22. 22. Lee S-H, Cheng C-H, Lin C-C, Huang Y-F. PSO-based target localization and tracking in wireless sensor networks. Electronics. 2023;12(4):905.
  23. 23. Dardari D, Conti A, Ferner U, Giorgetti A, Win MZ. Ranging with ultrawide bandwidth signals in multipath environments. Proc IEEE. 2009;97(2):404–26.
  24. 24. Fei W. Analysis of UWB indoor positioning accuracy based on TW-TOF. Acad J Sci Technol. 2023;5:61–4.
  25. 25. Poulose A, Han DS. UWB indoor localization using deep learning LSTM networks. Appl Sci. 2020;10:6290.
  26. 26. Guvenc I, Chong C-C. A survey on TOA based wireless localization and NLOS mitigation techniques. IEEE Commun Surv Tutorials. 2009;11(3):107–24.
  27. 27. Ho KC. Bias reduction for an explicit solution of source localization using TDOA. IEEE Trans Signal Process. 2012;60(5):2101–14.
  28. 28. Bottigliero S, Milanesio D, Saccani M, Maggiora R. A low-cost indoor real-time locating system based on TDOA estimation of UWB pulse sequences. IEEE Trans Instrum Meas. 2021;70:1–11.
  29. 29. Wang Y, Ho KC. An asymptotically efficient estimator in closed-form for 3-D AOA localization using a sensor network. IEEE Trans Wireless Commun. 2015;14(12):6524–35.
  30. 30. Heydariaan M, Dabirian H, Gnawali O. AnguLoc: concurrent angle of arrival estimation for indoor localization with UWB radios. In: 2020 16th International conference on distributed computing in sensor systems (DCOSS), 2020. 112–9.
  31. 31. Qiao J, Yang F, Liu J, Huang G, Zhang W, Li M. Advancements in indoor precision positioning: a comprehensive survey of UWB and Wi-Fi RTT positioning technologies. Network. 2024;4(4):545–66.
  32. 32. Indah Hapsari G, Munadi R, Erfianto B, Dyah Irawati I. Future research and trends in ultra-wideband indoor tag localization. IEEE Access. 2025;13:21827–52.
  33. 33. Al-Okby MFR, Junginger S, Roddelkopf T, Thurow K. UWB-based real-time indoor positioning systems: a comprehensive review. Appl Sci (Basel). 2024;14(23):11005.
  34. 34. Yang H, Wang Y, Seow CK, Sun M, Coene S, Huang L, et al. Fuzzy transformer machine learning for UWB NLOS identification and ranging mitigation. IEEE Trans Instrum Meas. 2025;74:1–17.
  35. 35. Zang N, Chen S, Cheng J, Zhao G, Cai R. A fuzzy-logic-enhanced multimodal NLOS mitigation approach for robust PPP/INS/UWB seamless positioning system in observability-deteriorated environment. IEEE Internet Things J. 2026;13(1):918–34.
  36. 36. Coppens D, Shahid A, Lemey S, Van Herbruggen B, Marshall C, De Poorter E. An overview of UWB standards and organizations (IEEE 802.15.4, FiRa, Apple): interoperability aspects and future research directions. IEEE Access. 2022;10:70219–41.
  37. 37. Decawave. DW1000 user manual. Dublin: Decawave; 2017.
  38. 38. Saleem A, Zhang X, Xu Y, Albalawi U, Younes O. A critical review on channel modeling: implementations, challenges and applications. Electronics. 2023;12(9):2014.
  39. 39. Benedetto F, Giunta G, Toscano A, Vegni L. Dynamic LOS/NLOS statistical discrimination of wireless mobile channels. In: 2007 IEEE 65th vehicular technology conference - VTC2007-Spring, 2007. 3071–5.
  40. 40. Smaoui N, Heydariaan M, Gnawail O. Single-Antenna AoA estimation with UWB radios. In: 2021 IEEE wireless communications and networking conference (WCNC), 2021. 1–7.
  41. 41. Huang YF, Chang SW, Sheu YH. Performance of adaptive offset cancellation method for UWB indoor positioning system. In: 2023 International Conference on Consumer Electronics - Taiwan (ICCE-Taiwan). 2023. 589–90.
  42. 42. Huang YF, Chen GY. An adaptive error cancellation of UWB wireless communications for indoor positioning. In: 2023. 78–83.
  43. 43. Sabri SN, Aljunid SA, Salim MS, Badlishah RB. Fuzzy inference system: short review and design. Int Rev Autom Control. 2013;6:441–9.
  44. 44. Cheng CH, Yan Y, Huang YF. Performance of improved fuzzy indoor zone positioning systems in wireless sensor networks. J Internet Technol. 2018;19:1241–50.
  45. 45. Lin CB, Huang YF, Chen LX, Hong JM. Implementation of a fuzzy localization system based on radio-frequency identification technology for elderly people. Sens Mater. 2019;31:559–67.
  46. 46. Arji G, Ahmadi H, Nilashi M, A Rashid T, Hassan Ahmed O, Aljojo N, et al. Fuzzy logic approach for infectious disease diagnosis: a methodical evaluation, literature and classification. Biocybern Biomed Eng. 2019;39(4):937–55. pmid:32287711
  47. 47. Chang SW. Studies of ultra-wideband indoor positioning based on fuzzy inference systems. Taichung: Chaoyang University of Technology; 2023.
  48. 48. Lee SH, Chang SW, Chang YC, Huang YF, Sheu YH, Cheng CH. Indoor positioning based on fuzzy inference systems and UWB communications. In: 2025 IEEE International conference on consumer electronics - Taiwan (ICCE-Taiwan). Kaohsiung, Taiwan, 2025. 441–2.