New Loss Function Improves Peak Prediction in Time Series

Theivaprakasham Hari, Yanan Xin, Winnie Daamen, Serge Paul Hoogendoorn, Sascha Hoogendoorn-Lanser· July 17, 2026 View original

Summary

This paper introduces Asymmetric Peak-Aware Loss (APAL), a model-agnostic objective function that significantly improves the prediction of rare demand spikes in time series forecasting. APAL penalizes under-predictions more heavily and increases the training weight of peak regions, outperforming symmetric objectives in peak-critical applications.

This research addresses a critical limitation in many operational time-series forecasting applications: the accurate prediction of rare demand spikes, where under-prediction carries substantially higher risk than over-prediction. Traditional time-series forecasters often rely on symmetric objectives like Mean Squared Error (MSE) or Mean Absolute Error (MAE), which tend to mask failures in predicting extreme values and peak timing. The authors introduce Asymmetric Peak-Aware Loss (APAL), a simple yet powerful model-agnostic objective function. APAL operates on two core principles: first, it applies a heavier penalty to under-predictions, reflecting the higher cost associated with missing a demand surge. Second, it strategically increases the training weight of peak regions within each forecast window, ensuring the model pays closer attention to these critical events. Alongside APAL, the paper proposes a new peak-critical evaluation protocol that complements standard MAE/MSE metrics. This protocol includes channel-wise tail error (Top-10% and Top-1%) and specific peak metrics such as precision, recall, F1 score under timing tolerance, and peak timing error. Evaluations across five state-of-the-art backbones, particularly on pedestrian demand forecasting datasets (City of Melbourne and a beach visitor count), demonstrate APAL's effectiveness. It consistently improves tail accuracy and peak-prediction quality, offering a controllable trade-off with aggregate error, making it an ideal solution for scenarios where peak-prediction failures are a dominant operational concern.

Why it matters

Professionals in logistics, retail, energy, and urban planning can use APAL to significantly improve forecasting accuracy for critical demand spikes, reducing operational risks and optimizing resource allocation.

How to implement this in your domain

  1. 1Identify time series forecasting applications where under-prediction of peaks is a high-cost error.
  2. 2Integrate APAL into your existing time series forecasting models by modifying the loss function.
  3. 3Adopt the proposed peak-critical evaluation protocol to rigorously assess your model's performance on extreme events.
  4. 4Experiment with different asymmetry and peak-weighting parameters to fine-tune APAL for your specific datasets.

Who benefits

LogisticsRetailEnergyUrban PlanningManufacturing

Key takeaways

  • Symmetric loss functions often fail to accurately predict critical demand spikes in time series.
  • APAL is an asymmetric, peak-aware loss function that penalizes under-predictions more heavily.
  • It increases training weight for peak regions, improving extreme-value and peak-timing predictions.
  • APAL, combined with peak-critical evaluation, offers a practical solution for high-risk forecasting.

Original post by Theivaprakasham Hari, Yanan Xin, Winnie Daamen, Serge Paul Hoogendoorn, Sascha Hoogendoorn-Lanser

"arXiv:2607.14871v1 Announce Type: new Abstract: In many operational time-series forecasting applications, such as crowd demand forecasting, the risk related to under-prediction is substantially higher than that of over-prediction. Accurate prediction of rare demand spikes plays a…"

View on X

Originally posted by Theivaprakasham Hari, Yanan Xin, Winnie Daamen, Serge Paul Hoogendoorn, Sascha Hoogendoorn-Lanser on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses