SlideShare a Scribd company logo
1 of 30
Occupancy level
estimation using
PIR sensors only
BASTIEN PIETROPAOLI,
DAVID ROJAS, PABLO CORBALAN, KIERAN DELANEY, DIRK PESCH
What’s occupancy?
 Three dimensions
 Most common:
• Binary/Head counts
• At the room level
• Time resolution app dependent
 Heisenberg’s principle
• Δoccupants × Δtime × Δspace ≥ min. cost
• Costs: $$$ and privacy
15/02/2016 BASTIEN PIETROPAOLI 2
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 3
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 4
Sensors used for occupancy detection
 CO2 / VOC
 Pros: Detect people independently of their activity,
• Cons: Expensive, low time resolution, not suitable for open spaces, highly sensitive to ventilation
 PIRs
• Pros: Cheap, already deployed, well-known
• Cons: Binary events, noisy peaks, cannot detect still people
 Sound
• Pros: ?
• Cons: Sensitive to external noises
 Cameras
• Pros: Highly reliable
• Cons: Privacy concerns, sensitive to obstruction and luminosity changes, computationally demanding
15/02/2016 BASTIEN PIETROPAOLI 5
Existing approaches (1/3)
 Counters at key places
• Pairs of PIR sensors
• Modified PIR sensors
• Cameras
• Wireless sensing
 Pros
• Simple in principle
• Cost effective
 Cons
• Error prone
• Propagated errors
15/02/2016 BASTIEN PIETROPAOLI 6
Zappi et al. 2010 Lin et al. 2011
Erickson et al. 2013
Hutchins et al. 2007
Existing approaches (2/3)
 Costless methods
• DHCP monitoring
• Laptop monitoring
• Calendars monitoring
• Wi-Fi monitoring
 Pros
• No new hardware required
 Cons
• Low time/space resolution
• Very low accuracy
• Potential privacy concerns
15/02/2016 BASTIEN PIETROPAOLI 7
Melfi et al. 2011
Martani et al. 2012
Existing approaches (3/3)
 Artificial intelligence
• Neural networks
• Decision trees
• Hidden Markov models
• Classification
• Topic identification
• Graphical models
 Pros
• Reliable
 Cons
• Massive training sets
• Complex modelling
• Meaningless modelling
15/02/2016 BASTIEN PIETROPAOLI 8
Ekwevugbe et al. 2013
Hailemariam et al. 2011
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 9
Seeking a simpler solution
Required qualities
• Cheap
• Short training set
• Simple models
• Privacy friendly
• Reliable head counts
15/02/2016 BASTIEN PIETROPAOLI 10
The solution
we need!
Our (ridiculously) small deployment
 PIR sensors
• One office
• Two sensors
• Four people
 First to test binary occupancy
• Integration to Wi-Fi sniffer project
• Indoor localisation improvement
15/02/2016 BASTIEN PIETROPAOLI 11
Save energy, keep reactivity
 Wireless sensor nodes
• Limited batteries
• Wireless com’ consuming too much
 Needs
• Reactivity
• All the events
 Solution
• Send a sequence start message
• A message every 5s maximum
• Over 11 days: 99727 msgs sent for 198842 events
15/02/2016 BASTIEN PIETROPAOLI 12
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 13
Binary occupancy, the classic (1/2)
15/02/2016 BASTIEN PIETROPAOLI 14
= bastard!
Binary occupancy, the classic (2/2)
15/02/2016 BASTIEN PIETROPAOLI 15
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 16
What features?
 Intuition
• More people = more motion events
• Integration might help
• Take the number of events!
 Enough data?
 Correlated enough?
15/02/2016 BASTIEN PIETROPAOLI 17
Int.
time 15s 30s 60s 90s 300s 900s 1800s
Corr. 0.741 0.803 0.846 0.866 0.909 0.929 0.928
Machine learning?
 Supervised, unsupervised?
 Which method?
 Training set?
 Enough features?
 Let’s test the simplest: linear
regression
15/02/2016 BASTIEN PIETROPAOLI 18
My colleagues
when I explain
how to use it.
Ground truth system
made of two buttons.
Linear regression, the simplest
 A matrix of features: nb of motion events
at various degrees
 A vector of real measurements: our
occupancy ground truth
 A closed-form solution
 Super fast prediction!
15/02/2016 BASTIEN PIETROPAOLI 19
𝑋 =
1 𝑥1,1 ⋯ 𝑥1,𝑛
⋮ ⋱ ⋮
1 𝑥 𝑚,1 ⋯ 𝑥 𝑚,𝑛
𝑌 =
𝑦1
⋮
𝑦 𝑚
Θ =
𝜃0
⋮
𝜃 𝑛
= (𝑋 𝑇
𝑋)−1
𝑋 𝑇
𝑌
𝑌 = 𝑋Θ 𝑦𝑖 = 𝜃0 +
𝑗=1
𝑛
𝜃𝑗. 𝑥𝑖,𝑗with
Some results
15/02/2016 BASTIEN PIETROPAOLI 20
Some results (rounded)
15/02/2016 BASTIEN PIETROPAOLI 21
Visualising the results (1/4)
 Seeking the best parameter combination
• Integration time
• Degree of the polynomial used
 Various criteria
• RMSE
• Accuracy
• Accuracy with tolerance
 Results averaged over all the days used to learn
15/02/2016 BASTIEN PIETROPAOLI 22
Visualising the results (2/4)
 RMSE
• Good estimate mixing both mean error
and standard deviation of the error
 Best
• Degree 2
• 900s integration
15/02/2016 BASTIEN PIETROPAOLI 23
Visualising the results (3/4)
 Accuracy (when rounded)
• Proportion of correct estimates
 Best
• Degree 1
• 900s integration
15/02/2016 BASTIEN PIETROPAOLI 24
Visualising the results (4/4)
 Accuracy with tolerance 1
• Take the floor or the ceiling of the
estimates
• Discriminate binary occupancy
 Best
 Degree 2
 900s integration
15/02/2016 BASTIEN PIETROPAOLI 25
Does the day matter?
Acceptable difference between worst and best day
 The best day tends to be the same for all the
parameter sets
 The ordering of parameter sets tend to be
respected for worst, average and best
15/02/2016 BASTIEN PIETROPAOLI 26
Int. Time Worst Average Best
15s 75.19% 77.08% 77.77%
30s 76.68% 78.97% 80.18%
45s 77.13% 79.49% 81.04%
60s 77.68% 79.83% 81.59%
90s 78.04% 79.99% 81.95%
120s 78.47% 80.18% 82.36%
150s 78.41% 80.29% 82.31%
180s 78.38% 80.33% 82.37%
300s 78.09% 80.43% 82.39%
600s 79.02% 81.30% 83.42%
900s 79.29% 81.56% 83.63%
1200s 79.66% 81.45% 83.42%
1800s 78.86% 81.09% 82.83%
Summary
 Existing approaches
• Sensor used
• Example of existing approaches
 Our approach
• Seeking a simpler solution
• Small deployment
• Saving energy
 Binary occupancy, the classic
 Machine learning
• What features?
• Linear regression
• Results
• Exploring the parameters
 Pros and cons/Conclusion
15/02/2016 BASTIEN PIETROPAOLI 27
Pros and cons
Requires only one type of sensor
 Well-known sensors
 Cheap and commonly deployed sensors
 Simple model
 Computationally extra light
 Accurate with a small training set
 Sensitive to sensor placement
 Model might be specific to the room
 Might not work in all types of environments
15/02/2016 BASTIEN PIETROPAOLI 28
Conclusion
 We did it!
• Small training set
• Computationally light
• Model easily understood
• Cheap sensors
• Acceptable accuracy
15/02/2016 BASTIEN PIETROPAOLI 29
Thanks for your
attention! Questions?
CONTACT: BASTIEN.PIETROPAOLI@GMAIL.COM/@CIT.IE
15/02/2016 BASTIEN PIETROPAOLI 30

More Related Content

Similar to Occupancy level estimation using pir sensors only

5 Practical Steps to a Successful Deep Learning Research
5 Practical Steps to a Successful  Deep Learning Research5 Practical Steps to a Successful  Deep Learning Research
5 Practical Steps to a Successful Deep Learning ResearchBrodmann17
 
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...Big Data Spain
 
PLOTCON NYC: Interactive Visual Statistics on Massive Datasets
PLOTCON NYC: Interactive Visual Statistics on Massive DatasetsPLOTCON NYC: Interactive Visual Statistics on Massive Datasets
PLOTCON NYC: Interactive Visual Statistics on Massive DatasetsPlotly
 
Optimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesOptimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesAlkis Vazacopoulos
 
The Effect of Third Party Implementations on Reproducibility
The Effect of Third Party Implementations on ReproducibilityThe Effect of Third Party Implementations on Reproducibility
The Effect of Third Party Implementations on ReproducibilityBalázs Hidasi
 
Anton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQBAnton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQBIevgenii Katsan
 
RIPE Atlas - Cisco Workshop
RIPE Atlas - Cisco WorkshopRIPE Atlas - Cisco Workshop
RIPE Atlas - Cisco WorkshopMassimo Candela
 
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender Systems
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender SystemsHybrid Solution of the Cold-Start Problem in Context-Aware Recommender Systems
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender SystemsMatthias Braunhofer
 
Improve Estimation maturity using Functional Size Measurement and Historical ...
Improve Estimation maturity using Functional Size Measurement and Historical ...Improve Estimation maturity using Functional Size Measurement and Historical ...
Improve Estimation maturity using Functional Size Measurement and Historical ...Harold van Heeringen
 
Ambient Intelligence Design Process
Ambient Intelligence Design ProcessAmbient Intelligence Design Process
Ambient Intelligence Design ProcessFulvio Corno
 
Autotestcon 2016
Autotestcon 2016Autotestcon 2016
Autotestcon 2016Jack Amsell
 
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...SPLCouncil
 
Experimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles BakerExperimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles BakerDatabricks
 
[UPDATE] Udacity webinar on Recommendation Systems
[UPDATE] Udacity webinar on Recommendation Systems[UPDATE] Udacity webinar on Recommendation Systems
[UPDATE] Udacity webinar on Recommendation SystemsAxel de Romblay
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsScott Clark
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsSigOpt
 
LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0DanBrown980551
 
Improving the cosmic approximate sizing using the fuzzy logic epcu model al...
Improving the cosmic approximate sizing using the fuzzy logic epcu model   al...Improving the cosmic approximate sizing using the fuzzy logic epcu model   al...
Improving the cosmic approximate sizing using the fuzzy logic epcu model al...IWSM Mensura
 

Similar to Occupancy level estimation using pir sensors only (20)

5 Practical Steps to a Successful Deep Learning Research
5 Practical Steps to a Successful  Deep Learning Research5 Practical Steps to a Successful  Deep Learning Research
5 Practical Steps to a Successful Deep Learning Research
 
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...
Begin at the beginning: Feature selection for Big Data by Amparo Alonso at Bi...
 
PLOTCON NYC: Interactive Visual Statistics on Massive Datasets
PLOTCON NYC: Interactive Visual Statistics on Massive DatasetsPLOTCON NYC: Interactive Visual Statistics on Massive Datasets
PLOTCON NYC: Interactive Visual Statistics on Massive Datasets
 
Optimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesOptimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studies
 
The Effect of Third Party Implementations on Reproducibility
The Effect of Third Party Implementations on ReproducibilityThe Effect of Third Party Implementations on Reproducibility
The Effect of Third Party Implementations on Reproducibility
 
LEFTERIS_PROJECT_FINAL
LEFTERIS_PROJECT_FINALLEFTERIS_PROJECT_FINAL
LEFTERIS_PROJECT_FINAL
 
Anton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQBAnton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQB
 
Final
FinalFinal
Final
 
RIPE Atlas - Cisco Workshop
RIPE Atlas - Cisco WorkshopRIPE Atlas - Cisco Workshop
RIPE Atlas - Cisco Workshop
 
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender Systems
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender SystemsHybrid Solution of the Cold-Start Problem in Context-Aware Recommender Systems
Hybrid Solution of the Cold-Start Problem in Context-Aware Recommender Systems
 
Improve Estimation maturity using Functional Size Measurement and Historical ...
Improve Estimation maturity using Functional Size Measurement and Historical ...Improve Estimation maturity using Functional Size Measurement and Historical ...
Improve Estimation maturity using Functional Size Measurement and Historical ...
 
Ambient Intelligence Design Process
Ambient Intelligence Design ProcessAmbient Intelligence Design Process
Ambient Intelligence Design Process
 
Autotestcon 2016
Autotestcon 2016Autotestcon 2016
Autotestcon 2016
 
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...
SPLC 2019 Summit: Charting a Path to Leadership: The Journey of Three Sustain...
 
Experimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles BakerExperimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles Baker
 
[UPDATE] Udacity webinar on Recommendation Systems
[UPDATE] Udacity webinar on Recommendation Systems[UPDATE] Udacity webinar on Recommendation Systems
[UPDATE] Udacity webinar on Recommendation Systems
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning Models
 
Using Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning ModelsUsing Bayesian Optimization to Tune Machine Learning Models
Using Bayesian Optimization to Tune Machine Learning Models
 
LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0LF Energy Webinar - Unveiling OpenEEMeter 4.0
LF Energy Webinar - Unveiling OpenEEMeter 4.0
 
Improving the cosmic approximate sizing using the fuzzy logic epcu model al...
Improving the cosmic approximate sizing using the fuzzy logic epcu model   al...Improving the cosmic approximate sizing using the fuzzy logic epcu model   al...
Improving the cosmic approximate sizing using the fuzzy logic epcu model al...
 

Recently uploaded

Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
Porella : features, morphology, anatomy, reproduction etc.
Porella : features, morphology, anatomy, reproduction etc.Porella : features, morphology, anatomy, reproduction etc.
Porella : features, morphology, anatomy, reproduction etc.Cherry
 
Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Cherry
 
FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.takadzanijustinmaime
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxMohamedFarag457087
 
Concept of gene and Complementation test.pdf
Concept of gene and Complementation test.pdfConcept of gene and Complementation test.pdf
Concept of gene and Complementation test.pdfCherry
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCherry
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACherry
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.Cherry
 
Genome organization in virus,bacteria and eukaryotes.pptx
Genome organization in virus,bacteria and eukaryotes.pptxGenome organization in virus,bacteria and eukaryotes.pptx
Genome organization in virus,bacteria and eukaryotes.pptxCherry
 
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRingsTransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRingsSérgio Sacani
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptxCherry
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.Cherry
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxANSARKHAN96
 

Recently uploaded (20)

Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
Porella : features, morphology, anatomy, reproduction etc.
Porella : features, morphology, anatomy, reproduction etc.Porella : features, morphology, anatomy, reproduction etc.
Porella : features, morphology, anatomy, reproduction etc.
 
Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Plasmid: types, structure and functions.
Plasmid: types, structure and functions.
 
FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
Concept of gene and Complementation test.pdf
Concept of gene and Complementation test.pdfConcept of gene and Complementation test.pdf
Concept of gene and Complementation test.pdf
 
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICEPATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptx
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNA
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.
 
Genome organization in virus,bacteria and eukaryotes.pptx
Genome organization in virus,bacteria and eukaryotes.pptxGenome organization in virus,bacteria and eukaryotes.pptx
Genome organization in virus,bacteria and eukaryotes.pptx
 
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRingsTransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
TransientOffsetin14CAftertheCarringtonEventRecordedbyPolarTreeRings
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.Cyathodium bryophyte: morphology, anatomy, reproduction etc.
Cyathodium bryophyte: morphology, anatomy, reproduction etc.
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
 

Occupancy level estimation using pir sensors only

  • 1. Occupancy level estimation using PIR sensors only BASTIEN PIETROPAOLI, DAVID ROJAS, PABLO CORBALAN, KIERAN DELANEY, DIRK PESCH
  • 2. What’s occupancy?  Three dimensions  Most common: • Binary/Head counts • At the room level • Time resolution app dependent  Heisenberg’s principle • Δoccupants × Δtime × Δspace ≥ min. cost • Costs: $$$ and privacy 15/02/2016 BASTIEN PIETROPAOLI 2
  • 3. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 3
  • 4. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 4
  • 5. Sensors used for occupancy detection  CO2 / VOC  Pros: Detect people independently of their activity, • Cons: Expensive, low time resolution, not suitable for open spaces, highly sensitive to ventilation  PIRs • Pros: Cheap, already deployed, well-known • Cons: Binary events, noisy peaks, cannot detect still people  Sound • Pros: ? • Cons: Sensitive to external noises  Cameras • Pros: Highly reliable • Cons: Privacy concerns, sensitive to obstruction and luminosity changes, computationally demanding 15/02/2016 BASTIEN PIETROPAOLI 5
  • 6. Existing approaches (1/3)  Counters at key places • Pairs of PIR sensors • Modified PIR sensors • Cameras • Wireless sensing  Pros • Simple in principle • Cost effective  Cons • Error prone • Propagated errors 15/02/2016 BASTIEN PIETROPAOLI 6 Zappi et al. 2010 Lin et al. 2011 Erickson et al. 2013 Hutchins et al. 2007
  • 7. Existing approaches (2/3)  Costless methods • DHCP monitoring • Laptop monitoring • Calendars monitoring • Wi-Fi monitoring  Pros • No new hardware required  Cons • Low time/space resolution • Very low accuracy • Potential privacy concerns 15/02/2016 BASTIEN PIETROPAOLI 7 Melfi et al. 2011 Martani et al. 2012
  • 8. Existing approaches (3/3)  Artificial intelligence • Neural networks • Decision trees • Hidden Markov models • Classification • Topic identification • Graphical models  Pros • Reliable  Cons • Massive training sets • Complex modelling • Meaningless modelling 15/02/2016 BASTIEN PIETROPAOLI 8 Ekwevugbe et al. 2013 Hailemariam et al. 2011
  • 9. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 9
  • 10. Seeking a simpler solution Required qualities • Cheap • Short training set • Simple models • Privacy friendly • Reliable head counts 15/02/2016 BASTIEN PIETROPAOLI 10 The solution we need!
  • 11. Our (ridiculously) small deployment  PIR sensors • One office • Two sensors • Four people  First to test binary occupancy • Integration to Wi-Fi sniffer project • Indoor localisation improvement 15/02/2016 BASTIEN PIETROPAOLI 11
  • 12. Save energy, keep reactivity  Wireless sensor nodes • Limited batteries • Wireless com’ consuming too much  Needs • Reactivity • All the events  Solution • Send a sequence start message • A message every 5s maximum • Over 11 days: 99727 msgs sent for 198842 events 15/02/2016 BASTIEN PIETROPAOLI 12
  • 13. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 13
  • 14. Binary occupancy, the classic (1/2) 15/02/2016 BASTIEN PIETROPAOLI 14 = bastard!
  • 15. Binary occupancy, the classic (2/2) 15/02/2016 BASTIEN PIETROPAOLI 15
  • 16. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 16
  • 17. What features?  Intuition • More people = more motion events • Integration might help • Take the number of events!  Enough data?  Correlated enough? 15/02/2016 BASTIEN PIETROPAOLI 17 Int. time 15s 30s 60s 90s 300s 900s 1800s Corr. 0.741 0.803 0.846 0.866 0.909 0.929 0.928
  • 18. Machine learning?  Supervised, unsupervised?  Which method?  Training set?  Enough features?  Let’s test the simplest: linear regression 15/02/2016 BASTIEN PIETROPAOLI 18 My colleagues when I explain how to use it. Ground truth system made of two buttons.
  • 19. Linear regression, the simplest  A matrix of features: nb of motion events at various degrees  A vector of real measurements: our occupancy ground truth  A closed-form solution  Super fast prediction! 15/02/2016 BASTIEN PIETROPAOLI 19 𝑋 = 1 𝑥1,1 ⋯ 𝑥1,𝑛 ⋮ ⋱ ⋮ 1 𝑥 𝑚,1 ⋯ 𝑥 𝑚,𝑛 𝑌 = 𝑦1 ⋮ 𝑦 𝑚 Θ = 𝜃0 ⋮ 𝜃 𝑛 = (𝑋 𝑇 𝑋)−1 𝑋 𝑇 𝑌 𝑌 = 𝑋Θ 𝑦𝑖 = 𝜃0 + 𝑗=1 𝑛 𝜃𝑗. 𝑥𝑖,𝑗with
  • 21. Some results (rounded) 15/02/2016 BASTIEN PIETROPAOLI 21
  • 22. Visualising the results (1/4)  Seeking the best parameter combination • Integration time • Degree of the polynomial used  Various criteria • RMSE • Accuracy • Accuracy with tolerance  Results averaged over all the days used to learn 15/02/2016 BASTIEN PIETROPAOLI 22
  • 23. Visualising the results (2/4)  RMSE • Good estimate mixing both mean error and standard deviation of the error  Best • Degree 2 • 900s integration 15/02/2016 BASTIEN PIETROPAOLI 23
  • 24. Visualising the results (3/4)  Accuracy (when rounded) • Proportion of correct estimates  Best • Degree 1 • 900s integration 15/02/2016 BASTIEN PIETROPAOLI 24
  • 25. Visualising the results (4/4)  Accuracy with tolerance 1 • Take the floor or the ceiling of the estimates • Discriminate binary occupancy  Best  Degree 2  900s integration 15/02/2016 BASTIEN PIETROPAOLI 25
  • 26. Does the day matter? Acceptable difference between worst and best day  The best day tends to be the same for all the parameter sets  The ordering of parameter sets tend to be respected for worst, average and best 15/02/2016 BASTIEN PIETROPAOLI 26 Int. Time Worst Average Best 15s 75.19% 77.08% 77.77% 30s 76.68% 78.97% 80.18% 45s 77.13% 79.49% 81.04% 60s 77.68% 79.83% 81.59% 90s 78.04% 79.99% 81.95% 120s 78.47% 80.18% 82.36% 150s 78.41% 80.29% 82.31% 180s 78.38% 80.33% 82.37% 300s 78.09% 80.43% 82.39% 600s 79.02% 81.30% 83.42% 900s 79.29% 81.56% 83.63% 1200s 79.66% 81.45% 83.42% 1800s 78.86% 81.09% 82.83%
  • 27. Summary  Existing approaches • Sensor used • Example of existing approaches  Our approach • Seeking a simpler solution • Small deployment • Saving energy  Binary occupancy, the classic  Machine learning • What features? • Linear regression • Results • Exploring the parameters  Pros and cons/Conclusion 15/02/2016 BASTIEN PIETROPAOLI 27
  • 28. Pros and cons Requires only one type of sensor  Well-known sensors  Cheap and commonly deployed sensors  Simple model  Computationally extra light  Accurate with a small training set  Sensitive to sensor placement  Model might be specific to the room  Might not work in all types of environments 15/02/2016 BASTIEN PIETROPAOLI 28
  • 29. Conclusion  We did it! • Small training set • Computationally light • Model easily understood • Cheap sensors • Acceptable accuracy 15/02/2016 BASTIEN PIETROPAOLI 29
  • 30. Thanks for your attention! Questions? CONTACT: BASTIEN.PIETROPAOLI@GMAIL.COM/@CIT.IE 15/02/2016 BASTIEN PIETROPAOLI 30

Editor's Notes

  1. Here, real-time head counts at the room level.
  2. Peaks around 9pm: not noise, the security guard not tapping!
  3. Increased validity time = increased presence recall, reduced precision
  4. Occulted (0, 0) as it would cover the entire figure.
  5. Supervised or unsupervised: unsupervised might be difficult, impossible to distinguish clear classes. Which method: certainly not classification, we need to infer a number, not a class Training set: shouldn’t be too massive, hard to acquire ground truth
  6. Used one day to learn the parameters, here, the August 10th. Overall results not too bad. RMSE of 0.9 over the presence time is equivalent to the best results found in the bibliography. Nights and days are correctly discriminated. Peaks when people arrive in the morning. Might be due to sensor placement, with overlapping fields of view.
  7. Criteria: no clear standard criterion in the literature.
  8. If groundtruth == 0 and estimate ceiling == 1, not okay. Needs to be rounded at 0. If groundtruth >= 1 and estimate floor == 0, not okay. Needs to be rounded at groundtruth.
  9. Table for degree 2
  10. Sensor placement: artificially increased event counts due to overlapping fields of views. Specific: to be further experimented. Environments: for instance, in a kitchen, would it work? Different types of activites will induce different levels of counts, might work, might not.
  11. Cheap sensors commonly deployed in recent buildings. Small training set: 1 day is doable, even for each room. Can even be redone if necessary. Computationally light, scalable, a whole building can be managed by an embedded PC. Accuracy at least as good as anything else found in the literature.