Adversarial and Hierarchical Distribution Alignment Network for Nonintrusive Load Monitoring
Abstract
1. Introduction
- We propose a hierarchical distribution alignment UDA model to alleviate both global and appliance-level distribution discrepancies, thereby improving the generalization capability of NILM in cross-domain scenarios.
- The model was designed for application to both in-domain and cross-domain transfer tasks, treating different users or datasets as distinct domains. Through extensive experimental scenarios and comparative studies, we verified the adaptability and stability of the model under various transfer conditions, demonstrating the advantages of the joint application of CORAL and MK-MMD in enhancing the cross-domain performance of NILM.
2. Model Framework
2.1. Domain-Invariant Feature Extractor Based on TCN
2.2. Adversarial Strategy Based on MK-MMD and CORAL Modules
2.3. Parameter Settings
2.4. Working Process
3. Experimental Setup
3.1. Dataset and Data Preprocessing
3.2. Evaluation Indicators
3.3. Feature Extractor Performance Experiment
3.4. Effectiveness Analysis of Domain-Adaptive Modules
3.5. Domain Migration Experiment
3.5.1. In-Domain Transfer Experiment
3.5.2. Cross-Domain Transfer Experiment
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| NILM | Nonintrusive Load Monitoring |
| DA | Domain Adaptation |
| UDA | Unsupervised Domain Adaptation |
| TCN | Temporal Convolutional Network |
| MK-MMD | Multi-Kernel Maximum Mean Discrepancy |
| MMD | Maximum Mean Discrepancy |
| CORAL | Correlation Alignment |
| GRL | Gradient Reversal Layer |
| GAN | Generative Adversarial Network |
| CNN | Convolutional Neural Network |
| RNN | Recurrent Neural Network |
| MLP | Multilayer Perceptron |
| CTL | Cross-Domain Transfer Learning |
| MAE | Mean Absolute Error |
| SAE | Signal Aggregation Error |
| KT | Kettle |
| MV | Microwave |
| DW | Dishwasher |
| WM | Washing Machine |
| FG | Fridge |
| RKHS | Reproducing Kernel Hilbert Space |
| HEMS | Home Energy Management Systems |
References
- Athanasiadis, C.L.; Papadopoulos, T.A.; Kryonidis, G.C.; Doukas, D.I. A holistic and personalized home energy management system with non-intrusive load monitoring. IEEE Trans. Consum. Electron. 2024, 70, 6725–6737. [Google Scholar] [CrossRef]
- Donciu, C.; Serea, E.; Temneanu, M.C. Residential Electricity Consumption Behaviors in Eastern Romania: A Non-Invasive Survey-Based Assessment of Consumer Patterns. Energies 2025, 18, 4883. [Google Scholar]
- Luo, Q.; Yu, T.; Liang, M.; Pan, Z.; Guo, W.; Hu, X. Review of advances in scaling non-intrusive load monitoring for real-world applications. Appl. Energy 2025, 398, 126462. [Google Scholar] [CrossRef]
- Athanasiadis, C.L.; Papadopoulos, A.; Kryonidis, G.C.; Doukas, D.I. Multi-objective data-driven framework to support network operation via residential flexibility. Sustain. Energy Grids Netw. 2025, 44, 102042. [Google Scholar] [CrossRef]
- Alwaz, N.; Bashir, M.M.; Rehman, A.U.; Ullah, I.; Galea, M. Sustainable Optimization of Residential Electricity Consumption Using Predictive Modeling and Non-Intrusive Load Monitoring. Sustainability 2025, 17, 11193. [Google Scholar] [CrossRef]
- Ghasrodashti, E.K.; Adibi, P.; Karshenas, H.; Kashani, H.B.; Chanussot, J. Multimodal Image Classification Based on Convolutional Network and Attention-Based Hidden Markov Random Field. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5511114. [Google Scholar]
- da Silva Nolasco, L.; Lazzaretti, A.E.; Mulinari, B.M. DeepDFML-NILM: A new CNN-based architecture for detection, feature extraction and multi-label classification in NILM signals. IEEE Sens. J. 2021, 22, 501–509. [Google Scholar] [CrossRef]
- Lee, M.H.; Moon, H.J. Nonintrusive load monitoring using recurrent neural networks with occupants location information in residential buildings. Energies 2023, 16, 3688. [Google Scholar] [CrossRef]
- Chu, X.; Pang, Y.; Ma, Y.; Li, S.; Qu, Y.; Wang, Y. Data-driven recommendation model based on meta-learning for non-intrusive load monitoring. IEEE Trans. Consum. Electron. 2023, 70, 3562–3572. [Google Scholar] [CrossRef]
- Hu, L.; Kan, M.; Shan, S.; Chen, X. Unsupervised domain adaptation with hierarchical gradient synchronization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; pp. 4043–4052. [Google Scholar]
- Harell, A.; Jones, R.; Makonin, S.; Bajić, I.V. TraceGAN: Synthesizing appliance power signatures using generative adversarial networks. IEEE Trans. Smart Grid 2021, 12, 4553–4563. [Google Scholar] [CrossRef]
- Li, J.; Chen, Z.; Cheng, L.; Liu, X. Energy data generation with wasserstein deep convolutional generative adversarial networks. Energy 2022, 257, 124694. [Google Scholar] [CrossRef]
- Henriet, S.; Simsekli, U.; Richard, G.; Fuentes, B. Synthetic dataset generation for non-intrusive load monitoring in commercial buildings. In Proceedings of the 4th ACM International Conference on Systems for Energy-Efficient Built Environments, Delft, The Netherlands, 8–9 November 2017; pp. 1–2. [Google Scholar]
- Bao, G.; Huang, Y. Non-intrusive load monitoring based on ResNeXt network and transfer learning. Autom. Electr. Power Syst. 2023, 47, 110–120. [Google Scholar]
- Liu, H.; Liu, C.; Zhao, H. Noninvasive Decomposition of Electric-Gas Load in Public Buildings Based on Deep Learning. Power Syst. Technol. 2023, 47, 1188–1197. [Google Scholar]
- Su, H.; Hou, K.; Gao, J. Research on Non-Intrusive Load Monitoring Based on Domain Adaptive Learning. Gansu Sci. Technol. 2021, 37, 20–26+66. [Google Scholar]
- Li; Meng, L.; Zhang, K. Review of Studies on Domain Adaptation. Comput. Eng. Appl. 2021, 47, 1–13. [Google Scholar]
- Houidi, S.; Fourer, D.; Auger, F.; Sethom, H.B.A.; Miègeville, L. Comparative evaluation of non-intrusive load monitoring methods using relevant features and transfer learning. Energies 2021, 14, 2726. [Google Scholar] [CrossRef]
- Lin, J.; Ma, J.; Zhu, J.; Liang, H. Deep domain adaptation for non-intrusive load monitoring based on a knowledge transfer learning network. IEEE Trans. Smart Grid 2021, 13, 280–292. [Google Scholar] [CrossRef]
- Li, D.; Li, J.; Zeng, X.; Stankovic, V.; Stankovic, L.; Xiao, C.; Shi, Q. Transfer learning for multi-objective non-intrusive load monitoring in smart building. Appl. Energy 2023, 329, 120223. [Google Scholar] [CrossRef]
- Johnson, M.J.; Kolter, J.Z. A public data set for energy disaggregation research. Data Min. Appl. Sustain. 2011, 25, 59–62. [Google Scholar]
- Kelly, J.; Knottenbelt, W. The UK-DALE dataset, domestic appliance-level electricity demand and whole-house demand from five UK homes. Sci. Data 2015, 2, 150007. [Google Scholar] [CrossRef]
- Klemenjak, C.; Kovatsch, C.; Herold, M.; Elmenreich, W. A synthetic energy dataset for non-intrusive load monitoring in households. Sci. Data 2015, 7, 108. [Google Scholar] [CrossRef] [PubMed]
- Zhang, C.; Zhong, M.; Wang, Z.; Goddard, N.; Sutton, C. Sequence-to-point learning with neural networks for non-intrusive load monitoring. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018; Volume 32. [Google Scholar]
- D’Incecco, M.; Squartini, S.; Zhong, M. Transfer learning for non-intrusive load monitoring. IEEE Trans. Smart Grid 2019, 11, 1419–1429. [Google Scholar] [CrossRef]





| Type | Parameter Name | Parameter Value |
|---|---|---|
| Global Parameters | Epoch | 150 |
| Optimizer | Adam | |
| Batch | 32 | |
| Learning Rate | 0.001 | |
| Feature Generator | Number of Encoder Layers | 6 |
| Hidden Dimension | 128 | |
| Number of Residual Blocks | 6 | |
| Kernel Size | 3 | |
| Dilation Factor | 2i | |
| Energy Disaggregator | Number of Decoder Layers | 3 |
| Hidden Layer | [256,512,256] | |
| Adversarial Domain Discriminator | Number of Network Layers | 3 |
| Number of Neurons per Layer | [128,64,2] | |
| Multi-Kernel Maximum Mean Discrepancy (MK-MMD) | Number of Kernel Functions | 3 |
| Methods | MAE (Watt) | SAE (Watt) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| KT | MV | DW | WM | FG | KT | MV | DW | WM | FG | |
| MLP | 30.12 | 18.14 | 30.25 | 28.64 | 20.52 | 21.21 | 22.86 | 28.56 | 34.05 | 20.55 |
| CNN | 25.22 | 15.21 | 25.22 | 22.43 | 15.22 | 16.83 | 18.22 | 22.88 | 28.14 | 16.89 |
| LSTM | 13.45 | 13.14 | 22.11 | 23.11 | 15.31 | 10.67 | 17.13 | 21.44 | 24.13 | 16.24 |
| Informer | 12.76 | 11.82 | 22.37 | 21.53 | 15.13 | 9.58 | 10.29 | 21.09 | 20.07 | 12.55 |
| Transformer | 7.53 | 9.57 | 21.94 | 19.84 | 13.87 | 7.55 | 9.18 | 21.53 | 18.17 | 9.88 |
| TCN | 8.22 | 10.14 | 22.14 | 20.13 | 14.23 | 7.84 | 9.44 | 21.65 | 18.66 | 10.21 |
| App. | Methods | UK-DALE(U) | REDD(R) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE (Watt) | SAE (Watt) | MAE (Watt) | SAE (Watt) | ||||||||||
| U1→U3 | U1→U2 | UA→U2 | U1→U3 | U1→U2 | UA→U2 | R1→R4 | R1→R2 | RA→R2 | R1→R4 | R1→R2 | RA→R2 | ||
| KT | Baseline | 28.02 | 15.55 | 11.83 | 25.57 | 16.35 | 8.65 | - | - | - | - | - | - |
| CTL | 35.22 | 14.00 | 13.65 | 33.01 | 14.71 | 7.78 | - | - | - | - | - | - | |
| DTCN | 21.01 | 21.66 | 28.87 | 29.18 | 22.26 | 16.49 | - | - | - | - | - | - | |
| CMMD | 26.81 | 9.33 | 20.10 | 15.34 | 19.81 | 6.19 | - | - | - | - | - | - | |
| Ours | 14.76 | 13.32 | 11.14 | 15.12 | 10.83 | 5.63 | - | - | - | - | - | - | |
| Improved | 47.32% | 14.35% | 5.82% | 40.87% | 33.76% | 34.91% | - | - | - | - | - | - | |
| MV | Baseline | 92.42 | 20.62 | 25.07 | 89.89 | 17.21 | 23.88 | 30.48 | 5.58 | 24.40 | 23.77 | 5.18 | 16.57 |
| CTL | 83.18 | 18.56 | 22.56 | 80.90 | 25.49 | 21.49 | 27.44 | 10.02 | 21.96 | 21.40 | 6.65 | 14.91 | |
| DTCN | 91.31 | 15.46 | 28.80 | 87.42 | 22.91 | 17.91 | 32.86 | 6.18 | 18.30 | 27.83 | 7.89 | 12.43 | |
| CMMD | 55.45 | 22.37 | 25.04 | 53.93 | 20.32 | 17.33 | 28.29 | 8.35 | 20.64 | 24.26 | 5.11 | 9.94 | |
| Ours | 65.82 | 13.64 | 17.82 | 52.35 | 11.76 | 16.72 | 22.89 | 5.31 | 13.92 | 19.71 | 4.31 | 15.92 | |
| Improved | 28.78% | 33.84% | 28.92% | 41.76% | 31.66% | 29.99% | 24.91% | 4.81% | 42.96% | 17.09% | 16.82% | 3.91% | |
| DW | Baseline | 74.47 | 32.99 | 31.67 | 59.24 | 33.18 | 15.10 | 58.71 | 47.03 | 35.11 | 51.24 | 33.10 | 28.81 |
| CTL | 67.03 | 29.69 | 38.50 | 53.32 | 29.86 | 23.59 | 52.84 | 42.33 | 31.60 | 46.11 | 29.79 | 25.93 | |
| DTCN | 55.85 | 34.74 | 43.75 | 34.43 | 28.88 | 31.33 | 44.04 | 35.27 | 26.33 | 38.43 | 24.83 | 21.61 | |
| CMMD | 44.68 | 29.80 | 33.00 | 35.55 | 29.91 | 19.06 | 45.23 | 28.22 | 24.07 | 30.74 | 19.86 | 23.29 | |
| Ours | 50.82 | 28.73 | 30.46 | 36.82 | 26.28 | 14.84 | 26.41 | 14.64 | 23.83 | 20.12 | 12.97 | 18.41 | |
| Improved | 31.76% | 12.92% | 3.81% | 37.85% | 20.79% | 1.73% | 55.02% | 68.87% | 32.13% | 60.73% | 60.82% | 36.09% | |
| WM | Baseline | 37.01 | 50.68 | 73.00 | 30.85 | 54.88 | 33.79 | 63.39 | 29.79 | 74.89 | 54.30 | 26.45 | 65.75 |
| CTL | 33.31 | 45.62 | 65.70 | 27.76 | 49.39 | 30.41 | 57.05 | 26.81 | 67.40 | 48.87 | 23.80 | 59.18 | |
| DTCN | 27.76 | 38.01 | 54.75 | 33.13 | 41.16 | 35.34 | 47.54 | 22.34 | 56.17 | 40.72 | 19.84 | 49.31 | |
| CMMD | 32.21 | 30.41 | 63.80 | 28.51 | 32.93 | 40.27 | 58.03 | 17.87 | 64.93 | 52.58 | 15.87 | 49.45 | |
| Ours | 27.49 | 25.93 | 54.61 | 24.72 | 25.88 | 27.13 | 43.14 | 13.75 | 53.26 | 37.45 | 13.57 | 43.89 | |
| Improved | 25.73% | 48.84% | 25.19% | 19.86% | 52.84% | 19.71% | 31.94% | 53.84% | 28.88% | 31.03% | 48.69% | 33.25% | |
| FG | Baseline | 47.49 | 37.20 | 29.85 | 11.21 | 28.87 | 8.41 | 62.79 | 29.07 | 28.23 | 38.51 | 11.96 | 17.14 |
| CTL | 49.74 | 43.48 | 26.86 | 10.09 | 15.98 | 17.57 | 56.51 | 26.16 | 35.40 | 34.66 | 14.77 | 15.42 | |
| DTCN | 35.61 | 37.90 | 22.38 | 18.41 | 3.65 | 10.31 | 67.09 | 29.80 | 28.17 | 38.88 | 18.97 | 12.85 | |
| CMMD | 38.49 | 35.32 | 17.91 | 26.73 | 17.32 | 9.05 | 67.67 | 27.44 | 26.94 | 33.11 | 17.18 | 14.28 | |
| Ours | 31.93 | 32.45 | 27.81 | 11.03 | 4.35 | 7.24 | 60.72 | 24.91 | 27.85 | 32.89 | 14.83 | 16.31 | |
| Improved | 32.76% | 12.76% | 6.82% | 1.64% | 84.93% | 13.91% | 3.29% | 14.31% | 1.33% | 14.59% | −23.98% | 4.82% | |
| Metrics | Methods | UK-DALE (SA→U1) | REDD (SA→R1) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| KT | MV | DW | WM | FG | KT | MV | DW | WM | FG | ||
| MAE (Watt) | Baseline | 16.37 | 23.80 | 92.69 | 38.42 | 60.64 | - | 21.20 | 26.12 | 50.53 | 35.05 |
| CTL | 14.73 | 21.42 | 83.42 | 44.57 | 34.58 | - | 19.08 | 23.50 | 55.47 | 25.54 | |
| DTCN | 12.27 | 17.85 | 69.52 | 38.81 | 45.48 | - | 15.90 | 19.59 | 47.90 | 26.29 | |
| CMMD | 19.82 | 24.28 | 65.61 | 43.05 | 46.38 | - | 12.72 | 15.67 | 50.32 | 31.03 | |
| Ours | 11.94 | 12.89 | 56.78 | 36.56 | 42.83 | - | 8.93 | 13.76 | 49.32 | 23.84 | |
| Improved | 27.04% | 45.83% | 38.74% | 4.83% | 29.37% | - | 57.87% | 47.31% | 2.39% | 31.98% | |
| SAE (Watt) | Baseline | 13.25 | 17.99 | 76.92 | 35.61 | 36.89 | - | 16.61 | 22.17 | 44.21 | 27.29 |
| CTL | 11.93 | 16.19 | 69.23 | 42.05 | 33.20 | - | 14.95 | 19.95 | 39.79 | 16.56 | |
| DTCN | 9.94 | 13.49 | 57.69 | 36.71 | 47.67 | - | 12.46 | 16.63 | 43.16 | 20.47 | |
| CMMD | 17.95 | 20.79 | 56.15 | 41.37 | 42.13 | - | 9.97 | 13.30 | 36.53 | 26.38 | |
| Ours | 10.78 | 14.51 | 47.86 | 33.86 | 38.63 | - | 7.32 | 12.64 | 33.57 | 18.93 | |
| Improved | 18.65% | 19.35% | 37.78% | 4.91% | −4.72% | - | 55.93% | 42.98% | 1.45% | 30.64% | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Xiong, H.; Tan, D.; Hu, Y.; Cai, X.; Hu, P. Adversarial and Hierarchical Distribution Alignment Network for Nonintrusive Load Monitoring. Electronics 2026, 15, 655. https://doi.org/10.3390/electronics15030655
Xiong H, Tan D, Hu Y, Cai X, Hu P. Adversarial and Hierarchical Distribution Alignment Network for Nonintrusive Load Monitoring. Electronics. 2026; 15(3):655. https://doi.org/10.3390/electronics15030655
Chicago/Turabian StyleXiong, Haozhe, Daojun Tan, Yuxuan Hu, Xuan Cai, and Pan Hu. 2026. "Adversarial and Hierarchical Distribution Alignment Network for Nonintrusive Load Monitoring" Electronics 15, no. 3: 655. https://doi.org/10.3390/electronics15030655
APA StyleXiong, H., Tan, D., Hu, Y., Cai, X., & Hu, P. (2026). Adversarial and Hierarchical Distribution Alignment Network for Nonintrusive Load Monitoring. Electronics, 15(3), 655. https://doi.org/10.3390/electronics15030655
