Noufel S, Maaroufi N, Najib M, Bakhouya M. Hinge-FM2I: an approach using image inpainting for interpolating missing data in univariate time series.
Sci Rep 2025;
15:5389. [PMID:
39948363 PMCID:
PMC11825853 DOI:
10.1038/s41598-025-86382-4]
[Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 09/01/2024] [Accepted: 01/10/2025] [Indexed: 02/16/2025] Open
Abstract
Accurate time series forecasts are crucial for various applications, such as traffic management, electricity consumption, and healthcare. However, limitations in models and data quality can significantly impact forecasts' accuracy. One common issue with data quality is the absence of data points, referred to as missing data values. It is often caused by sensor malfunctions, equipment failures, or human errors. This paper proposes Hinge-FM2I, a novel method for handling missing data values in univariate time series data. Hinge-FM2I builds upon the strengths of the Forecasting Method by Image Inpainting (FM2I). FM2I has proven effective, but selecting the most accurate forecasts remains a challenge. To overcome this issue, we proposed a selection algorithm. Inspired by door hinges, Hinge-FM2I drops a data point either before or after the gap (left/right-hinge), then uses FM2I for imputation. In fact, it selects the imputed gap based on the lowest error of the dropped data point. Hinge-FM2I was evaluated on a comprehensive sample composed of 1356 time series. These latter are extracted from the M3 competition benchmark dataset, with missing value rates ranging from 3.57 to 28.57%. Experimental results demonstrate that Hinge-FM2I significantly outperforms established methods such as linear/spline interpolation, K-Nearest Neighbors, and ARIMA. Notably, Hinge-FM2I achieves an average Symmetric Mean Absolute Percentage Error score of 5.6% for small gaps and up to 10% for larger ones. These findings highlight the effectiveness of Hinge-FM2I as a promising new method for addressing missing values in univariate time series data.
Collapse