Improving Time Series Forecasting by Applying the Sliding Window Approach Повышение точности моделей прогнозирования временных рядов с помощью метода скользящего окна
( Pp. 11-18)
More about authors
Ndungi Rebeccah
postgraduate student, Faculty of Mathematics and Computer Science; St. Petersburg State University; Saint Petersburg, Russian Federation
Санкт-Петербургский государственный университет
г. Санкт-Петербург, Российская Федерация Blekanov Ivan S. Cand. Sci. (Eng.), Associate Professor; Head, Department of Programming Technology; St. Petersburg State University; Saint Petersburg, Russian Federation
Санкт-Петербургский государственный университет
г. Санкт-Петербург, Российская Федерация Blekanov Ivan S. Cand. Sci. (Eng.), Associate Professor; Head, Department of Programming Technology; St. Petersburg State University; Saint Petersburg, Russian Federation
Abstract:
Our primary research involves forecasting the IT job market, where we study trends, residuals, and seasonalities. In this study, we focus on the impact of the sliding window technique on forecasting models. The sliding window approach in the machine learning process is aimed at enhancing the accuracy of the forecasting models. It involves partitioning the continuous time series into subsets of consecutive and overlapping periods, which enables the models to track temporal characteristics effectively. The experiment is carried out on various algorithms and integrated with the sliding window. The technique allows flexibility for models to adapt to changes in the data dynamics, which greatly reduces the errors in forecasting. The study shows that sliding window methods are quite useful for building dependable and adaptive forecasting models. LSTM, ARIMA, SARIMA, and Holt’s Model were used in this experiment with a dataset of 1 048 576 job rows with job-related information. Metrics such as MSE, RMSE, and MAE were used to test the models. LSTM was found to be the most efficient because of its capability to learn complicated patterns and long-term dependencies, and showed model improvement of 0.248 on MAE, 2.649 on MSE, and 0.162 on RMSE when the sliding window was applied.
How to Cite:
Ndungi R., Blekanov I.S. Improving Time Series Forecasting by Applying the Sliding Window Approach. Computational Nanotechnology. 2025. Vol. 12. No. 2. Pp. 11–18. DOI: 10.33693/2313-223X-2025-12-2-11-18. EDN: QFHIYD
Reference list:
Angelov D. Top2Vec: Distributed representations of topics. arXiv:2008.09470. 2020. URL: https://arxiv.org/abs/2008.09470 (дата обращения: 12.05.2025).
Grootendorst M. BERTopic: Neural topic modeling with a class-based TF-IDF procedure. arXiv:2203.05794. 2022. URL: https://arxiv.org/abs/2203.05794 (дата обращения: 12.05.2025).
Dieng A.B., Ruiz F.J.R., Blei D.M. Topic modeling in embedding spaces. Transactions of the Association for Computational Linguistics. 2020. Vol. 8. Pp. 439–453.
Bianchi F., Terragni S., Hovy D. Pre-training is a hot topic: Contextualized document embeddings improve topic coherence. Findings of EMNLP. 2024. Pp. 2346–2359.
Biggio M., Crippa F., Fumagalli A. et al. Joint document-token embeddings for hierarchical topic modeling. In: Contextualized-Top2Vec. Proceedings of the 2024 Conference on Neural Information Processing Systems. 2024. Pp. 10234–10246.
Bianchi F., Terragni S., Hovy D. Combined Topic Model (CTM): Integrating contextualized embeddings into LDA. In: Findings of ACL. 2021. Pp. 1175–1188.
Maheshwari K., Roberts M.E., Stewart B.M. Evaluating contextualized topic coherence for neural topic models. Journal of Machine Learning Research. 2022. Vol. 23. Pp. 1–20.
Angelov D., Inkpen D. Hierarchical topic modeling with contextual token representations. In: Contextualized-Top2Vec. Proceedings of the 2024 Conference on Neural Information Processing Systems. 2024. URL: https://github.com/ddangelov/Top2Vec (дата обращения: 12.05.2025).
Lee J., Yoon W., Kim S. et al. BioBERT: A pre-trained biomedical language representation model for biomedical text mining. Bioinformatics. 2020. Vol. 36. No. 4. Pp. 1234–1240.
Zaheer M., Guruganesh G., Dubey K.A. et al. Big Bird: Transformers for longer sequences. In: NeurIPS. 2020. Pp. 17283–17297.
Reimers N., Gurevych I. Sentence-BERT: Sentence embeddings using siamese BERT-Networks. In: Proceedings of EMNLP. 2019. Pp. 3980–3990.
Pethe M., Joshi S., Kulkarni P. et al. SciBERT: A pretrained language model for scientific text. In: Proceedings of EMNLP. 2019. Pp. 3615–3620.
McInnes L., Healy J., Melville J. UMAP: Uniform manifold approximation and projection for dimension reduction. arXiv:1802.03426. 2018. URL: https://arxiv.org/abs/1802.03426 (дата обращения: 12.05.2025).
Fraley C., Raftery A.E. Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association. 2002. Vol. 97. No. 458. Pp. 611–631.
Bodenreider O. The Unified Medical Language System (UMLS): Integrating biomedical terminology. Nucleic Acids Research. 2004. Vol. 32. Suppl. 1. Pp. D267–D270.
Lowe H.J., Barnett G.O. Understanding and using the Medical Subject Headings (MeSH) vocabulary to perform literature searches. JAMA. 1994. Vol. 271. No. 14. Pp. 1103–1108.
Zolotarev O.V., Hakimova A.Kh., Agraval S. et al. Removing terms from biomedical publications-an approach based on n-grams. In: Civilization of Knowledge: Russian realities. 2023. Pp. 136–160. EDN: IRLOBR.
Bressane A., Garcia A.J. da S., de Castro M.V. et al. Fuzzy machine learning applications in environmental engineering: Does the ability to deal with uncertainty matter Sustainability. 2024. Vol. 16. No. 11. P. 4525. DOI: 10.3390/SU16114525.
Wu J.M.T., Li Z., Herencsar N. et al. A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimed. Syst. 2023. Vol. 29. No. 3. Pp. 1751 1770. DOI: 10.1007/S00530-021-00758-W/TABLES/15.
Tao Z., Xu Q., Liu X., Liu J. An integrated approach implementing sliding window and DTW distance for time series forecasting tasks. Applied Intelligence. 2023. Vol. 53. No. 17. Pp. 20614 20625. DOI: 10.1007/S10489-023-04590-9/METRICS.
Grootendorst M. BERTopic: Neural topic modeling with a class-based TF-IDF procedure. arXiv:2203.05794. 2022. URL: https://arxiv.org/abs/2203.05794 (дата обращения: 12.05.2025).
Dieng A.B., Ruiz F.J.R., Blei D.M. Topic modeling in embedding spaces. Transactions of the Association for Computational Linguistics. 2020. Vol. 8. Pp. 439–453.
Bianchi F., Terragni S., Hovy D. Pre-training is a hot topic: Contextualized document embeddings improve topic coherence. Findings of EMNLP. 2024. Pp. 2346–2359.
Biggio M., Crippa F., Fumagalli A. et al. Joint document-token embeddings for hierarchical topic modeling. In: Contextualized-Top2Vec. Proceedings of the 2024 Conference on Neural Information Processing Systems. 2024. Pp. 10234–10246.
Bianchi F., Terragni S., Hovy D. Combined Topic Model (CTM): Integrating contextualized embeddings into LDA. In: Findings of ACL. 2021. Pp. 1175–1188.
Maheshwari K., Roberts M.E., Stewart B.M. Evaluating contextualized topic coherence for neural topic models. Journal of Machine Learning Research. 2022. Vol. 23. Pp. 1–20.
Angelov D., Inkpen D. Hierarchical topic modeling with contextual token representations. In: Contextualized-Top2Vec. Proceedings of the 2024 Conference on Neural Information Processing Systems. 2024. URL: https://github.com/ddangelov/Top2Vec (дата обращения: 12.05.2025).
Lee J., Yoon W., Kim S. et al. BioBERT: A pre-trained biomedical language representation model for biomedical text mining. Bioinformatics. 2020. Vol. 36. No. 4. Pp. 1234–1240.
Zaheer M., Guruganesh G., Dubey K.A. et al. Big Bird: Transformers for longer sequences. In: NeurIPS. 2020. Pp. 17283–17297.
Reimers N., Gurevych I. Sentence-BERT: Sentence embeddings using siamese BERT-Networks. In: Proceedings of EMNLP. 2019. Pp. 3980–3990.
Pethe M., Joshi S., Kulkarni P. et al. SciBERT: A pretrained language model for scientific text. In: Proceedings of EMNLP. 2019. Pp. 3615–3620.
McInnes L., Healy J., Melville J. UMAP: Uniform manifold approximation and projection for dimension reduction. arXiv:1802.03426. 2018. URL: https://arxiv.org/abs/1802.03426 (дата обращения: 12.05.2025).
Fraley C., Raftery A.E. Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association. 2002. Vol. 97. No. 458. Pp. 611–631.
Bodenreider O. The Unified Medical Language System (UMLS): Integrating biomedical terminology. Nucleic Acids Research. 2004. Vol. 32. Suppl. 1. Pp. D267–D270.
Lowe H.J., Barnett G.O. Understanding and using the Medical Subject Headings (MeSH) vocabulary to perform literature searches. JAMA. 1994. Vol. 271. No. 14. Pp. 1103–1108.
Zolotarev O.V., Hakimova A.Kh., Agraval S. et al. Removing terms from biomedical publications-an approach based on n-grams. In: Civilization of Knowledge: Russian realities. 2023. Pp. 136–160. EDN: IRLOBR.
Bressane A., Garcia A.J. da S., de Castro M.V. et al. Fuzzy machine learning applications in environmental engineering: Does the ability to deal with uncertainty matter Sustainability. 2024. Vol. 16. No. 11. P. 4525. DOI: 10.3390/SU16114525.
Wu J.M.T., Li Z., Herencsar N. et al. A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimed. Syst. 2023. Vol. 29. No. 3. Pp. 1751 1770. DOI: 10.1007/S00530-021-00758-W/TABLES/15.
Tao Z., Xu Q., Liu X., Liu J. An integrated approach implementing sliding window and DTW distance for time series forecasting tasks. Applied Intelligence. 2023. Vol. 53. No. 17. Pp. 20614 20625. DOI: 10.1007/S10489-023-04590-9/METRICS.
Keywords:
sliding window, time series forecasting, machine learning, IT job market, trends and seasonality, model accuracy.