Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (6): 1863-1871.DOI: 10.11772/j.issn.1001-9081.2025060707

• Data science and technology • Previous Articles    

Time series forecasting model based on dynamic weighted ensemble

Xinru LIU1, Songhua LIU2(), Lusha QI2, Yaofei MENG2   

  1. 1.College of Computer Science and Technology (College of Data Science),Taiyuan University of Technology,Jinzhong Shanxi 030600,China
    2.School of Software,Taiyuan University of Technology,Jinzhong Shanxi 030600,China
  • Received:2025-06-24 Revised:2025-10-05 Accepted:2025-10-16 Online:2025-10-23 Published:2026-06-10
  • Contact: Songhua LIU
  • About author:LIU Xinru, born in 2000, M. S. candidate. Her research interests include time series forecasting, ensemble learning.
    QI Lusha, born in 2001, M. S. candidate. Her research interests include data mining, time series forecasting.
    MENG Yaofei, born in 2002. His research interests include data mining, time series forecasting.
    First author contact:LIU Songhua, born in 1981, Ph. D., associate professor. His research interests include data mining, time series.
  • Supported by:
    National Natural Science Foundation of China(62476190);Natural Science Foundation of Shanxi Province(202203021211144)

基于动态加权集成的时序预测模型

刘新如1, 刘松华2(), 祁露莎2, 孟耀飞2   

  1. 1.太原理工大学 计算机科学与技术学院(大数据学院),山西 晋中 030600
    2.太原理工大学 软件学院,山西 晋中 030600
  • 通讯作者: 刘松华
  • 作者简介:刘新如(2000—),女,河南开封人,硕士研究生,CCF会员,主要研究方向:时序预测、集成学习
    祁露莎(2001—),女,山西晋城人,硕士研究生,主要研究方向:数据挖掘、时序预测
    孟耀飞(2002—),男,山西忻州人,主要研究方向:数据挖掘、时序预测。
    第一联系人:刘松华(1981—),男,山西河曲人,副教授,博士,主要研究方向:数据挖掘、时间序列
  • 基金资助:
    国家自然科学基金资助项目(62476190);山西省自然科学基金资助项目(202203021211144)

Abstract:

To address the inadequate adaptability under rapidly changing data distribution and the difficulty in balancing prediction accuracy with computational overhead of the existing time series forecasting methods, a time series forecasting model based on dynamic weighted ensemble, namely TFEM (Time-Frequency Ensembled Model), was proposed. Firstly, in the time domain module, a Low-Rank Self-Attention (LRSA) mechanism was designed to calculate attention through projecting high-dimensional features into a low-dimensional space, which reduced complexity while maintaining long-range dependency modeling. Simultaneously, in the frequency domain module, the signal was decomposed into dominant frequency components and non-stationary residuals to model global trends and local mutations, respectively, thereby enhancing the modeling capability for complex time series. Finally, at the ensemble level, a long- and short-term harmonic balanced weighting mechanism was proposed, where long-term weights was used to capture global trends robustly through recursive update, while short-term weights was used to respond to data distribution mutations promptly via a Multi-Layer Perceptron (MLP), and a smoothing factor was incorporated to suppress violent fluctuations in weights. Experimental results demonstrate that compared with the online ensemble model OneNet (Online Network), TFEM reduces the Mean Squared Error (MSE) by 6.4% to 44.8% and the Mean Absolute Error (MAE) by 2.8% to 17.6% on seven benchmark datasets, while reduces the parameter number by 69.4% and inference time by 50.5% on the ETTh1 dataset. It can be seen that TFEM enhances prediction accuracy while reducing computational overhead, providing a feasible solution for time series forecasting in resource-constrained scenarios.

Key words: time series, ensemble learning, time domain, frequency domain, dynamic weighting

摘要:

针对现有时间序列预测方法在数据分布快速变化时适应性不足且难以平衡预测精度与时空开销的问题,提出一种基于动态加权集成的时序预测模型TFEM(Time-Frequency Ensembled Model)。首先,在时域模块中设计低秩自注意力(LRSA)机制,通过将高维特征投影至低维空间计算注意力,在降低复杂度的同时保持长程依赖建模;同时,在频域模块中将信号分解为主导频率分量和非平稳残差,分别建模全局趋势与局部突变,提升对复杂时序的建模能力;最后,在集成层面提出长短期谐衡加权机制,其中长期权重通过递归更新稳健捕捉全局趋势,短期权重借助多层感知机(MLP)及时响应数据分布的突变,并结合平滑因子抑制权重的剧烈波动。实验结果表明:与在线集成的模型OneNet (Online Network)相比,TFEM在7个基准数据集上的均方误差(MSE)降低了6.4%~44.8%,平均绝对误差(MAE)降低了2.8%~17.6%;且在ETTh1数据集上的参数量减少了69.4%,推理时间减少了50.5%。可见,TFEM在提升预测精度的同时能够降低计算开销,为资源受限场景下的时序预测提供了可行方案。

关键词: 时间序列, 集成学习, 时域, 频域, 动态加权

CLC Number: