Next Article in Journal
Geometry Selection in Three-Mirror Freeform Imagers with an Accessible Exit Pupil
Previous Article in Journal
A Wearable Personalised Sonification and Biofeedback Device to Enhance Movement Awareness
Previous Article in Special Issue
A Combined Filtering Method for ZigBee Indoor Distance Measurement
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Indoor Positioning Using RSSI and Time-Distributed Auto Encoder-Gated Recurrent Unit Model

1
School of Computer Science, Civil Aviation Flight University of China, Guanghan 618307, China
2
Yuanpei College, Shaoxing University, Shaoxing 312000, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(15), 4815; https://doi.org/10.3390/s24154815
Submission received: 13 June 2024 / Revised: 13 July 2024 / Accepted: 19 July 2024 / Published: 24 July 2024
(This article belongs to the Special Issue Indoor Positioning Technologies for Internet-of-Things)

Abstract

:
This study presents a novel approach to indoor positioning leveraging radio frequency identification (RFID) technology based on received signal strength indication (RSSI). The proposed methodology integrates Gaussian Kalman filtering for effective signal preprocessing and a time-distributed auto encoder-gated recurrent unit (TAE-GRU) model for precise location prediction. Addressing the prevalent challenges of low accuracy and extended localization times in current systems, the proposed method significantly enhances the preprocessing of RSSI data and effectively captures the temporal relationships inherent in the data. Experimental validation demonstrates that the proposed approach achieves a 75.9% improvement in localization accuracy over simple neural network methods and markedly enhances the speed of localization, thereby proving its practical applicability in real-world indoor localization scenarios.

1. Introduction

Currently, the primary positioning systems are wireless positioning systems. Out-door positioning systems mainly include wireless cellular positioning systems and satellite positioning systems such as GPS and BeiDou. Indoor positioning systems use technologies like WiFi, Bluetooth Low Energy (BLE), ultrasound, and ultra-wideband (UWB). Due to the relative complexity of indoor environments, the positioning effectiveness of these technologies varies.
WiFi-based positioning systems leverage the widespread availability of WiFi infrastructure, providing high accuracy and low setup costs. BLE, known for its low energy consumption and cost-effectiveness, also offers good positioning accuracy. However, these systems face challenges in signal multipath effects and interference, which can affect their performance in complex indoor environments. UWB, with its high time resolution, offers precise positioning but requires significant infrastructure and can be costlier. According to [1], WiFi and BLE technologies have shown high accuracy in indoor environments, but their performance can be compromised by obstacles and environmental factors, which necessitates further improvement in positioning algorithms.
Accurate location awareness is crucial in various application areas and location-based services. For instance, location-based building emergency response systems can greatly enhance safety by providing the precise locations of individuals during emergencies [2]. In smart energy management, accurate positioning helps in optimizing energy usage and reducing costs [3]. Smart HVAC controls utilize location data to adjust heating, ventilation, and air conditioning systems for improved comfort and efficiency [4]. Additionally, location-based occupancy prediction enables better space utilization and energy savings by predicting and managing occupancy patterns in buildings [5]. These applications highlight the importance of improving indoor positioning technologies to meet the growing demand for accurate location awareness.
Radio frequency identification (RFID) technology, which emerged in the 1990s, is a wireless automatic identification technology. Its principle is the transmission of electromagnetic waves through magnetic field coupling or electromagnetic field coupling for information transmission, and the identification of targets through the transmitted information. Received signal strength indication (RSSI) is a commonly used method for distance estimation and positioning in wireless sensor networks due to its simplicity and cost-effectiveness [6].
Reference [7] proposes a hybrid RFID tag positioning method, named ReLoc, based on RSSI and phase measurements for the horizontal and vertical positioning of tags. The literature [8] develops a framework that uses RSSI and radiation patterns to determine the safe distance between drones or robots and metal objects with RFID tags. The literature [9] also proposes a robust triangulation algorithm for indoor positioning systems based on radio signal recognition to address environmental dependency. Some researchers have proposed using convolutional neural networks (CNN) for fingerprinting to estimate positions using access points. This method emphasizes the importance of weight adjustment algorithms in improving the accuracy of indoor fingerprint positioning using RSSI data, although it is computationally slow [10,11,12].
Reference [13] proposes a deep CNN-based method for passive RFID tag localization using combined RSSI and PDOA features, which improves on the accuracy of other methods but is prone to local optimum solutions. Therefore, finding an efficient RSSI-based RFID positioning algorithm to meet various indoor positioning requirements is of great significance.
This study makes several significant contributions to the field of indoor positioning. Firstly, it proposes the integration of an improved Gaussian Kalman filtering algorithm with a time-distributed auto encode and gated recurrent unit (TAE-GRU) network model for the first time. This novel combination enhances the preprocessing of collected signal data and improves target position localization. Secondly, the gated recurrent unit mechanism controls the information update method, reducing the risk of model overfitting, while the autoencoder in the time distribution technique better learns the temporal relationships of RSSI data for target position localization. Thirdly, experimental tests demonstrate that the proposed method improves the positioning accuracy by 75.9% compared to simple neural network methods and also significantly enhances the positioning time performance. These contributions establish the proposed method as more accurate and faster, and thus suitable for application in various positioning scenarios.
The remainder of this research is structured as follows: Section 2 delves into the related work. In Section 3, the proposed indoor localization algorithm based on the TAE-GRU model is elaborated upon. Section 4 provides a detailed description of the experiment and result analysis. Section 5 outlines future directions, while Section 6 concludes this work.

2. Related Work

2.1. Data Acquisition Equipment

An RFID system mainly comprises three core components: the reader (also known as the transceiver or interrogator), the electronic tag (or transponder), and the terminal processing unit (application software). The functioning mode of the RFID system, including the automatic identification range, is influenced by the type of reader and the type of RFID tag. These factors are interrelated and, together, form the core operational mechanism of the RFID positioning system.

2.1.1. Reader Device

The core implementation module of RFID technology is the RFID reader, which can transmit in multiple frequency bands during operation, including low frequency (30–300 kHz), medium–high frequency (3–30 MHz), ultra-high frequency (300 MHz–3 GHz), and microwave frequency (greater than 3 GHz) bands.
However, the advantages and disadvantages of RFID technology do not solely depend on the frequency. Different frequencies provide different utilization methods and application extensions for the technology. Although the microwave frequency band can cover a larger identification area, its use often relies on the cooperative operation of active or semi-passive microwave RFID tags. In contrast, passive RFID tags do not require an additional power supply, so they have a longer service life, higher durability, and a relatively lower cost.
Considering these factors, we chose to use a radio frequency system with a working frequency range that is ultra-high, 860 MHz–960 MHz, and we prefer to use passive tags as the type of identification tags, with a reading frequency of 200 ms/time. This choice aims to ensure the efficient, stable, and low-cost operation of the system to meet the needs of different application scenarios.
The experimental reader device, provided by Shenzhen Hongguang Internet of Things Technology Co., Ltd. (Shenzhen, China), model YM190B, has the following technical features, as shown in Figure 1:
  • Antenna gain: 8 dBi circular polarization;
  • Card reading distance: 0–8 m;
  • Communication method: RS-232, Wiegand, RS485, TCP/IP;
  • Working protocol: EPC global UHF Class Gen2;
  • Working frequency: 902~928 MHz;
  • Frequency hopping method: spread spectrum frequency hopping or fixed frequency transmission;
  • Output power: 0~30 dBm;
  • Working voltage: DC 12~24 V;

2.1.2. Electronic Tag

In this experiment, we used the HG-BA8554 smart tag chip from the same company. The chip meets the EPC Class1 Gen 2 RFID standard, also known as the Gen 2 standard, which is an open architecture and has received widespread support from many RFID companies. In order to meet the requirements of low processing power, low power consumption, and a low cost of the tag, improvements have been made in multiple technical aspects. These improvements include the selection of the communication frequency band bandwidth, optimization of the physical layer unit coding and signal demodulation modulation methods, the improvement of anti-collision algorithms, the device connection communication control, and the tag information protection, etc., thereby further reducing the manufacturing cost of electronic tags, as shown in Figure 2.

2.2. Positional Fingerprinting Method

The location fingerprinting method is a positioning method based on wireless signals, as it uses the signal strength RSSI as a feature to relate to the physical location in the actual environment. By matching the RSSI information at corresponding coordinates, it determines the coordinates of unknown nodes. Figure 3 shows the working principle of the classic location fingerprinting method.
The RSSI location fingerprinting method is a commonly used indoor positioning method, typically including two stages: offline training and online testing [14].
In the offline fingerprint stage, the indoor environment is divided into multiple reference points, which are usually evenly distributed throughout the positioning area. Then, using receiver devices to measure signal values from different wireless access points at each fixed position, the collected RSSI vectors and other feature information are combined into a fingerprint and saved in a fingerprint database, forming the offline fingerprint. To improve accuracy, the RSSI vectors are usually collected multiple times over a period and averaged to reduce the impact of environmental interference and errors on the fingerprint.
In the online positioning stage, the positioning target needs to carry an RSSI collection device and collect RSSI vectors from the surrounding environment in real-time while moving. The collected real-time RSSI vectors are matched with the data in the offline fingerprint database, typically using matching algorithms to find the reference points that best match the real-time data. The matching algorithm calculates the similarity between the real-time data and each reference point in the fingerprint database, selecting the set of reference points with the highest similarity as possible positioning results. Finally, through further calculation and processing, the position coordinates of the positioning target can be obtained.

2.3. Filter Preprocessing

Due to various factors such as the indoor temperature, humidity, shadowing, fading, and multipath effects, in most cases, only high-noise signal strength measurements between nodes can be used to solve node localization problems. The received signal-strength indication values between nodes fluctuate significantly over time and are easily affected by various interferences. This fluctuation and interference results in a large amount of abnormal data in the received RSSI values. This issue affects the use of wireless sensor network platforms and passive RFID technology, exacerbating inaccuracies.
To reduce the impact of these abnormal data on the localization accuracy, improve the quality of target localization information collection, and make reasonable use of the received signal strength indicator, we analyze some filtering techniques for data preprocessing. The aim is to minimize the influence of noise on the RSS location estimation during the measurement process and reduce localization errors caused by fluctuations in the signal strength in the indoor environment.

2.3.1. Mean Filtering

Mean filtering model refers to the process of creating new data point sequences by the weighted averaging of multiple RSSI datasets received by nodes from another node. The datasets typically have a fixed length, and new points are added to the original data while excluding the oldest data points to create the new set. The mean filtering algorithm assigns equal weights to all data points. In RSSI filtering, when samples do not share any concept of relative importance, their weights can be considered equal and a simple moving average filter can be applied, represented as:
R S S I ¯ = 1 N i = 1 N R S S I i ,  
In this formula, R S S I ¯ represents the moving average RSSI value, which smooths out the original RSSI data. N denotes the window size, i.e., the number of data points used for averaging. i = 1 N R S S I i indicates the sum of the first N RSSI values within the window, which are selected from the original data.
Mean filtering is a simple and effective method, particularly suitable for scenarios with large data sample sizes and small signal fluctuation ranges. In such cases, mean filtering can effectively improve the signal smoothness and reduce fluctuations caused by interference. However, the credibility of mean filtering decreases when the RSSI signal values fluctuate strongly. This is because mean filtering simply averages the RSSI values over a period of time. If the signal fluctuates greatly, the average value may not accurately reflect the true changes in the signal, resulting in a significant deviation between the filtered result and the actual value.

2.3.2. Gaussian Filtering

By establishing a Gaussian distribution model based on multiple RSSI values obtained from the same node [15], and utilizing the characteristics of the Gaussian distribution, RSSI values that meet high probability requirements are collected as valid values. The geometric mean of these values is then calculated to achieve RSSI value filtering. The probability density function for measuring signal amplitudes that follow a Gaussian distribution is:
f ( x ) = 1 2 π σ e ( x μ ) 2 2 σ 2 ,
among which
μ = 1 k i = 1 k x i ,
σ 2 = 1 k 1 i = 1 k ( x i μ ) 2 .
Gaussian filtering, as a commonly used signal processing method, is particularly suitable for handling signals that are interfered with and lack stability. This algorithm calculates the weighted average of signal values, effectively reducing the impact of noise and improving the signal accuracy and stability [16].
However, Gaussian filtering also has some limitations. Firstly, the effectiveness of the algorithm depends on the number of samples in the dataset. If the number of samples is insufficient, its filtering effect will be significantly reduced, and it may not effectively remove noise [17]. Secondly, Gaussian filtering performs less effectively in handling long-term interference issues, especially shadowing effects, energy reflections, and other long-term interferences. Additionally, if the processing time for sample signals is too long, it may affect the real-time nature of positioning, making it unsuitable for scenarios requiring immediate response.

2.3.3. Kalman Filtering

When RFID tag signal strength RSSI is used as the research object, ideally, the RSSI values of the tags should remain stable and unchanged, meaning the current RSSI value in the signal should be consistent with the RSSI value from the previous moment. However, in practical applications, due to various interference factors, there is often a deviation between the RSSI value and the true value, typically manifesting as Gaussian white noise [18]. Traditional filtering algorithms often face challenges in terms of their tracking capability and adaptability when dealing with dynamically biased data. Especially when the system’s motion state changes, the filtering accuracy of these algorithms often significantly decreases. They typically rely on fixed- or variable-length windows to fill in missing data, but improper window size selection may lead to issues such as positive and negative readings, resulting in unsatisfactory filtering effects [19].
According to the principles of Kalman filtering, at any given moment, two RSSI values are obtained: one is the model-based predicted value, and the other is the value obtained through actual measurement. By cleverly combining these two values and their respective noise characteristics, Kalman filtering can calculate RSSI values that are closer to the real situation. This feature makes Kalman filtering widely applicable in RFID indoor positioning systems, contributing to improved positioning accuracy and stability [20].
By measuring the actual RSSI values of the RFID system, calculating RSSI estimation values, and recursively processing according to the prediction-correction model, random noise can be eliminated, thereby reconstructing the system state [21].
Estimating the current state of RSSI:
R S S I ¯ ( k k 1 ) = R S S I ( k 1 k 1 ) ,
In the above equation, R S S I ( k 1 k 1 ) represents the optimal prediction at time k − 1, and R S S I ¯ ( k k 1 ) denotes the predicted value at time k.
The calculation of the current-state preliminary estimate involves using the previous state value and the error covariance control matrix. In the correction phase, the current observation is combined with the estimated state value to correct and predict the latest state value. During the update step, the error covariance P and the Kalman gain K g are calculated as follows:
P ( k k 1 ) = P ( k 1 k 1 ) + Q ,
K g ( k ) = P ( k k 1 ) P ( k 1 k 1 ) + R ,
In the above equations, P ( k k 1 ) represents the covariance of R S S I ¯ ( k k 1 ) , and P ( k 1 k 1 ) represents the covariance of R S S I ¯ ( k 1 k 1 ) . Q denotes the covariance generated by the noise present in the signal system.
Optimal estimation of the RSSI value at time k:
R S S I ( k k ) = R S S I ¯ ( k k 1 ) + K g ( k ) ( R S S I ( k ) R S S I ¯ ( k k 1 ) ) ,
Continuously repeating the above steps recursively allows us to obtain the optimal RSSI value, thus achieving signal filtering.

2.3.4. GF-KF Filtering Improvement Algorithm

When measuring RSSI signal distances, considering the various factors that affect RSSI signals, single Gaussian or Kalman filtering alone cannot completely eliminate wide fluctuation points. Therefore, the GF-KF filtering improvement algorithm is proposed.
The filtering algorithm steps are as follows:
  • Collect RSSI values and represent them as y = { R S S I 1 , R S S I 2 R S S I n } ;
  • Apply Gaussian fitting to filter the data, resulting in y 1 = { R S S I 1 ¯ , R S S I 2 ¯ R S S I n ¯ } ;
  • Calculate the mean and standard deviation of y 1 :
    E ( y 1 ) = 1 N i = 1 N R S S I i ,
    σ ( y 1 ) = 1 N i = 1 N ( R S S I i ¯ E ( y 1 ) ) 2 .
  • Check if | R S S I i ¯ E ( y 1 ) | < 2 σ ( y 1 ) . If not satisfied, set N = N + 1 and go back to step 2 to perform Gaussian fitting again. Proceed to step 5 when the condition is met;
  • Apply the Kalman filtering algorithm to y 1 , resulting in y 2 ;
  • Perform linear regression on y 2 , and output the result as y 3 .

3. Indoor Localization Algorithm Based on TAE-GRU Model

Due to the fact that the positioning method in this paper falls within the realm of fingerprint positioning, it is necessary to place the input and output values on a standardized scale for ease of use in positioning. Standardization is achieved through segmentation, where the input and output vectors meeting Euclidean standard values are stored for conversion by preprocessing the input vector. The dataset is then divided into training and testing sets to implement the model’s location positioning in two stages: offline and online. During the offline stage, the RSSI readings of each reference location tag are collected into a database for better application of the neural network model in positioning. During the online stage, the input data are used for feature learning and parameter training of the model, completing the location classification and ultimately achieving location matching positioning.

3.1. Recurrent Neural Network

The recurrent neural network (RNN) algorithm utilizes directed cycles formed by connections between units to process sequential data in deep neural networks. Therefore, the output learned using the RNN model is characterized not only by the current input but also by all historical input data. Just as convolutional neural networks (CNNs) are specialized in processing grid-like data, RNNs focus on analyzing serialized data, such as a neural network of x ( 1 ) , , x ( τ ) . RNNs are typically used in cases where there is a sequential, continuous relationship between the input and output data with respect to time [22].
Compared to traditional neural networks, recurrent neural networks (RNNs) have loop connections that allow states to be transmitted between different time steps. Each output not only depends on the current input but also on the previous states. Therefore, RNNs are particularly adept at handling sequential data tasks such as natural language processing, time series prediction, and speech recognition [23]. From a temporal processing perspective, RNNs use internal recurrent connections to capture dynamic behaviors and long-term dependencies in sequence data. Through recursive computation and internal state transmission, RNNs can remember information from previous time steps, exhibiting memory capabilities. This mechanism allows the model to share the same set of parameters across different time steps, making it more efficient, as the number of parameters remains independent of the sequence length.
As shown in Figure 4, the basic structure of a recurrent neural network (RNN) includes an input layer, hidden layer, and output layer. Each layer of the RNN consists of multiple neurons, with information transmitted between layers via weighted connections. The hidden layer combines the current input state with the previous state to capture dynamic temporal patterns in sequential data.
In the RNN, multiple neurons between each layer transmit information via synapses and connect the layers through a weight matrix. This structure enables the RNN to effectively process sequential data and capture dynamic temporal dependencies. The input states in the temporal window of the feedforward structure of the RNN are temporally spatialized, enabling the previous state to be remembered as a recurrent unit. In the RNN, the recursive formula is applied to the time state and the previous state in the model’s memory to process the vector sequence [24].
When RNN has input x t , it computes the current state h t at time t based on the activation function f w , using the previous state h t 1 , as follows:
h t = f w ( h t 1 , x t ) = tanh ( W h h h t 1 + W x h x t ) ,
y t = W h y h t .
In the traditional concept of RNNs, gradient signals are eventually multiplied by the weight matrix of neurons in the recurrent hidden layer during the backpropagation phase. The magnitudes of weights in the transition matrix can significantly impact the learning process. This matrix of weights can lead to two problems: if the weights are small, this may cause the gradient to vanish, slowing down or halting learning; another problem is gradient explosion, which occurs when the weights in the matrix are large.
Therefore, the significant gradient signals in this application can lead to learning divergence. These two problems necessitate the further improvement and design of recurrent neural networks for RSSI indoor positioning, utilizing gated recurrent unit networks to achieve accurate outputs.

3.2. Long Short-Term Memory Network

Long short-term memory (LSTM) networks introduce a new structure called a memory cell, which consists of four components: an input gate, forget gate, output gate, and self-recurrent connection neuron [25]. The input gate can alter the state or block the storage unit with the help of the input signal. Self-recurrent connections are configured to prevent any external interference. The forget gate regulates the self-recurrent connection to ensure that the unit remembers or forgets its previous state. Finally, the output gate allows changes to other neurons based on the current state of the storage unit [26]. Figure 5 depicts the long short-term memory network structure.
Each unit in the LSTM network block has an internal cell state c t and a hidden state h t . The parameters are updated based on the network input x t at time t and the previous hidden state h t 1 as follows:
c t = f c t 1 + i g ,
h t = o tan h ( c t ) ,
where represents element-wise multiplication, o is the output gate modulating the exposure level of the storage contents, i is the input gate controlling the input volume of the unit status candidates, f is the forget gate controlling the unit status at the previous time step to forget the unit, and o is the output gate computing the hidden state of the current time step. These parameters can be computed using the following formula:
( i f o g ) = ( σ σ σ t a n h ) W ( h t 1 x t ) ,
where W is the weighted matrix, σ is the sigmoid function, and tanh is the hyperbolic tangent function. The size of the network input x t corresponds to the number of input features N f e a t . The sizes of the hidden state vector h t and the internal unit states c t , i , f , o , and g are determined by the number of hidden units ( NHU ) of the unit, which controls the amount of information remembered between time steps. Finally, the size of the weighted matrix W is ( 4 · NHU ) X ( N f e a t + NHU ) .
LSTM units, unlike traditional recurrent units that rewrite their content at each time step, can decide whether to retain existing memory by introducing gates. Intuitively, if an LSTM unit detects an important feature early in the input sequence, it can easily carry that feature information over long distances, thus capturing potential long-range dependencies.

3.3. Gate Recurrent Unit Network

GRU is a gating mechanism introduced in recurrent neural networks, where each recurrent unit adaptively captures dependencies at different time scales. Similar to LSTM units but structurally simpler, the GRU comprises only an update gate, a reset gate, and a hidden state, without a separate memory unit. Therefore, considering RFID signals as a sequence data type, GRU outperforms LSTM units in terms of training convergence, parameter updates, and generalization for location estimation. Figure 6 shows the internal structure of the gated recurrent unit network.
The input to the GRU is transformed by reset gate r, which determines how much information from the previous GRU unit should be forgotten, and update gate z, which determines how much information should be passed from the current GRU unit to the next GRU unit. Their calculations are as follows:
r i = σ ( [ W r x i ] + [ U r x i , t 1 ] ) ,
z i = σ ( [ W r x i ] + [ U z h t 1 ] ) ,
where W and U represent the weights of the GRU, and h is the previous hidden state. The current hidden state is computed as follows:
h i , t = z i h i , t 1 + ( 1 z i ) h ˜ i , t 1 ,
h ˜ i , t 1 = t a n h ( [ W h x i ] + [ U h ( r i h i , t 1 ) ] ) .
For the reset gate, a larger value of r i means that much information from the previous unit is forgotten. For the update gate, a larger value of z i indicates that more information is being passed to the next unit.

3.4. Temporal Distribution Autoencoder—Gated Recurrent Unit Model

The temporal distribution autoencoder model technology is used to reconstruct RSSI data to improve the accuracy of location positioning. Figure 7 illustrates the structure of the model, which consists of an encoder part and a decoder part, both belonging to the temporal distribution autoencoder.
The encoding process of sample data from the input layer to the hidden layer:
h = g θ 1 ( x i ) = σ ( W 1 x i + b 1 ) .
The encoding process from the hidden layer to the output layer:
x ^ = g θ 2 ( h ) = σ ( W 2 h + b 2 ) .
RSSI data from multiple steps are embedded as input, represented as a two-dimensional matrix x, with dimensions indicating the number of time steps t and networks n. x i can be represented as:
x i = ( r i , 1 , 1 r i , 1 , 2 r i , 1 , n r i , 2 , 1 r i , 2 , 2 r i , 2 , n r i , t , 1 r i , t , 2 r i , t , n )
where r i , t , n is the RSSI from the nth network in sample datum i at time step t.
Unlike traditional autoencoders, the improved method employs temporal distribution techniques tailored to the temporal characteristics of RSSI data, encoding and decoding data from each time step separately. To preserve the original input information, the output uses matrices of the same size and settings as the input. The hidden layer state g is extracted as the reconstruction input for the GRU for subsequent positioning.
The output of the positioning model consists of coordinates represented as a one-dimensional matrix y. In the positioning model, the optimization problem is described to adapt the positioning model to the training data and evaluate the model’s generalization ability. Specifically, the standard loss function in this problem is the mean square error (MSE), and the size of the error in actual predictions is represented by the mean absolute error (MAE), calculated as follows:
M S E = 1 m i = 1 m ( y ^ i y i ) 2
M A E = 1 m i = 1 m | y ^ i y i |

4. Experiment and Result Analysis

In the deployment environment shown in Figure 8, data collection work is carried out. Readers are set up with reference tags, and reader devices are deployed at fixed positions spaced at intervals of 2 m and 5 m, as shown in the figure. In the preliminary phase, regular and automatic updates are made to collect the positions and RSSI values of the fixed reference tags as an offline fingerprint database. Then, dynamic scanning of the tags is performed as they move around an elliptical table from coordinates (3.5, 1.5) one full circle back to the initial position. The RSSI values received by the target tags at different positions during the movement process are continuously recorded. A total of 5000 sets of data samples is collected to determine their positional status.
When deploying the reference tags, several considerations and strategies were taken into account to improve the model’s localization performance:
  • Placement uniformity: Uniform placement of reference tags helps in creating a more reliable and accurate fingerprint database. The tags were placed at regular intervals to ensure consistent data collection across the deployment area;
  • Environmental characteristics: The indoor environment can introduce obstacles and sources of interference that affect RSSI readings. The tags were placed in various locations within the room to capture the impact of different environmental factors, such as furniture and walls, on the signal strength;
  • Height and orientation: The height at which tags are placed can affect the signal propagation. The tags were deployed at a consistent height, and their orientation was adjusted to optimize the signal reception;
  • Reducing multipath effects: Multipath effects can cause fluctuations in RSSI values. The deployment included the careful positioning of the tags to minimize the reflection and scattering of signals from surfaces;
  • Dynamic range of RSSI: It was ensured that the RSSI values cover a wide range to improve the robustness of the fingerprint database. The tags were placed at varying distances from the readers to collect a diverse set of RSSI readings.
By analyzing, studying, and filtering the real data collected from the RFID system, we determined the system and measurement noise levels. We improved the design by implementing an RSSI-based Kalman filter, which utilizes dynamic data information to obtain smooth numerical outputs, to eliminate the effects of noise. This approach enables noise estimation and the processing of tag information, and we verified the effectiveness and practicality of the improved algorithm.
We continuously recorded data sets of the target tags at the starting point during 500 readings. After receiving the measured values, we calculated the corresponding white noise distribution based on the read rate and observation noise, and then compared and plotted them as shown in Figure 9.
From Figure 9, it can be observed that the RSSI values exhibit characteristics such as white noise fluctuations, occasional abrupt value changes, and significant differences within certain intervals. Therefore, it is necessary to reduce the impurity noise in the collected data set through filtering algorithms.
Subsequently, after processing the data using Gaussian filtering, Kalman filtering, and a hybrid Kalman filtering algorithm, and calculating the variance convergence of the RSSI, Figure 10 and Figure 11 are obtained to evaluate the filtering effect.
From Figure 10 and Figure 11, it can be observed that Gaussian Kalman filtering effectively eliminates data outlier points and intervals, balances noise fluctuations in the signal, and provides a more accurate data output for subsequent positioning. Subsequently, by learning the features of the training set to obtain the model, in the training process, the model parameters can be set for convenience and the positioning-related performance can be evaluated. In this study, 80% of the collected dataset was used for training and 20% for testing. The mean square error loss function was selected as the model’s loss function. Different hyperparameters including the optimization algorithms, learning rate, batch size, and number of hidden layer neurons were adjusted. The variation in the loss values of the TAE-GRU model with increasing training epochs for each hyperparameter is shown in Figure 12.
The optimization algorithm adjusts the model parameters during training to minimize the loss function, thereby improving the model’s ability to fit the training data and enhance its performance. Observations show that the adaptive moment estimation (Adam) optimizer achieves faster convergence and exhibits fewer oscillations during training, making it more stable. The learning rate determines the step size of the parameter updates during training; a learning rate of 0.001 leads to rapid reduction in the loss function, ensuring model stability and faster convergence. The batch size determines the number of samples used for training in each parameter update. With a batch size of 64, the gradient of the loss function can be estimated more accurately, facilitating faster and more stable convergence to the optimal solution, which is critical for indoor positioning needs.
The number of neurons in the hidden layer determines the network’s learning capacity and complexity, directly influencing the model’s performance. A hidden layer neuron count of 128 shows an optimal performance, as the performance starts to saturate or decline beyond this point.
Following multiple trainings with the above hyperparameters, the trained model achieved a mean absolute error (MAE) of 0.293 m. To assess the accuracy and performance of the proposed method, we compared the TAE-GRU with the RNN, LSTM, and GRU using collected RSSI data for training and position estimation, summarizing and comparing the results of these methods throughout the process.
From Table 1, it can be observed that the TAE-GRU method used in this paper for RFID indoor localization shows significant advantages and performs well across various performance metrics. Specifically, from the perspective of localization accuracy, the TAE-GRU method exhibits improvements of 75.9%, 43.6%, 26.5%, and 9.2% compared to the NN, RNN, LSTM, and GRU methods, respectively. Compared to the RNN, LSTM, and GRU methods, the TAE-GRU method shows a notable performance improvement in localization time. Although the TAE-GRU localization method still has higher training and prediction times than the NN model, considering the requirements of accuracy and efficiency in localization, the TAE-GRU method still demonstrates good effectiveness and can be deployed effectively and rapidly in RFID localization systems.
Figure 13 shows the CDF of all positioning methods. From the comparison data, it can be seen that the error of the proposed TAE-GRU method is less than 1.0 m for 99% of the cases, and less than 0.5 m for 80% of the cases. The TAE-GRU recurrent neural network positioning method proposed in this chapter has improved on the positioning accuracy of the other methods to some extent. The trained algorithm can be applied more quickly in indoor scenarios.

5. Future Directions

This study mainly discusses the effectiveness of the TAE-GRU-based localization method and some limitations that need to be resolved to enhance its generalizability and scalability. These limitations include issues with the controlled environment, such as the space size, building and furniture layout, deployment locations for reference tags, etc.; an inability to generalize well to other areas or buildings due to differences in environmental factors, such as obstacles, signal reflections, interference sources, etc.; the need for repeated training processes, which limits its scalability and practical application. As well, the model’s performance in non-line-of-sight (NLOS) scenarios was not considered, which is common in real-world applications and can significantly impact the localization accuracy.
Future work will focus on addressing these limitations and expanding the applicability of our approach. This includes testing and validating the proposed method in diverse environments, extending the experimental setup to various indoor environments, including different types of buildings and layouts, and exploring transfer learning techniques to adapt the model to new environments with minimal retraining. In addition, we will investigate methods to reduce the need for extensive retraining, including developing adaptive algorithms that can fine-tune the model with a smaller dataset from the new environment and exploring incremental learning techniques that allow the model to update its parameters dynamically as new data becomes available. We will also test the algorithm in NLOS conditions to evaluate its performance and identify any necessary adjustments, as well as develop strategies to mitigate the effects of NLOS on RSSI measurements.

6. Conclusions

This study demonstrates that the TAE-GRU model substantially advances the accuracy and efficiency of RFID-based indoor localization systems. By incorporating Gaussian Kalman filtering to mitigate noise and employing the strengths of GRU networks in handling sequential data, the proposed method outperforms traditional techniques. The experimental results reveal that our approach surpasses conventional neural networks, the RNN, LSTM, and standard GRU models, in terms of both localization accuracy and processing speed. These findings affirm the efficacy and practical applicability of the TAE-GRU model in indoor localization contexts.
Future research endeavors will concentrate on further refining the TAE-GRU model to adapt to more complex indoor environments and varying operational conditions. Exploring the incorporation of additional sensory data and advanced machine learning techniques holds potential for further enhancements in the model’s localization accuracy and robustness. Additionally, extending the application of this approach to broader domains, such as smart buildings and internet of things (IoT) systems, will be a focal point of future investigations.

Author Contributions

Conceptualization, Z.W., Z.Z., S.Y. and J.C.; methodology, Z.W., Z.Z., S.Y. and J.C.; software, Z.W., Z.Z., S.Y. and J.C.; validation, Z.W., Z.Z., S.Y. and J.C.; formal analysis, Z.W., Z.Z., S.Y. and J.C.; investigation, Z.W., Z.Z., S.Y. and J.C.; resources, Z.W., Z.Z., S.Y. and J.C.; data curation, S.Y. and J.C.; writing—original draft preparation, Z.W., Z.Z., S.Y. and J.C.; writing—review and editing, Z.W., Z.Z., S.Y. and J.C.; visualization, Z.W., Z.Z., S.Y. and J.C.; supervision, Z.W.; project administration, Z.W.; funding acquisition, Z.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work is partially supported by the Fundamental Research Funds for the Central Universities under grant nos. JG2023-53, J2022-042, and PHD2023-027, Civil Aviation Professional Project under grant no. MHJY2023027, and Sichuan Science and Technology Program under grant no. 2023YFG0308.

Data Availability Statement

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Tekler, Z.D.; Low, R.; Gunay, B.; Andersen, R.K.; Blessing, L. A scalable Bluetooth Low Energy approach to identify occupancy patterns and profiles in office spaces. Build. Environ. 2020, 171, 106681. [Google Scholar] [CrossRef]
  2. Filippoupolitis, A.; Oliff, W.; Loukas, G. Bluetooth low energy based occupancy detection for emergency management. In Proceedings of the 2016 15th International Conference on Ubiquitous Computing and Communications and 2016 International Symposium on Cyberspace and Security (IUCC-CSS), Granada, Spain, 14–16 December 2016; pp. 31–38. [Google Scholar]
  3. Tekler, Z.D.; Low, R.; Yuen, C.; Blessing, L. Plug-Mate: An IoT-based occupancy-driven plug load management system in smart buildings. Build. Environ. 2022, 223, 109472. [Google Scholar] [CrossRef]
  4. Balaji, B.; Xu, J.; Nwokafor, A.; Gupta, R.; Agarwal, Y. Sentinel: Occupancy based HVAC actuation using existing WiFi infrastructure within commercial buildings. In Proceedings of the 11th ACM Conference on Embedded Networked Sensor Systems, Roma, Italy, 11–15 November 2013; pp. 1–14. [Google Scholar]
  5. Tekler, Z.D.; Chong, A. Occupancy prediction using deep learning approaches across multiple space types: A minimum sens-ing strategy. Build. Environ. 2022, 226, 109689. [Google Scholar] [CrossRef]
  6. Cruz, R.D.; Pedrasa, J.R. RSSI-based localization in an emulated active RFID system. In Proceedings of the 2019 IEEE 10th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, Canada, 17–19 October 2019; pp. 0771–0778. [Google Scholar]
  7. Li, C.; Tanghe, E.; Plets, D.; Suanet, P.; Hoebeke, J.; De Poorter, E.; Joseph, W. ReLoc: Hybrid RSSI-and phase-based relative UHF-RFID tag localization with COTS devices. IEEE Trans. Instrum. Meas. 2020, 69, 8613–8627. [Google Scholar] [CrossRef]
  8. Rahmadya, B.; Sun, R.; Takeda, S.; Kagoshima, K.; Umehira, M. A framework to determine secure distances for either drones or robots based inventory management systems. IEEE Access 2020, 8, 170153–170161. [Google Scholar] [CrossRef]
  9. Peng, C.; Jiang, H.; Qu, L. Deep convolutional neural network for passive RFID tag localization via joint RSSI and PDOA fingerprint features. IEEE Access 2021, 9, 15441–15451. [Google Scholar] [CrossRef]
  10. Aikawa, S.; Yamamoto, S.; Muramatsu, T. CNN localization using AP inverse position estimation. In Proceedings of the 2019 IEEE Conference on Antenna Measurements & Applications (CAMA), Kuta, Bali, Indonesia, 23–25 October 2019; pp. 1–3. [Google Scholar]
  11. Arigye, W.; Pu, Q.; Zhou, M.; Khalid, W.; Tahir, M.J. RSSI fingerprint height based empirical model prediction for smart indoor localization. Sensors 2022, 22, 9054. [Google Scholar] [CrossRef] [PubMed]
  12. Chen, S. Identification of Single-Neuron Axonal Boutons Integrating Density Peak Clustering and Convolutional Neural Network. Ph.D. Thesis, Huazhong University of Science & Technology, Wuhan, China, 2022. [Google Scholar]
  13. Salim, O.; Dey, S.; Masoumi, H.; Karmakar, N.C. Crack monitoring system for soft rock mining conveyor belt using UHF RFID sensors. IEEE Trans. Instrum. Meas. 2021, 70, 1–12. [Google Scholar] [CrossRef]
  14. Zhang, X.; He, F.; Gai, J.; Bao, J.; Huang, H.; Du, X. A Differentially Private Federated Learning Model for Fingerprinting Indoor Localization in Edge Computing. J. Comput. Res. Dev. 2022, 59, 2667–2688. [Google Scholar]
  15. Wang, H. Design and Implementation of RSSI-Based Localization Algorithm in Wireless Sensor Network. Master’s Thesis, Beijing University of Posts and Telecommunications, Beijing, China, 2011. [Google Scholar]
  16. Ni, X.; Gao, Y.; Li, L. Hybrid Filtering Algorithm Based on RSSI. Comput. Sci. 2019, 46, 133–137. [Google Scholar]
  17. Zhu, M.; Zhang, H. Research on model of indoor distance measurement based on RSSl. Transducer Microsyst. Technol. 2010, 29, 19–22. [Google Scholar]
  18. Wan, Q.; Guo, X.; Chen, Z. Indoor Positioning: Theory, Methods, and Applications; Publishing House of Electronics Industry: Beijing, China, 2012. [Google Scholar]
  19. Dong, Y. Research of Position Technology Based on WiFi Networks in Three-Dimensional Space. Master’s Thesis, Beijing University of Posts and Telecommunications, Beijing, China, 2013. [Google Scholar]
  20. Zhu, M.; Hou, J.; Liu, Y.; Su, J.F. Target Locating Estimation Algorithm Based on Adaptive Scaled Unscented Kalman Filter. Acta Armamentarii 2013, 34, 561–566. [Google Scholar]
  21. Zhang, J.; Ye, X. RSSl signal filtering analysis and simulation. Electron. Des. Eng. 2017, 25, 45–48. [Google Scholar]
  22. Ingabire, W.; Larijani, H.; Gibson, R.M. LoRa RSSI based outdoor localization in an urban area using random neural networks. In Intelligent Computing: Proceedings of the 2021 Computing Conference, Virtual, 15–16 July 2021; Springer International Publishing: New York, NY, USA, 2021; Volume 2, pp. 1032–1043. [Google Scholar]
  23. Espindola, A.; Viegas, E.K.; Traleski, A.; Pellenz, M.E.; Santin, A.O. A deep autoencoder and RNN model for indoor localization with variable propagation loss. In Proceedings of the 2021 17th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob), Bologna, Italy, 11–13 October 2021; pp. 391–396. [Google Scholar]
  24. An, P.; Cao, D.; Zhao, B.; Yang, X.; Zhang, M. Reservoir physical parameters prediction based on LSTM recurrent neural network. Prog. Geophys. 2019, 34, 1849–1858. [Google Scholar]
  25. Wang, X.; Wu, J.; Liu, C.; Yang, H.; Niu, W. Exploring LSTM based recurrent neural network for failure time series prediction. J. Beijing Univ. Aeronaut. Astronaut. 2018, 44, 772–784. [Google Scholar]
  26. Tang, Z.; Li, S.; Kim, K.S.; Smith, J.S. Multi-Dimensional Wi-Fi Received Signal Strength Indicator Data Augmentation Based on Multi-Output Gaussian Process for Large-Scale Indoor Localization. Sensors 2024, 24, 1026. [Google Scholar] [CrossRef] [PubMed]
Figure 1. RFID reader.
Figure 1. RFID reader.
Sensors 24 04815 g001
Figure 2. Electronic tag.
Figure 2. Electronic tag.
Sensors 24 04815 g002
Figure 3. Location fingerprint method schematic diagram.
Figure 3. Location fingerprint method schematic diagram.
Sensors 24 04815 g003
Figure 4. Recurrent neural network architecture diagram.
Figure 4. Recurrent neural network architecture diagram.
Sensors 24 04815 g004
Figure 5. Long short-term memory network structure.
Figure 5. Long short-term memory network structure.
Sensors 24 04815 g005
Figure 6. Gated recurrent unit network structure.
Figure 6. Gated recurrent unit network structure.
Sensors 24 04815 g006
Figure 7. Temporal distribution autoencoder–gated recurrent unit network structure.
Figure 7. Temporal distribution autoencoder–gated recurrent unit network structure.
Sensors 24 04815 g007
Figure 8. Experimental deployment.
Figure 8. Experimental deployment.
Sensors 24 04815 g008
Figure 9. RSSI and white noise distribution.
Figure 9. RSSI and white noise distribution.
Sensors 24 04815 g009
Figure 10. RSSI filtering effect chart.
Figure 10. RSSI filtering effect chart.
Sensors 24 04815 g010
Figure 11. Filtering variance convergence.
Figure 11. Filtering variance convergence.
Sensors 24 04815 g011
Figure 12. Loss function variation graph for each parameter.
Figure 12. Loss function variation graph for each parameter.
Sensors 24 04815 g012
Figure 13. Cumulative distribution function of positioning method error.
Figure 13. Cumulative distribution function of positioning method error.
Sensors 24 04815 g013
Table 1. Comparison of Localization Methods.
Table 1. Comparison of Localization Methods.
ModelTraining Time (s)Testing Time (s)MAE(m)Improvement in Accuracy (%)
NN240.0101.2140
RNN490.0430.82232.3%
LSTM2140.1460.61449.4%
GRU680.0760.40466.7%
TAE-GRU300.0230.29375.9%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wei, Z.; Zhou, Z.; Yu, S.; Chen, J. Enhanced Indoor Positioning Using RSSI and Time-Distributed Auto Encoder-Gated Recurrent Unit Model. Sensors 2024, 24, 4815. https://doi.org/10.3390/s24154815

AMA Style

Wei Z, Zhou Z, Yu S, Chen J. Enhanced Indoor Positioning Using RSSI and Time-Distributed Auto Encoder-Gated Recurrent Unit Model. Sensors. 2024; 24(15):4815. https://doi.org/10.3390/s24154815

Chicago/Turabian Style

Wei, Zhe, Zhanpeng Zhou, Shuyan Yu, and Jialei Chen. 2024. "Enhanced Indoor Positioning Using RSSI and Time-Distributed Auto Encoder-Gated Recurrent Unit Model" Sensors 24, no. 15: 4815. https://doi.org/10.3390/s24154815

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