Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (6): 1872-1880.DOI: 10.11772/j.issn.1001-9081.2025050560

• Data science and technology • Previous Articles    

Time series prediction of environmental electric field intensity with generalized correlation entropy loss function-based Transformer model

Wenjun FENG, Xinwei SONG(), Yuntao YUE   

  1. School of Intelligent Science and Technology,Beijing University of Civil Engineering and Architecture,Beijing 100044,China
  • Received:2025-05-21 Revised:2025-08-03 Accepted:2025-08-18 Online:2025-08-22 Published:2026-06-10
  • Contact: Xinwei SONG
  • About author:FENG Wenjun, born in 2001, M. S. candidate. His research interests include electromagnetic environment, machine learning.
    YUE Yuntao, born in 1971, Ph. D., associate professor. His research interests include converter pulse width modulation, motor drive and microprocessor applications.
    First author contact:SONG Xinwei, born in 1990, Ph. D., associate professor. Her research interests include electromagnetic environment, electromagnetic compatibility.
  • Supported by:
    Scientific Research Program of Beijing Municipal Education Commission(KM202210016005)

基于广义相关熵损失函数Transformer模型的环境电场强度时序预测

丰文君, 宋欣蔚(), 岳云涛   

  1. 北京建筑大学 智能科学与技术学院,北京 100044
  • 通讯作者: 宋欣蔚
  • 作者简介:丰文君(2001—),男,安徽池州人,硕士研究生,主要研究方向:电磁环境、机器学习
    岳云涛(1971—),男,黑龙江宝清人,副教授,博士,主要研究方向:变换器脉宽调制、电机驱动及微处理器应用。
    第一联系人:宋欣蔚(1990—),女,河北衡水人,副教授,博士,主要研究方向:电磁环境、电磁兼容
  • 基金资助:
    北京市教育委员会科学研究计划项目(KM202210016005)

Abstract:

Predicting the time series of electromagnetic radiation in the environment is of great significance for public health protection and the adaptability of electronic devices to the electromagnetic environment. Aiming at the high volatility of the environmental electric field intensity time series, which leads to more outliers and interferes with model training, a Generalized Correlation entropy Loss function-based Transformer (GCL-Transformer) model was proposed. By applying nonlinear weighting to errors through kernel mapping, this model combined the gradient smoothing of Mean Square Error (MSE) with the outlier robustness of Mean Absolute Error (MAE), effectively weakening the interference of outliers on the model training. Data were collected at three typical electromagnetic exposure monitoring sites in Beijing, and validation was carried out by multiple sets of cross-time scale prediction experiments. Comparisons were made with the traditional Transformer model, the variant model TOEformer (Temporal-Optimized Enhanced Transformer), and the Long Short-Term Memory (LSTM) model. Experimental results indicate that GCL-Transformer model significantly outperforms the comparison models in terms of prediction accuracy. In short-term tasks with a prediction interval of one hour, the Root Mean Square Error (RMSE) of GCL-Transformer reaches 0.090 6 V/m, which is 30.6% lower than that of the traditional Transformer model (0.130 7 V/m). Moreover, as the prediction interval extends to 72 hours, its error growth rate is the slowest (RMSE increases only from 0.090 6 V/m to 0.123 4 V/m), demonstrating excellent long-term prediction stability.

Key words: electric field intensity, time series prediction, Transformer, generalized correlation entropy, loss function

摘要:

预测环境中电磁辐射的时间序列对公众健康防护、电子设备的电磁环境适应性具有重要意义。针对环境电场强度时间序列的高波动性导致离群点较多、干扰模型训练的问题,提出基于广义相关熵损失函数的Transformer (GCL-Transformer)模型。该模型通过核映射对误差进行非线性加权,兼具均方误差(MSE)的梯度平滑性和平均绝对误差(MAE)的异常值鲁棒性,可以有效削弱离群点对模型训练的干扰。在北京市3个典型的电磁暴露监测点采集数据,通过多组跨时间尺度预测实验进行验证,并与传统Transformer模型、变体TOEformer(Temporal-Optimized Enhanced Transformer)模型和长短时记忆(LSTM)模型进行对比。实验结果表明,GCL-Transformer模型在预测精度上显著优于对比模型。在预测间隔为1 h的短期任务中,GCL-Transformer的均方根误差(RMSE)为0.090 6 V/m,相较于传统Transformer模型(0.130 7 V/m)降低30.6%;且随着预测间隔延长至72 h,它的误差增长最慢(RMSE仅从0.090 6 V/m增至0.123 4 V/m),展现了优异的长期预测稳定性。

关键词: 电场强度, 时间序列预测, Transformer, 广义相关熵, 损失函数

CLC Number: