Skip to Content
You are currently on the new version of our website. Access the old version .
SensorsSensors
  • Article
  • Open Access

12 March 2021

Optimized CNNs to Indoor Localization through BLE Sensors Using Improved PSO

,
,
,
and
1
School of Geodesy and Geomatics, Wuhan University, Wuhan 430079, China
2
Xi’an Division of Surveying and Mapping, Xi’an 710054, China
3
BGI Engineering Consultants Ltd., Beijing 100038, China
4
Beijing Satellite Navigation Center, Beijing 100094, China

Abstract

Indoor navigation has attracted commercial developers and researchers in the last few decades. The development of localization tools, methods and frameworks enables current communication services and applications to be optimized by incorporating location data. For clinical applications such as workflow analysis, Bluetooth Low Energy (BLE) beacons have been employed to map the positions of individuals in indoor environments. To map locations, certain existing methods use the received signal strength indicator (RSSI). Devices need to be configured to allow for dynamic interference patterns when using the RSSI sensors to monitor indoor positions. In this paper, our objective is to explore an alternative method for monitoring a moving user’s indoor position using BLE sensors in complex indoor building environments. We developed a Convolutional Neural Network (CNN) based positioning model based on the 2D image composed of the received number of signals indicator from both x and y-axes. In this way, like a pixel, we interact with each 10 × 10 matrix holding the spatial information of coordinates and suggest the possible shift of a sensor, adding a sensor and removing a sensor. To develop CNN we adopted a neuro-evolution approach to optimize and create several layers in the network dynamically, through enhanced Particle Swarm Optimization (PSO). For the optimization of CNN, the global best solution obtained by PSO is directly given to the weights of each layer of CNN. In addition, we employed dynamic inertia weights in the PSO, instead of a constant inertia weight, to maintain the CNN layers’ length corresponding to the RSSI signals from BLE sensors. Experiments were conducted in a building environment where thirteen beacon devices had been installed in different locations to record coordinates. For evaluation comparison, we further adopted machine learning and deep learning algorithms for predicting a user’s location in an indoor environment. The experimental results indicate that the proposed optimized CNN-based method shows high accuracy (97.92% with 2.8% error) for tracking a moving user’s locations in a complex building without complex calibration as compared to other recent methods.

1. Introduction

The academic industry has shown immense interest in the field of the Internet of Things (IoT) because it can propose smart and innovative solutions. Extraordinary utilization of IoT in our routine lives and its regular use in several intelligent environments (e.g., smart industry, smart universities, smart homes, and smart cities) requires an extension of solutions for efficient and effective communication of IoT devices [1]. Keeping balanced requirements like range, connection density, latency, bandwidth, quality of service, and, endpoint cost is part of IoT networking [2,3]. Recent enhancements of IoT electronics, computing paradigms and protocols result in the evolution of wireless sensor networks (WSNs) having strong abilities for several applications in industrial, biomedical, civil, military, environmental, etc. WSN is made up of plenty of sensors with abilities to communicate, process data and sense [4,5].
The observation of paths and locations of individuals through indoor traversal is becoming a vital element of applications involving contextual information like the analysis of the workflow of a clinical environment [6,7] and representation of viral diseases [8,9]. Conventional methods like surveys are slow, incompetent and expensive, particularly when the observation is required all the time and numerous people are required to be traced at a time [10]. Although numerous technologies exist for localization [11,12], these are still far behind the performance of global positioning systems (GPS) in an outdoor environment [13]. Technologies based on radio frequency (RF) are usually used for indoor tracking, but these are affected by nearby sensors and transmitters, making them unreliable. Prior solutions were only examined in closed and controlled environments with a high cost of deployment [14]. Learning the properties of RF signals can aid in designing a better solution for indoor localization.
Existing RF-based techniques are not feasible in every environment. Also, the claim that Wi-Fi-based techniques are inappropriate for environments, such as hospitals, due to the unavailability of signals in certain areas is questionable because Wi-Fi has a longer range than Bluetooth low energy (BLE). Additional RF techniques based on indoor localization rely on Bluetooth low energy (BLE) and RFID [14,15]. BLE is a better option than RFID in multi-locations and multi-user applications due to the low consumption of power and low cost. Information of signal like travel time, direction, the relative strength of signal [16] is used in most of the RF-based techniques. RSSI techniques have a low implementation cost and are easy to implement. Earlier methods used slow algorithms requiring expensive calibration. For instance, methods relying on fingerprints will not operate properly if currently sensed data vary significantly from patterns used during training.
It is assumed that more powerful signals will be detected by the receiver of the nearest BLE beacons. Extra calibrations are required to remove signals from inaccurate locations in settings where signal interference may cause difficulties. A threshold rate will be used to manage outlier signals, signals having a value lower than the threshold rate will be removed by using a novel algorithm. Threshold value may vary from location to location.
Machine learning (ML) algorithms were proposed last year in various applications like energy [17,18,19], health [20,21], communication [17,22], agriculture [23,24] and so forth. It was achieved due to the following reasons: (1) growing computational abilities of microprocessors and circuits, and (2) access to big data offered by the internet. Unluckily, machine learning techniques demand transmission of all data gathered by sensors, which is a huge barrier in several cases, like in cases where data transmission demands data rates that cannot be neglected. In such cases, to ensure accurate communication of all wireless techniques with low power is not permissible.
Bio inspired methodologies make the data processing efficient in terms of power consumption [25,26] and computational power. It is expected that optimization algorithms will become closer to the sensor nodes for the local processing of data and transmission of less information to accuracy and precision of positioning and of execution and memory management.
Particle Swarm Optimization (PSO) is a commonly known socially inspired optimization algorithm. A community of particles, known as a swarm, fly and scan at a certain speed in a restricted range. PSO has been widely applied to solve real-time optimization problems. Since weight optimization during Convolutional Neural Network (CNN) is a major problem. Furthermore, the number of layers of CNN need to be decided at run time instead of predefined fix layers. For optimal parameter selection and to reduce the local minima problem, PSO is used widely in the similar applications
In this paper, we have proposed a novel CNN architecture optimized by improved PSO for the indoor positioning system. We adopt a neuro-evolution approach for developing CNN adaptively. For optimal parameter selection, PSO is used and further enhanced through dynamic inertia weight factor and social cognitive factors. For this, we convert BLE RSSI beacons data into 2-d images through x and y coordinates and evaluate proposed optimized CNN for indoor positioning through BLE RSSI signals. We compared proposed CNN with other ML and DL state of the art algorithms such as Decision Tree, K-Nearest Neighbor (KNN), Logistic Regression, Support Vector Machine (SVM), Artificial Neural Network (ANN), ANN with dropout, Deep Neural Network (DNN), DNN with dropout, and finally Multi Layer Perceptron (MLP).
The organization of the remainder of the paper is—related work along with systematic literature studies in the compact form are discussed in Section 2. Detail related to locating transmitters, system architecture and the proposed framework are given in Section 3 where data collection, experimental results, and analysis of simulations are enlisted in Section 4. We concluded the study in Section 5.

3. Material and Methods

3.1. Locating Transmitters

Communication of BLE is comprised of connecting and advertising. Advertising is a one-way detection method. Devices that are required to be detected can transmit data packets in periods of 20 to 2000 ms. Signals are not regularly broadcasted in intervals by beacons. The higher stability of signals and highly accurate approximation are offered by shorter periods. But it affects the life of the battery. Beacon locations are determined in BLE-based techniques as signals of Bluetooth are continuously detected by the client device. Signal strength might be affected by several barriers like furniture and people and so forth. A ranging process is used to estimate the distance of the device and beacon that causes four states of proximity.
  • Immediate: This state indicates the close presence of a device to beacon.
  • Near: Indicates that the device is 1–3 m away from the beacon without any barrier.
  • Far: It indicates low confidence due to greater distance and the presence of several barriers between the device and beacon.
  • Unknown: It indicates that transmitter proximity cannot be detected.
The received signal’s strength reached by mobile phone is showed by utilizing the value of RSSI. Signal strength measured from a distance of 1 m from the device is represented by the power value of T X . As signal strength changes with device distance, it is critical to calculating the precision of the estimated power value of T X . The difference can be calculated by utilizing the following equation:
d = 10 ( T X R S S I ) / 10 n ,
here d represents distance, T X represents obtained power value of the signal from 1 m, RSSI represents the received signal’s strength, path loss index represented by n. It can be assigned a value depending upon the location of surroundings and beacon-like that:
2 to large wide rooms, 1.4–1.9 to corridors, 3 to rooms with furniture, 4 to rooms filled with furniture, and 5 to various floors. The following equation can be used to calculate the exponent value of path loss.
n = R S S I T X 10 log 10 d .

3.2. System Architecture

Figure 1 represents the setting of the conducted experimentation for indoor localization and its feasible implementation in a building.
Figure 1. Standard building environment with the indoor localization of Beacons.
It was supposed that the BLE device will be equipped to the individual to be tracked from that particular BLE frames will be transmitted after a constant interval of time. The strength of RSSI is measured to gain the relevant messages of BLE. We implemented every receiver of BLE with a client of MQTT that renders gathered data to the MQTT receiver. Data is then forwarded to the server by the receiver, and the stored data is processed. The primary architecture of the defined localization system is given in Figure 2.
Figure 2. Proposed architecture of the defined localization system.

Proposed Framework

This research aims to use iBeacon’s Bluetooth to locate an individual in a building efficiently. This research has different potential applications, like providing a mobile to individual in a store, making sure that users do not reach selected areas, tracking pedestrian traffic and flow patterns, and several other innovative applications. In previous studies, the authors used to consider separate machine and deep learning models to predict x and y coordinates. The traditional positioning algorithm is shown in Algorithm 1. We overcome this issue by predicting both coordinates through a single model. The validation technique is the secondary issue, which we addressed in the proposed model. The employed data are taken from time series process, rotating the Bluetooth device across the building while taking a moment of about three seconds at every coordinate and taking a mean value for each cycle. The obtained mean value leads to the random split and shuffles before the predictions of both x and y points. We tried to introduce a logical split where the estimation of the last 20 percent of the data were predicted.
Algorithm 1 Pseudo Code for basic localization system.
Require: Record RSSI signals and number of beacons   
Ensure: Sensor with rich RSSI value   
1:
Object Beacon-detected   
2:
Id,   
3:
Major,   
4:
Minor,   
5:
MeasurementsRSSI[],   
6:
AverageSignalStrength   
7:
if Scan Timing != 0 then
8:
 init BeaconsList[BeaconDetected]
9:
end if  
10:
init Array[Signals]   
11:
while Scan period not end do
12:
if beacon determined then
13:
   if beacon previously determined then
14:
     Update MeasurementsRSSI array of beacon   
15:
   end if  
16:
   Transfer data to Array[Signals]   
17:
end if  
18:
 call Scan_beacon   
19:
if Array[Signals]!= 0 then
20:
   Return sensor data with rich RSSI value   
21:
end if  
22:
Return Null   
23:
end while 
Furthermore, we decided to transform previous models based on MLP to CNN. In the case of neural networks, that is, MLP, the network considers all 13 sensors and then generates various input neurons to every potential value of that sensor. So this implies the dealing 13 number of potential input neuronal measurements but these readings may not contain sufficient transfer value. Hence this phenomenon will lead to the result where zero information will be transferred. By transforming the input data into an image instead of a very deep matrix, CNN provides the solution. We used each, y representing a 10 × 10 m matrix as shown in the image given in Equation (3). Furthermore, we incorporated the sensors’ locations manually. If the value of the sensors increased, the subsequent array value will also increase.
I ( x , y ) = S 1 5 9 S 2 9 14 S 3 13 14 .
In the above equation, 1st column representing sensors, where the second column shows x coordinate and the third column can be interpreted as y coordinate. Each individual matrix for each sensor S n ( x , y ) . In this way, we communicate with each 10 × 10 matrix holding the spatial coordinate information like a pixel, indicating the potential change of a sensor, adding a sensor and removing a sensor. The trend of each sensor used for the experimentation can be three possible situations, either sensor shows maximum, low or no signal. There are rare cases that any sensor produces no signal. To examine the possibility of outliers in the sensor values, histograms for each beacon device showing the signal strengths in terms of feature importance are given in Figure 3.
Figure 3. Histograms for each beacon device showing the signal strengths in terms of feature importance.
Increased levels mean better signal and −200 represents the minimum signal, indicating that there is essentially no link. We also performed signal’s correlation analysis of each sensor to shows the possible measure of strength of each sensor presented in Figure 4.
Figure 4. Signal’s correlation analysis of each beacons device.
We adopted a neuro-evolution approach to optimize and dynamically construct several layers in the network via enhanced PSO to establish CNN. The best global solution obtained by PSO is given directly to the weights of each layer of CNN for optimization. Besides, we used dynamic inertia weights in the PSO instead of constant inertia weight to maintain that the length of the CNN layers corresponds to the RSSI signals.
Let’s take an input image of 2-d matrix I ( x , y ) for each sensor S n ( x , y ) where n = 1 , 2 , 3 13 . I ( x , y ) is given to semi-standard CNN with 3 convolution layers 4 transpose of convolution layers, and 2 Max pooling layers with auto encoder to compress the signal readings. The equation for the input layer of auto encoder CNN can be written as:
S i = I n p u t I t ( x , y D ) ,
where t represents the corresponding iteration, x and y are both coordinates recorded from each sensor S n ( x , y ) , where n = 1 , 2 , 3 13 and D shows the total dimensions of the input matrix. For each S n ( x , y ) , the feature maps are calculated over the kernel window k using the following equation.
F m S n = C o n v ( S i , K s , f a ) .
In the above equation, S i is the actual input matrix extracted from S n ( x , y ) , K s donates as kernel size which was set to ( 3 , 3 ) for each convolutional layer and f a represents the activation function. We use ReLu function for the activation of each signal neuron in the input I n p u t I t ( x , y D ) . The convolutional process can be interpreted using the formula below:
C o n v S i × K s x , y D , S i ( x 1 , y 1 ) ,
where x 1 , y 1 indicating the index of each coordinate positioned by S n ( x , y ) in the targeted building. F m S n further transfer to the fully connected layer to decide the number of target classes and can be defined as:
Y S n = F c ( C o n v S i × K s x , y D , S i x 1 , y 1 + C o n v ( S i , K s , f a ) ) .
Y S n contains the number of classes defined by fully connected function F c . At this stage we employed improved PSO to tune the number of hyper parameters and to decide the evolution process among the weights of each layer. The whole optimization process is performed before the compilation of the entire model using deep features extracted from fully connected layer Y S n .
PSO is population based optimization algorithm used for optimization in several applications. For the optimization of neural networks, let us takes a population with n particles P i = { 1 , 2 , 3 n } . Each particle is bound to initialize into the 2 dimensional search space of size I ( x , y ) . The initialization processes can be described as:
P i t = P m i n t + P m a x t P m i n t · R ,
where t shows current iteration number P m a x t is maximum range of search space and P m a x t minimum range of search space. R is the random numbers over the interval of [ 0 , 1 ] . Each particles P i = { 1 , 2 , 3 n } update their current velocity V i t and current position X i t . Both can be defined using the following two equations:
V i t + 1 = w · V i t + c 1 · r 1 + ( P best t X i t ) + c 2 · r 2 + ( G best t X i t )
X i t + 1 = ( X i t + V i t + 1 ) .
In the above equations V i t is the current velocity of each particle P i = { 1 , 2 , 3 n } , X i t is the current position of each particle P i = { 1 , 2 , 3 n } , w is inertia weight factor, which is equal to 0 or any constant in the conventional PSO and hence leads to the premature convergence, c 1 , c 2 are learning factors set to the any constant in the original PSO where r 1 , r 2 are random numbers over the interval of [ 0 , 1 ] . Each individual in the multi-dimensional search area learns using their personal best solution P best t and the global best solution G best t of each swarm in the entire population. To maintain the balance among the convergence rate of each particle we proposed dynamic inertia weight factor w S n ( x , y ) which takes signal reading of each beacons and decide the controlling factor based on the signal strength of each reading matrix I ( x , y ) . The beacon with low signal rate will bound each particle P i = { 1 , 2 , 3 n } to converge with small jumps where the beacons with high signal rate will tends to increase the convergence rate which helps in improving the local best solution. The proposed inertia weight factor w S n ( x , y ) can be represented by the following equation.
w S n ( x , y ) = P m i n t + P m a x t P m i n t · I n p u t I t ( x , y D ) .
Similarly in the proposed PSO, we replaced c 1 , c 2 with random number generator following the uniform distribution as:
c p 1 , c p 2 = P m i n t + P m a x t P m i n t · Rand ( 0 , 1 ) .
The updated velocity and position equation for the improved PSO will be as follows:
V S n t + 1 = w S n ( x , y ) · V i t + c p 1 · r 1 + ( P best t X i t ) + c p 2 · r 2 + ( G best t X i t )
X S n t + 1 = ( X i t + V S n t + 1 ) .
The global solution G best t obtained using improved PSO are further used in the optimization of the last layer of auto-encoder CNN for the optimization such as:
Y P n = F c ( C o n v S i × K s x , y D + S i G best t ,
where S i G best t represents the updated sensor reading based on the optimization through improved PSO. Prime steps for proposed indoor positioning are given in Algorithm 2.
Algorithm 2 Pseudo Code for proposed indoor positioning
Require: Record RSSI signals and number of beacons   
Ensure: Sensor with rich RSSI value   
1:
Object Beacon-detected   
2:
Id,   
3:
Major,   
4:
Minor,   
5:
MeasurementsRSSI[],   
6:
AverageSignalStrength   
7:
if Scan Timing != 0 then
8:
 init BeaconsList[BeaconDetected]   
9:
end if  
10:
Convert Beacons signals into 10 * 10 I ( x , y ) for each sensor S n ( x , y )   
11:
while Scan period not end do
12:
if beacon determined then
13:
   if beacon previously determined then
14:
     Update I n p u t I t ( x , y D )   
15:
     Convene each 2-d image as: C o n v S i × K s x , y D , S i ( x 1 , y 1 )   
16:
     Initialize PSO   
17:
     Update velocity using V S n t + 1 = w S n ( x , y ) · V i t + c p 1 . r 1 + ( P best t X i t ) + c p 2 . r 2 + ( G best t X i t )   
18:
     Update Position using X S n t + 1 = ( X i t + V S n t + 1 )   
19:
   end if  
20:
   Transfer data to Array[Signals]   
21:
   Optimize Array[Signals] using Y P n = F c ( C o n v S i × K s x , y D , S i G best t   
22:
end if  
23:
 call Scan_beacon   
24:
if Array[Signals]!= 0 then
25:
   Return sensor data with rich RSSI value   
26:
end if  
27:
Return Null  
28:
end while

4. Results and Discussion

For the experimental simulation, we have used a data set gathered by thirteen beacons in an indoor building environment. The data set is available at [50]. Data contains 13 features compromising of thirteen beacons emitting signals from different locations about total 1420 instances corresponding to each target class. Similarly, we employed unlabeled data of similar length contains −200 RSSI strength to incorporated cluster analysis.

4.1. BLE Signal Analysis

Sensor sequence analysis improves to determine the attributes of BLE signal transmission concerning the range in an enclosed environment from a position transmitter. Although the distribution of the signals could be influenced by the environment (e.g., due to contouring, extras, etc.), we targeted a better understanding and having more similarities from diverse conditions regarding RSSI. During the experimentation, we seemed to have no command over the indoor building conditions and complex elements included shifting workers during the experiments and interference/noise, such as medical equipment, from electronic devices, building structures, or furniture. For RSSI, we record the average value per second. We used fixed location beacons only. To capture the signal patterns from 13 directions, the location beacons were mounted on the ceiling, walls and different other locations in indoor building.

4.2. Localization Results

To determine the frequency of BLE detectors and the location to be installed in the region to be controlled, it is necessary to analyses the real distance errors about the approximate distance between the neural network receiver and the transmitter evaluated. The distance error between the real position and the proposed estimated position is reported in Figure 5. Similarly, Figure 6 indicates the accuracy curves obtained during the training of proposed CNN for indoor localization through improved PSO. In the x-axis, it shows the number of epochs completed while receiving the RSSI signals from the thirteen installed beacons and the y-axis depicts the accuracy of localization during the validation of the proposed algorithm. Moreover, we obtained the distance error between the real position and the MLP estimated position, which can be visualized in Figure 7. The Loss curve in Figure 7 appeared a bit sloppy which is improved in the later stages when using the proposed optimized CNN as shown in Figure 5. Likewise, Figure 8 designates the accuracy curves acquired during the training of MLP to indoor localization through conventional PSO.
Figure 5. Loss curve obtained for 100 epochs using proposed algorithm with auto-encoder optimization.
Figure 6. Accuracy curve obtained for 100 epochs using proposed algorithm with auto-encoder optimization.
Figure 7. Loss curve obtained for 100 epochs using Multi Layer Perceptron (MLP) without optimization.
Figure 8. Accuracy curve obtained for 100 epochs using MLP without optimization.
We selected thirteen possible positions (x, y) of the beacons in the area, to evaluate the accuracy of the position procedure, reported in Table 2. Given numerous beacons greater than or equal to thirteen in known locations, the optimization method CNN algorithm solves non-linear problems. The array with the length approximation should therefore be associated with at least thirteen features. In Table 2, we compare the proposed optimized CNN with other states of the art ML and DL algorithms to show the competency of the proposed algorithm. The comparative algorithms including Decision Tree, KNN, Logistic Regression, SVM, ANN, ANN with dropout, DNN, DNN with dropout and finally MLP. Two major evaluation metrics were used to compare the experimental results which involve Average Accuracy and Error Rate (referred to Table 2). Average Accuracy shows the percentage of accurate localization from thirteen target classes where the Error rate can be defined as 1-Accuracy.
Table 2. Accuracy and error rate of detecting indoor location using thirteen beacons through state of the art ML and DL algorithms.
Figure 9 represents CDF of Euclidean distance error using MLP. The X-axis indicates the distance in meters from the beacons with no greater than 200 range and no lesser than −200 range where Y-axis shows the probability of accurate indoor positioning. For the validation of conducted experiments, we have performed statistical tests on the obtained results. Table 3 represents Kruskal-Wallis Test: Average accuracy versus Models where Table 4 shows Kruskal-Wallis Test: Error rate versus Models. In case of accuracy comparison, the best algorithm should have a higher Kruskal-Wallis rank while in case of loss estimation the best algorithm should have a lower Kruskal-Wallis rank. Likewise, Figure 10 visualizes marginal correlation analysis between error and accuracy obtained through thirteen BLE beacons. We can see that marginal correlation of error rate from 0.00 to 0.25 tends to decrease which mean that the more signal strength appears to be strong, the more error rate will be decreased.
Figure 9. CDF of Euclidean distance error using MLP.
Table 3. Kruskal-Wallis Test: Average accuracy versus Models.
Table 4. Kruskal-Wallis Test: Error rate versus Models.
Figure 10. Marginal correlation analysis between error and accuracy obtained through thirteen Bluetooth low energy (BLE) beacons.

4.3. Analysis

The experimental analysis reveals that an increase in the thirteen beacons considered (and so in the approximate ranges) leads to high errors in the estimation of the position. This implies that the beacon signals with large loss affect the reliability of the process.
We have interrupted beacons to be labeled under the RSSI (best case) limit, thereby preventing the localizer from using its estimation sets. We replicated the measurements to test these cases by removing the beacons with the lowest feature vector provided by the Decision Tree classifier. In the instance of a vector of one obstructed function (i.e., 7.6 percent, since the proposed optimized CNN algorithm considers the best thirteen estimates). According to the order in which they appeared, we were expected to remove another of the thirteen best receivers. For the top ten best sensors and the thirteen transmit positions recorded, we summed this process.
We can observe the best performance of the proposed algorithm from Table 2, with 97.92% average accuracy. After the proposed CNN, MLP performed well and appeared as the second-best performer with 90.85% accuracy. The difference ratio between proposed and MLP can be described as the number of total correct predictions using proposed CNN minus the number of total correct predictions using MLP divided by the summation of the total number of wrong predictions using both proposed and MLP.
The worst performance in terms of low average accuracy and the high error rate is obtained by KNN with (75.78% average accuracy and 24.22% error rate). Similarly, error rate between 0.1 to 0.2 for each RSSI beacons were recorded for Decision Tree (0.1605), Logistic Regression (0.1368), SVM (0.1133), ANN (0.1873) and DNN (0.1890) respectively.
From Table 3 and Table 4, we can see the highest Kruskal-Wallis rank of proposed optimized CNN with 10.0 and highest Z-score of 1.57 proves the superiority of the proposed algorithm statistically. Similarly, proposed CNN obtained the lowest Kruskal-Wallis rank (1.0) in the case of error rate with Z-score is negative −1.57.
We also observed that in some cases, the removal of inappropriate signals lead to missing location data for updating the position coordinate, such as when only the signals from wrong directions were detected but the participant’s object and structural elements were obscured from the right location. Although this was planned, we did not attempt to optimize signal sensing or calculating the strategic positioning of location beacons. To ensure a proper connection between the location beacons and the RSSI signal strength, we placed the location observatories on the walls and floor; however, we did not equate the reliability of the direction detectors installed on the other locations.

5. Conclusions

BLE beacons have been used to map individuals’ locations in indoor environments. Devices need to be programmed to allow for complex patterns of interference when tracking indoor positions using the RSSI. Our proposed framework based on optimized CNN provides an robust method for tracking the indoor location of a moving user using BLE beacons in complex indoor building environments. We developed a 2D image-based CNN positioning model consisting of the number of signals obtained from both the x and y-axis indicators. The best global solution obtained by PSO is given directly to the weights of each layer of CNN for optimization of CNN. Besides, instead of constant inertia weight, we used dynamic inertia weights in the PSO to maintain that the CNN layer length corresponds to BLE’s RSSI signals. Experiments are performed in a building environment in which thirteen beacon systems were mounted to record coordinates at various locations. We further used ML and DL methods for predicting the position of a subject in an indoor environment for assessment comparison. The experimental results show that, relative to other recent approaches, the proposed optimized CNN-based approach demonstrates high precision for monitoring the locations of a moving consumer in a complex building without complex calibration.
In future work, we intend to use other meta-heuristic models such as Bat Algorithm and Differential Evolution Algorithm to improve the current performance with more complex indoor architecture.

Author Contributions

This paper is a collaborative work by all authors. D.S. developed the main algorithm this paper. E.W., Z.M. and C.W. supervised the work and revised the paper. S.X. collated the data. All authors were involved in the manuscript preparation. All authors have read and agreed to the published version of the manuscript

Funding

This work was funded by the National Natural Science Foundation of China (Grant Number 41874036) and National Key Research and Development Program of China (Grant Number 2018YFC1503600).

Acknowledgments

We would like to thank the National Natural Science Foundation of China and National Key Research and Development Program of China for funding the publication of this project.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alhakbani, N.; Hassan, M.M.; Ykhlef, M.; Fortino, G. An efficient event matching system for semantic smart data in the Internet of Things (IoT) environment. Future Gener. Comput. Syst. 2019, 95, 163–174. [Google Scholar] [CrossRef]
  2. Gartner, I. Gartner Identifies Top 10 Strategic IoT Technologies and Trends. In Proceedings of the Analysts Explore Internet of Things Opportunities and Pitfalls at Gartner Symposium/ITxpo 2018, Barcelona, Spain, 4–8 November 2018. [Google Scholar]
  3. Gao, J.; Wang, H.; Shen, H. Task Failure Prediction in Cloud Data Centers Using Deep Learning. In Proceedings of the 2019 IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA, 9–12 December 2019. [Google Scholar]
  4. Akyildiz, I.; Su, W.; Sankarasubramaniam, Y.; Cayirci, E. A survey on sensor networks. IEEE Commun. Mag. 2002, 40, 102–114. [Google Scholar] [CrossRef]
  5. Gao, J.; Wang, H.; Shen, H. Smartly Handling Renewable Energy Instability in Supporting A Cloud Datacenter. In Proceedings of the 2020 IEEE International Parallel and Distributed Processing Symposium (IPDPS), New Orleans, LA, USA, 18–22 May 2020. [Google Scholar]
  6. Malhotra, S.; Jordan, D.; Shortliffe, E.; Patel, V.L. Workflow modeling in critical care: Piecing together your own puzzle. J. Biomed. Inform. 2007, 40, 81–92. [Google Scholar] [CrossRef]
  7. Frisby, J.; Smith, V.; Traub, S.; Patel, V.L. Contextual Computing: A Bluetooth based approach for tracking healthcare providers in the emergency room. J. Biomed. Inform. 2017, 65, 97–104. [Google Scholar] [CrossRef] [PubMed]
  8. Stehlé, J.; Voirin, N.; Barrat, A.; Cattuto, C.; Colizza, V.; Isella, L.; Régis, C.; Pinton, J.F.; Khanafer, N.; den Broeck, W.V.; et al. Simulation of an SEIR infectious disease model on the dynamic contact network of conference attendees. BMC Med. 2011, 9, 87. [Google Scholar] [CrossRef]
  9. Hornbeck, T.; Naylor, D.; Segre, A.M.; Thomas, G.; Herman, T.; Polgreen, P.M. Using Sensor Networks to Study the Effect of Peripatetic Healthcare Workers on the Spread of Hospital-Associated Infections. J. Infect. Dis. 2012, 206, 1549–1557. [Google Scholar] [CrossRef] [PubMed]
  10. Vankipuram, M.; Kahol, K.; Cohen, T.; Patel, V.L. Toward automated workflow analysis and visualization in clinical environments. J. Biomed. Inform. 2011, 44, 432–440. [Google Scholar] [CrossRef]
  11. Deak, G.; Curran, K.; Condell, J. A survey of active and passive indoor localisation systems. Comput. Commun. 2012, 35, 1939–1954. [Google Scholar] [CrossRef]
  12. Gao, J.; Wang, H.; Shen, H. Machine Learning Based Workload Prediction in Cloud Computing. In Proceedings of the 2020 29th International Conference on Computer Communications and Networks (ICCCN), Honolulu, HI, USA, 3–6 August 2020. [Google Scholar]
  13. Lymberopoulos, D.; Liu, J.; Yang, X.; Choudhury, R.R.; Handziski, V.; Sen, S. A realistic evaluation and comparison of indoor location technologies. In Proceedings of the 14th International Conference on Information Processing in Sensor Networks-IPSN’15, Seattle, WA, USA, 14–16 April 2015; ACM Press: New York, NY, USA, 2015. [Google Scholar]
  14. Jain, A.K. Richard C. Dubes. Algorithms for Clustering Data. J. Classif. 1989, 6, 126–128. [Google Scholar]
  15. Lieckfeldt, D.; You, J.; Timmermann, D. Exploiting rf-scatter: Human localization with bistatic passive uhf rfid-systems. In Proceedings of the 2009 IEEE International Conference on Wireless and Mobile Computing, Networking and Communications, Marrakech, Morocco, 12–14 October 2009; pp. 179–184. [Google Scholar]
  16. Peng, R.; Sichitiu, M.L. Angle of Arrival Localization for Wireless Sensor Networks. In Proceedings of the 2006 3rd Annual IEEE Communications Society on Sensor and Ad Hoc Communications and Networks, Reston, VA, USA, 28 September 2006. [Google Scholar]
  17. Beritelli, F.; Capizzi, G.; Sciuto, G.L.; Napoli, C.; Scaglione, F. Rainfall Estimation Based on the Intensity of the Received Signal in a LTE/4G Mobile Terminal by Using a Probabilistic Neural Network. IEEE Access 2018, 6, 30865–30873. [Google Scholar] [CrossRef]
  18. Luna-Perejón, F.; Domínguez-Morales, M.; Gutiérrez-Galán, D.; Civit-Balcells, A. Low-Power Embedded System for Gait Classification Using Neural Networks. J. Low Power Electron. Appl. 2020, 10, 14. [Google Scholar] [CrossRef]
  19. Rauf, H.T.; Malik, S.; Shoaib, U.; Irfan, M.N.; Lali, M.I. Adaptive inertia weight Bat algorithm with Sugeno-Function fuzzy search. Appl. Soft Comput. 2020, 90, 106159. [Google Scholar] [CrossRef]
  20. Ferroni, P.; Zanzotto, F.; Riondino, S.; Scarpato, N.; Guadagni, F.; Roselli, M. Breast Cancer Prognosis Using a Machine Learning Approach. Cancers 2019, 11, 328. [Google Scholar] [CrossRef]
  21. Ferroni, P.; Zanzotto, F.M.; Scarpato, N.; Riondino, S.; Guadagni, F.; Roselli, M. Validation of a Machine Learning Approach for Venous Thromboembolism Risk Prediction in Oncology. Dis. Mark. 2017, 2017, 8781379. [Google Scholar] [CrossRef]
  22. Matta, M.; Cardarilli, G.C.; Nunzio, L.D.; Fazzolari, R.; Giardino, D.; Nannarelli, A.; Re, M.; Spano, S. A Reinforcement Learning-Based QAM/PSK Symbol Synchronizer. IEEE Access 2019, 7, 124147–124157. [Google Scholar] [CrossRef]
  23. Rauf, H.T.; Lali, M.I.U.; Zahoor, S.; Shah, S.Z.H.; Rehman, A.U.; Bukhari, S.A.C. Visual features based automated identification of fish species using deep convolutional neural networks. Comput. Electron. Agric. 2019, 167, 105075. [Google Scholar] [CrossRef]
  24. Rauf, H.T.; Saleem, B.A.; Lali, M.I.U.; Khan, M.A.; Sharif, M.; Bukhari, S.A.C. A citrus fruits and leaves dataset for detection and classification of citrus diseases through machine learning. Data Brief 2019, 26, 104340. [Google Scholar] [CrossRef]
  25. Spano, S.; Cardarilli, G.C.; Nunzio, L.D.; Fazzolari, R.; Giardino, D.; Matta, M.; Nannarelli, A.; Re, M. An Efficient Hardware Implementation of Reinforcement Learning: The Q-Learning Algorithm. IEEE Access 2019, 7, 186340–186351. [Google Scholar] [CrossRef]
  26. Cardarilli, G.C.; Nunzio, L.D.; Fazzolari, R.; Nannarelli, A.; Re, M.; Spano, S. $N$ -Dimensional Approximation of Euclidean Distance. IEEE Trans. Circuits Syst. II Express Briefs 2020, 67, 565–569. [Google Scholar] [CrossRef]
  27. Surian, D.; Kim, V.; Menon, R.; Dunn, A.G.; Sintchenko, V.; Coiera, E. Tracking a moving user in indoor environments using Bluetooth low energy beacons. J. Biomed. Inform. 2019, 98, 103288. [Google Scholar] [CrossRef]
  28. Giuliano, R.; Cardarilli, G.C.; Cesarini, C.; Nunzio, L.D.; Fallucchi, F.; Fazzolari, R.; Mazzenga, F.; Re, M.; Vizzarri, A. Indoor Localization System Based on Bluetooth Low Energy for Museum Applications. Electronics 2020, 9, 1055. [Google Scholar] [CrossRef]
  29. Pušnik, M.; Galun, M.; Šumak, B. Improved Bluetooth Low Energy Sensor Detection for Indoor Localization Services. Sensors 2020, 20, 2336. [Google Scholar] [CrossRef]
  30. Baronti, P.; Barsocchi, P.; Chessa, S.; Mavilia, F.; Palumbo, F. Indoor Bluetooth Low Energy Dataset for Localization, Tracking, Occupancy, and Social Interaction. Sensors 2018, 18, 4462. [Google Scholar] [CrossRef]
  31. Chen, J.; Zhang, Y.; Xue, W. Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi. Sensors 2018, 18, 1378. [Google Scholar] [CrossRef] [PubMed]
  32. Alarifi, A.; Al-Salman, A.; Alsaleh, M.; Alnafessah, A.; Al-Hadhrami, S.; Al-Ammar, M.; Al-Khalifa, H. Ultra Wideband Indoor Positioning Technologies: Analysis and Recent Advances. Sensors 2016, 16, 707. [Google Scholar] [CrossRef]
  33. Zhou, C.; Wang, B. Online Collaborative Localization. IEEE Internet Things J. 2021, 8, 2712–2721. [Google Scholar] [CrossRef]
  34. Abraha, A.T.; Wang, B. Hierarchical Indoor Localization From Crowdsourced Samples. IEEE Sens. Lett. 2020, 4, 1–4. [Google Scholar] [CrossRef]
  35. Tian, Y.; Huang, B.; Jia, B.; Zhao, L. Optimizing AP and Beacon Placement in WiFi and BLE hybrid localization. J. Netw. Comput. Appl. 2020, 164, 102673. [Google Scholar] [CrossRef]
  36. Hernandez, S.M.; Bulut, E. Using perceived direction information for anchorless relative indoor localization. J. Netw. Comput. Appl. 2020, 165, 102714. [Google Scholar] [CrossRef]
  37. Ouameur, M.A.; Caza-Szoka, M.; Massicotte, D. Machine learning enabled tools and methods for indoor localization using low power wireless network. Internet Things 2020, 12, 100300. [Google Scholar] [CrossRef]
  38. Pu, Y.C.; You, P.C. Indoor positioning system based on BLE location fingerprinting with classification approach. Appl. Math. Model. 2018, 62, 654–663. [Google Scholar] [CrossRef]
  39. Li, H.; Ng, J.K.; Cheng, V.C.; Cheung, W.K. Fast indoor localization for exhibition venues with calibrating heterogeneous mobile devices. Internet Things 2018, 3-4, 175–186. [Google Scholar] [CrossRef]
  40. Orujov, F.; Maskeliūnas, R.; Damaševičius, R.; Wei, W.; Li, Y. Smartphone based intelligent indoor positioning using fuzzy logic. Future Gener. Comput. Syst. 2018, 89, 335–348. [Google Scholar] [CrossRef]
  41. Hou, Y.; Yang, X.; Abbasi, Q. Efficient AoA-Based Wireless Indoor Localization for Hospital Outpatients Using Mobile Devices. Sensors 2018, 18, 3698. [Google Scholar] [CrossRef]
  42. Kang, J.; Lee, J.; Eom, D.S. Smartphone-Based Traveled Distance Estimation Using Individual Walking Patterns for Indoor Localization. Sensors 2018, 18, 3149. [Google Scholar] [CrossRef] [PubMed]
  43. Malekzadeh, P.; Mehryar, S.; Spachos, P.; Plataniotis, K.N.; Mohammadi, A. Non-Gaussian BLE-Based Indoor Localization Via Gaussian Sum Filtering Coupled with Wasserstein Distance. In Proceedings of the ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain, 4–8 May 2020. [Google Scholar]
  44. Girgensohn, A.; Patel, M.; Biehl, J.T. Radio-frequency-based indoor-localization techniques for enhancing Internet-of-Things applications. Pers. Ubiquitous Comput. 2020. [Google Scholar] [CrossRef]
  45. AL-Madani, B.; Orujov, F.; Maskeliūnas, R.; Damaševičius, R.; Venčkauskas, A. Fuzzy Logic Type-2 Based Wireless Indoor Localization System for Navigation of Visually Impaired People in Buildings. Sensors 2019, 19, 2114. [Google Scholar] [CrossRef]
  46. Duong, N.S.; Dinh, T.M. Indoor Localization with lightweight RSS Fingerprint using BLE iBeacon on iOS platform. In Proceedings of the 2019 19th International Symposium on Communications and Information Technologies (ISCIT), Ho Chi Minh City, Vietnam, 25–27 September 2019. [Google Scholar]
  47. Adege, A.B.; Lin, H.P.; Wang, L.C. Mobility predictions for iot devices using gated recurrent unit network. IEEE Internet Things J. 2019, 7, 505–517. [Google Scholar] [CrossRef]
  48. Qureshi, U.M.; Umair, Z.; Hancke, G.P. Evaluating the Implications of Varying Bluetooth Low Energy (BLE) Transmission Power Levels on Wireless Indoor Localization Accuracy and Precision. Sensors 2019, 19, 3282. [Google Scholar] [CrossRef] [PubMed]
  49. Turgut, Z.; Ustebay, S.; Aydın, M.A.; Aydın, G.Z.G.; Sertbaş, A. Performance analysis of machine learning and deep learning classification methods for indoor localization in Internet of things environment. Trans. Emerg. Telecommun. Technol. 2019, 30, e3705. [Google Scholar] [CrossRef]
  50. Mohammadi, M.; Al-Fuqaha, A. Enabling Cognitive Smart Cities Using Big Data and Machine Learning: Approaches and Challenges. IEEE Commun. Mag. 2018, 56, 94–101. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.