[Paper Review] Application of data compression techniques to time series forecasting
This paper proposes a novel time series forecasting method that leverages standard lossless data compression algorithms—such as zlib, bzip2, and PPM—as predictive models by exploiting the theoretical link between data compression and prediction. By using compression-based probability estimation and ensemble weighting of multiple compressors, the method achieves competitive forecasting accuracy, outperforming established agencies like the Australian Bureau of Meteorology and SWPC in one-step-ahead predictions for both T-index and Kp-index series.
In this study we show that standard well-known file compression programs (zlib, bzip2, etc.) are able to forecast real-world time series data well. The strength of our approach is its ability to use a set of data compression algorithms and "automatically" choose the best one of them during the process of forecasting. Besides, modern data-compressors are able to find many kinds of latent regularities using some methods of artificial intelligence (for example, some data-compressors are based on finding the smallest formal grammar that describes the time series). Thus, our approach makes it possible to apply some particular methods of artificial intelligence for time-series forecasting. As examples of the application of the proposed method, we made forecasts for the monthly T-index and the Kp-index time series using standard compressors. In both cases, we used the Mean Absolute Error (MAE) as an accuracy measure. For the monthly T-index time series, we made 18 forecasts beyond the available data for each month since January 2011 to July 2017. We show that, in comparison with the forecasts made by the Australian Bureau of Meteorology, our method more accurately predicts one value ahead. The Kp-index time series consists of 3-hour values ranging from 0 to 9. For each day from February 4, 2018 to March 28, 2018, we made forecasts for 24 values ahead. We compared our forecasts with the forecasts made by the Space Weather Prediction Center (SWPC). The results showed that the accuracy of our method is similar to the accuracy of the SWPC's method. As in the previous case, we also obtained more accurate one-step forecasts.
Motivation & Objective
- To investigate whether widely available, standard data compression programs can serve as effective time series forecasting tools.
- To explore the feasibility of using compression-based probability estimation for real-valued and integer-valued time series.
- To evaluate the performance of ensemble compression methods against established forecasting benchmarks in real-world geophysical time series.
- To demonstrate that modern compressors implicitly apply AI-like heuristics to detect latent regularities, making them suitable for forecasting.
Proposed method
- Uses the compression-based probability estimation formula: $ P_{ ext{comp}}(x_{t+1}=a|x_{1}^{t}) = \frac{2^{-|\phi(x_{1}^{t}a)|}}{\sum_{b\in\mathcal{A}} 2^{-|\phi(x_{1}^{t}b)|}} $, where $ \phi $ is a compression function.
- Applies a weighted ensemble of compressors (zlib, PPM, bzip2) using formula $ P_{\phi}(x_{t+1}=a|x_{1}^{t}) = \frac{\sum_{i=1}^{k} \omega_i 2^{-|\phi_i(x_{1}^{t}a)|}}{\sum_{b\in\mathcal{A}} \sum_{i=1}^{k} \omega_i 2^{-|\phi_i(x_{1}^{t}b)|}} $, with $ \sum \omega_i = 1 $, to select the best-performing compressor dynamically.
- Preprocesses time series using STL decomposition to remove seasonal trends, smoothing, first differencing, and quantization into 2–16 intervals to handle real-valued data.
- Splits long forecasting horizons into shorter sub-horizons (e.g., 6 forecasts of 3 steps each for T-index, 8 for Kp-index) to improve accuracy.
- Rounds real-valued forecasts to integers before computing MAE, ensuring compatibility with integer-valued target series.
Experimental results
Research questions
- RQ1Can standard, off-the-shelf data compression tools (e.g., zlib, bzip2, PPM) be effectively used for time series forecasting?
- RQ2Does combining multiple compression algorithms via weighted ensemble selection improve forecasting accuracy compared to individual compressors?
- RQ3How does compression-based forecasting compare to established methods in terms of MAE for real-world geophysical time series like T-index and Kp-index?
- RQ4Can compression-based models outperform institutional forecasts (e.g., from SWPC or Bureau of Meteorology) in one-step-ahead predictions?
Key findings
- For the monthly T-index series (Jan 2011–Jul 2017), the compression-based method achieved a lower Mean Absolute Error (MAE) than the Australian Bureau of Meteorology for one-step-ahead forecasts, with MAE = 11.3 vs. 12.2.
- The method using zlib + PPM + rp ensemble achieved an average MAE of 15.0 for horizons 1–4, 18.3 for 1–8, and 23.1 for 1–18, outperforming the SWS forecast in one-step predictions.
- For the Kp-index series (Feb 2018–Mar 2018), the method achieved a one-step MAE of 0.70 with zlib and 0.77 with PPM, compared to SWPC’s 1.11, indicating superior accuracy at the first forecast step.
- The ensemble of zlib, PPM, and rp achieved a 1-step MAE of 0.77, which is significantly lower than SWPC’s 1.11, confirming improved performance for short-term forecasting.
- The compression-based method maintained competitive performance across all horizons, with MAE values similar to or better than SWPC for 1–3 steps ahead.
- The results demonstrate that modern compressors implicitly detect complex temporal patterns using AI-inspired heuristics, enabling effective forecasting without explicit model design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.