Beruflich Dokumente
Kultur Dokumente
I. I NTRODUCTION
The growing share of fluctuating renewable energy re- PV-System
sources will cause a higher demand for flexible power
suppliers and consumers. Within the research project MeRe-
gioMobil1 an energy management system has been devel- Figure 1. Smart home architecture
oped to adapt the electrical energy demand automatically
to the availability of electrical energy reflecting the state
of the low voltage grid. External signals, a load limitation knowledge about the estimated load or generally about the
signal for example, as previously discussed in [1], are sent to estimated actions occurred by the appliances. Depending on
the smart homes. Fig. 1 shows the architecture of the smart the appliance2 the occurred actions are caused by user inter-
home. To validate these energy management concepts, a real actions. In case of the washing machine, for example, it has
smart home has been built up at the KIT-Campus. This smart to be filled up with laundry and switched on. So a prediction
home, containing a 60 square meter apartment with two bed of the user behavior for the next optimization horizon is
rooms and a combined kitchen and living room, is fitted with necessary. A similar approach of energy management for
decentralized power plants like a combined heat and power smart home is done by [2], where the requirement of user
plant (CHP), a photovoltaic system (PV), and intelligent ap- behavior prediction for a long term optimization is pointed
pliances. All devices, as shown in Fig. 1, can be observed or out with an optimization horizon for about 24 hours. Another
controlled via the central in-house energy management. For group around Cook and Youngblood at al. [3] targets on
that, a communication infrastructure including every relevant complex behavior models for user behavior prediction in
component and the energy management has been realized. smart homes. Their focus is more on the home automation
Appropriate interfaces have been implemented for external issue than on the energy management.
communication to the energy provider to communicate the In Sect. II, the representation of user behavior will be
external signals and for the user interaction over the Energy discussed first before two types of behavior models are
Management Panel (EMP) to set user specific properties. introduced: a knowledge driven approach called Day Type
An autonomic optimization with the integration of the Model, and a probabilistic approach based on a first order
the smart home’s installed decentralized power plants, is Semi Markov Model. Some experimental results with real
proposed in [1]. Reflecting the load limitation scenario com- world data of the KIT smart home are presented in Sect. III.
bined with an optimal integration of the decentralized power The paper concludes with a summary and discussion of
plants, it is necessary that the load optimization system has future work in Sect. IV.
1 http://meregiomobil.forschung.kit.edu/english/index.php 2 In [1] a classification of the appliances has been proposed.
true false
Each action a = (Ty , ta ) is represented by an action type
and a time. The action type Ty ∈ AT = S ×{1, 0} describes
DT2 season = winter?
a service and a state, and ta is the time the state change
true false
happens. We call the space of all possible actions A = AT ×
N. Finally, we depict an action sequence of n actions as sq =
weekday = Mon? season = summer?
ha1 , a2 , . . . , an i, which is ordered by the action’s occurrence
true false true false
time, i.e. ∀1 ≤ i ≤ n − 1 : tai ≤ tai−1 .
Representing the device usage as action sequence has the DT3 DT1 DT5 DT4
following advantages: The device usage can be regarded as
an infinite stream of actions and formally, for each user
action there always exists a successor action. Additionally, Figure 3. Decision tree to associate context to day types (DTi )
this type of representation already compresses all relevant
information about the device states with less parameters, After the clustering of the day types, the association
when compared with the time series of device states. rules between contexts and the day types are discovered
by Decision Tree Induction [6]. A context is described by
A. Day Type Model all external parameters the characteristics of a day may
depend on: season of year, day of week and temperature,
The Day Type Model (DTM) assumes a certain regularity for example. In the present approach, only the season and
of the appliance usage. Hence some days show a comparable the day of week are considered as context. The decision tree
appliance usage. Similar days can be grouped into one implementation of the WEKA framework [7] was adapted
specific day type. For model training, the complete recorded for these purposes.
action sequence is split into day sequences. According to By applying a digressive weighting approach to the day
the H0 standard load profile of VDEW [4], the electrical sequences, this model takes alternation of usage behavior
power usage is at minimum between 2 and 6 o’clock in into consideration. An exponential weighting function w =
the morning. So we assume that at this time there is a exp(−λ · d) has been chosen because of the mathematical
minimum of active user interactions because the inhabitants advantages: The most recent day sequence is weighted w =
are sleeping. Thus, the action sequence is split at 4 AM. 1 and 0 < w < 1 holds for all other days in the past.
1336
Partitioning of Appliances a priori probability of the action type has been implemented:
Applying the DTM to the smart home holistically may
C(Tj )
if
P
, k C(Ti , Tk ) = 0
have some shortcomings because of the inherent indepen-
P
eij ∝ k C(Tk ) . (2)
dences of appliances. For example, a “washday” is only C(Ti , Tj )
, otherwise
related to the washing machine and the tumble dryer,
P
k C(Ti , Tk )
whereas the cooking appliances are used independently.
The distribution of time periods between two action types
In our approach, experiments showed that the partitioning
is estimated by counting the frequency of time differences
scheme depicted in Fig. 4 led to better prediction results
between two actions. The time differences can be quantized
compared to a holistic model.
into a finite amount of time slots. This way, over-fitting the
training data is countervailed and computation is accelerated.
washing machine cooktop coffee machine central light
A mixture of Gaussians is used to fit the frequency distri-
tumble dryer sleep. ro. 1 light
group 3 group 6 bution with the Estimation Maximization Algorithm [10] as
group 1 baking oven hair dryer television depictured in Fig. 5.
toaster group 4 group 7 group 9
water boiler dish washer bath ro. light sleep. ro. 2 light γ(∆t)/h(∆t)
γ estimation with two gaussians
group 2 group 5 group 8 group 10
3 γ estimation with one gaussian
8
Figure 4. Partitioning scheme
2
8
1
8
B. Semi Markov Model
∆t
Generating a user model with markov models is quite 1 2 3 4 5 6
popular [8], [9]. But almost all models lack the ability
to consider time information appropriately. Semi markov Figure 5. Gaussian mixture fitting over a frequency distribution h(∆t)
models (SMM) assumes an arbitrary probability distribu-
tion function (PDF) between two user interactions, whereas Block Prediction
markov models forces the PDF to be exponential. In the
present approach, the most simple semi markov model has The Block Prediction searches for the most probable
been used — a first-order SMM without consideration of action sequence which will occur during the prediction win-
context information. So, a user action only depends on the dow. The search can be done inductively with an adaption
previous action and a PDF between two action types can of the Viterbi decoding algorithm [11] which is described in
be estimated. The probability of a “transition” between two the following paragraphs:
user actions (Ti , ti ) and (Tj , tj ) is thus described by: Initialization: As the underlying markov model is first
order, the first action during the prediction window only
(1) depends on the last action (Tl , tl ). r1 (Tj , tj ) represents the
P (Tj , tj ) | (Ti , ti ) = eij · γij (tj − ti ) .
probability that the first action is of type Tj and happens
eij time independent transition probability between at the time tj . It can be calculated using the transition
two action types. probability P (Tj , tj ) | (Ti , ti ) :
γij (d) probability distribution of time periods.
r1 (Tj , tj ) = elj · γlj (tj − tl ) .
To avoid mixing some terms and definitions regarding
markov models, it should be pointed out that the “states” λ1 represents the probability that the first action happens
in markov models are not related to the service states. With after the prediction window:
the representation of user behavior introduced in Sect. II, ∞
the “states” in the markov model are user actions.
XX
λ1 = elj · γlj (t + ∆ + s − tl ) .
j s=1
Model Training
Induction: rn (Tj , tj ) represents the probability of the
Training of the SMM can be done incrementally by most probable sequence with n actions which ends with
maintaining a count matrix C to record the transitions. action (Tj , tj ). It can be calculated using rn−1 , the prob-
The transition probability between two action types can be abilities of the most probable sequences with n − 1 actions:
estimated using the count matrix. To account for the cases n o
where rn (Tj , tj ) = max rn−1 (Ti , ti ) · eij · γij (tj − ti ) . (3)
P the previous action Ti is never seen in the training data (Ti , ti )
( k C(Ti , Tk ) = 0), a back-off [10] to the estimation of the with ti ≤ tj
1337
washing machine cooktop coffee machine central light
λ0n represents the probability that the n-th action exceeds
the prediction window: tumble dryer DTM DTM sleep. ro. 1 light
window. Wed Fri Sun Tue Thu Sat Mon Wed Fri Sun Tue Thu Sat Mon Wed Fri Sun Tue Thu Sat Mon Wed Fri Sun Tue Thu Sat Mon Wed Fri
1338
100%
Day Type Model
Partitioning Day Type Model
IV. C ONCLUSIONS / O UTLOOK
Null Predictor
In this paper we took on the challenge of precise user
RELATIVE PREDICTION ERROR
90%
90%
series in data management systems, San Francisco, Calif.,
2005.
80%
[8] M. Hartmann and D. Schreiber, “Prediction algorithms for
70% user actions,” 2007.
60%
[9] K. Gopalratnam and D. Cook, “Online sequential prediction
via incremental parsing: The active lezi algorithm,” Intelligent
50% Systems, IEEE, 2007.
Null SMM
R = 10 m
P-SMM
R=1h
DTM
λ = 0.24
P-DTM
λ = 0.11
Hybrid
(R = 1 h, [10] T. M. Mitchell, Machine learning, ser. McGraw-Hill Series in
Computer ScienceMcGraw-Hill international editions, 1997.
λ = 0.62)
P REDICTION M ODEL
1339