Skip to main content
. 2019 Nov 28;19(23):5236. doi: 10.3390/s19235236
Algorithm 1 Multi-state energy classifier (MEC).
Input:
GT={g1,g2gt} is the ground truth of appliance m
PT={p1,p2pt} is the predicted values of appliance m
ε = Accuracy weightage for event classification
(1ε) = Accuracy weightage for energy estimation
Output:
MEC = MEC accuracy for appliance m
  • 1:

    CState = ApplianceStateClustering(GT)

  • 2:

    PenaltyEC(m) = ECPenalty (GT,PT,CState)

  • 3:

    PenaltyEE(m) = EEPenaly (GT,PT,CState)

  • 4:

    TotalPenaltym = (ε·PenaltyEC(m)) + ((1ε)·PenaltyEE(m))

  • 5:

    returnTotalPenaltym