Notebook uses pyts to transform time series image data to:
- Gramian angular summation fields
- Gramian angular difference fields
- recurrence plots
For easier data handling NILMTK was used.
The converter offers a variety of parameters to set such as:
- input time series window size
- output image size
- resample period
- stacking n images as a video
- adding brightness to the GAF images
- choosing between Gramian angular fields or recurrence plots
- using only a selected building
- manually selecting the appliances
- saving the source time series
environment
Works with all datasets supported by NILMTK. Tested on:
- REFIT
- UKDALE
- iAWE
- REDD
- ECO
Examples below are Gramian angle summation filed images transformed using UKDALE dataset over a 60-minute window.
Computer monitor and washing machine examples:
Examples for selected appliances:
❗️ If possible, install on a Linux machine.
-
Clone this repository and change directory to conda:
git clone https://github.com/jenkoj/ts2img && cd ts2img/conda
-
Create a new environment by running:
conda env create --name ts2img --file=ts2img.yml
-
Activate the newly created environment:
conda activate ts2img
-
Get hold of a dataset converted to NILMTK format or convert your dataset.
-
Place converted dataset in datasets directory.
-
Set parameters.
-
Finally, run:
ipython -c "%run converter.ipynb"
When adjusting the parameters start with iAWE. Since it is small, it is easy to handle.