BLE Localization Enhancement via CGANs
BLE Localization Enhancement via CGANs
This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.
Digital Object Identifier 10.1109/ACCESS.2023.0322000
ABSTRACT
Location estimation in indoor environments using radiofrequency (RF) has garnered considerable attention
in recent years owing to the widespread adoption of mobile devices. RF-based fingerprinting—a direct
approach that allows location estimation based on observed signals—relies on manual surveys during
the offline phase to create a radio map with coordinates and RF measurements at multiple locations.
The accuracy of RF fingerprint-based localization is related to the number of reference points. However,
conventional site survey procedures tend to incur substantial expenses. To alleviate the workload of site
surveys and address the challenge of incomplete fingerprint databases, we propose a data-augmentation
method to complement existing fingerprint data. Our approach leverages a conditional generative adversarial
network with long short-term memory (CGAN-LSTM) prediction model to effectively learn the intricate
patterns inherent in the initial training data and generate high-quality synthetic data that align with the un-
derlying data distribution. In an experimental evaluation conducted on a real testbed, our data augmentation
framework increased the average localization accuracy by 15.74% compared with fingerprinting without
data augmentation. Furthermore, experiments conducted in two typical indoor environments using sparse
data highlighted the significant performance enhancement of the proposed approach in reducing localization
error and was comparable to state-of-the-art data-augmentation methods.
INDEX TERMS Bluetooth low energy (BLE), fingerprint, data augmentation, generative adversarial
network (GAN), location estimation.
VOLUME 4, 2016 1
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
hardware requirements, offering user convenience through extend coverage to new areas, increasing the position-
the extensive use of wireless devices such as smartphones. ing accuracy—particularly in unsurveyed locations.
One of the primary challenges faced by RF-based fin- 2) This paper introduces a CGAN-based long short-term
gerprint positioning systems is the extensive scale of sur- memory (LSTM) network to find the best RSS pre-
veying needed to collect sufficient received signal strength diction and augment the fingerprints. The proposed
(RSS) data at multiple reference points (RPs) to construct model was compared with other CGAN deep learning
an indoor radio map. In large-scale deployments, survey prediction models.
efforts are expensive. In addition, the radio map changes 3) Furthermore, a comparative analysis was performed to
over time, necessitating periodic calibration. As the area and evaluate the proposed algorithm against three state-of-
RSS measurement time increase, the dataset size required for the-art algorithms in two distinct scenarios, encom-
calibration increases. Despite the time-consuming and labor- passing rooms of varying dimensions and interfer-
intensive nature of site surveying, fingerprinting-based ap- ence levels. The experimental results indicated that the
proaches continue to be popular owing to their applicability proposed approach achieved satisfactory localization
to IPSs [6], [7]. performance.
To address the challenge of data collection costs, re- The remainder of the paper is structured as follows. Sec-
searchers have explored various approaches, such as crowd- tion II provides an overview of the related work. Section
sourcing, interpolation, signal propagation models, and si- III presents the design of the proposed scheme. Section IV
multaneous localization and mapping (SLAM). Their lo- presents the experimental results and comparisons with those
calization accuracies are significantly affected by both the of state-of-the-art methods. Finally, we summarize the study
number of RSS values per fingerprint and the fingerprint in Section V and outline future work.
density within a specific area [8]. The positioning accuracy
can be increased by increasing the number of RPs collected II. RELATED WORK
in the offline phase [9]. However, this approach incurs sub- Compared with outdoor localization, indoor localization us-
stantial costs associated with the offline data collection. To ing RSS-based fingerprints presents more significant chal-
mitigate this challenge, fingerprint augmentation is an effec- lenges owing to the unpredictable nature of environmental
tive solution to reduce costs while maintaining positioning factors. When utilizing RSS-based fingerprints, we must
accuracy [10]. Yet, these existing methods have limitations consider two critical components: 1) the selection of RF tech-
when it comes to generating diverse synthetic data. More- nologies for fingerprinting and 2) the method employed for
over, augmenting Bluetooth fingerprint data faces significant fingerprint data collection. This section summarizes related
challenges due to noise, device variability, and environmental studies focusing on three key aspects: general RF indoor
changes [11]. localization technologies, fingerprinting systems, and data-
The Conditional Generative Adversarial Network (CGAN) augmentation methods.
stands as one of the most popular GAN methods, proficient in
A. GENERAL RF INDOOR LOCALIZATION
generating synthetic data under specific conditions or scenar-
TECHNOLOGIES
ios within various environments. This synthetic data exhibits
remarkable diversity and closely mimics real-world data, In recent years, various smartphone-oriented IPSs have been
owing to its innate capability to adapt to various conditional investigated, including commonly used technologies such as
settings [12], [13]. Additionally, the CGAN approach proves Wi-Fi, Bluetooth, ultra-wideband (UWB), ZigBee, and cel-
highly effective in addressing this challenge by enabling lular networks, each of which has strengths and limitations.
data generation based on specific class labels, facilitating the In addition to the localization algorithm, the selection
targeted generation of data for a particular type. The CGAN of wireless technology plays a crucial role in designing an
framework requires the generator and discriminator to be effective localization system. Among the various wireless
conditioned on auxiliary information, such as class labels. technologies, Wi-Fi has gained significant popularity and is
This conditioning acts as an extension to the latent space, widely employed in localization systems [20]. Furthermore,
enabling the generation and discrimination of synthesized with recent advancements in Bluetooth technology, many
data [14]. systems leverage BLE beacons for indoor localization [21],
[22]. Another promising communication technology for IPS
In this study, we considered a scenario in which only a
is UWB [23], which offers advantages such as low power
small amount of labeled data was available, and data aug-
consumption, high data rates (up to 1 Gb), and remarkable
mentation was used to interpolate the missing fingerprint data
accuracy. The results of the survey conducted in [24] high-
and extend the fingerprint database. The main contributions
light a remarkable surge in BLE-based research during 2021
of this study are summarized as follows.
and 2022, surpassing research in the domains of Wi-Fi and
1) A CGAN-based localization system is proposed for UWB in comparison to previous years.
generating supplementary data by leveraging exclu- Although less prevalent than Wi-Fi and Bluetooth, ZigBee
sively labeled data. This approach facilitates generat- has attracted attention for localization applications owing
ing RSS measurements and corresponding positions to to its low power consumption and widespread use in IoT
2 VOLUME 4, 2016
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
deployments. Alternatively, cellular signals such as 3G, 4G, or floor plans, along with the assumption of a constant walk-
and 5G collected by smartphones offer the advantage of ing speed. The surveyor follows a predesigned path between
cost reduction—by eliminating the need for additional hard- landmarks while maintaining a constant walking speed. To
ware installation—and widespread availability. However, the overcome the limitation of a constant walking speed, the
adoption of 5G technology remains limited owing to a lack pedestrian dead reckoning (PDR) algorithm is employed to
of widespread infrastructure. Each of these technologies has track the movement of pedestrians. Using PDR-based meth-
advantages and disadvantages when utilized in localization ods, fingerprints can be collected while walking, significantly
systems. Table 1 summarizes the approaches for RF tech- reducing the time required for radio-map construction. How-
nologies used in indoor localization, including the accura- ever, it is essential to note that the PDR approach is subject to
cies, advantages, and disadvantages of these methods. drift error, necessitating complex algorithms to compensate
Considering the cost, energy consumption, and deploy- for this error [26].
ment, Wi-Fi and BLE can be good choices. BLE beacons Crowdsourcing offers an efficient and cost-effective ap-
require less energy than Wi-Fi APs because of their IoT de- proach for collecting RF fingerprints using smartphones,
sign, which allows them to operate for years using traditional allowing the generation and updating of RF fingerprint
batteries. Additionally, the advertisement period in BLE is databases through the collective effort of individuals [27].
far shorter than that in Wi-Fi, allowing multiple RSS read- For example, as discussed in [28], the authors have inte-
ings per second. These characteristics make BLE a suitable grated labeled fingerprints with a crowdsourcing system that
substitute for Wi-Fi in fingerprinting applications [25]. Other incorporates indoor floor plans and pedestrian walking traces
reasons for using BLE beacons are their ubiquity and the to construct a comprehensive Wi-Fi radio map. The map-
ease of measuring RSS values using modern smartphones. assisted approach to generate fingerprints was introduced in
Because most smartphones have Bluetooth technology built- [29]. It utilizes crowdsourced fingerprints that are calibrated
in, BLE has become a suitable choice for indoor localization. with supplementary map information. However, constructing
an accurate RF map in dynamic crowdsourcing scenarios is
B. OVERVIEW OF FINGERPRINTING SYSTEM challenging—particularly when users move freely without
In traditional fingerprint-based methods, constructing a radio additional sensors. Although previous studies have focused
map involves collecting a set of RSS values at grid points on offline database creation through crowdsourcing, col-
from the surrounding APs. This process includes annotating lecting data from freely moving users poses challenges, as
fingerprints with location tags during the offline phase to they may include unqualified inertial data that compromise
create an RSS radio map of the area of interest. In the localization accuracy. Moreover, the distributions of crowd-
online phase, the system estimates the user’s location by sourced participants in space and time are often uneven,
matching the observed fingerprint with the fingerprints stored resulting in incomplete signal data collected through these
on the radio map. Owing to its comparable or even superior methods [30].
localization performance without additional hardware or in- As the indoor RF environment undergoes changes over
frastructure costs, fingerprinting localization can be widely time, such as the replacement of faulty BLE beacons, furni-
adopted in real-life scenarios, despite the labor-intensive and ture relocation, and the movement of people, periodic updates
time-consuming features of radio-map construction. to the radio map become essential [31], [32]. An outdated
To minimize the costs associated with site surveys, fin- fingerprint database can lead to a deterioration in localization
gerprints are collected dynamically while walking. This dy- performance [33]. Directly collecting indoor radio maps is a
namic approach to data collection relies on either landmarks time-consuming and costly endeavor, particularly in larger
VOLUME 4, 2016 3
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
spaces. Additionally, constructing a comprehensive radio both complex and high-dimensional, can pose limitations
map is challenging, especially in dynamic and crowdsourced on the performance of ML approaches. These methods can
scenarios where users move arbitrarily. experience significant performance degradation when RSS
Adapting to these dynamic changes requires frequent values in the fingerprint vector are unstable due to unforeseen
model retraining, resulting in significant computational over- environmental changes [45]. Tree-based models, including
head. Therefore, data augmentation offers a solution to ex- Random Forests and decision trees, exhibit robust predictive
tend the training database, especially in cases where only capabilities. However, their construction demands substantial
limited labeled data is available [34]. By implementing data time and computational resources, particularly when nu-
augmentation, the DL model can learn from the labeled merous trees are involved [46]. As networks become more
data and expand its database. It is well-suited for scenarios complex in indoor settings, there is a demand for more so-
where obtaining ample labeled training data is challeng- phisticated ML methods compared to traditional supervised
ing and expensive [35]. This approach involves generating ML to address localization challenges [47]. In contrast, deep
new synthetic data to complement the real collected data, learning (DL) shows great promise for improving localiza-
enhancing model training, improving localization accuracy, tion accuracy in complex environments where feature ex-
and simultaneously reducing measurement time and human traction is challenging, and data exhibits high dimensionality
effort. These advantages further enhance the practicality and [48]. Moreover, GAN, which leverages DL models, excels
applicability of our proposed approach. in managing complex RSS-based fingerprint environments
through data augmentation for fingerprint reconstruction [49]
C. DATA AUGMENTATION-BASED APPROACH FOR despite being computationally more complex [50].
FINGERPRINT DATABASE CONSTRUCTION
Data augmentation plays a critical role in enhancing the III. SYSTEM MODELING
localization performance by increasing the training data di- A. SYSTEM OVERVIEW
versity and sample size [36]. Although it is widely used Fig. 1 illustrates the proposed positioning system. In the
in image classification tasks [37], its effectiveness has been initial stage, the RSS of BLE is collected using a mobile
demonstrated in various domains, including natural language device. Concurrently, the coordinates of various locations and
processing, speech recognition, object detection, and human their corresponding RSS fingerprints are collected during an
activity recognition [36]. offline site survey. Multiple site surveys are conducted to
Research has focused on data augmentation for fingerprint ensure sufficient data collection. The red circle represents
generation to address the challenge of acquiring sufficient the original data (real data) at a fixed location. To enrich the
radio fingerprints for indoor localization under labor and time fingerprint RSS database, the system utilizes conditional gen-
constraints. Various approaches have been proposed, such as erative adversarial networks (CGANs) to generate synthetic
Gaussian process regression (GPR) [15], [38], [39], inverse RSS fingerprints. The blue circle represents the augmented
distance weighting (IDW) [40], and linear interpolation (LI) data, which has been randomly augmented to cover the
[41]. However, these methods have limitations in accurately entire area. Data augmentation is achieved by implement-
augmenting fingerprinting data for indoor localization be- ing the CGAN architecture, which comprises two essential
cause of their assumptions and limited ability to capture com- components: a discriminator and a generator. In contrast to
plex spatial relationships and nonlinearities in radio signal traditional generative adversarial networks (GANs), CGANs
propagation. incorporate conditional labels to facilitate the targeted gener-
Recently, graph-based data-augmentation techniques [20], ation of fingerprints specific to particular floors or buildings.
[42], [43] have been used to construct large-scale finger- Fig. 2 illustrates the layers of the discriminator and gen-
print data. In [42], radio fingerprints were modeled as graph erator model, along with the number of units and details
signals, and virtual RPs were interpolated into the graph of the activation function. The generator network comprises
to solve the radio-map reconstruction problem. In another LSTM and dense layers with 32 and 16 units, respectively.
approach [20], graph convolutional networks (GCNs) and In CGAN-LSTM, noise and labels are required at the gen-
domain adversarial training are integrated to learn robust erator input, while real data and labels are necessary at the
and domain-invariant features for localization. However, the discriminator input. Both components operate in a mutually
use of graph-based methods for data augmentation in indoor adversarial manner. In contrast, the discriminator layer con-
localization requires prior knowledge of the spatial structure, sists of one LSTM layer and three dense layers with 128
a well-defined graph representation, and the assumption of a units, 64 units, 16 units, and 1 unit, respectively. Each LSTM
consistent spatial structure across different domains, which unit comprises four components: 1) Cell State, 2) Input Gate,
may only occasionally hold true in real-world scenarios. 3) Forget Gate, and 4) Output Gate, as shown in Fig. 3.
Machine learning (ML) approaches like KNN, support The LSTM unit is essential for maintaining long-term depen-
vector machines, and random forests are highly effective for dencies, thereby improving overall outcomes [51]. Both the
regression and classification tasks [44]. However, they may discriminator and the generator employ the rectified linear
encounter challenges when dealing with complex, nonlin- unit (ReLU) activation function for all layers, except the last
ear relationships in data. The RSS fingerprint data, being one, to disregard the negative weighted values. In addition, a
4 VOLUME 4, 2016
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
Real data
Dataset
Classification
Label output from the
Discriminator
discriminator
Model
model
Random (real/fake)
Generator Generated
noise Model data
Label Label
sigmoid activation function is applied to the output layer. information from various BLE beacons. This data, accom-
panied by their respective Media Access Control (MAC)
B. BLE BEACON-BASED FINGERPRINT LOCALIZATION addresses and coordinates, establishes a radio fingerprint
The RSS vector at distinct locations in indoor settings ex- database for subsequent online localization processes. The
hibits noticeable differences due to varying distances from database, encapsulating information about RPs and their
BLE beacons to smartphones, thereby delineating unique corresponding fingerprints, is then pre-stored for utilization
location fingerprints. The RSS demonstrates a characteristic in the online phase.
where the signal increases as the user approaches the beacon The online phase sees the smartphone acquiring the RSS
and decreases as the user moves away from it. The compre- vector and related MAC addresses from an uncharted posi-
hensive set of RSS fingerprints for all RPs within the indoor tion before uploading to the server. Subsequently, the server,
environment is denoted as the radio map. As depicted in Fig. in turn, compares the present RSS information with the stored
1, the BLE fingerprint positioning algorithm progresses two fingerprints in the database to estimate the location. The
stages—an offline stage followed by online one. This study system employs matching algorithms to compare the query
focuses explicitly on location fingerprinting, employing RSS with the radio map, returning the most similar fingerprint as
values garnered from BLE beacons. the estimated location.
During the offline phase, mobile communication devices, Assume a set of BLEs (B = BLE1 , BLE2 , . . . , BLEM )
such as smartphones with Bluetooth modules, gather RSS and RPs (RPi = RP1 , RP2 , . . . , RPN ), where M represents
VOLUME 4, 2016 5
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
Output
Generated output
32 (LSTM)
16 (Dense)
Random
noise σ σ tanh σ
Ht-1 Ht
Hidden state Next hidden state
xt
Input
Real data
Discriminated
128 (LSTM)
16 (Dense)
64 (Dense)
Label
C. CGAN
In 2014, [52] introduced CGAN, which enhanced traditional
GANs by incorporating additional information into the en-
ReLU ReLU
Discriminator coded class labels. The class labels are fed to both the gen-
Sigmoid ReLU
erator and discriminator along with the prior noise and real
data, respectively. This conditioning of class labels allows
FIGURE 2. Discriminator and generator model. CGANs to generate data that are specific to each class. The
cost function is defined as
where the term Ex∼Pdata (x) [log D(x|y)] indicates the discrim-
RSSi = M ACi1 , RSSi1 , ..., M ACiMB , RSSiMB (1) inator’s ability to correctly distinguish real data samples (x)
from generated data samples (G(z|y)) given the correspond-
where M ACij and RSSij represent the MAC address and ing class labels (y). The generator aims to minimize this
RSS value of the BLEj at RPi , respectively. Let Pi = term to ensure that the generated samples are indistinguish-
(xi , yi ) represent the 2D location coordinate of the i-th able from the real samples. Conversely, Ex∼Pdata (x) [log(1 −
RP, and t express the sampling amount of the k-th BLE, D(G(z|y)))] indicates how well the discriminator correctly
respectively. The RSS ofP the m-th BLE in the i-th RP can identifies generated samples as fake. The discriminator seeks
m t m,i
be defined by RP i
= i=1 RPi /t. The fingerprints of to maximize this term to improve its ability to differentiate
RPs in the location space can be represented by RPi = between real and generated data.
1 2 M T
[RP i
, RP i
, ..., RP i
] . Consequently, the fingerprints of RPs The losses of the discriminator and generator are expressed
at the grid point in a given location are denoted by: as follows:
1 1 1
RP1 RP 2
··· RP N
RP2
RP2
··· 2
RP L(D, θd ) = Ex∼Pdata (x) log D x|y; θd +
1 2 N
R= . .. .. .. (2) (4)
..
. . .
M M M Ez∼Pz (z) log 1 − D G(z|y; θg )
RP 1
RP 2
··· RPN
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
Algorithm 1: Data Augmentation using CGAN- maximizing the generator loss (L(D, θg )) contributes to the
LSTM generation of highly realistic samples, making it challenging
Input : Random positions, RSS measurements from n for the discriminator to differentiate them from real data
BLE beacons with MAC addresses under the same condition y. Hence, the CGAN training aims
Output: Generated augmented dataset to minimize the discriminator loss (L(D, θd )) while maxi-
1 // Initialization
2 Initialize LSTM-based generator (G) and discriminator (D) mizing the generator loss (L(D, θg )), leading to a balanced
networks training process that results in the generation of high-quality
3 Define the categorical cross-entropy loss function and Adam samples by the generator.
optimizer for G and D, along with other hyperparameters During training, we use different hyperparameters (e.g.,
like learning rate and batch size learning rate, batch size, sequence length of LSTM) to fine-
4 for each entry in the dataset do
5 sum ← 0 tune our proposed model. The values of these parameters are
6 count ← number of RSS values in the current entry selected in a heuristic manner to improve the proposed model
7 for each RSS value, RSSi , in the current entry do during training.
8 sum ← sum + RSSi
9 end D. RSS AUGMENTATION MODELS WITH CGAN FOR
sum
10 RL ← count
11 ▷ Calculate the average RSS value in the current entry, RADIO-MAP CONSTRUCTION
where count denotes the total number of RSS in one Algorithm 1 presents the process of data augmentation us-
row ing a conditional generative adversarial network with long
12 return RL short-term memory (CGAN-LSTM). This algorithm aims
13 for each epoch (ep = 1 to epochtotal ) do to augment a given dataset containing random positions
14 RS = {RSS1 , RSS2 , . . . , RSSn }
15 ▷ Obtain real samples (RS) with their and the corresponding RSS measurements observed from n
corresponding conditional labels in batches BLE beacons with MAC addresses. The goal is to generate
16 N = Generator_N oise() additional data samples that can be used to improve the
17 F L = Random_F ake_Labels() performance of the radio-map-based fingerprinting.
18 F S = G(N, F L) The algorithm begins by initializing the LSTM-based gen-
19 ▷ Generate fake samples based on noise and fake
labels erator (G) and discriminator (D) networks. In addition, the
20 Authenticity_RS = D(RS) categorical cross-entropy loss function and Adam optimizer
21 ▷ Discriminator predicts the authenticity based on loss for both networks are defined. The algorithm sequen-
actual RSS samples tially processes each entry (row) within the dataset to fetch
22 Loss_RS_RL = Loss_f unction(RS, RL) the RSS value of each MAC address. It calculates the actual
23 Authenticity_F S = D(F S)
24 Loss_F S_F L = Loss_f unction(F S, F L), labels (RL) by averaging the RSS values of the respective
L(D, θd ) = RL + F L entries. Within each entry, the algorithm enters an epoch
25 WD = WD − D_optimizer(L(D, θd )). loop, updating the generator and discriminator networks it-
L(D, θg ) = Loss_f unction(F S, RL) eratively. During each epoch, real samples (RS) with their
26 WG = WG − G_optimizer(L(D, θg )) corresponding labels are obtained in batches, and noise (N )
27 if current epoch is equal to epochtotal then
28 Save newly generated augmented data as a new is generated to feed the generator. The generator (G) then
dataset generates fake samples (F S) by processing the noise and
29 end fake labels (F L) using G. Subsequently, the discriminator
30 end
31 end
(D) predicts the authenticity of the real samples (RS), and
the loss is computed according to the real samples (RS) and
their corresponding real labels (RL). Similarly, the authentic-
ity of the fake samples (F S) is predicted by D, and the loss
Ex∼Pdata (x) estimates the average over real data points x (in- is calculated according to the fake samples (F S) and their
put data) sampled from the distribution Pdata . log D x|y; θd corresponding fake labels (F L).
is the logarithm of the probability assigned by the discrim- The discriminator loss (L(D, θd )) is formulated as the sum
inator D to the input x given the condition y and current of the real loss (RL) and the fake loss (F L). To update
weighted parameters θd . In the last part, which is common the weights of the discriminator (WD ), the discriminator
to both (4) and (5), the goal is to determine the logarithm of loss (L(D, θd )) is used in conjunction with the discrimina-
the probability assigned by the discriminator to the fake input tor optimizer (D_optimizer). Similarly, the generator loss
G(z|y; θg ) under a specific condition y. This logarithmic (L(G, θg )) is computed according to the fake samples (F S)
probability is averaged over all noise samples z from the and real labels (RL). To update the generator weights (WG ),
noise distribution Pz (z). the generator loss (L(G, θg )) is used in conjunction with the
In summary, the training of CGANs is focused on accu- generator optimizer (G_optimizer). The algorithm iterates
rately distinguishing between real and fake data under a spec- through multiple epochs, and when it reaches the specified
ified condition, denoted as y. To achieve this, it is essential epochtotal , the newly generated augmented data are saved as
to minimize the discriminator loss (L(D, θd )). Conversely, a new dataset.
VOLUME 4, 2016 7
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
IV. EXPERIMENTAL RESULTS AND ANALYSIS spanned 45 m in length and 3 m in width, whereas the
This section presents a comprehensive performance analysis laboratory covered an area of 12 m in length and 10 m in
of the proposed fingerprint augmentation method. First, we width. The laboratory environment included various types of
outline the experimental setup. Next, we discuss the perfor- furniture and obstacles. Individuals moved randomly within
mance of various CGAN models in comparison with state- the corridor, making the experimental settings closely resem-
of-the-art data-augmentation methods. ble real-life scenarios.
In developing a BLE fingerprinting-based positioning sys-
tem, the typical process involves conducting radio scans,
BLE 1
supplemented by ground-truth data collected by a user or
surveyor. In this context, the ground-truth information cor-
BLE 2 BLE 3
responding to the radio scans is known to the user and can
BLE 4
be regarded as labeled data. During the static data collection
BLE 5 BLE 6
BLE 7 phase, the user stands at specific points for 4 to 5 minutes,
BLE 8 BLE 9
BLE 10 and RSS data is collected at each predefined reference point
using a smartphone.
To create the radio map, we divided it into grids, each with
an average edge width of 2.0 m and height ranging from 1.5
to 2.0 m. Each grid point was assigned a unique fingerprint
containing the RSS values measured from n BLE beacons. In
total, 17 BLE beacons were deployed for these experiments,
with 10 placed in the corridor and 7 in the laboratory (as
(a) corridor (Scenario 1)
indicated by the purple circles in Fig. 4).
Each beacon was set to broadcast a signal every 300 ms,
BLE 3 BLE 6
and the transmission power level was set to +4 dBm to
BLE 1 BLE 4 BLE 7
provide good signal coverage. Data collection was performed
BLE 2 BLE 5 for 5 min to gather numerous RSS measurements at each
RP. The purpose of employing an extended scanning period
during the onsite fingerprint survey was to ensure a suffi-
cient number of signals for the construction of a fingerprint
database.
too weak to be detected by our Android app, we set the RSS 1/di
to a minimum value of -99 dBm by default. wi = Pk , (7)
During the offline stage of our experiment, we collected i=1 1/di
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see [Link]
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3368449
5 6 6 ( V W L P D W L R Q ( U U R U + H D W P D S I R U % / (