Next Article in Journal
ISA 100.11a Networked Control System Based on Link Stability
Next Article in Special Issue
Transfer Learning for Wireless Fingerprinting Localization Based on Optimal Transport
Previous Article in Journal
Physical, Modular and Articulated Interface for Interactive Molecular Manipulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Multi-Type Fingerprint Indoor Positioning and Localization Method Based on Multi-Task Learning and Weight Coefficients K-Nearest Neighbor

School of Computer Science and Technology, Chongqing University of Posts and Telecommunications, Chongqing 400065, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(18), 5416; https://doi.org/10.3390/s20185416
Submission received: 31 August 2020 / Revised: 15 September 2020 / Accepted: 15 September 2020 / Published: 21 September 2020
(This article belongs to the Special Issue Indoor Wi-Fi Positioning: Techniques and Systems)

Abstract

:
The complex indoor environment makes the use of received fingerprints unreliable as an indoor positioning and localization method based on fingerprint data. This paper proposes an adaptive multi-type fingerprint indoor positioning and localization method based on multi-task learning (MTL) and Weight Coefficients K-Nearest Neighbor (WCKNN), which integrates magnetic field, Wi-Fi and Bluetooth fingerprints for positioning and localization. The MTL fuses the features of different types of fingerprints to search the potential relationship between them. It also exploits the synergy between the tasks, which can boost up positioning and localization performance. Then the WCKNN predicts another position of the fingerprints in a certain class determined by the obtained location. The final position is obtained by fusing the predicted positions using a weighted average method whose weights are the positioning errors provided by positioning error prediction models. Experimental results indicated that the proposed method achieved 98.58% accuracy in classifying locations with a mean positioning error of 1.95 m.

1. Introduction

With the speedy development of mobile communication technology and the Internet of Things, indoor positioning and localization technology have attracted widespread attention as an essential part of location-based services. In recent years, researchers have proposed some indoor positioning and localization methods based on different technologies, such as Ultra-wideband [1,2] (UWB), Bluetooth [3,4,5], Wireless Fidelity [6,7,8] (Wi-Fi), Radio Frequency IDentification [9,10] (RFID), and magnetic field [11,12,13] (MF). Among them, the MF, Wi-Fi, and Bluetooth technologies have some advantages (such as easy deployment, low cost), which provide many applications in diverse fields, such as asset tracking, patient monitoring, warehouse management, and crowd analysis, etc. With the rapid popularization and application of mobile terminals, receiving MF, Wi-Fi, and Bluetooth signals become more real-time and convenient. Thus, with the popularization and application of MF, Bluetooth, and Wi-Fi methods based on these three technologies will likely become ordinary for indoor positioning and localization.
Fingerprint positioning and localization have the advantages of simple construction, low cost, easy implementation, and low maintenance, which is a universal method for positioning and localization based on MF, Wi-Fi, and Bluetooth. Today, there have been many studies on MF fingerprint [14,15] positioning and localization [16,17], Wi-Fi fingerprint positioning and localization [18,19], as well as Bluetooth fingerprint positioning and localization [20,21], but studies on the integration [22,23] of MF, Wi-Fi and Bluetooth fingerprints for positioning and localization have been comparatively few. Nevertheless, all the MF, Wi-Fi, and Bluetooth signals are present in certain indoor environments, such as office buildings, supermarkets, warehouses. Therefore, it is necessary to study the integration of MF, Wi-Fi, and Bluetooth fingerprints to make full use of existing signals for indoor positioning and localization.
A few works have investigated fusion positioning and localization using two fingerprints in MF, Wi-Fi, and Bluetooth fingerprints. In the work of [24], an F-score-weighted indoor positioning algorithm was proposed, which integrated MF and Wi-Fi fingerprints. In [25], Baniukevic et al. introduced Bluetooth hotspots into an indoor place with an existing Wi-Fi infrastructure, which is better than positioning using each technology alone. An adaptive Bluetooth/Wi-Fi fingerprint positioning method based on Gaussian process regression and relative distance was proposed in [26], which can choose a more reliable positioning result as the final positioning result. The experimental results of the above studies demonstrate that the fusion positioning and localization method can achieve better positioning and localization performance compared to using a single type of signal. Nevertheless, most of the fusion positioning and localization methods still have some challenges. For instance, the potential relationship between different types of fingerprints is not considered, which leads to the loss of some information. Moreover, most of the positioning and localization algorithms are not suitable for the environment of multi-type fingerprints, thus the positioning and localization effects need to be further improved.
This paper proposes an adaptive multi-type fingerprints indoor positioning and localization method based on multi-task learning (MTL) and Weight coefficients K-Nearest Neighbor (WCKNN). The method is principally divided into two stages: training and testing. In the training stage, we develop an MTL [27,28] model to simultaneously predict the symbol location and position coordinate of multi-type fingerprints and refine the weight coefficients of WCKNN using the relationship between the attributes of the training data. Then, positioning error prediction models based on Deep Neural Networks [29,30] (DNN) are established and trained using processed validation data. In the testing stage, the MF, Wi-Fi, and Bluetooth fingerprints of test data are input into the MTL model to get the symbol location and position coordinate of the fingerprints. Subsequently, another position coordinate is obtained by using the WCKNN in the clusters determined by the obtained symbol location. The clusters are composed of fingerprints with the same symbol location in the training and validation datasets and can reduce the positioning range of WCKNN. And so, with the help of positioning error prediction models, the positioning error of each predicted position coordinate can be determined, which represents the confidence of the position coordinate. Finally, the final position coordinate is obtained by fusing the two predicted position coordinates using a weighted average method whose weights were the positioning errors. The second section of the paper introduces the dataset adopted and the algorithms involved in this study. The third section presents the proposed method in detail. The fourth section introduces the results of the study and compares them with current results. Finally, some conclusions are presented based on the results. Moreover, there are some contributions to this paper as follows.
  • The designed MTL model fuses MF, Wi-Fi, and Bluetooth fingerprint features by a hard parameter sharing mechanism to predict the position and the location of the fingerprints, which can learn the potential relationship between fingerprints and improve the performance of positioning and localization to a certain extent.
  • A K-Nearest Neighbor [31,32] (KNN) algorithm based on weight coefficients is proposed, which carries the influence of different types of fingerprints on the similarity between multi-type fingerprints into consideration.
  • The positioning error prediction model can estimate the confidence of the position coordinate to realize adaptive indoor positioning.

2. Materials and Methods

According to the needs of users, fingerprint indoor positioning and localization are usually split into two types of tasks: regression and classification [33]. The regression task is to predict the position information of fingerprint, corresponding to a specific point in a coordinate system such as longitude and latitude. In contrast, the classification task is to predict the location information of the fingerprint, which can provide detailed information for the position, such as office, floor, building.
Researchers mainly use traditional machine learning algorithms or deep learning algorithms to realize classification and regression tasks. This paper combines a traditional machine learning [34,35,36] algorithm with a deep learning [37,38,39] algorithm. It proposes an adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN to predict the position and location information of multi-type fingerprints. The stages of this method are shown in Figure 1. To begin with, the data set is pre-processed (standardized and normalized) to generate new features. The generated dataset is then randomly divided into 80% training data, 10% validation data, and 10% test data. In the next stage, training and validation data are presented to train the MTL model, and the relationship between the attributes of the training data is used to refine the parameters of the WCKNN algorithm. After the construction of MTL and WCKNN is completed, their performance is pre-evaluated using the validation data. Then, positioning error prediction models are established to forecast the confidence of the positioning results based on the results of the pre-evaluation. Finally, the performance of the proposed method is evaluated with test data according to the classification and regression performance metrics.

2.1. Miskolc IIS Hybrid IPS Dataset

Miskolc IIS (Institute of Information Science) Hybrid IPS (Indoor Positioning System) data set [40,41] was recorded by the ILONA (Indoor Localization and Navigation) System [42] in the IIS Building at University of Miskolc. [43] The measurement environment is a grid-like layout of the three-story building, as seen in Figure 2. Figure 2a shows the ground floor, Figure 2b the first floor, Figure 2c the second floor, and Figure 2d shows the general floor plan of the building. The data set covers an area of 2106.16 m 2 , about 50% of the IIS building. The colors and lines of Figure 2 are used to separate areas. Some devices are deployed in the building, the Wi-Fi signal icons represent Wi-Fi access points, and the Bluetooth icons represent Bluetooth devices. The data set contains 1539 measurements, 32 Wi-Fi access points, 22 Bluetooth devices, and the magnetic field values [44].
In the dataset, each measurement point contains fingerprints with MF, Wi-Fi, and Bluetooth. Due to the loss of MF fingerprint data in some measurement points, it cannot be employed as an experimental sample. Moreover, the number of measurement points at some symbol locations is insufficient to construct a valid model. In decree to build a stable and reliable model, we remove measurement points with missing data and symbol locations with less than 30 measurement points. After processing, the dataset contains 1405 measurement points in 15 symbol locations, hence 15 classes can be distinguished. Table 1 shows the distribution of measurements in the building.
To facilitate data mining and processing, the processed dataset was exported to a comma-separated value (CSV) format. Table 2 shows the schema of the experimental data. The header holds the following fields: the symbol location, the absolute coordinates called x, y, z, the MF values, the Wi-Fi values, and the Bluetooth devices. The x is the vertical axis, and the y is the horizontal axis. Currently, the building is divided into a grid of 1 m × 1 m. The coordinates are determined based on the available grid. The measurement height of each floor is the same, and the measurement results are expressed by z, which are 1.5 m, 4.4 m, and 7.6 m, respectively. The MF gives back a three-dimensional real vector. The Wi-Fi values are placed between the 8–39 position where each position has a corresponding access point. In the dataset, the Wi-Fi value is either an integer in [ 98 , 20 ] or null, and null represents that the Wi-Fi access point was not observed at a given location. In order to boost data processing, 100 was chosen to represent unreachable access points. For each Bluetooth address, the corresponding binary ( 0 , 1 ) value denotes the visibility of the device [44].
Three different types of fingerprints are used in this paper to achieve localization and positioning. Wi-Fi and MF are deterministic fingerprints. In contrast, Bluetooth is a probabilistic fingerprint due to the relatively limited space coverage of Bluetooth hotspots. When a user with a Bluetooth-enabled device enters a specific range, the device recognizes the hotspot. In previous studies, it was found that the positioning and localization effects of multi-type fingerprints used by the model are better than a single type of fingerprint. Moreover, from the perspective of information theory, the more information we collect about a certain point, the more certain the symbol location and position coordinate of that point can be. Therefore, this article uses a data set named Miskolc IIS Hybrid IPS, and proposes an adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN.

2.2. Multi-Task Learning

MTL is a learning algorithm that uses the useful information contained in multiple learning tasks to improve the performance of each task to a certain extent. The principal characteristics are as follows.
  • Increase the generalization capabilities of the model. Different tasks have different expression patterns. A model that learns multiple tasks simultaneously can learn a more general representation, thereby improving the generalization capabilities of the model.
  • Reduce the risk of getting stuck in local minima. In single-task learning, the backpropagation of gradients tends to become stuck in a local minimum. Nevertheless, the local minima of different tasks are in different positions in the MTL, and the hidden layer can escape from the local minima through the interaction between the tasks.
  • Reduce over-fitting. MTL plays the same role as regularization by introducing an inductive bias, which can reduce the complexity of the model and the risk of over-fitting [27].
There are two mechanisms to realize MTL in neural networks: hard parameter sharing [45] and soft parameter sharing [46]. The hard parameter sharing is the most commonly used approach in neural network MTL. It is generally applied by sharing the hidden layers among all tasks while maintaining several task-specific output layers. For each task, there are features in the shared hidden layer that are relevant and irrelevant to the task, which can improve the generalization ability of the model. However, in soft parameter sharing, each task has its own model and parameters. The distance between the parameters of the model is then regularized to ensure the similarity of the model parameters. [27]

2.3. K-Nearest Neighbor

The KNN is a non-parametric and instance-based algorithm for classification and regression. The KNN algorithm searches the sample set for the K samples that are most similar to the object, thereby obtaining the results of classification and regression. The similarity is defined in terms of distance functions, such as Euclidean distance. In this paper, the Euclidean distance is used to calculate the similarity between samples. The K parameter is a positive integer that determines the number of the neighbors. The different selection of K value will directly affect the final classification and regression results.
The KNN classification algorithm is a classifier based upon a non-linear algorithm, and its output is a class membership. An object is assigned to the most common class among its K nearest neighbors by voting. If K is set to 1, the object is assigned directly to the class of the nearest neighbor, so the classification problem becomes a minimum search task. In the KNN regression algorithm, for a given object, its attribute value is the average of the attribute values of the K nearest neighbors.

3. Proposed Positioning and Localization Method

Under ideal conditions, MF fingerprint, Bluetooth fingerprint, and Wi-Fi fingerprint are used for positioning and localization simultaneously. The predicted location of the MF fingerprint, the predicted location of the Wi-Fi fingerprint, the predicted location of the Bluetooth fingerprint should be the same, as well as the predicted position of the MF fingerprint, the predicted position of the Wi-Fi fingerprint, and the predicted position of the Bluetooth fingerprint should also be similar. However, in reality, the results obtained may be substantially different due to various reasons (such as reflection, diffraction, diffuse scattering). Thus, in this paper, we propose an adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN to realize the integration of MF, Wi-Fi, and Bluetooth fingerprints for positioning and localization.
The flow diagram of adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN is shown in Figure 3. In the training stage, the MF, Wi-Fi, and Bluetooth fingerprint data were used to train an MTL model. The MTL model has two tasks, one is to predict the symbol location of multi-type fingerprints, and another is to predict the position coordinate of multi-type fingerprints. Subsequently, fingerprints with the same symbol location were collected from the database to construct a Wi-Fi fingerprint cluster and a Bluetooth fingerprint cluster, and another position coordinate was obtained by using WCKNN in the clusters. Finally, DNN-based positioning error prediction models are established based on the errors between each predicted position coordinate and the actual position coordinate. In the testing stage, the MF, Wi-Fi, and Bluetooth fingerprints of the test data were input into the MTL model to get symbol location and position coordinate. In the next stage, Wi-Fi and Bluetooth fingerprint clusters were established based on the symbol location obtained by MTL, and another position coordinate was obtained by using the WCKNN in the clusters. The fingerprint data is then input into the positioning error prediction models to determine the positioning errors of the two predicted position coordinates. Finally, the final position coordinate was obtained by fusing the two predicted position coordinates using a weighted average method whose weights were the positioning errors, as shown in Equation (1):
C o o r d i n a t e = ( M P C M P C _ E r r o r + M W P C M W P C _ E r r o r ) ( 1 M P C _ E r r o r + 1 M W P C _ E r r o r )
Here, MPC is the position coordinate predicted by the MTL, and MWPC is the position coordinate predicted by the MTL and WCKNN. MPC_Error is the positioning error of MPC, and MWPC_Error is the positioning error of MWPC. The predicted position coordinates are fused to realize adaptive positioning, which can improve positioning precision and stability.

3.1. Multi-Task Learning

The multi-type fingerprints of each measurement point potentially contain the symbol location and position coordinate information of the measurement point. A multi-type fingerprints indoor positioning and localization model based on MTL was designed in this paper, which can simultaneously predict the symbol location and position coordinate based on the provided multi-type fingerprints. Compared with single-task learning, MTL can additionally learn the potential relationship between two tasks, thereby improving the performance of the two tasks to a certain extent.
The architecture of the proposed MTL model is shown in Figure 4. The three input layers of the MTL model from left to right are input MF, Wi-Fi, and Bluetooth, respectively. The model has two output layers. The output layer on the left is a SoftMax layer that outputs the probability distribution of the current multi-type fingerprints belonging to the analyzed classes. The activation function of the output layer on the right is a linear function and outputs the possible position coordinate of the current multi-type fingerprints. Moreover, the input features of the “concentrate_1” to “concentrate_9” layers in the connection layers of the model are the fusion features of the input features and output features of the previous layer, which can avoid the loss of information during the propagation and reduce the risk of over-fitting the model. Furthermore, the MF, Wi-Fi, and Bluetooth fingerprint features are concatenated on the “concatenate_10” layer, which implements a hard parameter sharing mechanism and learns the potential relationship between them. The activation function of all hidden layers is the Rectified Linear Unit (ReLU), which can speed up network training, prevent gradient vanishing and explosion, and sparse network. Table 3 shows the main parameter settings of MTL, among which the loss function and loss weight of the two output layers are more worthy of our attention. The loss function of the output layer of the classification task is categorical_crossentropy, and the loss weight is 1. The loss function and loss weight of the output layer of the regression task were mean-square error (MSE) and 0.8, respectively. Therefore, the final loss is the weighted sum of the two losses, and the weighted by the loss weights. The proposed MTL model realizes the integration of MF, Wi-Fi, and Bluetooth fingerprints and applies the synergy between the tasks, which can improve the accuracy in predicting symbol locations and reduce errors in estimating position coordinates.

3.2. Weight Coefficients K-Nearest Neighbor

The details of the proposed WCKNN algorithm are explained in this section. The WCKNN is established based on the traditional KNN algorithm to adapt to the environment of multi-type signals.
S i = [ a i 1 , a i 2 , , a i n , b i 1 , , b i m , ] , S j = [ a j 1 , a j 2 , , a j n , b j 1 , , b j m , ] .
where S i is the vector of multi-type signals i and S j is the vector of multi-type signals j. The vector contains different types of signal features (such as a, b). The traditional KNN algorithm calculates the Euclidean distance between i and j, which is expressed as
D i j = ( a i 1 a j 1 ) 2 + + ( a i n a j n ) 2 + ( b i 1 b j 1 ) 2 + + ( b i m b j m ) 2 +
Here, D i j is the distance between i and j. However, the traditional KNN algorithm does not consider the influence of different signal types on D i j , which will inevitably inhibit the accurate selection of neighbors to a certain extent.
D i j =     w a ( a i 1 a j 1 ) 2 + + ( a i n a j n ) 2 + w b ( b i 1 b j 1 ) 2 + + ( b i m b j m ) 2 + =     w a D a i a j + w b D b i b j +
The WCKNN algorithm is proposed in this paper, as shown in Equation (4). By assigning weights to the distance between signals to express the influence of different types of signals on the similarity between multi-type signals, which helps to judge the similarity between multi-type signals. It is obvious that the size of the weight will determine the degree of influence.

3.2.1. Weight Coefficients K-Nearest Neighbor Classification

Each measurement point is assigned its unique symbol location, but the same symbol location can include multiple measurement points. In order to study the relationship between multi-type fingerprints and symbol locations, the WCKNN classification algorithm is discussed in this section. According to Equation (4), we need to explore the relationship between fingerprints and symbol locations. For this, we use the Maximum Information Coefficient (MIC) to discover the functional relationship between the distance between fingerprints (Dis_Fingerprints) and the distance between symbol locations (Dis_Locations). The MIC is a statistical measure of the degree of association between variables. More precisely, define
M I C [ X ; Y ] = max x , y : x y B x , y p ( x , y ) log p ( x , y ) p ( x ) p ( y ) log ( min ( x , y ) )
where B is dependent on the boundary between X and Y. It can be shown that the MIC lies in the range [0,1], where 0 represents no relationship between the variables, and 1 represents a noise-free relationship of any form, either linear or non-linear (such as regular graph modes).
Figure 5 shows scatter plots and MICs for Dis_Fingerprints and Dis_Locations in the training dataset. The training dataset contains 1123 measurement points, producing a total of 631,126 sample pairs or scattered points. Since the symbol location is a category attribute and cannot perform mathematical operations, the difference between the center points of symbol locations is taken as Dis_Locations. As a result, a total of 106 Dis_Locations results were generated in 15 symbol locations. In the figure, we see scatter plots for particular pairs of variables, which we now discuss:
  • Figure 5a has a low MIC. This is because they correspond to non-functional and one-to-many relationships between the distance between MFs (Dis_MFs) and Dis_Locations.
  • The MIC of Figure 5b is 0.413, indicating that there is a certain relationship between the distance between Wi-Fis (Dis_Wi-Fis) and Dis_Locations.
  • Figure 5c has an MIC of 0.163. The corresponding scatter plot makes it clear that there is a weak relationship between these two variables (the distance between Bluetooths or Dis_Bluetooths and Dis_Locations).
MIC reflects the relationship between fingerprints and symbol locations, not just linear. According to the analytical formula of Equation (4), we expect that there is a linear relationship between Dis_Fingerprints and Dis_Locations. The (Pearson) correlation coefficient is the simplest method to measure the linear correlation between X and Y. The correlation coefficient is defined as
c o r r [ X , Y ] = n x i y i x i y i n x i 2 ( x i ) 2 n y i 2 ( y i ) 2
where 1 c o r r [ X , Y ] 1 . We expect that the correlation coefficient is related to the slope of the regression line, i.e., the coefficient a in the expression Y = a X + b . However, the fact that the correlation only reflects the noisiness and direction of a linear relationship, not the slope of that relationship [47].
Figure 6 shows the Pearson correlation coefficient between Dis_Fingerprints and Dis_Locations. The correlation coefficient between Dis_MFs and Dis_Locations is 0.019, and hence they are uncorrelated so that no linear function can be established between them. This result may be due to the influence of metal on walls and indoor equipment on MF distribution.
The correlation coefficient between Dis_Wi-Fis and Dis_Locations is 0.50, which indicates that they are moderately correlated. It is expressed as
D l i l j = w 1 D x i x j + b 1
Here, D x i x j is the distance between MF x i and MF x j , and D l i l j is the distance between symbol location l i and symbol location l j . In addition, i and j are multi-type fingerprints, including MF fingerprint, Wi-Fi fingerprint, and Bluetooth fingerprint. A weighting coefficient w 1 and a constant b 1 are provided to establish a linear functional relationship between Dis_Wi-Fis and Dis_Locations.
The correlation coefficient between Dis_Bluetooths and Dis_Locations is 0.21, and there is a weak correlation between them.
D l i l j = w 2 D y i y j + b 2
where y i is the Bluetooth fingerprint i and y j is the Bluetooth fingerprint j. Similarly, a linear functional relationship between Dis_Bluetooths and Dis_Locations by providing a weight coefficient w 2 and a constant b 2 is established.
D l i l j = 1 2 ( w 1 D x i x j + b 1 + w 2 D y i y j + b 2 )
Equation (9) can be obtained by the addition operation of Equations (7) and (8). Since b 1 and b 2 are constants, their sum is also a constant, which does not affect the comparison of similarities between multi-type fingerprints. In order to reduce the amount of calculation, the sum is set to zero. Equation (9) can be simplified to Equation (10).
D l i l j = w 1 D x i x j + w 2 D y i y j
From the analyses described above, the correlation between symbol locations and Wi-Fi fingerprints is higher than that of MF fingerprints, and also higher than that of Bluetooth fingerprints. Also, Equation (10) shows the functional relationship among Dis_Wi-Fis, Dis_Bluetooths, and Dis_Locations; moreover, the weight coefficient represents the degree of correlation.

3.2.2. Weight Coefficients K-Nearest Neighbor Regression

Each measurement point corresponds to an absolute position coordinate. In order to study the relationship between multi-type fingerprints and position coordinate, the WCKNN regression algorithm is discussed in this section. The distance between position coordinates (Dis_Positions) can be obtained using the Euclidean metric. Figure 7 shows scatter plots and MICs for Dis_Fingerprints and Dis_Positions in the training dataset. The degree of association between various types of fingerprints and position coordinates is weaker than that between symbol locations. Figure 7a shows that there is no relationship between Dis_MFs and Dis_Positions. Figure 7b,c show that the scatter maps have low regularity, especially Dis_Bluetooths and Dis_Positions.
To explore the linear relationship between various fingerprints and position coordinates, the Pearson correlation coefficient between Dis_Fingerprints and Dis_Positions is shown in Figure 8. Dis_Wi-Fis has the highest correlation with Dis_Positions, and its Pearson correlation coefficient is 0.52. The Pearson correlation coefficient between Dis_Bluetooths and Dis_Positions is 0.21, and there is a weak correlation between them. Similarly, there is no correlation between Dis_MFs and Dis_Positions.
D p i p j = m 1 D x i x j + c 1
D p i p j = m 2 D y i y j + c 2
D p i p j = 1 2 ( m 1 D x i x j + c 1 + m 2 D y i y j + c 2 )
The derivation process of the WCKNN regression algorithm is similar to that of the WCKNN classification algorithm. Equations (11)–(13) are constructed. Where p i and p j are the position coordinates of multi-type fingerprints, and D p i p j is the distance between p i and p j .
D p i p j = m 1 D x i x j + m 2 D y i y j
The functional relationship between Dis_Fingerprints and Dis_Positions is shown in Equation (14). The weight coefficient in the formula represents the degree of correlation between fingerprints and position coordinates. Moreover, the correlation between location coordinates and Wi-Fi fingerprints is higher than that of MF fingerprints, and also higher than that of Bluetooth fingerprints.
The analytical expression of Equation (4) is the same as those of Equations (10) and (14). Therefore, the proposed WCKNN algorithm is suitable for the environment of multi-type fingerprints in this paper. We can obtain the values of D x i x j , D y i y j , D l i l j , and D p i p j from the training data, so that the optimal solution of the weight coefficients of Equations (10) and (14) can be obtained by the backpropagation neural network.

3.3. Positioning Error Prediction

To prevent empirical errors, we use validation data instead of training data to construct training datasets for Positioning error prediction models. As shown in Figure 9, to start with, the validation data are split into two parts: fingerprint data and position coordinate data. In the next stage, the fingerprint data are presented to the proposed algorithms to get position coordinates MPC and MWPC. Then, the error between each predicted position coordinate and the actual position coordinate is calculated using the Euclidean metric, and then MPC_Error and MWPC_Error are obtained, respectively. Finally, combining each positioning error with fingerprint data to construct the positioning error prediction datasets.
The DNN is selected to build positioning error prediction models. Figure 10 represents the architecture of the positioning error prediction model for forecasting MPC_Error. The sample of the positioning error prediction dataset is not too large; therefore, a simple five-tier DNN architecture is used, which consists of three hidden layers to do the regression. The model inputs MF, Wi-Fi, and Bluetooth fingerprints in the input layer, and its number of neurons is 60. Then, three hidden layers are designed to be 128 neurons, 256 neurons, and 128 neurons, respectively. The number of neurons in the output layer of the model is equal to one, and the prediction error is output. The architecture of the positioning error prediction model for forecasting MWPC_Error is similar to that for forecasting MPC_Error. As described in Section 3.2.2, the data used by the WCKNN regression algorithm only involves Wi-Fi and Bluetooth fingerprints. Therefore, for the positioning error prediction model used to predict MPC_Error, only Wi-Fi and Bluetooth fingerprints are input in the input layer, the connection between the MF and the neurons is cut off in the hidden layer, while the output layer remains unchanged.

4. Results and Discussion

In this section, the positioning and localization results based on the proposed method were presented. The data set was split (80% training,10% validation, 10% test), 1123 samples were available for training, 141 for validation, and 141 for testing. The main factor in model classification performance evaluation is the accuracy based on the test data. Accuracy refers to the degree of consistency between predicted results and measured results, which provides us with more certainty whether an unknown measurement point can be correctly classified.
A c c u r a c y ( c ) = | c C o r r e c t | | c C o r r e c t | + | c I n c o r r e c t |
The formula in Equation (15) is the accuracy of a given c class. c C o r r e c t indicates that actual C is predicted as C, and c I n c o r r e c t indicates that actual C is predicted as non-C. In order to determine the accuracy of the proposed method, the proportion of all samples correctly predicted needs to be calculated.
To evaluate the regression performance of the model, we employed mean average error (MAE), maximum error (ME), and root-mean-square error (RMSE), which are common evaluation indicators used in regression models. As shown in Table 4, it represents the sample standard deviation of the differences between predicted position coordinate ( y ^ i ) and measured position coordinate ( y i ).

4.1. Effect of Using Multi-Task Learning Alone

To study the prediction performance of the proposed model MTL, in this section, MTL was used to achieve multi-type fingerprints indoor positioning and localization. This way was named the multi-type fingerprints indoor positioning and localization method based on MTL in this work. The principle is to use the useful information contained in the tasks of predicting symbol locations and position coordinates to improve their performance to a certain extent.
Figure 11 shows the performance of MTL in training and validation data. The classification task of the MTL model produced 100% accuracy in the training data and 98.60% accuracy in validation data. In the regression task, the training loss of the MTL had steadily decreased around 0 after 175 epochs. In contrast, the validation loss dropped around 0.55. Moreover, it can be seen from the figure that training loss and validation loss have been declining, and validation loss has not picked up. This indicates that the architecture and parameter settings of the proposed MTL model are successful.
Since follow-up experiments need to use MTL, this paper chooses the model with more frequent test results to represent the performance of MTL. The MTL provided 98.58% accuracy of predicting the symbol locations of multi-type fingerprints in the test data. In terms of predicting the position coordinates, the MAE of the MTL was 2.46 m with a ME of 11.45 m and an RMSE of 3.71 m. At the same time, the accuracy of the test data is very close to that of the training data and validation data, which further proves that the model has no over-fitting and the architecture and parameter setting are effective.

4.2. Effect of K-Nearest Neighbor Based on Different Types of Fingerprints

From the perspective of information theory, the more information we know about a certain point, the more certain the symbol location and position coordinate of that point can be. However, if we collect noise, it is not only useless for our prediction but also affects our correct judgment. According to the analysis in Section 3.2, we know that the MF fingerprint is a kind of noise to the KNN algorithm. Therefore, in this section, we discuss the impact of Wi-Fi, Bluetooth, and multi-type fingerprints on the performance of the KNN algorithm.
To determine the efficiency of the algorithm, the value of K in the KNN algorithm was changed to make the algorithm more efficient in the IIS environment. The value of K was set from 1 to 9. Figure 12 shows the test results of the KNN algorithm based on different types of fingerprints at different K values. The left figure in Figure 12 shows the accuracy of predicting symbol locations. When K= 4 and K= 8, the highest accuracy of the KNN algorithm based on Wi-Fi fingerprint was 92.20%, which is an increase of 1.93% compared with the highest accuracy of the KNN algorithm based on Bluetooth fingerprint. In contrast, the highest accuracy of the KNN algorithm based on Wi-Fi and Bluetooth fingerprints was 97.16%. From the right figure in Figure 12, it can be seen that the lowest MAE of the KNN algorithm based on Wi-Fi fingerprint was 3.01 m at K = 6, which is a decrease of 1.20 m compared to the lowest MAE of the KNN algorithm based on Bluetooth fingerprint. In contrast, the lowest MAE of the KNN algorithm based on Wi-Fi and Bluetooth fingerprints was 2.5 m at K = 1. However, as the value of K increases, the MAE of the KNN algorithm based on Wi-Fi and Bluetooth fingerprints gradually increases, while the MAE of the KNN algorithm based on Wi-Fi fingerprint has been declining. When K was greater than 8, the precision of the KNN algorithm based on Wi-Fi fingerprint exceeded the precision of the KNN algorithm based on Wi-Fi and Bluetooth fingerprints. This is not only due to the influence of K value, but also more likely due to the increase of K value, resulting in Bluetooth fingerprint gradually become the noise of KNN algorithm based on Wi-Fi and Bluetooth fingerprints, rather than useful information.
In summary, when Wi-Fi and Bluetooth fingerprints are used together, the positioning effect is better than that when used alone. In theory, increasing the complexity of information can enhance the performance of the algorithm. However, it is still necessary to find an effective method to process this information, otherwise, the increase in information complexity may bring more uncertainty to the algorithm.

4.3. Effect of Using Weight Coefficients K-Nearest Neighbo Alone

This section analyzes the effect of the multi-type fingerprints indoor positioning and localization method based on WCKNN. Its principle is to consider the influence of different types of fingerprints on the similarity between multi-type fingerprints, so as to judge the similarity between multi-type fingerprints accurately.
The weight coefficients of Equations (10) and (14) can be obtained by the backpropagation neural network. In order to reduce the computational complexity, the optimal solution of the weight coefficients after normalization is that w 1 is 0.718, w 2 is 0.282, m 1 is 0.897, and m 2 is 0.103. Where w 1 is greater than w 2 , it indicates that the similarity between symbol locations depends more on the similarity between Wi-Fi fingerprints. Therefore, the correlation between symbol locations and Wi-Fi fingerprints is stronger than that with Bluetooth fingerprints. Similarly, it can be seen from the comparison between m 1 and m 2 that the similarity between position coordinates depends more on the similarity between Wi-Fi fingerprints, and the correlation between position coordinates and Wi-Fi fingerprints is stronger than that with Bluetooth fingerprints. These conclusions are the same as those obtained from the MIC and the correlation coefficient in Section 3.2, so the obtained weight coefficients are credible. The theoretical analysis proves that compared with the KNN algorithm, the proposed WCKNN algorithm considers the impact of different types of fingerprints on the prediction target when determining the similarity between multi-type fingerprints. In order to further validate the analytical results and performance, the WCKNN is compared with the KNN algorithm from two aspects: the accuracy of predicting symbol locations and the MAE of predicting position coordinates.
Figure 13 shows the test results of KNN and WCKNN at different K values. It can be seen that WCKNN has a better prediction effect. Its prediction accuracy and precision are significantly better than KNN. The left figure in Figure 13 shows the accuracy of predicting symbol locations. When K = 2 and K = 4, the highest accuracy of WCKNN was 97.87%, which is an increase of 0.71% compared with the highest accuracy of KNN. Moreover, when K = 6, the maximum difference in accuracy between the two algorithms is 2.13%. The WCKNN classification algorithm had higher accuracy in predicting symbol locations than the KNN classification algorithm. From the right figure in Figure 13, it can be seen that the lowest MAE of WCKNN was 2.43 m at K = 2, which is a decrease of 0.05 m compared to the lowest MAE of KNN. Moreover, when K = 9, the maximum difference in MAE between the two algorithms was 0.22 m. The WCKNN regression algorithm had lower MAE in predicting position coordinates than the KNN regression algorithm. The test data verified that the performance of the WCKNN algorithm is better than the MTL algorithm.

4.4. Multi-Type Fingerprints Indoor Positioning and Localization Method Based on MTL and WCKNN

By comparing the test results of MTL and WCKNN, it was found that MTL achieves higher accuracy in predicting symbol locations, but WCKNN has better performance in predicting position coordinates than MTL. The clusters are constructed based on the symbol location obtained by MTL to reduce the positioning range of the WCKNN algorithm.
This section analyzes the multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN (MTL_WCKNN). Figure 14 shows the test results of MTL_WCKNN and WCKNN in predicting position coordinates at different K values. When K = 2, both MTL_WCKNN and WCKNN had the lowest MAEs of 2.11 m and 2.43 m, respectively, and the difference between them is 0.32 m. Moreover, when K = 6 and K = 9, the maximum difference in MAE between the two algorithms is 0.36 m. Compared with MTL and WCKNN, the MTL_WCKNN had a better positioning performance. We can see from the above experimental results that when the value of K is 2, both WCKNN and MTL_WCKNN algorithms have the best positioning performance. In order to obtain more reliable study results, in the following experiments, the value of K of the WCKNN and MTL_WCKNN algorithms was set to 2.
Figure 15 shows the positioning errors of MTL_WCKNN, MTL, and WCKNN. The positioning effect of MTL_WCKNN is more accurate than those of MTL and WCKNN. Its number of large errors is less than those of MTL and WCKNN. The MEs of MTL and WCKNN were 11.45 m and 17.52 m, respectively, while the ME of MTL_WCKNN was 7.07 m, indicating that MTL_WCKNN has better positioning performance and can prevent larger errors. Moreover, the MAEs of MTL, WCKNN, and MTL_WCKNN were 2.46 m, 2.44 m, and 2.11 m, respectively. Compared with MTL and WCKNN, the MTL_WCKNN increased the positioning precision by 0.35 m and 0.33 m, respectively. The RMSEs of MTL, WCKNN, and MTL_WCKNN were 3.71 m, 4.06 m, and 1.97 m, respectively. It can be seen that the positioning effect of MTL_WCKNN was improved to a certain extent when compared with that of MTL and WCKNN.
Figure 16 shows the cumulative distribution functions (CDFs) of the positioning errors of MTL_WCKNN, MTL, and WCKNN. CDF is the integral of the probability density function, which can completely describe the probability distribution of the average error. When MTL and WCKNN were used together, its positioning effect was better than that when used independently. The ME of MTL_WCKNN was smaller than that of MTL and WCKNN, as well as there are fewer large errors. Therefore, the positioning effect of MTL_WCKNN was better than that of MTL and WCKNN.

4.5. Adaptive Multi-Type Fingerprints Indoor Positioning and Localization Method Based on MTL and WCKNN

The positioning results of MTL_WCKNN and WCKNN are limited by the surrounding neighbors, which leads to small discontinuities in their positioning error intervals. As shown in Figure 16, the CDF curves of MTL_WCKNN and WCKNN show a type of stairs to rise. In contrast, the MTL is not affected by the surrounding samples, and its CDF curve shows a smooth type to rise. In order to mitigate the impact of the surrounding neighbors on the object estimation range, the positioning error prediction models are used to provide the positioning errors as the confidence of position coordinates. The position coordinates obtained by MTL and MTL_WCKNN are then fused by the weighted average method whose weights are the positioning errors, thereby achieving adaptive positioning.
This section analyzes the adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN (MTL_WCKNN_EP). Figure 17 shows the positioning errors of MTL_WCKNN_EP, MTL, and WCKNN. The MTL_WCKNN_EP was achieved with an MAE of 1.95 m, an ME of 8.36 m, and an RMSE of 1.92 m. The positioning effect of MTL_WCKNN_EP was the best among MTL, MTL_WCKNN, and MTL_WCKNN_EP. The positioning precision and stability were better than those of the MTL and MTL_WCKNN.
The CDFs of the positioning errors of MTL_WCKNN_EP, MTL, and MTL_WCKNN are shown in Figure 18. It can be seen that MTL_WCKNN_EP has the best positioning effect. With the help of the positioning error prediction models, the CDF curve of MTL_WCKNN_EP showed a smooth type to rise, which mitigated the influence of the surrounding samples to a certain extent and improved the positioning precision. The positioning effect of MTL_WCKNN_EP was superior to MTL_WCKNN. The ME of MTL_WCKNN_EP was 8.36 m, which was a decrease of 3.09 m when compared with MTL. However, the ME of MTL_WCKNN was 7.07 m, which is smaller than that of MTL_WCKNN_EP. Although the ME of MTL_WCKNN is better than that of MTL_WCKNN_EP, we can still see from the figure that MTL_WCKNN_EP can better avoid the occurrence of larger errors.
Table 5 shows the statistics for the positioning errors of MTL, WCKNN, MTL_WCKNN, and MTL_WCKNN_EP. The MAE of MTL_WCKNN was 2.11 m with an RMSE of 1.97 m. It was found that although MTL_WCKNN showed a more significant improvement compared to MTL and WCKNN, this improvement was limited to a certain extent by the distribution of samples. The MAE and RMSE of MTL_WCKNN_EP were 1.95 m and 1.92 m, respectively. Compared with MTL and WCKNN, the positioning precision increased by 20.73% and 20.08%, and the RMSE decreased by 1.79 m and 2.14 m, respectively. Its positioning precision and stability were significantly improved when compared with MTL and WCKNN. Compared with MTL_WCKNN, the positioning precision of MTL_WCKNN_EP increased by 7.58%, and the RMSE decreased by 0.05 m. The positioning effect of MTL_WCKNN_EP also showed a definite improvement when compared with MTL_WCKNN.
There is a certain relationship between model performance and model complexity. Table 6 shows statistics about the complexity of MTL, WCKNN, MTL_WCKNN, and MTL_WCKNN_EP. The parameters of the WCKNN classification algorithm and the WCKNN regression algorithm only involve the value of K and two-weight coefficients. In contrast, the MTL method is based on a neural network and has a huge amount of parameters, and the parameter quantity is proportional to the depth and width of the neural network, as well as the input feature quantity. MTL_WCKNN is formed by the series connection of MTL and WCKNN, as shown in the table, its parameter is equal to the sum of MTL and WCKNN. MTL_WCKNN_EP has the largest number of parameters, because it adds a neural network-based DNN model to achieve adaptive positioning. As the parameter and complexity of the model increase, the positioning performance is also significantly improved. Moreover, although neural network-based methods have higher complexity than traditional machine learning methods, they also bring higher accuracy and stability to positioning.

4.6. Comparison of Findings with Other Studies

The present study of the Miskolc IIS Hybrid IPS dataset focused more on the classification of symbol location. The most successful method based on deep learning algorithms seems to be the Artificial Neural Network (ANN) proposed by Tamas et al. [43]. In [43], the learning rate, momentum and other parameters of ANN algorithm are selected differently, and the optimal result is 96.77%. However, the accuracy of the proposed MTL algorithm in this paper is 98.58%, which is 1.81% higher than that of the ANN. Based on the traditional machine learning algorithm, the four methods of KNN, Naive Bayes, Decision Tree, and Rule Induction were experimented and compared in [44]. The KNN classifier had the best performance (92.26%) when the K parameter was 3. However, through data pre-processing, the highest accuracy of the WCKNN algorithm proposed in this paper is 97.87%, which is 5.61% higher than the KNN. According to the findings, it is obvious that our proposed algorithms can achieve higher performance than the existing algorithms.

5. Conclusions

This paper studies a combination algorithm of a traditional machine learning algorithm and a deep learning algorithm for positioning and localization, and proposes an adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN to realize the integration of MF, Wi-Fi, and Bluetooth fingerprints. Moreover, the method realizes adaptive positioning by judging the confidence of the positioning results. Through our experiments, this fusion method shows a better positioning effect than MTL or WCKNN algorithm alone. Its positioning precision and stability were also higher than that of a multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN. In addition, it is clear that the proposed algorithms have a better performance than other algorithms, including the ANN algorithm and the KNN algorithm. The proposed method can make full use of the MF, Bluetooth, and Wi-Fi in indoor environments to realize indoor positioning and localization with higher accuracy, precision, and stability. Therefore, this method has the potential to be an effective and general method for the future design of high-performance positioning and positioning services. However, the amount of computation and storage required is larger than that required for ordinary indoor positioning and localization method. Thus, future research is needed to investigate how to optimize our algorithms and establish sparse neural networks.

Author Contributions

Conceptualization, Z.Y. and X.Z. (Xupeng Zha); Investigation, X.Z. (Xiaojian Zhang); Methodology, Z.Y. and X.Z. (Xupeng Zha); Visualization, X.Z. (Xiaojian Zhang) and Z.Y.; Writing-original draft, Z.Y. and X.Y. (Xupeng Zha); Writing-review & editing, Z.Y. and X.Z. (Xupeng Zha); Funding acquisition, Z.Y. All authors have read and agreed to the published version of the manuscript.

Funding

The project was funded by the National Nature Science Foundation of China [grant number 41971365].

Acknowledgments

The authors thank the editors and reviewers of this paper for their comments with which its quality was improved.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Leitinger, E.; Fröhle, M.; Meissner, P.; Witrisal, K. Multipath-assisted maximum-likelihood indoor positioning using UWB signals. In Proceedings of the 2014 IEEE International Conference on Communications Workshops, Sydney, Australia, 10–14 June 2014; pp. 170–175. [Google Scholar]
  2. Yu, K.; Montillet, J.p.; Rabbachin, A.; Cheong, P.; Oppermann, I. UWB location and tracking for wireless embedded networks. Signal Process. 2006, 86, 2153–2171. [Google Scholar] [CrossRef]
  3. Li, H. Low-cost 3d bluetooth indoor positioning with least square. Wirel. Pers. Commun. 2014, 78, 1331–1344. [Google Scholar] [CrossRef]
  4. Cantón Paterna, V.; Calveras Auge, A.; Paradells Aspas, J.; Perez Bullones, M.A. A bluetooth low energy indoor positioning system with channel diversity, weighted trilateration and kalman filtering. Sensors 2017, 17, 2927. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Rida, M.E.; Liu, F.; Jadi, Y.; Algawhari, A.A.A.; Askourih, A. Indoor location position based on bluetooth signal strength. In Proceedings of the 2015 2nd International Conference on Information Science and Control Engineering, Shanghai, China, 24–26 April 2015; pp. 769–773. [Google Scholar]
  6. Pu, Y.C.; You, P.C. Indoor positioning system based on BLE location fingerprinting with classification approach. Appl. Math. Model. 2018, 62, 654–663. [Google Scholar] [CrossRef]
  7. Zhuang, Y.; Syed, Z.; Li, Y.; El-Sheimy, N. Evaluation of two WiFi positioning systems based on autonomous crowdsourcing of handheld devices for indoor navigation. IEEE Trans. Mob. Comput. 2015, 15, 1982–1995. [Google Scholar] [CrossRef]
  8. Yang, C.; Shao, H.R. WiFi-based indoor positioning. IEEE Commun. Mag. 2015, 53, 150–157. [Google Scholar] [CrossRef]
  9. Ma, Y.; Tian, C.; Jiang, Y. A Multitag Cooperative Localization Algorithm Based on Weighted Multidimensional Scaling for Passive UHF RFID. IEEE Internet Things J. 2019, 6, 6548–6555. [Google Scholar] [CrossRef]
  10. Ni, L.M.; Zhang, D.; Souryal, M.R. RFID-based localization and tracking technologies. IEEE Wirel. Commun. 2011, 18, 45–51. [Google Scholar] [CrossRef]
  11. Huang, H.; Li, W.; Luo, D.A.; Qiu, D.W.; Gao, Y. An improved particle filter algorithm for geomagnetic indoor positioning. J. Sens. 2018, 2018, 5989678. [Google Scholar] [CrossRef] [Green Version]
  12. Afzal, M.H.; Renaudin, V.; Lachapelle, G. Assessment of indoor magnetic field anomalies using multiple magnetometers. In Proceedings of the ION GNSS 2010, Ortland, OR, USA, 21–24 September 2010. [Google Scholar]
  13. Chung, J.; Donahoe, M.; Schmandt, C.; Kim, I.J.; Razavai, P.; Wiseman, M. Indoor location sensing using geo-magnetism. In Proceedings of the 9th International Conference on Mobile Systems, Applications, and Services, Bethesda, MD, USA, 28 June–1 July 2011; pp. 141–154. [Google Scholar]
  14. Prabhakar, S.; Jain, A.K.; Pankanti, S. Learning fingerprint minutiae location and type. Pattern Recognit. 2003, 36, 1847–1857. [Google Scholar] [CrossRef]
  15. Sciarrone, A.; Fiandrino, C.; Bisio, I.; Lavagetto, F.; Kliazovich, D.; Bouvry, P. Smart probabilistic fingerprinting for indoor localization over fog computing platforms. In Proceedings of the 2016 5th IEEE International Conference on Cloud Networking (Cloudnet), Pisa, Italy, 3–6 October 2016; pp. 39–44. [Google Scholar]
  16. Li, B.; Gallagher, T.; Rizos, C.; Dempster, A.G. Using geomagnetic field for indoor positioning. J. Appl. Geod. 2013, 7, 299–308. [Google Scholar] [CrossRef]
  17. Ma, M.; Song, Q.; Gu, Y.; Zhou, Z. Use of magnetic field for mitigating gyroscope errors for indoor pedestrian positioning. Sensors 2018, 18, 2592. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Xue, W.; Qiu, W.; Hua, X.; Yu, K. Improved Wi-Fi RSSI measurement for indoor localization. IEEE Sens. J. 2017, 17, 2224–2230. [Google Scholar] [CrossRef]
  19. Chen, X.; Zou, S. Improved Wi-Fi indoor positioning based on particle swarm optimization. IEEE Sens. J. 2017, 17, 7143–7148. [Google Scholar] [CrossRef]
  20. Chen, L.; Pei, L.; Kuusniemi, H.; Chen, Y.; Kröger, T.; Chen, R. Bayesian fusion for indoor positioning using bluetooth fingerprints. Wirel. Pers. Commun. 2013, 70, 1735–1745. [Google Scholar] [CrossRef]
  21. Faragher, R.; Harle, R. Location fingerprinting with bluetooth low energy beacons. IEEE J. Sel. Areas Commun. 2015, 33, 2418–2428. [Google Scholar] [CrossRef]
  22. Pei, L.; Liu, J.; Chen, Y.; Chen, R.; Chen, L. Evaluation of fingerprinting-based WiFi indoor localization coexisted with Bluetooth. J. Glob. Position. Syst. 2017, 15, 3. [Google Scholar] [CrossRef] [Green Version]
  23. Baniukevic, A.; Jensen, C.S.; Lu, H. Hybrid indoor positioning with Wi-Fi and bluetooth: Architecture and performance. In Proceedings of the 2013 IEEE 14th International Conference on Mobile Data Management, Milan, Italy, 3–6 June 2013; Volume 1, pp. 207–216. [Google Scholar]
  24. Bozkurt Keser, S.; Yazici, A.; Gunal, S. An F-Score-Weighted Indoor Positioning Algorithm Integrating WiFi and Magnetic Field Fingerprints. Mob. Inf. Syst. 2018, 2018, 7950985. [Google Scholar] [CrossRef] [Green Version]
  25. Baniukevic, A.; Sabonis, D.; Jensen, C.S.; Lu, H. Improving wi-fi based indoor positioning using bluetooth add-ons. In Proceedings of the 2011 IEEE 12th International Conference on Mobile Data Management, Lulea, Sweden, 6–9 June 2011; Volume 1, pp. 246–255. [Google Scholar]
  26. Cao, H.; Wang, Y.; Bi, J.; Qi, H. An Adaptive Bluetooth/Wi-Fi Fingerprint Positioning Method based on Gaussian Process Regression and Relative Distance. Sensors 2019, 19, 2784. [Google Scholar] [CrossRef] [Green Version]
  27. Ruder, S. An overview of multi-task learning in deep neural networks. arXiv 2017, arXiv:1706.05098. [Google Scholar]
  28. Xue, Y.; Liao, X.; Carin, L.; Krishnapuram, B. Multi-task learning for classification with dirichlet process priors. J. Mach. Learn. Res. 2007, 8, 35–63. [Google Scholar]
  29. Du, X.; El-Khamy, M.; Lee, J.; Davis, L. Fused DNN: A deep neural network fusion approach to fast and robust pedestrian detection. In Proceedings of the 2017 IEEE Winter Conference on Applications Of Computer Vision (WACV), Santa Rosa, CA, USA, 24–31 March 2017; pp. 953–961. [Google Scholar]
  30. Hinton, G.E.; Salakhutdinov, R.R. Reducing the dimensionality of data with neural networks. Science 2006, 313, 504–507. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Yi, X.; Paulet, R.; Bertino, E.; Varadharajan, V. Practical k nearest neighbor queries with location privacy. In Proceedings of the 2014 IEEE 30th International Conference on Data Engineering, Chicago, IL, USA, 31 March–4 April 2014; pp. 640–651. [Google Scholar]
  32. Cover, T.; Hart, P. Nearest neighbor pattern classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef]
  33. Hightower, J.; Borriello, G. Location systems for ubiquitous computing. Computer 2001, 34, 57–66. [Google Scholar] [CrossRef] [Green Version]
  34. Jiang, J.; Guan, W.; Chen, Z.; Chen, Y. Indoor high-precision three-dimensional positioning algorithm based on visible light communication and fingerprinting using K-means and random forest. Opt. Eng. 2019, 58, 016102. [Google Scholar] [CrossRef]
  35. Cook, B.; Buckberry, G.; Scowcroft, I.; Mitchell, J.; Allen, T. Indoor location using trilateration characteristics. In Proc. London Communications Symposium; Citeseer: London, UK, 2005; pp. 147–150. [Google Scholar]
  36. Huang, C.N.; Chan, C.T. ZigBee-based indoor location system by k-nearest neighbor algorithm with weighted RSSI. Procedia Comput. Sci. 2011, 5, 58–65. [Google Scholar] [CrossRef] [Green Version]
  37. Félix, G.; Siller, M.; Alvarez, E.N. A fingerprinting indoor localization algorithm based deep learning. In Proceedings of the 2016 Eighth International Conference on Ubiquitous and Future Networks (ICUFN), Vienna, Austria, 5–8 July 2016; pp. 1006–1011. [Google Scholar]
  38. 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]
  39. Rahman, M.S.; Park, Y.; Kim, K.D. RSS-based indoor localization algorithm for wireless sensor network using generalized regression neural network. Arab. J. Sci. Eng. 2012, 37, 1043–1053. [Google Scholar] [CrossRef]
  40. Tóth, Z.; Tamás, J. Miskolc IIS hybrid IPS: Dataset for hybrid indoor positioning. In Proceedings of the 2016 26th International Conference Radioelektronika (RADIOELEKTRONIKA), Kosice, Slovakia, 19–20 April 2016; pp. 408–412. [Google Scholar]
  41. Dua, D.; Graff, C. UCI Machine Learning Repository. Available online: http://archive.ics.uci.edu/ml (accessed on 18 September 2020).
  42. Tóth, Z. Ilona: Indoor localization and navigation system. J. Locat. Based Serv. 2016, 10, 285–302. [Google Scholar] [CrossRef]
  43. Tamas, J.; Toth, Z. Topology-Based Evaluation for Symbolic Indoor Positioning Algorithms. IEEE Trans. Ind. Appl. 2019, 55, 6324–6331. [Google Scholar] [CrossRef]
  44. Tamas, J.; Toth, Z. Classification-based symbolic indoor positioning over the Miskolc IIS Data-set. J. Locat. Based Serv. 2018, 12, 2–18. [Google Scholar] [CrossRef]
  45. Caruana, R. Multitask Learning: A Knowledge-Based Source of Inductive Bias ICML. In Proceedings of the Tenth International Conference on Machine Learning, Banff, AB, Canada, 12–15 Octorber 1993; pp. 220–227. [Google Scholar]
  46. Duong, L.; Cohn, T.; Bird, S.; Cook, P. Low resource dependency parsing: Cross-lingual parameter sharing in a neural network parser. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing, Short Papers, Beijing, China, 26–31 July 2015; Volume 2, pp. 845–850. [Google Scholar]
  47. Murphy, K.P. Machine Learning: A Probabilistic Perspective; MIT Press: Cambridge, MA, USA, 2012. [Google Scholar]
Figure 1. Positioning and localization method.
Figure 1. Positioning and localization method.
Sensors 20 05416 g001
Figure 2. Structure of the Institute, where the colors distinguish each symbol location.
Figure 2. Structure of the Institute, where the colors distinguish each symbol location.
Sensors 20 05416 g002
Figure 3. Flow diagram of adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN.
Figure 3. Flow diagram of adaptive multi-type fingerprints indoor positioning and localization method based on MTL and WCKNN.
Sensors 20 05416 g003
Figure 4. Architecture of MTL.
Figure 4. Architecture of MTL.
Sensors 20 05416 g004
Figure 5. Scatter plots and MICs for the distance between fingerprints and the distance between symbol locations in the training dataset. (a) The distance between MFs and the distance between symbol locations. (b) The distance between Wi-Fis and the distance between symbol locations. (c) The distance between Bluetooths and the distance between symbol locations.
Figure 5. Scatter plots and MICs for the distance between fingerprints and the distance between symbol locations in the training dataset. (a) The distance between MFs and the distance between symbol locations. (b) The distance between Wi-Fis and the distance between symbol locations. (c) The distance between Bluetooths and the distance between symbol locations.
Sensors 20 05416 g005
Figure 6. Pearson correlation coefficient between the distance between fingerprints and the distance between symbol locations.
Figure 6. Pearson correlation coefficient between the distance between fingerprints and the distance between symbol locations.
Sensors 20 05416 g006
Figure 7. Scatter plots and MICs for the distance between fingerprints and the distance between position coordinates in the training dataset. (a) The distance between MFs and the distance between position coordinates. (b) The distance between Wi-Fis and the distance between position coordinates. (c) The distance between Bluetooths and the distance between position coordinates.
Figure 7. Scatter plots and MICs for the distance between fingerprints and the distance between position coordinates in the training dataset. (a) The distance between MFs and the distance between position coordinates. (b) The distance between Wi-Fis and the distance between position coordinates. (c) The distance between Bluetooths and the distance between position coordinates.
Sensors 20 05416 g007
Figure 8. Pearson correlation coefficient between the distance between fingerprints and the distance between position coordinates.
Figure 8. Pearson correlation coefficient between the distance between fingerprints and the distance between position coordinates.
Sensors 20 05416 g008
Figure 9. Flow diagram of the process of constructing the positioning error prediction dataset.
Figure 9. Flow diagram of the process of constructing the positioning error prediction dataset.
Sensors 20 05416 g009
Figure 10. Architecture of DNN.
Figure 10. Architecture of DNN.
Sensors 20 05416 g010
Figure 11. Performance of MTL in training and validation data. Red curves indicate training data, and blue curves indicate validation data. (Left): Classification task. (Right): Regression task.
Figure 11. Performance of MTL in training and validation data. Red curves indicate training data, and blue curves indicate validation data. (Left): Classification task. (Right): Regression task.
Sensors 20 05416 g011
Figure 12. Test results of KNN based on different types of fingerprints at different K values. Blue curves represent the KNN algorithm based on Wi-Fi fingerprint, orange curves represent the KNN algorithm based on Bluetooth fingerprint, and green curves represent the KNN algorithm based on Wi-Fi and Bluetooth fingerprints. (Left): Accuracy of predicted symbol location. (Right): MAE of predicted position coordinate.
Figure 12. Test results of KNN based on different types of fingerprints at different K values. Blue curves represent the KNN algorithm based on Wi-Fi fingerprint, orange curves represent the KNN algorithm based on Bluetooth fingerprint, and green curves represent the KNN algorithm based on Wi-Fi and Bluetooth fingerprints. (Left): Accuracy of predicted symbol location. (Right): MAE of predicted position coordinate.
Sensors 20 05416 g012
Figure 13. Test results of KNN and WCKNN at different K values. Orange curves indicate the KNN algorithm, and blue curves indicate the WCKNN algorithm. Left: Accuracy of predicted symbol location. Right: MAE of predicted position coordinate.
Figure 13. Test results of KNN and WCKNN at different K values. Orange curves indicate the KNN algorithm, and blue curves indicate the WCKNN algorithm. Left: Accuracy of predicted symbol location. Right: MAE of predicted position coordinate.
Sensors 20 05416 g013
Figure 14. Test results of MTL_WCKNN and WCKNN in predicting position coordinates at different K values. The blue curve indicates the WCKNN algorithm, and the orange curve indicates the MTL_WCKNN algorithm.
Figure 14. Test results of MTL_WCKNN and WCKNN in predicting position coordinates at different K values. The blue curve indicates the WCKNN algorithm, and the orange curve indicates the MTL_WCKNN algorithm.
Sensors 20 05416 g014
Figure 15. Positioning errors of MTL_WCKNN, MTL, and WCKNN.
Figure 15. Positioning errors of MTL_WCKNN, MTL, and WCKNN.
Sensors 20 05416 g015
Figure 16. CDFs of positioning errors of MTL_WCKNN, MTL, and WCKNN.
Figure 16. CDFs of positioning errors of MTL_WCKNN, MTL, and WCKNN.
Sensors 20 05416 g016
Figure 17. Positioning errors of MTL_WCKNN_EP, MTL, and MTL_WCKNN.
Figure 17. Positioning errors of MTL_WCKNN_EP, MTL, and MTL_WCKNN.
Sensors 20 05416 g017
Figure 18. CDFs of positioning errors of MTL_WCKNN_EP, MTL, and MTL_WCKNN.
Figure 18. CDFs of positioning errors of MTL_WCKNN_EP, MTL, and MTL_WCKNN.
Sensors 20 05416 g018
Table 1. Number of measured points in symbol locations.
Table 1. Number of measured points in symbol locations.
Symbol Location# of NumberSymbol Location# of Number
Ground Floor West Corridor68Ground Floor Lobby208
Ground Floor East Corridor1031st Floor Lobby151
2nd Floor West Corridor862nd Floor Lobby175
2nd Floor East Corridor86Lecture Hall XXVI77
1st Floor West Corridor56Lab10170
1st Floor East Corridor59Lab103108
Lecture Hall 20563Lab10463
Lab 11532
Table 2. The schema of the experimental data.
Table 2. The schema of the experimental data.
Location InformationPosition InformationMeasurements
Symbol LocationAbsolute CoordinatesMagnetic FieldWi-FiBluetooth
12–45–78–3940–62
Table 3. Main parameters of MTL.
Table 3. Main parameters of MTL.
Learning RateBatch SizeOptimizerLoss FunctionLoss Weight
0.00165AdamCategorical_crossentropy1
Mean-square error (MSE)0.8
Table 4. Regression metrics.
Table 4. Regression metrics.
MetricEquation
Mean Average Error (MAE)MAE= 1 n i = 1 n | y i y ^ i |
Maximum Error (ME)ME= max 1 i n | y i y ^ i |
Root-Mean-Square Error (RMSE)RMSE= i = 1 n ( y i M A E ) 2 n
Table 5. Statistical results of positioning errors (m).
Table 5. Statistical results of positioning errors (m).
MethodMAEMERMSE
MTL2.4611.453.71
WCKNN2.4417.524.06
MTL_WCKNN2.117.071.97
MTL_WCKNN_EP1.958.361.92
Table 6. Statistical results of complexity.
Table 6. Statistical results of complexity.
MethodMTLWCKNNMTL_WCKNNMTL_WCKNN_EP
Parameters1,223,91831,223,9213,143,251

Share and Cite

MDPI and ACS Style

Yuan, Z.; Zha, X.; Zhang, X. Adaptive Multi-Type Fingerprint Indoor Positioning and Localization Method Based on Multi-Task Learning and Weight Coefficients K-Nearest Neighbor. Sensors 2020, 20, 5416. https://doi.org/10.3390/s20185416

AMA Style

Yuan Z, Zha X, Zhang X. Adaptive Multi-Type Fingerprint Indoor Positioning and Localization Method Based on Multi-Task Learning and Weight Coefficients K-Nearest Neighbor. Sensors. 2020; 20(18):5416. https://doi.org/10.3390/s20185416

Chicago/Turabian Style

Yuan, Zhengwu, Xupeng Zha, and Xiaojian Zhang. 2020. "Adaptive Multi-Type Fingerprint Indoor Positioning and Localization Method Based on Multi-Task Learning and Weight Coefficients K-Nearest Neighbor" Sensors 20, no. 18: 5416. https://doi.org/10.3390/s20185416

APA Style

Yuan, Z., Zha, X., & Zhang, X. (2020). Adaptive Multi-Type Fingerprint Indoor Positioning and Localization Method Based on Multi-Task Learning and Weight Coefficients K-Nearest Neighbor. Sensors, 20(18), 5416. https://doi.org/10.3390/s20185416

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