SlideShare a Scribd company logo
1 of 3
Download to read offline
Second Report
IN4254 Smart Phone Sensing
27 May, 2014
Lie Yen Cheung
1358219
L.Y.Cheung-1@student.tudelft.nl
Hong Huang
4281942
H.Huang-3@student.tudelft.nl
In this report we describe how we use Bayesian Inference
for localization in our application. First we explain how re-
ceived signal strength (RSS) data is being gathered and how
these data is processed. Then we describe how the radiomap
can be constructed using Bayesian Inference. Moreover, the
evaluation is also being explained briefly in this report and
finally we discuss problems we have encountered in the last
few weeks.
1. DATA COLLECTION
In order to collect RSS data from the ninth floor of EWI, we
implemented a simple program which makes use of the Wifi-
Manager class1
provided by Android. This program writes
every observable access point (AP) to a file together with
the measured signal strength. We divided the floor plan of
into several grids in order to gather RSS in each of the grid
shown in Figure 1. In each grid we gather about 300 mea-
surement points by walking in a ”S” curve through the grid
for about three minutes. For each grid we collected the RSS
and plotted all the available AP according with their signal
strength into a graph. Figure 2 shows an example the AP
distribution of grid 1.
Figure 1: The grids on the floor plan.
1
http://developer.android.com/reference/android/net/wifi
/WifiManager.html
Figure 2: AP Distribution of grid 1. In grid 1
18 different access point can be measures. The x
axis presents the measurement point and the y axis
presents the RSS value.
2. DATA PROCESSING
After gathering all RSS data for each grid, we started doing
some filtering to remove some ”noisy” data from the dataset.
First, we removed all data from AP provided less than 200
RSS data points, because we only want to take the strongest
AP from each cell into consideration. Second, we sorted for
each grid the remaining AP on the highest averaged RSS
value, to see which AP provides the strongest RSS. Further-
more we used alpha trimmer[3] filter2
to filter each dataset
with α = 0.2, because this could improve the outcome our
test results.
3. RADIO MAP
After filtering we determined for each grid: the average RSS
per access point, radio map containing the RSS frequency
per AP (Figure 3, 5 are cells which are similiar while Figure
5, 6 are cells which are different) and frequency probabil-
ity per AP per RSS (Figure 4). For each grid we choose the
strongest access points and for each of these AP we use Mat-
lab3
to estimate the parameters and confidence intervals for
normal data. Afterwards, we created several histograms to
represent the estimated values, Figure 7 and 8 show an ex-
ample the histograms of the strongest APs of grid 6. Based
2
http://www.librow.com/articles/article-7
3
http://www.mathworks.nl/help/stats/normfit.html
on the estimated parameters, we can determine the proba-
bility mass function (pmf) for each grid, which can be used
for creating the radio map.
Figure 3: Radio map for grid 6, RSS frequency per
AP. On the x axis the RSS values are presented,
while on the y axis the access points are presented
and sorted on the highest average RSS.
Figure 4: Frequency probability per AP per RSS for
the strongest APs of grid 6.
4. LOCALIZATION METHOD
In our application we use Bayesian Inference[4][5] for local-
ization. Bayesian inference is a method of inference in which
Bayes’ rule is used to update the probability estimate for a
hypothesis as additional evidence is acquired. The equa-
tion(1) shows the Bayes rule we used with the probability
that I am in cell I given that i got an RSS measurement r
from access point j.
p(celli/rssj
r
) = p(celli) p(rssj
r
/celli) / p(rssj
r
) (1)
4.1 Gaussian probability distribution and
cumulative distribution function
Gi,j(v) =
v+0.5
v−0.5
e−(x−µi,j )/(2σ2
i,j )
σij
√
2π
(2)
Gi,j(v) is a discretization of a Gaussian probability distri-
bution[4] with µi,j and standard deviation σij. P((bj, v)|si)
adds a null hypothesis and normalizes the resulting distri-
bution. β is small constant used to represent the probability
of observing an artifact and Ni,j is normalizer such that
255
v=0
P((bj, v)|si) = 1 (3)
To obtain the probability that you are in a certain grid given
a WiFi level v, we need to calculate the integral for interval
[v −0.5, v +0.5]. This is calculated using trapezoidal rule[1].
b
a
f(x) ≈
h
2
(f(xk+1) + f(xk)) (4)
=
b − a
2N
(f(x1)+2f(x2)+2f(x3)+...+2f(xn)+f(xn+1)) (5)
Here we choose 100 as N, v + 0.5 as b and v − 0.5 as a.
5. EVALUATION
After testing our application based on the trained data, the
outcome of the results were not as precise as we expected
it to be. About 60% of the time our application determines
correctly in which grid it is, based on sensing the RSS and
comparing them with the trained data. However, in several
cases it appears that our application points to a grid near
the actual grid, thus in the ”room next door”. A reason for
this appearance might be that the original access point has
been moved, which leads to another observable RSS range of
the AP. Another possible reason is the interference of object,
for example sensing RSS while the door of the room is open.
This could also lead to different observable RSS of an access
point. Moreover signal variance could also an important
role, because it is not guaranteed that what works now will
also work tomorrow.
6. DISCUSSION
Now that we have tested this, we will continue working to
improve the outcomes. One thing that we could do is gath-
ering new RSS (at night/different days) and combine it with
our current trained data to improve the accuracy of deter-
mining the correct location. Thus we use multipath fading[2]
to overcome absorption effect that could cause problems.
Moreover we could extent the table containing the average
RSS per grid in order to have a larger dataset to train the
data for more access points. Another option to improve the
accuracy would be modeling variance and use least squares
fit to find the optimal c1 and c2 for the linear function, where
i is the signal strength:
c(i) = c1 ∗ i − c2 (6)
Figure 5: Radio map for grid 4, RSS frequency per
AP. On the x axis the RSS values are presented,
while on the y axis the access points are presented
and sorted on the highest average RSS.
7. REFERENCES
[1] K. E. Atkinson. An introduction to numerical analysis.
John Wiley & Sons, 2008.
[2] P. Bahl and V. N. Padmanabhan. Radar: An
in-building rf-based user location and tracking system.
In INFOCOM 2000. Nineteenth Annual Joint
Conference of the IEEE Computer and
Communications Societies. Proceedings. IEEE,
volume 2, pages 775–784. Ieee, 2000.
[3] J. Bednar and T. Watt. Alpha-trimmed means and
their relationship to median filters. Acoustics, Speech
and Signal Processing, IEEE Transactions on,
32(1):145–153, 1984.
[4] A. Haeberlen, E. Flannery, A. M. Ladd, A. Rudys,
D. S. Wallach, and L. E. Kavraki. Practical robust
localization over large-scale 802.11 wireless networks. In
Proceedings of the 10th annual international conference
on Mobile computing and networking, pages 70–84.
ACM, 2004.
[5] M. Youssef, A. Youssef, C. Rieger, U. Shankar, and
A. Agrawala. Pinpoint: An asynchronous time-based
location determination system. In Proceedings of the
4th international conference on Mobile systems,
applications and services, pages 165–176. ACM, 2006.
Figure 6: Radio map for grid 15, RSS frequency per
AP. On the x axis the RSS values are presented,
while on the y axis the access points are presented
and sorted on the highest average RSS.
Figure 7: histograms for AP mfold-dlink
00:26:5a:a9:99:46 (Grid 6)
Figure 8: histograms for AP tudelft-dastud
00:1b:90:76:d3:f4 (Grid 6).

More Related Content

What's hot

Performance evaluation of various routing techniques in wireless multimedia
Performance evaluation of various routing techniques in wireless multimediaPerformance evaluation of various routing techniques in wireless multimedia
Performance evaluation of various routing techniques in wireless multimediaIAEME Publication
 
Universal Scalability Law (USL)
Universal Scalability Law (USL) Universal Scalability Law (USL)
Universal Scalability Law (USL) Pasindu Tennage
 
Energy-Efficient Hybrid K-Means Algorithm for Clustered Wireless Sensor Netw...
Energy-Efficient Hybrid K-Means Algorithm for Clustered  Wireless Sensor Netw...Energy-Efficient Hybrid K-Means Algorithm for Clustered  Wireless Sensor Netw...
Energy-Efficient Hybrid K-Means Algorithm for Clustered Wireless Sensor Netw...IJECEIAES
 
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...Edureka!
 
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...IOSR Journals
 
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...IRJET Journal
 
Precision based data aggregation to extend life of wsn
Precision based data aggregation to extend life of wsnPrecision based data aggregation to extend life of wsn
Precision based data aggregation to extend life of wsnGaurang Rathod
 
K MEANS CLUSTERING
K MEANS CLUSTERINGK MEANS CLUSTERING
K MEANS CLUSTERINGsingh7599
 
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio Networks
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio NetworksA Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio Networks
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio NetworksIJAEMSJORNAL
 
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...ijassn
 
Modelling Accessibility Performance in LTE networks, An Analytics Methodology
Modelling Accessibility Performance in LTE networks, An Analytics MethodologyModelling Accessibility Performance in LTE networks, An Analytics Methodology
Modelling Accessibility Performance in LTE networks, An Analytics Methodologyalien_gmx
 
G03202048050
G03202048050G03202048050
G03202048050theijes
 

What's hot (15)

Performance evaluation of various routing techniques in wireless multimedia
Performance evaluation of various routing techniques in wireless multimediaPerformance evaluation of various routing techniques in wireless multimedia
Performance evaluation of various routing techniques in wireless multimedia
 
Universal Scalability Law (USL)
Universal Scalability Law (USL) Universal Scalability Law (USL)
Universal Scalability Law (USL)
 
Energy-Efficient Hybrid K-Means Algorithm for Clustered Wireless Sensor Netw...
Energy-Efficient Hybrid K-Means Algorithm for Clustered  Wireless Sensor Netw...Energy-Efficient Hybrid K-Means Algorithm for Clustered  Wireless Sensor Netw...
Energy-Efficient Hybrid K-Means Algorithm for Clustered Wireless Sensor Netw...
 
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
 
Wireless Sensor Network Security Analytics
Wireless Sensor Network Security AnalyticsWireless Sensor Network Security Analytics
Wireless Sensor Network Security Analytics
 
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...
Design Optimization of Energy and Delay Efficient Wireless Sensor Network wit...
 
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...
IRJET- Performance Analysis of Energy Efficient Clustering Protocol using TAB...
 
Mathematical Modelling of Wireless sensor Network and new energy Aware Routing
Mathematical Modelling of Wireless sensor Network and new energy Aware Routing Mathematical Modelling of Wireless sensor Network and new energy Aware Routing
Mathematical Modelling of Wireless sensor Network and new energy Aware Routing
 
Precision based data aggregation to extend life of wsn
Precision based data aggregation to extend life of wsnPrecision based data aggregation to extend life of wsn
Precision based data aggregation to extend life of wsn
 
K MEANS CLUSTERING
K MEANS CLUSTERINGK MEANS CLUSTERING
K MEANS CLUSTERING
 
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio Networks
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio NetworksA Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio Networks
A Novel Algorithm for Cooperative Spectrum Sensing in Cognitive Radio Networks
 
Q026201030106
Q026201030106Q026201030106
Q026201030106
 
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
 
Modelling Accessibility Performance in LTE networks, An Analytics Methodology
Modelling Accessibility Performance in LTE networks, An Analytics MethodologyModelling Accessibility Performance in LTE networks, An Analytics Methodology
Modelling Accessibility Performance in LTE networks, An Analytics Methodology
 
G03202048050
G03202048050G03202048050
G03202048050
 

Viewers also liked

Olivos golf club
Olivos golf clubOlivos golf club
Olivos golf clubPGARGENTINA
 
19809685 evolucion tda-hvida
19809685 evolucion tda-hvida19809685 evolucion tda-hvida
19809685 evolucion tda-hvidaSandra Cabrera
 
What 60 Top-Tier Publishers Want To Tell You About PR and Media Outreach
What 60 Top-Tier Publishers Want To Tell You About PR and Media OutreachWhat 60 Top-Tier Publishers Want To Tell You About PR and Media Outreach
What 60 Top-Tier Publishers Want To Tell You About PR and Media OutreachFractl
 
DOD Presentation
DOD PresentationDOD Presentation
DOD PresentationIAML2014
 
Bitacora de viaje 1.1
Bitacora de viaje 1.1Bitacora de viaje 1.1
Bitacora de viaje 1.1joser3sendes
 
Hysma chistes
Hysma chistesHysma chistes
Hysma chistesHysmael
 
Los que viven (y ganan dinero)
Los que viven (y ganan dinero)Los que viven (y ganan dinero)
Los que viven (y ganan dinero)Inspira y Avanza
 
3 Tips to Help You Make The Most of Your Gym Time
3 Tips to Help You Make The Most of Your Gym Time  3 Tips to Help You Make The Most of Your Gym Time
3 Tips to Help You Make The Most of Your Gym Time Imad Hanna
 
Natural Health Studies - A Ticket to Successful Career in the Field of Health
Natural Health Studies - A Ticket to Successful Career in the Field of HealthNatural Health Studies - A Ticket to Successful Career in the Field of Health
Natural Health Studies - A Ticket to Successful Career in the Field of Healthnewedenschoolofnaturalhealth
 
Cyber Security for 5th and 6th Graders
Cyber Security for 5th and 6th GradersCyber Security for 5th and 6th Graders
Cyber Security for 5th and 6th GradersStephen Thomas, CISSP
 
China Arts Foundation_Event Highlights_2014
China Arts Foundation_Event Highlights_2014China Arts Foundation_Event Highlights_2014
China Arts Foundation_Event Highlights_2014Gianna Guo
 
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...raul trigozo sangama
 
Estilos de planeación y tipos de planes
Estilos de planeación y tipos de planesEstilos de planeación y tipos de planes
Estilos de planeación y tipos de planesSebas0220
 

Viewers also liked (19)

Olivos golf club
Olivos golf clubOlivos golf club
Olivos golf club
 
19809685 evolucion tda-hvida
19809685 evolucion tda-hvida19809685 evolucion tda-hvida
19809685 evolucion tda-hvida
 
What 60 Top-Tier Publishers Want To Tell You About PR and Media Outreach
What 60 Top-Tier Publishers Want To Tell You About PR and Media OutreachWhat 60 Top-Tier Publishers Want To Tell You About PR and Media Outreach
What 60 Top-Tier Publishers Want To Tell You About PR and Media Outreach
 
Transkrip Nilai
Transkrip NilaiTranskrip Nilai
Transkrip Nilai
 
Bipedestación
BipedestaciónBipedestación
Bipedestación
 
DOD Presentation
DOD PresentationDOD Presentation
DOD Presentation
 
Bitacora de viaje 1.1
Bitacora de viaje 1.1Bitacora de viaje 1.1
Bitacora de viaje 1.1
 
Hysma chistes
Hysma chistesHysma chistes
Hysma chistes
 
Los que viven (y ganan dinero)
Los que viven (y ganan dinero)Los que viven (y ganan dinero)
Los que viven (y ganan dinero)
 
3 Tips to Help You Make The Most of Your Gym Time
3 Tips to Help You Make The Most of Your Gym Time  3 Tips to Help You Make The Most of Your Gym Time
3 Tips to Help You Make The Most of Your Gym Time
 
Natural Health Studies - A Ticket to Successful Career in the Field of Health
Natural Health Studies - A Ticket to Successful Career in the Field of HealthNatural Health Studies - A Ticket to Successful Career in the Field of Health
Natural Health Studies - A Ticket to Successful Career in the Field of Health
 
Cyber Security for 5th and 6th Graders
Cyber Security for 5th and 6th GradersCyber Security for 5th and 6th Graders
Cyber Security for 5th and 6th Graders
 
VIRENDRA it
VIRENDRA itVIRENDRA it
VIRENDRA it
 
China Arts Foundation_Event Highlights_2014
China Arts Foundation_Event Highlights_2014China Arts Foundation_Event Highlights_2014
China Arts Foundation_Event Highlights_2014
 
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...
Sustentacion determinacion de la capacidad de soporte del suelo con el equipo...
 
Hipervinculos
HipervinculosHipervinculos
Hipervinculos
 
linkedin
linkedinlinkedin
linkedin
 
Informatica
InformaticaInformatica
Informatica
 
Estilos de planeación y tipos de planes
Estilos de planeación y tipos de planesEstilos de planeación y tipos de planes
Estilos de planeación y tipos de planes
 

Similar to IN4252_Smart_Phone_Sensing

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Expert system design for elastic scattering neutrons optical model using bpnn
Expert system design for elastic scattering neutrons optical model using bpnnExpert system design for elastic scattering neutrons optical model using bpnn
Expert system design for elastic scattering neutrons optical model using bpnnijcsa
 
Location estimation in zig bee network based on fingerprinting
Location estimation in zig bee network based on fingerprintingLocation estimation in zig bee network based on fingerprinting
Location estimation in zig bee network based on fingerprintingHanumesh Palla
 
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...IJCSEA Journal
 
Accurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point techniqueAccurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point techniqueIJECEIAES
 
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...Md Kafiul Islam
 
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORKPERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORKcsijjournal
 
A New Approach for Error Reduction in Localization for Wireless Sensor Networks
A New Approach for Error Reduction in Localization for Wireless Sensor NetworksA New Approach for Error Reduction in Localization for Wireless Sensor Networks
A New Approach for Error Reduction in Localization for Wireless Sensor Networksidescitation
 
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSING
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSINGSENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSING
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSINGIJARIDEA Journal
 
Efficiency of Neural Networks Study in the Design of Trusses
Efficiency of Neural Networks Study in the Design of TrussesEfficiency of Neural Networks Study in the Design of Trusses
Efficiency of Neural Networks Study in the Design of TrussesIRJET Journal
 
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay Network
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay NetworkPerformance Evaluation Of Adaptive Array Antennas In Cognitive Relay Network
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay Networkcsijjournal
 
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay Network
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay NetworkPerformance Evaluation of Adaptive Array Antennas in Cognitive Relay Network
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay Networkcsijjournal
 
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK csijjournal
 
Performance Analysis of DV-Hop Localization Using Voronoi Approach
Performance Analysis of DV-Hop Localization Using Voronoi ApproachPerformance Analysis of DV-Hop Localization Using Voronoi Approach
Performance Analysis of DV-Hop Localization Using Voronoi ApproachIJMER
 
On the analysis of received signal strength indicator from ESP8266
On the analysis of received signal strength indicator from ESP8266On the analysis of received signal strength indicator from ESP8266
On the analysis of received signal strength indicator from ESP8266journalBEEI
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
Analysis of different digital filters for received signal strength indicator
Analysis of different digital filters for received signal strength indicatorAnalysis of different digital filters for received signal strength indicator
Analysis of different digital filters for received signal strength indicatorjournalBEEI
 

Similar to IN4252_Smart_Phone_Sensing (20)

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Expert system design for elastic scattering neutrons optical model using bpnn
Expert system design for elastic scattering neutrons optical model using bpnnExpert system design for elastic scattering neutrons optical model using bpnn
Expert system design for elastic scattering neutrons optical model using bpnn
 
Location estimation in zig bee network based on fingerprinting
Location estimation in zig bee network based on fingerprintingLocation estimation in zig bee network based on fingerprinting
Location estimation in zig bee network based on fingerprinting
 
Max_Poster_FINAL
Max_Poster_FINALMax_Poster_FINAL
Max_Poster_FINAL
 
Bj4103381384
Bj4103381384Bj4103381384
Bj4103381384
 
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...
Performance Analysis of Distributed Spatial Multiplexing with Multi-hop Ampli...
 
Accurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point techniqueAccurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point technique
 
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...
EMBC'13 Poster Presentation on "A Bio-Inspired Cooperative Algorithm for Dist...
 
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORKPERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
 
A New Approach for Error Reduction in Localization for Wireless Sensor Networks
A New Approach for Error Reduction in Localization for Wireless Sensor NetworksA New Approach for Error Reduction in Localization for Wireless Sensor Networks
A New Approach for Error Reduction in Localization for Wireless Sensor Networks
 
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSING
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSINGSENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSING
SENSOR NETWORKS BASED ON DISTRIBUTED WIRELESS SENSING
 
Efficiency of Neural Networks Study in the Design of Trusses
Efficiency of Neural Networks Study in the Design of TrussesEfficiency of Neural Networks Study in the Design of Trusses
Efficiency of Neural Networks Study in the Design of Trusses
 
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay Network
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay NetworkPerformance Evaluation Of Adaptive Array Antennas In Cognitive Relay Network
Performance Evaluation Of Adaptive Array Antennas In Cognitive Relay Network
 
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay Network
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay NetworkPerformance Evaluation of Adaptive Array Antennas in Cognitive Relay Network
Performance Evaluation of Adaptive Array Antennas in Cognitive Relay Network
 
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
PERFORMANCE EVALUATION OF ADAPTIVE ARRAY ANTENNAS IN COGNITIVE RELAY NETWORK
 
Performance Analysis of DV-Hop Localization Using Voronoi Approach
Performance Analysis of DV-Hop Localization Using Voronoi ApproachPerformance Analysis of DV-Hop Localization Using Voronoi Approach
Performance Analysis of DV-Hop Localization Using Voronoi Approach
 
On the analysis of received signal strength indicator from ESP8266
On the analysis of received signal strength indicator from ESP8266On the analysis of received signal strength indicator from ESP8266
On the analysis of received signal strength indicator from ESP8266
 
icarsn
icarsnicarsn
icarsn
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Analysis of different digital filters for received signal strength indicator
Analysis of different digital filters for received signal strength indicatorAnalysis of different digital filters for received signal strength indicator
Analysis of different digital filters for received signal strength indicator
 

IN4252_Smart_Phone_Sensing

  • 1. Second Report IN4254 Smart Phone Sensing 27 May, 2014 Lie Yen Cheung 1358219 L.Y.Cheung-1@student.tudelft.nl Hong Huang 4281942 H.Huang-3@student.tudelft.nl In this report we describe how we use Bayesian Inference for localization in our application. First we explain how re- ceived signal strength (RSS) data is being gathered and how these data is processed. Then we describe how the radiomap can be constructed using Bayesian Inference. Moreover, the evaluation is also being explained briefly in this report and finally we discuss problems we have encountered in the last few weeks. 1. DATA COLLECTION In order to collect RSS data from the ninth floor of EWI, we implemented a simple program which makes use of the Wifi- Manager class1 provided by Android. This program writes every observable access point (AP) to a file together with the measured signal strength. We divided the floor plan of into several grids in order to gather RSS in each of the grid shown in Figure 1. In each grid we gather about 300 mea- surement points by walking in a ”S” curve through the grid for about three minutes. For each grid we collected the RSS and plotted all the available AP according with their signal strength into a graph. Figure 2 shows an example the AP distribution of grid 1. Figure 1: The grids on the floor plan. 1 http://developer.android.com/reference/android/net/wifi /WifiManager.html Figure 2: AP Distribution of grid 1. In grid 1 18 different access point can be measures. The x axis presents the measurement point and the y axis presents the RSS value. 2. DATA PROCESSING After gathering all RSS data for each grid, we started doing some filtering to remove some ”noisy” data from the dataset. First, we removed all data from AP provided less than 200 RSS data points, because we only want to take the strongest AP from each cell into consideration. Second, we sorted for each grid the remaining AP on the highest averaged RSS value, to see which AP provides the strongest RSS. Further- more we used alpha trimmer[3] filter2 to filter each dataset with α = 0.2, because this could improve the outcome our test results. 3. RADIO MAP After filtering we determined for each grid: the average RSS per access point, radio map containing the RSS frequency per AP (Figure 3, 5 are cells which are similiar while Figure 5, 6 are cells which are different) and frequency probabil- ity per AP per RSS (Figure 4). For each grid we choose the strongest access points and for each of these AP we use Mat- lab3 to estimate the parameters and confidence intervals for normal data. Afterwards, we created several histograms to represent the estimated values, Figure 7 and 8 show an ex- ample the histograms of the strongest APs of grid 6. Based 2 http://www.librow.com/articles/article-7 3 http://www.mathworks.nl/help/stats/normfit.html
  • 2. on the estimated parameters, we can determine the proba- bility mass function (pmf) for each grid, which can be used for creating the radio map. Figure 3: Radio map for grid 6, RSS frequency per AP. On the x axis the RSS values are presented, while on the y axis the access points are presented and sorted on the highest average RSS. Figure 4: Frequency probability per AP per RSS for the strongest APs of grid 6. 4. LOCALIZATION METHOD In our application we use Bayesian Inference[4][5] for local- ization. Bayesian inference is a method of inference in which Bayes’ rule is used to update the probability estimate for a hypothesis as additional evidence is acquired. The equa- tion(1) shows the Bayes rule we used with the probability that I am in cell I given that i got an RSS measurement r from access point j. p(celli/rssj r ) = p(celli) p(rssj r /celli) / p(rssj r ) (1) 4.1 Gaussian probability distribution and cumulative distribution function Gi,j(v) = v+0.5 v−0.5 e−(x−µi,j )/(2σ2 i,j ) σij √ 2π (2) Gi,j(v) is a discretization of a Gaussian probability distri- bution[4] with µi,j and standard deviation σij. P((bj, v)|si) adds a null hypothesis and normalizes the resulting distri- bution. β is small constant used to represent the probability of observing an artifact and Ni,j is normalizer such that 255 v=0 P((bj, v)|si) = 1 (3) To obtain the probability that you are in a certain grid given a WiFi level v, we need to calculate the integral for interval [v −0.5, v +0.5]. This is calculated using trapezoidal rule[1]. b a f(x) ≈ h 2 (f(xk+1) + f(xk)) (4) = b − a 2N (f(x1)+2f(x2)+2f(x3)+...+2f(xn)+f(xn+1)) (5) Here we choose 100 as N, v + 0.5 as b and v − 0.5 as a. 5. EVALUATION After testing our application based on the trained data, the outcome of the results were not as precise as we expected it to be. About 60% of the time our application determines correctly in which grid it is, based on sensing the RSS and comparing them with the trained data. However, in several cases it appears that our application points to a grid near the actual grid, thus in the ”room next door”. A reason for this appearance might be that the original access point has been moved, which leads to another observable RSS range of the AP. Another possible reason is the interference of object, for example sensing RSS while the door of the room is open. This could also lead to different observable RSS of an access point. Moreover signal variance could also an important role, because it is not guaranteed that what works now will also work tomorrow. 6. DISCUSSION Now that we have tested this, we will continue working to improve the outcomes. One thing that we could do is gath- ering new RSS (at night/different days) and combine it with our current trained data to improve the accuracy of deter- mining the correct location. Thus we use multipath fading[2] to overcome absorption effect that could cause problems. Moreover we could extent the table containing the average RSS per grid in order to have a larger dataset to train the data for more access points. Another option to improve the accuracy would be modeling variance and use least squares fit to find the optimal c1 and c2 for the linear function, where i is the signal strength: c(i) = c1 ∗ i − c2 (6)
  • 3. Figure 5: Radio map for grid 4, RSS frequency per AP. On the x axis the RSS values are presented, while on the y axis the access points are presented and sorted on the highest average RSS. 7. REFERENCES [1] K. E. Atkinson. An introduction to numerical analysis. John Wiley & Sons, 2008. [2] P. Bahl and V. N. Padmanabhan. Radar: An in-building rf-based user location and tracking system. In INFOCOM 2000. Nineteenth Annual Joint Conference of the IEEE Computer and Communications Societies. Proceedings. IEEE, volume 2, pages 775–784. Ieee, 2000. [3] J. Bednar and T. Watt. Alpha-trimmed means and their relationship to median filters. Acoustics, Speech and Signal Processing, IEEE Transactions on, 32(1):145–153, 1984. [4] A. Haeberlen, E. Flannery, A. M. Ladd, A. Rudys, D. S. Wallach, and L. E. Kavraki. Practical robust localization over large-scale 802.11 wireless networks. In Proceedings of the 10th annual international conference on Mobile computing and networking, pages 70–84. ACM, 2004. [5] M. Youssef, A. Youssef, C. Rieger, U. Shankar, and A. Agrawala. Pinpoint: An asynchronous time-based location determination system. In Proceedings of the 4th international conference on Mobile systems, applications and services, pages 165–176. ACM, 2006. Figure 6: Radio map for grid 15, RSS frequency per AP. On the x axis the RSS values are presented, while on the y axis the access points are presented and sorted on the highest average RSS. Figure 7: histograms for AP mfold-dlink 00:26:5a:a9:99:46 (Grid 6) Figure 8: histograms for AP tudelft-dastud 00:1b:90:76:d3:f4 (Grid 6).