SlideShare a Scribd company logo
Smart buildings
Cameron Roach
9 November 2017
Overview
Smart buildings
Analysing the data
Building an end product
·
·
·
2/26
Smart buildings
Trying to be smart with commercial building data
How do commercial buildings work?
Facility managers (FMs) oversee the day to day operations of a commercial
building.
Used to be a whole team!
Shrinking maintenance budgets and increasing complexity makes this a
challenging problem.
Building operations are automated by Building Management Systems (BMSs).
·
·
·
·
4/26
What is a BMS?
Commercial buildings contain Building Management Systems (BMSs) to
improve indoor environment quality and reduce energy consumption.
A BMS will control heating, cooling, ventilation and lighting systems.
Contain thousands of points for sensors (temperature, humidity), actuators
(fans, motors, dampers) and software (schedule, trend logs, calculations).
A BMS will monitor sensors and adjust actuators based on their readings.
For example, if high temperatures are recorded in a room, dampers will open
and air handlers will modulate to provide cooler air.
·
·
·
·
·
5/26
6/26
How does this work in practice?
Vendor sets up a BMS. The BMS will behave in a certain way based predefined
rules.
BMS systems are costly to implement and to modify. Can require a lot of
coding to change the BMS's behaviour.
The bigger the BMS is the harder it is to find what matters. Locating problems
is difficult and time-consuming.
For example, a heating valve might be locked open. If this isn't detected the
BMS will cool the room to reach the required temperature.
·
·
·
·
7/26
So what can we do?
Help facility managers identify if a BMS is operating optimally.
Buildings Alive's goal is to
·
Fault detection
Diagnostics
-
-
·
Collect BMS data using our E2 device
Analyse and transform data into useful information.
Help guide FM's to find out what's wrong.
Provide timely and actionable information.
-
-
-
-
8/26
Analysing the data
Feature generation, dimensionality reduction, clustering
10/26
11/26
Feature generation
Dealing with thousands of unevenly spaced time-series.
Uneven spacing in time-series presents difficulties.
Rather than rounding or imputing data we can generate features and work
with them instead.
·
·
·
12/26
What features might be useful?
Feature generation for time-series clustering is discussed in Wang, Smith, and Hyndman (2006). Some
useful features for our case might be
Normalise these features using their median, , and interquartile range, ,
Mean
Standard deviation
Kurtosis
Skewness
Biggest change ( )
Smallest change ( )
Number of "mean crossings" per day
·
·
·
·
· { − }maxi
∣
∣yti
yti−1
∣
∣
· { − }mini
∣
∣yti
yti−1
∣
∣
·
M IQR
= .y
∗
y − M
IQR
13/26
14/26
15/26
Dimension reduction and clustering
Too many sensors to visualise easily.
Use dimensionality reduction.
Identify clusters and singletons.
·
·
·
16/26
Which clustering algorithm?
Method Advantages Disadvantages
K-means Easy to learn. Outperformed by other algorithms.
Hierarchical clustering
Informative - produces a
dendrogram.
Not suitable for large data sets -
time complexity.
Affinity propagation
Automatically determines number of
clusters.
Not suitable for large data sets - time
complexity.
Spectral clustering Good performance.
See Nadler and Galun (2007). Time complexity
of .
( log(n))n
2
( t)n
2
( )n
3
17/26
Image: (“Comparing Different Clustering Algorithms on Toy Datasets” 2017)
18/26
Obligatory mathematics slide
Spectral clustering
We are given points and a similarity matrix . Define the weight matrix, degree matrix and
graph Laplacian as
where,
Once is determined find the eigenvectors corresponding to the smallest eigenvalues of .
Finally, cluster the rows of using K-means.
n ∈xi ℝ
p
S
W
D
L
= ( ) ∈wij ℝ
n×n
= diag ( )di
= D − W,
is the weight between nodes and based on , and,
is the weighted degree of node .
· wij i j S
· =di ∑
n
j=1
wij i
L m Zn×m m L
Zn×m
19/26
Building a prototype
Prototyping with Dash
Dash
Recently released by Plotly.
Easily build web applications for
data analytics.
Open sourced under the MIT
license.
Works nicely with the existing Plotly
graphing libraries.
·
·
·
·
Python equivalent of R's Shiny.·
21/26
22/26
Simple example
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
app = dash.Dash()
app.layout = html.Div([
dcc.Dropdown(id='my-dropdown',
options=[{'label': 'Option A', 'value': 'A'},
{'label': 'Option B', 'value': 'B'}]),
dcc.Graph(id='my-graph')
])
@app.callback(Output('my-graph', 'figure'),
[Input('my-dropdown', 'value')])
def update_graph(dd_value):
df_query = df.query("Variable == @dd_value")
return {'data': [{'x': df_query.x, 'y': df_query.y}]}
if __name__ == '__main__':
app.run_server()
23/26
Demonstration
24/26
Thank you for listening!
Any questions?
References
“Comparing Different Clustering Algorithms on Toy Datasets.” 2017. http://scikit-
learn.org/stable/auto_examples/cluster/plot_cluster_comparison.html.
Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2001. The Elements of
Statistical Learning. Vol. 1. Springer series in statistics New York.
Murphy, Kevin P. 2012. Machine Learning: A Probabilistic Perspective. MIT Press.
Nadler, Boaz, and Meirav Galun. 2007. “Fundamental Limitations of Spectral
Clustering.” In Advances in Neural Information Processing Systems 19, edited by P B
Schölkopf, J C Platt, and T Hoffman, 1017–24. MIT Press.
Von Luxburg, Ulrike. 2007. “A Tutorial on Spectral Clustering.” Statistics and
Computing.
Wang, Xiaozhe, Kate Smith, and Rob Hyndman. 2006. “Characteristic-Based
Clustering for Time Series Data.” Data Mining and Knowledge Discovery 13 (3): 335–
64.
26/26

More Related Content

Similar to Smart buildings

An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
Robert Grossman
 
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
Robert Grossman
 
autoTVM
autoTVMautoTVM
autoTVM
Yi-Wen Hung
 
GREDOR
GREDORGREDOR
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias BoehmApache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Arvind Surve
 
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias BoehmApache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Arvind Surve
 
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
Martin Loetzsch
 
A detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning AlgorithmsA detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning Algorithms
NIET Journal of Engineering & Technology (NIETJET)
 
Ijariie1117 volume 1-issue 1-page-25-27
Ijariie1117 volume 1-issue 1-page-25-27Ijariie1117 volume 1-issue 1-page-25-27
Ijariie1117 volume 1-issue 1-page-25-27
IJARIIE JOURNAL
 
IRJET- Load Balancing and Crash Management in IoT Environment
IRJET-  	  Load Balancing and Crash Management in IoT EnvironmentIRJET-  	  Load Balancing and Crash Management in IoT Environment
IRJET- Load Balancing and Crash Management in IoT Environment
IRJET Journal
 
Dask glm-scipy2017-final
Dask glm-scipy2017-finalDask glm-scipy2017-final
Dask glm-scipy2017-final
Hussain Sultan
 
Comparative study of optimization algorithms on convolutional network for aut...
Comparative study of optimization algorithms on convolutional network for aut...Comparative study of optimization algorithms on convolutional network for aut...
Comparative study of optimization algorithms on convolutional network for aut...
IJECEIAES
 
CoolSim Overview
CoolSim OverviewCoolSim Overview
CoolSim Overview
paulbemis
 
A Parallel Data Distribution Management Algorithm
A Parallel Data Distribution Management AlgorithmA Parallel Data Distribution Management Algorithm
A Parallel Data Distribution Management Algorithm
Gabriele D'Angelo
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Vivian S. Zhang
 
The GREDOR project. Redesigning the decision chain for managing distribution ...
The GREDOR project. Redesigning the decision chain for managing distribution ...The GREDOR project. Redesigning the decision chain for managing distribution ...
The GREDOR project. Redesigning the decision chain for managing distribution ...
Université de Liège (ULg)
 
A04230105
A04230105A04230105
A04230105
ijceronline
 
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
Sandia National Laboratories: Energy & Climate: Renewables
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
Dilum Bandara
 

Similar to Smart buildings (20)

An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
An Introduction to Cloud Computing by Robert Grossman 08-06-09 (v19)
 
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
The Impact of Cloud Computing on Predictive Analytics 7-29-09 v5
 
autoTVM
autoTVMautoTVM
autoTVM
 
GREDOR
GREDORGREDOR
GREDOR
 
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias BoehmApache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
 
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias BoehmApache SystemML Optimizer and Runtime techniques by Matthias Boehm
Apache SystemML Optimizer and Runtime techniques by Matthias Boehm
 
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
Project A Data Modelling Best Practices Part II: How to Build a Data Warehouse?
 
A detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning AlgorithmsA detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning Algorithms
 
Ijariie1117 volume 1-issue 1-page-25-27
Ijariie1117 volume 1-issue 1-page-25-27Ijariie1117 volume 1-issue 1-page-25-27
Ijariie1117 volume 1-issue 1-page-25-27
 
IRJET- Load Balancing and Crash Management in IoT Environment
IRJET-  	  Load Balancing and Crash Management in IoT EnvironmentIRJET-  	  Load Balancing and Crash Management in IoT Environment
IRJET- Load Balancing and Crash Management in IoT Environment
 
Dask glm-scipy2017-final
Dask glm-scipy2017-finalDask glm-scipy2017-final
Dask glm-scipy2017-final
 
Comparative study of optimization algorithms on convolutional network for aut...
Comparative study of optimization algorithms on convolutional network for aut...Comparative study of optimization algorithms on convolutional network for aut...
Comparative study of optimization algorithms on convolutional network for aut...
 
CoolSim Overview
CoolSim OverviewCoolSim Overview
CoolSim Overview
 
Lec1
Lec1Lec1
Lec1
 
A Parallel Data Distribution Management Algorithm
A Parallel Data Distribution Management AlgorithmA Parallel Data Distribution Management Algorithm
A Parallel Data Distribution Management Algorithm
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
 
The GREDOR project. Redesigning the decision chain for managing distribution ...
The GREDOR project. Redesigning the decision chain for managing distribution ...The GREDOR project. Redesigning the decision chain for managing distribution ...
The GREDOR project. Redesigning the decision chain for managing distribution ...
 
A04230105
A04230105A04230105
A04230105
 
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
4.2_Microgrid Design Toolkit_Eddy_EPRI/SNL Microgrid
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 

Recently uploaded

Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
Areesha Ahmad
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
sonaliswain16
 
nodule formation by alisha dewangan.pptx
nodule formation by alisha dewangan.pptxnodule formation by alisha dewangan.pptx
nodule formation by alisha dewangan.pptx
alishadewangan1
 
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
Wasswaderrick3
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdfDMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
fafyfskhan251kmf
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
IshaGoswami9
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
SAMIR PANDA
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
tonzsalvador2222
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Ana Luísa Pinho
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
yqqaatn0
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
David Osipyan
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
kejapriya1
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
silvermistyshot
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Erdal Coalmaker
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 

Recently uploaded (20)

Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
 
nodule formation by alisha dewangan.pptx
nodule formation by alisha dewangan.pptxnodule formation by alisha dewangan.pptx
nodule formation by alisha dewangan.pptx
 
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdfDMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
 

Smart buildings

  • 2. Overview Smart buildings Analysing the data Building an end product · · · 2/26
  • 3. Smart buildings Trying to be smart with commercial building data
  • 4. How do commercial buildings work? Facility managers (FMs) oversee the day to day operations of a commercial building. Used to be a whole team! Shrinking maintenance budgets and increasing complexity makes this a challenging problem. Building operations are automated by Building Management Systems (BMSs). · · · · 4/26
  • 5. What is a BMS? Commercial buildings contain Building Management Systems (BMSs) to improve indoor environment quality and reduce energy consumption. A BMS will control heating, cooling, ventilation and lighting systems. Contain thousands of points for sensors (temperature, humidity), actuators (fans, motors, dampers) and software (schedule, trend logs, calculations). A BMS will monitor sensors and adjust actuators based on their readings. For example, if high temperatures are recorded in a room, dampers will open and air handlers will modulate to provide cooler air. · · · · · 5/26
  • 7. How does this work in practice? Vendor sets up a BMS. The BMS will behave in a certain way based predefined rules. BMS systems are costly to implement and to modify. Can require a lot of coding to change the BMS's behaviour. The bigger the BMS is the harder it is to find what matters. Locating problems is difficult and time-consuming. For example, a heating valve might be locked open. If this isn't detected the BMS will cool the room to reach the required temperature. · · · · 7/26
  • 8. So what can we do? Help facility managers identify if a BMS is operating optimally. Buildings Alive's goal is to · Fault detection Diagnostics - - · Collect BMS data using our E2 device Analyse and transform data into useful information. Help guide FM's to find out what's wrong. Provide timely and actionable information. - - - - 8/26
  • 9. Analysing the data Feature generation, dimensionality reduction, clustering
  • 10. 10/26
  • 11. 11/26
  • 12. Feature generation Dealing with thousands of unevenly spaced time-series. Uneven spacing in time-series presents difficulties. Rather than rounding or imputing data we can generate features and work with them instead. · · · 12/26
  • 13. What features might be useful? Feature generation for time-series clustering is discussed in Wang, Smith, and Hyndman (2006). Some useful features for our case might be Normalise these features using their median, , and interquartile range, , Mean Standard deviation Kurtosis Skewness Biggest change ( ) Smallest change ( ) Number of "mean crossings" per day · · · · · { − }maxi ∣ ∣yti yti−1 ∣ ∣ · { − }mini ∣ ∣yti yti−1 ∣ ∣ · M IQR = .y ∗ y − M IQR 13/26
  • 14. 14/26
  • 15. 15/26
  • 16. Dimension reduction and clustering Too many sensors to visualise easily. Use dimensionality reduction. Identify clusters and singletons. · · · 16/26
  • 17. Which clustering algorithm? Method Advantages Disadvantages K-means Easy to learn. Outperformed by other algorithms. Hierarchical clustering Informative - produces a dendrogram. Not suitable for large data sets - time complexity. Affinity propagation Automatically determines number of clusters. Not suitable for large data sets - time complexity. Spectral clustering Good performance. See Nadler and Galun (2007). Time complexity of . ( log(n))n 2 ( t)n 2 ( )n 3 17/26
  • 18. Image: (“Comparing Different Clustering Algorithms on Toy Datasets” 2017) 18/26
  • 19. Obligatory mathematics slide Spectral clustering We are given points and a similarity matrix . Define the weight matrix, degree matrix and graph Laplacian as where, Once is determined find the eigenvectors corresponding to the smallest eigenvalues of . Finally, cluster the rows of using K-means. n ∈xi ℝ p S W D L = ( ) ∈wij ℝ n×n = diag ( )di = D − W, is the weight between nodes and based on , and, is the weighted degree of node . · wij i j S · =di ∑ n j=1 wij i L m Zn×m m L Zn×m 19/26
  • 21. Dash Recently released by Plotly. Easily build web applications for data analytics. Open sourced under the MIT license. Works nicely with the existing Plotly graphing libraries. · · · · Python equivalent of R's Shiny.· 21/26
  • 22. 22/26
  • 23. Simple example import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import pandas as pd app = dash.Dash() app.layout = html.Div([ dcc.Dropdown(id='my-dropdown', options=[{'label': 'Option A', 'value': 'A'}, {'label': 'Option B', 'value': 'B'}]), dcc.Graph(id='my-graph') ]) @app.callback(Output('my-graph', 'figure'), [Input('my-dropdown', 'value')]) def update_graph(dd_value): df_query = df.query("Variable == @dd_value") return {'data': [{'x': df_query.x, 'y': df_query.y}]} if __name__ == '__main__': app.run_server() 23/26
  • 25. Thank you for listening! Any questions?
  • 26. References “Comparing Different Clustering Algorithms on Toy Datasets.” 2017. http://scikit- learn.org/stable/auto_examples/cluster/plot_cluster_comparison.html. Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2001. The Elements of Statistical Learning. Vol. 1. Springer series in statistics New York. Murphy, Kevin P. 2012. Machine Learning: A Probabilistic Perspective. MIT Press. Nadler, Boaz, and Meirav Galun. 2007. “Fundamental Limitations of Spectral Clustering.” In Advances in Neural Information Processing Systems 19, edited by P B Schölkopf, J C Platt, and T Hoffman, 1017–24. MIT Press. Von Luxburg, Ulrike. 2007. “A Tutorial on Spectral Clustering.” Statistics and Computing. Wang, Xiaozhe, Kate Smith, and Rob Hyndman. 2006. “Characteristic-Based Clustering for Time Series Data.” Data Mining and Knowledge Discovery 13 (3): 335– 64. 26/26