Skip to content

ChristoferNal/multi-nilm

Repository files navigation

MULTI-NILM: A novel framework for multi-label Non-Intrusive Load Monitoring

Description

This repository is based on our paper with title: "On time series representations for multi-label NILM" [1] and it can be used to replicate the experiments. It defines a framework for multi-label NILM systems and includes the following time series representations: Signal2Vec, BOSS, SFA, WEASEL, DFT, SAX, 1d-SAX, PAA; and an implementation of delay embedding using Taken's theorem. Feel free to reuse, modify and extend this repository.

Multi-NILM framework

Multi-nilm is a novel framework for efficient non-intrusive load monitoring systems. It has three inherent properties:

  • It utilizes a data representation for sufficient dimensionality reduction.
  • It uses lightweight disaggregation models.
  • It tackles the disaggregation problem as a multi-label classification problem.

Examples

Examples of experiments can be found under the directory experiments. The module experiments.py defines three types of experiments (GenericExperiment, ModelSelectionExperiment and REDDModelSelectionExperiment). You can also create your own experiment by extending the abstract class nilmlab.lab.Experiment.

After defining an experiment it requires only a few lines of code to setup and configure it. All files with names run*.py are specific implementations that can be used as a reference. In order to run any of them it is as simple as:

python -m experiments.run_generic_experiment

The results are saved under the directory results as a csv file containing information about the setup, the source of the data, the parameters, the classification models, the performance and others.

Data

Currently only REDD and UK DALE are supported, which have to be downloaded manually. The popular NILMTK toolkit is used for reading the energy data.

Project structure

A detailed structure of the project is presented below. The key points are:

Dependencies

The code has been developed using python3.6 and the dependencies can be found in requirements.txt.

Licence

This project is licensed under the MIT License - see the LICENSE file for details

References

  1. Nalmpantis, C., Vrakas, D. On time series representations for multi-label NILM. Neural Comput & Applic (2020). https://doi.org/10.1007/s00521-020-04916-5
  2. Nalmpantis, C., & Vrakas, D. (2019, May). Signal2Vec: Time Series Embedding Representation. In International Conference on Engineering Applications of Neural Networks (pp. 80-90). Springer, Cham. https://doi.org/10.1007/978-3-030-20257-6_7