Nothing Special   »   [go: up one dir, main page]

Next Article in Journal
Wearable Sensors and Smart Devices to Monitor Rehabilitation Parameters and Sports Performance: An Overview
Next Article in Special Issue
Minimum-Time Trajectory Generation for Wheeled Mobile Systems Using Bézier Curves with Constraints on Velocity, Acceleration and Jerk
Previous Article in Journal
Automated Street Light Adjustment System on Campus with AI-Assisted Data Analytics
Previous Article in Special Issue
Deep-Learning-Based ADHD Classification Using Children’s Skeleton Data Acquired through the ADHD Screening Game
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Indoor 2D Positioning Method for Mobile Robots Based on the Fusion of RSSI and Magnetometer Fingerprints

1
Department of Mechatronics and Automation, Faculty of Engineering, University of Szeged, Moszkvai krt. 9, 6725 Szeged, Hungary
2
Doctoral School of Applied Informatics and Applied Mathematics, Óbuda University, Bécsi str. 96/b, 1034 Budapest, Hungary
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(4), 1855; https://doi.org/10.3390/s23041855
Submission received: 19 December 2022 / Revised: 31 January 2023 / Accepted: 2 February 2023 / Published: 7 February 2023
(This article belongs to the Special Issue Advanced Sensors Technologies Applied in Mobile Robot)
Figure 1
<p>Architecture of the proposed method.</p> ">
Figure 2
<p>Measurement setup of the first scenario: (<b>a</b>) environment; (<b>b</b>) schematic drawing.</p> ">
Figure 3
<p>Heatmap of RSSI values in the first scenario for: (<b>a</b>) AP1; (<b>b</b>) AP2; (<b>c</b>) AP3; (<b>d</b>) AP4; and (<b>e</b>) AP5.</p> ">
Figure 3 Cont.
<p>Heatmap of RSSI values in the first scenario for: (<b>a</b>) AP1; (<b>b</b>) AP2; (<b>c</b>) AP3; (<b>d</b>) AP4; and (<b>e</b>) AP5.</p> ">
Figure 4
<p>Heatmap of the magnetic field strength in the first scenario for: (<b>a</b>) <span class="html-italic">B<sub>x</sub></span>; (<b>b</b>) <span class="html-italic">B<sub>y</sub></span>; (<b>c</b>) <span class="html-italic">B<sub>z</sub></span>; (<b>d</b>) <span class="html-italic">B<sub>xy</sub></span>; and (<b>e</b>) <span class="html-italic">B<sub>xyz</sub></span>.</p> ">
Figure 5
<p>Measurement setup of the second scenario: (<b>a</b>) environment of the laboratory; (<b>b</b>) environment with the mobile robot; and (<b>c</b>) schematic drawing.</p> ">
Figure 6
<p>Heatmap of RSSI values in the second scenario for: (<b>a</b>) AP1; (<b>b</b>) AP2; (<b>c</b>) AP3; (<b>d</b>) AP4; and (<b>e</b>) AP5.</p> ">
Figure 6 Cont.
<p>Heatmap of RSSI values in the second scenario for: (<b>a</b>) AP1; (<b>b</b>) AP2; (<b>c</b>) AP3; (<b>d</b>) AP4; and (<b>e</b>) AP5.</p> ">
Figure 7
<p>Heatmap of the magnetic field strength in the second scenario for: (<b>a</b>) <span class="html-italic">B<sub>x</sub></span>; (<b>b</b>) <span class="html-italic">B<sub>y</sub></span>; (<b>c</b>) <span class="html-italic">B<sub>z</sub></span>; (<b>d</b>) <span class="html-italic">B<sub>xy</sub></span>; and (<b>e</b>) <span class="html-italic">B<sub>xyz</sub></span>.</p> ">
Figure 7 Cont.
<p>Heatmap of the magnetic field strength in the second scenario for: (<b>a</b>) <span class="html-italic">B<sub>x</sub></span>; (<b>b</b>) <span class="html-italic">B<sub>y</sub></span>; (<b>c</b>) <span class="html-italic">B<sub>z</sub></span>; (<b>d</b>) <span class="html-italic">B<sub>xy</sub></span>; and (<b>e</b>) <span class="html-italic">B<sub>xyz</sub></span>.</p> ">
Figure 8
<p>Histogram of the <span class="html-italic">B<sub>xyz</sub></span> magnetic field magnitude for: (<b>a</b>) first scenario; and (<b>b</b>) second scenario.</p> ">
Figure 9
<p>Results achieved in the first scenario using different number of hidden layer neurons with different versions of used data for: (<b>a</b>) all points in the grid (training data); (<b>b</b>) every second point in the grid (training data); and (<b>c</b>) every second point in the grid (test data).</p> ">
Figure 10
<p>CDFs of errors achieved in the first scenario with different versions of used data for: (<b>a</b>) all points in the grid (training data); (<b>b</b>) every second point in the grid (training data); and (<b>c</b>) every second point in the grid (test data).</p> ">
Figure 10 Cont.
<p>CDFs of errors achieved in the first scenario with different versions of used data for: (<b>a</b>) all points in the grid (training data); (<b>b</b>) every second point in the grid (training data); and (<b>c</b>) every second point in the grid (test data).</p> ">
Figure 11
<p>Achieved results in the second scenario using different number of hidden layer neurons with different versions of used data for: (<b>a</b>) grid points (training data); and (<b>b</b>) test points.</p> ">
Figure 12
<p>CDFs of errors achieved in the first scenario with different versions of used data for: (<b>a</b>) grid points (training data); and (<b>b</b>) test points.</p> ">
Versions Notes

Abstract

:
Received signal strength indicator (RSSI)-based fingerprinting is a widely used technique for indoor localization, but these methods suffer from high error rates due to various reflections, interferences, and noises. The use of disturbances in the magnetic field in indoor localization methods has gained increasing attention in recent years, since this technology provides stable measurements with low random fluctuations. In this paper, a novel fingerprinting-based indoor 2D positioning method, which utilizes the fusion of RSSI and magnetometer measurements, is proposed for mobile robots. The method applies multilayer perceptron (MLP) feedforward neural networks to determine the 2D position, based on both the magnetometer data and the RSSI values measured between the mobile unit and anchor nodes. The magnetic field strength is measured on the mobile node, and it provides information about the disturbance levels in the given position. The proposed method is validated using data collected in two realistic indoor scenarios with multiple static objects. The magnetic field measurements are examined in three different combinations, i.e., the measurements of the three sensor axes are tested together, the magnetic field magnitude is used alone, and the Z-axis-based measurements are used together with the magnitude in the X-Y plane. The obtained results show that significant improvement can be achieved by fusing the two data types in scenarios where the magnetic field has high variance. The achieved results show that the improvement can be above 35% compared to results obtained by utilizing only RSSI or magnetic sensor data.

1. Introduction

Indoor positioning techniques are utilized in a large variety of applications, such as emergency management [1], smart energy management [2], heating, ventilation, and air conditioning (HVAC) control systems [3], occupancy detection [4], and industrial monitoring [5]. They can be used to determine the position of humans, mobile robots, and objects, etc. In mobile robot applications, the localization problem is the first critical task which needs to be solved in control algorithms, since it directly influences their success. Localization provides the robot pose estimate using a sensor fusion framework, where generally relative and absolute poses are fused with probabilistic approaches. The accurate estimation of the absolute position plays a crucial role in these sensor fusion-based localization methods. In an indoor environment, the GPS cannot provide reliable measurement data, so other technologies have to be considered. Various technologies can be used for this task, such as cameras, LiDAR [6], and radio communication modules [7], etc. The fusion of these technologies was also widely used in related research [8].
In wireless sensor networks (WSN), wireless signal-based techniques are widely used in indoor positioning [9]. These techniques can be based on different types of extracted parameters, such as time of arrival (ToA), time of flight (ToF), angle of arrival (AoA), time difference of flight (TDoF), time difference of arrival (TDoA), received signal strength indicator (RSSI), and channel state information (CSI) [10]. The used methods can be divided into two major groups: geometric and fingerprint-based methods [10]. Geometric approaches include trilateration, multilateration, and triangulation methods. Various measurement parameters can be used in the case of these methods, such as ToA, ToF, or AoA.
The most often applied data type is the RSSI, which can be read from the transceiver modules. In the case of both method families, the position is estimated based on RSSI measurements between multiple anchor nodes with a known position and a unit with an unknown position. In geometric-based algorithms, the RSSI value is converted to distance based on an appropriate model, and then the position is estimated using trilateration [11]. In the case of fingerprint-based methods, measurements are collected in a room at fixed points with a given resolution, then a pattern recognition or pattern-matching algorithm (e.g., artificial neural networks (ANN), k-nearest neighbor (k-NN), etc. [12]) is trained using the measurement data, which is later utilized to determine the position of the unknown point [10,13,14]. Deep learning-based methods also offer an alternative solution to the problem [15,16], but they require much more computational and memory capacity than other methods. This can affect the real-time operation of the system, which is particularly important in cases of their use on mobile robots, where the embedded system must perform other tasks also. RSSI-based technologies are affected by various reflections, interferences and noises, which can influence their localization performance significantly, especially in indoor applications [17]. Some methods even utilize the trilateration and fingerprint-based results together in the fusion algorithm to improve the performance [18], while other methods fuse fingerprinting and time-based techniques [19].
In an outdoor environment, magnetic sensors are mainly utilized as compasses, but indoors they are almost useless in such form, since there are several hard iron and soft iron sources that affect the measurements [20]. This geomagnetism-based technique has attracted considerable attention in recent years [21,22], and has been shown to be a promising technology for indoor localization, since the field is more stable with much lower random fluctuation as compared to other signals [23,24]. Each building has its own unique ambient magnetic field, and if these local anomalies have sufficient variability, then they can be utilized during indoor localization [25].
Various approaches were previously proposed for indoor localization using geomagnetism, but these mainly consider human localization with smartphone-based systems [21,26]. The proposed methods are usually based on a sequence of geomagnetic data, which are generally fused with other data, such as WiFi [23,27,28,29,30], CSI [31], inertial measurement units (IMU) [32], pedestrian dead reckoning (PDR) [28,30,33], or pedometers [34]. In [33], a fusion algorithm was proposed which combined PDR and matching in a magnetic fingerprint map. Some works utilized only the sequence of magnetic field measurements with pattern recognition techniques [35,36,37,38,39]. In [24], the authors utilized the fingerprints of the changes in the raw magnetic field during indoor localization, but the performance can be largely affected by local distortions. Subbu et al. proposed an indoor localization solution by classifying signatures based on their patterns, using a dynamic time warping (DTW)-based approach [35]. The evaluation was performed using fingerprints containing simulated signatures of different ferromagnetic objects. In [36], an indoor positioning technique was proposed, which utilizes the differences in 2D magnetic field measurements that are collected over a distance with a pattern-matching algorithm. A 3D accelerometer was used to find the vertical direction. The authors assumed the following: the attitude variation of the smartphone is small; the change in the user velocity occurs only locally and sparsely; and the indoor environment is considered with no significantly varying magnetic field. In [37], a 2D geomagnetic fingerprint-based method was proposed, which uses point-to-point fingerprint matching. The method does not require an indoor map since it generates an indoor geomagnetic map, including all the turning points and connecting links with a crowdsourcing data collection module. The method also includes step and turning detection based on inertial sensors. The results based on experiments in a five-floor office building showed an average error smaller than 1.5 m. Ashraf et al. used geomagnetic field patterns with convolutional neural networks to perform indoor localization [38]. The performance was evaluated using measurements in two buildings with different experimental environments and path geometry. The results demonstrated that the users could be localized within 1.01 m at 75%. In [39], the magnetic field positioning performance of different machine learning methods was tested using pre-processed raw magnetic data. The test area was a corridor, where magnetic fingerprints were captured for 30 points.
The magnetic sensor-based technology was also used for the localization of mobile robots. In [25], global self-localization was considered for a mobile robot in one dimension using only a three-axis magnetometer. The Monte Carlo localization (MCL)-based technique was tested in experiments conducted in the corridors of four buildings. Both the three-dimensional measurement vector and the magnitude were tested in the method. Lee et al. proposed an indoor positioning system that recognizes magnetic sequence patterns by using a deep neural network [40]. The location was estimated by detecting the patterns of landmarks, using features extracted from the magnetic sequences. The achieved accuracy was 0.8 m in a corridor and 2.3 m in an atrium. In [41], magnetic fingerprints collected using a vision-based motion capture system were used together with odometry data in the localization framework. A particle filter-based method was proposed and the reported average errors achieved were 9 cm. The authors of [42] proposed a deep neural network-based method, which utilizes magnetometer measurement sequences, and applied it for both human and mobile robot localization. The method was tested with two public datasets and provided a localization error of around 1 m for both setups.
The disturbances in the magnetic field measured at different points can be used to form a fingerprint equivalent which is used in RSSI-based methods and carries additional information that can improve the efficiency of the RSSI-based fingerprinting. This study deals with indoor positioning using RSSI and magnetometer data together in a fingerprinting-based system, and the evaluation of the improvement provided by the proposed data fusion approaches. The contributions of this work can be summarized as follows:
  • A novel 2D fingerprint-based positioning method is proposed, which fuses both the RSSI and magnetometer fingerprints using multilayer perceptron (MLP) neural networks. The method utilizes fingerprints measured in one plane near to the ground, since the goal is to provide absolute position information for the sensor fusion framework of a mobile robot. To the authors’ best knowledge, no such method was previously proposed.
  • The proposed method is validated using measurements collected in two different indoor scenarios. Both scenarios are realistic since they include static obstacles.
  • Three different combinations of magnetometer data are tested in the study. In the first version, the magnetometer measurements of the three sensor axes are tested. The second version utilizes the Z-axis measurements together with the magnetic field magnitudes in the X-Y plane, while the 3D magnitudes are utilized in the third version.
  • The results obtained using the different fusion versions are compared with the results provided by utilizing only RSSI or magnetometer data to examine the improvement caused by the fusion of two data types.
The rest of the paper is organized as follows. Section 2 presents the proposed fingerprinting-based method. The applied measurement data are presented in Section 3. The experimental results are discussed in Section 4, while Section 5 summarizes the results of the paper.

2. Position Estimation Using the Fusion of RSSI and Magnetic Fingerprints

The aim of the proposed positioning method is to fuse RSSI and magnetometer data, thereby improving the overall positioning performance.

2.1. RSSI-Based Positioning

RSSI is the calculation of real signal power received by a receiver and is typically expressed in decibel milliwatts (dBm) [10]. This measure can be used to measure the distance between transmitter and receiver devices, based on the transmitted and received signal power differences. RSSI measurements can be used in two ways in positioning methods. In geometric approaches, distances are calculated from the RSSI values using an adequate model. Two propagation models have been generally used to convert the RSSI to distance: the free-space models and the log-normal models. The free-space models are simple, but they do not consider the obstacles between receivers and transmitters, so they are often limited in real applications. The log-normal models are more suitable for different applications due to their flexibility. In fingerprinting-based techniques, the measured RSSIs of access points (AP) collected at given points of the area of interest are used to form the fingerprint database. This fingerprint database is used with a pattern recognition or pattern-matching algorithm, which can be later used to determine the position of a point given by a new measurement vector. Although geometric approaches are largely affected by obstacles, they do not have an effect on fingerprint-based techniques if they are static.

2.2. Magnetic Fingerprints

Vector magnetometers measure the magnetic field in three dimensions, and they are mainly used as compasses based on Earth’s magnetic field. The measurements of these sensors are affected by different factors, which can be classified into two groups. The first group includes deterministic errors, which occur due to manufacturing imperfections, and can be compensated for by calibrating the sensors. Such errors are the scale factor, the bias, and the non-orthogonality error. Magnetic sensors are also affected by external magnetic influences, which are caused by materials that generate or distort the magnetic field. These are called hard iron and soft iron effects [22,43,44]. Hard iron errors are time-invariant, undesired magnetic fields generated by ferromagnetic materials with permanent magnetism, which are additive to Earth’s magnetic field. The hard iron distortion is modeled by a 3 × 1 vector (bHI). Soft iron distortion is the result of a material that influences or distorts a magnetic field, but does not necessarily generate a magnetic field itself, and is therefore not additive. The effect of the soft iron distortion is modeled by a 3 × 3 matrix (ASI). The sensor model supposing that the deterministic errors are calibrated can be given by Equation (1).
B = A S I m + b H I ,
where B = B x B y B z T is the measured output vector, while m = m x m y m z T is the magnetic field vector.
In an indoor environment, the measured magnetic field affected by the distortions at different points can be used to construct a fingerprint of an indoor space, which can be applied during localization.

2.3. Proposed Positioning Method

The magnetic sensor readings cannot be used for distance calculation, but the provided measurements of points with a known position can be utilized to construct a multidimensional fingerprint. Thus, it is obvious that the RSSI and magnetometer data should be fused in a fingerprinting-based method. The proposed method, which can be seen in Figure 1, utilizes together the fingerprints of RSSI values and the fingerprints of magnetometer measurements to train offline the MLP neural network. This trained MLP can be used in real-time to compute the x ^ , y ^ position of an unknown point based on the measurements collected at the given point. The used RSSI values are measured between APs with a known position and the mobile robot, while the magnetic field measurements are provided by a magnetometer installed on the mobile robot. In Figure 1, the magnetometer is connected with a dashed line to the fingerprinting algorithm since different versions of listed data are tested.

2.3.1. Magnetometer Data

In total, three different possibly usable versions of magnetometer data are tested in the analysis:
  • The first version utilizes the measurements on the three sensor axes, i.e., the Bx, By, and Bz measurements. This kind of application of the magnetometer readings is only possible if the orientation of the sensor in the global coordinate frame is known for the given point, since different orientations at the same location result in different sensor readings. This version can be used to examine the most achievable positioning performance of the proposed method, since it contains the most information.
  • In the second version, the 3D magnetic field magnitude (Bxyz), which can be computed from the sensor outputs using Equation (2), is utilized since it is orientation independent.
B x y z = B x 2 + B y 2 + B z 2 ,
  • If the mobile robot is moving on a flat surface, then the degree of freedom decreases to three, i.e., (X, Y, θ). This makes the measurements in the Z-axis directly usable. The magnetic field magnitude in the X-Y plane (Bxy), which can be calculated using Equation (3), can also be utilized without the knowledge of the θ angle. Thus, this version uses together the Bz and the Bxy.
B x y = B x 2 + B y 2 ,

2.3.2. Fingerprinting Algorithm

The proposed method applies MLP neural networks to perform positioning in 2D. The MLP is a widely used technique and it has been shown to provide the best results in RSSI-based fingerprint tasks compared to well-known methods, such as the weighted K-nearest neighbor (WKNN) and the random forest (RF) algorithms [45].
The method applies measurements collected at grid points of an indoor space to train the MLP. The measurement database of RSSI data used during the training process consists of WiFi R S S I i , x c , y c measurements for i = 1 ,   2 ,   ,   N APs. The measurements collected in a grid based on the x c , y c coordinates form a fingerprint for each AP. Similarly, the B x , x c , y c , B y , x c , y c , and B z , x c , y c magnetometer measurements taken at the grid points and the computed B x y , x c , y c , and B x y z , x c , y c magnitudes also form fingerprints. These fingerprints for the different data types are also utilized during the MLP training.
The developed MLP contains three layers: an input layer, a hidden layer, and an output layer. An input vector is formed for each given location from the corresponding R S S I i values measured between the mobile node and the N APs, together with the magnetic field strengths used in different versions. The output layer has two neurons, which provide the X and Y coordinates. For a given point in the training datasets, the target values corresponding to the input vector are defined by the x c , y c coordinates. The optimal number of neurons in the hidden layer should be defined by testing different configurations. The proposed MLP uses tangent sigmoid activation functions in the hidden layer and linear transfer functions in the output layer.

3. Applied Measurement Data

The proposed method was validated using measurements collected in two different scenarios. In the case of both scenarios, RSSI values were measured between multiple anchor nodes with a known position and one mobile node. The WiFi was chosen to provide the RSSI measurements, since it is the most suitable and popular wireless standard, and it is widely used in indoor localization methods [10,46]. The WiFi has high bitrate, high scalability, and is relatively less affected by external factors compared to other wireless standards, such as Bluetooth low energy (BLE), ZigBee, LoRaWAN, radio frequency identification (RFID), and ultra-wideband (UWB). Other technologies also have their own advantages and disadvantages. BLE is also a widely used technology in positioning applications [47,48]. The advantages of this technology are its low power consumption and fast connection establishment between the modules, but the lower range is a big disadvantage in the case of this technology [49]. Passive RFID technology-based systems are also popular in localization applications. The main advantage of these systems is their low cost, but their operation range is limited [50], which results in a high number of used tags [51]. The UWB technology provides high precision and low loss [52], but the higher cost is a big disadvantage of these systems.
Magnetometer measurements were also collected in the case of the mobile node. The measurements were taken in one plane near to the ground, which would be the case if the system was used with a mobile robot. Also, the disturbance sources are closer to the sensor, so they provide greater effects.

3.1. Measurement System

The applied measurement system consists of five anchor nodes (N = 5) and one mobile node. All six units are based on a NodeMCU ESP-32S V1.1 microcontroller board, which is capable of WiFi communication. The mobile node is also equipped with a three-axis magnetic sensor.
The used magnetometer is an HMC5883L type three-axis digital compass IC, which utilizes Honeywell’s anisotropic magnetoresistive (AMR) technology. The directional sensors feature precision in-axis sensitivity and linearity, and very low cross-axis sensitivity. The measurement range of the magnetic sensor is ±810 μT in 12-bit resolution with a 160 Hz maximal sampling rate. It also contains an I2C interface, which can be used to both configure the sensors and read the measurement values.
Since the data were processed offline, a central unit was used to collect the measurement data. The mobile node forwarded the magnetometer readings and the RSSI values read from the transceiver of the ESP32 board during communication with the APs.

3.2. Data Acquisition

In the case of both scenarios, the measurements were collected at defined grid points. At all points, 10 RSSI measurements were recorded for all APs and 10 magnetometer measurements were also collected. The 10 samples were later averaged to decrease the effect of noise.
During the data acquisition process, the WiFi channel was set to 1 and the antenna Tx power was 19.5 dBm in the case of all wireless modules.
The version where the measurements of the three magnetometer axes are utilized required the knowledge of the mobile unit’s orientation. To obtain usable magnetometer data for this version, the orientation of the mobile unit was set to as constant as possible at different points.
Besides the hard and soft iron effects, the magnetometer measurements are also affected by deterministic errors, such as scale factors, bias, and non-orthogonality errors. To compensate for these effects, the magnetometer was calibrated using an evolutionary algorithm-based calibration method, which utilizes measurements taken in multiple orientations to compute the calibration parameters [53]. This process was performed before data acquisition.

3.2.1. First Scenario

In the first scenario, a smaller room was chosen, which had enclosing dimensions of 6.6 m × 3.6 m. Figure 2 shows the measurement environment in the room and its schematic drawing with the position of the anchor nodes. To make the setup realistic, multiple static objects were left in the room, such as cabinets and tables. It is also important to note that one of the walls was made from glass, moreover a concrete column could also be found in the room. Some measurement points were none-line-of-sight (NLOS) due to the objects.
In the grid, which was used to determine the measurement points, squares with a side length of 20 cm were defined. The height of both the mobile unit and the APs was 4 cm. Altogether 426 points were used for data acquisition. The mobile node was moved manually between the measurement points and there was no one in the room during the measurements. The measurements were collected over the course of one day. The heatmaps of the collected RSSI measurements for the 5 APs and the magnetometer data are shown in Figure 3 and Figure 4, respectively. The white parts in the figures represent the places where measurements could not be taken due to the obstacles, while the black rectangles show the positions of the APs.

3.2.2. Second Scenario

The measurements of the second scenario were collected in a larger laboratory with enclosing dimensions of 12 m × 8 m. Both the measurement environment in the laboratory and its schematic drawing with the position of the APs can be seen in Figure 5. Similarly to the first scenario, static objects were present in the laboratory during the measurements, such as tables, robotic cells, and a linear rail with a robotic arm. Due to the objects, many points were NLOS to some APs.
The grid was also defined using 20 cm distances, as in the first scenario. Due to the high number of points, the movement of the measurement unit between the grid points was realized using a mobile robot. The height of the mobile unit and the APs was 10.8 cm and 3.5 cm, respectively. Altogether, measurements were collected at 1408 points, defined by the grid. Further measurements were taken at 20 random positions, which were later used for the testing of the trained MLPs. These points were defined by random coordinates and were not identical with any grid point coordinates. The measurements were collected over the course of one day. Figure 6 shows the heatmaps of the RSSI values from the 5 APs, while the heatmaps of the magnetic sensor data can be seen in Figure 7. The white parts in both Figure 6 and Figure 7 represent the places where measurements could not be taken due to the obstacles, while black parts show the places of the APs.

4. Experimental Results

It can be observed from Figure 3 and Figure 4 for the first scenario and from Figure 6 and Figure 7 for the second scenario, that the heatmaps of the RSSI data and magnetic field strengths carry additional information when compared to each other. The histogram of the Bxyz magnetic field magnitude for the two scenarios can be seen in Figure 8. The histograms show that the variance of the magnetometer measurements is much higher in the case of the second scenario, which is the laboratory.

4.1. Datasets and MLP Training

The data measured at the grid points were utilized to train the MLP neural networks separately for the two scenarios. Since no test points were determined in the first scenario, two separate datasets were defined. In the first dataset, all points were utilized as training data without test data to examine the obtainable error levels at the grid points. In the second dataset, a subset of points containing every second point was used in the training process, while the remaining 50% of the points were applied for the testing of the trained MLPs.
Altogether, seven combinations of used data were tested to examine their performance in the two scenarios. The tested combinations are listed as follows:
  • RSSI
  • Bx, By, Bz
  • Bxy, Bz
  • Bxyz
  • RSSI, Bx, By, Bz
  • RSSI, Bxy, Bz
  • RSSI, Bxyz
The training of the MLP neural networks for all datasets was tested with 1–100 hidden layer neurons to find the necessary configuration. Since the achievable error rates largely depend on the initial weights, all configurations were tested 10 times and the results containing the lowest error rates were used later in the evaluation process. Multiple performance metrics were utilized in the evaluation process. The mean absolute error (MAE) was used as the main metric, which can be calculated using Equation (4),
MAE = 1 M i = 1 M E i ,
where M is the number of points, while Ei is the error corresponding to the ith point, which can be calculated using Equation (5).
E i = x ^ x c 2 + y ^ y c 2
In Equation (5), x ^ and y ^ are the determined coordinates, while x c and y c are the real position of the ith point.
Other metrics corresponding to the lowest achieved MAE were also computed. These were the standard deviation (STD) and the root mean squared error (RMSE), which can be calculated using Equations (6) and (7), respectively.
STD = 1 M 1 i = 1 M E i MAE 2
RMSE = i = 1 M E i 2 M  
The hyperparameters of the MLP training process can be found in Table 1. The training was done offline in MATLAB on a PC with the following specifications: Intel Core i5-12600K 3.69 GHz CPU, 16 GB DDR4 3600 MHz RAM, M2 SSD, ASUS GeForce RTX 3080 10GB GPU. The training process was time consuming since multiple hours were required, even for one version. Although it is a complex and time-consuming process to find the optimal network for a given version, it does not affect the real-time operation after implementation.

4.2. Evaluation of the First Scenario

The best achieved MAE results and the corresponding STD and RMSE results, using different versions of data for the two datasets in the case of the first scenario, are summarized in Table 2. It can be observed from the results that using the proposed method, the errors significantly decrease in the case of the training data. Using datasets where all points were used as training data, significant improvements were achieved using the versions that utilized RSSI, Bx, By, Bz and RSSI, Bxy, Bz, compared to results where only RSSI was used. Here, the MAE decreased from 50.71 cm to 34.64 cm and 41.68 cm, respectively. In the datasets where every second point was utilized, the MAE using only RSSI was more than 10 cm lower than when all points were used. The improvement caused by the fusion with magnetometer data was 7–10 cm, using any version. It should be noticed that when using the RSSI, Bxy, Bz version, an MAE more than 2 cm lower was achieved than with the other two fusion-based versions. In the case of test data, no improvement can be noticed since the RSSI and the fusion-based versions provided nearly the same results. This can be caused by the low variance of the magnetic field measurements in this scenario, and the large distances between the points due to the usage of every second point. The achieved results using only magnetometer data in this scenario show a much lower performance than the other versions.
Figure 9 shows the best achieved MAE using different setups, based on the hidden layer neuron numbers with different versions of used data. It can be seen from the results that the MAE starts to converge around 40–50 neurons in the case of the training data. Only slight improvements can be noticed with higher neuron numbers. In the case of the test data, the MAE converges around 20 neurons.
The cumulative density functions (CDF) of errors for the different used versions of data can be seen in Figure 10. The errors larger than 300 cm were truncated. It can be noticed that the proposed method significantly improves the error distribution in the case of the training data. For example, when using all grid points for training, around 60% of points give below 50 cm errors with only RSSI, which increases to ~70% and ~80% using RSSI, Bxy, Bz and RSSI, Bx, By, Bz, respectively. With the test data, the fused versions provide almost identical curves, as with using only RSSI.

4.3. Evaluation of the Second Scenario

Table 3 presents the best achieved MAE and the corresponding STD and RMSE results in the second scenario for the different combinations of used data. Much higher improvements can be noticed with the proposed method compared to the results achieved in the first scenario, which is obviously the cause of the higher variance of the magnetic field readings. It is very important to note that approximately 20 cm better results were obtained in the case of both the training and test data using Bx, By, Bz, compared to the results achieved using only RSSI. It is also important to notice that the MAE for almost all versions was lower in the case of the test data than with the training data. This can be caused by lower error rates in the areas where the random locations were defined. The proposed method resulted in significantly lower error rates for all three versions compared to both RSSI and Bx, By, Bz, in the case of both the training and test data. The best results were provided by the version utilizing RSSI, Bx, By, Bz, for which the achieved MAE was 99.59 cm and 77.27 cm for the training and test data, respectively. The improvement with this combination of used data resulted in more than 35% improvement compared to the results obtained using only RSSI or Bx, By, Bz. The version using RSSI, Bxy, Bz, which can be used in the case of flat surfaces without knowledge of orientation, resulted in approximately 10 cm worse results than using RSSI and the measurements of the three sensor axes together. Compared to the results based on only RSSI, this version resulted in more than 35 % improvement. The worst results of the three fused versions were provided by utilizing RSSI with the 3D magnetic field magnitude together. The provided results with this orientation-independent version were 128.96 cm for the training data and 126.25 cm for the test data. Compared to the RSSI-based results, the improvement was 25.37% and 16.71%, respectively.
The achieved MAE using a different number of neurons in the hidden layer, for the various versions of used data recorded in the second scenario, can be seen in Figure 11. It can be seen from the results that most versions converge with 30–40 neurons in the case of the training data and with 20 neurons using the test data, but slight improvements can also be noticed with a higher number of hidden layer neurons in both cases.
The CDFs of error for the best setups, using different versions of used data in the case of the second scenario, can be seen in Figure 12. The errors larger than 600 cm were truncated. It can be observed from the results that significant improvements can be achieved in the error distributions using the different versions of the proposed method.

5. Conclusions

In this work, a novel fingerprinting-based positioning method was proposed, which fuses the RSSI data measured between anchor nodes and a mobile node with the magnetic field measurements collected from the mobile unit. In total, three different versions of used magnetometer data were tested in the proposed method. The position is determined using three-layer MLP neural networks.
The method was validated using data collected in two different realistic indoor scenarios, i.e., in a smaller room and a larger laboratory. Multiple static objects were present in both scenarios. The MLP ANNs were tested with a various number of hidden layer neurons to find the optimal configuration.
The achieved results show that significant improvement, even above 35%, can be achieved using the proposed method, compared to the results achieved using only the RSSI or magnetic sensor data, if the variance of the magnetic field measurements is high in the observed indoor space. In the first scenario, where the variance of magnetometer readings was lower, improvement could be noticed only in the case of the training data. In the second scenario, where the variance in the magnetic field strength was much higher, significant improvements were achieved. The best results were obtained by fusing RSSI data with magnetometer measurements in the three axes, but this version requires knowledge of the orientation of the mobile unit in the global coordinate frame. The version using the RSSI data, together with the magnetometer measurements in the Z-axis and the magnitude in the X-Y plane, provided more than 35% better results compared to only RSSI-based error rates. This version can be used in the case of flat surfaces without knowledge of the orientation. Utilizing the RSSI data together with the 3D magnetometer magnitudes resulted in approximately 25% and 15% improvement in the case of the training and test data, respectively.
The limitations of the proposed approach include that the magnetic sensor needs to be close to the objects causing the disturbances. Another limitation is that some versions depend on the orientation, which should be solved by implementing an orientation estimation framework that can provide the necessary information. Further future goals include achieving further improvements in the error rates by incorporating other data and its application in a sensor fusion-based localization framework.

Author Contributions

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

Funding

The work was supported by the National Research, Development, and Innovation Fund of Hungary through project no. 142790 under the FK_22 funding scheme.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are openly available at: https://github.com/petersarcevic/rssi_magnetometer_fingerprint_database (accessed on 30 January 2023).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mukhopadhyay, A.; Mallisscry, A. TELIL: A Trilateration and Edge Learning based Indoor Localization Technique for Emergency Scenarios. In Proceedings of the International Conference on Advances in Computing, Communications and Informatics (ICACCI), Bangalore, India, 19–22 September 2018. [Google Scholar] [CrossRef]
  2. 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]
  3. 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 ACM Conference on Embedded Networked Sensor Systems (SenSys), Rome, Italy, 11–15 November 2013. [Google Scholar] [CrossRef]
  4. Tekler, Z.D.; Chong, A. Occupancy prediction using deep learning approaches across multiple space types: A minimum sensing strategy. Build. Environ. 2022, 226, 109689. [Google Scholar] [CrossRef]
  5. Gogolák, L.; Fürstner, I. Wireless Sensor Network Aided Assembly Line Monitoring According to Expectations of Industry 4.0. Appl. Sci. 2021, 11, 25. [Google Scholar] [CrossRef]
  6. Peng, Y.; Niu, X.; Tang, J.; Mao, D.; Qian, C. Fast Signals of Opportunity Fingerprint Database Maintenance with Autonomous Unmanned Ground Vehicle for Indoor Positioning. Sensors 2018, 18, 3419. [Google Scholar] [CrossRef] [PubMed]
  7. Wang, J.; Park, J. An Enhanced Indoor Positioning Algorithm Based on Fingerprint Using Fine-Grained CSI and RSSI Measurements of IEEE 802.11n WLAN. Sensors 2021, 21, 2769. [Google Scholar] [CrossRef]
  8. Kolakowski, M. Automated Calibration of RSS Fingerprinting Based Systems Using a Mobile Robot and Machine Learning. Sensors 2021, 21, 6270. [Google Scholar] [CrossRef]
  9. Yang, T.; Cabani, A.; Chafouk, H. A Survey of Recent Indoor Localization Scenarios and Methodologies. Sensors 2021, 21, 8086. [Google Scholar] [CrossRef]
  10. Singh, N.; Choe, S.; Punmiya, R. Machine Learning Based Indoor Localization Using Wi-Fi RSSI Fingerprints: An Overview. IEEE Access 2021, 9, 127150–127174. [Google Scholar] [CrossRef]
  11. Qin, J.; Sun, S.; Deng, Q.; Liu, L.; Tian, Y. Indoor Trajectory Tracking Scheme Based on Delaunay Triangulation and Heuristic Information in Wireless Sensor Networks. Sensors 2017, 17, 1275. [Google Scholar] [CrossRef]
  12. Roy, P.; Chowdhury, C. A Survey of Machine Learning Techniques for Indoor Localization and Navigation Systems. J. Intell. Robot. Syst. 2021, 101, 63. [Google Scholar] [CrossRef]
  13. Luo, R.C.; Hsiao, T.J. Dynamic Wireless Indoor Localization Incorporating with an Autonomous Mobile Robot Based on an Adaptive Signal Model Fingerprinting Approach. IEEE Trans. Ind. Electron. 2019, 66, 1940–1951. [Google Scholar] [CrossRef]
  14. Tian, X.; Shen, R.; Liu, D.; Wen, Y.; Wang, X. Performance Analysis of RSS Fingerprinting Based Indoor Localization. IEEE Trans. Mob. Comput. 2016, 16, 2847–2861. [Google Scholar] [CrossRef]
  15. Alhomayani, F.; Mahoor, M.H. Deep learning methods for fingerprint-based indoor positioning: A review. J. Locat. Based Serv. 2020, 14, 129–200. [Google Scholar] [CrossRef]
  16. Yoo, J. Multiple Fingerprinting Localization by an Artificial Neural Network. Sensors 2022, 22, 7505. [Google Scholar] [CrossRef]
  17. Xue, W.; Qiu, W.; Hua, X.; Yu, K. Improved Wi-Fi RSSI Measurement for Indoor Localization. IEEE Sens. J. 2017, 17, 2224–2230. [Google Scholar] [CrossRef]
  18. Poulose, A.; Kim, J.; Han, D.S. A Sensor Fusion Framework for Indoor Localization Using Smartphone Sensors and Wi-Fi RSSI Measurements. Appl. Sci. 2019, 9, 4379. [Google Scholar] [CrossRef]
  19. Rizk, H.; Elmogy, A.; Yamaguchi, H. A Robust and Accurate Indoor Localization Using Learning-Based Fusion of Wi-Fi RTT and RSSI. Sensors 2022, 22, 2700. [Google Scholar] [CrossRef]
  20. Li, B.; Gallagher, T.; Dempster, A.G.; Rizos, C. How feasible is the use of magnetic field alone for indoor positioning? In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sydney, Australia, 13–15 November 2012. [Google Scholar] [CrossRef]
  21. He, S.; Shin, K.G. Geomagnetism for Smartphone-Based Indoor Localization: Challenges, Advances, and Comparisons. ACM Comput. Surv. 2018, 50, 1–37. [Google Scholar] [CrossRef]
  22. Ouyang, G.; Abed-Meraim, K. A Survey of Magnetic-Field-Based Indoor Localization. Electronics 2022, 11, 864. [Google Scholar] [CrossRef]
  23. Wu, H.; Mo, Z.; Tan, J.; He, S.; Chen, S.-H.G. Efficient Indoor Localization Based on Geomagnetism. ACM Trans. Sens. Netw. 2019, 15, 42. [Google Scholar] [CrossRef]
  24. Chen, Y.; Zhou, M.; Zheng, Z. Learning Sequence-Based Fingerprint for Magnetic Indoor Positioning System. IEEE Access 2019, 7, 163231–163244. [Google Scholar] [CrossRef]
  25. Haverinen, J.; Kemppainen, A. Global indoor self-localization based on the ambient magnetic field. Rob. Auton. Syst. 2009, 57, 1028–1035. [Google Scholar] [CrossRef]
  26. Ashraf, I.; Zikria, Y.B.; Hur, S.; Park, Y. A Comprehensive Analysis of Magnetic Field Based Indoor Positioning with Smartphones: Opportunities, Challenges and Practical Limitations. IEEE Access 2020, 8, 228548–228571. [Google Scholar] [CrossRef]
  27. Shu, Y.; Bo, C.; Shen, G.; Zhao, C.; Li, L.; Zhao, F. Magicol: Indoor Localization Using Pervasive Magnetic Field and Opportunistic WiFi Sensing. IEEE J. Sel. Areas Commun. 2015, 33, 1443–1457. [Google Scholar] [CrossRef]
  28. Ban, R.; Kaji, K.; Hiroi, K.; Kawaguchi, N. Indoor Positioning Method Integrating Pedestrian Dead Reckoning with Magnetic Field and WiFi Fingerprints. In Proceedings of the International Conference on Mobile Computing and Ubiquitous Networking (ICMU), Hakodate, Japan, 20–22 January 2015. [Google Scholar] [CrossRef]
  29. Li, Y.; He, Z.; Nielsen, J.; Lachapelle, G. Using Wi-Fi/magnetometers for indoor location and personal navigation. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation (IPIN), Banff, AB, Canada, 13–16 October 2015. [Google Scholar] [CrossRef]
  30. Li, Y.; Zhuang, Y.; Lan, H.; Zhou, Q.; Niu, X.; El-Sheimy, N. A Hybrid WiFi/Magnetic Matching/PDR Approach for Indoor Navigation with Smartphone Sensors. IEEE Commun. Lett. 2016, 20, 169–172. [Google Scholar] [CrossRef]
  31. Huang, X.; Guo, S.; Wu, Y.; Yang, Y. A fine-grained indoor fingerprinting localization based on magnetic field strength and channel state information. Pervasive Mob. Comput. 2017, 41, 150–165. [Google Scholar] [CrossRef]
  32. Ashraf, I.; Hur, S.; Park, Y. mPILOT-Magnetic Field Strength Based Pedestrian Indoor Localization. Sensors 2018, 18, 2283. [Google Scholar] [CrossRef]
  33. Wang, G.; Wang, X.; Nie, J.; Lin, L. Magnetic-Based Indoor Localization Using Smartphone via a Fusion Algorithm. IEEE Sens. J. 2019, 19, 6477–6485. [Google Scholar] [CrossRef]
  34. Wu, H.; He, S.; Chen, S.-H.G. A Graphical Model Approach for Efficient Geomagnetism-Pedometer Indoor Localization. In Proceedings of the IEEE International Conference on Mobile Ad Hoc and Sensor Systems (MASS), Orlando, FL, USA, 22–25 October 2017. [Google Scholar] [CrossRef]
  35. Subbu, K.P.; Gozick, B.; Dantu, R. LocateMe: Magnetic-Fields-Based Indoor Localization Using Smartphones. ACM Trans. Intell. Syst. Technol. 2013, 4, 73. [Google Scholar] [CrossRef]
  36. Kim, B.; Kong, S.-H. A Novel Indoor Positioning Technique Using Magnetic Fingerprint Difference. IEEE Trans. Instrum. Meas. 2016, 65, 2035–2045. [Google Scholar] [CrossRef]
  37. Fan, X.; Wu, J.; Long, C.; Zhu, Y. Accurate and Low-cost Mobile Indoor Localization with 2-D Magnetic Fingerprints. In Proceedings of the ACM Workshop on Mobile Crowdsensing Systems and Applications (CrowdSenSys), Delft, The Netherlands, 6–8 November 2017. [Google Scholar] [CrossRef]
  38. Ashraf, I.; Kang, M.; Hur, S.; Park, Y. MINLOC: Magnetic Field Patterns-Based Indoor Localization Using Convolutional Neural Networks. IEEE Access 2020, 8, 66213–66227. [Google Scholar] [CrossRef]
  39. Ouyang, G.; Abed-Meraim, K. Analysis of Magnetic Field Measurements for Indoor Positioning. Sensors 2022, 22, 4014. [Google Scholar] [CrossRef]
  40. Lee, N.; Ahn, S.; Han, D. AMID: Accurate Magnetic Indoor Localization Using Deep Learning. Sensors 2018, 18, 1598. [Google Scholar] [CrossRef] [Green Version]
  41. Frassl, M.; Angermann, M.; Lichtenstern, M.; Robertson, P.; Julian, B.J.; Doniec, M. Magnetic Maps of Indoor Environments for Precise Localization of Legged and Non-legged Locomotion. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Tokyo, Japan, 3–7 November 2013. [Google Scholar] [CrossRef]
  42. Antsfeld, L.; Chidlovskii, B. Magnetic Field Sensing for Pedestrian and Robot Indoor Positioning. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation (IPIN), Lloret de Mar, Spain, 29 November–2 December 2021. [Google Scholar] [CrossRef]
  43. Secer, G.; Barshan, B. Improvements in deterministic error modeling and calibration of inertial sensors and magnetometers. Sens. Actuator A Phys. 2016, 247, 522–538. [Google Scholar] [CrossRef]
  44. Hadjigeorgiou, N.; Asimakopoulos, K.; Papafotis, K.; Sotiriadis, P.P. Vector Magnetic Field Sensors: Operating Principles, Calibration, and Applications. IEEE Sens. J. 2021, 21, 12531–12544. [Google Scholar] [CrossRef]
  45. Csik, D.; Odry, A.; Sarcevic, P. Comparison of RSSI-Based Fingerprinting Methods for Indoor Localization. In Proceedings of the IEEE International Symposium on Intelligent Systems and Informatics (SISY), Subotica, Serbia, 15–17 September 2022. [Google Scholar]
  46. He, S.; Chan, S.-H.G. Wi-Fi Fingerprint-Based Indoor Positioning: Recent Advances and Comparisons. IEEE Commun. Surv. Tutor. 2016, 18, 466–490. [Google Scholar] [CrossRef]
  47. Giovanelli, D.; Farella, E.; Fontanelli, D.; Macii, D. Bluetooth-Based Indoor Positioning Through ToF and RSSI Data Fusion. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation (IPIN), Nantes, France, 24–27 September 2018. [Google Scholar] [CrossRef]
  48. 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]
  49. Mackensen, E.; Lai, M.; Wendt, T.M. Bluetooth Low Energy (BLE) based wireless sensors. In Proceedings of the IEEE SENSORS, Taipei, Taiwan, 28–31 October 2012. [Google Scholar] [CrossRef]
  50. Hahnel, D.; Burgard, W.; Fox, D.; Fishkin, K.; Philipose, M. Mapping and localization with RFID technology. In Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), New Orleans, LA, USA, 26 April–1 May 2004. [Google Scholar] [CrossRef]
  51. Tesoriero, R.; Tebar, R.; Gallud, J.A.; Lozano, M.D.; Penichet, V.M.R. Improving location awareness in indoor spaces using RFID technology. Expert Syst. Appl. 2010, 37, 894–898. [Google Scholar] [CrossRef]
  52. Ma, J.; Duan, X.; Shang, C.; Ma, M.; Zhang, D. Improved Extreme Learning Machine Based UWB Positioning for Mobile Robots with Signal Interference. Machines 2022, 10, 218. [Google Scholar] [CrossRef]
  53. Sarcevic, P.; Pletl, S.; Kincses, Z. Evolutionary algorithm based 9DOF sensor board calibration. In Proceedings of the IEEE International Symposium on Intelligent Systems and Informatics (SISY), Subotica, Serbia, 11–13 September 2014. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Architecture of the proposed method.
Figure 1. Architecture of the proposed method.
Sensors 23 01855 g001
Figure 2. Measurement setup of the first scenario: (a) environment; (b) schematic drawing.
Figure 2. Measurement setup of the first scenario: (a) environment; (b) schematic drawing.
Sensors 23 01855 g002
Figure 3. Heatmap of RSSI values in the first scenario for: (a) AP1; (b) AP2; (c) AP3; (d) AP4; and (e) AP5.
Figure 3. Heatmap of RSSI values in the first scenario for: (a) AP1; (b) AP2; (c) AP3; (d) AP4; and (e) AP5.
Sensors 23 01855 g003aSensors 23 01855 g003b
Figure 4. Heatmap of the magnetic field strength in the first scenario for: (a) Bx; (b) By; (c) Bz; (d) Bxy; and (e) Bxyz.
Figure 4. Heatmap of the magnetic field strength in the first scenario for: (a) Bx; (b) By; (c) Bz; (d) Bxy; and (e) Bxyz.
Sensors 23 01855 g004
Figure 5. Measurement setup of the second scenario: (a) environment of the laboratory; (b) environment with the mobile robot; and (c) schematic drawing.
Figure 5. Measurement setup of the second scenario: (a) environment of the laboratory; (b) environment with the mobile robot; and (c) schematic drawing.
Sensors 23 01855 g005
Figure 6. Heatmap of RSSI values in the second scenario for: (a) AP1; (b) AP2; (c) AP3; (d) AP4; and (e) AP5.
Figure 6. Heatmap of RSSI values in the second scenario for: (a) AP1; (b) AP2; (c) AP3; (d) AP4; and (e) AP5.
Sensors 23 01855 g006aSensors 23 01855 g006b
Figure 7. Heatmap of the magnetic field strength in the second scenario for: (a) Bx; (b) By; (c) Bz; (d) Bxy; and (e) Bxyz.
Figure 7. Heatmap of the magnetic field strength in the second scenario for: (a) Bx; (b) By; (c) Bz; (d) Bxy; and (e) Bxyz.
Sensors 23 01855 g007aSensors 23 01855 g007b
Figure 8. Histogram of the Bxyz magnetic field magnitude for: (a) first scenario; and (b) second scenario.
Figure 8. Histogram of the Bxyz magnetic field magnitude for: (a) first scenario; and (b) second scenario.
Sensors 23 01855 g008
Figure 9. Results achieved in the first scenario using different number of hidden layer neurons with different versions of used data for: (a) all points in the grid (training data); (b) every second point in the grid (training data); and (c) every second point in the grid (test data).
Figure 9. Results achieved in the first scenario using different number of hidden layer neurons with different versions of used data for: (a) all points in the grid (training data); (b) every second point in the grid (training data); and (c) every second point in the grid (test data).
Sensors 23 01855 g009
Figure 10. CDFs of errors achieved in the first scenario with different versions of used data for: (a) all points in the grid (training data); (b) every second point in the grid (training data); and (c) every second point in the grid (test data).
Figure 10. CDFs of errors achieved in the first scenario with different versions of used data for: (a) all points in the grid (training data); (b) every second point in the grid (training data); and (c) every second point in the grid (test data).
Sensors 23 01855 g010aSensors 23 01855 g010b
Figure 11. Achieved results in the second scenario using different number of hidden layer neurons with different versions of used data for: (a) grid points (training data); and (b) test points.
Figure 11. Achieved results in the second scenario using different number of hidden layer neurons with different versions of used data for: (a) grid points (training data); and (b) test points.
Sensors 23 01855 g011
Figure 12. CDFs of errors achieved in the first scenario with different versions of used data for: (a) grid points (training data); and (b) test points.
Figure 12. CDFs of errors achieved in the first scenario with different versions of used data for: (a) grid points (training data); and (b) test points.
Sensors 23 01855 g012
Table 1. Hyperparameters of the MLP training process.
Table 1. Hyperparameters of the MLP training process.
HyperparameterValue
training functionLevenberg–Marquardt backpropagation
performance functionmean squared error (MSE)
normalizationminmax to range [−1, +1]
ratio of data used for training70%
ratio of data used for validation30%
maximum number of epochs to train6000
performance goal0
maximum validation failures20
minimum performance gradient10−7
maximum time to train in secondsinf
Table 2. Best achieved MAE and the corresponding STD and RMSE results for different datasets in the first scenario using different versions of data.
Table 2. Best achieved MAE and the corresponding STD and RMSE results for different datasets in the first scenario using different versions of data.
Used DataAll Points in the Grid (Training Data)Every Second Point in the Grid (Training Data)Every Second Point in the Grid (Test Data)
MAE ± STD [cm]RMSE [cm]MAE ± STD [cm]RMSE [cm]MAE ± STD [cm]RMSE [cm]
RSSI50.71 ± 44.0567.1340.04 ± 37.3956.9175.43 ± 58.1297.06
Bx, By, Bz96.88 ± 60.38118.0187.48 ± 54.95104.86141.48 ± 76.47161.10
Bxy, Bz119.01 ± 65.28138.07105.52 ± 65.93126.61145.12 ± 73.04163.54
Bxyz159.19 ± 74.25175.72149.67 ± 75.32167.64167.02 ± 76.12183.48
RSSI, Bx, By, Bz34.64 ± 32.8751.8632.44 ± 37.2749.3576.67 ± 56.2096.81
RSSI, Bxy, Bz41.68 ± 36.5855.4229.07 ± 41.1852.5875.03 ± 55.3393.14
RSSI, Bxyz49.86 ± 45.3867.3932.54 ± 39.1750.8577.79 ± 58.1797.05
Table 3. Best achieved MAE and corresponding STD and RMSE results for different versions of used data in the second scenario.
Table 3. Best achieved MAE and corresponding STD and RMSE results for different versions of used data in the second scenario.
Used DataGrid Points (Training Data)Test Points (Test Data)
MAE ± STD [cm]RMSE [cm]MAE ± STD [cm]RMSE [cm]
RSSI172.80 ± 111.14205.43151.58 ± 116.25199.00
Bx, By, Bz152.67 ± 129.81200.37130.49 ± 113.16172.51
Bxy, Bz228.28 ± 166.67284.65232.86 ± 172.64295.42
Bxyz285.20 ± 176.22338.88255.07 ± 193.52317.23
RSSI, Bx, By, Bz99.59 ± 78.93127.0677.27 ± 76.75110.47
RSSI, Bxy, Bz110.19 ± 86.44140.0387.63 ± 94.27137.01
RSSI, Bxyz128.96 ± 96.54161.07126.25 ± 115.66175.58
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

Sarcevic, P.; Csik, D.; Odry, A. Indoor 2D Positioning Method for Mobile Robots Based on the Fusion of RSSI and Magnetometer Fingerprints. Sensors 2023, 23, 1855. https://doi.org/10.3390/s23041855

AMA Style

Sarcevic P, Csik D, Odry A. Indoor 2D Positioning Method for Mobile Robots Based on the Fusion of RSSI and Magnetometer Fingerprints. Sensors. 2023; 23(4):1855. https://doi.org/10.3390/s23041855

Chicago/Turabian Style

Sarcevic, Peter, Dominik Csik, and Akos Odry. 2023. "Indoor 2D Positioning Method for Mobile Robots Based on the Fusion of RSSI and Magnetometer Fingerprints" Sensors 23, no. 4: 1855. https://doi.org/10.3390/s23041855

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