Skip to main content
Log in

An integrated approach implementing sliding window and DTW distance for time series forecasting tasks

  • Published:
Applied Intelligence Aims and scope Submit manuscript

Abstract

To handle the scenario of time delay in single predicted results, a novel time-variant weighting method by integrating dynamic time warping (DTW) distance and sliding window model is introduced in combination forecasting. The usage of sliding window can model micro-level statistical characteristics contained in the observed time series and the predicted time series. While the introduction of DTW algorithm can not only measure the distance between the observed time series and the predicted time series, but also the similarity between the two sequences. The integration of sliding window and DTW distance could provide a novel mechanism that can comprehensively reflect the total and partial statistical characteristics of time series in combination forecasting. Two numerical studies show the feasibility and validity of the developed combination forecasting model.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Data Availability

No data were used to support the findings of the study performed.

References

  1. Bates JM, Granger CWJ (1969) The combination of forecasts. J Oper Res Soc 20(4):451–468

    Article  Google Scholar 

  2. Clemen RT (1989) Combining forecasts: a review and annotated bibliography. Int J Forecast 5 (4):559–583

    Article  Google Scholar 

  3. Oliveira RD, Assis TD, Firmino P, Ferreira T (2017) Copulas-based time series combined forecasters. Inf Sci 376:110–124

    Article  MATH  Google Scholar 

  4. Fastrich B, Winker P (2014) Combining forecasts with missing data: making use of portfolio theory. Comput Econ 44:127–152

    Article  Google Scholar 

  5. Jiang A, Chi Q, Gao J et al (2019) An integrated approach to forecasting intermittent demand for electric power materials. Comput Econ 53:1309–1335

    Article  Google Scholar 

  6. Ogliari E, Guilizzoni M, Pretto S, Giglio A (2021) Wind power 24-h ahead forecast by an artificial neural network and an hybrid model: comparison of the predictive performance. Renew Energy 178:1466–1474

    Article  Google Scholar 

  7. Sun SL, Jin F, Li HT, Li YW (2021) A new hybrid optimization ensemble learning approach for carbon price forecasting. Appl Math Model 97:182–205

    Article  MathSciNet  MATH  Google Scholar 

  8. Gao GL, Li Y, Li JQ, Zhou XY, Zhou ZQ (2021) A hybrid model for short-term rainstorm forecasting based on a back-propagation neural network and synoptic diagnosis. Atmos Ocean Sci Lett 14(5):100053

    Article  Google Scholar 

  9. Chen MR, Zeng GQ, Lu KD, Weng J (2019) A two-layer nonlinear combination method for short-term wind speed prediction based on ELM, ENN and LSTM. IEEE Internet Things J 6(4):6997–7010

    Article  Google Scholar 

  10. Lu KD, Wu ZG, Huang TW (2022) Differential evolution-based three stage dynamic cyber-attack of cyber-physical power systems. IEEE/ASME Transactions on Mechatronics

  11. Hossain MA, Chakrabortty RK, Elsawah S, Gray E, Ryan MJ (2021) Predicting wind power generation using hybrid deep learning with optimization. IEEE Trans Appl Supercond 31(5):1–5

    Article  Google Scholar 

  12. Tan CW, Bergmeir C, Petitjean F et al (2021) Time series extrinsic regression. Data Min Knowl Disc 35:1032–1060

    Article  MATH  Google Scholar 

  13. Cheng YH, Hu BB (2022) Forecasting regional carbon prices in China based on secondary decomposition and a hybrid kernel-based extreme learning machine. Energies 15(10):1–18

    Article  Google Scholar 

  14. Tao ZF, Ge LL, Chen HY (2020) A new non-negative variable weight combination forecasting method based on sliding window. Control Decis 35(6):1446–1452

    Google Scholar 

  15. Drachal K (2021) Forecasting crude oil real prices with averaging time-varying var models. Resour Pol 74:102244

    Article  Google Scholar 

  16. Fameliti SP, Skintzi VD (2022) Statistical and economic performance of combination methods for forecasting crude oil price volatility. Appl Econ 54(26):3031–3054

    Article  Google Scholar 

  17. Liu Y, Wang W, Ghadimi N (2017) Electricity load forecasting by an improved forecast engine for building level consumers. Energy 139(15):18–30

    Article  Google Scholar 

  18. Duan HM, Liu YM, Wang G (2022) A novel dynamic time-delay grey model of energy prices and its application in crude oil price forecasting. Energy 251:123968.1–123968.16

    Article  Google Scholar 

  19. Berndt DJ, Clifford J (1994) Using dynamic time warping to find patterns in time series. KDD Workshop 10(16):359–370

    Google Scholar 

  20. Afrasiabi M, Khotanlou H, Mansoorizadeh M (2020) DTW-CNN: time series-based human interaction prediction in videos using cnn-extracted features. Vis Comput 36(3):1127–1139

    Article  Google Scholar 

  21. Wu H, Zhao YP, Tan HJ (2021) A novel neural network based on dynamic time warping and kalman filter for real-time monitoring of supersonic inlet flow patterns. Eng Appl Artif Intell 102:104258

    Article  Google Scholar 

  22. Manisha K, Arti K (2022) Development of adaptive time-weighted dynamic time warping for time series vegetation classification using satellite images in solapur district. The Computer Journal

  23. Keogh E, Ratanamahatana CA (2005) Exact indexing of dynamic time warping. Knowl Inf Syst 7(3):358–386

    Article  Google Scholar 

  24. Box GEP, Gwilym M, Jenkins CR (2013) Time series analysis: forecasting & control. Holden-day series in time series analysis, 3rd. Holden-Day, Incorporated, San Francisco

    MATH  Google Scholar 

  25. Holt CC (2004) Forecasting seasonals and trends by exponentially weighted moving averages. Int J Forecast 20(1):5–10

    Article  Google Scholar 

  26. Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780

    Article  Google Scholar 

  27. Zhou XL, Lin WY, Kumar R, Cui P, Ma ZJ (2022) A data-driven strategy using long short term memory models and reinforcement learning to predict building electricity consumption, vol 306

  28. Deng JL (1989) Introduction grey system theory. J Grey Syst 1(1):191–243

    MathSciNet  MATH  Google Scholar 

  29. Sun Y, Liu S, Li L (2022) Grey correlation analysis of transportation carbon emissions under the background of carbon peak and carbon neutrality. Energies 15(9):1–24

    Article  Google Scholar 

  30. Hamiye B (2021) Bootstrap based multi-step ahead joint forecast densities for financial interval-valued time series. Communications 70(1):156–179

    MathSciNet  MATH  Google Scholar 

  31. Sun YY, Zhang XY, Wan ATK, Wang SY (2022) Model averaging for interval-valued data. Eur J Oper Res 301(2):772–784

    Article  MathSciNet  MATH  Google Scholar 

  32. Jiang LY, Tao ZF, Zhu JM, Zhang JT, Chen HY (2022) Exploiting pso-svm and sample entropy in bemd for the prediction of interval-valued time series and its application to daily PM2.5 concentration forecasting. Applied Intelligence

  33. Huang HL, Tao ZF, Liu JP, Cheng JH, Chen HY (2021) Exploiting fractional accumulation and background value optimization in multivariate interval grey prediction model and its application. Eng Appl Artif Intell 104:104360

    Article  Google Scholar 

  34. Xiong P, Chen ST, Yan SL (2022) Time-delay nonlinear model based on interval grey number and its application. J Syst Eng Electron 33(2):370–380

    Article  Google Scholar 

  35. Jiang P, Yang H, Li H, Wang Y (2021) A developed hybrid forecasting system for energy consumption structure forecasting based on fuzzy time series and information granularity. Energy 219:119599

    Article  Google Scholar 

  36. Kumar N, Susan S (2021) Particle swarm optimization of partitions and fuzzy order for fuzzy time series forecasting of COVID-19. Appl Soft Comput 110:107611

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to thank the editors and the anonymous reviewers for their valuable comments and suggestions, which have helped immensely in improving the quality of this paper.

Funding

The work was supported in part by the Humanities and Social Sciences Research Youth Project of the Ministry of Education of China (No. 21YJCZH148), the Natural Science Foundation of Anhui Province (Nos. 2108085MG239, 2108085QG290, 2008085QG334, 2008085MG226), the National Natural Science Foundation of China under Grants (Nos. 71901088, 72171002, 72001001, 72071001) and The teacher project of Anhui Ecology and Economic Development Research Center in 2021 (No. AHST2021002).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xi Liu.

Ethics declarations

Ethics approval and consent to participate

This article does not contain any studies with human participants or animals performed by any of the authors.

Conflict of Interests

This manuscript has not been published in whole or in part elsewhere and is not currently being considered for publication in another journal. All authors have been personally and actively involved in substantive work leading to the manuscript and will hold themselves jointly and individually responsible for its content. The authors declare that there are no conflicts of interest.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tao, Z., Xu, Q., Liu, X. et al. An integrated approach implementing sliding window and DTW distance for time series forecasting tasks. Appl Intell 53, 20614–20625 (2023). https://doi.org/10.1007/s10489-023-04590-9

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10489-023-04590-9

Keywords

Navigation