Next Article in Journal
Enhancing Cybersecurity in Healthcare: Evaluating Ensemble Learning Models for Intrusion Detection in the Internet of Medical Things
Previous Article in Journal
Systematic Review of IoT-Based Solutions for User Tracking: Towards Smarter Lifestyle, Wellness and Health Management
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Fingerprints Indoor Localization for Variable Spatial Environments: A Naive Bayesian Approach

1
School of Communication and Information Engineering, Chongqing University of Posts and Telecommunications, Chongqing 400000, China
2
School of Electronic and Information Engineering, Nanjing University of Information Science and Technology, Nanjing 210000, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(18), 5940; https://doi.org/10.3390/s24185940
Submission received: 5 August 2024 / Revised: 3 September 2024 / Accepted: 11 September 2024 / Published: 13 September 2024
(This article belongs to the Section Navigation and Positioning)

Abstract

:
Fingerprint-based indoor localization has been a hot research topic. However, the current fingerprint-based indoor localization approaches still rely on a single fingerprint database, where the average level of data at reference points is used as the fingerprint representation. In variable environmental conditions, the variations in signals caused by changes in the environmental states introduce significant deviations between the average level and the actual fingerprint characteristics. This deviation leads to a mismatch between the constructed fingerprint database and the real-world conditions, thereby affecting the effectiveness of fingerprint matching. Meanwhile, the sharp noise interference caused by uncertainties such as personnel movement has a significant interference on the creation of the fingerprint database and fingerprint matching in online stage. Examination of the sampling data after denoising with Robust Principal Component Analysis (RPCA) revealed distinct multi-fingerprint characteristics with clear boundaries at certain access points. Based on these observations, the concept of constructing a fingerprint database using multiple fingerprints is introduced and its feasibility is explored. Additionally, a multi-fingerprint solution based on naive Bayes classification is proposed to accurately represent fingerprint characteristics under different environmental conditions. This method is based on the online stage fingerprints. The corresponding state space is selected using the naive Bayes classifier, enabling the selection of an appropriate fingerprint database for matching. Through simulations and empirical evaluations, the proposed multi-fingerprints construction scheme consistently outperforms the traditional single-fingerprint database in terms of positioning accuracy across all tested localization algorithms.

1. Introduction

In recent years, with the rapid development of mobile internet and smart devices, the demand for Location-Based Services (LBS) [1] has been increasing. LBS provides personalized services to users, such as indoor navigation, location-based recommendations, and social networking, among others. Although Global Navigation Satellite Systems (GNSS) [2] can provide reliable and high-precision positioning services in outdoor environments, they are limited in providing indoor positioning services due to factors such as building obstructions, signal interference, and multipath effects in complex indoor environments. Due to the low cost and widespread deployment of Wi-Fi devices, Wi-Fi-based indoor positioning technology has been a hot topic of research [3,4,5,6].
In indoor localization, positioning methods can be broadly categorized into range-based and range-free methods. Range-based methods depend on measuring the distance between the user and reference points or base stations through techniques like time of arrival (TOA) [7], angle of arrival (AOA) [8], and time difference of arrival (TDOA) [9]. These range-based positioning methods generally offer relatively high accuracy but require additional hardware support and complex deployment, and they are susceptible to the effects of non-line-of-sight (NLOS) signal transmission. In contrast, range-free positioning methods based on fingerprint matching are less affected by NLOS signal transmission and typically do not require the deployment of additional hardware devices. Currently, there are various data sources that can be used in fingerprint-based indoor localization solutions, including channel state information (CSI) [10], geomagnetic signals [11], LED signals [12], and received signal strength indicator (RSSI) [13,14]. Among them, Wi-Fi RSSI is easily obtainable and does not require additional equipment, making it a popular choice.
Wi-Fi fingerprint-based indoor localization algorithms involve two phases: offline and online [15]. During the offline phase, RSSI signals from Wi-Fi access points (APs) are collected at various reference points (RPs) and processed to create a fingerprint database, which serves as the foundation for the fingerprint positioning system. In the online stage, a user’s online fingerprint data are compared with the offline database to identify similar reference points. The target location of the user is then estimated by calculating a weighted average of these positions of reference points. In the early stage of data collection and processing [16], we found that a single fingerprint cannot represent the variations in different environmental states accurately. This deviation from reality affects the effectiveness of fingerprint matching. This impact becomes more pronounced when there are significant changes in the propagation paths of Wi-Fi signals due to spatial environment variations, such as transitioning from penetration-only to diffraction or even line-of-sight propagation.
Fingerprint-based indoor localization has significantly advanced since its inception. The first system, RADAR [17], developed by Bahl et al., collects RSSI at multiple receivers and uses empirical triangulation for localization. Moustafa et al. introduced the Horus system, which enhances positioning accuracy with a probabilistic K-nearest neighbors (KNN) approach [18]. Building on this, weighted K-nearest neighbors (WKNN) considers the weights among RPs [19]. In addition, there are many machine learning-based indoor fingerprint positioning solutions, such as CiFi [20] proposed by Wang et al. and Confi [21] proposed by Chen et al. Although research on fingerprint-based positioning has matured significantly, the focus has long been primarily on single fingerprints, and there is still a lack of research related to multi-fingerprints. The MFMCF system [22] proposed by Yuan et al. introduces the concept of multi-fingerprints, but these multi-fingerprints essentially involve the fusion of different data sources rather than the features of the same data source under different conditions. Yu et al. propose a solution for time-varying environments [23], where fingerprint databases are constructed separately for different time periods of the day, but this approach can be considered as a pseudo multi-fingerprints method. While Yu et al. considered complex pedestrian environments by training models with data collected under different pedestrian densities [24], they did not take into account the impact of complex spatial environments, which is far more significant than the influence of pedestrians.
In data processing, the interference of sharp noise has always been the primary issue in constructing precise offline and online fingerprints. The most common methods for noise reduction include Gaussian filtering, median filtering, and Kalman filtering. Fang et al. were the first to utilize Principal Component Analysis (PCA) for processing fingerprint databases, aiming to achieve more accurate fingerprint matching [25]. However, PCA performs poorly in datasets with many outliers. Candés extended PCA by considering the impact of sparse noise and developed Robust Principal Component Analysis (RPCA) [26]. RPCA decomposes the original matrix into a low-rank clean matrix and a matrix composed of sparse noise. Previously, RPCA has been widely used in image analysis, achieving notable success in low-rank image processing. Zhang et al. explored applying RPCA to update a Wi-Fi-based fingerprint database [27], and Li et al. proposed TILoc [28] using the same method. However, directly applying RPCA to the entire fingerprint database may have drawbacks, as each entry in the Wi-Fi fingerprint database is independent, while RPCA processes it as a unified whole. Nevertheless, the outliers modeling proposed by RPCA closely aligns with the actual situation of the collected RSSI data. Therefore, the RPCA algorithm is an effective method for denoising RSSI sampling data.
Based on the above, this paper proposes a concept of multi-fingerprints specifically designed for complex spatial environments. It maps different spatial environmental states between APs and RPs to different fingerprints in order to construct a multi-fingerprints database. Then, in the online phase, a naive Bayes classifier is employed to identify the real-time fingerprint and associate it with the corresponding state space, thereby improving positioning accuracy. The main contributions of this paper can be briefly described as follows:
  • This paper utilizes RPCA to filter sharp noise from RSSI sampled data. By observing the denoised data through RPCA, clear data boundaries were identified between certain data, making them easily distinguishable. Therefore, this paper proposes the concept of multi-fingerprints, suggesting that the fingerprint of the same reference point can be represented by multiple data.
  • A concept of multi-fingerprints is introduced for different spatial environmental states. The variability of the spatial environment states makes it impractical to represent all the state characteristics between each reference point and the APs using a single fingerprint. Therefore, it is necessary to consider the changes in spatial environmental states in order to construct an appropriate multi-fingerprints database.
  • The use of the naive Bayes method is proposed to discriminate the spatial state of the online fingerprint, enabling the selection of the corresponding fingerprint from the multi-fingerprints database for matching.
  • Simulation and experimental verification demonstrate that the variation in spatial environmental states has a significant impact on the propagation of AP signals. Moreover, the proposed multi-fingerprints approach outperforms the use of a traditional single fingerprint database in terms of localization accuracy.
The remainder of this paper is organized as follows. Section 2 presents the overall framework of the model. Section 3 provides a detailed description of the proposed localization scheme. Section 4 presents the analysis of the simulation and experimental results. Finally, Section 5 concludes the paper.

2. System Framework

To make a clear description of the system framework, it is necessary to provide special notation for basic symbols. It is assumed that there are N reference points, M access points, and S state spaces in the sampling area, with the distance between adjacent reference points denoted as d. The position of the i-th RP can be represented as l i = ( x i , y i ) , while the vector of RSSI from M APs at i-th RP in j-th state space can be represented as follows:
ϕ i j = ( r s s i 1 j , r s s i 2 j , , r s s i M j ) ,
where r s s i M j represents the RSSI value in the j-th state space, sampled from the M-th AP at the i-th RP, i { 1 , 2 , , N } and j { 1 , 2 , , S } . The dataset of all location information is denoted as L = ( l 1 , l 2 , l N ) T , and all RSSI information in the j-th state space obtained by all RPs is as follows:
Φ j = ϕ 1 j ϕ 2 j ϕ N j = r s s 11 j , r s s 12 j , , r s s 1 M j r s s 21 j , r s s 22 j , , r s s 2 M j r s s N 1 j , r s s N 2 j , , r s s N M j .
The localization scheme proposed in this paper, which takes into account complex spatial states, is still based on a fingerprint localization system. As such, its main architecture includes both an offline phase and an online phase. The system framework is illustrated in Figure 1.

2.1. Offline Phase

The offline phase involves the construction of a multi-fingerprints database containing all possible spatial states of the environment. RSSI sampling data are collected from all APs at each reference point. RPCA is employed to process all the raw RSSI sample data, and the inexact augmented Lagrange multiplier (IALM) solver [29] is utilized to obtain the denoised, clean data.
As can be seen from Figure 2, using the overall data mean as the sole fingerprint to measure an AP’s performance reflects only the average case and may not accurately represent the AP’s behavior under different conditions. For example, in Figure 2a, the AP is clearly stable in two different states during the first and second halves, respectively, whereas in Figure 2b, the AP switches between two different states frequently. This is because the experiment room’s doors were in two different states, open and closed, which caused certain AP signals to transition from penetrating wall attenuation to potentially stronger transmission paths, such as direct line-of-sight transmission. Therefore, it is necessary to analyze the spatial environment states to construct a multi-fingerprints database that is different from the traditional fingerprint database [16]. It is also evident that a substantial amount of sparse noise exists in the raw sampled data. Therefore, it is essential to perform RPCA denoising on the sampled data.

2.2. Online Phase

In the online phase, the collected online data are also processed by RPCA denoising to construct online fingerprint. Then, naive Bayesian is used to classify the online fingerprint, which could find the corresponding state space. Online data are matched with the offline fingerprint data of the state space selected by the naive Bayesian classification. Finally, WKNN is used to estimate the position.

3. The Proposed Positioning Algorithm

The state spaces, naive Bayesian, and Position Estimation Algorithm will be introduced in this section.

3.1. Description and Solution of RPCA

In any state space, the offline fingerprint of the i-th RP can be expressed by (1). Assuming each AP is sampled Q times, all collected data from the M-th AP at the i-th RP could be expressed as follows:
r s s i , M = ( r s s i 1 , M , r s s i 2 , M , , r s s i Q , M ) T ,
where r s s i Q , M represents the S-th sample for the M-th AP at the i-th RP. Generally, RSSI should exceed −110 dBm because, due to the receiver sensitivity conditions, signals below this threshold cannot be detected [30]. However, actual measurements indicate that signals below −95 dBm are difficult to detect, which means −95 dBm could replace the missing data. Thus, the data collected from all APs at the i-th RP could be written as follows:
ϕ ˜ i = r s s i 1 , 1 , r s s i 1 , 2 , , r s s i 1 , M r s s i 2 , 1 , r s s i 2 , 2 , , r s s i 2 , M r s s i Q , 1 , r s s i Q , 2 , , r s s i Q , M Q × M .
Generally, fingerprint information is measured by the average level of the real data, specifically by calculating the mean of the sampled data, as shown below:
ϕ ¯ i = ( r s s ¯ i , 1 , r s s ¯ i , 2 , , r s s ¯ i , M ) , i 1 , 2 , , N .
To minimize errors caused by noise, this paper uses RPCA to process the collected data. The detailed process is described below. Since SVD matrix decomposition of RPCA requires a square matrix, all sampled data must be reconstructed. The convex optimization model of RPCA could be seen from (7), where λ is a balance factor to control the weight between two output matrices. For n × m input data, the best choice for λ is m 1 / 2 or n 1 / 2 . A larger discrepancy between m and n worsens RPCA results, making a square matrix ideal for balance. Assuming the total number of samples from the AP is Q, where Q = q 2 , q N + , Q should be such that its square root is an integer to allow the sampled data to be rearranged into a square matrix. The data in (3) can be rearranged as follows:
R = r s s i 1 , r s s i q + 1 , , r s s i ( q 1 ) × q + 1 r s s i 2 , r s s i q + 2 , , r s s i ( q 1 ) × q + 2 r s s i s , r s s i 2 × q , , r s s i q × q q × q .
The concept of RPCA [26] is to decompose the initial matrix R into the sum of two matrices: R ^ and E . Here, R ^ is a low-rank matrix, and outlier noise is the other matrix E . Thus, R ^ contains the clean data needed after noise reduction. The collected data from two APs are shown in Figure 2. In the figure, it is clearly visible that there are numerous outliers in addition to the main data trajectory, which aligns well with the RPCA modeling concept.
Next, by solving the optimization problem constructed by the RPCA model, a low-rank matrix R ^ and a noise matrix E can be obtained. The low-rank matrix R ^ represents the denoised data. This optimization model can be expressed in the following form:
min R ^ , E r a n k ( R ^ ) + λ E 0 subject to R = R ^ + E .
In Equation (7), r a n k ( R ^ ) is the rank of matrix R ^ and · 0 is the number of nonzero elements in the matrix. Additionally, the balance between R ^ and E is adjusted through λ > 0 . Since both the matrix rank and the 0 -norm are non-convex, the optimization problem in (7) is NP-hard. To address this, the elements in the equation need to be scaled. The nuclear norm and 1 -norm serve as the convex hulls for the rank and 0 -norm, respectively [31,32]. Therefore, the problem can be reformulated as the following convex optimization problem:
min R ^ , E R ^ + λ E 1 subject to R = R ^ + E .
Since it has become a convex optimization problem, a minimum value can be obtained. This can be solved using an Inexact Augmented Lagrange Multiplier (IALM) method [29].
The form of the augmented Lagrangian function can be expressed as follows:
L ( R ^ , E , Y , μ ) = R ^ + λ E 1 + Y , R R ^ E + μ 2 R R ^ E F 2 .
where the Y is a Lagrange multiplier and μ is a positive scalar. The IALM method alternates iterations between the matrices R ^ and E until convergence. The update formula for R ^ , E , and Y used in the algorithm iteration can be expressed as follows:
R ^ k + 1 = arg min R ^ L ( R ^ , E k + 1 , Y k , μ k ) = arg min R ^ R ^ + μ k 2 R ^ ( R E k + 1 + Y k μ k ) F 2 ,
E k + 1 = arg min E L ( R ^ k + 1 , E , Y k , μ k ) = arg min E λ E 1 + μ k 2 E ( R R ^ k + 1 + Y k μ k ) F 2 ,
Y k + 1 = Y k + μ k ( R R ^ k + 1 E k + 1 ) .
The detailed algorithmic process for solving RPCA using the IALM method is shown in Algorithm 1. The initialization parameter Y 0 of the algorithm is
Y 0 = R / J ( R ) ,
where the calculation method of J ( R ) can refer to the following Equation (14), and R comes from Equation (6).
J ( R ) = max ( R 2 , λ 1 R ) .
The low-rank matrix R ^ can be shown as
R ^ = r s s ^ i 1 , r s s ^ i q + 1 , , r s s ^ i ( q 1 ) × q + 1 r s s ^ i 2 , r s s ^ i q + 2 , , r s s ^ i ( q 1 ) × q + 2 r s s ^ i q , r s s ^ i 2 × q , , r s s ^ i q × q q × q .
After obtaining R ^ , it can be unfolded to recover the original sampled data format, as shown below:
r ^ i , M = ( r s s ^ i 1 , M , r s s ^ i 2 , M , , r s s ^ i Q , M ) T ,
Following noise reduction by RPCA, the fingerprint of an AP in the j-th state space for this RP could be expressed (16), obtained by the mean of the processed data. This processing method is applied to all RSSI sampling data. As a result, the offline database, processed through RPCA, could be constructed as
Φ ^ j = ϕ ^ 1 j ϕ ^ 2 j ϕ ^ N j = r s ^ s 1 , 1 j , r s ^ s 1 , 2 j , , r s ^ s 1 , M j r s ^ s 2 , 1 j , r s ^ s 2 , 2 j , , r s ^ s 2 , M j r s ^ s N , 1 j , r s ^ s N , 2 j , , r s ^ s N , M j N × M .
Algorithm 1 RPCA Solution by IALM
  • Input: Original matrix R R s × s , λ = s 1 / 2
      1:
    Y 0 = R / J ( R ) ; E 0 = 0 ; μ 0 > 0 ; ρ > 1 ; k = 0 .
      2:
    while not converged do
      3:
        ( U , S , V ) = s v d ( R E k + μ k 1 Y k ) ;
      4:
        R ^ k + 1 = U S μ k 1 [ S ] V T ;
      5:
        E k + 1 = S λ μ k 1 [ R R ^ k + 1 + μ k 1 Y k ] ;
      6:
        Y k + 1 = Y k + μ k ( R R ^ k + 1 E k + 1 ) ;
      7:
        Update μ k to μ k + 1 ;
      8:
        k k + 1 ;
      9:
    end while
  • Output:  R ^ k , E k

3.2. State Spaces

Assuming that there are H doors that can change the spatial connectivity in the experimental space, the total number of space states S is obtained by enumerating all possible door opening and closing situations. It can be expressed as
S = C H 0 + C H 1 + + C H h + + C H H , H N + .
where C H h means that any h doors among the H doors are open. According to the binomial theorem,
( x + y ) n = C n 0 x n y 0 + C n 1 x n 1 y 1 + + C n n x 0 y n .
When x = 1 , y = 1 ; then, letting n = H , (19) can be simplified as
2 H = C H 0 + C H 1 + + C H H = S .
For example, there is an experimental space shown in Figure 3, with 50 RPs, 10 APs, and 2 doors. If ‘0’ represents a closed door and ‘1’ represents an open door, it can be easily seen that there are four spatial states, which are { 00 , 01 , 10 , 11 } , in the environment. All the fingerprints of different AP states are placed into their corresponding state spaces to construct a multi-fingerprints database according to (2): Σ = ( Φ 1 , Φ 2 , , Φ S ) .
It is worth noting that the values of AP in different state spaces are not always changed, which depends on the location of the RP that receives the signal strength of the AP. If the RP is in the same room as the AP, regardless of how the state space changes, the RP receiving the RSSI of this AP remains unchanged. This is because the original transmission path has not been affected by the change in the spatial state and is still a line-of-sight transmission.

3.3. Choose State Space by Naive Bayesian

Naive Bayesian is a classification method under the probability framework [33]. The core idea is to obtain the minimum conditional risk of each sample as the class label, which is also known as the posterior probability. The posterior probability of the online fingerprint being in each state space is calculated using Bayes’ theorem; then, the state space with the maximum posterior probability is selected.
Assume that the online fingerprint is Ψ = ( ψ 1 , ψ 2 , , ψ M ) . According to Bayes’ theorem, the posterior probability that Ψ belongs to j-th state space Φ j is
P ( Φ j Ψ ) = P ( Ψ Φ j ) P ( Φ j ) P ( Ψ ) ,
where P ( Φ j ) is the prior probability of state space Φ j , P ( Ψ Φ j ) is the probability of online fingerprint Ψ appearing under the condition of given state space Φ j , P ( Ψ ) is the marginal probability that online fingerprint Ψ occurs, and j { 1 , 2 , , S } . Since P ( Ψ ) in (21) does not vary with changes in the state space and all state spaces have the same size, i.e., the prior probability P ( Φ j ) is the same, it is only necessary to obtain the P ( Ψ Φ j ) part in this paper.
P ( Ψ Φ j ) = P ( ψ 1 , ψ 2 , , ψ M Φ j ) ,
where ψ M is the online RSSI from the M-th AP. According to the assumption of naive Bayes, each AP is independent. Therefore, P ( Ψ Φ j ) can be represented as the product of conditional probabilities of each AP, i.e.,
P ( Ψ Φ j ) = i = 1 M P ( ψ i Φ j ) = i = 1 M 1 2 π σ i j exp ( ( ψ i μ i j ) 2 2 σ i j 2 ) ,
where σ i j and μ i j are the standard deviation and mean of all values of the i-th AP in the j-th state space in the offline database, respectively. The state space to which the online fingerprint belongs is selected with the class with the largest posterior probability ζ = arg max j { 1 , 2 , , S } P ( Ψ Φ j ) .

3.4. Position Estimation

Once the state space corresponding to the online fingerprint is selected through the naive Bayes classifier, traditional fingerprint localization algorithms such as KNN and WKNN can be used for position estimation. The similarity between the online fingerprint and the fingerprints of all RPs in the selected state space is measured by calculating the Euclidean distance. The resulting similarity vector D is as follows:
D = ( d 1 , d 2 , , d N ) ,
where d N denote the Euclidean distance between the offline and online fingerprint of the N-th RP. According to the offline fingerprint in (2), d N could be expressed as
d N = i = 1 M ( ψ i r s s N i ζ ) 2 ,
where r s s N i ζ denote the offline fingerprint from the i-th AP on the N-th RP in the state space with the highest probability. The position estimate can be obtained by WKNN:
L ^ ( x , y ) = i = 1 K l i ( x i , y i ) × w i ,
where w i is determined by
w i = 1 d i 1 d i j = 1 K 1 d j j = 1 K 1 d j .

4. Simulation and Experimental Analysis

The two laboratories and their connecting corridor in Building 2 of Nanjing University of Information Science and Technology were utilized as the test space. The test space layout is depicted on the left side of Figure 3. The detailed configuration is presented in Table 1.
Figure 4 presents the long-term sampling data for a specific AP at a reference point. From the two red lines in the graph, it can be observed that the reference point experienced two different spatial states during the 4000 sampling process, with average RSSI values of −63 dBm and −71 dBm, respectively.
This variation is attributed to the opening and closing of the laboratory doors, which directly influenced the transmission quality of the Wi-Fi signal. This finding confirms that changes in the environmental spatial state can significantly impact the signal of the AP. Moreover, Wireless Insite was employed to simulate the radiation pattern of the AP signal in a spatial layout identical to the experimental environment, further validating the aforementioned findings. In comparison to Figure 5a, the simulation results from Figure 5b showed significantly improved overall signal quality of the AP throughout the entire experimental area, especially in the lower-left corner, which represents the farther end from the AP. When both laboratory doors were closed, the signal quality in the lower-left corner was notably poor, with the majority of locations having an RSSI below −65 dBm. However, when both laboratory doors were opened, it can be observed that the signal quality in the lower-left corner improved significantly, with most locations reaching a level of approximately −40 dBm. Additionally, there was a corresponding increase in signal strength at other locations. This result further confirms the significant variation in AP signal strength under different spatial environmental states.
Figure 6 shows a comparison of the results after RPCA denoising of the sampled data. The blue part represents the original sampled data while the orange part represents the data after RPCA denoising. The results show that RPCA significantly reduces noise in the actual measurement data, filtering out a substantial number of outliers.
Figure 7 compares the standard deviations of two datasets. The comparison reveals that the standard deviation of the data processed with RPCA is lower than the data without processing. This supports the validity of the earlier conclusions and demonstrates the effectiveness of RPCA in handling outlier data. Thus, using RPCA for noise reduction is practical in engineering applications.
Table 2 provides the fingerprint data of all 10 APs for a reference point; the unit of all data is dBm. From the table, it can be observed that the fingerprints processed with RPCA are more accurate than the normal fingerprints. Combining Figure 7 and Table 2, it can be observed that the more stable the AP received signal, the smaller the difference between RPCA-processed fingerprints and normal fingerprints. For example, AP9 has a robust RSSI signal with almost no outlier noise, which could obtain excellent fingerprints even without RPCA processing. Conversely, for AP4, the excessive signal fluctuations generate a large amount of outlier noise, and RPCA performs well on the data from this AP. Through the RPCA, the standard deviation of AP4 data decreased from 17.85 to 3.91, a reduction of 78.07 % . Its fingerprint improved from −42.55 dBm to −36.11 dBm, an increase of 15.13 % . The details of the AP4 data are shown in the Figure 8. From the orange results, it can be seen that a lot of outlier noise is filtered out, enhancing the robustness of the data.
Four different fingerprint-based localization methods were selected to evaluate the positioning performance on both the multi-fingerprints database and the traditional single-fingerprint database. The selected algorithms include the newer FCLoc [16] and TILoc [28] algorithms as well as the classic KNN and WKNN algorithms. The cumulative distribution function (CDF) of the localization errors for all algorithms are presented in Figure 9. Among them, “MF” represents the mode using the multi-fingerprints database, while “Norm” denotes the traditional mean-based fingerprint database.
Table 3 provides detailed statistics, with all values expressed in meters (m). Combining Table 3 with Figure 9, it can be concluded that 80 % of the FCLoc-MF positioning errors are within 1.52 m and the average error is 1.02 m. Meanwhile, 80 % of the FCLoc-Norm localization errors are within 2.38 m, and the mean error is 1.68 m. The TILoc, KNN, and WKNN algorithms utilizing the “MF” multi-fingerprints database achieved 80 % localization errors within 1.85 m, 3.33 m, and 3.21 m, respectively; their mean localization errors were 1.44 m, 2.68 m, and 2.63 m, respectively. In contrast, using the traditional “Norm” fingerprint database, the 80 % localization errors were within 2.72 m, 4.32 m, and 4.21 m, with mean errors of 2.16 m, 3.74 m, and 3.46 m, respectively. The FCLoc algorithm showed an improvement of approximately 39 % in localization performance when using the multi-fingerprints approach. TILoc, KNN, and WKNN demonstrated performance improvements of approximately 33 % , 28 % , and 24 % , respectively.

5. Conclusions

Currently, research on indoor localization based on fingerprints predominantly focuses on various solutions based on single fingerprints. However, based on practical research experience, it has been observed that the variation in spatial environmental conditions significantly affects fingerprints, making a single fingerprint inadequate for representing different spatial states. To alleviate this issue and improve system performance by enhancing fingerprint matching accuracy, this paper proposes the core concept of constructing a multi-fingerprints database based on different spatial environmental states. By analyzing potential spatial structural changes in the entire experimental space, different fingerprints are mapped to distinct state spaces to establish the multi-fingerprints database. During the online phase, a naive Bayesian approach is employed to analyze the state space in which real-time fingerprints reside, enabling the selection of the corresponding fingerprint database for matching. Through testing in the selected experimental area, this paper demonstrates the performance of different localization algorithms on both the multi-fingerprints database and traditional fingerprint database. The experimental results show significant improvements in the performance of the tested algorithms using the proposed multi-fingerprints selection strategy. Meanwhile, this paper uses RPCA denoising to obtain a more accurate fingerprint database. Experimental results demonstrate that RPCA effectively addresses the impact of sparse noise. In fact, the multi-fingerprints localization strategy has significant research potential. The multi-fingerprints database construction scheme based on environmental state space proposed in this paper still has obvious shortcomings. For example, if the experimental environment is expanded, the magnitude of the state space will grow exponentially. Additionally, this paper only proposes a solution based on naive Bayesian analysis though, clearly, there are more options available, such as probabilistic linear discriminant analysis and machine learning-based approaches. Therefore, we propose the following considerations for future work:
  • Find simpler and more effective methods for constructing and online multi-fingerprint matching to address broader and more general application scenarios.
  • Consider more complex factors in multi-fingerprint construction, not just limited to environmental state space but also including factors like personnel movement and object relocation.
  • Explore whether other data sources exhibit characteristics of multiple states similar to RSSI, and build a richer, more comprehensive database through the integration of different data sources.

Author Contributions

Methodology, C.H. and Z.Z.; software, C.H.; validation, C.H.; formal analysis, C.H.; investigation, C.H.; resources, C.H. and Z.Z.; data curation, C.H.; writing—original draft preparation, C.H.; writing—review and editing, C.H.; funding acquisition, Z.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Scientific and Technological Research Program of Chongqing Municipal Education Commission (Grant No. KJZD-M202400602).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data available upon request from the authors if the paper is accepted.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Obeidat, H.; Shuaieb, W.; Obeidat, O.; Abd-Alhameed, R. A review of indoor localization techniques and wireless technologies. Wirel. Pers. Commun. 2021, 119, 289–327. [Google Scholar] [CrossRef]
  2. Wang, L.; Li, Z.; Wang, N.; Wang, Z. Real-time GNSS precise point positioning for low-cost smart devices. GPS Solut. 2021, 25, 69. [Google Scholar] [CrossRef]
  3. Liu, F.; Liu, J.; Yin, Y.; Chen, P. A Survey on WiFi-Based Indoor Positioning Technologies. IET Commun. 2020, 14, 1372–1383. [Google Scholar] [CrossRef]
  4. Wu, C.; Yang, Z.; Xiao, C. Automatic Radio Map Adaptation for Indoor Localization Using Smartphones. IEEE Trans. Mobile Comput. 2018, 17, 517–528. [Google Scholar] [CrossRef]
  5. Chen, L.; Yang, K.; Wang, X. Robust Cooperative Wi-Fi Fingerprint-Based Indoor Localization. IEEE Internet Things J. 2016, 3, 1406–1417. [Google Scholar] [CrossRef]
  6. Guo, X.; Li, L.; Ansari, N.; Liao, B. Accurate WiFi Localization by Fusing a Group of Fingerprints via Global Fusion Profile. IEEE Trans. Veh. Technol. 2018, 67, 7314–7325. [Google Scholar] [CrossRef]
  7. Mariakakis, A.T.; Sen, S.; Lee, J.; Kim, K.H. SAIL: Single Access Point-Based Indoor Localization. In Proceedings of the 12th Annual International Conference on Mobile Systems, Applications, and Services, New York, NY, USA, 16–19 June 2014; pp. 315–328. [Google Scholar]
  8. Yang, S.H.; Kim, H.S.; Son, Y.H.; Han, S.K. Three-Dimensional Visible Light Indoor Localization Using AOA and RSS With Multiple Optical Receivers. J. Light. Technol. 2014, 32, 2480–2485. [Google Scholar] [CrossRef]
  9. Schmitz, J.; Hernandez, M.; Mathar, R. Demonstration Abstract: Real-Time Indoor Localization with TDOA and Distributed Software Defined Radio. In Proceedings of the 2016 15th ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), Vienna, Austria, 11–14 April 2016; pp. 1–2. [Google Scholar]
  10. Wang, X.; Wang, X.; Mao, S. Indoor Fingerprinting With Bimodal CSI Tensors: A Deep Residual Sharing Learning Approach. IEEE Internet Things J. 2021, 8, 4498–4513. [Google Scholar] [CrossRef]
  11. Ashraf, I.; Kang, M.; Hur, S.; Park, Y. MINLOC:Magnetic Field Patterns-Based Indoor Localization Using Convolutional Neural Networks. IEEE Access 2020, 8, 66213–66227. [Google Scholar] [CrossRef]
  12. Rexhausen, T.; Chen, C.S.; Pianese, F. Indoor Localization Using Multi-Color Fingerprinting. In Proceedings of the 2020 IEEE International Conference on E-health Networking, Application Services (HEALTHCOM), Virtually, 1–2 March 2021; pp. 1–6. [Google Scholar] [CrossRef]
  13. Hou, C.; Xie, Y.; Zhang, Z. An improved convolutional neural network based indoor localization by using Jenks natural breaks algorithm. China Commun. 2022, 19, 291–301. [Google Scholar] [CrossRef]
  14. Wang, B.; Gan, X.; Liu, X.; Yu, B.; Jia, R.; Huang, L.; Jia, H. A Novel Weighted KNN Algorithm Based on RSS Similarity and Position Distance for Wi-Fi Fingerprint Positioning. IEEE Access 2020, 8, 30591–30602. [Google Scholar] [CrossRef]
  15. He, S.; Chan, S.H.G. Tilejunction: Mitigating Signal Noise for Fingerprint-Based Indoor Localization. IEEE Trans. Mobile Comput. 2016, 15, 1554–1568. [Google Scholar] [CrossRef]
  16. Hou, C.; Xie, Y.; Zhang, Z. FCLoc: A Novel Indoor Wi-Fi Fingerprints Localization Approach to Enhance Robustness and Positioning Accuracy. IEEE Sens. J. 2023, 23, 7153–7167. [Google Scholar] [CrossRef]
  17. Bahl, P.; Padmanabhan, V. RADAR: An in-building RF-based user location and tracking system. In Proceedings of the IEEE INFOCOM, Tel Aviv, Israel, 26–30 March 2000; Volume 2, pp. 775–784. [Google Scholar]
  18. Moustafa, Y.; Ashok, A. The Horus location determination system. Wirel. Netw. 2008, 14, 357–374. [Google Scholar]
  19. Gholoobi, A.; Stavrou, S. RSS Based Localization Using a New WKNN Approach. In Proceedings of the 2015 7th International Conference on Computational Intelligence, Communication Systems and Networks, Riga, Latvia, 3–5 June 2015; pp. 27–30. [Google Scholar]
  20. Wang, X.; Wang, X.; Mao, S. Deep Convolutional Neural Networks for Indoor Localization with CSI Images. IEEE Trans. Netw. Sci. Eng. 2020, 7, 316–327. [Google Scholar] [CrossRef]
  21. Chen, H.; Zhang, Y.; Li, W.; Tao, X.; Zhang, P. ConFi: Convolutional Neural Networks Based Indoor Wi-Fi Localization Using Channel State Information. IEEE Access 2017, 5, 18066–18074. [Google Scholar] [CrossRef]
  22. Yuan, Y.; Liu, X.; Liu, Z.; Xu, Z. MFMCF: A Novel Indoor Location Method Combining Multiple Fingerprints and Multiple Classifiers. In Proceedings of the 2019 3rd International Symposium on Autonomous Systems (ISAS), Shanghai, China, 29–31 May 2019; pp. 216–221. [Google Scholar] [CrossRef]
  23. Yu, L.; Leung, Y.W.; Chu, X.; Ng, J.K.Y. Multi-Fingerprint for Wireless Localization in Time-Varying Indoor Environment. In Proceedings of the GLOBECOM 2020-2020 IEEE Global Communications Conference, Virtually, 7–11 December 2020; pp. 1–6. [Google Scholar] [CrossRef]
  24. Yu, D.; Li, C. An Accurate WiFi Indoor Positioning Algorithm for Complex Pedestrian Environments. IEEE Sens. J. 2021, 21, 24440–24452. [Google Scholar] [CrossRef]
  25. Fang, S.H.; Lin, T. Principal Component Localization in Indoor WLAN Environments. IEEE Trans. Mobile Comput. 2012, 11, 100–110. [Google Scholar] [CrossRef]
  26. Candés, E.; Li, X.; Ma, Y.; Wright, J. Robust principal component analysis?: Recovering low-rank matrices from sparse errors. In Proceedings of the 2010 IEEE Sensor Array and Multichannel Signal Processing Workshop, Jerusalem, Israel, 4–7 October 2010; pp. 201–204. [Google Scholar]
  27. Zhang, L.; Tan, T.; Gong, Y.; Yang, W. Fingerprint Database Reconstruction Based on Robust PCA for Indoor Localization. Sensors 2019, 19, 2537. [Google Scholar] [CrossRef]
  28. Li, H.; Qian, Z.; Tian, C.; Wang, X. TILoc: Improving the Robustness and Accuracy for Fingerprint-Based Indoor Localization. IEEE Internet Things J. 2020, 7, 3053–3066. [Google Scholar] [CrossRef]
  29. Lin, Z.; Chen, M.; Ma, Y. The Augmented Lagrange Multiplier Method for Exact Recovery of Corrupted Low-Rank Matrices. arXiv 2010, arXiv:1009.5055. [Google Scholar]
  30. Nowicki, M.; Wietrzykowski, J. Low-effort place recognition with WiFi fingerprints using deep learning. arXiv 2016, arXiv:1009.5055. [Google Scholar]
  31. Fazel, M. Matrix Rank Minimization with Applications. Ph.D. Thesis, Infomation Systems Lab, Electrical Engineering Department, Stanford University, Palo Alto, CA, USA, 2001. [Google Scholar]
  32. Lai, M.J.; Yin, W. Augmented L1 and Nuclear-Norm models with a globally linearly convergent algorithm. SIAM J. Imaging Sci. 2013, 6, 1059–1091. [Google Scholar] [CrossRef]
  33. Roos, T.; Myllymäki, P.; Tirri, H.; Misikangas, P.; Sievänen, J. A probabilistic approach to WLAN user location estimation. Int. J. Wirel. Inf. Netw. 2002, 9, 155–164. [Google Scholar] [CrossRef]
Figure 1. Multi-state spaces indoor localization system architecture based on multi-fingerprints.
Figure 1. Multi-state spaces indoor localization system architecture based on multi-fingerprints.
Sensors 24 05940 g001
Figure 2. (a,b) The display of 4000 sample data of two APs.
Figure 2. (a,b) The display of 4000 sample data of two APs.
Sensors 24 05940 g002
Figure 3. Based on all the different door opening and closing situations, identify all the possible permutations that affect the AP states and use this information to construct a multi-fingerprints database that includes all possible scenarios.
Figure 3. Based on all the different door opening and closing situations, identify all the possible permutations that affect the AP states and use this information to construct a multi-fingerprints database that includes all possible scenarios.
Sensors 24 05940 g003
Figure 4. A total of 4000 samples were collected at a reference point for a single AP.
Figure 4. A total of 4000 samples were collected at a reference point for a single AP.
Sensors 24 05940 g004
Figure 5. Under the spatial layout of the experimental area, a commercial software, “Wireless Insite 3.4.4”, was utilized to simulate and compare the signal propagation of an AP in different spatial configurations. (a) Corresponds to the scenario when the doors of both laboratories are closed. (b) Corresponds to the scenario when the doors of both laboratories are open. The red points represent reference points while the green one is the AP.
Figure 5. Under the spatial layout of the experimental area, a commercial software, “Wireless Insite 3.4.4”, was utilized to simulate and compare the signal propagation of an AP in different spatial configurations. (a) Corresponds to the scenario when the doors of both laboratories are closed. (b) Corresponds to the scenario when the doors of both laboratories are open. The red points represent reference points while the green one is the AP.
Sensors 24 05940 g005
Figure 6. (a,b) Represent a comparison of the results before and after RPCA denoising for 4000 sampling data from two APs.
Figure 6. (a,b) Represent a comparison of the results before and after RPCA denoising for 4000 sampling data from two APs.
Sensors 24 05940 g006
Figure 7. The standard deviation of data for an RP.
Figure 7. The standard deviation of data for an RP.
Sensors 24 05940 g007
Figure 8. Comparison of AP4 sampling data before and after RPCA processing.
Figure 8. Comparison of AP4 sampling data before and after RPCA processing.
Sensors 24 05940 g008
Figure 9. CDF of the localization errors.
Figure 9. CDF of the localization errors.
Sensors 24 05940 g009
Table 1. Test Configurations.
Table 1. Test Configurations.
ObjectSetting
Area size20 m × 10 m
Grid size2 m × 2 m
Test SoftwareWirelessMon V4.0
Sampling frequency0.125 Hz
Number of APs10
Number of RPs50
Height of RPs1.5 m
Test equipmentHUAWEI MateBook 14
Offline sampling durationOver 8 h per RP
Online sampling duration90 s per TP
Table 2. All APs’ fingerprints for a reference point.
Table 2. All APs’ fingerprints for a reference point.
Fingerprint TypeAP1AP2AP3AP4AP5AP6AP7AP8AP9AP10
Normal_Fingerprint−58.30−69.15−78.14−42.55−73.83−84.48−70.79−86.80−33.74−48.10
RPCA_Fingerprint−57.54−68.99−77.30−36.11−73.23−83.66−70.32−86.60−33.68−47.33
Table 3. Real test results of localization errors.
Table 3. Real test results of localization errors.
AlgorithmMinMaxMean
FCLoc-MF0.132.851.02
FCLoc-Norm0.173.341.68
TILoc-MF0.163.221.44
TILoc-Norm0.283.982.16
KNN-MF, K = 30.715.272.68
KNN-Norm, K = 31.296.423.74
WKNN-MF, K = 30.565.412.63
WKNN-Norm, K = 31.316.243.46
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hou, C.; Zhang, Z. Multi-Fingerprints Indoor Localization for Variable Spatial Environments: A Naive Bayesian Approach. Sensors 2024, 24, 5940. https://doi.org/10.3390/s24185940

AMA Style

Hou C, Zhang Z. Multi-Fingerprints Indoor Localization for Variable Spatial Environments: A Naive Bayesian Approach. Sensors. 2024; 24(18):5940. https://doi.org/10.3390/s24185940

Chicago/Turabian Style

Hou, Chengjie, and Zhizhong Zhang. 2024. "Multi-Fingerprints Indoor Localization for Variable Spatial Environments: A Naive Bayesian Approach" Sensors 24, no. 18: 5940. https://doi.org/10.3390/s24185940

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

Article Metrics

Back to TopTop