Skip to main content
QUICK REVIEW

[Paper Review] NILM as a regression versus classification problem: the importance of thresholding

Daniel Precioso, David Gómez‐Ullate|arXiv (Cornell University)|Oct 28, 2020
Smart Grid Energy ManagementEngineering33 references4 citations
TL;DR

This paper investigates the impact of thresholding methods when formulating Non-Intrusive Load Monitoring (NILM) as a classification problem versus a regression problem. It compares three thresholding techniques—manual, moving average, and variance-based—on the UK-DALE dataset, showing that classification models with optimal thresholding can outperform regression models in reconstructing appliance power signals, especially for devices with low-power or intermittent operation.

ABSTRACT

Non-Intrusive Load Monitoring (NILM) aims to predict the status or consumption of domestic appliances in a household only by knowing the aggregated power load. NILM can be formulated as regression problem or most often as a classification problem. Most datasets gathered by smart meters allow to define naturally a regression problem, but the corresponding classification problem is a derived one, since it requires a conversion from the power signal to the status of each device by a thresholding method. We treat three different thresholding methods to perform this task, discussing their differences on various devices from the UK-DALE dataset. We analyze the performance of deep learning state-of-the-art architectures on both the regression and classification problems, introducing criteria to select the most convenient thresholding method.

Motivation & Objective

  • To investigate how different thresholding methods affect the performance of NILM models when converting continuous power signals into ON/OFF states.
  • To evaluate whether formulating NILM as a classification problem (with thresholding) yields better results than direct regression on power consumption.
  • To identify criteria for selecting the most appropriate thresholding method based on both model performance and interpretability.
  • To examine the interplay between regression and classification objectives by combining them in a weighted loss function.
  • To assess the impact of data splitting strategies (chronological vs. random) on model generalization and evaluation stability.

Proposed method

  • Three thresholding methods are applied to convert continuous power signals into binary ON/OFF states: manual thresholding (AT), moving average thresholding (MP), and variance-based thresholding (VS).
  • Two deep learning architectures—Convolutional Neural Network (CONV) and Gated Recurrent Unit (GRU)—are trained on both regression and classification formulations of the NILM problem.
  • A weighted loss function combines regression loss (mean absolute error) and classification loss (cross-entropy), with a hyperparameter w balancing the two objectives.
  • The intrinsic error (MAE between original power signal and reconstructed binary signal) is used as an objective criterion to evaluate thresholding quality.
  • Data is split chronologically into training, validation, and test sets to preserve temporal dependencies and simulate real-world deployment.
  • Performance is evaluated using F1-score for classification and MAE for regression, with results analyzed per device type (kettle, washing machine, fridge).

Experimental results

Research questions

  • RQ1How do different thresholding methods (AT, MP, VS) affect the performance of NILM models when converting regression to classification?
  • RQ2Does formulating NILM as a classification problem with optimal thresholding yield better reconstruction accuracy than direct regression?
  • RQ3How does the choice of thresholding method influence the interpretability and intrinsic error of the reconstructed appliance power signal?
  • RQ4What is the optimal balance between regression and classification losses in a joint training objective for NILM?
  • RQ5How do chronological versus random data splits affect model evaluation and generalization in NILM tasks?

Key findings

  • For the kettle, the best-performing classification model (using MP thresholding) achieved a lower MAE on reconstructed power than any regression model, indicating that classification with proper thresholding can outperform regression.
  • For the washing machine, the reconstructed signal from the pure classification model (w=1) had a lower MAE than the best regression model, despite the device's complex activation pattern.
  • For the fridge, the classification model with w=1 achieved the lowest MAE, even though the regression model's performance worsened with increasing w, suggesting classification better captures the fridge’s low-power, binary-like behavior.
  • The intrinsic error (MAE between original and reconstructed binary signal) was a more reliable criterion than F1-score for selecting the best thresholding method, especially for devices with weak or intermittent signals.
  • The optimal thresholding method varied significantly by device: MP was best for the kettle, VS for the washing machine, and AT for the fridge, highlighting the need for device-specific threshold tuning.
  • Combining regression and classification losses via a weighted objective improved performance across all devices, but the optimal weight w depended heavily on the appliance’s power profile and activation pattern.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.