Bluetooth LE Distance Determination Using RSSI

Bluetooth LE can be used to infer distance as is being used in contact tracing and social distancing apps. This is performed from the receiving end using what’s called the Received Signal Strength Indication (RSSI). This is a number, in dBm units produced by the receiving Bluetooth hardware that gives the wireless signal strength.

[dBm stands for Decibel-milliwatt, a unit used to measure radio frequency (RF) power level. dB (without the ‘m’) measures the power of a signal as a function of its ratio to another standardized value and the m in ‘dBm’ indicates we are comparing relative to 1 mW of power.]

RSSI is a negative value where the more negative it is, the further away the Bluetooth device. Close devices are usually in the range -10 dBm to -30 dBm while devices at the limit of detection give values less than -90 dBm.

Our post on Testing if a Beacon is Working shows how to use the nRF Connect app to measure the RSSI of a Bluetooth device.

The relationship between RSSI and distance isn’t linear and also depends on electrical, physical and environmental factors. It also varies slightly, as ‘noise’, over time, even when things don’t move. The largest electrical factor is the transmission power. Physical factors include blocking and reflection.

Some Bluetooth advertising such as iBeacon includes a value, the measured power, in the advertising that can be used to take account of the fact that different beacons have different transmission power and hence different RSSI at the same distance. The measured power is usually the value of the power at 1m from the transmitter.

While there are equations and libraries that attempt to derive distance from RSSI, often the most accurate method is to measure the actual RSSI at various distances and use this calibration data with interpolation to get estimated distances.

Movement Constraint-based Location Tracking

Researchers at the Pusan National University, Korea have a new paper on Applying Movement Constraints to BLE RSSI-Based Indoor Positioning for Extracting Valid Semantic Trajectories.

The received signal strength (RSSI) of beacons is often used to infer location. However, the RSSI is subject to reflection and blocking from walls, people and other obstacles causing the derived locations from the raw data to be ‘jumpy’. There are many ways to process the raw data, such as Hidden Markov Models, k-nearest neighbors and Deep Neural Networks (DNN) to obtain smoother trajectories.

The researchers use movement constraints and sliding-window aggregation to extract invalid trajectories and provide real-time semantic trajectories.

The paper shows the proposed movement constraint-based approach extracts valid trajectories that are comparable to the unconstrained and non-machine language approaches. This new approach is particularly suited to dynamic indoor environments where the reflection and blocking changes over time.

Comparison of Bluetooth LE Locating Methods

There’s research just published on A Comparison Analysis of BLE-Based Algorithms for Localization in Industrial Environments. The research compares trilateration, fingerprinting and a machine-learning based k-nearest neighbors regressor for determining the location from signals from multiple beacons.

Multi-layer perceptron (MLP) schematic model
Error box plots for the three fingerprinting algorithms with different beacon densities. Results for a fingerprint grid with one measurement every 0.5 m.

The results show fingerprinting is better than distance-based schemes in industrial environments due to the presence of large moving metal objects that shadow and reflect wireless signals. The three methods were found to provide similar localisation accuracy. The authors say the machine learning method is best due to less complexity and better adaptability. The machine learning method does not need regular calibration as is the case with fingerprinting.

Read about Determining Location Using Bluetooth Beacons

Using Bluetooth and WiFi RSSI for Locating

There’s a recent paper by Hongji Cao,Yunjia Wang,Jingxue Bi and Hongxia Qi of China University of Mining and Technology on An Adaptive Bluetooth/Wi-Fi Fingerprint Positioning Method based on Gaussian Process Regression and Relative Distance.

The paper looks into how to combine both Bluetooth fingerprint positioning (BFP) and Wi-Fi fingerprint positioning (WFP) to provide for an adaptive Bluetooth/Wi-Fi fingerprint positioning system based on Gaussian process regression (GPR).

The adapative feature is particularly useful because fingerprint acquisition requires a great deal of effort and requires subsequent update and maintenance.This new method provides a better positioning than Bluetooth and Wi-Fi positioning alone but at the cost of extra computation.

Read about Using Beacons, iBeacons for Real-time Locating Systems (RTLS)

Using Beacons for Race Timing

There’s novel recent research on City Marathon Active Timing System Using Bluetooth Low Energy Technology by Chun-I Sun, Jung-Tang Huang, Shih-Chi Weng and Meng-Fan Chien of Taiwan.

The authors discuss the use of beacons vs RFID and create a system using Received Signal Strength Indicator RSSI and gateways connected to detector mats:

Beacons are carried by athletes. The gateways sync their times via NTP and send data up to a MongoDB database:

An accuracy of ±156 ms was achieved which compares well to the nearest second used to generally record times and resolution accuracy of 0.1s for commercial transponder timing systems.

The Affect of Transmission Power, Advertising Interval and Beacon Placement Density on Location Accuracy

There’s recent research by Gabriele Salvatore de Blasi, José Carlos Rodríguez-Rodríguez, Carmelo R. García and Alexis Quesada-Arencibia of University of Las Palmas de Gran Canaria, Spain on Beacon-Related Parameters of Bluetooth Low Energy: Development of a Semi-Automatic System to Study Their Impact on Indoor Positioning Systems.

The paper starts by giving an overview of fingerprinting. It explains how fingerprinting is time-consuming and labour-intensive. Fingerprinting is affected by:

“Reflection, refraction, path loss, large fluctuations, multipath fading, non-line-of-sight (NLOS) conditions”

A problem is that some environment-related factors change over time, such as changes in hardware/furniture, the presence of people and ambient humidity conditions meaning that fingerprinting isn’t a one-off activity.

The researchers conclude that the highest transmission power (+4 dBm) produces the best location accuracy. However, this uses a lot of battery power. Use of the lowest power (−20 dBm) only worsened the accuracy by 11.8%. Similarly, lowering the density of the beacons by around 50%, the error increase was only about 9.2%. Increasing the advertising interval didn’t have a significant impact on the accuracy.

The affect of beacon orientation was assessed and vertical orientation was found to be best. As expected, introducing a slight electrical noise during the positioning phase did not significantly affect accuracy.

Read about Locating with Beacons

Using iBeacons with Intelligent Displaying and Alerting Systems

There’s recent research into using iBeacons with intelligent displaying and alerting systems (SICIAD) typically found in public buildings and offices. The paper An Intelligent Low-Power Displaying System with Integrated Emergency Alerting Capability by Marius Vochin, Alexandru Vulpe, Laurentiu Boicescu, Serban Georgica Obreja and George Suciu of the University of Bucharest shows how beacons can be used to determine indoor position of mobile terminals or signalling points of interest.

An Android app uses the beacons to detect location and sends it to the SICIAD system. The researchers concluded that:

“By using an appropriate number of beacons and optimal positions, a relatively precise indoor localization can be obtained with iBeacon technology”

Beacon Based Navigation for the Visually Impaired

There’s a useful recent research paper by Basem AL-Madani, Farid Orujov, Rytis Maskeliūnas, Robertas Damaševičius,and Algimantas Venčkauskas on Fuzzy Logic Type-2 Based Wireless Indoor Localization System for Navigation of Visually Impaired People in Buildings.

The paper explores indoor location algorithms and implements a fingerprinting system using RSSI that achieves an average error of 0.43m.

The authors’ ‘fuzzy logic type-2’ system allows for complex environments such as buildings with glass/metal corridors. They comment that fingerprinting requires pre-configuration which is one of the main disadvantages of this method.

The Affect of Power Levels on Wireless Indoor Localisation Accuracy

There’s new research by Umair Mujtaba Qureshi, Zuneera Umair and Gerhard Petrus Hancke of the Department of Computer Science, City University of Hong Kong on Evaluating the Implications of Varying Bluetooth Low Energy (BLE) Transmission Power Levels on Wireless Indoor Localization Accuracy and Precision. The paper takes a deep look into the relationship between transmitted power and signal stability. It also looks at ways of filtering received signal strength (RSSI) data to improve the location accuracy.

The main insight is that along with the expected difference in the RSSI attenuation there is a considerable difference in the BLE signal variation at all transmission power levels with respect to distance. The variation increases and the localisation accuracy decreases from high to low transmission power levels:

Another observation is that outliers in the data tend to affect the localisation accuracy. Applying filters to the data, they achieved a location accuracy of 2.2 meters with a precision of 95%.

One comment we have is that the researchers didn’t try different beacons. As we mentioned in 2016, the RSSI stability also varies across different beacon models.

Need more help? Consider a Feasibility Study.

Bluetooth Positioning Using Separate Bluetooth Channels

While we wait for commercial Bluetooth 5.1 direction finding solutions to become available, people are trying to refine traditional locating methods to gain more accuracy. Baichuan Huang, Jingbin Liu, Wei Sun and Fan Yang have a research paper on A Robust Indoor Positioning Method based on Bluetooth Low Energy with Separate Channel Information.

They have observed that the stability of the received Bluetooth signal strength RSSI depends on which Channel 37, 38 or 39 the signal is being received on. This is because the channels slightly overlap the WiFi channels and there can be other Bluetooth devices also using the same channels.

The method analyses the channels over time and chooses those it thinks has least interference and most stable RSSI. This reduces the positioning error by 0.2m, to 2.2m, at a distance of 3.6m.

Read about Determining Location Using Bluetooth Beacons