综合智慧能源 ›› 2026, Vol. 48 ›› Issue (7): 1-12.doi: 10.3969/j.issn.2097-0706.2026.07.001

• 源荷预测与智能感知 •    下一篇

基于TimesNet的多源特征融合非侵入式负荷监测

刘兴杰a(), 王晨a(), 梁英a(), 薄天利b()   

  1. a 宁夏大学 电子与电气工程学院银川 750021
    b 宁夏大学 物理学院银川 750021
  • 收稿日期:2025-11-07 修回日期:2026-01-21 出版日期:2026-07-25
  • 作者简介:刘兴杰(1979),男,副教授,博士,从事新能源发电功率预测建模与控制、新型电力系统安全与保护、综合能源系统与节能等方面的研究,1005963@qq.com
    王晨(2000),男,硕士生,从事非侵入式负荷监测方面的研究,1372082369@qq.com
    梁英(1978),女,副教授,博士,从事高电压与绝缘技术、输电线路安全等方面的研究,82357802@qq.com
    薄天利(1980),男,教授,博士,从事风沙物理学与环境力学方面的研究,tlb@nxu.edu.cn
  • 基金资助:
    国家自然科学基金项目(12062023);宁夏回族自治区重点研发计划社会发展领域项目(2021BEG03029)

Non-intrusive load monitoring based on multi-source feature fusion with TimesNet

LIU Xingjiea(), WANG Chena(), LIANG Yinga(), BO Tianlib()   

  1. a School of Electronic and Electrical EngineeringYinchuan 750021, China
    b School of PhysicsNingxia UniversityYinchuan 750021, China
  • Received:2025-11-07 Revised:2026-01-21 Published:2026-07-25
  • Supported by:
    National Natural Science Foundation of China(12062023);Ningxia Hui Autonomous Region Key R&D Program Social Development Sector Project(2021BEG03029)

摘要:

针对当前非侵入式负荷监测(NILM)模型过度依赖电器自身功率特征,导致复杂环境条件下监测精度受限的问题,提出了一种基于TimesNet与注意力机制的多源特征融合NILM模型——TAMF,通过引入温度、湿度及风速等非电气量环境因素,改善因单一功率特征依赖所造成的误差影响。首先,利用TimesNet模型适配负荷功率序列固有的多周期性特点,通过快速傅里叶变换将一维功率序列转化为二维张量,并借助Inception网络的多分支卷积结构提取总负荷数据的上下文关系与多尺度周期性特征,获得更贴合电器实际运行特点的功率特征;其次,考虑到环境特征相较功率特征存在明显的局部短期波动模式,采用参数量更少、计算复杂度更低的一维卷积神经网络提取温度、湿度、风速等环境序列中的局部时序特征;随后,针对功率序列与环境序列在时序模式及量纲上的异构性,引入多头自注意力机制,通过并行多头计算实现功率特征与环境特征的深度融合,挖掘两类多源异构特征间的潜在关联与交互关系,提升目标电器的负荷识别精度。选用加拿大温哥华的AMPds2数据集为主要试验数据集,英国伦敦的UK-DALE数据集用于跨数据集泛化能力验证,将TAMF模型与组合优化(CO)、因子隐马尔可夫模型(FHMM)2种传统方法及序列到点(Seq2point)、门控循环单元(GRU)、基于Transformer的双向编码器(BERT)、Transformer等4种深度学习模型对比。结果表明:TAMF模型在两个数据集上的平均绝对误差和均方根误差均优于全部6种对比模型,其中在AMPds2数据集上,平均绝对误差与均方根误差较对比模型最优者分别下降了17.27%和4.73%;在UK-DALE数据集上分别下降了14.02%和6.51%,且对电热泵、电冰箱等环境敏感型电器的识别精度提升尤为显著。此外,消融试验进一步证实,特征融合网络与环境特征提取网络的协同作用是提升模型整体性能的关键环节,二者与功率特征提取网络形成互补关系。综上所述,引入环境因素并实现多源特征深度融合,能够有效改善单一电气量特征依赖导致的识别误差,提升整体负荷识别精度,验证了该模型在数据分布与特征维度存在差异的复杂场景下依然具备出色的负荷监测能力与泛化能力,可为提升非侵入式负荷监测性能、支撑城市居民家庭用电行为分析及智能电网用户侧低成本负荷感知提供切实可行的新思路。

关键词: 非侵入式负荷监测, 负荷识别, 非电气量特征, 特征融合, Timesnet模型, 注意力机制

Abstract:

Current non-intrusive load monitoring (NILM) models rely excessively on appliance power features, resulting in limited monitoring accuracy under complex environmental conditions. To address this problem, a multi-source feature fusion NILM model based on TimesNet and the attention mechanism, namely TAMF, was proposed. By introducing non-electrical environmental factors, including temperature, humidity, and wind speed, TAMF mitigated errors caused by dependence on single power features. TimesNet was used to adapt to the inherent multi-periodicity of load power sequences. A one-dimensional power sequence was transformed into a two-dimensional tensor through fast Fourier transform, and contextual relationships and multi-scale periodic features of aggregate load data were extracted with the multi-branch convolutional structure of the Inception network, yielding power features more consistent with actual appliance operation characteristics. Considering that environmental features showed more obvious local short-term fluctuation patterns than power features, a one-dimensional convolutional neural network with fewer parameters and lower computational complexity was used to extract local temporal features from environmental sequences, including temperature, humidity, and wind speed. Subsequently, to address heterogeneity of power and environmental sequences in temporal patterns and dimensions, a multi-head self-attention mechanism was introduced. Parallel multi-head computation enabled deep fusion of power and environmental features, extracted potential associations and interactions between two types of multi-source heterogeneous features, and improved load identification accuracy of target appliances. The AMPds2 dataset from Vancouver, Canada, was selected as the main experimental dataset, and the UK-DALE dataset from London, United Kingdom, was used to verify cross-dataset generalization ability. TAMF was compared with two traditional methods, combinatorial optimization (CO) and factorial hidden Markov model (FHMM), as well as four deep learning models, sequence-to-point (Seq2point), gated recurrent unit (GRU), bidirectional encoder representations from Transformers (BERT), and Transformer. The results showed that mean absolute error and root mean square error of TAMF on both datasets were lower than those of all six comparative models. On the AMPds2 dataset, mean absolute error and root mean square error decreased by 17.27% and 4.73%, respectively, compared with the best comparative model. On the UK-DALE dataset, they decreased by 14.02% and 6.51%, respectively. The improvement in identification accuracy was especially significant for environmentally sensitive appliances such as heat pumps and refrigerators. In addition, ablation experiments further confirmed that the synergistic effects of the feature fusion network and environmental feature extraction network were key to improving overall model performance, and both networks complemented the power feature extraction network. In summary, introducing environmental factors and realizing deep fusion of multi-source features can effectively reduce identification errors caused by dependence on single electrical features, improve overall load identification accuracy, and verify that TAMF maintains excellent load monitoring and generalization ability in complex scenarios with differences in data distributions and feature dimensions. This model provides a practical new approach for improving non-intrusive load monitoring performance, supporting urban residential electricity-consumption behavior analysis, and enabling low-cost customer-side load perception in smart grids.

Key words: non-intrusive load monitoring, load identification, non-electrical features, feature fusion, TimesNet model, attention mechanism

中图分类号: