Scholay

学术搜索 · AI 审稿 · LaTeX 协作

A New Loss Function for Enhancing Peak Prediction in Time Series Data with High Variability

作者:Mahan Hajiabbasi Somehsaraie, Soheyla Tofighi, Zhaoan Wang, Jun Wang, Shaoping Xiao · 发表于:Forecasting · 年份:2025 · DOI:10.3390/forecast7040075 · 被引用次数:3 · 研究领域:Forecasting Techniques and Applications、Stock Market Forecasting Methods、Explainable Artificial Intelligence (XAI)

Time series models are considered among the most intricate models in machine learning. Due to sharp temporal variations, time series models normally fall short in predicting the peaks or local minima accurately. To overcome this challenge, we proposed a novel custom loss function, Enhanced Peak (EP) loss, specifically designed to pinpoint peaks and troughs in time series models, to address underestimations and overestimations in the forecasting process. EP loss applies an adaptive penalty when prediction errors exceed a specified threshold, encouraging the model to focus more effectively on these regions. To evaluate the effectiveness and versatility of EP loss, the loss function was tested on three highly variable datasets: NOx emissions, streamflow measurements, and gold price, implementing Gated Recurrent Unit and Transformer-based models. The results consistently demonstrated that EP loss significantly mitigates peak prediction errors compared to conventional loss functions, highlighting its potential for highly variable time series applications.