Enhancing demand forecasting through combination of anomaly detection and continuous improvement
Abstract
Demand forecasting has emerged as a crucial element in supply chain management. It is essential to identify anomalous data and continuously improve the forecasting model with new data. However, existing literature fails to comprehensively cover both aspects of anomaly detection and continuous improvement in demand forecasting. This study proposes an enhanced model to improve accuracy in the demand forecasting. The proposed model introduces a novel data handling method that incorporates an anomaly detection autoencoder, improved with anomaly correction mechanisms. The data handling approach simultaneously detects data anomalies, distinguishes between expected and unexpected anomalies, and corrects anomalous data, ensuring cleaner input for demand forecasting. Then, the proposed model employs a long short-term memory architecture for demand forecasting, enhanced with a continuous improvement method. Thus, the model not only forecasts demand but also retrains the model when the anomaly data surpasses the predetermined threshold, thereby improving the accuracy of forecasting. The results show that the proposed model outperforms other models in detecting data anomalies, achieving an average precision-recall of 0.922, a receiver operating characteristic value of 0.739, and a significance level of less than 0.05. Finally, the model exhibits superior performance in demand forecasting, with average mean squared error, root mean squared error, and mean absolute error values of 33.167, 4.347, and 1.509, respectively, all with a significance level of less than 0.05. © The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature 2025.