## Tuesday, 8 February 2011

### Calculating accurate appliance state transitions using power and energy readings

Suppose we are sampling instantaneous power readings at regular intervals and energy consumption over each interval of a household's aggregate load.

Let the two time instants be t0 and t1 such that they are separated by the sampling interval, t1 - t0
Let the two power readings at t1 and t0 be p1 and p0 respectively.
Let the energy readings at t1 and t0 be e1 and e0 respectively.
Since the energy readings are assumed to be cumulative, we know the energy consumed over the period, e_aggregate
e_aggregate = e1 - e0
These values are marked on the graph below. Since the area under the graph represents energy consumed, e_aggregate is represented by the combined blue and red areas.

Using these readings, we can accurately calculate the time instant at which the appliance changed state, tx. Let e_baseline and e_appliance be the energy consumed by the baseline appliances and the appliance of interest respectively.
We know that
e_aggregate = e_baseline + e_appliance
A simple substitution of energy = power * time for both e_baseline and e_appliance gives
e_aggregate = (t1 - t0) * p0 + (t1 - tx) * (p1 - p0)
The only unknown is tx, allowing us to calculate its value by rearranging this equation.