Autonomous Correction of Sensor Data Applied to Building
Autonomous Correction of Sensor Data Applied to Building Technologies Utilizing Statistical Processing Methods Energy Informatics, 2012 Atlanta, GA October 6, 2012 Charles C. Castello, Ph. D. Oak Ridge National Laboratory Oak Ridge, TN 37831 -6720 castellocc@ornl. gov Joshua R. New, Ph. D. Oak Ridge National Laboratory Oak Ridge, TN 37831 -6720 newjr@ornl. gov
Table of Contents • Background • Challenges • Methods – Statistical Techniques – Example – Experimental Dataset • Results – Best Performers • Summary – Future Work 2
Background • Energy consumption in the U. S. is a critical area of concern where residential and commercial buildings consume approximately 40% of total primary energy. • Retrofitting inefficient existing buildings with new and innovative technologies that help to curb energy consumption. – Standing seam metal roofs that exploit infrared-reflective paint pigments to boost solar reflectance – Pella® triple-pane, low emittance, Argon filled windows – Climate. Master ®’s high-efficiency, water-to-air heat pump for space conditioning – Climate. Master ®’s high-efficiency, water-to-water heat pump for hot water heating – Fantech Energy Recovery Ventilator (ERV) which replaces air inside of a home with fresh air 3
Research in Energy Efficiency • There is much research dealing with the improvement of energy efficiency in commercial buildings and residential homes. • This research includes several fundamental concerns relevant to sensors being used to collect a wide variety of variables. – Concerns include: • Accuracy • Performance • Reliability – Variables include: • Temperature • Time • Wind speed 4
ZEBRAlliance Project • Sensors are an imperative tool in analyzing these technologies and determining their impact. – Example of this is ORNL’s ZEBRAlliance Project which consists of 4 homes: • • 1 st home 279 sensors 2 nd home 279 sensors 3 rd home 321 sensors 4 th home 339 sensors The majority of these sensors are temperature, humidity, pressure, and energy. Home #2 Home #1 Home #4 Home #3 5
More on the ZEBRAlliance Project • The ZEBRAlliance Project broke ground on September 26, 2008. • Research project and multi-faceted educational campaign to influence consumers that energy efficient homes can be: – Real – Desirable – Affordable • Located in the Crossroads at Wolf Creek Subdivision in Oak Ridge, TN. • Energy savings of approximately 55 -60% compared with traditional new construction. • Data is being collected for a span of three years. • After the research period has ended, all four 6 homes will
Dealing with Large Amounts of Data • Most sensors have a 15 -minute resolution for ORNL’s ZEBRAlliance project with approximately 80 sensors having a 1 -minute resolution: – – 9, 352 data points in an hour 224, 448 in a day 1, 571, 136 in a week 81, 699, 072 in a year • Many issues arise with this amount of data points being collected in such a real-world experiment, specifically data corruption from: – Sensor failing to produce data. – Fouling of the sensor’s interface due to the environment which produces inaccurate data. – A sensor’s calibration being incorrect, producing inaccurate data. 7
Current Data Validation Methods • There are currently two approaches that are widely used for validation of data: – Analytical redundancy – Hardware redundancy • Analytical redundancy uses data from multiple sensors to predict a sensor’s value. – An example is using a temperature and humidity channel to predict heat flux. – When the number of sensors increases, the complexity of the model increases. • Hardware redundancy is not always possible due to the need for increased amount of resources: – Sensors – Data acquisition 8
Sensor Validation Techniques • Sensor data validation techniques are needed that minimizes the amount of needed resources: – Hardware – Software • Sensor data validation techniques are also required to be: – – Automated Able to handle large amounts of data Able to handle different types of data Correct missing and corrupt data • Data collected through ORNL’s ZEBRAlliance project has a maximum error rate of 14. 59% (per month) for data logger and sensor failure (does not include sensor fouling and calibration error). 9
Effects of Inaccurate Data • Data collected by sensors in residential buildings are not only used to determine the impact of energy efficiency technologies but also used for: – Control – Modeling • An example of the influence inaccurate data has on models, Nonhebel 1994 did a study of using inaccurate data to predict crop growth. – Using inaccurate data caused deviations up to 30% in simulated yields. • Studies have not been done on the influence inaccurate data has on building applications. • Using the figure in the previous slide, imagine a 14. 59% deviation in cost or simple payback for investing in an energy efficiency technology for your home. This inaccuracy is 10 substantial!
Statistical Processing Methods • Statistical methods from Bo et al. , 2009 were used to predict wireless field strength: – – Least squares Maximum likelihood estimation Segmentation averaging Threshold based • Modified to meet the needs of fault detection and sensor data prediction for building applications. • Artificial gaps are introduced into the dataset by randomly removing portions of existing data for testing the accuracy of auto-correcting algorithms. • Accomplished by randomly generating training and testing subsets: – Training set represents 70% of original dataset. 11 – Testing set represents 30% of original dataset.
Predict Missing Data • Each sensor is used as an independent variable and predicts sensor values based upon a variable-sized window of observations. • A prediction model is generated for each window of observations and correction occurs if values are missing or corrupt: – Interpolation – Extrapolation • An observation window of size w is used to predict the sensor’s data value for each time-step within the observation window. • The observation window moves forward by w time-steps (no overlap) and prediction for each sample within the observation window is calculated. • Actual value vs. predicted value is measured: – Root-mean-square error (RMSE) 12
Example of Missing Data • Let’s say we have 18 samples of temperature data with a 15 minute resolution (4 ½ hours). • However, a chunk of data is missing. • How do we correct this? – Generate a model based on data that we have obtained. – Interpolate based on that model for missing data values. Missing Data Temperature (°F) 38, 00 36, 00 34, 00 32, 00 30, 00 28, 00 26, 00 24, 00 22, 00 20, 00 212 217 222 227 Sample 232 237 242 13
Example of Predicting Data • Least squares method is used with 15 -minute temperature data with an observation window of size w=24. • Data is split into training (70%) and testing (30%) subsets. • During training, each observation window generates a model based on the training samples in that window. • The model is used to predict the behavior of temperature in that observation window. * Based on 10 th observation window. 14
What is an observation window? 1 2 3 4 5 6 7 8 9 10 11 12 82°F 80°F 79°F 85°F 84°F 88°F 87°F 89°F 88°F 85°F 84°F 82°F 15 -minute data for 3 hours 15
Performance Metrics 16
Experimental Dataset • Taken from ORNL’s ZEBRAlliance project, specifically: – Temperature (°F) “Z 09_T_ERV_IN_Avg” Temperature of ERV intake from outside – Humidity (%RH) “Z 09_RH_ERVin_Avg” Humidity of ERV intake from outside – Energy usage (Wh) “A 01_WH_fridge_tot” Energy of refrigerator • Data collected using Campbell Scientific’s CR 1000 data logger. • There are four homes in the ZEBRAlliance project. – Data was taken from the 2 nd home – During the 2010 calendar year (N=35, 040) • Technologies in home #2 – – – Advanced framing High-efficiency florescent lighting Energy Star appliances Water-to-air heat pumps (WAHP) Water-to-water heat pumps (WWHP) 17
Best Performers (Temperature Data) Temperature (°F) TEST w RMSE RE LS 12 3. 438 0. 064 MLE 12 2. 494 0. 046 SA 48 10. 253 0. 158 TB (c = 1) 6 1. 944 0. 039 TB (c = 2) 6 1. 918 0. 038 TB (c = 3) 6 1. 934 0. 038 Observation Window Sizes • w=6 (1 ½ hours) • w=12 (3 hours) • w=24 (6 hours) * ** *** AE 0. 042 0. 031 0. 129 0. 026 0. 025 11, 900 11, 400 10, 900 10, 400 9, 900 9, 400 0 20 40 60 80 100 2, 700 2, 600 2, 500 2, 400 2, 300 0 20 40 60 80 100 0, 078 0, 076 • • w=48 (1/2 day) w=96 (1 day) RMSE – Root-mean-square error RE – Relative error AE – Absolute error 0, 074 0, 072 18
Best Performers (Humidity Data) LS MLE SA TB (c = 1) TB (c = 2) TB (c = 3) Humidity (%RH) TEST w RMSE RE 24 6. 096 0. 095 12 4. 707 0. 082 6 8. 087 0. 212 6 3. 931 0. 073 6 3. 618 0. 067 6 3. 642 0. 067 Observation Window Sizes • w=6 (1 ½ hours) • w=12 (3 hours) • w=24 (6 hours) * ** *** 6, 000 AE 0. 054 0. 048 0. 086 0. 042 0. 039 4, 000 2, 000 0 20 40 60 80 100 0, 080 0, 060 0, 040 0, 020 0, 000 0, 060 • • w=48 (1/2 day) w=96 (1 day) RMSE – Root-mean-square error RE – Relative error AE – Absolute error 0, 040 0, 020 0, 000 19
Best Performers (Energy Data) LS MLE SA TB (c = 1) TB (c = 2) TB (c = 3) Energy (Wh) TEST w RMSE RE 24 24. 657 8. 900 96 10. 924 3. 919 6 9. 927 3. 405 6 10. 186 2. 413 12 9. 986 3. 553 6 9. 827 3. 699 Observation Window Sizes • w=6 (1 ½ hours) • w=12 (3 hours) • w=24 (6 hours) * ** *** • • 15, 000 10, 000 AE 0. 123 0. 076 0. 074 0. 073 0. 074 w=48 (1/2 day) w=96 (1 day) RMSE – Root-mean-square error RE – Relative error AE – Absolute error 5, 000 0 20 40 60 80 100 0, 200 0, 150 0, 100 0, 050 0, 000 0 20 40 60 80 100 0, 080 0, 060 0, 040 0, 020 0, 000 20
Summary • Four statistical processing methods are used to validate temperature, humidity, and energy data in residential buildings for autonomous detection and correction of missing or corrupt sensor data. – – Least squares Maximum likelihood estimation Segmentation averaging Threshold based • Independent data validation is accomplished using observation windows (i. e. , subset of samples) with w observations to build a model of the data. • Data validation and correction occurs for each successive observation window within the sensor dataset using interpolation and/or extrapolation for 21 missing and corrupt data.
Summary • Results – The threshold based technique performed best with: • Temperature (c=2) • Humidity (c=2) • Energy data (c=1) – It is anticipated that temperature, relative humidity, and energy data would follow similar patterns in other buildings, but additional studies are needed to confirm the degree to which these results generalize across other buildings. • Other Future Research Work – Studying other types of methods besides statistical such as: • Filtering • Machine learning – Other data types will also be investigated: • Heat flux • Airflow • Liquid flow 22
Any Questions?
- Slides: 23