# 非侵入式负荷监测

非侵入式负荷监测（non-intrusive load monitoring，NILM），又称能量分解（energy disaggregation），是一种仅通过在单一计量点测量总电力负荷来估算建筑物内各独立电器所耗功率的方法，无需为每台设备单独安装计量装置。它能够给出电器级别的功率估计、开关事件以及能耗总量，所有这些都从总体的电流与电压信号中推导得出。<sup>[1](https://doi.org/10.1109/5.192069)</sup><sup> • </sup><sup>[2](https://github.com/nilmtk/nilmtk)</sup>由于测量仅在电表附近进行，该方法避免了侵入式分表计量所需的布线和逐台电器的计量器。<sup>[3](https://ideas.repec.org/a/eee/appene/v208y2017icp1590-1607.html)</sup><sup> • </sup><sup>[4](https://www.osti.gov/biblio/219532)</sup>

| 关键事实 | 详情 |
|---|---|
| 输入 | 单一总功率信号，采样频率从每15分钟一次到数十兆赫兹不等，取决于硬件<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3571813/)</sup> |
| 输出 | 各电器的功率轨迹、开关事件及每台电器的能耗总量<sup>[4](https://www.osti.gov/biblio/219532)</sup> |
| 主要特征 | 有功功率与无功功率的稳态阶跃、谐波含量、暂态波形以及电压—电流轨迹<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup> |
| 算法族 | 组合优化、因子隐马尔可夫模型以及深度学习（seq2seq、seq2point、Transformer）<sup>[7](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)</sup> |
| 典型精度 | 跨数据集与NILMTK指标的平均F1为0.6135；FHMM的最佳平均F1为0.6600<sup>[8](https://link.springer.com/article/10.1007/s00202-025-03476-y)</sup> |
| 标准数据集 | REDD、UK-DALE、REFIT、AMPds、iAWE、BLUED、DRED、Pecan Street<sup>[9](https://sustainability-lab.github.io/papers/2026/nilmbench2026_buildsys.pdf)</sup> |
| 参考工具包 | NILMTK，一个开源Python工具包，包含解析器、预处理、基准测试与评价指标<sup>[2](https://github.com/nilmtk/nilmtk)</sup> |

## 工作原理

总负荷是所有电器消耗之和，因此分解是一个推断问题：找出最能解释总信号的电器状态组合。NILM系统利用设备之间各不相同的物理特征。经典特征是稳态功率的阶跃变化：如果一台冰箱消耗250瓦有功功率和200乏无功功率（无功功率，即在交流电路中来回振荡而未做功的功率），那么一个该特征大小的阶跃上升表明它开启了，同样大小的下降则表明它关闭了。<sup>[1](https://doi.org/10.1109/5.192069)</sup>幅度相等、符号相反的事件被配对，以确定电器的运行周期和能耗。<sup>[10](https://resenv.media.mit.edu/classarchive/MAS961/readings/PowerSignatureAnalysis.pdf)</sup>

除稳态阶跃外，常用的负荷特征还包括谐波频率成分、暂态波形和电压—电流轨迹。<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup><sup> • </sup><sup>[11](https://strathprints.strath.ac.uk/57228/1/He_etal_IEEETSG2016_non_intrusive_load_disaggregation.pdf)</sup>已发表的系统分为暂态方法和稳态方法：稳态监测器通过阶跃变化来区分负荷，而暂态方法则考察开关波形。<sup>[12](https://emsg.mit.edu/wp-content/uploads/2016/07/33_Nonintrusive-Load-Monitoring-and-Diagnostics-in-Power-Systems.pdf)</sup>分解技术同样被分为基于事件的方法——在开关事件发生时从功率信号中提取特征——和非基于事件的方法——不依赖事件提取特征。<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup>

特征集取决于采样率。有功功率、无功功率以及电压电流有效值等传统指标可在约120赫兹下计算；采样率为600赫兹的计量器可捕捉到第5次谐波（300赫兹）；而捕捉暂态或电噪声则需要10至100兆赫兹的采样率，这要求定制且昂贵的硬件。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3571813/)</sup>低频计量器更便宜，但通常将特征限制在稳态特征上，而千赫兹量级的计量器则允许更高的分辨率。<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup>

## 实现方法

基于事件的流程依次经过事件检测、特征提取、事件到负荷的映射，以及检查负荷事件之间约束条件的事件确认。非基于事件的方法则转而求解一个优化问题，例如通过线性规划最小化特征向量与已知负荷数据库之间的误差。<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup>监督技术包括神经网络和支持向量机；无监督的例子包括独立成分分析。<sup>[5](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)</sup>

监督学习和深度学习方法在同时记录全屋信号与分表计量的电器级真实值的数据集上进行训练。例如，UK-DALE的设计使得全屋有功功率作为分解输入，而电器记录则作为训练或验证目标。<sup>[13](https://www.nature.com/articles/sdata20157)</sup>标准的公开基准包括REDD（美国，6栋建筑，3至19天，10至20台电器）、UK-DALE（英国，5栋建筑，655天，5至54台电器）、REFIT（英国，20栋建筑，2年，9至21台电器）、AMPds（加拿大，1栋建筑，2年，19台以上电器）、iAWE（印度，73天）、BLUED（美国，8天）、DRED（荷兰，6个月）以及Pecan Street（美国，1000栋以上建筑）。<sup>[9](https://sustainability-lab.github.io/papers/2026/nilmbench2026_buildsys.pdf)</sup>

评估采用事件分类指标（[混淆矩阵](https://www.edgepedia.org/zh/confusion-matrix)、精确率、召回率、F值）、运行状态的重构，以及分解能耗（千瓦时）与总消耗的对比。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC6720010/)</sup>NILMTK定义了正确分配的总能量比例（fraction of total energy，FTE）、分配功率的归一化误差（normalized error in assigned power，NEP）以及F分数；F分数和FTE的取值范围为0到1，而NEP为非负值。<sup>[7](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)</sup>对于基于机器学习的NILM，F1分数是最常用的指标，其次是准确率和平均绝对误差。<sup>[15](https://link.springer.com/article/10.1007/s10489-025-06921-4)</sup>

## 起源

该方法的标准参考文献是G.W. Hart的论文《非侵入式电器负荷监测》（“Nonintrusive Appliance Load Monitoring”），发表于1992年12月的《IEEE会刊》（Proceedings of the IEEE），第1870至1891页。<sup>[16](https://georgehart.com/research/nalmrefs.html)</sup><sup> • </sup><sup>[1](https://doi.org/10.1109/5.192069)</sup>最初的NALM硬件通过标准电费计量插座与总负荷相连，与需要分表计量和室内布线的侵入式技术相比，这便于安装、拆卸和维护。<sup>[1](https://doi.org/10.1109/5.192069)</sup>该方法检测特征有功功率和无功功率大小的阶跃变化，以确定电器的开关时间，并制表统计能耗与一天中时间或温度的关系。<sup>[1](https://doi.org/10.1109/5.192069)</sup>便携式PC仪器对有功功率和无功功率随时间采样，并实时自动学习多状态电器控制结构的有限状态模型。<sup>[1](https://doi.org/10.1109/5.192069)</sup>20世纪80年代关于住宅负荷监测的工作早于1992年的论文；已发表的记述在NILM应追溯到80年代的工作还是1992年的发表上存在分歧。<sup>[15](https://link.springer.com/article/10.1007/s10489-025-06921-4)</sup>

## 变体

**组合优化（combinatorial optimization，CO）** 对所有电器状态组合进行穷举搜索，以找到最能解释总信号的那一个；其复杂度随设备数量和状态数呈指数增长，限制了可扩展性。<sup>[17](https://www.mdpi.com/2411-5134/10/3/43)</sup>在NILMTK基准测试中，FHMM在REDD、Smart*和AMPds上于FTE、NEP和F分数方面均优于CO，尽管CO具有指数级的速度优势；为14台双状态电器存储FHMM转移矩阵消耗8GB内存。<sup>[7](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)</sup>

**因子隐马尔可夫模型（factorial hidden Markov model，FHMM）族。** 基于FHMM的方法将电器建模为并行的隐马尔可夫模型。AFAMAP变体将每台电器表示为一个双变量HMM，其发射符号为联合有功—无功功率信号，并通过加性因子近似最大后验（Additive Factorial Approximate Maximum a Posteriori）公式进行分解；在包含6台电器（去噪后）的AMPds上，双变量版本在F1上分别比仅用有功功率的AFAMAP、Hart 1992算法以及带MAP的Hart高出+14.9%、+21.8%和+2.5%。<sup>[3](https://ideas.repec.org/a/eee/appene/v208y2017icp1590-1607.html)</sup>

**深度学习。** Jack Kelly和William Knottenbelt的Neural NILM论文（2015）将循环网络（RNN/LSTM）、去噪自编码器和矩形架构应用于分解。<sup>[18](https://doi.org/10.48550/arxiv.1507.06594)</sup>后来的架构包括seq2seq和seq2point卷积模型、WindowGRU和Online GRU，通过NILMTK-contrib与Mean、边缘检测、CO、判别稀疏编码以及FHMM各变体一同发布。<sup>[19](https://nipunbatra.github.io/lab/papers/2019/batra_buildsys19demo.pdf)</sup>

**Transformer时代的模型。** 一个基于BERT的模型将连续功率信号离散化为“能量词元”（energy tokens），由[Transformer](https://www.edgepedia.org/zh/transformer)编码器处理；Reformer用局部敏感哈希注意力替代标准自注意力以降低成本；NILMFormer针对非平稳性，在其论文中描述为一种子序列平稳化/去平稳化方案，并带有基于时间戳的位置编码。<sup>[20](http://arxiv.org/abs/2506.05880)</sup>在NILMTK内评估的各数据集中，平均F1为0.6135，FHMM最高为0.6600，而RNN在特定数据集上以显著更高的计算成本达到了更低的MAE（111.26瓦）和RMSE（180.98瓦）。<sup>[8](https://link.springer.com/article/10.1007/s00202-025-03476-y)</sup>不存在普遍更优的算法；性能随电器类型和信号条件而变化。<sup>[17](https://www.mdpi.com/2411-5134/10/3/43)</sup>

**工具包。** 创建NILMTK是因为由于数据集不同、缺乏参考实现以及精度指标各异，分解算法的经验性比较“几乎不可能”；它包含六个公开数据集的解析器、预处理算法、数据集统计信息，以及CO和FHMM基准。<sup>[7](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)</sup>NILMTK v0.2由Jack Kelly及其同事（2014）发布，将该工具包扩展至大规模数据集。<sup>[21](https://doi.org/10.1145/2674061.2675024)</sup>

## 应用

有明确记载的最清晰部署是在一家公用事业公司：NILMFormer已作为EDF（法国电力公司，Electricité De France）服务数百万用户的用电监测服务的骨干算法部署。<sup>[20](http://arxiv.org/abs/2506.05880)</sup>NILMTK生态系统支持跨公开数据集对分解算法进行可复现的评估。<sup>[7](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)</sup><sup> • </sup><sup>[22](https://nilmtk.github.io/)</sup>

## 局限性与替代方案

有记载的实际挑战有五个方面：负荷多样性（电器可能是开关型、有限状态型、连续可变型或常开型）；多种运行模式伴随功率波动，模糊了事件边界；并发电器事件产生重叠特征；训练中未见过的未知或新增电器；以及跨家庭泛化，即在一个家庭中训练的模型迁移到另一个家庭时往往因电器品牌、使用习惯和安装环境的差异而显著退化。<sup>[23](https://www.mdpi.com/1996-1073/19/8/1883)</sup>基于HMM的方法对未知电器表现不佳，且其复杂度随电器数量增长；超级状态HMM和稀疏Viterbi算法被用于解决这一问题。<sup>[15](https://link.springer.com/article/10.1007/s10489-025-06921-4)</sup>真实智能电表数据的分段窗口内的非平稳分布漂移显著影响深度学习NILM的性能。<sup>[20](http://arxiv.org/abs/2506.05880)</sup>

难度因电器而异，差异悬殊。冰箱和LED灯较易分解，在Dataport中冰箱的F1可达0.72，在UALM2中LED灯的F1可达0.78，而[洗衣机](https://www.edgepedia.org/zh/washing-machine)和电暖器则较难，在iAWE中洗衣机的F1为0.0。<sup>[8](https://link.springer.com/article/10.1007/s00202-025-03476-y)</sup>低速率数据（1至60秒采样，以及15至60分钟的极低速率）带来不清晰的开关过渡、样本内电器使用重叠的可能性增加，以及来自未知电器的噪声。<sup>[24](https://strathprints.strath.ac.uk/72013/1/Zhao_etal_AE_2020_Non_intrusive_load_disaggregation_solutions.pdf)</sup>

最接近的替代方案是侵入式负荷监测，即为每台电器单独安装计量装置；NILM的优势在于安装在电表插座处，无需分表计量和室内布线。<sup>[1](https://doi.org/10.1109/5.192069)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3571813/)</sup>集中式深度学习NILM模型以相当大的差距优于联邦式NILM。<sup>[15](https://link.springer.com/article/10.1007/s10489-025-06921-4)</sup>

## References

1. [G.W. Hart (1992). Nonintrusive appliance load monitoring. Proceedings of the IEEE.](https://doi.org/10.1109/5.192069)
2. [NILMTK: Non-Intrusive Load Monitoring Toolkit (GitHub repository)](https://github.com/nilmtk/nilmtk)
3. [Non-intrusive load monitoring by using active and reactive power in additive Factorial Hidden Markov Models (Applied Energy, 2017)](https://ideas.repec.org/a/eee/appene/v208y2017icp1590-1607.html)
4. [Nonintrusive appliance load monitoring with finite-state appliance models. Final report](https://www.osti.gov/biblio/219532)
5. [A MultiScale Framework for Nonintrusive Load Identification](https://emsg.mit.edu/wp-content/uploads/2022/05/A_MultiScale_Framework_for_Nonintrusive_Load_Identification.pdf)
6. [Non-Intrusive Load Monitoring Approaches for Disaggregated Energy Sensing: A Survey](https://pmc.ncbi.nlm.nih.gov/articles/PMC3571813/)
7. [NILMTK: An Open Source Toolkit for Non-intrusive Load Monitoring (ACM e-Energy 2014)](https://www.cl.cam.ac.uk/research/srg/netos/e-energy2014/docs/p265.pdf)
8. [Advances in NILM dataset evaluation: a comparative review within the NILMTK framework (Electrical Engineering, 2025)](https://link.springer.com/article/10.1007/s00202-025-03476-y)
9. [NILMBENCH2026: A Benchmark for Energy Disaggregation (BuildSys)](https://sustainability-lab.github.io/papers/2026/nilmbench2026_buildsys.pdf)
10. [Power Signature Analysis (IEEE Power and Energy Magazine)](https://resenv.media.mit.edu/classarchive/MAS961/readings/PowerSignatureAnalysis.pdf)
11. [Non-Intrusive Load Disaggregation using Graph Signal Processing (IEEE Trans. Smart Grid, 2016)](https://strathprints.strath.ac.uk/57228/1/He_etal_IEEETSG2016_non_intrusive_load_disaggregation.pdf)
12. [Nonintrusive Load Monitoring and Diagnostics in Power Systems](https://emsg.mit.edu/wp-content/uploads/2016/07/33_Nonintrusive-Load-Monitoring-and-Diagnostics-in-Power-Systems.pdf)
13. [The UK-DALE dataset, domestic appliance-level electricity demand and whole-house demand from five UK homes (Scientific Data)](https://www.nature.com/articles/sdata20157)
14. [Nonintrusive Appliance Load Monitoring: An Overview, Laboratory Test Results and Research Directions](https://pmc.ncbi.nlm.nih.gov/articles/PMC6720010/)
15. [A comprehensive review of machine learning and deep learning models for non-intrusive load monitoring (Applied Intelligence, 2025)](https://link.springer.com/article/10.1007/s10489-025-06921-4)
16. [Nonintrusive Appliance Load Monitor Published References](https://georgehart.com/research/nalmrefs.html)
17. [Evaluation of Traditional and Data-Driven Algorithms for Energy Disaggregation Under Sampling and Filtering Conditions (Engineering, MDPI)](https://www.mdpi.com/2411-5134/10/3/43)
18. [Kelly, Jack, Knottenbelt, William (2015). Neural NILM: Deep Neural Networks Applied to Energy Disaggregation. .](https://doi.org/10.48550/arxiv.1507.06594)
19. [Demo Abstract: A demonstration of reproducible state-of-the-art energy disaggregation using NILMTK (BuildSys 2019)](https://nipunbatra.github.io/lab/papers/2019/batra_buildsys19demo.pdf)
20. [NILMFormer: Non-Intrusive Load Monitoring that Accounts for Non-Stationarity (KDD 2025)](http://arxiv.org/abs/2506.05880)
21. [Kelly, Jack and colleagues (2014). Demo Abstract: NILMTK v0.2: A Non-intrusive Load Monitoring Toolkit for Large Scale Data Sets. arXiv (Cornell University).](https://doi.org/10.1145/2674061.2675024)
22. [NILMTK · Start here (official project site)](https://nilmtk.github.io/)
23. [Non-Intrusive Load Monitoring: A Systematic Review of Methods, Scenario-Specific Challenges, and Pathways to Practical Deployment (Energies)](https://www.mdpi.com/1996-1073/19/8/1883)
24. [Non-intrusive load disaggregation solutions for very low-rate smart meter data (Applied Energy, 2020)](https://strathprints.strath.ac.uk/72013/1/Zhao_etal_AE_2020_Non_intrusive_load_disaggregation_solutions.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 能源技术 › 电网与输电

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/non-intrusive-load-monitoring

English original: https://www.edgepedia.org/non-intrusive-load-monitoring
