
==== Front
PLoS One
PLoS One
plos
PLOS ONE
1932-6203
Public Library of Science San Francisco, CA USA

PONE-D-24-03744
10.1371/journal.pone.0303990
Research Article
Research and Analysis Methods
Mathematical and Statistical Techniques
Mathematical Functions
Wavelet Transforms
Research and Analysis Methods
Mathematical and Statistical Techniques
Statistical Methods
Forecasting
Physical Sciences
Mathematics
Statistics
Statistical Methods
Forecasting
Research and Analysis Methods
Separation Processes
Distillation
Computer and Information Sciences
Neural Networks
Recurrent Neural Networks
Biology and Life Sciences
Neuroscience
Neural Networks
Recurrent Neural Networks
Earth Sciences
Atmospheric Science
Meteorology
Research and Analysis Methods
Mathematical and Statistical Techniques
Mathematical Functions
Computer and Information Sciences
Neural Networks
Biology and Life Sciences
Neuroscience
Neural Networks
Research and Analysis Methods
Mathematical and Statistical Techniques
Mathematical Functions
Convolution
CL-Informer: Long time series prediction model based on continuous wavelet transform
CL-Informer
https://orcid.org/0009-0002-6943-7449
Liu Baijin Conceptualization Data curation Methodology Visualization Writing – original draft Writing – review & editing 1 *
Li Zimei Conceptualization Data curation Formal analysis Methodology Writing – review & editing 2
Li Zhanlin Visualization 1
Chen Cheng Visualization 1
1 Jilin Institute of Chemical Technology, Longtan, Jilin, Jilin, China
2 Changchun Institute of Technology, Chaoyang, Changchun, Jilin, China
AlShehhi Aamna Editor
Khalifa University, UNITED ARAB EMIRATES
Competing Interests: The authors have declared that no competing interests exist.

* E-mail: 1692797200@qq.com
2024
13 9 2024
19 9 e030399030 1 2024
3 5 2024
© 2024 Liu et al
2024
Liu et al
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Time series, a type of data that measures how things change over time, remains challenging to predict. In order to improve the accuracy of time series prediction, a deep learning model CL-Informer is proposed. In the Informer model, an embedding layer based on continuous wavelet transform is added so that the model can capture the characteristics of multi-scale data, and the LSTM layer is used to capture the data dependency further and process the redundant information in continuous wavelet transform. To demonstrate the reliability of the proposed CL-Informer model, it is compared with mainstream forecasting models such as Informer, Informer+, and Reformer on five datasets. Experimental results demonstrate that the CL-Informer model achieves an average reduction of 30.64% in MSE across various univariate prediction horizons and a reduction of 10.70% in MSE across different multivariate prediction horizons, thereby improving the accuracy of Informer in long sequence prediction and enhancing the model’s precision.

The author(s) received no specific funding for this work. Data AvailabilityAll experimental data files are available from figshare at https://doi.org/10.6084/m9.figshare.25498354.v1.
Data Availability

All experimental data files are available from figshare at https://doi.org/10.6084/m9.figshare.25498354.v1.
==== Body
pmcIntroduction

Early research on the TSF problem was primarily based on classical mathematical models and algorithms rooted in statistical principles and assumptions, such as auto-regressive (AR) [1], moving average (MA) [2], autoregressive moving average (ARIMA) [3], seasonal autoregressive moving average (SARIMA) models [4], among others. These models assume stationarity of data and capture autocorrelation, moving averages, and seasonality by establishing lag values and residuals for time series data. However, traditional statistical methods are typically built upon linear model assumptions. In real-world time series data, non-linear trends, seasonality, and other intricate patterns may not be effectively captured by conventional statistical approaches.

In order to enhance the accuracy of time series predictions, machine learning-based methods have been extensively employed. Recurrent neural network (RNN) is a suitable neural network for processing sequences [5]; However, it encounters issues such as gradient vanishing, gradient exploding, and limited parallelism [6]. Long Short-Term Memory Network (LSTM) partially addresses the problems of gradient vanishing and exploding in RNN by incorporating gate mechanisms and cell states, enabling RNN to capture certain levels of long-term dependencies within the processed sequence. Nevertheless, LSTM still confronts challenges in capturing and reducing long-term dependencies when dealing with extensive periods or complex dependency relationships within the sequence. The literature introduces a time series modeling method based on Convolutional Neural Networks (CNN) [7], known as TCN. While TCN captures local patterns and dependencies through convolution operations on time series data, its model structure may not adequately capture long-term dependencies since TCN’s convolution operations primarily focus on local neighborhoods [8]. Neither the RNN-based nor TCN-based model explicitly models distant temporal dependencies or facilitates efficient information exchange between them.

The Transformer model (Vaswani et al., 2017) is a neural network architecture based on self-attention mechanism [9], initially designed for natural language processing tasks like machine translation. It eliminates the sequential processing constraint and enables parallelization of sequence data processing. While self-attention has shown significant effectiveness in capturing dependencies among each element, the computational complexity grows quadratically when dealing with sequences. Various self-attention mechanisms have been proposed to address this issue in recent years. LogSparse Transformer (Li et al., 2019) introduced LogSparse self-attention, which breaks the memory bottleneck by selecting elements at exponentially growing intervals [10]. Performer (2020) is a Transformer-based acceleration model that utilizes a low-rank attention mechanism and random feature mapping to reduce computation and storage complexity [11]. Nyströmformer explores linear attention in a dual softmax form, which reduces the computational complexity of the self-attention mechanism by employing low-rank matrix approximation [12], thus improving the scalability and efficiency of the model to some extent. However, the Nyström method approximates large kernel matrices, which may increase computational complexity when dealing with large datasets or long sequences. Informer (Zhou et al., 2021) introduces sparse self-attention to replace the conventional self-attention [13], achieving time complexity of O(Llog L) and memory usage of O(Llog L) in dependency alignment. Although Informer demonstrates outstanding performance in capturing long-range dependencies with its self-attention mechanism, using distillation methods for model performance improvement and compression can lead to the loss and weakening of long-term dependencies in temporal sequences. Informer is also a Transformer-based neural network, so its ability to capture local dependencies is relatively weaker.

We propose CL-Informer, which is an improved hybrid model based on Informer. In order to improve Informer’s ability to capture local and long dependencies, we have improved the model in two aspects, adding an embedding layer of continuous wavelet transform to the encoding part of the input sequence, adding two layers of LSTM after the self-attention module and deleting the ‘distillation’ method [14]. While distillation operations improve the model’s training efficiency and generalization ability, they may affect the LSTM’s capture of long-term dependencies in time series, thus reducing the model’s predictive performance. By improving local dependence and long dependence, the model can comprehensively capture the correlation of different scales and ranges in time series and improve the data’s modeling ability and prediction accuracy. This will make the model more adaptable to various complex time series data, leading to better performance and more accurate results in practical applications.

The main contributions of this paper are as follows:

We first design an embedded layer CWT based on continuous wavelet transform, through which the model can better learn and process data of different scales and improve model prediction accuracy.

We add the LSTM layer after the sparse self-focusing blocks of the coding layer and decoder to further capture the long and local dependencies of the model. The long-term forecasting model CL-Informer based on CWT and LSTM is established.

Many experiments show that our CL-Informer model has better predictive performance in long-term series prediction.

Proposed deep learning model

Problem definition

Multivariate time series forecasting is a time series analysis method used to predict multiple future values or trends simultaneously. Typically, we have an input variable Xt={xt1,…,xt0|xti∈Rdx}, and our goal is to forecast the values Yt={yt1,…,yt0|yti∈Rdy} for multiple consecutive future time points based on past data. Here, dx and dy represent the dimensions of the input and output variables, respectively. The model for Long Short-Term Forecasting (LSTF) can be represented as Eq (1): Y^t=F(Xt,Λ) (1)

The predicted time series denoted as Y^t, is influenced by the hyperparameter Λ in the prediction model.

CL-Informer

The overall architecture of the CL-Informer model is similar to that of Informer, as shown in Fig 1. For long sequence time series forecasting tasks, we employ a two-stage process. The first stage is the Time Series Embedding Layer, and the second is the Encoder-Decoder. The Time Series Embedding Layer maps the original time series data into a low-dimensional continuous vector space. The encoder part of the model encodes the embedded representation of the time series data into a fixed-length vector, capturing the relationships between different time steps. Subsequently, the decoder part decodes the encoded vector into the predicted target sequence.

10.1371/journal.pone.0303990.g001 Fig 1 Overall framework of CL-Informer.

Model input

The way in which the original time series is inputted into CL-Informer differs from Informer. Informer places more emphasis on modeling time information. By introducing input embeddings and positional encoding, Informer encodes time series data to capture temporal and sequential information, allowing the model to perceive the order of time and local/global temporal dependencies within the sequence. In the Embedding layer of CL-Informer, we transform the time series data into time-frequency information using continuous wavelet transformation and encode it, enabling the model to capture more local and global dependencies.

As shown in Fig 2, a CWT coding layer is added to the time series embedding layer [15]. Continuous wavelet transform has the characteristics of multi-scale and time-frequency localization and has been widely used in signal processing and analysis. It can provide a more comprehensive characterization of time series, especially for time series analysis with non-stationarity, transient characteristics, or frequency changes. Specifically, the embedding layer based on time series includes position coding, time coding, input sequence value coding, and continuous wavelet transform coding. The calculation process can be written as Eq (2): I=Position(X)+Time(T)+Value(X)+CWT(X) (2)

10.1371/journal.pone.0303990.g002 Fig 2 The architecture of the time series embedding layer.

In the equation, X represents the values of the input long time series, T represents the time information generated by the time series, Position(X) represents the positional encoding for the time series, Time(T) represents the encoding for the time series values, Value(X) represents the encoding for the input time series values, and CWT(X) represents the encoding of the continuous wavelet transform for the time series.

The implementation process of the Continuous Wavelet Embedding layer is shown in Fig 3. In this process, Cwt [16] represents the computation of the Continuous Wavelet Transform. In the Continuous Wavelet Transform, we use the ‘Morlet’ wavelet as the wavelet basis to compute the transformation of the input time series in both the time and frequency domains at multiple scales. The specific calculation can be derived from Eqs (3) and (4). Wa×Lx=Cwt(a,b)=⟨f,Ψa,b⟩1a∫-∞+∞f(t)Ψ*(t-ba)dt (3)

Ψ(t)=e-t22eiω0t (4)

10.1371/journal.pone.0303990.g003 Fig 3 CWT embedded layer architecture.

In the given context, a represents the scale factor, b represents the translation factor, f(t) denotes a function related to the time series, Ψ(t) represents the expression of the ‘Morlet’ wavelet function, where ω0 signifies the central frequency. We compute the time series using formula Cwt, resulting in a coefficient matrix Wa×Lx∈Ra*Lx for the time series at multiple scales, with Lx representing the length of the input sequence. Wa×Lx∈Ra*Lx is obtained through scale transformation analysis of the time-frequency characteristics of the time series at different scales using the ‘Morlet’ wavelet as the central frequency. This matrix reflects the scale coefficients in the time-frequency domain, portraying the time series’ variations across different spatial and frequency scales, thereby extracting both local structures and global features. Subsequently, we aggregate Wa×Lx∈Ra*Lx along the second dimension to merge the frequency domain features obtained at different scales within the same time domain, yielding Wt. Finally, the resulting multi-scale time-frequency domain features undergo encoding through a convolution block with a 3-sized kernel, as represented by Eqs (5) and (6), ultimately yielding the embedding layer CWT(X) for the time series concerning continuous wavelets. Wt={∑i=1cwi1,∑i=1cwi2,⋯,∑i=1cwit} (5)

CWT(X)=Embedding(Conv1d(Padding(Wt)) (6)

However, by selecting the appropriate wavelet basis function, the continuous wavelet transform can capture the signal characteristics better and achieve accurate frequency analysis and time-frequency representation. In order to capture more time series features in the time-frequency domain, the transformer oil temperature dataset ETTh1 with a granularity of 1 hour and ETTm1 with a granularity of 15 minutes were selected for wavelet selection in this study. Both data sets were taken from the same transformer in a county in China and spanned two years.

This study selected three commonly used wavelet bases, Morlet, Gaus wavelet, and Marr wavelet, to verify their ability to capture temporal features in CL-Informer. For the Gaus wavelet, the eighth-level wavelet basis from the Gaussian wavelet series was chosen. To compare the feature capturing abilities of the three wavelet bases, the performance of MSE for single-element prediction was compared on the ETTh2 dataset with an input length of 168 and prediction lengths of {24, 48, 168, 336, 720}.

Fig 4 shows that compared with the Gaus8 wavelet base and Morlet wavelet base on the ETTh2 dataset, the Marr wavelet base is relatively less sensitive to the model. The influence of the Gaussian wavelet base and Morlet wavelet base on the mean square error of the model is similar. However, the support length of the Gaussian wavelet base is longer, and the computational complexity is higher. In order to reduce the computational complexity of the model, we choose different support lengths of Gaussian wavelet bases. The effects of MSE and MAE on the single element prediction performance were compared on the ETTh1 dataset with an input length of 168 and prediction length of 24 under different support lengths of Gaussian wavelet.

10.1371/journal.pone.0303990.g004 Fig 4 The architecture of the time series embedding layer.

From Fig 5, it can be observed that as the support length of the Gaus wavelet increases, the prediction performance gradually improves. Among them, the Gaus6 wavelet basis exhibits the best prediction performance and reduces the wavelet transformation’s complexity compared to the Gaus8 wavelet basis. Therefore, we will compare the Gaus6 wavelet basis with the Morlet wavelet basis in single-element and multi-element predictions on the ETTm1 dataset to select the wavelet basis with better prediction accuracy.

10.1371/journal.pone.0303990.g005 Fig 5 Gaussian wavelet prediction of different support degree.

As can be seen from Fig 6, it can be observed that during training with an input length of 168 and prediction lengths of {24, 48, 96, 288, 672}, for the ETTm1 dataset with a granularity of 10 minutes, CL-Informer employed both Morlet and Gaus6 wavelets for continuous wavelet transform. In most cases, the Morlet wavelet transform model exhibited lower mean squared error (MSE) and mean absolute error (MAE) than the Gaus6 wavelet transform model. This indicates that the Morlet wavelet demonstrates better accuracy in single-element and multi-element predictions. Moreover, when conducting continuous transforms, the computational complexity of the Morlet wavelet is lower than that of Gaus6. Therefore, this study selected the Morlet wavelet as the basis function for continuous transformation.

10.1371/journal.pone.0303990.g006 Fig 6 Morlet and Gaus6 for single and multi-element prediction in ETTm1.

Encoder-Decoder

The main component of Informer relies on the self-attention mechanism, specifically the ProbSparse attention mechanism that reduces time complexity. ProbSparse attention creates a sparse matrix based on the KL divergence, selecting a few high-scoring dot products and taking the average of the other low-scoring dot products to reduce time complexity and memory usage. Compared to the regular Transformer model’s self-attention mechanism, it achieves a complexity of O(LlogL). ProbSparse defines Q, K, and V as the query, key, and value vectors. However, it only includes the key-value pairs Q¯∈RLQ×d under the sparse query Top-u, where the size of you is determined by a sampling parameter, and d represents the corresponding dimensionality. The definition of ProbSparse is shown in Eq (7). A(Q¯,K,V)=Softmax(Q¯Ktd)V (7)

As shown in Fig 1, we also adopted the self-focusing mechanism of ProbSpare in the CL-Informer model, but we deleted the distillation module and added the LSTM layer. Because we add continuous wavelet transform to the model input to enhance the local and global dependence of the model input, it also brings a lot of noise and some redundant information to the model input. The LSTM layer can control the transfer of information through the gated unit, and the memory unit can effectively capture and store long-term memory and selectively transfer and forget information when needed.

As shown in Fig 7, LSTM [17] memory unit can selectively forget the information redundancy caused by continuous wavelet transform coding and further extract the long dependency of input time series so that the experimental model has better robustness. The definition of LSTM at time t is as follows: ft=σ(Wf[ht-1;Xit]+bf) (8)

it=σ(Wi[ht-1;Xit]+bi) (9)

ot=σ(Wo[ht-1;Xit]+bo) (10)

ct=ft⊗ct-1+it⊗tanh(Wc[ht-1;Xit]+bc) (11)

ht=ot⊗tanh(ct) (12)

yt=Wdht+bd (13)

10.1371/journal.pone.0303990.g007 Fig 7 LSTM memory unit.

In order to better learn the long-term dependency of LSTM, the output of the updated LSTM unit is represented as follows: yt=Wyyt+Wc¯ct (14)

Where Wf, Wi, Wo, Wc, Wd, Wy, Wc, Wc¯, bf, bi, bo, bc and bd represent the learnable parameters, ct and ht represent the storage cell state variable and hidden layer state variable, tanh represents the hyperbolic tangent activation function, and σ represents the sigmoid activation function.

In the CL-Informer model, we use a 2-layer LSTM to capture further long-term dependencies in the time series, but to reduce computational complexity, we change the number of layers in the encoder to one, thereby reducing the spatial complexity of the calculations. Finally, the output Y^ is obtained through a fully connected layer for result prediction.

Results

Experiment

Implementation step

Using the ADAM optimizer with an initial learning rate of 1E − 4, the model was trained for 10 epochs with a batch size of 32. The training process was terminated prematurely after 10 iterations. All experiments were repeated 10 times and conducted on an NVIDIA GTX4070 GPU with a RAM capacity of 12GB. CL-Informer differs from Informer and InformerStack in having only one encoder layer and an eight-head attention decoder layer. The prediction windows are consistent across all configurations based on the dataset’s timestamps, while the input sequence length for the CL-Informer model encoder is set to 168, and the start mark (label length) for the decoder is fixed at 48. Two evaluation metrics, namely MSE=1n∑i=1n(y-y^)2 and MAE=1n∑i=1n|y-y^|, were employed for each prediction window, with a stride value of one applied to traverse through the entire dataset.

Data

To evaluate CL-Infomer, we conducted experiments using multiple datasets. In order to explore the long dependency enhancement effect of the model, we conducted experiments using five datasets mentioned in Zhou et al. (2021).

ETTh and ETTm are two different granularity datasets that contain the load characteris-tics of seven oil and power transformers, respectively, from July 2016 to July 2018. ETTh contains the two-hour dataset {ETTh1, ETTh2}, and ETTm contains the 15-minute dataset ETTm1.

The Wheather dataset contains local climate data for nearly 1,600 locations in the United States between 2010 and 2013. Data from each site was collected at an hourly rate for a to-tal of four years. The data set contains the target value “wet bulb number” and 11 climate characteristics.

The ECL dataset collected hourly electricity consumption from 321 customers from 2012 to 2014. We split the data set according to Zhou et al(2021). For the ETT data set, the train-ing/validation/test set contains data for 12/4/4 months. For the Wheather data set, the training/cycle/test was 28/10/10 months and the ECL was split according to the train-ing/cycle/test was 15/3/4 months.

Datum line

In time series prediction, we chose six models to compare with CL-Informer, including two RNN-based models, LSTMa (Bahdanau et al., 2015) [18] and LSTnet (Lai et al., 2018) [19]. DeepAR [20], a neural network based on autoregressive loops (Flunkert et al., 2017), and transformer-based Reformer (Kitaev, Kaiser, and 2019) [21], LogSparses(Li et al., 2019), Informer (Zhou et al., 2021). In order to explore the improvement of the accuracy of CL-Informer’s prediction of long-time series better, we added a normalized self-attention variant (Informer+) to the experiment for comparison.

Results and analysis

As shown in Fig 8, with an input length of 168, as the prediction lengths extend to {24, 48, 96, 288, 672}, the CL-Informer model exhibits lower mean squared error (MSE) and mean absolute error (MAE) values compared to the Informer model in both single-element and multi-element predictions on the ETTm1 dataset. Therefore, we have enhanced the model’s prediction accuracy by introducing measures such as the CWT embedding layer, eliminating distillation methods, and incorporating LSTM.

10.1371/journal.pone.0303990.g008 Fig 8 MSE and MAE graphs of different prediction lengths of CL-Informer and Informer under ETTm1.

To thoroughly compare CL-Informer and Informer and other time series models, we conducted comprehensive multi-element and single-element prediction experiments on different data sets and in different Settings. For all data sets, the input length is 168, where ETTh1, ETTh2, Wheather prediction length includes {24, 48, 168, 336, 720}, ETTm1 prediction length includes {24, 48, 96, 288, 672}, The ECL prediction length is selected from {48, 168, 336, 720, 960}. They are highlighted in bold to show the best results for different forecast periods.

Cell time prediction

Table 1 shows that CL-Informer outperforms all models except for DeepAR in all cases and only slightly performs worse on a few datasets. For example, in the input-168-predict-720 setting, compared to the state-of-the-art results, CL-Informer achieves a 37.9% reduction in MSE for ETTh1 (0.269→0.160), a 10.2% reduction for ETTh2 (0.277→0.249), a 34.8% reduction for Weather (0.359→0.234), and a 37.1% reduction for ECL (0.540→0.385). Additionally, in the input-168-predict-672 setting, CL-Informer achieves a 57.0% reduction in MSE for ETTm1 compared to the state-of-the-art results (0.512→0.220). CL-Informer exhibits an overall MSE reduction of 35.4% in the mentioned settings.

10.1371/journal.pone.0303990.t001 Table 1 Data set (5 cases) single element long series time prediction results.

Methods	CL-Informer	Informer	Informer+	LogTrans	Reformer	LSTMa	DeepAR	
Metric	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	
ETTh1	24	0.069	0.206	0.098	0.247	0.092	0.246	0.103	0.259	0.222	0.389	0.114	0.272	0.107	0.280	
48	0.090	0.242	0.158	0.319	0.161	0.322	0.167	0.328	0.284	0.445	0.193	0.358	0.162	0.327	
168	0.096	0.241	0.183	0.346	0.187	0.355	0.207	0.375	1.522	1.191	0.236	0.392	0.239	0.422	
336	0.083	0.221	0.222	0.387	0.215	0.369	0.230	0.398	1.860	1.124	0.590	0.698	0.445	0.552	
720	0.160	0.325	0.269	0.435	0.257	0.421	0.273	0.463	2.112	1.436	0.683	0.768	0.658	0.707	
ETTh2	24	0.074	0.209	0.093	0.240	0.099	0.241	0.102	0.255	0.263	0.437	0.155	0.307	0.098	0.263	
48	0.109	0.263	0.155	0.314	0.159	0.317	0.169	0.348	0.458	0.545	0.190	0.348	0.163	0.341	
168	0.215	0.371	0.232	0.389	0.235	0.390	0.246	0.422	1.029	0.879	0.385	0.514	0.255	0.414	
336	0.242	0.401	0.263	0.417	0.258	0.423	0.267	0.437	1.668	1.228	0.558	0.606	0.604	0.607	
720	0.249	0.404	0.277	0.431	0.285	0.442	0.303	0.493	2.030	1.721	0.640	0.681	0.429	0.580	
ETTm1	24	0.014	0.091	0.030	0.137	0.034	0.160	0.065	0.202	0.095	0.228	0.121	0.233	0.091	0.243	
48	0.025	0.119	0.069	0.203	0.066	0.194	0.078	0.220	0.249	0.390	0.305	0.411	0.219	0.362	
96	0.052	0.176	0.194	0.372	0.187	0.384	0.199	0.386	0.920	0.767	0.287	0.420	0.364	0.496	
288	0.107	0.262	0.401	0.554	0.409	0.548	0.411	0.572	1.108	1.245	0.524	0.584	0.948	0.795	
672	0.220	0.395	0.512	0.644	0.519	0.665	0.598	0.702	1.793	1.528	1.064	0.873	2.437	1.352	
Weather	24	0.091	0.208	0.117	0.251	0.119	0.256	0.136	0.279	0.231	0.401	0.131	0.254	0.128	0.274	
48	0.125	0.251	0.178	0.318	0.185	0.316	0.206	0.356	0.328	0.423	0.190	0.334	0.203	0.353	
168	0.214	0.339	0.266	0.398	0.269	0.404	0.309	0.439	0.654	0.634	0.341	0.448	0.293	0.451	
336	0.244	0.372	0.297	0.416	0.310	0.422	0.359	0.484	1.792	1.093	0.456	0.554	0.585	0.644	
720	0.234	0.375	0.359	0.466	0.361	0.471	0.388	0.499	2.087	1.534	0.866	0.809	0.499	0.596	
ECL	48	0.235	0.359	0.239	0.359	0.238	0.368	0.280	0.429	0.971	0.884	0.493	0.539	0.204	0.357	
168	0.340	0.424	0.447	0.503	0.442	0.514	0.454	0.529	1.671	1.587	0.723	0.655	0.315	0.436	
336	0.344	0.430	0.489	0.528	0.501	0.552	0.514	0.563	3.528	2.196	1.212	0.898	0.414	0.519	
720	0.385	0.466	0.540	0.571	0.543	0.578	0.558	0.609	4.891	4.047	1.511	0.966	0.563	0.595	
960	0.367	0.457	0.582	0.608	0.594	0.638	0.624	0.645	7.019	5.105	1.545	1.006	0.657	0.683	
count	47	0	0	0	0	0	3	

Furthermore, we can observe that CL-Informer demonstrates good stability as the prediction length increases, particularly in longer prediction horizons. This indicates that CL-Informer is more suitable for long-term time series forecasting, which is significant for real-world applications like long-term energy consumption planning and weather forecasting.

Multi-element time prediction

Table 2 shows the results of four typical datasets. Our model performs well in the long-term prediction task compared to other models. For example, in the input-168-predict-336 setting, MSE decreased by 5.6% (1.128→1.068) in ETTh1 and 8.9% (0.702→0.639) in Wheather compared with the previous most advanced result. The ECL was reduced by 24.9% (0.381→0.286), and the MSE of ETTm1 was reduced by 15.3% (1.056→0.894) in the input-168-predict-288 setting. Overall, the overall MSE of CL-Informer in the appellate setting decreased by 13.6%. We can find that the CL-Informer model’s long time series prediction effect is better than that of a based time series model and some transformer-based time series models in multi-element time prediction.

10.1371/journal.pone.0303990.t002 Table 2 Data set (4 cases) multi-element long series time prediction results.

Methods	CL-Iformer	Informer	Informer+	LogTrans	Reformer	LSTMa	LSTnet	
Metric	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	MSE	MAE	
ETTh1	24	0.546	0.533	0.577	0.549	0.620	0.577	0.686	0.604	0.991	0.754	0.650	0.624	1.293	0.901	
48	0.657	0.608	0.685	0.625	0.692	0.671	0.766	0.757	1.313	0.906	0.702	0.675	1.456	0.960	
168	0.881	0.747	0.931	0.752	0.947	0.797	1.002	0.846	1.824	1.138	1.212	0.867	1.997	1.214	
336	1.068	0.806	1.128	0.873	1.094	0.813	1.362	0.952	2.117	1.280	1.424	0.994	2.655	1.369	
720	1.209	0.901	1.215	0.896	1.241	0.917	1.397	1.291	2.415	1.520	1.960	1.322	2.143	1.380	
ETTm1	24	0.296	0.362	0.323	0.369	0.306	0.371	0.419	0.412	0.724	0.607	0.621	0.629	1.968	1.170	
48	0.436	0.458	0.494	0.503	0.465	0.470	0.507	0.583	1.098	0.777	1.392	0.939	1.999	1.215	
96	0.628	0.551	0.678	0.614	0.681	0.612	0.768	0.792	1.433	0.945	1.339	0.913	2.762	1.542	
288	0.894	0.713	1.056	0.786	1.162	0.879	1.462	1.320	1.820	1.094	1.740	1.124	1.257	2.076	
672	1.044	0.788	1.192	0.926	1.231	1.103	1.669	1.461	2.187	1.232	2.736	1.555	1.917	2.941	
Weather	24	0.329	0.377	0.335	0.381	0.349	0.397	0.435	0.477	0.655	0.583	0.546	0.570	0.615	0.545	
48	0.410	0.437	0.395	0.459	0.386	0.433	0.426	0.495	0.729	0.666	0.829	0.677	0.660	0.589	
168	0.585	0.558	0.608	0.567	0.613	0.582	0.727	0.671	1.318	0.855	1.038	0.835	0.748	0.647	
336	0.639	0.589	0.702	0.620	0.707	0.634	0.754	0.670	1.930	1.167	1.657	1.059	0.782	0.683	
720	0.634	0.593	0.831	0.731	0.834	0.741	0.885	0.773	2.726	1.575	1.536	1.109	0.851	0.757	
ECL	48	0.248	0.349	0.344	0.393	0.334	0.399	0.355	0.418	1.404	0.999	0.486	0.572	0.369	0.445	
168	0.273	0.364	0.368	0.424	0.353	0.420	0.368	0.432	1.515	1.069	0.574	0.602	0.394	0.476	
336	0.286	0.380	0.381	0.431	0.381	0.439	0.373	0.439	1.601	1.104	0.886	0.795	0.419	0.477	
720	0.312	0.399	0.406	0.443	0.391	0.438	0.409	0.454	2.009	1.170	1.676	1.095	0.556	0.565	
960	0.332	0.411	0.460	0.548	0.492	0.550	0.477	0.589	2.141	1.387	1.591	1.128	0.605	0.599	
count	37	1	2	0	0	0	0	

CL-Informer predicted effect

The two pictures in Fig 9 respectively show the single-element prediction effect of CL-Informer under ETTm1. Since CL-Informer is a multi-step prediction model, we randomly select the predicted and actual values under a single step to compare. Fig 9(a) shows the actual and predicted values’ curves in the ETTm1 data set under CL-Informer input-168-predict-288. Fig 9(b) shows the effect of the actual and predicted values in a single prediction window. From Fig 9, we can see that CL-Informer performs well predicting long series.

10.1371/journal.pone.0303990.g009 Fig 9 Prediction effect slice of CL-Informer under ETTm1.

Discussion

In order to verify the enhancement of the Informer model by CL-Informer, we also considered conducting additional ablation experiments on ETTh1 to compare the transformation of MSE and MAE of the C-Informer model after removing the LSTM coding layer. Tables 1 and 2 compare CL-Informer with Informer’s model and the main-stream models LogTrans, Reformer, LSTMa and LSTnet. In this ablation experiment, we compare our approach to Informer’s model. In Table 3, we compare the performance of CL-Informer, C-Informer, and Informer for MSE, MAE with input length {288, 576} and prediction length {720, 1440}. For a fair comparison, except for CL-Informer, C-Informer kept the encoder at layer 1, and the other hyperparameters were unchanged. In this experiment, data set ETTh1 was used for model ablation.

10.1371/journal.pone.0303990.t003 Table 3 Single element predictive ablation experiment of CL-Informer.

Prediction length	720	1440	
Encoder’s input	288	576	288	576	
CL-Informer	MSE	0.078	0.073	0.081	0.092	
MAE	0.225	0.216	0.228	0.24	
C-Informer	MSE	0.096	0.08	0.098	0.098	
MAE	0.241	0.232	0.249	0.245	
Informer	MSE	0.115	0.091	0.216	0.117	
MAE	0.269	0.235	0.395	0.272	

From Table 3, it can be observed that removing the LSTM layer resulted in inferior performance in terms of MSE and MAE compared to including the LSTM layer. The average MAE increased by 6.4%, indicating poorer performance without the LSTM layer. Furthermore, the C-Informer, which only includes the CWT embedding layer, outperformed the Informer model in terms of MSE and MAE, with an average decrease in MAE of 20.6%. As the LSTM and CWT embedding layers are gradually removed, the model’s performance continuously deteriorates. This indicates that by adding the CWT embedding layer along with the LSTM layer while removing distillation operations, the model’s predictive accuracy is indeed improved. Fig 10 also demonstrates that as the CWT embedding layer and LSTM layer are added to the Informer model, the error consistently decreases, indicating that CL-Informer exhibits good predictive performance.

10.1371/journal.pone.0303990.g010 Fig 10 Sensitivity of three wavelet bases to the model.

Although capturing more scale of time series features through continuous wavelet transform has enabled CL-Informer to outperform the Informer model in predictive accuracy across multiple datasets, further research is needed regarding selecting wavelet basis functions and extracting time-frequency domain features.

Conclusion

This paper studies the problem of long-series time series prediction, and an improved CL-Informer model for long-series prediction based on Informer is proposed. Specifically, to improve the model’s prediction accuracy in long series, we embed a continuous wavelet transform layer (CWT) in the coding layer and extracted multi-scale features and dependencies from the time series through CWT. On this basis, we remove the “distillation” operation of the coding-decoder, add an extended short-term neural network (LSTM), change the number of encoder layers to 1 layer, and finally get the prediction model CL-Informer.

By comparing with other experimental models, it has been demonstrated that CL-Informer is more effective in discovering predictive dependencies. Additionally, under various experimental settings, CL-Informer consistently achieves better predictive performance. For single-variable prediction horizons, the CL-Informer model exhibited an average decrease of 30.64% in Mean Squared Error (MSE), while for multi-variable predictions, the reduction was 10.70%. This further validates the effectiveness and stability of the proposed model.

Supporting information

S1 Fig CWT diagram of the embedding layer architecture.

Show the composition and execution flow of CWT embedding layer.

(VSDX)

S2 Fig Univariate linear comparison plot between MOrlet and Gaus6 wavelet basis in the ETTm1 dataset.

Discount plots of MSE versus MAE for both wavelet bases.

(VSDX)

S3 Fig Multivariate linear comparison plot between MOrlet and Gaus6 wavelet basis in the ETTm1 dataset.

Discount plots of MSE versus MAE for both wavelet bases.

(VSDX)

S1 Table CL-Informer compared to Informer in univariate accuracy optimization percentage.

Calculate the MSE and MAE improvement of CL-Informer compared with Informer in five data.

(XLSX)

S2 Table CL-Informer compared to Informer in multivariate accuracy optimization percentage.

Calculate the MSE and MAE improvement of CL-Informer compared with Informer in four data.

(XLSX)

S1 File The five kinds of data sets used in the experiments.

(7Z)

The author expresses gratitude to Zimei Li.

10.1371/journal.pone.0303990.r001
Decision Letter 0
AlShehhi Aamna Academic Editor
© 2024 Aamna AlShehhi
2024
Aamna AlShehhi
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version0
26 Feb 2024

PONE-D-24-03744CL-Informer: Long Time Series Prediction Model Based on Continuous Wavelet TransformPLOS ONE

Dear Dr. Baijin Liu,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by 25. March.2024. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Aamna Mohammed AlShehhi, PhD

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please note that PLOS ONE has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, all author-generated code must be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. Thank you for stating the following in your Competing Interests section: 

"NO"

Please complete your Competing Interests on the online submission form to state any Competing Interests. If you have no competing interests, please state "The authors have declared that no competing interests exist.", as detailed online in our guide for authors at http://journals.plos.org/plosone/s/submit-now   

 This information should be included in your cover letter; we will change the online submission form on your behalf.

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Partly

Reviewer #3: Partly

Reviewer #4: Yes

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: No

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: The authors proposed CL-Informer, which is an improved hybrid model based on Informer. An embedded continuous wavelet transform layer in the encoder and decoder to improve the prediction accuracy of the model in long series. They added the LSTM layer after the sparse self-focusing blocks of the encoder and decoder to further capture the long and local dependencies of the model. Five experiments showed that the CL-Informer model has better predictive performance in long-term series prediction. This is a valuable job, but I still have some questions that need the authors to reply to.

1. Can the authors explain why they used those five time series datasets in this paper? CL-Informer can learn and process data of different scales, so, whether they can handle any datasets that are much larger than ETTh1, ETTh2, ETTm1, Weather, and ECL well?

2. Why in S2_Table includes ETTh2, but in S1_Table doesn’t?

3. In Figure 3, the x-axis is the prediction length in dataset ETTh2, which is {24, 48, 168, 336, 720}, but in the main manuscript content, it says the ETTh2 data set with input length of 168 and prediction length of {24, 48, 96, 168, 720}, which one is correct?

4. From Fig 4, the authors claimed as the support length of the Gaus wavelet increases, the prediction performance gradually improves. For example, MSE from 0.06 (gaus1) to 0.05 (gaus8) is only 0.01 improved, it seems like not a strongly improved.

5. Line 6 in paragraph one of the ‘Results and analysis’ part needs to be modified, that sentence is not finished.

6. Some figures can be merged as one figure, such as Figure 7 and Figure 8, the same datasets, but one is for MSE and the other is for MAE score, which can be put into one figure. The authors need to pay attention that in some figures they used MSE, but in others, they used MSE score.

7. It’s better to add some legends for the figures, like Figure 9, to make it more readable for the readers.

8. It’s better to let a native speaker go through this whole manuscript and modify the grammar issues.

Reviewer #2: The manuscript presents the CL-Informer model, an advancement over existing time series prediction models through the integration of a continuous wavelet transform embedding layer and an LSTM layer.

1. Quality of Fig 4,5,7, need improved

2. In the abstract and conclusion, it is necessary to introduce the superiority of CL-Informer's performance in a quantified manner.

3. It is necessary to compare with other state-of-the-art algorithms to demonstrate the performance of the proposed method.

4. Each variable in the formula needs to be explained.

5. page 5/8, before and ater Fig 3, redundant description.

'In this paper, three commonly used wavelet bases, Morlet wavelet base, Gaus

wavelet base, and Marr wavelet base, are selected to verify the timing feature capture

capability of CL-Informer, and the Gaussian wavelet base is selected as the eighth level

wavelet base in the Gaussian wavelet series, which contains a filter of length 8.'

'This study selected three commonly used wavelet bases, namely Morlet wavelet,

Gaus wavelet, and Marr wavelet, to verify their ability to capture temporal features in

CL-Informer. For Gaus wavelet, the eighth-level wavelet basis from the Gaussian

wavelet series was chosen, which includes a filter of length 8.'

6. Each image needs to be explained, clarifying what the symbols in the pictures represent.

7.The discussion section needs to include a quantitative analysis of the superiority of the proposed method and discuss which strategies have improved the performance of the algorithm.

8. The abstract and conclusion sections need improvement.

Reviewer #3: In the article, the authors propose a prediction model based on CL-Informer, which incorporates two improvements on the basis of the original Informer model: firstly, a wavelet transform embedding layer is added, where wavelet decomposition technique is first used to frequency split the original data, and then positional embedding is performed. This enhances the model's ability to analyze multi-scale data. Finally, the LSTM layer is used to replace the "distillation" in the original model to solve the redundant information generated by the wavelet transform operation. The article has some innovation, but the principle analysis of the model is not clear enough, and the research problem is not clear enough. Therefore, the following modifications are proposed:

1. The embedding layer based on wavelet transform is designed, it is obviou that the frequency division operation is carried out first, after the wavelet transform operation, how the data are input to the embedding layer of the model, please explain.

2. In the paper, we choose to remove the "distillation" operation of the Informer model and add the LSTM layer. The "distillation" operation in the Informer is to improve the training efficiency and generalization ability of the model, while adding the LSTM layer is to extract the dependency relationship between the data and the LSTM layer. The "distillation" operation in Informer is to improve the training efficiency and generalization ability of the model, while the LSTM layer is used to extract the dependency relationship between the data, the two roles are not the same, whether it is reasonable to replace the "distillation" operation of the Informer model with LSTM, please explain.

3. There is no specific formula for positional embedding in the embedding layer, please explain in detail the specific operation of the embedding layer.

4. Modify Figure 2, which does not clearly reflect the overall structure of the layer and the operation process.

5. The introduction of the CL-informer model proposed in the paper is not clear enough.

Reviewer #4: Overall, I found this paper to be quite good. It is not particularly well written and I would urge the authors to improve that aspect in many sections. Also, there is a fair amount of unexplained nomenclature and long sentences that could be summarized better with an equation. Overall, I think this paper demands minor modifications only.

more important points to clarify, modify:

- in general, most equations do not flow with the text. I.e. "The calculation process is illustrated by Eq.(1):", should be "The process can be written as, ..."

-Many datasets (ETTh2, ETTm1) are discussed in the wavelet selection part of the paper before being described. All datasets should be described before being used.

-Wavelet selection section. One of the main points of the paper is that wavelets are used. I would move this whole section as supplementary information and just say what wavelet is used for training and prediction but mention that interested readers can look up the SI where other wavelets are explored

-Wavelet selection - Give an equation for every wavelet so we can better understand the differences

more minor points

- intro - CNN undefined

- intro - remove of explain "However, the approximation method used in Nystromformer may

not be suitable for longer sequences"

- Problem definition - "The determination of whether to use single-element or

multi-element prediction depends on the value of dy ≥ 1". Remove, this was defined above the Eq.

- Eq.(5) is unnecessary since all contained in Eq.(4).

- do you mean integrating over the 'b' (if yes, please say): " By summing Wt

along the second dimension"

- Add an equation to describe this : " Finally, the multi-scale time-frequency domain

features are encoded by a convolutional block with convolutional kernels of size 3"

- There are an infinite number of wavelets, so this sentence does not make sense : "Due to the extensive experimental workload, not all wavelet bases"

were compared."

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Reviewer #4: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

10.1371/journal.pone.0303990.r002
Author response to Decision Letter 0
Submission Version1
28 Mar 2024

List of Responses

Dear Editor Aamna Mohammed AlShehhi, PhD and Reviewers：

Thank you for your letter and for the reviewers’ comments concerning our manuscript entitled “CL-Informer: Long Time Series Prediction Model Based on Continuous Wavelet Transform” (ID:PONE-D-24-03744). Those comments are all valuable and very helpful for revising and improving our paper, as well as the important guiding significance to our researches. We have studied comments carefully and have made correction which we hope meet with approval. Revised portion are marked in red in the paper. The main corrections in the paper and the responds to the reviewer’s comments are as flowing:

Responds to the reviewer’s comments:

Reviewer #1:

1.Response to comment:（Can the authors explain why they used these five time series datasets in this paper? So can CL-Informer handle bigger data?）

Response:Thank you very much for your professional review of our articles. The use of these 5 data sets is firstly to reflect the model's generalization in multiple fields. Secondly, ETTh1 and ETTh2 in ETT data adopt the same time granularity to verify whether the prediction effect of the model will be improved under the same type of data. ETTm1 verifies that time series prediction with different granularity in the same domain will also improve, while ECL and Wheather data verify the model's generalization in different domains. Larger data sets can be handled.

2.Response to comment: Why in S2_Table includes ETTh2, but in S1_Table doesn’t?

Response:Thank you very much for your question. ETTh2 is not included in S2_Table because ETTh1 and ETTh2 are in the same domain, with the same time granularity and the same type of data, so we did not make multivariate prediction for ETTh2 in multivariate prediction.

3.Response to comment: In Figure 3, the x-axis is the prediction length in dataset ETTh2, which is {24, 48, 168, 336, 720}, but in the main manuscript content, it says the ETTh2 data set with input length of 168 and prediction length of {24, 48, 96, 168, 720}, which one is correct?

Response:We are very sorry for our miswriting, but should have followed the predicted length of the picture as {24, 48, 168, 336, 720}. (Amended page 6, paragraph 2, line 7.)

4.Response to comment: From Fig 4, the authors claimed as the support length of the Gaus wavelet increases, the prediction performance gradually improves. For example, MSE from 0.06 (gaus1) to 0.05 (gaus8) is only 0.01 improved, it seems like not a strongly improved.

Response:We agree with the reviewer's opinion on this issue, but in fact, the MSE of CL-Informer gaus1 is 0.06445934, and the MSE of Gaus6 is 0.04488082, which has an increase of nearly 0.02. Moreover, each experiment was performed ten times, and the average MSE of the ten experiments of Gaus6 was about 0.02 higher than that of the ten experiments of Gaus1 wavelet. (We have redrawn Figure 4 to Figure 5 on page 7.)

5.Response to comment: Line 6 in paragraph one of the‘Results and analysis’ part needs to be modified, that sentence is not finished.

Response:We are very sorry for our careless mistake. Thank you for reminding me. We rewrote the unfinished part of the sixth line of "Results and analysis." (The changes are made in the second paragraph of "Results and analysis" on page 11, and lines 3 to 7 have been modified)

6.Response to comment:（Some figures can be merged as one figure, such as Figure 7 and Figure 8, the same datasets, but one is for MSE and the other is for MAE score, which can be put into one figure. The authors need to pay attention that in some figures they used MSE, but in others, they used MSE score.）

Response:We have corrected it according to the reviewer's comments. We merged Figure 7 and Figure 8 into Figure 8 and changed the 'MSE' and 'MSE score' in the legend to MSE. (Revised as Figure 8 on page 11)

7.Response to comment: It’s better to add some legends for the figures, like Figure 9, to make it more readable for the readers.

Response:We have corrected according to the reviewer's comments. We added a legend to Figure 9, adding a legend illustration of the X and y coordinates. (Revised as Figure 9, page 13).

8.Response to comment: It’s better to let a native speaker go through this whole manuscript and modify the grammar issues.

Response:Thanks for your suggestion. We have tried our best to polish the language in the revised manuscript.

Special thanks to you for your good comments.

Reviewer #2:

1.Response to comment: Quality of Fig 4,5,7, need improved

Response:As suggested by the reviewer, we have redrawn Figure 4 and modified the quality of Figure 5 and Figure 7. (Modified as Figure 5 on page 7, Figure 6 on page 8, and Figure 8 on page 11)

2.Response to comment: In the abstract and conclusion, it is necessary to introduce the superiority of CL-Informer's performance in a quantified manner.

Response:Considering the reviewers' suggestions, we quantitatively introduced the advantages of CL-Informer in the abstract and conclusion. (Changes are made to the 9th to last line of the summary on page 1 and the second paragraph of the conclusion on page 15.)

3.Response to comment: It is necessary to compare with other state-of-the-art algorithms to demonstrate the performance of the proposed method.

Response:We appreciate the reviewer's suggestion and compare MSE and MAE with other algorithms in Table 1 and Table 2.

4.Response to comment: Each variable in the formula needs to be explained.

Response:Thank you for your careful examination. We will add variables that are not explained in the formula.

5.Response to comment: page 5/8, before and ater Fig 3, redundant description.

Response:We apologize for our carelessness. In our resubmitted manuscript, the description of redundancy has been revised. Thank you for your correction.(The redundant description in Figure 4 (original Figure 3) has been deleted on page 6.))

6.Response to comment: Each image needs to be explained, clarifying what the symbols in the pictures represent.

Response:Thanks for your suggestion; we will add an explanation of the symbols in the picture.

7.Response to comment: The discussion section needs to include a quantitative analysis of the superiority of the proposed method and discuss which strategies have improved the performance of the algorithm.

Response:Thanks for your suggestion; we have added a quantitative analysis of the advantages of the proposed method in the discussion section (revised on page 14, lines 2 to 5).

8.Response to comment:（The abstract and conclusion sections need improvement.）

Response:We think this is an excellent suggestion. We introduced the advantages of CL-Informer by adding quantitative methods to the abstract and conclusion. (Changes are made to the 9th to last line of the summary on page 1 and the second paragraph of the conclusion on page 15.)

Special thanks to you for your good comments.

Reviewer #3:

1.Response to comment：The embedding layer based on wavelet transform is designed, it is obviou that the frequency division operation is carried out first, after the wavelet transform operation, how the data are input to the embedding layer of the model, please explain.

Response:We think this is a good suggestion. We added Figure 3 for the architecture diagram of the CWT embed layer and rewrote the CWT embed layer. (The changes are in Figure 3 on page 5 and the last paragraph on page 5)

2.Response to comment:Thank you for your advice. "Distillation operation" In this article, we removed the "distillation" operation from the Informer model and added the LSTM layer. Please indicate whether replacing the "distillation" operation of the Informer model with LSTM makes sense.

Response:Thank you for your advice. "Distillation operation" is deleted because although it improves the model's generalization ability, it will affect LSTM's extraction of features that are long dependent on time series during distillation operation. We once used a CL-Informer model that did not remove the "distillation" operation, and its MSE, MAE, showed a low MAE value for a CL-Informer model that did not remove the "distillation" operation. (Modified at lines 5-8, paragraph 2, page 2)

3.Response to comment: There is no specific formula for positional embedding in the embedding layer, please explain in detail the specific operation of the embedding layer.

Response:Thanks to your suggestion, we have rewritten the CWT embedding layer (changes are made in the last paragraph of page 5).

4.Response to comment: Modify Figure 2, which does not clearly reflect the overall structure of the layer and the operation process.

Response:Thanks for your suggestion; we have added the architecture diagram of the embedded layer in Figure 3-CWT to supplement the overall structure of the layer in Figure 2. (Revised as Figure 3 on page 5)

5.Response to comment: The introduction of the CL-informer model proposed in the paper is not clear enough.

Response:Thanks for your suggestions; we will try our best to improve our presentation of the model.

Special thanks to you for your good comments.

Reviewer #4:

1.Response to comment: in general, most equations do not flow with the text. I.e.

Response:Thanks to your suggestion, we have modified the fluidity of the equation.

2.Response to comment: Many datasets (ETTh2, ETTm1) are discussed in the wavelet selection part of the paper before being described. All datasets should be described before being used.

Response:We have made corrections based on the reviewer's comments. 2. Data ETTh1 and ETTm1 are described before wavelet selection. (Amended at page 6, paragraph 1, lines 3 to 7)2.Response to comment: Each image needs to be explained, clarifying what the symbols in the pictures represent.

3.Response to comment: Questions about wavelet selection and insert S1 as supplementary information.

Response:Thanks to the reviewer's suggestion, we slightly adjusted the part of the wavelet selection. We first added the architecture diagram of the CWT embedding layer in Figure 3 and rewrote the CWT embedding layer. Then, the choice of wavelet will be introduced to make the article smoother. (The changes are in Figure 3 on page 5 and the last paragraph on page 5)

4.Response to comment:"CNN" and "The approximate method used in Nyströmformer may not apply to longer sequences "are not defined.

Response:We have made corrections based on the reviewer's comments. We have a brief mention of CNN and a rewrite of the pros and cons of Nystromformer's long series predictions. (Changes are made on lines 1 to 2 and lines 22 to 24 of page 2)

5.Response to comment: Problem definition - "The determination of whether to use single-element or multi-element prediction depends on the value of dy ≥ 1". Remove, this was defined above the Eq.

Response:Thanks to the reviewer's suggestion, the multi-element prediction was removed depending on the value of dy≥1. (Modify the last paragraph of the Problem definition on the second page)

6.Response to comment: Formula (5) is not necessary because all are included in the formula (4), and an equation is added that describes "by summing over Wt along the second element."

Response:Thanks to the reviewer's suggestion, we deleted the original formula 5, added a new formula 5,6, and added the variable description. (Modified by Formula 5 on page 5 and Formula six on page 6)

7.Response to comment: The number of wavelets is infinite, so the sentence does not make sense: "Due to the extensive experimental workload, not all wavelets are based" on comparison.

Response:Thanks to the reviewer's suggestion, we deleted the section and rewrote it. (Amended first paragraph, page 15)

Special thanks to you for your good comments.

Other changes:

1.We made a structural change to the "Results and Analysis" section, bringing the original first paragraph under Figure 8. (Amended on page 11)

2.We changed the position of Table 1 under "Datum line" and put it into the "Cell time prediction:" of "Result and Analysis" to ensure a smoother article.(Revised at page 16)

3.We divide the first paragraph of "Results and Analysis" into two paragraphs. (Revised at page 15, paragraphs 1 and 2)

4.We are sorry for our carelessness. We have corrected the Informer model in Table 3 with MSE of 288 input length and 720 output length, and MAE of 576 input length and 1440 output length to be the same as the experimental data. (The Informer's input length is 288 with an output length of 720 MSE, and the MAE with an input length of 576 and an output length of 1440 has been corrected in Table 3 on page 14.)

We tried our best to improve the manuscript and made some changes. These changes will not influence the content and framework of the paper. Moreover, we did not list the changes here but marked them in red in the revised paper.

We appreciate the Editors/Reviewers’ warm work earnestly and hope the corrections will be approved.

Once again, thank you very much for your comments and suggestions.

Attachment Submitted filename: Response to Reviewers.pdf

10.1371/journal.pone.0303990.r003
Decision Letter 1
AlShehhi Aamna Academic Editor
© 2024 Aamna AlShehhi
2024
Aamna AlShehhi
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version1
6 May 2024

CL-Informer: Long Time Series Prediction Model Based on Continuous Wavelet Transform

PONE-D-24-03744R1

Dear Dr. Baijin Liu,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager® and clicking the ‘Update My Information' link at the top of the page. If you have any questions relating to publication charges, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Aamna AlShehhi, PhD

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

Reviewer #2: All comments have been addressed

Reviewer #4: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #4: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #4: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #4: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #4: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: I found out that all the authors have put considerable effort into addressing the reports of the referees. So I have no further questions, and this paper is ready to be accepted.

Reviewer #2: In the revised version of the submission, all comments have been addressed. The quality of the article has improved significantly.

Reviewer #4: The paper has been greatly improved. If anything, the other wavelets used for comparing against Morlet would benefit from being explained somewhere. Otherwise, the authors have made a significant effort to improve the paper and address my comments

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Jing Jiang

Reviewer #2: No

Reviewer #4: No

**********

10.1371/journal.pone.0303990.r004
Acceptance letter
AlShehhi Aamna Academic Editor
© 2024 Aamna AlShehhi
2024
Aamna AlShehhi
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
21 Jun 2024

PONE-D-24-03744R1

PLOS ONE

Dear Dr. Liu,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

If revisions are needed, the production department will contact you directly to resolve them. If no revisions are needed, you will receive an email when the publication date has been set. At this time, we do not offer pre-publication proofs to authors during production of the accepted work. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few weeks to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr Aamna AlShehhi

Academic Editor

PLOS ONE
==== Refs
References

1 Dickey David A , Fuller Wayne A . Distribution of the Estimators for Autoregressive Time Series with a Unit Root. Journal of the American Statistical Association. 1979;74 (366a ):427–431. doi: 10.1080/01621459.1979.10482531
2 Alevizakos Vasileios , Chatterjee Kashinath , Koukouvinos Christos . The triple exponentially weighted moving average control chart. Quality Technology & Quantitative Management. 2021;18 (3 ):326–354. doi: 10.1080/16843703.2020.1809063
3 Svetunkov Ivan , Boylan John E . State-space ARIMA for supply-chain forecasting. International Journal of Production Research. 2020;58 (3 ):818–827. doi: 10.1080/00207543.2019.1600764
4 Zhang G Peter . Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing. 2003;50 :159–175. doi: 10.1016/S0925-2312(01)00702-0
5 Sherstinsky Alex . Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network. Physica D: Nonlinear Phenomena. 2020;404 :132306. doi: 10.1016/j.physd.2019.132306
6 Greff Klaus , Srivastava Rupesh K , Koutnik Jan , Steunebrink Bas R , Schmidhuber Jurgen . LSTM: A Search Space Odyssey. IEEE Transactions on Neural Networks and Learning Systems. 2017;28 (10 ):2222–2232. doi: 10.1109/TNNLS.2016.2582924 27411231
7 Chua Leon O . CNN: A Vision of Complexity. International Journal of Bifurcation and Chaos. 1997;07 (10 ):2219–2425. doi: 10.1142/S0218127497001618
8 Daheng Wang, Prashant Shiralkar, Colin Lockard, Binxuan Huang, Xin Luna Dong, Meng Jiang. TCN: Table Convolutional Network for Web Table Interpretation. In: Proceedings of the Web Conference 2021. WWW’21. New York, NY, USA: Association for Computing Machinery; 2021. p. 4020–4032. Available from: 10.1145/3442381.3450090.
9 Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, et al. Attention Is All You Need. CoRR. 2017;abs/1706.03762.
10 Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, et al. Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting. In: Advances in Neural Information Processing Systems. vol. 32. Curran Associates, Inc.;.Available from: https://proceedings.neurips.cc/paper/2019/hash/6775a0635c302542da2c32aa19d86be0-Abstract.html.
11 Krzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamás Sarlós, et al. Rethinking Attention with Performers. In: 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net; 2021.Available from: https://openreview.net/forum?id=Ua6zuk0WRH.
12 Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, et al. Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention. Proceedings of the AAAI Conference on Artificial Intelligence. 2021;35(16):14138–14148.
13 Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, et al. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting; 2021. Available from: http://arxiv.org/abs/2012.07436.
14 Singh Aasim, S N , Mohapatra Abheejeet . Repeated wavelet transform based ARIMA model for very short-term wind speed forecasting. Renewable Energy. 2019;136 :758–768. doi: 10.1016/j.renene.2019.01.031
15 ALTobi Maamar Ali Saud , Bevan Geraint , Wallace Peter , Harrison David , Ramachandran K P . Fault diagnosis of a centrifugal pump using MLP-GABP and SVM with CWT. Engineering Science and Technology, an International Journal. 2019;22 (3 ):854–861. doi: 10.1016/j.jestch.2019.01.005
16 Stockwell R G , Mansinha L , Lowe R P . Localization of the complex spectrum: the S transform. IEEE Transactions on Signal Processing. 1996;44 (4 ):998–1001. doi: 10.1109/78.492555
17 Van Houdt Greg , Mosquera Carlos , Nápoles Gonzalo . A review on the long short-term memory model. Artificial Intelligence Review. 2020;53 (8 ):5929–5955. doi: 10.1007/s10462-020-09838-1
18 Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio. Neural Machine Translation by Jointly Learning to Align and Translate. In: Yoshua Bengio, Yann LeCun, editors. 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings; 2015.Available from: http://arxiv.org/abs/1409.0473.
19 Guokun Lai, Wei-Cheng Chang, Yiming Yang, Hanxiao Liu. Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks; 2017. Available from: https://arxiv.org/abs/1703.07015v3.
20 Valentin Flunkert, David Salinas, Jan Gasthaus. DeepAR: Probabilistic Forecasting with Autoregressive Recurrent Networks. CoRR. 2017;abs/1704.04110.
21 Nikita Kitaev, Lukasz Kaiser, Anselm Levskaya. Reformer: The Efficient Transformer. In: 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net; 2020.Available from: https://openreview.net/forum?id=rkgNKkHtvB. 10.1609/aaai.v35i16.17664
