Research Article  Open Access
Lijuan Yan, Yanshen Liu, Yi Liu, "Application of Discrete Wavelet Transform in ShapeletBased Classification", Mathematical Problems in Engineering, vol. 2020, Article ID 6523872, 13 pages, 2020. https://doi.org/10.1155/2020/6523872
Application of Discrete Wavelet Transform in ShapeletBased Classification
Abstract
Recently, several shapeletbased methods have been proposed for time series classification, which are accomplished by identifying the most discriminating subsequence. However, for time series datasets in some application domains, pattern recognition on the original time series cannot always obtain ideal results. To address this issue, we propose an ensemble algorithm by combining time frequency analysis and shape similarity recognition of time series. Discrete wavelet transform is used to decompose the time series into different components, and the shapelet features are identified for each component. According to the different correlations between each component and the original time series, an ensemble classifier is built by weighted majority voting, and the Monte Carlo method is used to search for optimal weight vector. The comparative experiments and sensitivity analysis are conducted on 25 datasets from UCR Time Series Classification Archive, which is an important open dataset resource in time series mining. The results show the proposed method has a better performance in terms of accuracy and stability than the compared classifiers.
1. Introduction
A time series is a data sequence that represents recorded values of a phenomenon over time. Time series data constitutes a large portion of the data stored in real world databases [1]. Time series data have widely existed in many fields, such as commerce, agriculture, meteorology, bioscience, and ecology. Data such as meteorological data in weather forecast, floating currency exchange rate in foreign trade, radio wave, images captured by medical devices, and continuous signals in engineering applications can be regarded as time series [2]. Time series data are more complex to analyse than the crosssectional data due to the way in which measurements change over time [3]. Time series classification (TSC) is one of the important tasks in time series data analysis. The TSC is applied to build a classification model based on labelled time series, and then the model is used to predict the label of unlabelled time series. Unlike traditional classification methods, the TSC requires not only numerical relationships between different attributes but also the order relationship between data.
In the past ten years, hundreds of methods have been proposed to solve the TSC problem. One of the traditional methods is the 1nearest neighbor (1NN) classifier, which uses different distance functions. Faloutsos et al. [4] used Euclidean distance for time series matching. The Euclidean distance can only deal with time series of equal length, and it calculates time series pointtopoint in the time axis but cannot match similar shapes if they are out of phase in the time axis. In order to solve these problems, Berndt et al. [5] applied dynamic time warping (DTW) technology in the speech recognition field to the pattern detection in time series. The DTW is a much more robust distance measure for time series. The DTW not only eliminates the “pointtopoint” matching defect of Euclidean distance but also achieves “onetomany” matching of time series data points through stretching or compressing the series. The traditional DTW assigns the same weight to each observation value and ignores the phase difference between the observation value and the test value. On this basis, Jeong et al. [6] proposed to use weighted DTW for time series classification. This kind of 1NN classification algorithm has high classification accuracy and is easy to implement, but it consumes too long computing time and has poor interpretability. Many other researchers have concerned about the measurement of dissimilarity. Therefore, several dissimilarity metrics, such as normalized eigenvector correlation (NEC) [7], signal directional differences (SDDs) [8], and square eigenvector correlation (SEC) [9], are proposed recently, which measure the dissimilarity between the features extracted from the distinct path between specific features. These metrics have been verified to be effective in improving the accuracy of the feature matching technique.
Recently, many researchers have used shape similarity to solve TSC problems. The most popular method is shapeletbased classification. Shapelet is a time series subsequence which can be regarded as maximally representative of a class in some sense [10]. Classification algorithms based on shapelets were proposed at first time by Ye et al. [10, 11], and the algorithms used information gain to measure the split point of data and build decision tree by recursively searching the most discriminating shapelets. This strategy is to build a classifier at the same time as shapelets are discovered. In contrast, the other strategy is to map the time series to other spaces at first and then build a classifier. Lines et al. [12] proposed a time series classification method based on shapelet transformation (ST). This method creates new classification data before constructing the classifier, so that it keeps the explanatory power of shapelets and improves simultaneously the accuracy of classification.
Ensemble learning strategy has also been applied to time series classification, such as time series forest (TSF) proposed by Deng et al. [13], elastic ensemble (EE) method proposed by Lines et al. [14], Collection of Transformation Ensembles (COTEs) method proposed by Bagnall et al. [15], and the Hierarchical Vote Collective of Transformationbased Ensembles (HIVECOTEs) method based on the COTE proposed by Lines et al. [16]. These methods combined multiple subclassifications, such as distance measure, shapelet identification, spectrum analysis, other time series feature representation, and transformation strategies. Compared to the method with a single classifier, the ensembled classification method has a higher accuracy, but a higher time complexity. In terms of classification accuracy, Bagnall et al. did a comparative experiment with the current popular time series classification algorithms [17, 18] and found the highest classification accuracy is in the order of HIVECOTE, COTE, and ST. However, the ST is an important part of both COTE and COTEHIVE algorithms. In other words, the ST is one of the effective methods to solve the time series classification.
Generally, new features extracted from time series may help to improve the performance of classification models. Techniques for feature extraction include singular value decomposition (SVD), discrete Fourier transform (DFT), discrete wavelet transform (DWT), and so on [19]. The DWT as formulated in the late 1980s has inspired extensive research into how to use this transform to study time series. The DWT is a powerful tool for a timescale multiresolution representation on time series by using wavelets. In contrast to other techniques, the DWT is localized in time, and hence, the wavelet variance can be readily adapted for exploring processes that are locally stationary with time varying [20] and for detecting inhomogeneities in time series [21]. Due to its ability to separate original time series into its decompositions, the DWT is a powerful tool to help researchers capture trends and patterns in data. At the same time, it is a data transformation technique that concurrently localizes both time and frequency information from the original data in its multiscale representation [22].
In this study, combining with the advantages of the DWT and shapelet approach, we propose a new ensemble method, which embeds the DWT into shapeletdiscovery algorithm to get a transformed data and then implements an ensemble classifier to train and test the transformed data. By using the DWT, the original time series data are divided to one lowfrequency information component and several highfrequency information components. Each decomposed information component is still in the time domain. The shapelet sets are then selected from each component, respectively. These shapelet sets reflect the corresponding classification characteristics and are used to convert the original time series into feature vector representations accordingly. These feature vectors contain more features of the original time series. Base classifier is trained with the transformed data. Finally, a weighted majority voting technique is used to integrate the prediction results of the base classifiers, and the Monte Carlo method is used to search for the local optimal weight vector. We make a comparative experiment with other popular time series classifiers and perform qualitative analysis in this study. The experiment is conducted on 25 datasets from UCR [23]. The results show the proposed method has a good performance in terms of accuracy and stability.
The paper is structured as follows: Section 2 provides related definitions on time series classification and shapelet; in Section 3, we propose a new method and describe the overall framework and the details of the method; in Section 4, we describe our experimental design and results and perform qualitative analysis for the proposed method; finally, we draw conclusions based on our analysis results in Section 5.
2. Related Definitions
Univariate time series dataset: a univariate time series is a sequence of data that are typically recorded in temporal order at fixed intervals. The number of realvalued data is the length of the time series.
A dataset has time series. Each time series has m realvalued ordered data and a class label and then .
Sets of candidate shapelet: every subsequence of series in dataset is defined as a candidate. So the set of candidate shapelets is the union of subsequences of each series in . The subsequence of is a contiguous sequence on . The length of subsequence can be 1, 2, 3, …, m. A subsequence of can be described as , where is the starting position and l is the length. So the set of all subsequences of length l in the time series is defined as .
Similarity measures: classification of time series depends on similarity measures between data. The common time series similarity measures include Euclidean distance, dynamic time warping, Fourier coefficients, and autoregressive model. In this study, Euclidean distance [24] is used to compare the similarity between two time series with the same length. For example, consider two mlength time series, S and R, and let Euclidean distance given by equation (1) be the utilized measure of similarity:
Before calculating the distance, the znormalization method is used to normalize each time series [25] according to equation (2). In equation (2), the and are mean and standard variance of realvalued ordered reading data in each time series , respectively:
The similarity between each candidate shapelet and each series is measured, and this sequence of distances with associated class membership is used to assess shapelet quality. The candidate shapelet is short, and the time series is relatively long. When calculating the distance between two time series with different lengths, the short series slides on the long series until getting the minimum distance between them. The distance between a time series and a candidate shapelet S with length l is defined by equation (3). The distances between S and all subsequences of length l in are calculated, and the minimum distance is taken as the distance between S and :
Information gain and shapelet: in probability theory and information theory, the information gain () is asymmetric to measure the difference between the two probability distributions. The is usually used to determine the quality of a shapelet [10, 11, 26]. After calculating all the distances between a candidate shapelet and all time series in , it will get a set with distance values. The is sorted, and the at each possible split point is then assessed for . Here, a valid split point is defined as the mean value between any two consecutive distances in . For each possible split point , as shown in Figure 1, the is calculated by partitioning all elements of into , and all elements of are grouped as , respectively. The at is calculated according to the following equation:where is the cardinality of the set and is the entropy of . The is defined as follows:where V is the set of class label and is the probability of each label.
The of shapelet , , is calculated as
In general, shapelets are extracted with maximum information gain by comparing all the candidate shapelets.
3. The Proposed Method
3.1. Method Structure
The proposed method in this study consists of three major parts: decomposition, feature extraction, and classification. The whole process of the proposed method is outlined in Figure 2.
The three major parts of the proposed method are described briefly as listed below:(1)Using decimated DWT, time series is decomposed into different components in form of one approximation component () and several detail components ().(2)Shapelet transform is used on each component to extract shapelets and transform the data to a set of new feature vector.(3)The transformed data are fed into a base classifier () to predict class label. Based on the predictive result of the base classifier, a weighted majority voting is implemented to build an ensemble classifier according to the correlation between components and original data. The weights are optimized by the Monte Carlo method, and then, the final classification result can be obtained.
3.2. Discrete Wavelet Transform
The DWT is a technique of a mathematical origin and is very appropriate for a timescale multiresolution analysis on time series [22]. The DWT provides an effective way to isolate nonstationary signals into signals at various scales. This kind of signal processing is called signal decompositions. Various aspects of nonstationary signals such as trends, discontinuities, and repeated patterns are clearly revealed in the signal decompositions. Some time series data have multiscale signal components that are more meaningful in parts than in sum, such as audio signals and patients’ ECG heart rates. For those reasons, the DWT is a suitable technique to combine with classiﬁcation approaches in order to categorize an unknown signal into a predeﬁned type of signals [22]. This section explains how the DWT assists in the classiﬁcation process.
The effective way to implement DWT is to use a filter, which was proposed by Mallat in 1988 and is wellknown as Mallat algorithm. This algorithm uses filter banks to implement the DWT which can decompose the signal into several different frequency components, and Figure 3 illustrates an example of a twolevel wavelet decomposition and reconstruction processes of the decimated DWT.
(a)
(b)
Generally, a filter bank approach is adopted because of its efficiency. As shown in Figure 3, the is a real signal, is the highpass filters which filter out the lowfrequency part of the signal, and is the lowpass filters which can filter out the highfrequency part. The halfband filters downsample the signal by a factor of 2 at each level of decomposition. At the first level decomposition, the input signal is firstly passed through the wavelet filters and followed by a decimation factor of two. Then, the output of the lowpass filter is used as the new input signal, and the same filtering and decimation process will be reiterated. This is carried out until the desired level of wavelet decomposition is reached, or the allowed maximum level is reached. The combination of the filtering and the decimation processes enables the same filters to be used throughout the entire wavelet decomposition procedure [27]. The outputs of the decomposition process are the approximation coefficients () and detail coefficient (), where denotes the level of filter. In practical application, the appropriate decomposition level is generally selected according to the characteristics of the signal or the appropriate standard.
For the reconstruction process, the original signal can be reconstructed from the approximate and detail coefficients at every level by upsampling by two, passing through high and lowpass synthesis filters, and adding them. The original signal can be reconstructed from the approximation coefficients of the last level and detail coefficients of each level.
Similarly, the approximate component () and the detail component () of the signal can be reconstructed from the approximate coefficient and the detail coefficient by omitting the other sets of coefficients, separately. This can be done best by setting the corresponding coefficients to zero of matching the same shape. In this way, the reconstructed component is the same length as the original signal. Approximation component can capture rough features that can be used to estimate the original data, while detail components can capture detail features that can be used to describe frequent movements of the data. The amount of information contained in different frequency levels is different. With the deepening of the decomposition level, the curve information carried by components is gradually reduced.
The DWT has been used to break down an original time series. An original time series data can be decomposed into two types of component: approximation component and detail component via the above method. Each component may carry meaningful signals of the original time series. For example, if the selected level of decomposition is 4, the original time series data are decomposed into one approximation component and 4dimensional detail components, as shown in Figure 4. These reconstructed components are still in the time domain. Consequently, the DWT is considered as a timescale transformation [28]. The approximate component reflects the overall trend of time series, while the detail component reflects the characteristics of time series under the interference of different factors.
For example, considering a dataset containing n time series and class labels, each time series has m data points. After choosing the mother wavelet, if the maximum level allowed is R, we can get approximation component matrix and R detail component matrixes .
The DWT decomposes a single signal into multiscale signals using wavelet functions. The filter coefficients are determined by the mother wavelet. The characteristics of the transformation are also impacted by the choice of the mother wavelet. The commonly used mother wavelets include Haar, Daubechies, biorthogonal, Coiflets, and symlets. The influence of different mother wavelets on classification performance will be tested in the following experiments.
3.3. Feature Extraction
We extract features of on each component through the shapelet transformation, which has been proposed by Lines et al. [12]. The main contribution of shapelet transformation is to separate shapelets discovery and classifier construction. The transformed data can be used in different classifiers. The corresponding algorithm includes two major steps: Step 1: the algorithm performs a single scan of the data to extract the best shapelets. Step 2: by calculating the distance between shapelets and every time series, an instance with attributes is obtained; then, a new transformed dataset is created.
Algorithm 1 describes the process of extracting best shapelets from the dataset. The min and max parameters limit the length of the candidate shapelets. Each time a candidate shapelet is obtained, and the distance between the candidate shapelet and every time series is calculated. The results are sorted to calculate the split point that can be used to get the maximum information gain. After all the candidate shapelets are accessed, they are sorted according to the information gain and selfsimilar shapelets are removed. Finally, the top shapelets are retained in the set of nonselfsimilar shapelets.

Once the best shapelets have been found, the transform is performed with Algorithm 2. For each instance of data , the subsequence distance is computed between and , where . The calculated distances are used to form a new instance of transformed data, where each attribute corresponds to the distance between a shapelet and the original time series. The subsequence distance calculation has been described in equation (3).

With shapelet transformation technology, the selection process of shapelets is optimized, and different classification strategies can be flexibly applied. On this basis, several other shapelet approaches have been proposed, such as logical shapelets [26], fast shapelets [29], binary shapelets [30], and learnt shapelets [31].
The extracted lowfrequency and highfrequency information components in the time domain are used as separate new time series to generate candidate matrix. Then, the corresponding shapelets are extracted from the candidate matrix. The distance between the shapelets set extracted from each component will be calculated to form a set of new feature vector. In this step, we can get R+1 transformed matrix .
3.4. Ensemble Classification
In this paper, we build a combined classifier finally. We train the base classifier on the transformation matrix and use weighted majority voting to integrate the prediction results of the base classifiers, and then use the Monte Carlo method to optimize the weight vector. The above process is described by Algorithm 3.

In order to evaluate the strength and direction of relationship between each component and original time series, Pearson correlation coefficient is calculated. The obtained correlation coefficient matrix is normalized to meet the equation 7. The mean value of each type of component is taken as the initial value of weight , where j can be 0, 1, 2, 3, …, R. The weights meet the condition shown as follows:
For the component with high correlation with the original data, its classifier is assigned a larger weight, so as to improve the performance of the ensemble classifier.
We discuss a multiple classification task with class labels and predict the class label based on the predicted probabilities p for each base classifier , where j can be 0, 2, 3, …, R. The label is calculated as follows:where is the weight of the th base classifier and is the class probability for classifier .
The key part to build the ensemble classifier is the selection of weights. In the proposed method, the Monte Carlo method is used to find the optimal weight parameters, as described in Algorithm 4. It includes following major steps: Step 1: Pearson correlation coefficient of each component and the original time series is calculated and normalized. The mean value of each type of component is taken as the initial value of the weight . Step 2: the initial weight is multiplied by the predicted class probability of the base classifier corresponding to each component, and the maximum probability is taken to determine the final class and to obtain the accuracy of the ensemble classifier. Step 3: the extreme value of each component’s Pearson correlation coefficient can be calculated in Step 1, and it is recorded as , where j can be 0, 2, 3, …, R. The new weight combination is generated by the Monte Carlo method. In each Monte Carlo event, we generate R+1 uniformly distributed random number in range of . After N simulations, N groups of weight combination will be produced. Step 4: the N groups of weight combination will be substituted into Step 2 to calculate the accuracy, respectively. The maximum accuracy is the result of this step.

Each iteration contains N times Monte Carlo simulation. If the accuracy does not improve compared to the accuracy in last iteration, we will update to 2 to broaden the domain of generated random numbers and increase the Monte Carlo statistics from to 2.
Monte Carlo simulation is a computerized mathematical technique to generate random sample data based on given distribution for numerical experiments. We use Monte Carlo to generate a large set of random weight vector, and the range of weight is constrained by so that the prediction result of components with strong correlation will be given a higher weight. Different weight vectors are calculated with the above method to get different accuracies, and the optimal weight vector and accuracy are obtained after several Monte Carlo iterations.
In Figure 5, the blue dot line indicates the termination position of the iterations. The condition of iteration termination is that the accuracy obtained is no longer increasing. Obviously, this method cannot obtain the global optimum, but the weight obtained is closest to the initial weight. It is in line with our assumption that the more relevant components play a more important role in classification.
(a)
(b)
4. Experiment
4.1. Experimental Settings
4.1.1. Experimental Dataset
In this paper, we use 25 datasets from UCR repository [23]. These have been commonly adopted by TSC researchers. The basic information of the datasets is shown in Table 1.

The classification labels of multiclassification datasets are represented by Arabic numerals. For example, for 4 classification datasets, the classification labels are 1, 2, 3, and 4, respectively. As shown in Table 1, the types of datasets used are diverse and come from three fields, including sensor data, image contour information, human ECG, and action data. The length is also different, the shortest is 24, and the longest is 512. Therefore, the performance of the algorithm can be comprehensively tested. In order to facilitate the performance comparison, the default training set and test set partition are adopted in this paper, value is set to , value is selected to 3, the value is , and is the length of time series. The initial value of N is 1000 in our experiments.
4.1.2. Experiment Design
Our first objective is to choose a base classifier which has best performance on transformed data. For this purpose, we test the performance of five traditional classifiers on the transformed data constructed by the ST method. These classifiers are Naïve Bayes [32], C4.5 decision tree [33], support vector machines [34] with polykernels, random forest [35, 36] (with 100 trees), and Bayesian networks [37]. These algorithms are commonly used in machine learning.
The characteristics of the transformation are impacted by the choice of the mother wavelet and the number of detail levels, and thus, the mother wavelet type and the number of detail levels should be taken into consideration in the experiment. We try different mother wavelets and number of levels to test the influence of these two parameters on the results.
Finally, we implement a comparative experiment to compare the performance between our method (DSE) and other six time series classifiers, including 1nearest neighbor classifiers using Euclidean distance (1NNED) based on raw data, 1nearest neighbor classifiers using dynamic time warping (1NNDTW) based on raw data, 1nearest neighbor classifiers using dynamic time warping with window size set through cross validation (1NNDTWCV) based on raw data, a random forest classifier based on raw data binary shapelet transform (BinaryST) [30], time series forest (TSF) [13], and elastic ensemble (EE) [14].
4.1.3. Evaluating Indicator
To the classification problem, classification accuracy is the most important criterion to evaluate algorithm performance. In addition to accuracy, Friedman test and Nemenyi test are widely used in machine learning to evaluate the performance of algorithms over multiple datasets. After getting the accuracy of the algorithms on the dataset, Friedman test ranks algorithms for each dataset separately. The algorithm with the highest classification accuracy is marked as 1, and the secondhighest label is marked as 2, and so forth. The algorithms with the same accuracy value will be marked as average ranks between them. In this way, we can get a rank matrix of . is the rank mark of the dataset on the algorithm, and the average ranges are calculated as follows:
Under the null hypothesis, all algorithms are equivalent, so their should be equal. The Friedman statistics is defined by which is according to with degrees of freedom.
The research of Demiša et al. [38] shows that Friedman’s statistics are too conservative and proposed a better statistical formula as follows:which is according to the Fdistribution with and degrees of freedom.
If the null hypothesis is rejected, indicating significant differences between these algorithms, the difference between the algorithms can be tested by the Nemenyi test to compare all the algorithms to each other. At a significance level of , the critical difference () value is defined by the following equation:
All algorithms were divided into different groups by the value so that there was no significant difference in the performance of the algorithms in the group. In this way, performance differences between different algorithms can be represented by the critical difference diagram.
4.2. Experiment Results
The experimental platform used in this paper is Python 3.7, hardware configuration: Pentium Dual Core CPU (2.5 GHz), 8G memory.
4.2.1. Base Classifier Selection
Table 2 lists the accuracy results from five classifiers on the transformed data. Random forest has a good performance, with an average rank of 2.2200 and the best performance in 13 out of 25 problems. The results show that random forest provides a reliable predictive performance on different datasets.

Random forest [35] refers to an ensemble learning method of training, classifying, and predicting sample data by using multiple decision trees whose outputs are aggregated by majority voting. To classify a new instance, each decision tree provides a classification for input data; random forest collects the classifications and chooses the most voted prediction as the result. The input of each tree is sampled data from the original dataset. In addition, a subset of features is randomly selected from the optional features to grow the tree at each node. Each tree is grown without pruning. Essentially, random forest enables many weak or weakly correlated classifiers to form a strong classifier [36]. It does not need to assume data distribution; it can handle thousands of input variables without variable deletion. It is relatively fast, simple, robust to outliers and noise, and easily parallelized; avoids overfitting; and performs well in many classification problems.
In the following experiments, we chose random forest as the base classifier.
4.2.2. Sensitivity of Parameters
Performing the DWT on the original time series instance can get the reconstruction wavelet coefficiency. Before employing DWT, two parameters need to be specified, and they are mother wavelet type and the number of detail levels required. In this paper, we measured the impact of mother wavelet and level of decomposition. We tested five different mother wavelets (db8, Haar, sym8, coif4, and bior5.5), and the value of detail level is set from 1 to 6. We compared the experimental results with different combinations of parameters.
As shown in Figure 6, in terms of ECG dataset (ECG200, ECGFiveDays, and TwoLeadECG) and sensor dataset (DodgerLoopWeekend, SonyAIBORobotSurface1, and ItalyPowerDemand), the choice of parameters has little effect on the results. Generally, the best prediction accuracy can be achieved after one level decomposition. Increasing the value of level leads to increasing the amount of calculation and may also cause a significant decrease in accuracy. In terms of image dataset (BeetleFly, Herring, and BirdChicken), the choice of parameters has significant influence on the results. For example, the highest accuracy is 0.9500 with Haar wavelet in level 2 on the BeetleFly dataset, the highest accuracy is 0.9500 with Haar wavelet in level 2 on the BeetleFly dataset, the highest accuracy is 0.6562 with coif4 wavelet in level 2 on the Herring dataset, and the highest accuracy is 1.0000 with Haar wavelet in level 3 on the BirdChicken dataset.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
4.2.3. Comparison Result
Table 3 lists the classification accuracies of seven classifiers for 25 datasets. The last two lines of Table 3 represent the average rank of each classifier on different datasets and best performing times, respectively.
 
Note. The results highlighted in bold denote that the method gets the highest accuracy for this dataset. 
According to the results shown in Table 3, the EE is the best classifier, with an average rank of 2.38, and the best performance in 12 out of 25 problems. The performance of DSE proposed in this paper is slightly lower than the performance of EE. It wins on 8 out of 25 datasets and has the close average rank of 2.64 to the EE. The EE integrates a variety of distance measurement methods, and the DSE only uses Euclidean distance, which could lead to the little difference of performance between them. However, the DSE is still significantly more accurate than all the other alternatives, including BinaryST. This underlines the utility of decomposition on original time series data. The DWT is effective to improve the accuracy of shapelet transformation method.
When the significance level is 0.05 and the degree of freedom is (6, 144),. Therefore, given the significant level of 0.05, the original hypothesis is rejected, and the seven classifiers are significantly different. The critical difference diagram is shown in Figure 7. The critical difference for α = 0.05 is 1.8019. Figure 7 depicts the superiority of the proposed method, and the EE and DSE have significantly a higher accuracy than the BinaryST, the TSF, the 1NNDTW, and 1NNED on these datasets. The difference between the performance of DSE and the EE is not significant, relatively.
Based on the above analysis, the results show that the performance of the DSE method proposed in this paper is very close to the EE method and has higher accuracy and better stability than the other five compared classifiers.
5. Conclusions
In this study, an ensemble method by combining time frequency analysis and shape similarity recognition of time series is proposed to solve TSC problems. The proposed method embeds DWT into the shapeletdiscovery algorithm to produce a transformed data and then trains and tests base classifier on the transformed data; finally, the method implements a weighted majority voting on the results of base classifiers according to the correlation between components and original data. The experiment results indicate that the proposed method outperforms other methods in terms of accuracy. We also pay attention to the influence of parameter selection for the results and carry out study, which gives suggestions on the selection of mother wavelet and number of levels for different time series data types. According to the results in our experimental comparative studies, the proposed method is not only robust and efficient but can also be generalized for use in different application domains. However, the proposed method is still timeconsuming. How to improve its efficiency will be considered in the next work.
Data Availability
The dataset used to support this study is the open dataset “UCR Time Series Classification Archive,” which is available at https://www.cs.ucr.edu/∼eamonn/time_series_data_2018/.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The research for this paper was supported by the Hubei Research Center for Educational Informationization (Central China Normal University).
References
 R. Agrawal, C. Faloutsos, and A. N. Swami, “Efficient similarity search in sequence databases,” Foundations of Data Organization and Algorithms, vol. 730, no. 4, pp. 69–84, 1993. View at: Google Scholar
 E. Keogh and S. Kasetty, “On the need for time series data mining benchmarks: a survey and empirical demonstration,” Data Mining and Knowledge Discovery, vol. 7, no. 4, pp. 349–371, 2003. View at: Publisher Site  Google Scholar
 F. Andrew, Siegel, Practical Business Statistics, Academic Press, Cambridge, MS, USA, 7th edition, 2016.
 C. Faloutsos, M. Ranganathan, and Y. Manolopoulos, “Fast subsequence matching in timeseries databases,” ACM SIGMOD Record, vol. 23, no. 2, pp. 419–429, 2000. View at: Google Scholar
 D. J. Berndt and J. Clifford, “Using Dynamic Time Warping to Find Patterns in Time Series,” KDD, San Diego, CA, USA, 1994. View at: Google Scholar
 Y.S. Jeong, M. K. Jeong, and O. A. Omitaomu, “Weighted dynamic time warping for time series classification,” Pattern Recognition, vol. 44, no. 9, pp. 2231–2240, 2011. View at: Publisher Site  Google Scholar
 S. M. M. Kahaki, M. Jan Nordin, A. H. Ashtari, and S. J. Zahra, “Deformation invariant image matching based on dissimilarity of spatial features,” Neurocomputing, vol. 175, pp. 1009–1018, 2016. View at: Publisher Site  Google Scholar
 S. M. M. Kahaki, M. J. Nordin, A. H. Ashtari et al., “Invariant feature matching for image registration application based on new dissimilarity of spatial features,” PLoS ONE, vol. 11, no. 3, Article ID e0149710, 2016. View at: Google Scholar
 S. M. M. Kahaki, A. Haslina, N. M. Jan et al., “Geometric feature descriptor and dissimilaritybased registration of remotely sensed imagery,” Plos One, vol. 13, no. 7, Article ID e0200676, 2018. View at: Publisher Site  Google Scholar
 L. Ye and E. J. Keogh, “Time series shapelets: a new primitive for data mining,” in Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Paris, France, June 2009. View at: Google Scholar
 L. Ye and E. Keogh, “Time series shapelets: a novel technique that allows accurate, interpretable and fast classification,” Data Mining and Knowledge Discovery, vol. 22, no. 12, pp. 149–182, 2011. View at: Publisher Site  Google Scholar
 J. Lines, L. M. Davis, J. Hills et al., “A shapelet transform for time series classification,” in Proceedings of the 18th ACM SIGKDD international conference on Knowledge discovery and data mining ACM, Beijing, China, August 2012. View at: Google Scholar
 H. Deng, E. G. Runger, and M. Vladimir, “A time series forest for classification and feature extraction,” Information Sciences, vol. 239, no. 4, pp. 142–153, 2013. View at: Publisher Site  Google Scholar
 J. Lines and A. Bagnall, “Time series classification with ensembles of elastic distance measures,” vol. 29, Kluwer Academic Publishers, Dordrecht, Netherland, 2015. View at: Google Scholar
 A. Bagnall, J. J. Lines, and A. Bostrom, “Timeseries classification with COTE: the collective of transformationbased ensembles,” IEEE Transactions On Knowledge And Data Engineering, vol. 27, no. 9, pp. 2522–2535, 2015. View at: Publisher Site  Google Scholar
 J. Lines, S. Taylor, and A. Bagnall, “HIVECOTE: the hierarchical Vote collective of transformationbased ensembles for time series classification,” in Proceedings of the 2016 IEEE 16th International Conference on Data Mining, (ICDM) IEEE, Barcelona, Spain, December 2016. View at: Google Scholar
 A. Bagnall, A. J. Lines, and E. J. KeoghLarge, “The great time series classification bake off: a review and experimental evaluation of recent algorithmic advances,” Data Mining and Knowledge Discovery, vol. 31, no. 3, pp. 606–660, 2016. View at: Publisher Site  Google Scholar
 A. Bagnall, A. Bostrom, J. Large et al., “The Great Time Series Classification Bake off: An Experimental Evaluation of Recently Proposed Algorithms Extended Version,” arXiv eprints, 2016. View at: Google Scholar
 Y. Zhao, “R and Data Mining,” Academic Press, Cambridge, MS, USA, 2013. View at: Google Scholar
 G. P. Nason, R. von Sachs, and G. Kroisandt, “Wavelet processes and adaptive estimation of the evolutionary wavelet spectrum,” Journal of the Royal Statistical Society: Series B (Statistical Methodology), vol. 62, no. 2, pp. 271–292, 2000. View at: Publisher Site  Google Scholar
 B. J. Whitcher, S. D. Byers, P. Guttorp, and D. B. Percival, “Testing for homogeneity of variance in time series: long memory, wavelets and the Nile River,” Water Resources Research, vol. 38, no. 5, pp. 1054–1070, 2002. View at: Publisher Site  Google Scholar
 Pimwadee, Chaovalit, Aryya et al., “Discrete wavelet transformbased time series analysis and mining,” Acm Computing Surveys, vol. 43, no. 2, 2011. View at: Google Scholar
 H. A. Dau, E. Keogh, K. Kamgar et al., “The UCR time series classification archive,” 2018, https://www.cs.ucr.edu/∼eamonn/time_series_data_2018/. View at: Google Scholar
 E. A. Maharaj, “Comparison and classification of stationary multivariate time series,” Pattern Recognition, vol. 32, no. 7, pp. 1129–1138, 1999. View at: Publisher Site  Google Scholar
 T. Rakthanmanon, B. Campana, A. Mueen et al., “Searching and mining trillions of time series subsequences under dynamic time warping,” in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, London, UK, 2012. View at: Google Scholar
 A. Mueen, E. Keogh, and N. E. Young, “An expressive primitive for time series classification,” in Proceedings of ACM SIGKDD: International Conference on Knowledge Discovery and Data Mining, pp. 1154–1162, San Diego, CA, USA, 2011. View at: Google Scholar
 M. H. Foo, J. J. Soraghan, and W. H. Siew, “Application of nondecimated discrete wavelet transform for partial discharge analysis,” in Proceedings of the International Conference & Exhibition on Electricity Distribution. IET, Turin, Italy, 2005. View at: Google Scholar
 M. Misiti, Y. Misiti, G. Oppenheim et al., “Matlab Wavelet Toolbox User’s Guide Version 3,” The MathWorks, Natick, MS, USA, 2004. View at: Google Scholar
 T. Rakthanmanon and E. Keogh, “Fast shapelets: a scalable algorithm for discovering time series shapelets,” in Proceedings of the 2013 SIAM International Conference on Data Mining, pp. 668–676, Austin, TA, USA, May 2013. View at: Google Scholar
 A. Bostrom and A. Bagnall, “Binary shapelet transform for multiclass time series classification,” Transactions on LargeScale Data and KnowledgeCentered Systems XXXII, vol. 32, pp. 24–46, 2017. View at: Publisher Site  Google Scholar
 J. Grabocka, N. Schilling, M. Wistuba et al., “Learning timeseries shapelets,” in Proceedings of the The 20th ACM SIGKDD conference on knowledge discovery and data mining, New York, USA, 2014. View at: Google Scholar
 R. O. Duda, P. E. Hart, and D. G. Stork, Pattern Classiﬁcation, WileyInterscience, Hobokon, NY, USA, 2nd edition, 2001.
 J. R. Quinlan, “C4. 5: programs for machine learning,” Morgan Kaufmann, vol. 1, 1993. View at: Google Scholar
 C. Cortes and V. Vapnik, “Supportvector networks,” Machine Learning, vol. 20, no. 3, pp. 273–297, 1995. View at: Publisher Site  Google Scholar
 L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001. View at: Publisher Site  Google Scholar
 M. Shatnawi, “Review of recent proteinprotein interaction techniques,” Emerging Trends in Computational Biology, Bioinformatics, and Systems Biology, vol. 12, no. 5, pp. 99–121, 2015. View at: Publisher Site  Google Scholar
 D. Heckerman and D. Geiger, “The combination of knowledge and statistical data Mach Learn,” Chickering Learning Bayesian Networks, vol. 20, pp. 197–243, 1995. View at: Publisher Site  Google Scholar
 J. Demišar and D. Schuurmans, “Statistical comparisons of classifiers over multiple data sets,” Journal of Machine Learning Research, vol. 7, no. 1, pp. 1–30, 2006. View at: Google Scholar
Copyright
Copyright © 2020 Lijuan Yan et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.