Full text
Ivo Miguel Menezes Silva Abril 2022 UMinho | 2022 Self-healing Radio Maps of Wireless Networks for Indoor Positioning Universidade do Minho Escola de Engenharia Ivo Miguel Menezes Silva Self-healing Radio Maps of Wireless Networks for Indoor Positioning Programa Doutoral em Telecomunicações MAP-tele das Universidades do Minho, Aveiro e Porto
Abril 2022 Tese de Doutoramento Programa Doutoral em Telecomunicações MAP-tele das Universidades do Minho, Aveiro e Porto Trabalho realizado sob orientação de Professor Doutor Adriano Moreira Professor Doutor Cristiano Pendão Ivo Miguel Menezes Silva Self-healing Radio Maps of Wireless Networks for Indoor Positioning Universidade do Minho Escola de Engenharia
Direitos de Autor e Condições de Utilização do Trabalho por Terceiros Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho Atribuição-NãoComercial CC BY-NC https://creativecommons.org/licenses/by-nc/4.0/ ii
Acknowledgements First and foremost, I would like to thank my supervisors, Prof. Adriano Moreira and Prof. Cristiano Pendão, for their guidance and the countless discussions over the course of this PhD. I am thankful to Adriano Moreira who encouraged me to enrol in this PhD and accompanied me throughout my academic journey. He has been one of my role models. I am also thankful to Cristiano Pendão, for our numerous conversations, for motivating and helping me persevere when I faced challenges, and most of all, for being a friend. I would like to thank Joaquín Torres-Sospedra for his help and collaboration. Being passionate about the things he loves, including research work, has motivated me to be better. His insight was essential to improve this work. I hope we continue this fruitful collaboration for years to come. I am especially grateful to Vera, for her love, friendship, and for being always there for me in good and bad times. I hope to see the world the way you do someday. I would like to thank my parents, Valdemar and Violeta, for their unconditional love and support throughout my life, and my brother, André, for his friendship and words of encouragement. My parents taught me that being dedicated and consistent leads to greater success. This work is dedicated to them. In these acknowledgements, I remember my friends Hugo Carvalho, Carlos Carvalho, and Ricardo Peixoto, that have been there for me when I needed. My gratitude extends to the Algoritmi Research Center for hosting this PhD and to PIEP (Pólo de Inovação em Engenharia de Polímeros) for the provision of a testing space and for their support during that period. Lastly, I acknowledge the MAP-Tele Doctoral Programme scientific committee and the FCT (Fundação para a Ciência e Tecnologia) for the PhD grant1that allowed to develop this work. 1PD/BD/137401/2018 iii
Statement of Integrity I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. University of Minho, 29th April 2022 Full Name: Ivo Miguel Menezes Silva Signature: Jo fila joffepagesSilva iv
Resumo A Indústria 4.0 está a impulsionar a mudança para novas formas de produção e otimização em tempo real nos espaços industriais que beneficiam das capacidades da Internet of Things (IoT) nomeadamente, a localização de veículos para monitorização e optimização de processos. Normalmente os espaços industriais possuem uma infraestrutura Wi-Fi que pode ser usada para localizar pessoas, bens ou veículos, sendo uma oportunidade para aumentar a produtividade. Os mapas de rádio são importantes para os sistemas de posicionamento baseados em Wi-Fi, porque representam o ambiente de rádio e são usados para estimar uma posição. Os mapas de rádio são constituídos por amostras Wi-Fi recolhidas em posições conhecidas e degradam-se ao longo do tempo devido a vários fatores, por exemplo, efeitos de propagação, adição/remoção de APs, entre outros. O processo de construção do mapa de rádio costuma ser exigente em termos de tempo e recursos humanos, constituindo um desafio considerável. Os veículos, que operam em ambientes industriais podem ser explorados para auxiliar na construção de mapas de rádio, desde que seja possível localizá-los e rastreá-los. O objetivo principal desta tese é desenvolver um sistema de posicionamento para veículos industriais com mapas de rádio auto-regenerativos (capaz de manter os mapas de rádio atualizados). Os veículos são localizados através da fusão sensorial de Wi-Fi com sensores de movimento, que permitem anotar novas amostras Wi-Fi para o mapa de rádio auto-regenerativo. São propostas duas abordagens de fusão sensorial, baseadas em Loose Coupling eTight Coupling, para a localização dos veículos. A abordagem Tight Coupling inclui uma métrica de confiança para determinar quando é que as amostras de Wi-Fi devem ser anotadas. Deste modo, esta solução não requer calibração nem esforço humano para a construção e manutenção do mapa de rádio. Os resultados obtidos em experiências sugerem que esta solução tem potencial para a IoT e a Indústria 4.0, especialmente em serviços de localização, mas também na monitorização, suporte à navegação autónoma, e interconectividade. Palavras chave: Fusão Sensorial, Indústria 4.0, Mapas de Rádio, Posicionamento Indoor, Veículos Industriais. v
Abstract Industry 4.0 is driving change for new forms of production and real-time optimization in factories, which benefit from the Industrial Internet of Things (IoT) capabilities to locate industrial vehicles for monitoring, improving safety, and operations. Most industrial environments have a Wi-Fi infrastructure that can be exploited to locate people, assets, or vehicles, providing an opportunity for enhancing productivity and interconnectivity. Radio maps are important for Wi-Fi-based Indoor Position Systems (IPSs) since they represent the radio environment and are used to estimate a position. Radio maps comprise a set of Wi- Fi samples collected at known positions, and degrade over time due to several aspects, e.g., propagation effects, addition/removal of Access Points (APs), among others, hence they should be periodically updated to maintain the IPS performance. The process to build and maintain radio maps is usually time-consuming and demanding in terms of human resources, thus being challenging to perform. Vehicles, commonly present in industrial environments, can be explored to help build and maintain radio maps, as long as it is possible to locate and track them. The main objective of this thesis is to develop an IPS for industrial vehicles with self-healing radio maps (capable of keeping radio maps up to date). Vehicles are tracked using sensor fusion of Wi-Fi with motion sensors, which allows to annotate new Wi-Fi samples to build the self-healing radio maps. Two sensor fusion approaches based on Loose Coupling and Tight Coupling are proposed to track vehicles. The Tight Coupling approach includes a reliability metric to determine when Wi-Fi samples should be annotated. As a result, this solution does not depend on any calibration or human effort to build and maintain the radio map. Results obtained in real-world experiments suggest that this solution has potential for IoT and Industry 4.0, especially in location services, but also in monitoring and analytics, supporting autonomous navigation, and interconnectivity between devices. Keywords: Indoor Positioning, Industry 4.0, Industrial Vehicles, Radio Maps, Sensor Fusion. vi
Table of Contents Direitos de Autor e Condições de Utilização do Trabalho por Terceiros ii Acknowledgements iii Statement of Integrity iv Resumo v Abstract vi List of Tables xiii List of Figures xv List of Acronyms and Abbreviations xviii 1 Introduction and Motivation 1 1.1 Research Background and Motivation . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Research Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.4 Proposed Hypothesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.5 Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.6 Contributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.7 Thesis Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 vii
5.8 Comparison with similar systems for the construction of radio maps. . . . . . . . . . . 125 C.1 Positioning results for different r0values (in meters). . . . . . . . . . . . . . . . . . 174 C.2 Positioning results for different merging intervals (in meters). . . . . . . . . . . . . . . 175 C.3 Positioning results for different kvalues (in meters). . . . . . . . . . . . . . . . . . . 175 xiv
List of Figures 1.1 Diagram of the contributions of this thesis (dashed boxes represent the main contributions). 7 2.1 Radio wave effects: (a) reflection, (b) refraction, (c) absorption, (d) diffraction and (e) scattering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Examples of wireless-based indoor positioning technologies and their positioning techniques, according to cost, accuracy and scale (adapted from [50]). . . . . . . . . . . . 17 2.3 Positioning based on lateration: (a) Time of Arrival (ToA)/Roundtrip Time of Flight (RToF) measurements; (b) Angle of Arrival (AoA) measurements (adapted from [50]). . . . . . 18 2.4 Smartphone localization using Wi-Fi fingerprinting (demonstrative scenario). . . . . . . 21 3.1 School of Engineering at University of Minho, Departamento de Sistemas de Informação (DSI) is on the first floor of the right side of the building. . . . . . . . . . . . . . . . . 41 3.2 DSI building: monitoring devices (blue hexagons) and test points (salmon circles). . . . 42 3.3 Long-term data collection at DSI: (a) manual site survey; (b) Monitoring Device installed in one of the rooms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.4 APs detected by Monitoring Devices over time. . . . . . . . . . . . . . . . . . . . . . 44 3.5 APs detected by monitoring devices over time. . . . . . . . . . . . . . . . . . . . . . 45 3.6 Manual site survey metrics: (a) mean error of Wi-Fi fingerprinting; (b) Radio Map Degradation Ratio (RMDR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 3.7 Monitoring devices metrics: (a) mean error of Wi-Fi fingerprinting; (b) RMDR. . . . . . . 49 3.8 Significant events in DSI building over time. . . . . . . . . . . . . . . . . . . . . . . 50 xv
3.9 APs beacon receiving probability vs. Received Signal Strength Indicator (RSSI) mean and Standard Deviation (STDEV) of 60 APs. . . . . . . . . . . . . . . . . . . . . . . . . 52 4.1 Inertial Measurement Unit (IMU) sensors: (a) Xsens MTi-300 (Industrial-grade); (b) Adafruit BNO055 (low-cost). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 4.2 Measuring the displacement using an absolute encoder. . . . . . . . . . . . . . . . . 61 4.3 Loose Coupling and Tight Coupling sensor fusion approaches. . . . . . . . . . . . . . 62 4.4 Particle filter main algorithm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 4.5 Resampling scenarios in Loose Coupling approach. . . . . . . . . . . . . . . . . . . 70 4.6 Normalized similarity between a Wi-Fi sample and radio map samples. . . . . . . . . . 77 4.7 Assigning a similarity value to each particle. . . . . . . . . . . . . . . . . . . . . . . 78 4.8 Density plot of position error vs confidence. . . . . . . . . . . . . . . . . . . . . . . 86 4.9 Particle Filter (PF) visualization interface. . . . . . . . . . . . . . . . . . . . . . . . 90 4.10 PIEP building at University of Minho: installed APs (upper right); reference tags marking Reference Points (RPs) (lower right). . . . . . . . . . . . . . . . . . . . . . . . . . . 91 4.11 Floor plan of testing scenario: reference points (gray squares) and the installed APs according to their model, network standard and height (z). . . . . . . . . . . . . . . . 92 4.12 Industrial vehicle (tow truck) used in tests. . . . . . . . . . . . . . . . . . . . . . . . 93 4.13 Hardware diagram of the positioning module of the vehicle prototype. . . . . . . . . . 93 4.14 Comparison between dead reckoning, Loose Coupling and Tight Coupling estimated trajectories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 4.15 Error over time of each trajectory using the Loose Coupling (LC) and the Tight Coupling (TC). 95 4.16 CDF of the positioning error comparing the Loose Coupling and Tight Coupling approaches with Wi-Fi fingerprinting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 5.1 Architecture of the self-healing radio maps solution. . . . . . . . . . . . . . . . . . . 103 5.2 Considered floor plan scenarios: (a) complete Floor Plan (cFP); (b) partial Floor Plan (pFP); and, (c) no Floor Plan (nFP). . . . . . . . . . . . . . . . . . . . . . . . . . . 104 5.3 Estimated similarity of each particle. . . . . . . . . . . . . . . . . . . . . . . . . . 108 5.4 Dynamic αbased on distance between particle and nearest radio map Wi-Fi sample. . . 109 xvi
5.5 Setup at the PIEP building: mapping of the RPs (lower left); one of the installed APs (lower center); collection of Wi-Fi samples for the iRM (lower right). . . . . . . . . . . . 111 5.6 Mobile unit prototype with installed sensors. . . . . . . . . . . . . . . . . . . . . . . 112 5.7 Hardware diagram of the positioning module of the mobile unit. . . . . . . . . . . . . 113 5.8 Confidence vs positioning error of all trajectories for the no Floor Plan (nFP) scenario: (a) vehicle Radio Map (vRM) configuration; (b) fRM configuration. . . . . . . . . . . . . . 120 5.9 Cumulative Distribution Function (CDF) curves of all scenarios and radio map combinations. 121 A.1 Raspberry Pi 3 B+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 A.2 Architecture of the solution for the long-term collection of Wi-Fi samples. . . . . . . . . 153 A.3 Wi-Fi samples collection: Entity Relationship Diagram. . . . . . . . . . . . . . . . . . 156 B.1 Architecture of Dioptra [17]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 B.2 Graphical user interface of Dioptra [17] (dark mode enabled). . . . . . . . . . . . . . 161 B.3 Example of configuration file for radio map collection. . . . . . . . . . . . . . . . . . 163 C.1 Wi-Fi samples merging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 C.2 Estimated RSSI values for a given AP using the Radial Basis Functions (RBF) technique. 174 C.3 Average positioning error at each testing location. . . . . . . . . . . . . . . . . . . . 176 xvii
List of Acronyms and Abbreviations AHRS Attitude and Heading Reference System AoA Angle of Arrival AP Access Point BLE Bluetooth Low Energy cFP complete Floor Plan CDF Cumulative Distribution Function CSS Chirp Spread Spectrum DR Dead Reckoning DSI Departamento de Sistemas de Informação EKF Extended Kalman Filter FP Fingerprint fRM full Radio Map GLONASS GLObal NAvigation Satellite System GNSS Global Navigation Satellite System GP-LVM Gaussian Process Latent Variable Models GPS Global Positioning System GUI Graphical User Interface IDW Inverse Distance Weighted xviii
IMLE Improved Maximum Likelihood Estimated IMU Inertial Measurement Unit INS Inertial Navigation System IoT Internet of Things IPIN Indoor Positioning and Indoor Navigation IPS Indoor Position System iRM initial Radio Map KF Kalman Filter k-NN k-Nearest Neighbour LDPL Log-Distance Path Loss LiDAR Light Detection And Ranging LT Loop Trajectory mm-Wave Millimeter Wave MAC Media Access Control nFP no Floor Plan NLOS Non-line-of-sight OSM OpenStreetMap PDR Pedestrian Dead Reckoning PF Particle Filter pFP partial Floor Plan PoA Phase of Arrival RBF Radial Basis Functions RF Radio Frequency RFID Radio-Frequency Identification xix
RMDR Radio Map Degradation Ratio RMSE Root Mean Square Error RP Reference Point RPi Raspberry Pi RSS Received Signal Strength RSSI Received Signal Strength Indicator RT Random Trajectory RTLS Real-time Location System RToF Roundtrip Time of Flight SLAM Simultaneous Localization and Mapping SMP Smallest M-vertex Polygon SOP Signals of OPportunity STDEV Standard Deviation SVM Support Vector Machine TDoA Time Difference of Arrival ToA Time of Arrival UKF Unscented Kalman Filter UWB Ultra-Wide Band VDR Vehicle Dead Reckoning VLC Visible Light Communications vRM vehicle Radio Map Wi-Fi Wireless Fidelity (IEEE 802.11 Wireless LAN) WLAN Wireless Local Area Network WSN Wireless Sensor Network xx
Chapter 1 Introduction and Motivation This chapter comprises the introduction to this topic starting with the motivation and research background. It also presents the main objectives of this thesis, as well as the research challenges and the approach to overcome them. Finally, the contributions of this work are discussed. 1.1 Research Background and Motivation Industry 4.0 represents a new stage in the organization and control of the industrial value chain. The technology development for Industry 4.0 has shown a need for controlling all parts of the industrial processes. Cyber-physical systems have embedded software and are connected to the internet, hence Industrial IoT combines the physical and digital worlds, providing integration of these systems in industrial processes. The positioning information of people, goods, vehicles or robots can be used to monitor its activity, enable new means of communication, and consequently improve the operations. As part of Industry 4.0, factories rely on connected systems and devices in the factory environment to monitor and control the tasks and operations. To do so, mobile robots or human operated vehicles in these environments depend on a positioning system that is able to estimate their position accurately. Smart factories benefit from these capabilities, leveraging real-time optimization, automation, and autonomous decision-making processes. Wireless Local Area Networks (WLANs) are widespread in most indoor environments, i.e. shopping 1
1.1. RESEARCH BACKGROUND AND MOTIVATION centres, airports, schools, hospitals and also in factory plant buildings and warehouses. Since these networks are already installed and cover most of the building’s area, they can support indoor positioning without the need to install additional infrastructure. However, interference may cause problems when using WLAN due to the unplanned and uncontrolled deployment of Wi-Fi APs and hotspots, because these devices share the same transmission bands with other systems which usually have overlapping channels. Because of the proliferation of WLAN, Wi-Fi-based positioning systems have been used since the 2000s [1] to locate and track users inside buildings. Since then, many relevant Wi-Fi-based positioning systems have been developed for real-time navigation [2, 3]. Wi-Fi fingerprinting, used in RADAR [1], is one of the most used techniques for indoor positioning based in WLAN networks. This technique requires the construction of a radio map, the collection of several fingerprints, in an offline or calibration phase, which represent the radio environment in the specific location where they were collected. A positioning engine uses an algorithm that compares an online sample with the previously collected fingerprints to provide a position estimate. Systems based on Wi-Fi fingerprinting also have an intrinsic limit on its accuracy due to the dynamic nature of radio signals and the radio map used to obtain position estimates, usually achieving up to ≈2 m of mean error, with a presence of large errors in individual estimates. The initial calibration to build the radio map is a time-consuming process, which has to be repeated over time to maintain the radio map up to date, because the radio propagation environment suffers alterations due to interference, the addition or removal of APs or alterations in the physical layout of the indoor space. When the radio propagation environment changes, the existing radio map no longer represents the reality accurately. Therefore, the IPS requires an updated radio map to maintain the expected position accuracy. Currently, the best way to overcome this challenge is the re-calibration of the system through the manual collection of new radio samples. Positioning systems for indoor vehicles are usually expensive and require the installation of infrastructure in the factory plant and expensive sensors in the vehicle, which slows the deployment of the system and increases its overall cost. Since WLANs are already available in these buildings, the existing WLANs infrastructure can be used to locate vehicles, allowing to reduce the cost of the system. Although Wi-Fi is ubiquitous nowadays, it was designed for communication and not for indoor positioning, hence it is still limited in terms of positioning performance. The recent development of 5G includes support for new solutions for indoor positioning [4, 5], but they are still in their early stages and require 2
1.2. OBJECTIVES hardware that is still not commercially available. These solutions use signal propagation information and Global Navigation Satellite System (GNSS) fusion with 5G, respectively, to estimate the position. Both solutions show a promising future for 5G. Despite the latest developments in indoor positioning for vehicles, there still is a lack of solutions that are easy to install, setup and configure, with the ability to provide accurate position estimates while maintaining its performance through time. In industrial environments, it is difficult to maintain radio maps updated due to the frequent layout changes and intense activity from human operators and/or vehicles. Since vehicles are constantly moving in these environments, it is an opportunity to locate and track them, thus allowing not only to improve the factory’s productivity and safety but also to build and maintain the radio map automatically. This self-healing radio map may be used to locate any device as long as it is provided with a Wi-Fi interface. 1.2 Objectives The primary goal of this research work is to develop an IPS with self-healing radio maps using indoor vehicles, i.e. tugger vehicles, mobile robots or stackers. In this thesis, a self-healing radio map is defined as being capable of overcoming the variations and changes in the radio environment, keeping itself updated over time. An IPS with self-healing radio maps should have the ability to overcome the problems that affect its functioning or negatively affect its performance. This system should take advantage of industrial vehicles in operation so that it is easy to install and deploy, reducing the effort it takes to set up, create the radio map, and keep it up-to-date. To achieve this, it is necessary to go beyond the current state-of-the-art solutions that require re-calibration and configuration over time in order to maintain the same performance of the positioning system. Providing position estimates of indoor vehicles requires a high accuracy, a low maximum error, and the capability of tracking the vehicle, hence the positioning system should use multiple sensors. Combining Wi-Fi with information from other sensors allows to get enhanced position estimates for monitoring and tracking vehicles in indoor environments, as well as to support indoor navigation of autonomous mobile robots. Given the current state-of-the-art in positioning systems for indoor vehicles which explore expensive 3
1.7. THESIS STRUCTURE 1.7 Thesis Structure This chapter (Chapter 1) presented the introduction to this thesis, including the primary research objectives as well as the approach and contributions. Chapter 2 introduces the state of the art, which includes an analysis of the propagation effects and impairments of radio signals, the concepts of indoor positioning, a literature review of IPSs for industrial vehicles, and solutions that dynamically adapt to radio environment changes. In Chapter 3, an empirical analysis of the radio map degradation in a long-term experiment is made. It includes the evaluation of the radio map degradation over time and how it affects positioning performance. In Chapter 4, the solution is presented for the indoor positioning and tracking of industrial vehicles exploring two approaches for sensor fusion, Loose Coupling and Tight Coupling. Chapter 5 describes the self-healing radio maps solution, which is based on an improved version of the positioning solution based on Tight Coupling. It explores the vehicles in operation to automatically build and maintain radio maps, overcoming radio map degradation. Finally, the conclusions and future work are discussed in Chapter 6. 10
Chapter 2 State of the Art This chapter provides an introduction to the most relevant concepts regarding radio maps, signal propagation and indoor positioning, including the characteristics of signal propagation and impairments of radio signals in indoor environments. Then, the main positioning techniques and algorithms are presented, followed by the positioning specifications and performance metrics. Finally, an analysis of existing IPSs for indoor vehicles and several methods to build and maintain radio maps is presented. 2.1 Radio Maps and Indoor Signal Propagation A radio map is defined by the set of radio signals observed in indoor environments. Many devices equipped with a radio interface (Wi-Fi or Bluetooth) are sources of these signals, e.g., smartphones, Access Points and laptops. Since these signals can be properly measured and retrieved by these types of devices, there is extensive research that explores radio signals for indoor positioning [1, 6, 21]. Radio maps are used in positioning based on Wi-Fi or Bluetooth, because a set of signal levels measured at a specific position is expected to have a unique set of values which differs from the signal levels measured at other positions in the building. However, radio maps are constantly changing due to the dynamic nature of radio signals, which are affected by propagation effects. Therefore, it is important to keep them updated. The following section describes how radio signals behave in indoor environments and how they are affected by different propagation effects. 11
2.1. RADIO MAPS AND INDOOR SIGNAL PROPAGATION 2.1.1 Characteristics of Signal Propagation In Radio Frequency (RF) propagation, path loss accounts for all elements that affect the signal propagation, i.e., free-space loss, atmospheric losses, fading loss due to multipath and other various effects based on the wave frequency and the environment [22]. If the main path of the signal is governed by free-space loss, it can be modelled by the free-space loss Friis equation: L=GTGRλ 4πd2 (2.1.1) where Lis a gain, GTand GRrepresent the transmitting and receiving antenna gains, λis the wavelength, and drepresents the distance between the two antennas. If the gains of the transmitting and receiving antennas are excluded from the the path loss expression, free-space loss can be defined as: LF SL dB =−20 log λ 4πd(2.1.2) When there is a radio transmission between two devices, the receiver sensitivity is an important factor that defines the threshold for acceptable operation. The received signal must have an minimum signal-to- noise ratio (SNR) or bit energy to noise power spectral density (Eb/N0), that enables the receiver to recover the received information. The noise component of the signal is set by the receiver front-end. It is also known as thermal noise, because of the thermal agitation of electrons at the front end of the receiver. Thermal noise is modelled through a White Gaussian distribution with a constant power spectral density, meaning that the power density will be the same over all frequencies of interest (N0/2). Therefore, thermal noise is considered to be “white” and additive because it is Gaussian and independent of the signal involved. The following equation from [22] defines the thermal noise power of a receiver: N=κT0B+κTeB[W](2.1.3) The Boltzmann’s constant is represented by κ= 1.38 ×10−23 J/K, T0= 290 K is the standard 12
2.1. RADIO MAPS AND INDOOR SIGNAL PROPAGATION noise temperature, Teis the equivalent noise temperature of the receiver, and Bis the noise-equivalent bandwidth (Hz). Since the thermal noise is defined by a Gaussian distribution and is generated at the receiver, one can assume that the noise is constant, therefore the SNR will be mainly defined by the variations in the signal levels. When the signal strength is below the sensitivity of the receiver, the transmitted information cannot be retrieved properly. 2.1.2 Impairments of Radio Signals in Indoor Environments The propagation of radio signals can be compared to the propagation of light waves. Therefore, these waves can be affected by the phenomena of reflection, refraction, diffraction, absorption and scattering, as depicted in Figure 2.1. The materials that go into the walls, floors and doors of the building have a deep influence on the propagation of radio signals. (a) (b) (d) (e) (c) Figure 2.1: Radio wave effects: (a) reflection, (b) refraction, (c) absorption, (d) diffraction and (e) scattering. Radio signals can bounce off certain surfaces, like water or metal. These surfaces that reflect the radio signals can be found in many indoor scenarios, such as laboratories, offices, factory buildings or warehouses. A signal is refracted when it enters a medium with a different propagation speed. The wave is bent when the signal enters the new medium. For instance, water and glass are two media that cause the refraction of radio waves. The phenomenon called absorption represents the amount of power the waves lose depending on their frequency and on the material that absorbs the wave [23]. The diffraction effect occurs when the wave goes around corners. It is an apparent bending of radio waves when hitting an object [23]. Scattering is similar to diffraction, however, it is more unpredictable. It happens when the signal hits an object and scatters in all directions, which can have a significant impact on the signal power. Whenever an electromagnetic wave goes through some material, it may be weakened or dampened. 13
2.1. RADIO MAPS AND INDOOR SIGNAL PROPAGATION The radio waves often reach the receiver by more than one path, due to reflection, diffraction and scattering caused by the building’s structures. This phenomenon is known as multipath [24]. A distorted version of the original signal is obtained at the receiver, composed of various signal components that follow different indirect paths and (possibly) a direct path component. Each signal component arrives at the receiver with a different delay and a different signal power that is characterized by the attenuation of the channel. The Wi-Fi signals inside buildings may be affected by one or more of the above-mentioned effects at the same time. Radio signals from APs suffer from the channel attenuation that causes the signal to lose power as it propagates through the propagation medium. In addition, Wi-Fi radio signals in indoor environments may vary significantly over time due to various factors: •Interference: Any device that generates electromagnetic waves can cause interference in signals to wireless APs inside buildings, as long as the transmitting frequency is close to the one of the APs in the network. Most WLAN environments use the 2.4 GHz band (i.e., IEEE 802.11b/g/n) for communication, which has several overlapping channels which interfere with each other. Intra-channel interference and inter-channel interference are common in scenarios where the Wi-Fi infrastructure is mostly composed of 2.4 GHz APs. •Addition/removal of APs: When the network configuration changes due to the addition or removal of APs, it affects the propagation of signals. Newly added APs can cause interference when they share the same transmission channel as other ones. In many situations, this causes APs to reconfigure to transmit in a different frequency band, thus leading to other changes in the radio environment. In addition, it is known that APs frequently have a dynamic power control to adjust to network conditions [25]. Mobile APs (hotspots) also contribute to an increase in the interference between Wi-Fi enabled devices because they transmit in the same frequency bands as standard APs. Moreover, they are a challenge for fingerprinting-based solutions since they can be easily moved, and switched on and off frequently. Therefore, mobile APs are not useful for fingerprinting-based positioning, because it usually relies on RSSI values from fixed APs. •People moving: It is known that the mobility of people and the human body have an influence on the propagation of signals from APs, inside buildings. Since humans are mostly made of water, the radio waves are absorbed by the body because it has an absorption similar to that of water [23]. 14
2.2. MAIN CONCEPTS OF INDOOR POSITIONING •Layout modifications: Changes in the layout of indoor buildings also affect the propagation of radio waves, hence it causes the radio map to become outdated. Particularly in dynamic environments such as factories, the periodic change in the indoor layout leads to alterations in the propagation of radio signals from APs, because they will find different paths until they reach the receiver device. 2.2 Main Concepts of Indoor Positioning Positioning systems have numerous applications in indoor and outdoor environments. In outdoor environments, GNSS uses satellites to provide geographic positioning. There are several GNSS systems such as Global Positioning System (GPS)3, Galileo4, GLObal NAvigation Satellite System (GLONASS)5or BeiDou6, that use satellite constellations to provide the geolocation of the receiver. For outdoor scenarios, GNSS is used for tracking devices, locating firefighters, assisting in navigation, helping in emergencies, and in many other applications. GNSS systems are reliable in these applications, however, they are not reliable in indoor environments because GNSS signals cannot be properly retrieved inside buildings due to attenuation and severe multipath. For indoor positioning, alternative systems have been developed to provide coverage inside buildings where GNSS systems are not reliable. In indoor environments, positioning systems use other technologies such as Wi-Fi [1, 26, 27, 28], Radio-Frequency Identification (RFID) [29, 30], Ultra-Wide Band (UWB) [31, 32], Bluetooth [33, 34], ultrasound [35], or combinations of multiple technologies [30, 36, 37, 38, 39]. These systems are mostly used to track people or objects inside buildings, but there is a recent trend in IPSs for indoor navigation of autonomous mobile robots [3, 40, 41, 42, 43]. The research over the past decade has shown several applications for indoor positioning, i.e., mobile robots navigation and location-based services. Since the research community is always looking for new technologies to use, Visible Light Communications (VLC) has been used in [44, 45] as an alternative technology for indoor positioning. Although these systems achieve very high accuracy (mean error below 5 cm), in order to function properly, they require a line-of-sight signal and are limited to small deployments 3https://www.gps.gov 4http://www.esa.int/esaNA/galileo.html 5https://www.glonass-iac.ru/en/ 6http://en.beidou.gov.cn/SYSTEMS/System/ 15
2.2. MAIN CONCEPTS OF INDOOR POSITIONING inside an indoor room. More recently, with the research and development of 5G wireless networks, several experiments for indoor positioning using Millimeter Wave (mm-Wave) technology were developed [4, 46, 47, 48, 49]. mm-Wave shows a promising future because this technology has a wide radio spectrum and high bandwidth available, that can be used in many applications. Simulation constitutes most of the research work in this area because it requires hardware that is not readily available and deployed in indoor buildings nowadays. Hence, it is expected that most applications using mm-Wave will be deployed in the coming years. Outdoor localization systems usually provide position estimates based on geographic coordinates, however, in indoor environments the location information should consider that buildings can have multiple floors, each floor can have many rooms and areas, and finally, the position can be defined as a set of coordinates that represent the absolute position inside the building. 2.2.1 Position Estimation Algorithms and Techniques For IPSs, accuracy is a very important aspect, which mainly depends on the technology of the IPS. Figure 2.2 shows a graph that plots the cost against the accuracy of several technologies for indoor positioning. It also shows the typical coverage scale of an IPS based on each technology. The most accurate IPSs are the most expensive, e.g., the ones based on UWB or mm-Wave, and they are better suited for small scale positioning systems because of the required infrastructure. Conversely, Wi-Fi and Bluetooth-based positioning systems are low-cost but have lower accuracy. Different position estimation algorithms may be used depending on the technology. Most technologies rely on accurate measurements of signal characteristics, such as the time, angle or phase of arrival, or even based on the signal strength. The following sub-sections describe several position estimation techniques used in indoor environments. Triangulation – Lateration and Angulation Triangulation uses geometric properties of triangles to estimate the target location. This technique includes two variants: lateration and angulation. Lateration takes measurements on the distance between the target 16
2.2. MAIN CONCEPTS OF INDOOR POSITIONING Radio Technologies –cost vs accuracy 1 Cost Accuracy (m) 0.1 1 6 2 3 4 5 Ivo Silva -Urban Computing –27 Jan. 2021 AOA, TDOA, RTOF Hybrid methods RSS, TDOA, TOA, AOA RSS, TDOA, TOA, AOA Bluetooth RFID Wi-Fi UWB small rooms and open spaces VLC mm-Wave Hybrid methods AoA, Hybrid methods small and medium buildings Large buildings Figure 2.2: Examples of wireless-based indoor positioning technologies and their positioning techniques, according to cost, accuracy and scale (adapted from [50]). object and the RPs to estimate the position of an object. Angulation estimates the location of the object from measured angles associated with the RPs. In turn, lateration may use the following techniques: •Time of Arrival (ToA) This radio-based technique is based on the assumption that the distance from the mobile terminal to the measuring unit is directly proportional to signal propagation time. ToA measures the propagation time between a transmitter and a receiver. As shown in Figure 2.3 (a), ToA measurements must be from at least three RPs, in order to enable 2D positioning. For ToA-based systems, oneway propagation time is measured to calculate the distance between the measuring unit and the signal transmitter. However, direct ToA faces two main problems. First, all devices must be timesynchronized precisely. Second, a labelled timestamp in the transmitting signal is necessary in order to allow the measuring unit to determine the distance that the signal has travelled. This technique can be used by various transmission techniques such as Direct-Sequence Spread-Spectrum [51] or UWB [52, 53, 54]. Systems based on UWB take advantage of the radio signals that have high temporal resolution and provide accurate ToA measurements in multipath environments. The UWB system presented in [54] was developed with simple components and achieved very promising results with location error below 0.3 m inside a laboratory. The main disadvantage of UWB based systems is the implementation 17
2.2. MAIN CONCEPTS OF INDOOR POSITIONING costs associated with the need to install multiple sensors to cover the entire indoor area. Ivo Silva -Urban Computing –27-Jan-2020 5 A B P 𝜃! 𝜃" AC B R2 R3 R1 P (a) (b) Figure 2.3: Positioning based on lateration: (a) ToA/RToF measurements; (b) AoA measurements (adapted from [50]). •Roundtrip Time of Flight (RToF) This algorithm measures the time-of-flight of a signal travelling from the transmitter to the measuring unit and back. RToF requires better clock synchronization in comparison with ToA and its measuring unit is considered as a radar. The UWB-based system presented in [53] uses RToF combined with a bandwidth of more than 1 GHz to deal with multipath environments and provide high accuracy. These features are ideal for the demanding requirements of indoor location. Another interesting solution, proposed in [55], uses UWB with RToF to locate mobile robots in indoor environments with positioning errors of 20 cm for a coverage area of 120 m2. •Time Difference of Arrival (TDoA) The main idea of this technique is to measure the time difference of the arrival of one or more signals to a device in order to estimate its relative position. Cricket [56] and Active Bat [57] systems use ultrasonic pulse TDoA to enable high precision 3D 18
2.2. MAIN CONCEPTS OF INDOOR POSITIONING positioning in indoor environments. The accuracy provided by these systems is 9 cm and 2 cm for Active Bat and Cricket, respectively. The accuracy is very high, but Cricket only works with a range of 10 m and Active Bat 50 m, which is low in many scenarios. •RSS-based (or Signal Attenuation-based) The Received Signal Strength (RSS) technique can be used in two ways: trilateration and fingerprinting. Regarding the trilateration, this method uses the attenuation that affects the radio signal as the measuring unit to apply a trilateration algorithm, resulting in the location’s estimation. Fingerprinting is described in detail later in this section. •Phase of Arrival (PoA) or Received Signal Phase Method In this method, the range is estimated from the carrier phase (or phase difference). The phase difference is calculated by comparing the received signal with a pure sinusoidal signal with zero phase offset. Angulation techniques (Angle of Arrival (AoA) Estimation) estimate location by intersecting multiple pairs of angle direction lines, each formed by a circular radius from a base station or a beacon station to the mobile target. AoA uses at least two known RPs and two measured angles in order to derive the 2D location of the target. Figure 2.3 (b) shows how the position is obtained from two angles. Fingerprinting or Scene Analysis Fingerprinting comprises algorithms that rely on the collection of features from a scene (fingerprints) and then estimate the location of an object based on online measurements that are matched with fingerprints previously collected at known positions. RSS-based location is commonly used in scene analysis. This technique is based on the idea that each place has a unique set of radio signals that allow to identify it to the detriment of other places. A fingerprint is known as an association of a unique measurement to a place. Location fingerprinting includes two phases, the offline or calibration phase and the online or real-time phase. In the calibration phase, a radio map is built by collecting fingerprints in multiple RPs spread through the indoor space. It is ideal to collect several fingerprints in each RP, due to the dynamic nature of radio signals. It improves the system’s robustness because it uses more relevant data to estimate the position. 19
2.3. INDOOR POSITIONING SYSTEMS FOR INDOOR VEHICLES the technology. The localization of industrial vehicles indoors may resort to camera vision, ultrasounds, magnetic, Light Detection And Ranging (LiDAR), UWB, RFID, Wi-Fi or Bluetooth. These technologies are often combined with motion sensors using sensor fusion to improve positioning performance. Additional details about real-time localization systems in industrial settings can be found in [74]. In the following, an analysis of several IPSs for industrial vehicles based on different technologies/sensors and localization techniques is presented. UWB systems are used for vehicle localization in [75, 76]. In [75], UWB is combined with GPS to provide indoor/outdoor positioning of industrial vehicles. Sensor fusion is performed with a PF, achieving an average error of 0.16 m in simulations. A drawback of this solution is that it depends on line-of-sight propagation and it is expensive due to the use of UWB. In [77], a forklift is located using several algorithms to combine laser range scanners (LiDAR) with odometry information. The approach in this paper combines AMCL (Adaptive Monte Carlo Localization), scan matching and Discrete Fourier Transform-based pose estimation refinement into one algorithm stack for high-precision localization in industrial indoor environments. Wu et al. [43] proposed an IPS for mobile robot localization that does not depend on additional infrastructure because positioning relies on magnetic field and LiDAR data. The initial position is obtained from magnetic fingerprinting while a finer position is obtained by laser scan matching. The empirical experiments performed in an area of 57x19 m revealed a Root Mean Square Error (RMSE) of 1.43 m, considering that the initial pose is known. RFID has been explored in [30, 66] for mobile robot localization. In [66], passive tags placed on walls of the space are detected by a robot equipped with RFID antennas. The robot’s pose is obtained from sensory fusion of RFID with odometry, using a similarity sensor model. Experiments have revealed a mean error of 0.14 m in an area with around 230 m2. Both solutions are complex to scale for larger buildings due to the installation of RFID tags and since they can also suffer from interference from Wi-Fi or Bluetooth. Although UWB, LiDAR and RFID technologies can meet the demanding requirements of indoor tracking of industrial vehicles, they are expensive. Alternatively, Wi-Fi is low-cost and ubiquitous since it is present in most buildings, including factories, thus it is an ideal technology for deployments that take advantage of already existing infrastructure. Wi-Fi has been explored for localization in industrial environments to improve productivity in [78, 79], and explored for vehicle tracking in [3, 80]. The IPS for vehicles based on Wi-Fi 26
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS fingerprinting [80] uses a raw data smoothing technique to feed a classifier based on neural networks, which can deal with noisy Wi-Fi signal strength measurements. This solution achieved a mean error of 2.25 m in performed tests. When combined with other sensors using sensor fusion, Wi-Fi can be used to provide coverage of a building to provide accurate tracking of industrial vehicles. Table 2.1 summarizes the above-mentioned IPSs according to the technologies/sensors, the positioning techniques, their relative cost and mean error. Table 2.1: Comparison of different systems for localization of vehicles in indoor environments. IPS Technology / Sensor(s) Positioning Technique Cost Mean Error (m) [75] UWB +GPS Particle Filter High 0.16 [77] LiDAR + odometer AMCL + DFT + scan matching High 0.013 [43] LiDAR + magnetometer Magnetic Fingerprinting + laser scan matching High 1.43 [66] RFID + odometer Similarity model sensor fusion Medium 0.14 [80] Wi-Fi Wi-Fi Fingerprinting Low 2.25 AMCL – Adaptive Monte Carlo Localization; DFT – Discrete Fourier Transform. 2.4 Methods to Build and Maintain Radio Maps In order to understand how a self-healing radio maps solution can be developed using industrial vehicles, first it is necessary to study how radio maps are built and maintained. Building a radio map for Wi-Fi fingerprinting is a laborious and time-consuming task because it requires the mapping of RPs and the collection of Wi-Fi samples at each RP. The complexity of this task increases proportionally to the size of the building and the grid size that defines the distance between neighbor RPs. For instance, if the grid size is denser, more RPs are surveyed so there will be a higher cost and the accuracy is expected to increase, hence there is usually a trade-off between cost and accuracy when deciding the grid size of the radio map. Once finished, the radio map represents a snapshot of the building’s radio environment at that time. With 27
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS time, the radio map becomes outdated due to many reasons, such as propagation effects, changes in the indoor layout of the building, moving furniture, or the addition or removal of APs. Therefore, the radio map needs to be periodically updated, leading to additional costs in terms of time and human resources. The standard practice in Wi-Fi fingerprinting is to manually perform these tasks, however, it is not practical. To avoid manually building or maintenance of the radio map, the following approaches have been explored to simplify this process: • collaborative approaches - users actively or passively contribute with samples to the radio map, hence it depends on the users’ movement and, in some cases, on their feedback in order to be effective; • SLAM - the system locates itself whilst collecting Signals of OPportunity (SOP), including Wi-Fi samples, to map the radio environment; • interpolation - using Wi-Fi monitors that collect Wi-Fi samples in a few known locations, then using an interpolation technique to estimate APs’ signal levels in all RPs. 2.4.1 Collaborative Approaches The idea of collaborative radio maps where users independently contribute with Wi-Fi samples to build a joint radio map was explored in [21, 81, 82, 83]. There are different approaches to collaborative radio maps: (i) users explicitly and manually report their position to the system while collecting Wi-Fi samples; (ii) users collect data passively (e.g., Wi-Fi and motion data), which can be used to estimate PDR trajectories and, subsequently, annotate the collected Wi-Fi samples; (iii) the system uses an opportunistic sensing approach and, from time to time, prompts the user to report whether they are in the estimated position. Since these solutions depend on user participation, they raise some challenges, for instance, users may choose not to share their information or indicate a wrong position and they may not visit all areas of the building (leaving those areas unmapped). Kim et al. [81] proposed an autonomous solution for the construction of radio maps as well as the localization of users. Inertial data is automatically collected by users on their daily routine, without needing to survey the entire building. The system progressively builds the radio map as more users contribute with data. The position of users is obtained by merging PDR with Wi-Fi fingerprinting. The average positioning 28
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS error obtained in experiments is 6.9 m for a building with 60x66 m. Both works in [21, 82] use Wi-Fi fingerprinting systems that take user feedback to improve radio maps. These systems start with a baseline Wi-Fi fingerprinting solution which already has an existing radio map, but users contribute with new Wi-Fi samples collected automatically by a smartphone. These systems also use users’ feedback to build the radio map. Taking the users’ input has its shortcomings, for instance, the system can be hindered by malicious actors that feed the system with bad data. The systems in [21, 82] were designed for pedestrians, hence they depend on the motion model of a pedestrian, which cannot be applied to industrial vehicles. In the proposed approach in this thesis, a proper motion model is considered for the vehicles, which are tracked with motion sensors (an encoder and an IMU) for improved accuracy. 2.4.2 SLAM Approaches Some works explore mobile robots to perform SLAM of its surroundings [42, 84, 85, 86]. SLAM systems are usually equipped with sensors to map the building, i.e., sonar, LiDAR or camera to detect indoor features such as walls, obstacles, or other elements. With the ability to locate themselves while collecting SOP, they may be used for creating the radio map of the building, however, they are expensive due to the sensors they use and usually require complex configuration. In [42] a mobile robot equipped with sonars, a wheel encoder and a depth camera builds a radio map by locating itself with a two-stage process. Initially, it performs obstacle-avoidance-based navigation and odometry-based correction for bearing angles. Then, it uses depth-camera images (RGB-D) for SLAM. Experiments with Wi-Fi fingerprinting showed a mean error of 5.2 m, in a corridor 54 m long. In [85], a robot equipped with several sensors (LiDAR, magnetometer, light sensor, smartphone (Wi-Fi)) generates an indoor grid map while simultaneously collecting signals from Wi-Fi interfaces and other sensors, allowing to build and keep the radio map up to date. The LiDAR allows to map the space using an Improved Maximum Likelihood Estimated (IMLE) scan-matching algorithm, while collecting data from other sensors, including Wi-Fi interfaces. Since Wi-Fi samples are obtained while the robot is moving, signal strength values of Wi-Fi samples collected within a 1 m radius of a RP are averaged. The SLAM approach described in [86] explores smartphones to collaboratively localize and construct the radio map of the building. The system merges tracks from different users, performs loop closure detection (when users pass by a previously visited location), and optimizes a graph to generate an accurate 29
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS radio map. Two PDR methods have been employed, one based on a step counter (using the smartphone’s IMU) and another based on Project Tango (smartphone with additional sensors for high accuracy tracking). The advantages of this approach are that it does not require any knowledge of the map and locations of the APs. Experimental results in an area of 130x70 m have shown a positioning accuracy of 0.6 m and 4.76 m for Tango-based PDR and step counter-based PDR, respectively. 2.4.3 Interpolation Methods Other alternatives eliminate the need to build and maintain the radio map through interpolation (estimation of signal strength values), for example, using RBF, Kriging, Gaussian Process Latent Variable Models (GP-LVM), Inverse Distance Weighted (IDW), Voronoi tesselation, Neural Networks, Model Tree, or Log- Distance Path Loss (LDPL). RBF are a class of artificial neural networks that were explored in [87, 88, 89] to interpolate RSS values of a radio map from observations at known RPs. Generally, RBF networks have an input layer, a hidden layer with radial basis functions and an output layer. RSS values can be estimated using RBF without knowing the position of APs and the indoor layout such as the walls and building materials, hence it can be useful especially in situations where the building’s floor plan is not available and there are many APs. The Kriging method, used in [90, 91, 92], interpolates the RSS values at a given position by creating a spatial structure that can be represented by a mathematical function to provide continuous values. The Kriging method assumes that the RSS values from neighboring locations are more correlated than the RSS values from locations that are farther away, hence it considers that a spatial random variable is spatially dependent. The semivariogram between the RP and the unobserved points to be estimated is necessary to estimate the RSS values. With only a few calibration points, the Kriging method can create a complete radio map of the building. This method shows good interpolation results because, theoretically, the estimation errors show minimum variance. A different approach to build radio maps is explored in [6], where a motion dynamics model is combined with GP-LVM to reconstruct the radio map from a set of RSS values. Gaussian processes are used to determine the model of each AP present in the building, allowing to interpolate the radio map of the building. A user collects data to be used as training data for the GP-LVM algorithm, which then builds the 30
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS radio map of the environment. Performed experiments using the estimated radio map achieved a mean error of 3.97 m. The IDW method, explored in [93], follows a deterministic model to interpolate unknown points. RSS values can be estimated for unobserved locations by calculating a weighted average of the RSS values available at the known locations. IDW uses spatial autocorrelation that gives more emphasis to values from points that are closer, while values from points farther away have less effect. Since the IDW method only considers the distance when interpolating RSS values, it will not consider the indoor layout of the building, i.e., the walls, the doors, building materials, etc. Therefore, it might have errors in the interpolated RSS values. The Kriging method provides a more robust model in relation to the IDW method [94], but is more complex to implement. Conversely, the IDW method is simpler to implement but has larger interpolation errors. An interpolation method based on Voronoi tessellation was introduced in [95]. It refines the propagation model for each cell of the target area tessellated by a high-order Voronoi diagram. Therefore, it accounts for the signal fading caused by walls and obstacles more accurately. This method comprises two phases. In the first, the positions of APs are estimated using the LDPL model, then in the second phase, signal fading parameters of the APs are estimated for each Voronoi cell. Obtained results showed that this interpolation method outperformed RBF [87] and IDW [96]. Unfortunately, this method still depends on the manual collection of RSS values at known positions. The solution proposed in [97] explores neural networks to adapt to changes when they are detected in the radio environment. It is not a fully autonomous solution because it depends on a static radio map that is initially created by collecting Wi-Fi samples in many RPs. Then, Wi-Fi samples are manually collected at a few calibration points (much less than the number of RPs). This paper suggests the hypothesis that there is a relationship between the RSS values detected in the RPs and the calibration points, therefore it uses a neural network to solve this problem. First, the neural network is trained with the static radio map because it contains the RSS values at all RPs. Then, it uses the RSS values obtained at each calibration point to estimate the RSS values for all RPs, hence updating the radio map. Experimental results in a WLAN indoor environment showed that this solution improves the positioning accuracy within 2 m from 68% to 75%. Even though this solution can adapt to the RSS variations from the detected APs, it has a drawback which is the need to manually collect Wi-Fi samples at the calibration points. 31
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS Model trees are explored in [98]. It starts with an already created radio map and uses RF receivers at known positions to estimate the updated radio map for all RPs. This method uses an already created radio map to learn the functional relationship in the RSS values between a mobile device and the RSS values obtained by the RF receivers. A model tree is used to estimate the RSS values at the mobile device based on the RSS values collected by the RF receivers. Consequently, it allows adapting to the dynamic changes in the radio environment due to the continuous operation of the RF receivers. Various studies [1, 99, 100] focus on LDPL-based models to estimate a Wi-Fi radio map. In free space, where there is a direct line-of-sight between the transmitter and receiver, the LDPL model is defined as: PL =PL0+ 10ηlog10 d d0+χ[dB](2.4.1) where PL represents the total path loss measured in dB, PL0is the path loss at reference distance d0,dis the distance between transmitter and receiver, ηis the path loss exponent and χis a zero-mean Gaussian distributed random variable (in dB). As the radio signal propagates in indoor environments, it suffers power losses that are not linear with distance due to the presence of people, obstacles and other elements that affect the propagation of Wi-Fi signals, consequently resulting in an attenuated signal. The attenuation of a signal is a factor of distance and also of the obstacles, still or moving, that can influence the propagation of these signals causing the absorption, reflection, diffraction and scattering. Since most times there is not a line-of-sight between the transmitter and receiver, the models used to interpolate radio signals need to account for the effects that impair the Wi-Fi signals. In order to overcome these, some systems described in the literature [1, 99, 100] depend on the floor plan of the building as well as the position of APs in order to take into consideration the attenuation that the signal suffers between the AP’s position and the receiver. In RADAR [1], the wall attenuation factor model considers the attenuation effects from walls along the direct path between the transmitter (AP) and receiver on the same floor. RADAR achieves an average positioning error of 4.3 m using an interpolated radio map by knowing the position of three APs and the floor plan of the building floor. Other systems such as the probability model described in [60] and the multi-wall-and-floor model in [101], depend on site-specific models that account site-specific parameters such as building materials, 32
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS geometrics and thickness. These models may be accurate, but they require extensive measurements and detailed material characteristics and geometry properties in order to accurately represent the building. A deeper analysis of some interpolation methods is made in Appendix C, which also includes the mathematical models of these methods and an implementation of the RBF method in a real-world experiment. 2.4.4 Other Methods A combination of SLAM and propagation models is used in [102] to automatically build the radio map of an industrial space. Initially, a 3D force-directed graph is built from Wi-Fi samples collected by fixed Wi-Fi monitors. Then, the graph estimates APs’ positions which, then allow to model the radio environment using a mobile unit equipped with Wi-Fi and motion sensors. As a result, the radio map is automatically built without calibration or knowledge about the space. Since this method estimates APs’ positions, it is prone to errors which can affect the positioning accuracy of the radio map. In addition, it requires the installation of Wi-Fi monitors, which can be challenging due to the number of beacons and the locations where they have to be installed. Pallas [103] relies on Wi-Fi monitors and crowdsourcing to automatically create the radio map and keep it up to date. Through the knowledge of the indoor floor plan and the location of the Wi-Fi monitors, Pallas statistically maps the collected RSS traces to specific indoor pathways. Unlike other systems based on fingerprinting, Pallas relies on passive Wi-Fi samples, which are signal strength measurements from deployed Wi-Fi monitors when the signal-emitting devices are at different locations. Consequently, it depends on the identification of passive Wi-Fi landmarks within the collected RSS traces in order to map them into Wi-Fi samples, which are used for passive localization. Since RSS traces are collected by user’s smartphones as they move through the indoor area, the system needs several active users in order to have most of the indoor environment properly mapped with passive Wi-Fi samples. The Pallas system was evaluated in an office floor with 1710 m2and in an open canteen environment with 1450 m2, achieving an average localization error of 2.6 m and 3.5 m, respectively. The EZ system [104], does not require calibration of the indoor environment and does not need any knowledge regarding the APs location and physical layout of the building. However, it requires that the devices inside the building occasionally report GPS coordinates that might have been obtained when the 33
2.4. METHODS TO BUILD AND MAINTAIN RADIO MAPS device was near an entrance or a window. The EZ system uses an algorithm that locates its users by computing the distances between the devices and the APs using the LDPL propagation model. A Wi-Fi fingerprint can be referenced to a location when the device has a GPS signal. All devices send Wi-Fi fingerprints to the server, some are obtained in known locations, where GPS is available, and others are obtained in unknown locations, where GPS is not available. Once the server gathers the fingerprints from the devices, it has to solve a set of LDPL equations in order to obtain the locations of the APs. A large number of APs leads to an increase in the number of equations, and therefore, it takes more time to solve them. To update the model of the indoor radio environment, this algorithm needs to be run again. It can take a few minutes to several hours depending on the size of the problem. In the two experiments that were carried, the obtained median error is 2 m compared with 2-3 m from RADAR [1], however, RADAR required a time-consuming calibration process. The dependence on the GPS signal is a disadvantage of the EZ system, especially because there are many buildings where the GPS signals are not available. In [105], Atia proposed a dynamic online-calibrated indoor positioning system based on WLANs. The system automatically creates and updates the radio map without the need to perform offline surveys. A wireless monitor device is placed beside each installed AP to send information to a server, every second. Each wireless monitor sends the AP’s location as well as the Media Access Control (MAC) address and RSSI of all detected APs (power profiles). The APs’ power profiles information is gathered in the server and processed using log-distance models and Bayesian modelling with Gaussian Regression. The processed information constitutes the created radio map, which comprises the estimated power profiles of all APs. The radio map remains updated because the wireless monitors are constantly sending updated information regarding the radio environment. When it receives a Wi-Fi sample from the mobile device, the server estimates the location of the mobile device using the k-NN algorithm. To test this system, two different experiments were performed in buildings with 375 m2and 1000 m2, respectively. Four APs were used in both experiments and the results show that the estimated radio map provides a 2-3 m accuracy which is very similar to the accuracy found in other fingerprinting-based systems that use an manually created radio map. This system has several advantages, namely, it achieves the same accuracy as other Wi-Fi-based IPSs, it does not need an offline survey to create the radio map, and it does not need to know the floor plan of the building or have any previous knowledge of the building. However, this solution also presents some disadvantages, specifically, it requires high computing power to estimate the radio map and if the 34
2.5. SUMMARY solution is not properly integrated into the APs’ firmware, it requires the installation of a wireless monitor for each AP. 2.5 Summary In this chapter, the most important concepts of indoor positioning were reviewed, including signal propagation, impairments of radio signals indoors, and the techniques to estimate the position, with a particular emphasis in Wi-Fi-based positioning systems. Some specifications and performance metrics were described and a distinction was made between positioning accuracy and positioning precision. An analysis of existing IPSs for indoor vehicles was made. The main finding of this review has shown that sensory fusion techniques are often adopted to achieve improved accuracy and that more expensive technologies such as UWB or LiDAR lead to better performance. Alternative technologies, such as Wi- Fi, take advantage of the existing WLAN infrastructure, thus being lower cost and simpler to deploy. As a disadvantage, it has lower accuracy which can be overcome using additional sensors installed in the vehicles. The analysed systems do not report the performance degradation over time, i.e., whether the system is reliable after being deployed over several months, or longer. A review of the methods to build and maintain radio maps was also made. It focused on solutions that simplify the building/maintenance of radio maps, using different approaches, e.g., collaborative methods that depend on users’ participation, SLAM-based methods that locate and map the space using sensors such as LiDARs, and interpolation methods that require the collection of data in a few points and interpolate signal levels for the entire space. The main disadvantage of interpolation-based methods is that they provide approximations of signal strength levels, that rarely account for signal effects like reflection, refraction and multipath. Conversely, in SLAM and collaborative-based methods, Wi-Fi samples are collected onsite, hence they are more reliable and represent the radio environment more accurately. Collaborative methods take advantage of existing users, with no additional hardware, which is necessary for SLAM and interpolation-based methods. However, users can feed the system with malicious feedback to hinder the system. Interpolation methods usually start from a simple radio map with just a few Wi-Fi samples or a set of Wi-Fi monitors that autonomously collect data and implement an interpolation technique to estimate RSS values. On the one hand, the simplest interpolation methods are less accurate since they 35
3.2. LONG-TERM WI-FI DATA COLLECTION Test Point Monitoring Device Figure 3.2: DSI building: monitoring devices (blue hexagons) and test points (salmon circles). of test points (a total of 49), they better represent the building’s radio environment than the datasets obtained with Monitoring Devices (only 7 in total). In order to enrich these datasets, in addition to the manually surveyed points, Wi-Fi samples from Monitoring Devices collected around the same time were also considered. In summary, 12 datasets were collected at the following dates: 2019-02-19; 2019-03-25; 2019-06-11; 2019-07-03; 2019-07-29; 2019-09-11; 2019-10-09; 2019-11-13; 2019-12-11; 2020-01-15; 2020-02-19; 2021-04-23. In each dataset contains 1120 Wi-Fi samples collected across 56 distinct positions. 3.2.3 Monitoring Devices Data Although the installation of infrastructure to collect data tends to be expensive, the Raspberry Pi 3B+ was chosen to implement the Monitoring Device. The main advantages of this device are that it is low-cost, it already includes 2.4 and 5 GHz Wi-Fi interfaces (802.11b/g/n/ac), it is simple to configure and deploy, and it is based on Linux which facilitates the development of software modules. A Java program was developed to collect a new Wi-Fi sample every 60 seconds. In order to avoid getting outdated signal strength values, the program performs two scans and considers the last one. This program also sends Wi-Fi samples to a centralized server that gathers data from all Monitoring Devices. It also saves data locally into an SQLite database. After testing the data collection program, seven Monitoring Devices were deployed in the DSI building (Figure 3.3 (b) shows one of the deployed Monitoring Devices) on 2019-02-19 and started collecting data on that day. Since the Monitoring Devices are continuously collecting Wi-Fi samples, one can easily obtain the radio map of the building based on Monitoring Device data, at any time period. Although it has a low number of RPs (only 7) for the size of the building considered, this radio map can be used with Wi- 42
3.3. RADIO ENVIRONMENT OVER TIME Test Point Monitoring Device Mon. Device (RPi) (b)(a) Figure 3.3: Long-term data collection at DSI: (a) manual site survey; (b) Monitoring Device installed in one of the rooms. Fi fingerprinting as a metric to evaluate if the positioning performance degrades when the radio map is older. Monitoring Device data was used to create radio maps in two ways: to complement the manual site surveys, and to generate radio maps integrating Monitoring Device data only. Blue and yellow marks in Figure 3.8 represent dates when these data were obtained. More than 7 million Wi-Fi samples were collected from all Monitoring Devices since they started collecting data. Appendix A documents the solution that was implemented to enable the long-term data collection. It explains how data from Monitoring Devices is gathered and how it monitors whether Monitoring Devices are collecting data or not. 3.3 Radio Environment Over Time The continuous monitoring provided by Monitoring Devices allows to observe variations in the radio environment over time. Figure 3.4 shows the number of APs detected in the building according to their frequency band (2.4 or 5 GHz). The Wi-Fi radio spectrum is crowded with many APs in both bands, but with a larger number of APs in the 2.4 GHz band. A total of 4865 APs were detected over the data collection period. This high number of APs detected in the building means that there is interference due to the overlapping of neighboring 43
3.3. RADIO ENVIRONMENT OVER TIME Apr 2019 Jul 2019 Oct 2019 Jan 2020 Apr 2020 Jul 2020 Oct 2020 Jan 2021 0 25 50 75 100 125 150 175 200 225 Number of APs detected 2.4 GHz Band 5 GHz Band Figure 3.4: APs detected by Monitoring Devices over time. channels, especially in the 2.4 GHz band. Figure 3.5 shows all visible APs, since the beginning of this work, in 2019. This plot aggregates data from all Monitoring Devices deployed in the building, hence, it shows all visible APs over the analyzed period. APs are sorted according to the first time of detection. Since some Monitoring Devices are deployed near windows, they can detect APs from neighbor buildings, which are also included in Figure 3.5. Each line, represented in a different color, depicts the period during which an AP was detected. A total of 417 unique APs were detected during this period, considering that each unique MAC address counts as one AP. A total of 4 448 APs that were rarely observed (in less than 1% of Wi-Fi samples) were ignored and are not displayed in the plot. 44
3.3. RADIO ENVIRONMENT OVER TIME Figure 3.5: APs detected by monitoring devices over time. Figure 3.5 serves as a tool for analysing changes in the radio environment. It shows that there are some APs that were detected over the entire observation period. Some APs have intermittent behavior (around AP160), being switched on and off several times. There is also the case where APs only show during a short period (in Oct. 2019 and Sept. 2020). Some APs appear at a specific time (Dec. 2019) and remain visible until the end of the data collection. The variations observed in Figures 3.4 and 3.5, demonstrate that the radio environment is highly dynamic, including many short-term variations and several significant changes in the Wi-Fi infrastructure over time. A description of the more significant events (highlighted in grey in Figure 3.5) is presented next. Sept. 2019 – A set of new APs are detected over one month, then disappear and are not observed again. A deeper analysis through the Wi-Fi samples from that period showed that many new APs, associated with the University’s WLAN infrastructure, were detected during this period. Dec. 2019 – Many APs stopped being detected and several new ones started being detected around the same time. Due to the significant amount of APs that changed in this period, this is a dramatic change in the radio environment. Sept. 2020 – It is a similar behavior to the one observed in Sept. 2019, but the newly added APs 45
3.4. RADIO MAP DEGRADATION OVER TIME were detected during a shorter period. Dec. 2020 – Immediately before Jan. 2021, almost all APs stopped being detected during a couple of days (vertical white space around the time indicating that the vast majority of APs was switched off). This suggests that there was a power outage that caused APs to be down during this period. APs return to normal operation after this period. See Section 3.5 for further details. Other events – Many other variations and periods in which APs are switched on and off can be found in Figure 3.5, demonstrating that the radio environment is highly dynamic not only in long-term but also in short-term. These short-term variations are probably associated with the building’s activity where people use their APs and hotspots, which are easily moved, switched on and off, hence they are not as constant as the APs from the university’s WLAN infrastructure. 3.4 Radio Map Degradation Over Time Whether or not the highly dynamic radio environment has an impact on IPSs is analyzed in this section, where the results regarding the radio map degradation over time, using the mean positioning error and the RMDR metrics, are presented. 3.4.1 Manual Site Surveys Data Each dataset was used as a radio map and all subsequent datasets (the ones obtained after the radio map) were used as test datasets. This allows the evaluation of the radio map over time since the day it was initially collected. For example, the 2019-12-11, 2020-01-15, 2020-02-19, 2021-04-23 datasets were used as test data when considering the 2019-12-11 dataset as radio map. In the case where the radio map and test datasets are the same (when the radio map is tested on the same day it was created), 5 Wi-Fi samples were selected as test data and the remaining 15 as radio map data, for each testing point. During most of 2020, it was not possible to perform the manual site survey due to COVID. Figure 3.6 (a) depicts the mean error achieved for each version of the radio map. Each line in the plot represents the times when a radio map was evaluated, over time. As expected, better results are obtained when the radio map is more recent. When the radio map is obtained on the same day as the 46
3.4. RADIO MAP DEGRADATION OVER TIME test dataset, the results are excellent. The plot shows that the degradation is not incremental over time and it is not guaranteed that time itself is the reason for an increase in the radio map degradation. There are particular events that cause significant degradation of results, for example, the radio map from Sept. 2019 performs poorly in all subsequent tests, and all radio maps created in 2019 had significantly worse positioning results in 2020. (a) (b) Figure 3.6: Manual site survey metrics: (a) mean error of Wi-Fi fingerprinting; (b) RMDR. The positioning results obtained with radio maps and testing data collected on the same day are much better than results obtained in more realistic conditions where testing data is collected days or months after the radio map was created. Many results reported in the literature might suffer from this problem, where the results being reported are obtained with radio maps and test data collected in the same day, thus not representing the real performance of the IPSs. Results show that Sept. 2019 was not a good period to build the radio map because, as described in Section 3.3, during this period many new APs were added and removed just about a month later. Therefore, collecting a radio map before an infrastructure change renders the radio map unusable after the change. All tests with the Sept. 2019 radio map had worse performance than older radio maps. This shows that when the radio map contains a set of APs that are removed, it affects the positioning results based on Wi-Fi fingerprinting since the implemented version assigns a default RSSI to APs that are not detected. A clear degradation of results in all radio maps collected before Jan. 2020 is observed in 2020. As shown in Figure 3.5, in Dec. 2019, there were many APs that were disconnected, and new ones were 47
3.4. RADIO MAP DEGRADATION OVER TIME added, causing significant changes in the radio environment. Therefore, all radio maps that were created before Jan. 2020 became outdated, as shown by the worse positioning results in 2020. Despite a very long time between the last two datasets (2020-02-19 and 2021-04-23), the radio maps that were obtained in 2020 did not have significantly worse results than the 2021 dataset. This is justified by the reduced activity in the building and almost no changes in the Wi-Fi infrastructure during 2020. The RMDR was evaluated for each radio map version by comparing it with itself and the subsequent ones. Figure 3.6 (b) shows the RMDR of each radio map over time. When compared with itself, the RMDR is zero, as shown in the plot. The RMDR achieved for all radio maps follows a similar behavior as the one observed in Figure 3.6 (a), except for the values observed in 2019-07-29 and 2019-09-11. During this period, the RMDR increased, but it did not translate into significantly worse positioning results. The RMDR rose substantially in radio maps after Dec. 2019, following the same behavior observed in Figure 3.6 (a). This shows that changes that occurred in the radio environment after Dec. 2019 differ from the ones observed in Jul. and Sept. 2019 (where RMDR was higher, but the mean error remained almost the same). Our analysis of the building’s Wi-Fi infrastructure (see Section 3.5) shows that these changes are related to distinct events. In sum, these results demonstrate that better results are achieved when the radio map and test dataset are collected on the same day. When a radio map is tested after some time, there is a degradation in the positioning performance. Radio map degradation is directly related to changes in the Wi-Fi infrastructure, especially when several APs are removed from the building, and not directly correlated simply with the age of the radio map. 3.4.2 Monitoring Devices Data The same approach as the one in Section 3.4.1 was adopted to evaluate radio map degradation using Wi-Fi fingerprinting and the RMDR metric. As a result of being continuously collecting Wi-Fi samples, it allowed to obtain more datasets in comparison to the manual site surveys. In this experiment, the Monitoring Devices datasets were from the same dates as the manual site survey experiments, to validate whether the results are similar. Monitoring Devices datasets include data from months during which the university was closed or partially opened, due to COVID. 48
3.5. EVENTS TIMELINE Figure 3.7 (a) depicts the Wi-Fi fingerprinting mean error over time, for each radio map version. These results are in accordance with the ones of Figure 3.6 (a). Again, the Sept. 2019 radio map is only valid during the period when it was collected. It has a large positioning error in all other tests. The event from Dec. 2019 significantly affected the results of radio maps that were built before that. In 2020, new radio maps created after Dec. 2019 have good performance results, demonstrating that no significant changes in the radio environment have occurred during the year. In this period, the mean error is low because only 7 test points (Monitoring Devices positions) were considered, and the building’s activity was substantially reduced due to COVID restrictions. Regarding the RMDR, Figure 3.7 (b) shows that radio maps from Monitoring Devices also register high RMDR values in Sept. 2019 and Jan. 2020, having a similar behavior to the results achieved with the site survey radio maps (Figure 3.6 (b)). (a) (b) Figure 3.7: Monitoring devices metrics: (a) mean error of Wi-Fi fingerprinting; (b) RMDR. Although the results are similar to the ones obtained with site surveys, the great advantage of using the Monitoring Devices is that data are autonomously and continuously collected without human intervention which allows to obtain the radio map of the building from any period. 3.5 Events Timeline In order to establish a cause/effect relationship between the changes in the radio environment (identified in Section 3.3) and the obtained results (in Section 3.4), Figure 3.8 shows the major events that occurred 49
3.5. EVENTS TIMELINE during the data collection period. Dec. Mar. - Oct. Sept. - Oct. Feb. 2019 Manual + Monitoring Devices Radio Map Monitoring DevicesRadio Map Feb. 19 Mar. 25 Jun. 11 Jul. 3 Jul. 29 Sept. 11 Aug. Summer Vacation University closed Oct. 9 Nov. 13 Tests in WLAN many sub-networks created Dec. 11 Data collection started 2020 Jan. 15 Feb. 19 Mar. 18 Apr. 22 May. 20 Jun. 24 Jul. 22 Aug. 19 Sept. 23 Oct. 21 Nov. 15 University Closed COVID pandemic Network maintenance new APs were added, some APs moved Sept. 2021 Tests in WLAN many sub-networks created University Closed COVID pandemic Dec. Power outages most APs switched off Jan. - Apr. Apr. 23 Figure 3.8: Significant events in DSI building over time. This timeline includes times when there were interventions in the building’s Wi-Fi infrastructure, periods during which the university was closed due to COVID, and times (blue and yellow marks) when datasets were obtained. Blue and yellow marks represent times when datasets were collected. Yellow marks represent dates when only Monitoring Device datasets were collected. The last time a manual site survey was conducted was on 2021-04-23, a few days after the university re-opened after being closed due to COVID restrictions. No datasets from Monitoring Devices were obtained between Nov. 2020 and Apr. 2021, because one device stopped working, and was only fixed in Apr. 2021. The main interventions in the building’s Wi-Fi infrastructure, which affected the results (see Section 3.4), are described next: • In Sept. 2019, with the beginning of the school year, the technicians performed several tests in the network, during which they used the existing APs to transmit several new SSIDs which were not previously detected. A similar test was also conducted in Sept. 20207. • The building’s WLAN suffered a maintenance intervention in Dec. 2019. New APs with a larger user and traffic capacity were installed in classrooms (right side in Figure 3.2), and some of the replaced APs were moved into the office areas to increase coverage (left side in Figure 3.2). • In Dec. 2020, a power outage caused problems in the building’s power supply and a significant number of APs were switched off for a couple of days. This caused the network to be down, and since it occurred around Christmas time, the technicians were only able to solve this problem after a couple of days. Although the building suffered power outages, the circuit that powers Monitoring Devices seems to be independent of the one that powers the APs, since there are a few APs that are still visible during this period (Figure 3.5), hence Monitoring Devices were still operating and some APs 7Information about operations in the Wi-Fi infrastructure was obtained from the University services. 50
3.6. AP BEACON RECEIVING PROBABILITY were also working. It is probable that the APs detected during this period are either rogue APs (not from the university’s dedicated WLAN), or APs from neighbor buildings, which can be detected by Monitoring Devices. After this issue was solved, the APs returned to their previous state and were detected by Monitoring Devices. 3.6 AP beacon receiving probability The Wi-Fi samples collected by Monitoring Devices allowed to conduct an analysis of the APs beacon receiving probability. APs are not always detected in Wi-Fi samples due to being far from the receiver device, or due to characteristics of signal propagation. When an AP is missing in a Wi-Fi sample, it is ignored or assigned a default value. Usually, this value serves as a penalization in the localization algorithm for the AP not detected in the Wi-Fi sample. Researchers tried to characterize the APs RSSI distribution [28, 98, 110] by showing histograms of AP’s signal levels over a time window. Although there are some conflicting conclusions about which model better fits RSSI distribution, most authors agree that RSSI histograms resemble a Gaussian distribution in most cases. Other distributions are also considered in the literature due to the diversity of RSSI histograms. Despite analyzing the signal distribution in RSS space, these works miss an important aspect which is the ratio of the times the AP is detected over the total number of Wi-Fi samples analyzed. This aspect is important, especially in solutions that perform AP selection, either to improve positioning performance or to reduce computational effort [111]. In order to characterize APs according to the ratio of times they are detected in Wi-Fi samples, the AP beacon receiving probability was defined as: Γ = n Nws (3.6.1) where nrepresents the number of times the AP was detected over the total of Wi-Fi samples considered Nws. To analyze AP beacon receiving probability, over 3 million Wi-Fi samples collected from all Monitoring Devices between 2019-04-01 and 2020-04-01 were considered. Each Monitoring Device detects unique APs, and 51
4.2. SENSORS FOR VEHICLE TRACKING 4.2.1 Heading (Orientation) IMUs are self-contained systems with tri-axis magnetometers, accelerometers and gyroscopes that measure the magnetic field (µT), acceleration (m·s−2) and angular velocity (rad/s), providing information regarding the relative orientation of the device. An IMU with on-board processing that provides attitude and heading information is called an Attitude and Heading Reference System (AHRS). The representation of the device’s orientation may be represented in Euler angles (roll, pitch and yaw) or quaternion. In this context, the vehicle’s heading is the angle associated with the yaw axis. Depending on the IMU, the heading may be absolute or relative. Some IMUs provide absolute heading estimates, which means that the heading is referenced to the true north. Others only provide relative heading estimates using the starting point as the first reference and all heading estimates are relative to that initial orientation. Magnetic disturbances of ferromagnetic elements affect the magnetometer’s ability to measure the earth’s magnetic field. The presence of large metal objects, metal furniture and other elements are the source of errors in the estimated orientation [118]. IMU sensors suffer from integration drift, small errors in the measurement of angular and linear velocity are integrated into larger errors that accumulate over time since the initial position. Accelerometers and gyroscopes have sensor bias, it is the variation that occurs in the average signal output when there is no movement. Sensor bias varies with time, hence it contributes to drift in the heading. Drift may be reduced by using another type of navigation system to reset the initial orientation/position. Most IMU’s specification sheet includes information regarding the drift, namely gyro bias stability, roll/pitch and yaw in degrees per hour. Orientation filters are responsible for estimating the orientation angles, by merging the accelerometer and magnetometer data with angular velocity from the gyroscope. Examples of the orientation filter are the complementary filter [119], the KF [120] and the general-purpose Bayesian filters, the Mahony [121] filter or the Madgwick [122] filter. A comparison between the Mahony and Madgwick filters is made in [123], revealing that the Madgwick filter provides better orientation estimates. The main advantages of the Madgwick filter are that it has a low error, is computationally inexpensive and has better performance than the Kalman-based algorithms [122]. Since it has a low computational load and is able to operate at low 58
4.2. SENSORS FOR VEHICLE TRACKING sampling rates, the Madgwick filter is a good solution for real-time applications that have limited processing power or require high sampling rates. Industrial-grade IMUs are very expensive because their reliability is highly dependent on the quality of the integrated sensing elements as well as the signal processing pipeline. For instance, the Xsens MTi-300 IMU8, depicted in Figure 4.1 (a), has a gyro bias stability of 10◦/h and costs 2900 e. It can be used to track vehicles or mobile robots, to assist in autonomous navigation or to provide accurate inertial data from wind turbines deployed in remote areas. https://www.amazon.com/Adafruit-Absolute- Orientation-Fusion-Breakout/dp/B017PEIGIG https://www.digikey.be/productdetail/en/xsens-technologies-bv/MTI-300- 2A8G4/1551-MTI-300-2A8G4-ND/10667479 (a) (b) Figure 4.1: IMU sensors: (a) Xsens MTi-300 (Industrial-grade); (b) Adafruit BNO055 (low-cost). Source (a) https://www.digikey.be/product-detail/en/xsens-technologies-bv/MTI-300-2A8G4/1551-MTI-300-2A8G4-ND/1066747 Source (b) https://www.amazon.com/Adafruit-Absolute-Orientation-Fusion-Breakout/dp/B017PEIGIG Alternative, low-cost IMUs (e.g., the Adafruit BNO055 shown in Figure 4.1 (b)), are commonly used in educational robot projects because they can be easily integrated with the Arduino or Raspberry Pi platforms. Lower accuracy and higher drift are their main disadvantages in comparison to industrial IMUs. In Section 4.4, a PF is proposed as the solution to help cope with the heading drift and noise from the IMU sensor. In this work, AHRS IMUs are used because they integrate sensor fusion algorithms to convert raw data from the magnetometer, gyroscope and accelerometer sensors into the orientation of the device. AHRS sensors take advantage of reference vectors (i.e., gravity and the earth’s magnetic field) to compensate for the gyroscopes integration drift, resulting in more reliable orientation data (lower drift). 8https://www.xsens.com/mti-300 59
4.2. SENSORS FOR VEHICLE TRACKING 4.2.2 Displacement (Travelled Distance) In order to properly estimate a position using DR, the heading and the displacement are necessary. The algorithm begins with an initial position and it estimates the following ones every time new heading and displacement samples are obtained. The displacement defines the distance that was travelled since the previous position. In the following, several solutions for measuring the displacement are presented. The displacement can be measured using rotary encoders attached to one of the vehicle’s wheels. Rotary encoders can be absolute or incremental. Absolute encoders allow to read the absolute angle at which the encoder is positioned at, whenever a new sample is obtained. Incremental encoders generate a series of pulses during movement which can be converted into a velocity since the previous sample. When the absolute encoder is powered, it always produces a known position. In contrast, the incremental encoder always starts from zero and acts as a counter for each pulse generated in operation. Usually, encoders are attached to the motor or the wheel’s axle, however there are no standard mounts compatible with different types of indoor vehicles. This demands a custom made mount that is expensive and takes time to be designed and manufactured. Thus, it increases the cost of the deployment in the vehicle. A disadvantage of using wheel attached encoders is that they may suffer from wheel drag while the vehicle turns, but it can be compensated with a PF. Accelerometers are low-cost sensors that can be used to measure displacement by obtaining the speed through the integration of the acceleration in function of time. Since the acceleration is integrated twice, it has high sensitivity to noise and the drift will be high. Even with filtering or calibration, very high errors will be noticed, as shown in [124]. Since accelerometers are present in IMUs one can use them to obtain the heading and displacement of the device. Optical flow may be used for obtaining odometry information with a camera to extract features in order to estimate the travelled distance. Optical flow is the displacement of pixel values in an image sequence induced by the movement of a camera or the scene observed by it. In [125], optical flow is applied to estimate the velocity of micro aerial vehicles, whilst in [126], optical flow is used as an odometer for mobile robots. Different algorithms may be applied to estimate the travelled distance with optical flow, namely, the Lucas-Kanade algorithm, the Horn-Schunck algorithm and the block matching algorithm. Optical flow depends on optical sensors, such as cameras to capture the frames in which the optical flow algorithms 60
4.2. SENSORS FOR VEHICLE TRACKING are applied, therefore the pixel count in a frame has a direct impact on the computational power required for onboard optical flow computation. In this work, the absolute encoder was selected as the sensor for measuring the travelled distance because it is reliable for measuring the displacement, and it is simple to read and convert the measured angles into a distance value. Figure 4.2 depicts how the angles measured by the absolute encoder can be converted into the distance. A r t0t1 AB movement t Figure 4.2: Measuring the displacement using an absolute encoder. First, it is necessary to observe the angle at which the encoder is positioned in two instants (t0and t1). Second, the angle difference between those two observations is measured. Third, based on the measured angle and the wheel radius, one can convert the angle into the displacement, as follows: d=∠AB 360 ×2πr (4.2.1) where drepresents the measured displacement in the time interval between t0and t1,∠AB represents the angle (in degrees) measured in the same time interval, and rrepresents the wheel radius. 61
4.3. PARTICLE FILTER SENSOR FUSION APPROACHES 4.3 Particle Filter Sensor Fusion Approaches Figure 4.3 shows a diagram of the sensor fusion approaches explored for indoor vehicle tracking. The PF is the main algorithm that combines data originating from the Wi-Fi, the encoder and the IMU sensors. DR information is obtained from the movement model of the vehicles, which is based on the motion sensors (encoder and IMU). The information regarding the absolute position of the vehicle is inferred from the Wi-Fi information, considering two distinct approaches, the Loose Coupling and the Tight Coupling approach. Overall, the main difference between these approaches is that the Loose Coupling approach combines a Wi-Fi position estimate with the DR information, while the Tight Coupling approach combines the Wi-Fi similarities with the DR information to estimate the vehicle’s pose. wifi sample position Wi-Fi Fingerprinting similarities Compute Similarities Particle FilterENCODER IMU WIFI (a) Loose Coupling (b) Tight Coupling wifi sample (a) or (b) Vehicle Pose Figure 4.3: Loose Coupling and Tight Coupling sensor fusion approaches. The Loose Coupling approach (Figure 4.3 (a)), combines a Wi-Fi position estimate with data from other sensors in the fusion algorithm. For instance, a Wi-Fi fingerprinting method based on k-NN first computes the similarity between the Wi-Fi sample (sensor measurement) and the reference samples from the radio map. Then, a position estimate is obtained based on the most similar Wi-Fi samples and it is combined with data from other sensors to produce a more accurate position estimate. Large errors are usual in Wi-Fi-based positioning due to different signal propagation effects, hence this approach has the additional challenge of trying to eliminate the large positioning errors. The Tight Coupling approach (Figure 4.3 (b)), computes the set of similarities between a new Wi-Fi sample and the radio map, then the set of similarities is combined with data from the motion sensors 62
4.4. PARTICLE FILTER to obtain a PF position estimate. In contrast with the Loose Coupling approach, which only considers a small set of radio map samples, this approach considers the entire radio map, therefore it benefits from all available information. Since Tight Coupling does not rely on a Wi-Fi position estimate, it is less influenced by the large errors in Wi-Fi position estimates. Previous works already explored these techniques for tracking pedestrians, e.g., in [38, 127] (Loose Coupling approach) and in [128] (Tight Coupling approach). Although these approaches are not new, in this work they are applied to industrial vehicle tracking, which explores a different motion model than pedestrians and depends on dedicated sensors to measure the displacement and heading. 4.4 Particle Filter PFs are based on the idea that a set of particles represents the belief of the vehicle’s pose and comprise three iterative steps named predict, update, and resampling. In the predict step, particles states are estimated based on the previous particle state and a motion model, considering the noise models of each sensor. In the update step, particles’ weights are updated according to sensor measurements. In the resampling step, particles with lower weights are replaced by new ones that are based on the particles with higher weights. Prior to running these steps, it is necessary to initialize the PF, by creating the particles. Different assumptions may be considered regarding the initial position and heading of the vehicle, depending on the requirements of the IPS. While some IMUs provide the absolute heading by providing true North-reference yaw, there are others that provide a relative yaw that resets every time the sensor is powered, thus making it challenge to determine the initial heading of the vehicle. Similarly, there are some cases where the initial position of the vehicles is available (e.g., vehicles always start operation from a known location), and other cases where the initial position of the vehicle is unknown because vehicles may start operation from any location of the building. In this chapter, the following assumptions are made regarding the initial pose of the vehicle: initial position and heading are unknown. Several mechanisms are included in the proposed implementations to overcome this challenge, e.g., Wi-Fi fingerprinting is used to determine an initial position. Even though the initial position may have a potentially large error, it is still better than spreading particles uniformly in the space. To cope with the initial heading being unknown, each particle is assigned with a random heading 63
4.4. PARTICLE FILTER offset, a specific attribute unique for each particle, to guarantee that the distribution of particles’ headings represents the true heading of the vehicle. As the vehicle starts moving, particles start converging into a position where it is more likely for the vehicle to be at. Different weights are assigned to particles, being that particles that are closer to the vehicle’s position have higher weights, conversely, particles further from the vehicle’s position have lower weights. Particles further from the true position of the vehicle will be eliminated, and the ones that better represent the vehicle’s position and heading will be copied in the resampling method, allowing to estimate the position and heading of the vehicle after a few iterations. Figure 4.4 represents the main algorithm of the proposed PF, which is the same for the Loose Coupling and Tight Coupling implementations. It starts with the particles’ initialization, then waits for samples from sensors (displacement, heading or Wi-Fi). Particles move according to heading and displacement measurements, considering noise. Upon receiving a new Wi-Fi sample, the particles’ weights are updated and then the particles are subject to resampling. The vehicle’s position and heading are updated after this process. Since the Loose Coupling and Tight Coupling differ in some methods, Figure 4.4 also includes the respective algorithms and equations used in each step. For instance, the update weights method is different for the Loose Coupling (LC) and Tight Coupling (TC), but the motion model is the same for both implementations, hence the same equation is used to update particles’ positions and headings. 64
4.4. PARTICLE FILTER Sampling (update particles' states) initialize Alg. 1 (LC) Alg. 2 (TC) weight Eqs. 4.5.3 - 4.5.5 (LC) Eqs. 4.6.1 - 4.6.2 (TC) start wait for next sample sensor data update vehicle's position and heading Eqs. 4.5.12, 4.5.13 (LC+TC) position Eq. 4.5.1(LC+TC) heading Eq. 4.5.2(LC+TC) resample Eqs. 4.5.6 - 4.5.8 (LC) Alg. 3 (TC) radio map Wi-Fi displacement IMU Figure 4.4: Particle filter main algorithm. The PF prediction and update steps are performed simultaneously when new sensor samples are obtained. The prediction is based on the propagation of particles according to heading and displacement samples, which consider noise modelled after the IMU and encoder, respectively. Therefore, whenever a new heading or displacement sample is collected, the sampling process includes the predict (added noise) and the update (new observations) in the same step (Section 4.5.2). The update step also includes the process to update the particles’ weights, which is based on the particle’s current state and the latest Wi-Fi sample. A particle is defined as p= (w, x, y, z, h, ho), where wrepresents the weight of the particle, x,y, and zrepresent the position coordinates of the particle, hrepresents the heading and ho represents the heading offset, necessary to estimate the heading of the vehicle (see Section 4.5.1). 65
4.5. LOOSE COUPLING APPROACH 4.5 Loose Coupling Approach The most straightforward method to combine Wi-Fi information with motion sensors is to explore Wi-Fi fingerprinting to determine an absolute position and combine it with DR information to track the vehicles. This approach follows a loosely coupled configuration where a Wi-Fi position estimate is combined with information from other sensors to determine an improved position provided by the sensor fusion algorithm. As already mentioned, the PF was selected to perform the sensor fusion of sensor data. In this context, the Wi-Fi position estimate (obtained from Wi-Fi fingerprinting) is necessary to update the particles’ weights, assigning higher weights to particles closer to the Wi-Fi position estimate. This information is combined with the motion sensors by updating the particles’ positions and headings based on the sensor measurements. The estimated trajectory is corrected as the vehicle moves by eliminating the particles with lower weights in the resampling step. Wi-Fi information has a crucial role in the sensor fusion algorithm as it allows to determine which particles will ultimately be removed based on their weight in the resampling step. 4.5.1 Initialization Usually, particles are uniformly distributed throughout the navigable space when they are initialized. This approach leads to large errors in initial iterations, as particles take some time before converging into a small area. Two distinct approaches are explored in particles initialization, both aim for initialising particles near the locations where it is more likely for the vehicle to be near. As the initial heading of the vehicle is unknown, each particle has an initial heading offset (ho) randomly set. Once particles start moving, the ones with the correct heading offset will remain alive as they are the ones with higher weights. Hence, after a few iterations the particles converge into the correct heading. In this approach, particles are uniformly distributed around reference points that are closer to the centroid of the first Wi-Fi position estimates. RPs are selected based on a radius distance between the centroid and each reference point. Algorithm 1 describes how particles are initialized. 66
4.5. LOOSE COUPLING APPROACH Algorithm 1 Initialize particles - Loose Coupling approach. Input WiF innumber of Wi-Fi position estimates considered in initialization N- total number of particles Output P- set of particles 1: procedure Initialize Particles Loose Coupling 2: c=centroid of first W iFinWi-Fi position estimates 3: RP =list of reference points within a rini radius of c 4: np =N/#(RP ) 5: for rp in RP do 6: for i= 1 until np do 7: w= 1/N 8: (x, y, z) = (rp.x +rand(0, r), rp.y +rand(0, r),1.0) 9: h= 0 10: ho =rand(−π, π) 11: p= (w, x, y, z, h, ho) 12: P=P∪{p} 4.5.2 Motion Model Continuous tracking of the vehicle’s position is achieved by updating particles’ positions and headings using the data provided by the encoder and IMU sensors, which measure the displacement and heading (orientation), respectively. For each new displacement sample, particles positions are updated as follows9: xt=xt−1+ (dt+nd)×sin(ht) yt=yt−1+ (dt+nd)×cos(ht) (4.5.1) where xt−1,yt−1represent the previous position of the particle, dtrepresents the displacement (in meters) with respect to the previous reading, htrepresents the heading, and nd=N(0,σd) is a zero-mean Gaussian distributed random variable added to the displacement measurement. When a new heading sample sample is received from this sensor, the particles’ headings are updated 9for simplicity, the vehicle is assumed to move in a plane, therefore with constant z. 67
4.6. TIGHT COUPLING APPROACH Wi-Fi position when updating particles weights like is done in the Loose Coupling approach, it explores all available information with Wi-Fi similarity, better estimating the weights of particles. Second, it takes advantage of the building’s floor plan to remove particles that hit walls or obstacles, to correct the trajectory. Third, it dynamically adapts to conditions, allowing to determine the influence that Wi-Fi data has in the process to update particles’ weights. This is essential during the initial period during which particles are more spread throughout the space, and the Wi-Fi information allows to favor the particles that are in areas with higher similarity. In the following, the PF processes of the Tight Coupling approach are described. 4.6.1 Initialization Before creating particles, an absolute position is necessary to determine where to place them. Wi-Fi fingerprinting allows to obtain an absolute position, however, there is a certain probability to have a high error in the initial position. To minimize the initial error, APs signal strengths of the first few Wi-Fi samples are averaged into a merged Wi-Fi sample (only RSSI values of detected APs are considered), to increase the probability of placing the particles closer to the real position [28]. The similarity between the averaged sample and the radio map samples is obtained, resulting in a list of samples ordered by similarity. Particles are created around the positions (RPs) where the most similar radio map samples were collected. Algorithm 2 describes how particles are created around RPs where the merged Wi-Fi sample is more similar. 74
4.6. TIGHT COUPLING APPROACH Algorithm 2 Initialize particles - Tight Coupling approach. Input rm - radio map, set of Wi-Fi samples ws - Wi-Fi sample of averaged RSSIs values from the first MWi-Fi samples J- number of RPs where particles will be created around N- total number of particles {N ∈ Z| N > J} Output P- set of all particles 1: procedure Initialize Particles Tight Coupling 2: P={} 3: D=dM(rm, ws)//compute Manhattan dist. (dissimilarity) between the rm and the ws 4: RP =get the set of Jref. points that are more similar with ws based on D 5: np =N/#(RP )//number of particles to be created around each RP 6: for rp ∈RP do 7: sn=normalized similarity between ws and rp, defined in Eq. 4.6.1 8: for i= 1 ∈ {1... np}do 9: w=sn 10: (x, y, z) = (rp.x +rand(0, r), rp.y +rand(0, r),1) 11: h= 0 12: ho =rand(−π, π) 13: p= (w, x, y, z, h, ho) 14: P=P∪{p} 4.6.2 Motion Model In the Tight Coupling approach, the same motion model as the one described in Section 4.5.2 was adopted. 4.6.3 Update Weights Wi-Fi ensures absolute positioning coverage of the entire operational area, therefore it is used to update particles weights as it allows to assign higher weights to particles that are closer to the most probable positions, and lower weights to particles that are further away from the most probable positions. In this context, we refer to the radio map (rm) as the set of samples that were collected at a site survey, and we refer to Wi-Fi sample (ws) as the set of RSSI values detected by a Wi-Fi interface, as previously defined in Section 3.1. 75
4.6. TIGHT COUPLING APPROACH In Wi-Fi fingerprinting, a position estimate is usually obtained by computing the centroid of the most similar radio map samples. While this estimated position can be used to update the weights of the particles (Loose Coupling), this approach does not use all the available information (set of all the similarities between the new Wi-Fi sample and all the radio map samples). Statistically, radio map samples that are more similar to the Wi-Fi sample are the ones closer to the true position of the Wi-Fi sample, as depicted in Figure 4.6. At the top part of the figure, there are some RPs whose similarity is better than in the center of the operational area. This is good for a Tight Coupling approach that considers entire set of similarities instead of the estimated position (black triangle) in Loose Coupling, which is displaced with respect to the real location of the Wi-Fi sample. In the Tight Coupling approach, the set of all similarities is used when updating particles weights. Two Wi-Fi samples are compared using a distance (dissimilarity) or similarity function, e.g., Manhattan, Euclidean or Minkowski distances, or the cosine similarity. The Manhattan distance was chosen to compare the Wi-Fi samples since it showed good performance in Wi-Fi fingerprinting [130, 131, 132]. The expression that defines the Manhattan distance (dM) is defined in Equation 3.1.3. If an AP is missing either in the radio map sample or the Wi-Fi sample, a default RSSI value of -90 dBm is used because the Wi-Fi receiver sensitivity is ≈-90 dBm. Once this is performed for all samples of the radio map, the Manhattan distance is normalized and converted into the Manhattan normalized similarity, as defined as: sn= 1 −dM−min(D) max(D)−min(D)(4.6.1) where Drepresents the set of the Manhattan distances between the Wi-Fi sample and the radio map samples. This expression converts the Manhattan distance into a similarity value, because it normalizes and inverts the Manhattan distance, so that it represents the normalized similarity, sn, where sn∈[0,1]. Figure 4.6 shows an example of the normalized similarity between a Wi-Fi sample and the radio map samples. Areas with higher similarity are depicted at the top and bottom of the figure. If the traditional Loose Coupling approach was used, the centroid could fall in an area with low similarity (black triangle), which is displaced with respect to the real location of the Wi-Fi sample. This issue does not exist in a Tight Coupling approach because it considers all available information and it does not depend on the estimated position. 76
4.6. TIGHT COUPLING APPROACH -30 -20 -10 0 10 20 0 5 10 15 20 Est. Pos. kNN Wi-Fi sample 0.0 0.2 0.4 0.6 0.8 1.0 Manhattan Normalized Similarity Figure 4.6: Normalized similarity between a Wi-Fi sample and radio map samples. The particles’ weights have an important role in the PF as they define which particles are removed in the resampling process, and they are used when estimating the vehicle’s position and heading. The weight of a particle is defined as: wt=wt−1×(1 −α) + sn×α(4.6.2) where wt−1represents the previous particle weight, snrepresents the normalized similarity, and αis a factor used to define how much the latest available Wi-Fi information affects the particles’ weights. The normalized similarity (sn) component of the particle’s weight is obtained from the nearest RP as shown in Figure 4.7. As the particle’s weight depends on its closest RP, a dense radio map, with a low distance between neighboring RPs (e.g., 1x1 m grid), will improve the system performance because it ensures that the particle’s closest RP is always at a distance lower than the grid size. A sparse radio map, with a larger distance between RPs, can also be adopted as long as its density is increased using LDPL models [1], neural networks [97], Voronoi tesselation [95], or other techniques. The floor plan information is used in the Tight Coupling approach to perform collision detection by checking whether the line segment between the previous and the current particle’s position has crossed a wall or obstacle, using floor plan data. When it happens, the particle’s weight is set to zero. 77
4.6. TIGHT COUPLING APPROACH Radio Map sample with normalized similarity Particles Figure 4.7: Assigning a similarity value to each particle. 4.6.4 Resampling In the Tight Coupling approach, particles with weights lower than a given threshold are removed and new particles are created from the sub-set of particles with higher weights. In order to improve heading estimation and cope with drift in the heading, which is cumulative over time, new particles have a new heading offset based on the higher weight particle that was selected to be copied. This process is described in Algorithm 3. Once the particles with lower weights are removed (line 2, Alg. 3), the algorithm enters a loop (line 3, Alg. 3) to create new particles until a total of Nparticles exists in P′. The multinomial resampling method [133] was adopted in the resampling step. In this resampling method, particles are randomly selected according to their weight, using the weight as the probability of being selected (line 5, Alg. 3). This allows particles with higher weight to be selected with higher frequency than the ones with lower weights. Since the particle’s previous weights are considered when updating the particle’s weight, the PF does not follow a standard implementation in resampling where weights are normalized to sum up to one, and all particles have the same weight of 1/N. Instead, newly created particles that are copies of particles with higher weights inherit the original particle’s weight. 78
4.6. TIGHT COUPLING APPROACH In the initialization process, a random heading offset is assigned to each particle and, as the PF starts converging, particles that were initialized with the correct heading offset will have a higher probability of being selected and copied in this process, which will allow all particles to converge into similar heading offset values. It is known that IMU sensors suffer from cumulative drift due to sensor bias, hence, the heading offset cannot be constant. In the resampling process, new particles are created with a new heading offset to compensate for drift in the heading (line 6, Alg. 3). Algorithm 3 Resampling based on the multinomial method. Input wth - weight threshold, particles with weight lower than it are removed nho - zero-mean Gaussian distributed random variable, to minimize drift and improve heading estimation Output P′- set of resampled particles 1: procedure Resample Particles 2: P′=list of particles with weights higher than wth 3: while #(P′)<Ndo (multinomial resampling) 4: //create copies of particles from P′ 5: p=particle selected from P′using its weight as probability 6: ho =p.ho +nho //define particle’s new heading offset by adding noise to particle’s original heading offset 7: p′= (p.w, p.x, p.y, p.z, p.h, ho) 8: P′=P′∪{p′}//add copied particle to the set of resampled particles 4.6.5 Vehicle Pose estimation In this approach (Tight Coupling), the weighted average of all particles positions and headings represents the vehicle’s estimated pose, as defined in Section 4.5.6. 79
4.6. TIGHT COUPLING APPROACH 4.6.6 Confidence and Dynamic Alpha A distinctive feature of the Tight Coupling approach is that it dynamically adapts the influence that Wi-Fi has over the latest particle’s weight. Larger positioning errors may occur during the first iterations after initialization because the initial position and heading are unknown. During this period, Wi-Fi should have a higher influence on particles’ weights because it will result in removing particles in areas where it is less likely for the vehicle to be at. As particles are dispersed throughout the space during the first iterations of the PF, higher weights will be attributed to particles in areas where it is more likely for the vehicle to be, and lower weights to particles that are in unlikely positions. As Wi-Fi defines how particles’ weights are updated, it also has an important role to minimize drift in the heading. The αparameter, introduced in Section 4.6.3, defines how much the particle’s weight is influenced by the Wi-Fi similarity. Based on this behavior of the PF, a confidence measure is proposed that has two purposes. First, it can be used as a reliability metric, indicating whether the estimated position is more likely to have a larger error associated. Second, it can be used to dynamically adjust the value of α. When the confidence is lower (meaning that a higher positioning error might exist), a larger value is assigned to α, thus it gives a higher influence to Wi-Fi. The dispersion of particles ϑ(in meters), defined as the average distance between the particles’ positions and the PF estimated position, is given by: ϑ=1 N N X i=1 dE(ρvehicle, pi)×wi(4.6.3) where dEdefines the Euclidean distance between the ith particle position piand the PF estimated position ρvehicle, and wirepresents the particle’s weight. The dispersion is used to define a metric of confidence, defined as: C(ϑ) = −1 rmax ϑ+ 1,0≤ϑ < rmax 0, ϑ ≥rmax (4.6.4) where rmax defines the maximum allowed dispersion (in meters) between particles. It was defined rmax = 4m, since, even for tracking, more than 4 m of radius is a large area and therefore it can be associated to significant position errors. 80
4.6. TIGHT COUPLING APPROACH The confidence was modelled after an empirical analysis of the particles’ dispersion in simulations, as described in Section 4.6.7. Upon an analysis, it was found that when the cloud of particles is smaller (lower dispersion), there is usually higher confidence associated, and when the dispersion of particles is larger (e.g., during first iterations) the positioning error tends to be higher. The confidence measure has to be a reliable indicator of whether there is a large error in position estimates, hence several experiments with synthetic data were conducted to define the appropriate function that defines the confidence. Section 4.6.7 shows the correlation between the confidence and the positioning error, demonstrating that the confidence function is reliable. Even though αcould be a direct translation of the confidence value, i.e., α= 1 −C, it would greatly impact the PF estimated position as Wi-Fi would have too much influence in particles’ weights resulting in large errors. Tests performed with simulated data have shown large positioning errors may occur when α > 0.6(see Section 4.6.7). Taking this into consideration, the following expression was used to make sure that when confidence is low, the Wi-Fi has less influence: α= 0.6−0.6×C(4.6.5) 4.6.7 Simulation Simulation experiments were performed to tune the PF parameters and define the appropriate function for α. Initially, a simulated environment was created then, synthetic data of displacement, heading and Wi-Fi measurements were generated. Finally, the proposed Tight Coupling approach was tested and its parameters were tuned to achieve the best results. Scenarios Two simulation scenarios were considered, one representing an empty building (50 ×20 m), without obstacles, and another representing a building with the same dimensions but with space restrictions (the vehicle cannot navigate in some areas). Six trajectories were considered in these experiments: 3 random 81
4.6. TIGHT COUPLING APPROACH trajectories and 3 loop trajectories. The purpose of random trajectories is to show that the PF is capable of converging, even without any space restrictions, and the purpose of loop trajectories is to show how the PF performs in a realistic scenario, with obstacles and space restrictions. Each random trajectory is defined by a random movement with a travelled distance of approx. 500 m. Each loop trajectory is defined by a cyclic movement, where the vehicle performs several laps in a pre-defined trajectory and has an average travelled distance of about 1750 m. Synthetic Data The simplest method to test positioning techniques and algorithms is through simulation, using synthetic data. The main advantage of this process is that it avoids the need to perform real-world experiments, and allows to validate the positioning solution under different conditions without additional effort. As the PF depends on data from Wi-Fi and motion sensors, it is necessary to emulate these sensors by generating synthetic data (heading, displacement and Wi-Fi) synchronized in time. To achieve that, it is assumed that the vehicle follows a trajectory from point A to point B at a constant speed of 1 m/s, then it stops for 1 s at B, before proceeding to the next point. A trajectory is composed of many points. Based on the output of sensors to be used, sampling rates of heading, displacement and Wi-Fi were defined as 20 Hz, 50 Hz and 1/2 Hz, respectively. Wi-Fi scanning in the 2.4 GHz frequency range usually takes more than 1.5 s to collect the signal strength values of APs, hence it was decided that Wi-Fi samples were generated every 2 s. A displacement sample is defined as: ds =l+nds (4.6.6) where lrepresents the true traveled distance and nds represents a zero-mean Gaussian distributed random variable that was defined as N(0,0.004 m). Each heading sample is generated as: hs =β+nhs +ϕ(4.6.7) 82
4.6. TIGHT COUPLING APPROACH where βrepresents the true absolute heading, nhs represents a zero-mean Gaussian distributed random variable, and ϕrepresents the cumulative drift defined in degrees per hour, meaning that drift increases over time, hence after one hour drift has a value of ϕdegrees. It was defined nhs=N(0,10◦) and ϕ=20◦/h. A simple model based on LDPL was used to calculate signal strength values of APs. A signal strength value is defined as: RSSI =RSSI0−10 ×η×log10(ξ) + nrssi (4.6.8) where RSSI0represents the RSSI value at 1 m distance of the AP, ηrepresents the path loss exponent, ξrepresents the distance between the AP and the point where the signal strength is estimated, and nrssi is a zero-mean Gaussian distributed random variable. It was defined RSSI0=−40 dBm, nrssi=N(0, 4dBm), and η= 2. Both radio map samples as well as Wi-Fi samples of trajectories were created using this model. The radio map of the simulation scenario comprises 20 Wi-Fi samples at each RP for a 1x1 m grid of RPs. In the definition of displacement and heading noise components (nhs and nds) and drift in the heading (ϕ) it was assumed that the sensors produced more noise than normal (industrial-grade) sensors to test the proposed solution under challenging conditions. The Wi-Fi noise component was defined considering that Wi-Fi signals have high variability in indoor environments due to multipath and other propagation effects. The work developed in this simulation tool has contributed to the Dioptra tool which is a synthetic data generator that can be used for fair comparison between IPSs. The Dioptra tool is described in Appendix B. Analysis of Results using Constant α Before modelling the confidence function, previously described in Section 4.6.6, it is necessary to study how αaffects results, using a constant αin all trajectories. The PF was run three times for each trajectory, using different random seeds. Table 4.1 (top part) shows the overall positioning error that includes position estimates of all runs of loop and random trajectories. The used error metric is the Euclidean distance between the estimated and true positions. A clear deterioration of results is observed for α≥0.6. This suggests that in the long run, the latest Wi-Fi sample should have a low influence over the particles’ weights, therefore it was defined the value of α(Equation 4.6.5) varying between 0 and 0.6 as a function of the confidence. When the confidence is 83
4.9. REAL-WORLD EXPERIMENTS ESTIMATED TRAJECTORY GROUND TRUTH TRAJECTORY PARTICLES NON-NAVIGABLE AREAS (OBSTACLES) BUILDING OUTER WALL RADIO MAP WI-FI SAMPLE HEADING DISPLAY Figure 4.9: PF visualization interface. The interface also shows several elements in a legend, including a color scale for the weights of particles, and a few markers that identify different locations, namely: reference point refers to point (0,0) in the building; ground truth represents the current ground truth position; the sensor fusion estimated position represents the current PF position estimate; and, the grid which represents the size of each square in the grid. The grid is also an additional element that allows to easily interpret the distances inside the building. 4.9 Real-world Experiments An industrial vehicle was used to perform experiments in a factory-like building to evaluate both the Loose Coupling and Tight Coupling approaches. Preliminary tests included the collection of data from sensors installed in the industrial vehicle and the construction of the radio map at the testing scenario. The real-world experiments described in this thesis were performed in two stages. First with the calibration (radio map) and test data collection, and then with the offline processing of the data, which allows to perform several experiments with the same data, and to assess the performance of each approach using 90
4.9. REAL-WORLD EXPERIMENTS different parameters. 4.9.1 Testing Scenario Experiments were conducted at the PIEP building (at the University of Minho) which is dedicated to research on plastic polymers, hence it is similar to a factory plant with large open spaces, large machinery and metal objects (injection molds), as shown in Figure 4.10. The building measures approximately 50 ×20 m and is more than 8 m high. Figure 4.10: PIEP building at University of Minho: installed APs (upper right); reference tags marking RPs (lower right). Figure 4.11 shows RPs where radio map samples were collected (grey squares), the positions and specifications of the APs present in the building (colored squares and diamonds), and the navigable areas (places where the vehicle can operate). The distance between adjacent RPs is 1 m in most cases. In order to build the radio map, 20 Wi-Fi samples were collected at each RP for a total of 178 RPs. It took about 180 minutes to build the radio map considering 40 s to collect the Wi-Fi samples at each RP and 30 s to move to the vehicle to a new RP. A set of tags affixed to the floor marking the positions of RPs allows to obtain ground truth data using a video camera pointed towards the floor where it recorded the time when the vehicle has passed each tag. 91
4.9. REAL-WORLD EXPERIMENTS Linksys LAPN600 RF transmit power: 20 dBm (802.11g @ 54 Mbps) Antenna Gain: 1.8 dBi @ 2.4GHz Antenna Config: 2x2 MIMO Cisco Aironet 1100 Series RF transmit power: 17 dBm (802.11g @ 54 Mbps) Antenna Gain: 2.2 dBi @ 2.4GHz Antenna Config: 2x dipole diversity antennas Figure 4.11: Floor plan of testing scenario: reference points (gray squares) and the installed APs according to their model, network standard and height (z). 4.9.2 Vehicle Prototype A positioning module was installed in an industrial tow truck (Toyota BT Movit TSE300), used to transport materials in factories. The integrated positioning module, shown in Figure 4.12, is composed of a Raspberry Pi Model 3B+ as well as the following sensors: four external Wi-Fi interfaces (Edimax EW7811-Un); an Xsens MTi-300 AHRS IMU to measure the heading; and, an absolute encoder (US Digital A2) to measure the displacement. The hardware diagram, represented in Figure 4.13, represents how sensors are connected to the Raspberry Pi, the communication interface of each sensor and the power supply specifications necessary to power the Raspberry Pi and the encoder sensor. The encoder sensor is attached to the back of the vehicle with a custom mount. An advantage of the positioning module is that it can be easily installed in other types of vehicles because it operates independently of the vehicle, however, it still depends on coupling the encoder to the vehicle. 92
4.9. REAL-WORLD EXPERIMENTS Figure 4.12: Industrial vehicle (tow truck) used in tests. USB USB IMU (Xsens MTi-300) RS232(USB) Encoder (US Digital A2-S-B-M) Computer (RPi 3 B+) Wi-Fi interfaces (Edimax EW-7811Un) 12 V, 100 mA 5 V, 2.5 A Power supply Figure 4.13: Hardware diagram of the positioning module of the vehicle prototype. 4.9.3 Results Three test trajectories were performed where the vehicle moves through the indoor space while a video camera records the tags as the vehicle passes by them, allowing to collect ground truth information. Two trajectories have a duration of 15 minutes and the third 7 minutes, covering distances of 305, 303 and 168 m, respectively. Positioning error reported in this section is obtained from the Euclidean distance between the ground truth position and the estimated position. The positioning error was measured at the RPs positions having a total of 225, 255, and 126 measurements for trajectories 1, 2, and 3, respectively. 93
4.9. REAL-WORLD EXPERIMENTS This section presents a comparison between results achieved with the Loose Coupling and Tight Coupling approaches. Figure 4.14 displays the DR and estimated trajectories using Loose Coupling and Tight Coupling approaches. The DR trajectories consider an initial position and heading, which is updated based on heading and displacement samples. The initial pose is unknown in the Loose Coupling and Tight Coupling trajectories. Drift in the heading is present in all DR trajectories, but the Loose Coupling and Tight Coupling approaches can compensate for the drift, as shown by the estimated trajectories. This is possible due to the techniques used to remove particles that have moved into non-navigable areas as well as the resampling methods, which update the heading offset of particles. When comparing the estimated Loose Coupling and Tight Coupling trajectories, the overall results are similar, however in trajectory 2, there is a large error in the Loose Coupling trajectory. (a) DR trajectory 1 (b) Loose Coupling trajectory 1 (c) Tight Coupling trajectory 1 (d) DR trajectory 2 (e) Loose Coupling trajectory 2 (f) Tight Coupling trajectory 2 (g) DR trajectory 3 (h) Loose Coupling trajectory 3 (i) Tight Coupling trajectory 3 Figure 4.14: Comparison between dead reckoning, Loose Coupling and Tight Coupling estimated trajectories. Figure 4.15 shows how the positioning error varies over time for both approaches. Errors are higher during the initial phase (warm-up period), while the PF is converging, which is the expected behavior. It 94
4.9. REAL-WORLD EXPERIMENTS was arbitrated that the warm-up period comprises the position estimates in the interval t∈[0 s, 100 s]. The Tight Coupling approach converges faster, has a lower maximum error and a better mean error after the warm-up period. This is achieved due to the process of updating the particles’ weights and resampling, which rapidly removes particles from improbable areas. The floor plan information also helps in reducing error, as it allows to remove particles that hit walls or obstacles. 0 100 200 300 400 500 600 700 800 900 Time (s) 0 1 2 3 4 Error (m) LC TC (a) Trajectory 1 0 100 200 300 400 500 600 700 800 900 1000 Time (s) 0 2 4 6 8 10 12 Error (m) LC TC (b) Trajectory 2 0 100 200 300 400 500 Time (s) 0 1 2 3 4 Error (m) LC TC (c) Trajectory 3 Figure 4.15: Error over time of each trajectory using the Loose Coupling (LC) and the Tight Coupling (TC). Results of all trajectories are aggregated and presented in Table 4.4. It shows a comparison between the Loose Coupling, the Tight Coupling and pure Wi-Fi fingerprinting (k-NN with k=5). The Tight Coupling approach has an improvement of over 65% in the maximum error (from 12.26 m to 4.00 m) and over 20% in the third quartile (from 1.40 m to 1.08 m), in comparison to the Loose Coupling approach. After the warm-up period, the Tight Coupling approach also has improved results, especially in the maximum error. Table 4.4: Overall positioning results (in meters) of experiments with industrial vehicle. Wi-Fi FP Loose coupling approach Tight coupling approach Overall Overall AW Overall AW Mean 2.15 1.03 0.85 0.81 0.71 Median 1.85 0.68 0.66 0.67 0.64 P75th 2.97 1.40 1.23 1.08 1.00 P95th 5.39 2.46 2.00 1.72 1.48 P99th 7.48 6.87 2.33 3.01 1.70 Max 12.24 12.26 2.88 4.00 2.06 FP – Fingerprinting; AW – After warm-up. Figure 4.16 shows the CDF curves of the Tight Coupling, Loose Coupling, and Wi-Fi fingerprinting for the experiments with the industrial vehicle. Both sensor fusion approaches (Tight Coupling and Loose Coupling) benefit from the motion sensors for improved tracking of the vehicle. This justifies why these approaches 95
4.10. SUMMARY have improved performance over Wi-Fi fingerprinting. The CDF curves of the Tight Coupling and Loose Coupling approaches are very similar for probabilities below 0.6, but after that point, there is a clear improvement of the Tight Coupling over the Loose Coupling one. The curves after the warm-up are the ones that better represent the positioning performance in a realistic scenario because it is expected to be running in vehicles for long periods, in which the larger errors in the beginning (while the PF is converging) are less relevant. In positioning applications with demanding requirements such as high accuracy and low maximum error, the performance in the last quartile is very important. The Tight Coupling approach is better suited for indoor vehicle tracking because it has a lower maximum error and an improved positioning performance over the Loose Coupling approach. The Tight Coupling approach achieved 1.0 m and 1.70 m in the 75th and 99th percentiles, respectively, showing that it can locate industrial vehicles accurately with a low maximum error. 0 2 4 6 8 Error (m) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Probability Loose Coupling Tight Coupling Wi-Fi fingerprinting Loose Coupling (after warm-up) Tight Coupling (after warm-up) Figure 4.16: CDF of the positioning error comparing the Loose Coupling and Tight Coupling approaches with Wi-Fi fingerprinting. 4.10 Summary Two sensor fusion approaches for indoor vehicle tracking using a PF were proposed in this chapter. The Tight Coupling approach performs the sensor fusion at the measurement level, whilst the Loose Coupling approach performs the sensory fusion at the position level because it considers a Wi-Fi position estimate 96
4.10. SUMMARY in its sensor fusion algorithm. In the Loose Coupling approach, a Wi-Fi position estimate is combined with data from motion sensors in the fusion algorithm. In the Tight Coupling approach, a Wi-Fi sample is merged with data from motion sensors, using the Wi-Fi similarity to update the particles’ weights. Instead of using just one Wi-Fi interface to obtain Wi-Fi samples, a common practice in previous works, in this work multiple Wi-Fi interfaces are used to obtain better RSSI measurements and reduce noise [28]. Another distinctive aspect of these sensor fusion implementations is that the Loose Coupling approach works without requiring a floor plan, and the Tight Coupling approach supports floor plans and has a measure to tell whether the estimated position is reliable. Due to the distinct features of each implementation, a detailed description of the PF processes (particles initialization, update weights and resampling) was presented for both implementations. Simulations were conducted to tune some parameters of the Tight Coupling implementation, and to define the appropriate confidence function that is used to dynamically adjust the αparameter when there might exist a larger error in position estimates. The confidence metric has an important role in vehicle tracking, as it provides information regarding the reliability of the system. When confidence is low, there is a strong possibility that the estimated position is wrong, and has a large error associated. Conversely, when it is high, the estimated position is very likely to be near the true position of the vehicle. Chronologically, the Loose Coupling approach was implemented first, and the Tight Coupling approach was implemented later aiming to overcome some limitations of the Loose Coupling approach. In addition to the differences in the way Wi-Fi information is integrated into the sensor fusion algorithm, the Tight Coupling implementation also included other features, such as the integration of floor plans in the PF, a new resampling method, and a confidence metric. Real-world experiments were conducted in a factory-like building, where an industrial tow truck with a positioning module collected sensor data in three test trajectories. The positioning results of both approaches were compared against each other and also with Wi-Fi fingerprinting. Adding the motion sensors enables the tracking of the vehicles with much higher accuracy, as shown by the results achieved with both sensor fusion approaches in comparison to the Wi-Fi fingerprinting results. These sensor fusion approaches overcome some of the main limitations of Wi-Fi fingerprinting since they drastically reduce the errors in the last percentile and allow continuous tracking of the vehicle with a high sample frequency. Overall, the Tight Coupling approach has better positioning performance than the Loose Coupling approach mainly 97
4.10. SUMMARY because it uses all available information in the sensor fusion method, it dynamically adjusts to conditions based on the confidence metric, and it takes advantage of the floor plan of the building to correct the estimated trajectory. These improvements over the Loose Coupling approach translate into better performance, especially in the maximum error. Table 4.5 shows an overview of the proposed approaches and several positioning systems for the localization of industrial vehicles, mobile robots, and pedestrians. This overview presents each system according to its technology, localization technique, and reported accuracy (mean error). An overall mean error of 0.81 m was achieved with the Tight Coupling approach, which performs better than the Loose Coupling approach (1.03 m mean error) using the same sensors. Regarding the other positioning systems, the results of both approaches are in line with systems with similar technologies based on PFs. The main contributions of this work are published in [14] and [11], detailing the Loose Coupling and Tight Coupling approaches, respectively. Table 4.5: Overview of the proposed approaches in comparison to similar systems. Solution Technology Localization Technique Mean Error (m) [75] UWB + GPS PF 0.16 TC approach Wi-Fi + MS PF w/ TC 0.81 LC approach Wi-Fi + MS PF w/ W-FP 1.03 [3] Wi-Fi + odometry + LiDAR PF 1.20 [128] Wi-Fi + PDR PF 1.20 [134] Wi-Fi + IMU + FM transmitters PF w/ W-FP 2.11 [80] Wi-Fi W-FP 2.25 PF – Particle Filter; MS – Motion Sensors (IMU and encoder); W-FP – Wi-Fi fingerprinting; LC – Loose Coupling; TC – Tight Coupling. The participation in the IPIN 2019 Competition (Track 3) [9] with the UMINHO team has contributed to getting an understanding of sensor fusion techniques based on Wi-Fi fingerprinting and PDR. The adopted 98
4.10. SUMMARY approach used Wi-Fi fingerprinting combined with PDR and FastGraph [135] to estimate the trajectory of a pedestrian. Although IPIN’s Track 3 is based on offline data collected from smartphone’s sensors, it revealed challenges related to indoor vehicle tracking, for instance, the movement model of vehicles differs from pedestrians, the types of sensors that can be used in vehicles and how different the sensor fusion algorithms may depend on these aspects. The UMINHO team was 7th out of 12 teams, thus showing that the proposed system would need to be improved to achieve a better classification. After the participation in the 2019 IPIN Competition [9], in 2020, the UMINHO team participated with a new approach inspired by the Loose Coupling implementation described in this chapter. The proposed system [10] used a PF to perform sensor fusion of Wi-Fi fingerprinting and PDR data which integrated the building’s floor plan to correct the trajectory. The UMINHO’s team classification improved from 7th in 2019 [9], to 5th in 2020 [10]. With the ability to accurately track industrial vehicles, they can be explored for building/maintaining radio maps. When the position of the vehicle is reliable, it can be associated with the Wi-Fi samples that are being collected while vehicles navigate through the industrial environment. In the next chapter, a self-healing radio maps solution based on the Tight Coupling approach is described. 99
5.4. ENHANCED PARTICLE FILTER 5.4.1 Initialization In industrial environments, vehicles are usually parked in known positions (e.g. charging stations or dedicated parking spots) and start their operation from a known pose (position ρini and heading hini). This information is used to initialize particles around the vehicle’s position. As an advantage, the large maximum errors usually found during the first iterations of the PF are eliminated, and new Wi-Fi samples can be added to the vRM from the start. Particles are uniformly distributed within a radius rof a given initial position ρini, have an initial heading defined as hini, and an initial heading offset defined as ho =U(0,nho). As a result, each particle has a unique position and heading offset. 5.4.2 Update Weights As previously explained, the purpose of the method to update particles’ weights is to assign higher weights to particles that are closer to the real position and lower weights are assigned to particles that are probably further away from the real position. The Wi-Fi information available on the radio map is essential to determine where the vehicle is located. Although it does not provide an accurate position estimate, comparing a Wi-Fi sample with the ones in the radio map allows to identify the areas where the vehicle is more likely to be. In this version of the PF, it is necessary to refine the method to update the particles’ weights. Contrarily to the original Tight Coupling implementation, where a dense radio map was considered, in this implementation, there is a high probability that the radio map is sparse or empty upon the PF initialization. This poses a challenge because in the Tight Coupling implementation the particles’ weights were obtained based on the similarity of the Wi-Fi sample nearest to the particle’s position and there was always a radio map Wi-Fi sample close to the particle’s position. To overcome this issue, it is proposed the addition of the weighted k-NN algorithm to estimate the normalized similarity at the position of each particle, based on the radio map Wi-Fi samples nearer the particle’s position. Instead of considering only the Wi-Fi sample that is closer to the particle, this approach considers several Wi-Fi samples closer to the particle. The distances between the particle and the positions of each radio map Wi-Fi sample are converted into weights in the algorithm so that Wi-Fi samples that are closer to the particle’s position have more influence on the 106
5.4. ENHANCED PARTICLE FILTER estimated similarity. As a result, the estimated normalized similarity is more reliable. As a consequence, this approach is more complex and requires more computing power. In the following, a brief description of this method is made. In the first step of this process, the normalized similarity between the Wi-Fi sample and the radio map Wi-Fi samples is computed, as previously described in Section 4.6.3. Then, the normalized similarity at the position of each particle is obtained using the weighted k-NN algorithm, as described in Algorithm 4. First, the Euclidean distances between the particle’s position and the radio map Wi-Fi samples are calculated (line 2). Second, these distances are sorted in ascending order (line 3). Third, the distances are converted into weights using the Inverse Distance Weighted (IDW) method (lines 5 and 6), which assigns higher weights to shorter distances and lower weights to larger distances. Fourth, the estimated similarity is obtained using the weighted average of the kuw Wi-Fi samples closer to the particle position (lines 7 and 8). Algorithm 4 Estimate particle normalized similarity. Input kuw - parameter of the weighted k-NN algorithm pparticle WSρset of Wi-Fi samples positions Snset of Wi-Fi samples normalized similarities Output ˆsnestimated similarity at particle’s position 1: procedure Estimate Particle normalized Similarity 2: D=dE(p, WSρ)//obtain set of Euclidean distances between the particle’s position and each Wi-Fi sample 3: D=sort(D) 4: W={}//initialize set of weights 5: for d∈Ddo 6: W=W ∪1 d2//convert distance into weight using IDW and add it to the set of weights 7: ˆsn=∑kuw i=1 Wi×Si n ∑kuw i=1 Wi//compute the normalized similarity using the weighted k-NN algorithm 8: return ˆsn Figure 5.3 shows an example of the estimated similarities at the positions of particles using this approach. The 5 particles refer to the state of the PF at a given moment. The 3 radio map samples show the normalized similarity after the collection of a new Wi-Fi sample. The estimated similarity of each particle using the algorithm above is shown at the position of each particle, as expected, each Wi-Fi sample of the 107
5.4. ENHANCED PARTICLE FILTER radio map contributes to the estimated similarity, being that the nearest Wi-Fi samples have more influence over the estimated value. The kuw parameter defines the number of nearest Wi-Fi samples considered in the algorithm. Once the particle’s normalized similarity is obtained, its weight is updated considering the same expression used in the Tight Coupling approach, defined by Equation 4.6.2. Radio Map sample with normalized similarity Particle with estimated similarity Figure 5.3: Estimated similarity of each particle. 5.4.3 Dynamic Alpha As previously introduced in Section 4.6.6, the αparameter allows to define how much the particle’s weight is influenced by the latest Wi-Fi sample. In the original Tight Coupling approach the expression α= 0.6−0.6×Cwas defined based on simulation results. In this version, the expression that defines αwas refined so that αvaries according to the distance between the particle and the nearest radio map Wi-Fi sample, being that when the distance is small, αis larger and vice versa. The rationale is that particles far from any radio map Wi-Fi sample are in positions not yet mapped and, therefore, their weights should not be significantly affected by the latest Wi-Fi sample. This allows the vehicles to map the space in areas where it has not been yet, without having a negative impact on the particles’ weights that would cause them to be removed in resampling. Figure 5.4 shows how αis obtained based on the distance (d) between the particle and the nearest radio map Wi-Fi sample. When the particle is close to the nearest radio map Wi-Fi sample (d≤1m), αis assigned αmax. For 1m<d<dmax, a linear function is considered where αdecreases as dincreases. When d≥dmax,αis assigned the αmin value. 108
5.5. VEHICLE (SELF-HEALING) RADIO MAP 1distance (m) dmax Figure 5.4: Dynamic αbased on distance between particle and nearest radio map Wi-Fi sample. 5.4.4 Other Methods The particles movement model, the resampling method, the confidence metric, and the method to obtain an estimated vehicle pose, are the same as the ones of the PF based on Tight Coupling, described in Section 4.6. 5.5 Vehicle (Self-healing) Radio Map Vehicles contribute to build and maintain the vRM by adding annotated Wi-Fi samples to the vRM whenever the confidence of the position estimates is high enough. The vRM is different from a traditional radio map because Wi-Fi samples were collected automatically and have an associated error, as opposed to a manually created radio map where Wi-Fi samples have zero error. The main advantages of vRMs are as follows: no effort to build the radio map as it is an automatic process to map the radio environment; vRMs are selfhealing since they overcome radio map degradation and adapt to the changes in the radio environment automatically; vRMs can be used for plain Wi-Fi fingerprinting-based positioning in other applications. Upon receiving a new Wi-Fi sample, the vehicle checks if the confidence is high enough before deciding to add it to the vRM. When the confidence is equal or greater than a given threshold (Cth), the latest position estimate and confidence are assigned to the Wi-Fi sample, creating a vehicle Wi-Fi sample, defined as: vws = (ρvehicle, ws, C)(5.5.1) where ws represents the signal strength values of detected APs, ρvehicle represents the current position 109
5.6. REAL-WORLD EXPERIMENTS of the vehicle and Crepresents the current confidence. The quality of annotated Wi-Fi samples depends on the positioning performance of the PF. Higher precision and accuracy lead to a better vRM. Being part of the radio map (considering that the full radio map is composed of the iRM+vRM), the vRM has a significant role in the method to update particles weights, given that it evolves dynamically as new samples are annotated and added. Newly annotated Wi-Fi samples are only added to the vRM after a 120 s time delay, in order to prevent a dragging effect that would cause the estimated trajectory to be delayed with respect to the true trajectory of the vehicle. Without this delay, the latest Wi-Fi samples (collected moments before) would be considered in the update weights method, which would cause the particles to have a high similarity with those Wi-Fi samples. 5.6 Real-world Experiments Several experiments were conducted in the real-world to evaluate the enhanced PF. The purpose of these experiments is to assess whether it is possible to accurately track industrial vehicles to build/maintain self-healing radio maps under different floor plan scenarios with different radio map configurations. Conducted experiments included four phases. First, the development of a mobile unit equipped with several sensors. Second, the setup at the testing space (Figure 5.5) with the mapping of RPs and the collection of Wi-Fi samples for the iRM used in some experiments. Third, collecting the test data. Fourth, offline processing of the collected data. 110
5.6. REAL-WORLD EXPERIMENTS Figure 5.5: Setup at the PIEP building: mapping of the RPs (lower left); one of the installed APs (lower center); collection of Wi-Fi samples for the iRM (lower right). 5.6.1 Setup and Mobile Unit Prototype Real-world experiments took place at the PIEP building, already described in Section 4.9.1. The setup process is depicted in Figure 5.5, showing the building, the process in the mapping of RPs, the installation of APs, and the site survey to collect Wi-Fi samples. The positions of APs available in the building are represented by the points in the salmon color in Figure 5.2. The iRM, necessary in experiments that consider the full radio map (iRM+vRM), is a sparse radio map with ≈5 m between RPs (blue points in Figure 5.2). A site survey (Figure 5.5 (lower right)) was conducted to build the iRM with the collection of 40 Wi-Fi samples per RP, 10 in each direction (up, down, left, and right). Since the industrial vehicle used in previous experiments was not available, test data was collected 111
5.6. REAL-WORLD EXPERIMENTS using a mobile unit, a manually pushed trolley to emulate an industrial vehicle (Figure 5.6). IMU BNO055 RPi 3B+ Wheel encoder Wi-Fi interface Figure 5.6: Mobile unit prototype with installed sensors. The mobile unit is equipped with the positioning module, composed of: a Raspberry Pi Model 3B+; four external Wi-Fi interfaces (Edimax EW7811-Un); two IMUs (Adafruit BNO055) to measure the heading; and, an absolute encoder (US Digital A2) to measure the displacement. The Raspberry Pi is used as a computer to collect data from sensors. As previously stated, using multiple Wi-Fi interfaces leads to improvements in the positioning performance [28], therefore, this method was adopted to improve the accuracy of the proposed solution. Figure 5.7 represents how sensors are connected to the Raspberry Pi, the communication interface of each sensor and the power supply specifications necessary to power the Raspberry Pi and the encoder sensor. The approximate retail cost of this prototype is 421 econsidering: Raspberry Pi (35 e), encoder (255 e), IMUs (2x 30 e), Wi-Fi interfaces (4x 9 e), 12V battery to power encoder (15 e), 10,000 mAh PowerBank to power the Raspberry Pi (20 e). Prices were gathered from retailers web sites. 112
5.6. REAL-WORLD EXPERIMENTS USB I2C IMUs (Adafruit BNO055) RS232(USB) Encoder (US Digital A2-S-B-M) Computer (RPi 3 B+) Wi-Fi interfaces (Edimax EW-7811Un) 12 V, 100 mA 5 V, 2.5 A Power supply Figure 5.7: Hardware diagram of the positioning module of the mobile unit. 5.6.2 Low-cost IMU In previous experiments (see Section 4.9), industrial-grade IMUs (Xsens MTi-300 AHRS) were used for obtaining the heading of the vehicles. Although these sensors are reliable and less prone to drift and magnetic perturbations, they are very expensive (each costing around 2900 e), making the IMU the most expensive part of the positioning module. Using lower-cost IMUs allows to drastically reduce the cost of the positioning module, but as a consequence, these sensors are noisier and less accurate than industrialgrade IMUs. In these experiments, the Adafruit BNO055 IMU was used as a substitute for the industrialgrade IMUs used in previous experiments. This sensor was chosen for several reasons. First, it is supported by the Raspberry Pi, therefore it can be easily integrated into this solution. Second, it is cheap and easily found in online stores. Third, it performs in-chip data fusion capable of producing absolute orientation in quaternion or Euler angle formats at an update rate up to 100 Hz. Fourth, it allows to collect raw measurements from the accelerometer, gyroscope and magnetometer which can be used in a sensor fusion algorithm to estimate the sensor’s orientation. Fifth, the research community has revealed an increasing interest in this sensor for positioning and navigation, especially in recent years as shown by a search in the Scopus database with the query ”(ALL(bno055) AND TITLE-ABS-KEY( positio* OR navigat* ))”. Overall the Adafruit BNO055 IMU is a great sensor for research due to it being low-cost and simple to work with. A Madgwick filter [122] implementation was tested to perform sensor fusion from the low-cost 113
5.6. REAL-WORLD EXPERIMENTS IMU raw measurements, but the obtained results were no better than the ones provided by the integrated filter, which had less noise and drift than the results achieved with the Madgwick filter, therefore the integrated filter of the IMU was used instead. In performed experiments, the Adafruit BNO055 sensors were configured with the NDOF operation mode with 50 Hz data output rate. With the NDOF mode10, the absolute orientation data is calculated from the fusion of the accelerometer, gyroscope and magnetometer. The main advantages of combining all three sensors are a fast calculation, resulting in high output data rate, and high robustness from magnetic field distortions. 5.6.3 Particle Filter Parameters Table 5.1 lists the parameters used in performed experiments. The same parameters were used in all experiments in order to assess the versatility of the PF with the same parameters in different floor plan scenarios and radio map configurations. Table 5.1: Particle filter parameters. Param Nr ndnθnho Value 3000 1 m N(0, 0.012 m) N(0, 1◦) N(0, 8◦) Param kuw αmin αmax dmax wth Cth Value 3000 0.05 0.3 2 m 0.2 0.75 5.6.4 Results The mobile unit was manually pushed in five trajectories at a speed of ≈1 m/s, to construct the vRM. Test data was collected from the mobile unit’s sensors and served as input for the proposed PF. Annotated Wi-Fi samples accumulated in the vRM and used from one trajectory to the next one. Therefore, the vRM used in the last trajectory includes all Wi-Fi samples that were annotated in previous trajectories. The positioning error reported in this section was obtained by comparing estimated positions with ground truth data collected by a video camera mounted in the mobile unit. The video camera recorded 10https://www.bosch-sensortec.com/products/smart-sensors/bno055/ 114
5.6. REAL-WORLD EXPERIMENTS tags affixed to the floor (in known positions) when the mobile unit passes by them. The error metric is the Euclidean distance between the position estimates and the ground truth. The PF was run for 9 experiments considering the combinations of 3 scenarios (cFP, pFP, and nFP) with 3 radio map configurations (VDR, vRM, and fRM). The PF was run three times for each trajectory, and the results include position estimates of all runs. The positioning results of performed experiments are reported in Table 5.2. Table 5.2: Positioning results for different scenarios and radio map configurations (in meters). cFP pFP nFP VDR vRM fRM VDR vRM fRM VDR vRM fRM Mean 0.88 0.88 0.67 1.45 0.90 0.62 3.92 1.91 0.63 P75th 1.17 1.20 0.88 1.96 1.11 0.88 6.03 2.70 0.87 P99th 2.61 2.38 1.71 3.81 2.76 1.54 10.92 6.06 1.64 Max 2.89 4.27 2.34 3.84 3.90 2.12 24.70 7.56 3.53 cFP – complete Floor Plan; pFP – partial Floor Plan; nFP – no Floor Plan; VDR – vehicle Dead Reckoning; vRM – vehicle Radio Map; fRM – full Radio Map. As expected, the scenario with better positioning results is the one that uses the complete Floor Plan (cFP). In this scenario, the floor plan allows to remove particles that hit walls or obstacles improving estimates. In addition, this scenario is the one that better performs with VDR, showing that an iRM is not required to achieve good results. The scenario with the partial Floor Plan (pFP) shows gradual improvements in the positioning accuracy as a richer radio map is used. As expected, the worst results are observed with VDR, then the configuration with vRM has improvements below the P99th, showing that this scenario benefits from Wi-Fi samples that are added to the radio map. This is particularly important in open areas that have no constrains from the floor plan, where drift in the heading can significantly affect the estimated trajectory. The scenario with no Floor Plan (nFP) is the most challenging, showing large errors with VDR. This scenario has significant improvements in the vRM configuration because of the annotated Wi-Fi samples. To annotate Wi-Fi samples with higher accuracy, it is necessary an iRM, because it allows to keep particles within the neighborhood of RPs which minimizes the maximum error. All three scenarios (cFP, pFP and nFP) achieve the best results with the fRM configuration because 115
5.6. REAL-WORLD EXPERIMENTS the particle’s weights are updated, a limited number of Wi-Fi samples are sampled from the radio map. Wi-Fi samples are selected based on a uniform distribution, therefore each Wi-Fi sample has the same probability of being selected resulting in a set of Wi-Fi samples that are uniformly dispersed through space. The kuw used in these experiments was the same as the number of Wi-Fi samples selected. Table 5.6 contains the results of the nFP+fRM scenario using simple random sampling to select a limited set of Wi-Fi samples to be used when updating the particles’ weights. This scenario was chosen because it is one of the most challenging scenarios, as it does not rely on the floor plan, and it is expected even better performance if the other scenarios were considered. Table 5.6: Positioning results of nFP+fRM scenario using simple random sampling to limit the number of Wi-Fi samples (errors in meters). No. of Wi-Fi Samples 25 50 100 150 200 300 400 Mean 2.68 2.03 0.89 0.71 0.63 0.63 0.63 P75th 4.15 3.05 1.02 0.99 0.89 0.87 0.86 P99th 10.43 5.87 4.49 2.53 1.71 1.66 1.69 Max 15.98 8.07 6.23 5.89 4.37 3.74 3.62 Table 5.6 shows a clear improvement in the positioning performance is observed as the number of Wi-Fi samples increases. By limiting the number of Wi-Fi samples to 200 or higher, it is possible to achieve similar results to the ones that consider all Wi-Fi samples, as reported in Table 5.2. When the number of selected Wi-Fi samples is larger than 200, results seem to stabilize, and the main difference is observed in the maximum error which tends to decrease as the number of Wi-Fi samples increases. From 200 to 300 Wi-Fi samples, a major improvement is observed in the maximum error. From 300 to 400, no significant improvements are observed. Although the maximum error keeps improving when the number of Wi-Fi samples is larger than 200, the P99th is stabilized, meaning that the maximum error can be attributed to a rare occurrence, therefore, it seems that the cost-benefit between the computational effort and the positioning performance is best when 200 Wi-Fi samples are selected for updating particles’ weights. Furthermore, this shows that the computational complexity will not be a hindrance to the positioning system. A density of 200 WS/1000 m2= 0.2WS/m2is enough to ensure good positioning results because optimal positioning results were achieved with 200 Wi-Fi samples for a building with an area of about 122
5.6. REAL-WORLD EXPERIMENTS 1000 m2(50x20 m). A similar performance is expected in larger buildings as long as the same density of Wi-Fi samples is ensured in the process to update particles’ weights. Vehicle Radio Map vs Traditional Radio Map As previously mentioned, Wi-Fi radio maps can be explored for many applications including the localization of people or assets in industrial environments. Therefore, vRMs can be of the utmost importance to easily support plain Wi-Fi fingerprinting applications. The only requirement is that a Wi-Fi-enabled device is used to allow indoor localization. To evaluate how the vRM performs in a Wi-Fi fingerprinting scenario, the positioning performance was compared between the iRM and the vRM obtained with plain Wi-Fi fingerprinting using k-NN with k= 5. This experiment was performed for the three floor plan scenarios with the vRM configuration, namely, cFP+vRM, pFP+vRM and nFP+vRM configurations. In this experiment, the Wi-Fi samples from trajectory 5 (the last one of the set of 5) were used as test data, and the Wi-Fi samples that were annotated in the previous 4 trajectories were used as the vRM. Therefore, the considered vRMs are composed of a total of 1401, 1216, and 247 Wi-Fi samples in cFP+vRM, pFP+vRM and nFP+vRM configurations, respectively. The iRM is a sparse radio map, composed of 840 Wi-Fi samples with 40 samples collected at each of the 21 RPs, as depicted in Figure 5.2. Table 5.7 presents the plain Wi-Fi fingerprinting results using the vRM of each scenario. As expected, the results of cFP and pFP are better than the results of the nFP, because they have more Wi-Fi samples and have lower positioning error associated. Results of cFP and pFP are also better than the ones achieved with the iRM. The results achieved with the iRM are slightly worse than the ones achieved with the vRMs in cFP and pFP scenarios, which is expected because the vRMs have more samples with a lower distance between neighboring samples. Worse results are observed in the nFP scenario because there is an area of the building without any annotated Wi-Fi samples. In this configuration (nFP+vRM), there is no floor plan to assist in removing particles and there is no iRM, therefore it is not able to annotate Wi-Fi samples in some areas because there is not enough confidence in position estimates. As previously stated, in order to properly construct a vRM in a scenario without a floor plan, it is necessary to use the iRM. For 123
5.6. REAL-WORLD EXPERIMENTS that configuration (nFP+fRM), Wi-Fi fingerprinting results are on par with the ones achieved with the other configurations with a mean error of 1.42 m, P99th of 5.54 m and a maximum error of 6.28 m. It is worth noting that these Wi-Fi fingerprinting results are over-optimistic, probably because the training and test data were collected on the same day, and the iRM was collected on the previous day. Usually, Wi-Fi fingerprinting achieves a mean positioning error between 2 and 4 m with a presence of sporadic large errors higher than 10 m [114]. Table 5.7: Plain Wi-Fi fingerprinting results (in meters) of each scenario in comparison to an iRM. cFP+vRM pFP+vRM nFP+vRM iRM (grid 5x5m) Mean 1.32 1.24 6.66 1.50 P75th 1.69 1.59 8.34 2.24 P99th 3.57 4.18 33.93 5.40 Max 4.98 6.04 34.31 7.51 cFP – complete FP; pFP – partial FP; nFP – no FP; vRM – vehicle RM; iRM – initial RM. Comparison with Similar Systems In Table 5.8 a comparison is made between this approach and other solutions for the construction and maintenance of radio maps. It compares the techniques for localization, the sensors used, if the system depends on the user’s feedback, whether a radio map is obtained from a site survey or interpolation, and the performance of Wi-Fi fingerprinting achieved. The proposed system achieved the best Wi-Fi fingerprinting results with the automatically built vRMs. The advantage of using dedicated sensors (i.e., IMU and wheel encoder) to track the vehicle’s movement is that it leads to lower error in annotated Wi-Fi samples, which consequently leads to better Wi-Fi fingerprinting results. Using Wi-Fi fingerprinting, the proposed solution achieved 1.32 m, 1.24 m and 1.42 m mean error in cFP+vRM, pFP+vRM and nFP+fRM scenarios, respectively. In [85] an unmanned ground vehicle is used to map the space and collect SOP from Wi-Fi, magnetometer and light sensors. It achieved a mean error of 1.89 m with Wi-Fi fingerprinting using the automatically built radio map. This solution is more expensive than the proposed one, as it requires several sensors, including a LiDAR. The advantages of this solution are that it does not depend on the initial pose of the device and the floor plan, since it uses the LiDAR 124
5.6. REAL-WORLD EXPERIMENTS Table 5.8: Comparison with similar systems for the construction of radio maps. Solution Technology Sensor(s) / Device(s) UF* Type Initial RM Mean Error (m) Proposed solution Particle Filter IMU, wheel encoder, Wi-Fi No Site survey No No Yes 1.32 (cFP+vRM) 1.24 (pFP+vRM) 1.43 (nFP+fRM) [85] IMLE LiDAR, magnetometer, light sensor, Wi-Fi No Site survey No 1.89 [42] Visual Odometry + Particle Filter Kinect camera, sonars, wheel encoder No Site survey No 5.2 [6] GP-LVM Laptop (Wi-Fi) No Interpolation No 3.97 [82] Wi-Fi fingerprinting Smartphone (Wi-Fi) Yes Site survey Yes Between 2 and 4 m [81] PDR Smartphone (Wi- Fi+IMU) No Site survey No 6.9 *UF – User feedback; cFP – complete FP; pFP – partial FP; nFP – no FP; vRM – vehicle RM; fRM – full RM. sensor to generate the map of the space. In [42], the mobile robot equipped with sensors is capable of locating itself using DR and QR codes which are observed by the camera, thus it does not need an iRM. As a disadvantage, it explores several sensors such as sonars, a wheel encoder, and a camera that are more expensive than the ones used in our system. In [6] Gaussian process latent variable models are applied to estimate the locations of Wi-Fi samples collected by a person walking through a building. This process allows to estimate signal strength levels in the building similar to the ones obtained in an iRM. Systems that depend on users’ feedback [21, 82], are susceptible to malicious users that can feed the system with wrong information hindering performance and they also require the iRM. The solution described in this chapter does not depend on users’ feedback since it self-assesses whether the estimated position is reliable enough in order to annotate a Wi-Fi sample, besides, it does depend on a radio map to function, but it is basic with low density. Without any training (calibration) cost and only relying on PDR, the system in [81] depends on users’ daily routine to build radio maps, achieving an average error of 6.9 m with Wi-Fi fingerprinting. 125
5.7. RADIO MAP CONSTRUCTION AND MAINTENANCE - EFFORT 5.7 Radio Map Construction and Maintenance - effort As previously mentioned, the construction and maintenance of radio maps is probably the main disadvantage of Wi-Fi-based indoor positioning solutions since it requires time and effort to collect Wi-Fi samples. There are some techniques for optimizing or automating the radio map construction process (presented in Section 2.4), however many systems still use manually collected radio maps. This section compares the time and effort it takes to manually construct a building’s radio map against the time it takes to construct the radio map using the solution presented in this chapter, considering the building used in the experiments as an example. The first step in the construction of a radio map consists of mapping RPs by measuring and determining the coordinates of each RP. 21 RPs were mapped at the PIEP building for a grid of ≈5 m between neighbor RPs. Then, the surveying process comprises the collection of Wi-Fi samples at the position of each RP. It is important to highlight that many IPSs based on radio maps use denser grids with much more RPs, therefore they take a longer time to complete. It took 5 man/hours to map RPs at PIEP, and 0.6 man/hours to survey the building. The site survey process considered 21 RPs ∗80 s= 28 min, with the collection of 40 Wi-Fi samples per RP (time interval between consecutive Wi-Fi samples is around 2 s), additional time is necessary to move from the one RP to the next. The total time spent on the manual construction of the iRM at the PIEP building is 5.6 man/hours, although it is important to note that the duration of these tasks is proportional to the building size because larger buildings require more RPs. In the performed experiments, it took only 53 minutes (accumulated run time of all trajectories) to obtain the vRM of the building with zero effort because it takes advantage of vehicles that are already operating in the factory to map the space. Contrarily to radio maps that have to be manually updated, this solution automatically keeps the radio map up to date without additional effort, thus it saves costs in future maintenance. As a drawback, this solution depends on the vehicles operating indoors, therefore, they can only map the areas they visit while working. 126
5.8. SUMMARY 5.8 Summary In this chapter, an enhanced PF based on Tight Coupling was proposed for the automatic building and maintenance of radio maps. This version of the PF explores a new way of updating particles weights by estimating the Wi-Fi similarity at the position of each particle, improving the previous PF version introduced in Section 4.6. The dynamic alpha was also refined to allow a better functioning of the PF in different scenarios. This approach is self-healing since it overcomes radio map degradation by automatically building and maintaining radio maps over time. The IPS deployment effort is significantly reduced because this solution does not depend on any calibration, installation of infrastructure, or human effort to build the radio map. In addition, it is flexible and dynamic since it works in scenarios without an initial Radio Map given that a floor plan is provided, and it also works in scenarios where the floor plan information is missing (no Floor Plan or partial Floor Plan), given that an initial Radio Map with just a few RPs is provided. In comparison to the industrial vehicle used in experiments described in the previous chapter, the mobile unit prototype used to evaluate this solution is low-cost by replacing the industrial-grade IMUs with the low-cost Adafruit BNO055 IMU sensors. Conducted experiments have shown that this solution performs better than more expensive systems based on LiDAR or sonar sensors. Wi-Fi fingerprinting results revealed that vRMs perform better than a traditional radio map (grid of ≈5 m). VRMs can be used to locate people and improve safety, essential in an industrial context where vehicles and people interact frequently, as well as to locate assets, enhance operations and logistics processes by tracking vehicles. For instance, tracking vehicles allows to gather data that can be used to optimize routes and assets’ locations to improve efficiency. The main contributions of the research presented in this chapter are published in [12]. 127
Chapter 6 Conclusions and Future Work This chapter closes this work. It comprises a summary of the main contributions, the main learnings from this work and the future work topics that are of interest for this line of research. 6.1 Summary of the Main Contributions The overall objective of this work was to develop an IPS for industrial vehicles capable to overcome the radio map degradation in industrial environments. First, an analysis of the long-term radio map degradation was made to assess how radio maps degrade over time and what causes it. Second, a positioning solution was developed and iteratively refined to improve several aspects of the sensor fusion algorithm, aiming to achieve accurate localization and tracking of vehicles, and also a means of building and maintaining Wi-Fi radio maps in industrial environments. The main contributions from this thesis are summarized next. The first contribution is the collection and analysis of long-term datasets to measure and quantify the radio map degradation using two metrics, the mean positioning error with Wi-Fi fingerprinting and the Radio Map Degradation Ratio (RMDR). This study provided answers to several challenges, namely: being able to determine whether the radio map degrades over time; quantifying the degradation over time; and, identifying which events cause significant radio map degradation. The second contribution is the IPS based on Loose Coupling and Tight Coupling for industrial vehicles. These approaches are distinct in the way they perform the sensor fusion. The Loose Coupling approach 128
6.2. CONCLUSIONS merged a position estimate from Wi-Fi fingerprinting with data from motion sensors, and the Tight Coupling approach combines the similarities from Wi-Fi samples with data from motion sensors. Several aspects were improved in the Tight Coupling approach, namely, the integration of the floor plans, and the method to update the particles’ weights, which considers all radio map information and uses the similarity instead of a Wi-Fi position estimate, as it is done in the Loose Coupling approach. Another contribution regarding the Tight Coupling implementation is the confidence metric, which is a novel concept introduced in this work to improve the reliability of the system. Based on the dispersion of particles from the PF, the confidence metric allows to determine when there might be a large positioning error associated with the estimated position. The simulation tool to generate synthetic data was essential to tune the parameters of the PF and also contributed to the Dioptra tool, described in Appendix B. Thanks to the improvements in the Tight Coupling approach relative to the Loose Coupling approach, an improvement of ≈24% and ≈118% is observed in the mean and maximum error, respectively. The third contribution is the self-healing radio maps solution which explores industrial vehicles to build and maintain the radio map automatically. This solution is based on a novel approach in the process to update the particles’ weights, where the Wi-Fi similarity is used to determine the weight of each particle using the weighted k-NN algorithm. The above-mentioned confidence metric takes a crucial part in this solution because new Wi-Fi samples are only annotated and added to the radio map when the confidence value is higher than a given threshold. In addition, it allows to build and maintain radio maps in several deployment scenarios depending on the existing information, e.g, when the floor plan or an initial radio map is available. 6.2 Conclusions In this section, the main conclusions of this work are discussed. First, the radio environment of an indoor space varies over time, and it affects the positioning performance when the Wi-Fi infrastructure suffers alterations (removal of APs, changing their positions, or adding new ones). Therefore, radio maps should be updated after these changes. Thanks to this study, it was possible to quantify the radio map degradation in long-term through the applied methodology. Second, using a PF to perform the sensor fusion of Wi-Fi and motion sensors has shown to be an 129
6.2. CONCLUSIONS appropriate tool for indoor positioning and tracking of industrial vehicles as it allows to mitigate errors from Wi-Fi and drift in the heading, correcting the trajectory. The Tight Coupling approach performs better than the Loose Coupling approach, because it considers all available radio map information to compute the similarity between a new Wi-Fi sample and the ones from the radio map when updating particles’ weights, and also because it takes advantage of the building’s floor plan. The Loose Coupling approach is more suited for situations where a radio map exists and the floor plan information is not available, as it does not depend on a floor plan to work. Regarding the reliability of the system, the Tight Coupling approach included a confidence metric designed purposefully to determine whether the estimated position is reliable. This is crucial for vehicle tracking in industrial environments when the ultimate goal is to use the estimated position to annotate new Wi-Fi samples and build self-healing radio maps, but also to comply with safety and accuracy requirements. Third, it is possible to create self-healing radio maps using the enhanced PF based on Tight Coupling. This solution performs an automatic unsupervised mapping of the radio environment in several deployment configurations. The practical aspects of this solution are discussed below: •Minimum Requirements, Deployment and Cost: Either the floor plan (partial or complete) or an initial radio map are required for the system to work since it serves as reference information that allows the PF to converge. In addition to the floor plan information or an iRM, the initial pose of the vehicle should be provided to allow the system to start mapping as soon as it is initialized. The deployment costs are mostly associated with the hardware installed in the vehicles, and the effort to design the floor plan, or alternatively, to build the iRM. This solution is low-cost because it explores vehicles operating in the industrial context, and the positioning module is composed of a low-cost computer (Raspberry Pi), and motion sensors, including the low-cost IMU which make the positioning module cheap and easily reproducible in other vehicles. A server should be used to collect and store the Wi-Fi samples annotated by vehicles. •Adaptability and Scalability: The system works in different floor plan scenarios with different radio map configurations, therefore it is versatile for different types of industrial spaces, e.g., factories with several production or assembly lines, warehouses, manufacturing facilities, etc. Each space may have different restrictions, either large open spaces or the floor plan may be incomplete. The best results were achieved with the floor plan scenarios (cFP, pFP and nFP) considering the iRM. 130
6.3. FUTURE WORK Although this is the best combination in terms of positioning performance, it depends on having the iRM. In cFP and pFP scenarios, the system is able to build the self-healing radio maps just using the floor plan (without the iRM) and the Wi-Fi samples it annotates during operation. In nFP scenarios, since there is no floor plan information, the iRM is essential to allow the PF to remove particles and maintain a low positioning error over time. Furthermore, the system is scalable for larger buildings. In experiments conducted at PIEP, it took only 53 minutes to build the radio map automatically with just one vehicle (mobile unit prototype). This represents a density of one vehicle for ≈1000 m2. •Maintenance: Since the vehicles contribute to the self-healing radio map while they operate, the system does not require maintenance or re-calibration. The system was designed to dynamically adapt to the radio environment keeping itself updated over time, hence it performs self-maintenance. •Multi-purpose Radio Maps: The evaluation of self-healing radio maps has shown that they perform better than traditional radio maps with Wi-Fi fingerprinting, therefore, self-healing radio maps are suitable for indoor localization of other vehicles, human operators, among other devices as long as they are equipped with a Wi-Fi interface. Although this thesis work was conducted during one of the most difficult periods of recent history, limiting the access to the University’s campus, the proposed objectives were accomplished. To conclude, the participation in other activities related to indoor positioning, namely the IPIN competition [9, 10] and the Dioptra project [17], have contributed to this thesis work in two ways. First, it allowed working with a team of knowledgeable people interested in the same research area. Second, it allowed to apply the knowledge obtained in this thesis, and also to learn new concepts that would not be explored in this thesis otherwise. 6.3 Future Work This thesis contributes to a promising field, especially with the advent of Industry 4.0 and 5G mobile networks, where it is expected interconnectivity between devices in industrial spaces, and improvements in the industrial processes aiming to increase productivity and enhance the control of operations. Along the course of this thesis, several topics of interest were identified as possible future work. Regarding the radio map degradation study, several aspects could be explored in the future. First, the 131