Full text
IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 53 Autoencoder Extreme Learning Machine for Fingerprint-Based Positioning: A Good Weight Initialization is Decisive Darwin P. Quezada Gaibor , Lucie Klus , Student Member, IEEE, Roman Klus , Student Member, IEEE, Elena Simona Lohan , Senior Member, IEEE, Jari Nurmi , Mikko Valkama , Fellow, IEEE, Joaquín Huerta , and Joaquín Torres-Sospedra Abstract—Indoor positioning based on machine-learning (ML) models has attracted widespread interest in the last few years, given its high performance and usability. Supervised, semisupervised, and unsupervised models have thus been widely used in this field, not only to estimate the user position, but also to compress, clean, and denoise fingerprinting datasets. Some scholars have focused on developing, improving, and optimizing ML models to provide accurate solutions to the end user. This article introduces a novel method to initialize the input weights in autoencoder extreme learning machine (AE-ELM), namely factorized input data (FID), which is based on the normalized form of the orthogonal component of the input data. AE-ELM with FID weight initialization is used to efficiently reduce the radio map. Once the dimensionality of the dataset is reduced, we use k-nearest neighbors to perform the position estimation. This research work includes a comparative analysis with several traditional ways to initialize the input weights in AE-ELM, showing that FID provide a significantly better reconstruction error. Finally, we perform an assessment with 13 indoor positioning datasets collected from different buildings and in different countries. We show that the dimensionality of the datasets can be reduced more than 11 times on average, while the positioning error suffers only a small increment of 15% (on average) in comparison to the baseline. Index Terms—Autoencoder (AE), extreme learning machine (ELM), indoor positioning, singular value decomposition (SVD), weight initialization, Wi-Fi fingerprinting. I. INTRODUCTION GIVEN the high demand for indoor positioning services, it is of high importance to provide reliable solutions for indoor positioning systems (IPSs) in mobile and Internet of Things (IoT) devices. Indoor positioning—and in particular, Manuscript received 20 March 2023; revised 1 July 2023; accepted 17 July 2023. Date of publication 27 July 2023; date of current version 22 August 2023. This work was supported in part by the European Union’s Horizon 2020 Research and Innovation programme under the Marie Skłodowska Curie under Grant 813278 (A-WEAR: A network for dynamic wearable applications with privacy constraints), and Grant 101023072 (ORIENTATE: Low-cost Reliable Indoor Positioning in Smart Factories), and in part by the Academy of Finland under Grant 319994, Grant 323244, Grant 328214, Grant 338224, Grant 345654, and Grant 357730. (Corresponding author: Joaquín Torres-Sospedra; Darwin P. Quezada Gaibor.) Darwin P. Quezada Gaibor and Lucie Klus are with the Electrical Engineering Unit, Tampere University, 33720 Tampere, Finland, and also with the Institute of New Imaging Technologies, Universitat Jaume I, 12071 Castellón de la Plana, Spain (e-mail: [email protected]; [email protected]). Roman Klus, Elena Simona Lohan, Jari Nurmi, and Mikko Valkama are with the Electrical Engineering Unit, Tampere University, 33720 Tampere, Finland (e-mail: [email protected]; [email protected]; jari.nur[email protected]; mikko[email protected]). Joaquín Huerta is with the Institute of New Imaging Technologies, Universitat Jaume I, 12071 Castellón de la Plana, Spain (e-mail: huer[email protected]). Joaquín Torres-Sospedra is with the Centro ALGORITMI, Universidade do Minho, 4800-058 Guimarães, Portugal (e-mail: jtorres@ algoritmi.uminho.pt). Digital Object Identifier 10.1109/JISPIN.2023.3299433 fingerprinting—is a relevant research area for mobile computing, as researchers are continuously looking for new methods not only to improve the positioning accuracy [1],[2],[3] but also to reduce the costs of calibration (site survey) and the maintenance and/or execution at the operational phase [4],[5],[6],[7].In addition, despite the fact that the current devices and data centres have improved their storage resources significantly over the past few years, additional data optimization prior to the data storage is still required. Data optimization not only allows the efficient use of storage but also improves the speed of data extraction. The exploitation of the crowdsourcing and crowdsensing schemes to enrich the indoor positioning data collection, as well as the development of new methods that allow updating the radio map are two of the main reasons why IPSs became highly popular in the recent years [8]. However, a higher amount of available IPSs data might increment the data processing load and the time-to-estimate the user position. This high amount of data occurs due to a significant amount of samples collected nowadays by mobile devices for positioning, sensing, and/or communication purposes. In addition, the device diversity increases the heterogeneity of the datasets [9]. Several alternatives have been proposed to reduce the complexity and dimensionality of radio maps [10],[11],[12] and computational load at the operational stage [13]. Machine learning (ML) is one of the alternatives that has been successfully used for indoor positioning, not only to estimate the user position but also to reduce and denoise the radio maps. For instance, Jang and Hong [14] proposed a convolutional neural This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
54 IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 network (CNN) model to deal with the random effects due to wireless signal propagation in indoor scenarios. The CNN is mainly used to extract useful information from the data, given its strong filtering properties. As well as CNN, extreme learning machine (ELM), is becoming more and more popular to solve classification [15], regression [16], and data compression [17] problems. Unlike other algorithms, ELM provides lower training time, which makes it suitable for computationally restrained applications. In spite of the fact that deep learning and ELM are growing in popularity in the field of indoor positioning, k-nearest neighbors (k-NN) is still used as the core element of many IPS solutions to estimate the user location [10],[18],[19]. However, it is paramount to highlight that these models and algorithms can be, and have been, combined in more complex applications, e.g., Alitaleshi et al. [20] used autoencoder extreme learning machine (AE-ELM) with CNN to extract relevant information from the datasets and estimate the device position accurately. Autoencoder (AE)-based ML models were successfully used to transform high-dimensional data into a low-dimensional representation [21]. Generally, AEs are composed of two main submodels: the encoder, which is responsible for dimensionality reduction or data compression, and the decoder, which attempts to reconstruct the input data from the compressed or encoded representation. For instance, in [22], the authors used a selfencoder to reduce the dimensionality of IEEE 802.11 Wireless LAN (Wi-Fi) radio maps as well as a stacked model with the random-forest algorithm in order to reduce the positioning error. Consequently, the authors were able to improve the floor hit rate by more than 3% in comparison with the baselines. This work applies AE-ELM to reduce the radio-map dimensionality by extracting the most relevant features of the IPS dataset. Subsequently, k-nearest neighbors (k-NN) is applied on the reduced radio map to estimate the user or the device position. The core of this work is to provide a novel and efficient method to compute the input weights, in order to reduce the reconstruction error after decoding. Although, the orthogonal random initialization provides better performance than other random weight initialization methods, it can be further improved by using one of the orthogonal components, calculated from the input data using singular value decomposition (SVD). The main contributions of this article are the following. 1) Proposing factorized input data (FID), a novel analytical estimation of the input weights for AE-ELM. 2) Exhaustive assessment of FID against six traditional weight initialization methods from the literature. 3) Comprehensive comparison of various combinations of AE-ELM with different weight initialization methods, including the proposed method (FID), and algorithms to estimate the user/device position. Furthermore, we offer a performance analysis of the proposed combination (AE-ELM + FID + k-NN) against two ML models from the literature. We thus provide an overall view of the advantages and drawbacks of the different positioning solutions in terms of positioning accuracy. The rest of this article is organized as follows. Section II provides an overview of current studies in the field of interest. Section III provides a general description of ELM, AE-ELM, and weight initialization methods. Section IV introduces the proposed method, FID. Section Vshows the experimental setup and the primary results. Section VI provides a discussion of the advantages and drawbacks of FID. Finally, Section VII concludes this article. II. RELATED WORK This section reviews the related literature on Fingerprinting, radio map compression, and AE-ELM, highlighting how this article contributes to them. A. Wi-Fi Fingerprinting Positioning Fingerprinting, as a method of choice for indoor positioning purposes, has significantly gained in popularity in the recent decade. One of the major advantages of this solution is its independence from any path-loss model, as indoor localization is performed in rich scattering environments with numerous multipath components for each signal modeling. Utilizing path-loss models in such scenarios is either highly ineffective or computationally expensive, depending on the model’s parameters. In recent years, multiple indoor positioning surveys were published, such as [23],[24],[25],or[26], highlighting fingerprinting as one of the most relevant and reliable methods. Traditionally, fingerprinting is realized by matching the measurement array we want to localize with a database of similar arrays, which were obtained at known location coordinates. The matching algorithm is usually based on k-NN and weighted variants. Recently, Subedi and Pyun [27] combined k-NN with a weighted centroid algorithm. The method was able to reduce the number of fingerprints by 40% with a similar localization error. Duan et al. [28] proposed multiple improvements to fingerprinting, including an access point (AP) switching strategy, by considering multiple AP power levels and introducing a new matching algorithm called dynamic nearest neighbors, which enabled passive user localization. The combination of the magnetic field strength and channel state information measurements for fingerprinting purposes was realized in [29] and showed that such a combination outperformed the plain k-NN algorithm while identifying line-of-sight measurements. Cellular signals can also be used to perform indoor positioning. For example, Pecoraro et al. [30] used long term evolution channel frequency response fingerprints for localization, outperforming state-of- the-art methods. In this case, we combined two ML algorithms, namely AEELM + a new weight initialization method and k-NN, to compress/reduce the radio map and estimate the user/device position, respectively. Although AE-ELM significantly reduces the radio map size, the positioning error was not significantly affected, while in some cases, the positioning error was even reduced. B. Radio Map Compression Given the high importance of data compression and dimensionality reduction in today’s data management of Big Data databases, there are several emerging approaches. Many of them may be applied to radio-map data-size reduction [31]. Although
GAIBOR et al.: AUTOENCODER EXTREME LEARNING MACHINE FOR FINGERPRINT-BASED POSITIONING 55 the basic mechanism of each method may be different, their most important property is their capability to reduce the amount of data in any dimension, while keeping the information value as high as possible, and consequently, not reducing the quality of the data itself [32]. Many methods greatly reduce the size of the database, but significantly reduce the capability of the positioning system to accurately determine the position as well. The tradeoff margin between the achievable data compression and the reduction of the dataset’s positioning capabilities is a key mechanism, that establishes which method is suitable for a given task [33]. Although some of the methods are preserving or even improving their positioning capabilities, their achievable compression may not be sufficient, or the computational cost of the whole process may be too great to actually pay off. The higher the computational cost, the higher the financial cost required and/or the time needed to locate the user using that particular positioning system. In recent literature, several ML-based approaches were utilized in order to overcome some of these shortcomings. The majority of the methods present mechanisms capable of significantly reducing the database size while keeping comparable or better positioning accuracy to the benchmarks. Seong and Seo [34] proposed an algorithm based on the minimum description length principle and positioning based on the Chi-squares test. The authors achieved an improvement in positioning of up to 5% compared to the Euclidean distance method while decreasing the size of the original radio map by 38.56%. Similarly, Klus et al. [35] proposed a system involving k-means clustering and k-NN-based positioning, capable of compressing the received signal strength (RSS) fingerprinting dataset with compression ratios of up to 15.97. The proposed method slightly decreased the positioning error (by 1% on average) of the system, compared to the performance without the proposed compression on the considered datasets. Talvitie et al. [36] used a spectral compression in order to reduce the database used for fingerprinting maps. They achieved up to 80% of dataset size reduction, while the positioning accuracy remains comparable with the traditional approach. This approach is later broadened and deeply analyzed in [37]. In this study, we employed the AE-ELM technique to reduce the dimensionality of the radio map by over 1.5 times in each dataset. This not only decreases the training effort but also minimizes the compression error when compared to several benchmark methods. In addition, this approach facilitates effortless expansion of the training database. However, it is important to note that the average positioning error increased by 15% under asimple configuration. C. Autoencoder Extreme Learning Machine (AE-ELM) AEs are artificial neural network (ANN) structures from the unsupervised learning branch of ML. The difference over the typical ANN model lies in utilizing the same data as both training samples and labels, allowing an efficient feature extraction. AEs map the input into the same output through a hidden layer, also called encoder, which changes the passed information by increasing (e.g., sparse encoding) or decreasing (e.g., compression) the dimensionality of the data, or otherwise augmenting the data itself. The output layer, also called the decoder, transforms the encoded information back to its original form. The encoder’s output, denoted encoded layer, serves as an input of the decoder. AEs are nowadays utilized in numerous fields, including data compression [38], feature extraction [39],[40], encryption [41], channel coding [42], or indoor localization [43]. An end-to-end IPS based on the AE was also proposed in [44], where the authors specified two operational phases of the system as offline, used for model training, and online, for prediction and localization. The AE was able to significantly reduce the localization error when using ANN for location prediction. AE-ELM, proposed in [45], is a special type of the AE, which sets the weights of the encoder layer at random, and calculates the decoder weights using the least-squares method. The main advantage of such approach is to remove the necessity of an iterative training process. Ding et al. [46] showed the suitability of the AE-ELM in electroencephalogram classification. Another advantage of the AE-ELM is its ability to stack multiple models, resulting in a deep AE architecture with better compression capabilities. Nuha et al. [47] utilized a stacked AE-ELM to efficiently compress seismic data, achieving comparable performance with much lower training times and effort, compared to the benchmark. Lu et al. [48] utilized the AE-ELM structure for fingerprint-based indoor positioning, efficiently removing the noise from the measurements, increasing the positioning accuracy and reducing the worst-case error, compared to the other IPS. The suitability of the stacked AE-ELM was also evaluated in [21], where the proposed model outperformed the commonly utilized fingerprinting methods such as k-NN. In contrast to the literature, we propose an AE-ELM with novel weight preinitialization in the encoder. The proposed solution can learn the optimum weights from the input data, providing a stabilized performance compared to the randomly initialized AE. III. BACKGROUND In this section, we provide a general overview of ELM networks, AE-ELM, and weight initialization methods. This section also introduces the most common symbols used in this work (see Table I). A. Extreme Learning Machine (ELM) An ELM is considered as a learning method for single hidden layer feedforward neural network (SLFN), which improves training, learning, and weight initialization process [49].We consider an input with distinct Nsample pairs (i=1,...,N), represented as (xi,ti), where xi=[xi1,x i2,...,x in]T∈Rn(n is the number of features), ti=[ti1,t i2,...,t im]T∈Rm(mis the number “classes”). Then, the SLFN model can be represented as follows: fL(xj)= L i=1 βig(wi·xj+bi)tj,j =1,2,...,N (1)
56 IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 TABLE I SYMBOLS AND NOTATIONS where βi=[βi1,β i2,...,β im]Tis the weight vector that connects the ith hidden node with the output layer, g(·)is the activation function (AF) of the hidden layer, xjrepresents the input vector, wi=[wi1,w i2,...,w in]is the weight vector connecting the ith hidden nodes with the input layer, bi(bias term) represents the threshold of the ith hidden node and Lrepresents the number of hidden nodes in the hidden layer. Equation (1) can be also represented as Hβ=T(2) where H=⎡ ⎢ ⎢ ⎣ g(w1x1+b1)... g(wLx1+bL) . . ..... . . g(w1xN+b1)... g(wLxN+bL) ⎤ ⎥ ⎥ ⎦NxL (3) β=⎡ ⎢ ⎢ ⎣ βT 1 . . . βT L ⎤ ⎥ ⎥ ⎦L×m and T=⎡ ⎢ ⎢ ⎣ tT 1 . . . tT N ⎤ ⎥ ⎥ ⎦N×m (4) where Hrepresents the hidden layer output matrix of the SLFN [50] and Tis the training data target matrix. Huang et al. [49] demonstrated that the input weights (wi) and the hidden bias (bi) in the SLFN do not have to be necessarily adjusted or tuned as is done in traditional neural networks. In this case, instead of training an SLFN, it is only required to find the least-squares solution of (2). Thus, if the number of neurons in the hidden layer (L)isless than the number of the inputs (N)(L<N), Huang et al. [49] Fig. 1. AE-ELM general scheme. use the Moore–Penrose generalized inverse (H†)ofthematrix Hto solve the linear system (2), and therefore, the output weight matrix (β) can be calculated by β=H†T.(5) The aforementioned equation is the equation of the learning method for the SLFN, also called ELM. There are several methods to compute the Moore–Penrose generalized inverse, for instance, the orthogonal projection method [49], when HTHis nonsingular, as H†=(HTH)−1HT(6) or H†=HT(HTH)−1(7) when HHTis also nonsingular. In addition Huang et al. [49] mention that multiple AFs can be used with ELM, including periodic functions and nonlinear functions such as sine or sigmoid function, among others. B. Autoencoder (AE) In the case of the AE-ELM, the target output is identical to the input data, therefore, is using unsupervised learning. Thus, the AE-ELM compresses high-dimensional input data X (X=[xT 1,xT 2,...,xT N]T∈RN×n) into a low-dimensional representation H∈RN×L, preserving the meaningful information of the input data. In general, better performance can be achieved using the orthogonal random input weights and bias [51], instead of using uniformly distributed weights. In addition, in order to reduce overfitting issues and provide a robust solution, a regularization term can be added as follows [52]: β=HTH+1 c−1 HTT(8) where c(c>0) is the regularization term.
GAIBOR et al.: AUTOENCODER EXTREME LEARNING MACHINE FOR FINGERPRINT-BASED POSITIONING 57 Fig. 1shows a graphical representation of the AE-ELM, which is composed of two parts, the encoder (left) and the decoder (right). The encoder consists of the input data X, and a densely connected layer with input weights (wi) and bias term (bi), whereas the decoder is composed of the densely connected layer with output weights (βi) and the training data target T.The encoded layer is shared between the encoder and the decoder as their output and input, respectively. Generally, the initial weights are generated using random uniformly distributed data in the range [−r, r]{∀r∈R|r=0}. Similarly, the bias term is a random 1-D array. C. Weight Initialization In the literature, many different methods to initialize the input weights in neural networks were analyzed and proposed, in order to reduce the convergence time and improve the model performance. The existing literature distinguishes two methods of weights initialization, namely the initialization of the input weights with zeros/ones and the initialization of the input weights based on a random distribution [53]. In zero/one initialization, all weights have values of either zero or one. In a random weight initialization, real numbers (R) will be set as initial weights, sampled from the given distribution based on predefined variance or range [54]. Some of the random weight initialization methods proposed in the literature are random uniform initialization,orthogonal random initialization,identity,orvariance scaling [53].They are widely used in popular ML libraries and frameworks, such as TensorFlow, Keras, and Pythorch. Their objective is to prevent exploding or vanishing gradient issues during the training stage in neural networks with multiple hidden layers, leading to a stabilized propagation of gradients. Glorot et al. [55] and He et al. [56] developed two well-known weight initialization methods based on a random initialization. Glorot et al. [55] proposed a formula based on the number of input and output neurons using a heuristic U=[−1/√n, 1/√n], where U[·]is the uniform distribution between the given intervals and nis the size of the previous layer (weights). He et al. [56] extended the previous analysis on the basis of the nonlinearities of the rectified linear unit (ReLU) AF. They added a scale product √2 to the input weights, obtaining the U=[−2/n, 2/n]. In contrast with the previous methods, Romero [57] proposed ELM-Input based on the input data to determine the input weights in ELM networks. The authors selected nrandom features from the input data, and in the case of multilayer perceptron, the selected features were normalized with zero mean and unit variance. ELM-Input improved the classification accuracy by 2% to 10% with respect to the ELM network using the radial basis function. Narkhede et al. [54] provide an overview of the available initialization methods for neural networks in general, highlighting the impact of the initialization in faster convergence, avoiding false optima, coping with network depth, or improving posttraining accuracy of the model. For initialization of the ELM, particle swarm or evolutionary algorithms [58],[59] offer strong performance with increased pretraining requirements. Javed et al. [60] combine the wavelet theory with the ELM for aprioriweight calculation while considering neuron-wise summation and a double AF. In comparison to the methods presented previously, the method proposed in this work does not require extensive and iterative pretraining for finding optimal weights of the encoder layer, while estimating the required network dimensionality in the process. IV. PROPOSED METHOD In this section, we introduce a novel method to initialize the input weights in AE-ELM networks and describe the key components of the proposed indoor positioning solution. A. FID Weight Initialization Unlike the previous methods (see Section III-C), this research work proposes a novel weight initialization method based on the orthogonal components of the input matrix, namely FID weight initialization. Aiming to reduce the reconstruction error of the decoder of the AE-ELM. Since ELM is the method used to learn an SLFN, the weights, bias, and output weights in an SLFN can be found using (9), which is equivalent to minimizing the cost function. For instance, using a gradient-based learning algorithm [see (10)]. In this case, the weights are iteratively tuned or adjusted during the training phase, so that min wi,bi,β H(w1,...,wL,...,b 1,...,b L)β−T(9) and Ψl=Ψ l−1−γ∂ξ(Ψ) ∂(Ψ) (10) where Ψrepresents the weights (wi,βi, and bi), γis the learning rate, and ξis the error in prediction. Huang et al. [49] stated that an SLFN can be solved using the minimum normal least-squares method, because the inputs weights (wi) and biases (bi) do not need to be necessarily tuned. However, weight initialization is crucial in any neural network, which is why many researchers investigated the best way to initialize this parameter. Given the importance of weight initialization, we propose the following method. 1) Step 1: Input Data Factorization: Based on the analysis provided by Saxe et al. [61] in 2014, where the authors demonstrated the advantages of using random orthogonal initialization to have a better propagation of gradients, we propose to determine the best initial weights by factorizing the input matrix Xusing SVD [see (11)] to get the orthogonal components (V), as X=ϕSVT(11) where ϕis a square matrix (N×N)∈R,Vis a (n×n) matrix ∈Rand both are orthogonal. Sis a rectangular diagonal matrix (N×n)∈Rcomposed by the singular values of Xordered in descending order of magnitude (s1≥s2≥...s p≥0, where p=min(N,n)).
58 IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 In this case, Vis used to generate the input weights in the proposed method and the Scomponent is used to determine the initial number of dimensions to be compressed the input data. 2) Step 2: Components Selection: To efficiently compress the dataset, it is necessary to first determine the best approximation of the optimal number of dimensions in order to prevent a significant increment in the positioning error. The following procedure is used to determine the number of compressed features, which equals to the number of hidden nodes L. The variance explained can be used to determine the number of compressed features used to represent the dataset. The overall variance explained can be obtained as follows: η=s2 i p j=1s2 j∗100 (12) where ηrepresents the overall variance explained, siis the ith column of the component Sand sjare the individual singular values of S(j=1,2,...,p). The number of dimensions is determined by the percentage of selected variance (η). For instance, a dataset of 1000 samples and 200 features can be reduced using the proposed method to the same number of samples and a significantly lower number of features, while keeping, e.g., 90% of the total variance. Therefore, the first L components that sum up to ≥90%of the total variance are selected, while the rest are discarded. The number of hidden neurons used in the ELM is equal to the number of the selected components. Thus, the new initial weight matrix (F) is composed of the first Lrows of the orthogonal component Vas follows: F=⎡ ⎢ ⎢ ⎣ v11 ... v1n . . ..... . . vL1... vLn ⎤ ⎥ ⎥ ⎦L×n .(13) 3) Step 3: Input Weight Normalization: Weight normalization aims to restrict the weights under certain statistical properties during the optimization (training) [62].Asa result, the training process is more stable than without normalization, and the difference in magnitude between the features is reduced or removed. Although the orthogonal components of the input data are already constraining the training process, an additional restriction is introduced to the initial weights matrix (F), which is the unit norm normalization [63], also called vector-length normalization, shown as follows: Fi=fi fi,i=1,2,...,n (14) where Firepresents the new normalized input weight vector (FID weight initialization vector). fiis the ith column of initial weight matrix (F), and fiis the Euclidean norm of fi. The random initial weights (wi) are substituted by the new initial weights fiin (3) in order Algorithm 1: AE-ELM and FID. weight initialization Require: training dataset X←training dataset /* Get the orthogonal component Vusing SVD */ X=ϕSVT /* Compute the number of components η*/ η=s2 i p j=1s2 j×100 /* Get the initial weight form V*/ F=vij,i=1,2, .., L and j=1,2,...,n /* Input weight normalization - Unit norm */ Fi=fi fi /* Substitute wiby fiinto H*/ see (15) /* Compute the output weights */ β=(HTH+1 c)−1HT Output: β,H to compute the output weights β[see (8)]. Thus,(8) and (15) are differentiated only by the initial weights. H=⎡ ⎢ ⎢ ⎣ g( f1x1+b1)... g( fLx1+bL) . . ..... . . g( f1xN+b1)... g( fLxN+bL) ⎤ ⎥ ⎥ ⎦N×L . (15) Algorithm 1summarizes the steps used to determine the input weights, the number of components and how these parameters are used in AE-ELM network. This algorithm returns the output weights (β) as well as the hidden layer output (H). B. Position Estimation Wi-Fi fingerprinting technique consists of two phases, the offline and the online phases. The offline phase is devoted to collecting all the RSS values at known reference points to build the radio map. In this phase, data processing techniques such as data cleaning or dimensionality reduction are applied and ML models are trained. In the online phase, the k-NN algorithm computes the distance between the incoming fingerprint and the fingerprints in the radio map. Then, the fingerprints with the lowest distances to the incoming fingerprint are selected to compute the position estimate. Fig. 2shows a general scheme of how the AE-ELM is combined with the well-known k-NN algorithm in order to reduce the dimensionality of the radio map and estimate the user or device position. As the fingerprints are transformed, we will use the term “encoded” to refer to the fingerprints and radio map after applying the AE-ELM over the original samples. As we can observe, the input and output weights determined in the offline phase ( fiand β, respectively) are used in the online phase to encode the incoming fingerprint. Once the incoming fingerprint is encoded, k-NN is used to estimate the position with the encoded radio map.
GAIBOR et al.: AUTOENCODER EXTREME LEARNING MACHINE FOR FINGERPRINT-BASED POSITIONING 59 Fig. 2. Wi-Fi fingerprinting. Fig. 3. General diagram of the proposed combination and the benchmarks used in the experiments. Dark red color represents the common components; blue is the benchmark; and dark gray is the suggested combination. V. EXPERIMENTS AND RESULTS Fig. 3shows a general diagram highlighting the proposed combination (dark gray) and the algorithms used as benchmarks (blue). The red color denotes the common components of both the benchmarks and the suggested combination (i.e., AE-ELM +k-NN). Overall, we compare the proposed AE-ELM with FID +k-NN with different algorithms, methods, or models (and their combinations) to provide a general view of the advantages and drawbacks of our proposal against other methods. For instance, the impact of FID weight initialization on AE-ELM networks is compared against AE-ELM combined with six different weight initialization methods (e.g., Glorot, He, Orthogonal, etc.). Additionally, we offer an analysis of how the AFs affect each combination (AE-ELM and weight initializations). This first step shows the performance of each combination to encode and decode fingerprinting datasets with minimal errors. TABLE II DATASETS’PARAMETERS Once the datasets are reduced, they are used with different regression algorithms to estimate the user position and determine which combination provides the lowest mean positioning error. The results obtained with the AE-ELM + k-NN are compared against two positioning models from the literature (i.e., CNNLoc and OutFin). The following paragraph details the experiments carried out in this research work. A. Experimental Setup The experiments were carried out using a computer with the following characteristics: Intel Core i7-8700 T at 2.40 GHz and 16 GB of RAM, the operating system is Windows 10, and the software used is MATLAB (AE-ELM and k-NN) and Python [CNNLoc, OutFin, support vector machine (SVM), gradient boosting regressor (GBR), and Bayesian ridge (BR)]. The developed algorithms, supporting software and data used are available in [64] for research reproducibility and replicability. The experimental setup consisted of 13 indoor positioning datasets from different environments, which are available online for the public usage [65]. The datasets were collected by the following entities: Tampere University (TUT 1—TUT 7) [66],[67], [68], University of Minho (DSI 1 and DSI 2) [69], University of Mannheim (MAN 1 and MAN 2) [70],[71], and Universitat Jaume I (LIB 1, LIB 2) [72]. The advantage of using these datasets is that they were collected in different environments with varying numbers of devices in real-world deployments, and therefore, provide a complete analysis of the proposed methods in a multitude of realistic conditions. Moreover, these datasets were collected for different purposes, including the comprehensive assessment of limited crowdsourced radio maps over a large area in TUT 3. Assessment with multiple diverse datasets considered in this work is being consolidated in the indoor positioning community [73],[74], [75],[76],[77]. Table II shows the features of the datasets used in the experiments. |TTR|represents the number of samples in the training set, |TTE|the number of samples in the test set, |A| is the number of AP (i.e., features), #bis the number of buildings, and #f represents the number floors. The table also includes the number of compressed features |L|(i.e., the number of hidden nodes in
60 IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 the ELM network), and data representation (data rep.)—we use the same data representation as in [73] and described in [78], allowing us a better data abstraction by ML algorithms than using the raw data. Despite the fact that each dataset considers different scenario, scale of deployment, measurement methodology, sample density, etc., they were formatted into a consistent structure with an array of RSS measurements as features, and an array of local coordinates (x,y,z, coordinates, floor index, and building index) as labels. Despite the traditional assessment in indoor positioning and ML holding a ratio ≈80 :20 for training and testing, we use the data partition provided with the datasets. Applying k-fold cross validation is not recommended in fingerprinting as the samples taken in a short period may end in the training and testing sets, having overoptimistic results for them (i.e., data leakage). Therefore, we ensure that training and testing samples are independent, the evaluation can be reproduced as the same data partitions can be reused, and the results can be directly compared to previous and further works using these datasets. Two baselines have been considered for the k-NN algorithms: simple configuration (k=1, city-block distance metric and positive data representation) and best configuration, both defined in [73] and [78]. The analyzed methods were compared in terms of compression ratio (CR), positioning error (3D), and floor hit rate (ζ). The CR is obtained by dividing the number of features in the original dataset by the number of features in the compressed dataset. The proposed weight initialization is later compared with six well-known algorithms: Gaussian (zero mean and standard deviation equal to 0.01), random orthogonal (random values in the range of [−1,1]), random uniform (distribution bound 0.01), He [56],Glorot[55], and ELM-Input [57]. The AE-ELM was implemented using the aforementioned algorithms along with nonlinear and periodic AFs (sine, cosine, ReLU, sigmoid, and hyperbolic tangent sigmoid), and then, tested on each dataset. Given that the initial weights and/or the bias terms are initialized randomly, the AE-ELM was executed 20 times. We thus compute the root mean square error (RMSE) of the reconstruction error (i.e., the difference between the AE input and output), and its confidence bounds are obtained using the standard deviation. Likewise, the positioning model based on AE-ELM and k-NN was run 20 times to determine the oscillation of the positioning error. The AE-ELM with FID weight initialization was also tested using three regression models (SVM, GBR, and BR) to comprehensively analyze our proposal. These three algorithms were implemented using Sklearn library (default hyperparameters). We thus reduced the dimensionality of the datasets using AE-ELM and each weight initialization method described previously to subsequently estimate the mean 3-D positioning error, employing the aforementioned regression algorithms. In addition, the proposed AE-ELM using fixed weights + k-NN is compared with to CNNLoc [43] and OutFin [79],in order to compare their efficiency in terms of positioning accuracy. Unlike CNNLoc, OutFin is not a positioning or localization solution. Nevertheless, it consists of an AE as a part of software provided by the authors, and therefore, is a suitable baseline to Fig. 4. Heatmap depicts the average RMSE (unitless) of the weight initialization algorithm versus AF. Figs. 5and 6show in detail the average RMSE of each combination (weight initialization model and AF) using a different number of hidden neurons. compare our solution to. In each case, the mean positioning error was selected to be compared with our proposal. In both cases, the software developed in Python was obtained from the authors’ repositories [80],[81]. We only adapted the inputs/outputs in those scripts to fit our data structure, keeping the data processing workflow, initialization mechanisms, and other parameters as originally defined. As mentioned in the previous paragraph, we utilize a deep learning model called CNNLoc [43] to compare the positioning performance with the proposed solution. CNNLoc’s architecture consists of an individually trained stacked AE, whose encoder’s part serves as an input to the consecutive convolutional parts of the network. The model utilizes multiple 1-D convolutional layers as the core network. Three separate convolutional pipelines, each finalized with a single densely connected layer, predict latitude and longitude coordinates, building index and floor, respectively. B. Results This section describes the results achieved by using the proposed weight initialization method in the AE-ELM network. These results include the reconstruction error, computational performance, as well as the positioning results using the methods described in the previous section. 1) Weight Initialization: This section provides the empirical results of using six random initializations and the proposed FID in AE-ELM. Fig. 4shows the average RMSE—reconstruction error— (scale 1:100) of combining seven weights initialization methods and five AFs across all datasets. Although the RMSE is comparable for each combination, the hyperbolic tangent sigmoid (tansig) AF provided the lowest reconstruction error regardless of the weight initialization method used in the network. We can also observe that the proposed FID algorithm outperforms the initialization algorithms commonly used in the literature. The performance of the FID algorithm remains almost unchanged with the sigmoid, hyperbolic tangent sigmoid, and
GAIBOR et al.: AUTOENCODER EXTREME LEARNING MACHINE FOR FINGERPRINT-BASED POSITIONING 61 Fig. 5. Performance of weight initialization methods in TUT 1 for five AFs: (a) sine/sin, (b) cosine/cos, (c) sigmoid/sig, (d) hyperbolic tangent sigmoid/tansig, and (e) rectified linear unit (ReLU). ReLU AFs, providing low reconstruction error. On the contrary, when the FID and periodic AFs are combined, the average RMSE increased by more than 6% in comparison with the tansig function. However, the computed error is still lower than the error of its counterparts at the same settings. Fig. 5shows the performance of the AE-ELM when different AFs and weight initialization algorithms are used in TUT 1 dataset. The x-axis represents the hidden layer size used in the network and the y-axis represents the mean of the RMSE per each hidden node after executing the AE-ELM 20 times. AsshowninFig.5(a), random uniform initial weights, orthogonal and Gaussian initialization, have similar performance when the sine AF is used in the network. Similarly, FID keeps its statistical properties, providing the lowest reconstruction error. In the case of using the cos AF, the performance of FID and the network is degraded with respect to sine. When random Gaussian initialization and cos AF are used in the AE-ELM, the reconstruction error remains high despite increasing the hidden layer size. This behavior can be observed in TUT 1 [see Fig. 5(b)], MAN 1 and DSI 1 (see Fig. 6). For DSI 1 and MAN 1, the high RMSE is also produced by the type of data representation used in each dataset (powered and exponential, respectively). Gaussian weight initialization provides better performance when positive data representation is Fig. 6. Weight initialization algorithms and cosine AF. (a) MAN 1 dataset. (b) DSI 1 dataset. TABLE III COMPARISON OF THE WEIGHT INITIALIZATION applied to the dataset as shown in Fig. 5(b). Moreover, the cos AF produces a similar performance using other weight initialization methods like uniform initialization in MAN 1. Fig. 5(c) shows that the mean RMSE is similar in all weight initialization methods based on random values. Again, the reconstruction error obtained with FID is lower than other initialization methods. A similar behavior is obtained with tansig and ReLU AF [see Fig. 5(e)]. ELM-Input weight initialization provided a good performance using sigmoid, hyperbolic tangent sigmoid, and ReLU AFs [see Fig. 5(c)–(e)]. The best performance is obtained with the tansig AF, offering a reconstruction error lower than randombased methods. Table III summarizes the results of the data reconstruction error (ξ, mean RMSE) using the tansig AF. The results are normalized to the random orthogonal initialization (OR), which serves as the baseline. FID (FI) is the best-performing weight initialization, achieving 9% lower positioning error than the baseline (OR). Despite ELM-Input (EI) being also based on the input data, its average RMSE is 2.9% higher than the baseline (OR). The average RMSE of random uniform (UN) and Gaussian (GA) is very close to the baseline, and it is slightly higher for the models proposed by He (HE) and Glorot (GL).
68 IEEE JOURNAL OF INDOOR AND SEAMLESS POSITIONING AND NAVIGATION, VOL. 1, 2023 Roman Klus (Student Member, IEEE) received the Ing. degree (Czech equivalent of master) in electronics and communications from the Brno University of Technology, Brno, Czechia, in 2019. He is a Doctorate Researcher with Tampere University, Tampere, Finland. His research interests include modern machine learning approaches in 5G and beyond networks, especially utilizing neural network structures in mobility management and positioning. Elena Simona Lohan (Senior Member, IEEE) received the M.Sc. degree in electrical engineering from the Polytechnics University of Bucharest, Bucharest, Romania, in 1997, the DEA degree (French equivalent of master) in econometrics from Ecole Polytechnique, Paris, France, in 1998, and the Ph.D. degree in telecommunications from the Tampere University of Technology, Tampere, Finland, in 2003. She is currently a Full Professor with the Electrical Engineering Unit, Tampere University, Tampere, and the Coordinator of the MSCA EU A-WEAR European Joint Doctorate network. Her current research interests include global navigation satellite system, low Earth orbit positioning, navigation, and timing, seamless wireless location techniques, wearable computing, and privacy-aware localization. Jari Nurmi received the D.Sc. (Tech.) degree in information technology from Tampere University of Technology, Finland, in 1994. From 1987 to 1994, he held various research, education, and management positions with Tampere University (formerly Tampere University of Technology, TUT), Tampere, Finland, and was the Vice President of the SME VLSI Solution Oy, from 1995 to 1998. He has been working as a Professor with Electrical Engineering Unit, Tampere University, since 1999. He is working on embedded computing systems, system-on-chip, approximate computing, software-defined radio and networks, wireless localization, and positioning receiver implementations. Prof. Nurmi is a Member of the Technical Committee on VLSI Systems and Applications, IEEE Circuits and Systems Society, an Associate Editor/handling Editor of three international journals, the Director of national DELTA doctoral training network of 200 Ph.D. students, a Coordinator of APROPOS European doctoral training network, and the Head of A-WEAR European joint Ph.D. program with Tampere University. Mikko Valkama (Fellow, IEEE) received the M.Sc. (Tech.) degree in electrical engineering and D.Sc. (Tech.) degree in information technology, both with honors, from the Tampere University of Technology, Tampere, Finland, in 2000 and 2001, respectively. In 2003, he was with the Communications Systems and Signal Processing Institute, San Diego State University, San Diego, CA, USA, as a Visiting Research Fellow. He is currently a Full Professor and the Head with the Unit of Electrical Engineering, Tampere University, Tampere. His research interests include radio communications, radio localization, and radio-based sensing, with particular emphasis on 5G and 6G mobile radio networks. Joaquín Huerta received the B.Sc. and M.Sc. degrees in computer science from the Polytechnic University of Valencia, Valencia, Spain, and the Ph.D. degree in computer engineering from Universitat Jaume I, Castellón de la Plana, Spain, in 1999. He is a Full Professor in computer science with the UJI, where he is also the Deputy Director with the Institute of New Imaging Technologies, the Director of the research group GEOTEC, and the co-Director of the Erasmus Mundus Master of Science in Geospatial Technologies. His research interests include geographic information systems, indoor location, digital twins, and augmented reality. Joaquín Torres-Sospedra received the Ph.D. degree from Universitat Jaume I, Castellón de la Plana, Spain, in 2011. He is currently an MSCA Postdoctoral Fellow with the University of Minho, Guimarães, Portugal, where he works on Indoor Positioning (Wi-Fi, BLE, VLC, and Machine Learning) for Industrial applications. He has authored more than 160 articles in journals and conferences, and has supervised 16 master’s and two Ph.D. students. He is currently supervising six Ph.D. students. Dr. Torres-Sospedra is the Chair of the Indoor Positioning and Indoor Navigation (IPIN) International Standards Committee and IPIN Smartphone-Based Off-Site Competition.