A Novel Interval Forecast for K-Nearest Neighbor Time Series: A Case Study of Durian Export in Thailand
Open Access
- 28 December 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 12, 2032-2044
Abstract
The K-nearest neighbor (K-NN) time series model is widely favored for its simplicity and ease of understanding. However, it lacks a forecast interval, an essential feature for capturing the uncertainty inherent in point forecasts. This study introduces a novel interval forecasting approach that integrates the K-NN time series model with bootstrapping. A key step involves determining the optimal distribution of K-NN forecasted values, derived from a range of k values representing the number of nearest neighbors. Considered distributions include Gaussian, gamma, logistic, Weibull, log-normal, Cauchy, inverse-gamma, log-logistic, inverse Weibull, and log-gamma. Forecast values from both recursive and multi-input multi-output (MIMO) K-NN time series techniques are used as inputs in the bootstrapping framework. The proposed forecast intervals are compared with those obtained from the seasonal autoregressive integrated moving average (SARIMA) model, which is a benchmark in statistics. Performance is evaluated using many criteria, such as root mean squared error (RMSE) and average interval width. In a case study of durian exports in Thailand, the results show that the intervals from both recursive- and MIMO-based K-NN forecasts are narrower than those from SARIMA, suggesting increased forecasting confidence. This proposed interval is also applicable to other datasets with trend and/or seasonal components.Keywords
This publication has 34 references indexed in Scilit:
- Multi-step forecasting strategies for wind speed time series2020
- A Construction Approach to Prediction Intervals Based on Bootstrap and Deep Belief NetworkIEEE Access, 2019
- Dealing with seasonality by narrowing the training set in time series forecasting with k NNExpert Systems with Applications, 2018
- A methodology for applying k-nearest neighbor to time series forecastingArtificial Intelligence Review, 2017
- Multidimensional-nearest neighbor model based on EEMD for financial time series forecastingPhysica A: Statistical Mechanics and its Applications, 2017
- Comparison of Strategies for Multi-step-Ahead Prediction of Time Series Using Neural Network2015
- Toward Automatic Time-Series Forecasting Using Neural NetworksIEEE Transactions on Neural Networks and Learning Systems, 2012
- Energy Time Series Forecasting Based on Pattern Sequence SimilarityIEEE Transactions on Knowledge and Data Engineering, 2010
- An Adaptable $k$-Nearest Neighbors Algorithm for MMSE Image InterpolationIEEE Transactions on Image Processing, 2009
- Comparison of direct and iterative artificial neural network forecast approaches in multi-periodic time series forecastingExpert Systems with Applications, 2009