real-time appliance identification using smart plugssmartsustainability.org/papers/osplug2.pdf ·...

2
Real-time Appliance Identification using Smart Plugs Demo Abstract Muhammad Aftab Masdar Institute of Science and Technology muhaſt[email protected] Chi-Kin Chau Masdar Institute of Science and Technology [email protected] Majid Khonji Masdar Institute of Science and Technology [email protected] Abstract Automatic classification of electric appliances has many applica- tions such as automated demand response, human activity obser- vation, and energy analysis. We present a smart plug platform that supports real-time classification of consumption profiles of appli- ances in addition to remote control and consumption monitoring. Our platform is based on low-cost Arduino hardware platform. The smart plug offers RESTful web service which can be used to communicate with smart phones and web clients. Our smart plug platform has the capability to support additional features, such as big data analysis and detection of anomalous appliance behavior. CCS Concepts Computer systems organization Embed- ded hardware; Embedded software; Hardware Sensor de- vices and platforms; Keywords Smart Plug; Internet of Things; Appliance Identifica- tion ACM Reference format: Muhammad Aftab, Chi-Kin Chau, and Majid Khonji. 2017. Real-time Appli- ance Identification using Smart Plugs. In Proceedings of e-Energy ’17, Shatin, Hong Kong, May 16-19, 2017, 2 pages. hps://doi.org/hp://dx.doi.org/10.1145/3077839.3081676 1 Introduction Buildings constitute a large portion of the overall energy consump- tion, nearly half of which is consumed by residential buildings [4]. To reduce the energy consumption of residential buildings and homes, it is necessary to know the types of electrical appliances in a home and their power consumption behavior. Every electrical appliance possesses its own power signature which can be used to automatically identify the specific appliance. In this research, we develop a smart plug platform that achieves the following goals: (i) accurate measurement the power consumption data of electric appliances, (ii) analyzing the collected data for real-time classifica- tion of the appliance energy consumption model, and (iii) remote control of the attached appliance. Our platform, which builds upon our previous work [1], is based on the popular and cheap Arduino hardware platform. The smart plug offers RESTful web APIs which can be utilized by smart phones and web clients to interact with the Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. e-Energy ’17, May 16-19, 2017, Shatin, Hong Kong © 2017 Association for Computing Machinery. ACM ISBN 978-1-4503-5036-5/17/05. . . $15.00 hps://doi.org/hp://dx.doi.org/10.1145/3077839.3081676 smart plug. In particular, the automatic appliance identification fea- ture of our smart plug platform offers many benefits to researchers, e.g., automated demand response, appliance localization, indirect monitoring of the occupant activities, and energy analytics. 2 Comparisons to Related Work Electric signatures based appliance identification can be achieved using either non-intrusive methods or intrusive methods. Non- intrusive methods involve measuring the energy consumption of the entire house and disaggregating it to identify individual appli- ances. Intrusive methods require measuring the energy consump- tion of individual appliances in a home using some kind of energy meters or smart plugs. With a few exceptions [2], most of the pro- posed non-intrusive as well as intrusive methods do not perform real-time identification and instead work with pre-recorded data in an offline manner. Our smart plug system, on the other hand, sup- ports real-time classification of the appliance energy consumption profile. In addition, it offers basic features such as appliance On/Off control and measurement of its energy consumption. 3 Implementation First we describe the details of smart plug hardware and implemen- tation, followed by our appliance identification approach. 3.1 Hardware The Arduino-based smart plug contains sensors to measure the instantaneous AC voltage and current of the attached appliance. AC voltage is measured using 220V–9V step-down voltage trans- former. AC current is measured using Hall Effect-Based Linear Current Sensor (ACS712). Knowing the instantaneous voltage and current, a variety of quantities can be computed, such as active power, reactive power, apparent power, root-mean-square voltage, root-mean-square current, power factor, and other power quality parameters. These quantities give a more accurate estimation of energy consumption which can be helpful in power quality moni- toring, detection of malfunctions, etc. The smart plug has a relay to control the power to the attached appliance, a micro SD card for data storage and big data analysis, and a WiFi module for radio communication. We use ESP8266 WiFi module, which offloads all WiFi networking functions from the main Arduino (i.e., Arduino Pro Mini), enabling the main Arduino to utilize all resources for running the appliance identification algorithm. The WiFi module provides RESTful APIs for controlling the attached appliance and querying its status. The APIs can be accessed by basic HTTP commands from smartphones and web clients. Figure 1 shows the hardware components of the smart plug. We develop an internet-connected base station based on Rasp- berry Pi, which supports WiFi connections to the smart plugs. The smart plugs transmits appliance power consumption data at peri- odic intervals to the base station. The base station provides APIs

Upload: doquynh

Post on 02-May-2018

230 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Real-time Appliance Identification using Smart Plugssmartsustainability.org/papers/osplug2.pdf · Real-time Appliance Identification using Smart Plugs ... control of the attached

Real-time Appliance Identification using Smart PlugsDemo Abstract

Muhammad AftabMasdar Institute of Science and

[email protected]

Chi-Kin ChauMasdar Institute of Science and

[email protected]

Majid KhonjiMasdar Institute of Science and

[email protected]

AbstractAutomatic classification of electric appliances has many applica-tions such as automated demand response, human activity obser-vation, and energy analysis. We present a smart plug platform thatsupports real-time classification of consumption profiles of appli-ances in addition to remote control and consumption monitoring.Our platform is based on low-cost Arduino hardware platform.The smart plug offers RESTful web service which can be used tocommunicate with smart phones and web clients. Our smart plugplatform has the capability to support additional features, such asbig data analysis and detection of anomalous appliance behavior.

CCS Concepts • Computer systems organization→ Embed-ded hardware; Embedded software; • Hardware → Sensor de-vices and platforms;

Keywords Smart Plug; Internet of Things; Appliance Identifica-tion

ACM Reference format:Muhammad Aftab, Chi-Kin Chau, and Majid Khonji. 2017. Real-time Appli-ance Identification using Smart Plugs. In Proceedings of e-Energy ’17, Shatin,Hong Kong, May 16-19, 2017, 2 pages.https://doi.org/http://dx.doi.org/10.1145/3077839.3081676

1 IntroductionBuildings constitute a large portion of the overall energy consump-tion, nearly half of which is consumed by residential buildings [4].To reduce the energy consumption of residential buildings andhomes, it is necessary to know the types of electrical appliancesin a home and their power consumption behavior. Every electricalappliance possesses its own power signature which can be used toautomatically identify the specific appliance. In this research, wedevelop a smart plug platform that achieves the following goals:(i) accurate measurement the power consumption data of electricappliances, (ii) analyzing the collected data for real-time classifica-tion of the appliance energy consumption model, and (iii) remotecontrol of the attached appliance. Our platform, which builds uponour previous work [1], is based on the popular and cheap Arduinohardware platform. The smart plug offers RESTful web APIs whichcan be utilized by smart phones and web clients to interact with the

Permission to make digital or hard copies of all or part of this work for personal orclassroom use is granted without fee provided that copies are not made or distributedfor profit or commercial advantage and that copies bear this notice and the full citationon the first page. Copyrights for components of this work owned by others than ACMmust be honored. Abstracting with credit is permitted. To copy otherwise, or republish,to post on servers or to redistribute to lists, requires prior specific permission and/ora fee. Request permissions from [email protected] ’17, May 16-19, 2017, Shatin, Hong Kong© 2017 Association for Computing Machinery.ACM ISBN 978-1-4503-5036-5/17/05. . . $15.00https://doi.org/http://dx.doi.org/10.1145/3077839.3081676

smart plug. In particular, the automatic appliance identification fea-ture of our smart plug platform offers many benefits to researchers,e.g., automated demand response, appliance localization, indirectmonitoring of the occupant activities, and energy analytics.

2 Comparisons to Related WorkElectric signatures based appliance identification can be achievedusing either non-intrusive methods or intrusive methods. Non-intrusive methods involve measuring the energy consumption ofthe entire house and disaggregating it to identify individual appli-ances. Intrusive methods require measuring the energy consump-tion of individual appliances in a home using some kind of energymeters or smart plugs. With a few exceptions [2], most of the pro-posed non-intrusive as well as intrusive methods do not performreal-time identification and instead work with pre-recorded data inan offline manner. Our smart plug system, on the other hand, sup-ports real-time classification of the appliance energy consumptionprofile. In addition, it offers basic features such as appliance On/Offcontrol and measurement of its energy consumption.

3 ImplementationFirst we describe the details of smart plug hardware and implemen-tation, followed by our appliance identification approach.

3.1 HardwareThe Arduino-based smart plug contains sensors to measure theinstantaneous AC voltage and current of the attached appliance.AC voltage is measured using 220V–9V step-down voltage trans-former. AC current is measured using Hall Effect-Based LinearCurrent Sensor (ACS712). Knowing the instantaneous voltage andcurrent, a variety of quantities can be computed, such as activepower, reactive power, apparent power, root-mean-square voltage,root-mean-square current, power factor, and other power qualityparameters. These quantities give a more accurate estimation ofenergy consumption which can be helpful in power quality moni-toring, detection of malfunctions, etc.

The smart plug has a relay to control the power to the attachedappliance, a micro SD card for data storage and big data analysis,and a WiFi module for radio communication. We use ESP8266 WiFimodule, which offloads all WiFi networking functions from themain Arduino (i.e., Arduino Pro Mini), enabling the main Arduinoto utilize all resources for running the appliance identificationalgorithm. The WiFi module provides RESTful APIs for controllingthe attached appliance and querying its status. The APIs can beaccessed by basic HTTP commands from smartphones and webclients. Figure 1 shows the hardware components of the smart plug.

We develop an internet-connected base station based on Rasp-berry Pi, which supports WiFi connections to the smart plugs. Thesmart plugs transmits appliance power consumption data at peri-odic intervals to the base station. The base station provides APIs

Page 2: Real-time Appliance Identification using Smart Plugssmartsustainability.org/papers/osplug2.pdf · Real-time Appliance Identification using Smart Plugs ... control of the attached

e-Energy ’17, May 16-19, 2017, Shatin, Hong Kong Muhammad Aftab, Chi-Kin Chau, and Majid Khonji

Figure 1. Hardware components of the smart plug.

which can be accessed by smartphones and web clients to visualizehistorical energy consumption data. The base station also providesremote access to the smart plugs for monitoring and control ofappliances over internet. The high-level architecture of smart plugsystem is illustrated in Figure 2.

Figure 2. High-level architecture of the smart plug system.

3.2 Appliance IdentificationGiven the appliance power consumption data obtained at a sam-pling rate of 1Hz, the smart plug aims to infer the appliance energyconsumption model. There are a few basic models suitable for de-scribing the power consumption of appliances [4]:

1. On-offmodel:Appliances belonging to this model draw fixedpower Pon when active.

2. On-off decay model: In this case the appliance power con-sumption follows an exponential decay curve, droppingfrom initial surge power Ppeak to a stable power Pactive ata decay rate λ.

3. On-off growth model: The power consumption of these ap-pliances follows a logarithmic growth curve, starting witha power level Pbase and a growth rate λ .

4. Stable min-max model: These appliances draw stable powerPstable with random upward or downward spikes Pspike.The magnitude of random spikes is uniformly distributedbetween Pstable and Pspike. The interarrival time of spikesfollow exponential distribution with mean λ.

5. Random range model: The power consumption of these ap-pliances is similar to a random walk between a maximumpower Pmax and a minimum power Pmin, where the powerconsumption randomly varies within these bounds.

6. Cyclic model: These appliances exhibit repeating power con-sumption patterns.

Common resistive and inductive appliances exhibit on-off, on-off decay, or on-off growth behavior, whereas appliances withnon-linear power consumption exhibit stable-min, stable-max, orrandom-walk behavior.

The smart plug analyzes the power consumption data to classifythe appliance as belonging to one of the above models. For a givenappliance, the smart plug chooses the model that best explains theobserved power consumption. For the first three models, the smartplug uses linear least squares method to to fit a straight line, anexponential decay curve, or a logarithmic growth curve onto thedata following a simplified version of the appliance identificationalgorithm proposed in [4]. To fit exponential curve, we employa special technique proposed in [5], since fitting an exponentialdecay curve involves inferring three parameters (i.e. Ppeak, Pactive,λ), which can not be accomplished using the traditional linearleast squares method. For the remaining three models, which areexhibited by appliances with non-linear power consumption, thesmart plug fits a probability distribution. Figure 3 provides thepreliminary results of appliance identification using our smart plugsfor four different appliances. For each appliance, the identifiedmodel along with the model parameters are shown. We observethat our smart plugs are able to identify the true model for bothlinear and non-linear appliances.

0 50 100 150 200

100

120

140

160

Pow

er (W

att)

Stable Max (Pstable, Pspike, ) = (159.6, 120.6, 28)

LCD Monitor

0 50 100 150 200

100

110

120 Stable Min (Pstable, Pspike, ) = (97.8, 118.4, 33)

Desktop Computer

0 50 100 150 200Time (Second)

20

30

40

Pow

er (W

att)

Random Range (Pmax, Pmin) = (35.5, 20.1)Laptop Computer

0 50 100 150 200Time (Second)

75

80

85

90

95Exponential Decay (Pactive, Ppeak, ) = (76.7, 87.6, 0.012)

Refrigerator

Figure 3. Appliance identification results.

4 ConclusionThis work presents a smart plug platform that can perform real-timeappliance identification, offering several benefits to researchers anddevelopers, e.g., demand response, appliance localization, humanactivity monitoring, and energy analytics, etc. The system consistsof smart plugs based on Arduino open hardware platform. Thesystem supports real-time appliance identification, appliance en-ergy consumption monitoring, and remote control. Our smart plugplatform can be extended to support additional features, such asbig data analysis, detection of anomalous appliance behavior, andeffective power allocation [3, 6].

References[1] Muhammad Aftab, Amalfi Darusman, Israa Al Qassem, Majid Khonji, and Sid

Chi-Kin Chau. 2015. OS| Plug: Open Platform for Smart Plugs.. In ACM e-Energy.[2] Lurdh Pradeep Reddy Ambati and David Irwin. 2016. AutoPlug: An automated

metadata service for smart outlets. 2016 Seventh International Green and Sustain-able Computing Conference (IGSC) 00 (2016), 1–8.

[3] Chi-Kin Chau, Khaled Elbassioni, and Majid Khonji. 2014. Truthful Mechanismsfor Combinatorial AC Electric Power Allocation. In International Conference onAutonomous Agents and Multiagent Systems (AAMAS).

[4] Srinivasan Iyengar, David Irwin, and Prashant Shenoy. 2016. Non-intrusivemodel derivation: automated modeling of residential electrical loads. In ACMe-Energy.

[5] Jean Jacquelin. 2009. REGRESSIONS and INTEGRAL EQUATIONS.(April 2009), 16–17 pages. https://www.scribd.com/doc/14674814/Regressions-et-equations-integrales.

[6] Lan Yu and Chi-Kin Chau. 2013. Complex-Demand Knapsack Problems andIncentives in AC Power Systems. In International Conference on AutonomousAgents and Multiagent Systems (AAMAS).