<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Comparative Analysis of the Indoor Positioning Algorithms using Bluetooth Low Energy Beacons</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Farid Orujov</string-name>
          <email>farid.orujov@ktu.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Multimedia Engineering Department, Faculty of Informatics, Kaunas University of Technology Studentu 50-401</institution>
          ,
          <addr-line>Kaunas</addr-line>
          ,
          <country country="LT">Lithuania</country>
        </aff>
      </contrib-group>
      <fpage>53</fpage>
      <lpage>57</lpage>
      <abstract>
        <p>- This paper provides an overview of the indoor positioning algorithms based on signal strength received from the Bluetooth Low Energy beacons. A comparative analysis of the considered algorithms on criteria such as effectiveness, independence from the preliminary measurements.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Keywords — Indoor Positioning Algorithms; Bluetooth Low
Energy Beacons; iBeacons; RSSI</p>
      <p>I.</p>
    </sec>
    <sec id="sec-2">
      <title>INTRODUCTION</title>
      <p>Currently, there is increasing interest in the possibility of
obtaining information about the location of an object. The range
of services will expand significantly if user's location
information can be provided. The location-based services refer
to applications that depend on the user's location to provide
services in various categories, including navigation and
tracking. Unfortunately, the GPS technology does not specify a
location close to walls, buildings, trees, buildings and subways,
as the power of the GPS satellite's signal is weak, making it
unusable for indoor GPS localization. It is popular to use Wi-Fi
hotspots for detecting location in the room. However, given the
fact that the walls are an obstacle that affects the signal Wi-Fi
access points that data mechanism is not effective. In this case,
the quantity and location of Wi-Fi access points are very
important when using wireless technology, moreover such a
solution is costly.</p>
      <p>II.</p>
      <p>AIM</p>
      <p>The aim of this research is to determine the possibilities of
indoor positioning algorithms using BLE beacons. The
objectives of the research are the following:</p>
      <p>Investigate the range broadcasting of Bluetooth Low</p>
    </sec>
    <sec id="sec-3">
      <title>Energy beacon in a real environment.</title>
      <p>Investigate which indoor positioning algorithms using</p>
    </sec>
    <sec id="sec-4">
      <title>BLE Beacons show the highest accuracy. Investigate the effect of the amount of beacons on the accuracy.</title>
      <p>Copyright © held by the authors
III.</p>
    </sec>
    <sec id="sec-5">
      <title>MODEL</title>
      <p>This section describes the basic terms and model of the
environment in which positioning algorithms are used. A
positioned facility that receives the Bluetooth Low Energy
signals is called “agent”. In this case the "agent" means a
smartphone. The model of environment includes several
beacons and an agent. Without loss of generality, the space is
regarded as a flat environment in which there are interferences
from walls - floors, diverse signals, etc. There are two types of
indoor positioning algorithms. Types of indoor positioning
algorithm:
A. Without the need for preliminary measurements</p>
    </sec>
    <sec id="sec-6">
      <title>Proximity</title>
    </sec>
    <sec id="sec-7">
      <title>Centroid</title>
    </sec>
    <sec id="sec-8">
      <title>Weighted Centroid</title>
    </sec>
    <sec id="sec-9">
      <title>Trilateration</title>
    </sec>
    <sec id="sec-10">
      <title>Fingerprinting</title>
      <p>B. Preliminary measurements are necessary
IV.</p>
    </sec>
    <sec id="sec-11">
      <title>ALGORITHMS</title>
      <sec id="sec-11-1">
        <title>Proximity Localization</title>
        <p>
          The proximity algorithm [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] is assigned to the agent that
coordinates the beacon which emits the greatest power signal.
The algorithm is the simplest, from a computational point of
view. For instance, if four beacons are located in the room and
the highest power signal P1 has been received from B1, then the
agent is assigned coordinates of B1 beacon.
        </p>
        <p>The advantages of this algorithm include the ease of
implementation due to the low computational complexity
(O(N)) and the necessity to know only the location of the
beacons. The obvious disadvantage is very low accuracy. This
algorithm is useful as an initial approximation, the result of
which can be used for a different algorithm.</p>
      </sec>
      <sec id="sec-11-2">
        <title>Centroid Localization</title>
        <p>
          The centroid algorithm [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] is a calculation of the geometric
center of the plane figure formed by multiple beacons. In this
case, the coordinates of the agent are calculated as a linear
combination of the coordinates of the beacons. Location of the
agent is determined by the following formulas:
⎧
⎪
⎨
⎩
   
   =    
⎪    =    


1
1


(1)
where XA, YA – Cartesian coordinates of agent; Xi, Yi is
the Cartesian coordinates of ith beacon; N is the number of
beacons.
        </p>
        <p>
             
⎧    =  
Cartesian coordinates of ith beacon; wi - weight characteristics;
di - refers to the distance between agent and ith beacon and g to
the degree which determines the contribution of beacon; N is
the number of beacons.
1. The stage configuration environment. At this stage, the
power signals in pre-planned locations of all known
active beacons are measured. The information col-lected
is stored in a database with reference to the local or
global coordinate space.
2. Step positioning. At this stage, the signal power
measurements made over the agent are compared with
the information stored in the database, by means of an
algorithm. The algorithm of k-Nearest Neighbors is used
in the paper [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
k-Nearest Neighbors
        </p>
        <p>
          In this paper, formula (6) is used to find the Euclidean
distances between the stored data and real-time data [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]:

=

− 
(6)
where i is ith pre-planned locations point; Pij is RSS from the
ith beacon in jth pre-planned location point which stored into
database; Pij’ is real-time coming RSS from the ith beacon in jth
pre-planned location point;
        </p>
        <p>In the next step, one pre-planned location point is selected
with the smallest Euclidean
distance. The value of the
coordinates of the pre-planned location points are assigned to
the coordinates of the agent. The algorithm of k-Nearest
Neighbors is used for choosing multitude pre-planned location
points.</p>
        <p>The Nearest Neighbor algorithm is a special case of
kNearest Neighbors when k = 1. The advantage of using multiple
points is to improve the positioning accuracy. There is a
possibility to use additional algorithms to approximate location.
author</p>
        <p>   </p>
        <p>(7)</p>
        <p>Where XA, YA – Cartesian coordinates of agent; Xi, Yi is the
Cartesian coordinates of ith beacon; k – number of pre-planned
location point which have minimal Euclidean distances; wi
weight characteristics; Dis - Euclidean distances.</p>
        <p>Trilateration Localization</p>
        <p>
          The trilateration algorithm [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] is based on a comparison of
the distances from the 3 beacons to calculate the  agent’s
location. The signal strengths of the beacons are decreasing
exponentially, depending on distance between the transmitter
and the receiver. Thus, this dependency can be considered as
function of distance. The distance estimated by signal strength
is presented as a circle with a radius around the beacon. The
intersection of the broadcasting radiuses created by the three
beacons provides a point or an area of receiver.
        </p>
        <p>
          This model can be shown as such equation system [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]:



= ( −  ) + ( −  )
= ( −  ) + ( −  )
= ( −  ) + ( −  )
        </p>
        <p>Where  ,  is coordinates of agent;  1,  2,  3,  1,  2,  3 is
the coordinates of bea-cons; d1, d2, d3 is the estimated
distances.</p>
        <p>This system of quadratic equations can be simplified by
substituting equation 10 into equation 8 and 9, which will leave
two linear equations:
2 ∙ (</p>
        <p>−  ) ∙  + 2 ∙ (
2 ∙ (
−  ) ∙  + 2 ∙ (
= (
− (
= (
− (</p>
        <p>−  ) ∙ 
−  ) − (
−  )</p>
        <p>−  ) ∙ 
−  ) − (
−  )
−  )
−  )</p>
        <p>The agent coordinates are found by solving equation 11 and
equation 12, using Cramer’s rule.</p>
        <p>=  
(
(
−  ) − (
−  ) − (
−  ) − (
−  ) − (
−  ) 2 ∙ (
−  )
2 ∙ (
−  )
−  )
2 ∙ (
2 ∙ (
−  )</p>
        <p>2 ∙ (
−  ) 2 ∙ (
−  )
−  )
(8)
(9)
(10)
(11)
(12)
(13)
2 ∙ (
−  ) − (
−  ) − (
−  ) 2 ∙ (
−  ) 2 ∙ (
−  ) − (
−  ) − (
−  )
−  )
−  )
−  )
(14)</p>
        <p>The advantages of this algorithm are the low computational
complexity and the necessity to know only the location of the
beacons. The given algorithm is the most reliable, and its
application include GPS and cellular networks.
describe one of the tested rooms. A specific environment of
4.64 by 4.64 in meters has been simulated in order to test the
algorithms. All electronic devices which could affect the test
results have been removed from the rooms. Also in this room,
if possible, we collected objects that could reflect or absorb
signals. The configuration parameters of BLE beacon:</p>
      </sec>
    </sec>
    <sec id="sec-12">
      <title>Transmit power (Tx): 4 dBm</title>
    </sec>
    <sec id="sec-13">
      <title>Advertising Interval: 200 ms</title>
      <p>The
algorithms of Proximity</p>
    </sec>
    <sec id="sec-14">
      <title>Localization,</title>
      <p>(1.16, 3.48)
(2.32, 3.48)
(3.48, 3.48)
VI.</p>
    </sec>
    <sec id="sec-15">
      <title>RESULTS OF THE EXPERIMENT During the experiments, the points was randomly chosen which was ought to determine the location. This points are divided to the three groups in Table III:</title>
      <p>Figure 2 illustrate the visual result of algorithms performed
in Environment 1.
2
3
,
2
8
0
7 ,1
7
,
0
8
8
,
1
0
1
,
1
3
,
0
R E D</p>
      <sec id="sec-15-1">
        <title>Proximity</title>
      </sec>
      <sec id="sec-15-2">
        <title>Weighted Centroid Trilateration</title>
        <p>2
3
,
2
5
5
,
1
2
5
,
1
8
1
,
0
G R E E N
2
3
,
2
5
9
,
0
8
,53 ,06
0
B L U E</p>
      </sec>
      <sec id="sec-15-3">
        <title>WCWCL-RSSI</title>
      </sec>
      <sec id="sec-15-4">
        <title>Fingerprinting algorithm</title>
        <p>At the end of experiments, we can confidently say that the
fingerprinting localization algorithm requires preliminary
measurement, and the average deviation from the actual
position is equal to 0.3, 0,68 and 0.95 meters</p>
        <p>The results of this algorithm can be improved by reducing
the parameter k in the kNN algorithm, the error increases due to
the fact that it is not taken into account the distance from the
beacon which the greatest signal strength.</p>
        <p>The trilateration algorithm and algorithm of Weighted
Centroid needs no preliminary measurement as the average
deviation from the actual position is 0.97 and 1.01 respectively.
The nearest three of four beacons have been used in the
experiment for Weighted Centroid and WCWCL-RSSI (Fig.4).
The experimental results showed that increase in the number of
beacons does not affect the accuracy of determining the position
in the experimental room (Fig. 5).</p>
        <p>3
0
,
1
R E D
7
3
,
1
3
6
,
0
G R E E N
1
4
,
2
5
4
,
1
B L U E
4
8
,
0</p>
      </sec>
      <sec id="sec-15-5">
        <title>Weighted Centroid</title>
      </sec>
      <sec id="sec-15-6">
        <title>WCWCL-RSSI</title>
        <p>During the experiments, in the room, the four beacons were
used for the algorithms of Proximity Localization, Centroid
Localization, Weighted Centroid Localization, Trilateration
Localization. However, in the corridor, the six beacons have
been involved due to the length of the walls. The six beacons
have been used for the fingerprinting localization algorithm in
both case. Figure 6 shows the average error of the algorithms in
the rooms:
1
3
,
2
1
3
,
2
3
,
1
7
9
,
0
3
,
1
7
9
,
0</p>
      </sec>
      <sec id="sec-15-7">
        <title>Proximity</title>
      </sec>
      <sec id="sec-15-8">
        <title>Weighted Centroid</title>
      </sec>
      <sec id="sec-15-9">
        <title>Fingerprinting Сentroid WCWCL-RSSI Trilateration</title>
        <p>Fig. 6. The comparison of the error of indoor positioning algorithms
in the rooms.</p>
        <p>As it can be seen from Figure 6, the Fingerprinting
algorithm showed the highest accuracy in determining indoor
location, an error which was 0.65 meters whereas the Proximity
algorithm showed the worst result and the error was 2.31 meter.
Figure 7 shows a calculation error of the algorithms in a
corridor:</p>
      </sec>
      <sec id="sec-15-10">
        <title>Proximity</title>
      </sec>
      <sec id="sec-15-11">
        <title>Weighted Centroid</title>
      </sec>
      <sec id="sec-15-12">
        <title>Fingerprinting Сentroid WCWCL-RSSI Trilateration</title>
        <p>Fig. 7. The comparison of the error of indoor positioning algorithms
(in a corridor)</p>
        <p>The experiments conducted in the corridors also showed the
best result at the Fingerprinting algorithm. Although fairness it
6
6
,
1
6
6
,
1
5
6
,
0
5
6
,
0
should be noted that the algorithms of Weighted Centroid and
Trilateration also have shown good results. The remaining
algorithms have a lack, when agent is moving, the result in
coordinates is showing outside of the room. In avoidance errors
of this type, we propose to create a map of the room and use
room boundaries in computing.</p>
      </sec>
    </sec>
    <sec id="sec-16">
      <title>CONCLUSION</title>
      <p>Overall, these results can be evaluated as positive because
the room has been fully covered by signal. The number of
beacons was established from 3 to 6 and during testing it was
found that the amount fully covers the room up to 5 meters. It
can be stated that:</p>
      <p>The range of signal broadcast in the real world does not
correspond to the range that has been declared by the
manufacturer. It can be mentioned that the signal is
practically damped by the wall. For an efficient
operation of indoor positioning algorithms, the data
obtained from beacons hast ob ef roma 3 m eters’r ange.
According to my results, the Fingerprinting algorithm
can be used as an indoor positioning algorithm using
BLE beacons. The algorithm showed relatively high
positioning accuracy that distinguishes from others,
however, the main disadvantage is the phase of
preconfiguration. The error of calculation is 0.67 meters.
In general, we can say that the greater the number of
beacons, the better the result of the positioning. From the
experimental results, we can conclude the longer the
wall, the more the beacons will be required for the
correct operation of algorithms with consideration of the
maximum range of broadcasting in real environment.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Axel</surname>
          </string-name>
            Küpper. 
          <string-name>
            <surname>Location-Based</surname>
            <given-names>Services</given-names>
          </string-name>
          : Fundamentals and Operation, Wiley,
          <year>2005</year>
          , pp.
          <fpage>365</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.W.</given-names>
            <surname>Kolodziej</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hjelm</surname>
          </string-name>
          .
          <source>Local Positioning Systems: LBS Applications and Services</source>
          , CRC Press,
          <year>2006</year>
          , pp.
          <fpage>445</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Shyi-Ching</surname>
            <given-names>Liang</given-names>
          </string-name>
          , LunHao Liao and
          <string-name>
            <surname>Yen-Chun Lee</surname>
          </string-name>
          .
          <article-title>Localization Algorithm based on Improved Weighted Centroid in Wireless Sensor Networks</article-title>
          ,
          <source>Journal of Net-works</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>183</fpage>
          -
          <lpage>189</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Quande</given-names>
            <surname>Dong</surname>
          </string-name>
          and
          <string-name>
            <surname>Xu</surname>
            <given-names>Xu</given-names>
          </string-name>
          .
          <article-title>A Novel Weighted Centroid Localization Algorithm Based on RSSI for an Outdoor Environment</article-title>
          ,
          <source>Journal of Communications</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>279</fpage>
          -
          <lpage>285</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Paramvir</given-names>
            <surname>Bahl</surname>
          </string-name>
          and
          <string-name>
            <surname>Venkata N. Padmanabhan. RADAR:</surname>
          </string-name>
          <article-title>An in-building RF-based user location and tracking system</article-title>
          ,
          <source>IEEE INFOCOM</source>
          ,
          <year>2000</year>
          , pp.
          <fpage>775</fpage>
          -
          <lpage>784</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Landu</given-names>
            <surname>Jiang</surname>
          </string-name>
          .
          <source>A WLAN Fingerprinting Based Indoor Localization Technique</source>
          , University of Nebraska-Lincoln,
          <year>2012</year>
          , pp.
          <fpage>38</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Wenhuan</given-names>
            <surname>Chi</surname>
          </string-name>
          , Yuan Tian, Mznah Al-Rodhaan,
          <article-title>Abdullah Al-Dhelaan and Yuanfeng Jin: A Revised Received Signal Strength Based Localization for Healthcare</article-title>
          ,
          <source>IEEE Transactions on Consumer Electronics</source>
          ,
          <year>2009</year>
          , pp.
          <fpage>1295</fpage>
          -
          <lpage>1299</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Shchekotov</surname>
          </string-name>
          .
          <source>Indoor Localization Method Based on Wi-Fi Trilateration Technique, Proceedings of the 16th Conference of Open Innovations Association FRUCT</source>
          , Oulu, Finland,
          <source>October 27-31</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>177</fpage>
          -
          <lpage>179</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Robert</given-names>
            <surname>Jarvis</surname>
          </string-name>
          . Arthur Mason.
          <article-title>Indoor Positioning System - Department of Electrical and Computer</article-title>
          , EE
          <volume>4820</volume>
          ,
          <year>2011</year>
          , pp.
          <fpage>11</fpage>
          -
          <lpage>14</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>