NILMFormer
Transformer that estimates one appliance's power from a window of household smart meter readings.
Time series · 126 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 383.3K
- Operations
- 126
- Framework
- PyTorch
- Recurrent
- No
- Published
- KDD 2025
- Cited by
- 14 (as of 28 October 2026)
- Authors
- Adrien Petralia, Philippe Charpentier, Youssef Kadhi, Themis Palpanas
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18667
- Graph hash
- d000de30655cf9b52907859ffd44227d9a4845a9cd2a9e531f6894321537458e
- Skeleton hash
- 6a50fb5b77a332ac8f132fd8c95861aaa3d1b67a46189ce50e6171abe84a2f8b
- Architecture hash
- 43ec41085a9514937d5f682765a7ed088e540b29a0bfe562a27ca625edf8c880
- Diagram SHA-256
- 98dd1aa795c44872ac15f46d6dd4bd3af00e2fb167d0278a840bae8acec66062
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
NILMFormer estimates the power drawn by an individual appliance from a household's total smart meter reading, a problem known as non-intrusive load monitoring. It is a sequence-to-sequence Transformer that works on subsequences of a long meter recording, and it is designed for the drift in data distribution that appears from one subsequence to the next because real meter data is non-stationary.
Two mechanisms handle the drift. Each input subsequence is normalized by removing its mean and standard deviation, and the removed statistics are passed to the Transformer as an extra token, TokenStats. At the output that token is projected back to two scalars, ProjStats, which are used as a new mean and standard deviation to denormalize the prediction.
Local features come from an embedding block of 4 stacked convolutional residual units with increasing dilation. Position comes from TimeRPE, a positional encoding based only on the discrete timestamp values of the input subsequence. The Transformer layers use diagonally masked self-attention, which the paper says is more effective on electricity consumption series. Across its datasets and cases the paper reports an average improvement of over 15% in MAE and 22% in MR over the second-best model for each metric, and says the model is deployed in the consumption monitoring service of EDF.
Key idea. NILMFormer handles distribution drift in windowed smart meter data by normalizing each window and carrying the removed statistics as a token used to denormalize the output.
- NILMFormer
- non-intrusive load monitoring
- NILM
- energy disaggregation
- smart meter
- appliance power consumption
- non-stationarity
- TimeRPE
- TokenStats
- load disaggregation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{petralia2025nilmformernonintrusiveloadmonitoring,
title={NILMFormer: Non-Intrusive Load Monitoring that Accounts for Non-Stationarity},
author={Adrien Petralia and Philippe Charpentier and Youssef Kadhi and Themis Palpanas},
year={2025},
eprint={2506.05880},
archivePrefix={arXiv},
primaryClass={cs.LG},
doi={https://doi.org/10.1145/3711896.3737251},
url={https://arxiv.org/abs/2506.05880},
}