{'fraction_non_alphanumeric': 0.03117702362539047, 'fraction_numerical': 0.012525399569344616, 'mean_word_length': 4.88401142041399, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Deep Discriminative Model for Video Classification

This paper presents a new deep learning approach for video-based scene classification. We design a Heterogeneous Deep Discriminative Model (HDDM) whose parameters are initialized by performing an unsupervised pre-training in a layer-wise fashion using Gaussian Restricted Boltzmann Machines (GRBM). In order to avoid the redundancy of adjacent frames, we extract spatiotemporal variation patterns within frames and represent them sparsely using Sparse Cubic Symmetrical Pattern (SCSP). Then, a pre-initialized HDDM is separately trained using the videos of each class to learn class-specific models. According to the minimum reconstruction error from the learnt class-specific models, a weighted voting strategy is employed for the classification. The performance of the proposed method is extensively evaluated on two action recognition datasets; UCF101 and Hollywood II, and three dynamic texture and dynamic scene datasets; DynTex, YUPENN, and Maryland. The experimental results and comparisons against state-of-the-art methods demonstrate that the proposed method consistently achieves superior performance on all datasets.


Introduction
Through the recent surge in digital content, video data has become an indisputable part of today's life. This has stimulated the evolution of advanced approaches for a wide range of video understanding applications. In this context, the understanding and classification of video content have gained a substantial research interest among the computer vision community. However, the automatic classification of scene in videos is subject to a number of challenges, including a range of natural variations in short videos such as illumination variations, viewpoint changes, and camera motions. Moreover, scene classification differs from the conventional object detection or classification, because a scene is composed of several entities which are often organized in a random layout. Therefore, devising an accurate, efficient and robust representation of videos is essential to deal with these challenges.
To achieve an effective representation of a scene in videos, we can model videos' spatiotemporal motion patterns using the concept of dynamic textures. Videos comprise dynamic textures which inherently exhibit spatial and temporal regularities of a scene or an object. Dynamic textures widely exist in real-world video data, e.g. regular rigid motion like windmill, chaotic motion such as smoke and water turbulences, and sophisticated motion caused by camera panning and zooming. The modeling of dynamic textures in videos is challenging but very important for computer vision applications such as video classification, dynamic texture synthesis, and motion segmentation.
Despite all challenges, great efforts have been devoted to find a robust and powerful solution for video-based scene classification tasks. Furthermore, it has been commonly substantiated that an effective representation of the video content is a crucial step towards resolving the problem of dynamic texture classification. In previous years, a substantial number of approaches for video representation have been proposed, e.g. Linear Dynamic System (LDS) based methods [1], Local Binary Pattern (LBP) based methods [2], and Wavelet-based methods [3]. Unfortunately, the current methods are sensitive to a wide range of variations such as viewpoint changes, object deformations, and illumination variations. Coupled with these drawbacks, other methods frequently model the video information within consecutive frames on a geometric surface represented by a subspace [4], a combination of subspaces [5], a point on the Grassmann manifold [6], or Lie Group of Riemannian manifold [7]. These require prior assumptions regarding specific category of the geometric surface on which samples of the video are assumed to lie.
On the other hand, deep learning has recently achieved significant success in a number of areas [8,9,10], including video scene classification [11,12,13,14]. Unlike the conventional methods, which fail to model discontinuous rigid motions, deep learning based approaches have a great modeling capacity and can learn discriminative representations in videos. However, the current techniques have mostly been devised to deal with fixed-length video sequences. They fail to deal with long sequences due to their limited temporal coverage. This paper presents a novel deep learning approach, which does not assume any biased knowledge about the concept of data and it automatically explores the structure of the complex non-linear surface on which the samples of the video are present. According to the block diagram in Figure 1, our proposed method defines a Heterogeneous Deep Discriminative Model (HDDM) whose weights are initialized by an unsupervised layer-wise pre-training stage using Gaussian Restricted Boltzmann Machines (GRBM) [15]. The initialized HDDM is then separately trained for each class using all videos of that class in order to learn a Deep Discriminative Model (DDM) for every class. The training is done so that the DDM learns to specifically represent videos of that class. Therefore, a class specific model is made to learn the structure and the geometry of the complex non-linear surface on which video sequences of that class exist. Also, we represent the raw video data using Sparse Cubic Symmetrical Pattern (SCSP) to capture long-range spatiotemporal patterns and reduce the redundancy between adjacent frames. For the classification of a given query video, we first represent the video based on the learnt class-specific DDMs. The representation errors from the respective DDMs are then computed and a weighted voting strategy is used to assign a class label to the query video. The main contributions of our proposed Deep Discriminative Model (DDM) are the followings. First, a novel deep learning based framework is introduced for video classification (Sec. 3). Moreover, we develop a Sparse Cubic Symmetrical Pattern (SCSP) to avoid the redundancy in video sequences and reduce the computational cost, and a weighted voting strategies is utilized for classification (Sec. 4). Finally, extensive experiments are conducted along with comparisons against state-of-the-art methods for video classification. The experimental results demonstrate that the proposed method achieves superior performance compared to the state-of-the-art methods (Sec. 5).

Related Work
Several approaches have been proposed for video classification [3,16,17]. A popular approach is Linear Dynamic System (LDS) [1,16], which is known as a probabilistic generative model defined over space and time. LDS approximates hidden states using Principal Component Analysis (PCA), and describes their trajectory as time evolves. LDS has obvious drawbacks due to its sensitivity to external variations. In order to overcome this limitation, Closed-Loop LDS (CLDS) [18] was proposed. However, CLDS tends to fail to capture some discontinuous rigid motions due to its simplistic linearity. Local Binary Pattern (LBP) based methods [2] have been widely used in texture analysis. Zhao et al. [19] extended LBP to the space and the time domains and proposed two LBP variants: 1) Volume Local Binary Pattern (VLBP) [19] which combines both the spatial and the temporal variations of the video; 2) Local Binary Pattern on Three Orthogonal Planes (LBP-TOP) [19], which computes LBP in three individual x−y, x−t, and y−t planes to describe the video. Likewise, other versions of LBP-TOP, such as Local Ternary Pattern on Three Orthogonal Planes (LTP-TOP) [20] and Local Phase Quantization on Three Orthogonal Planes (LPQ-TOP) [20], have been proposed. Although they are all effective in capturing the spatiotemporal information, they rarely achieve a satisfactory performance in the presence of camera motions.
Recently, there is a huge growing research interest in deep learning methods in various areas of computer vision, beating the state-of-the-art techniques [9,11,12,13,14]. Deep learning methods set up numerous recognition records in image classification [21], object detection [22], face recognition and verification [23], and image set classification [10]. Deep models, such as Deep Belief Networks and stacked autoencoders, have much more expressive power than traditional shallow models and can be effectively trained with layer-wise pre-training and fine-tuning [24]. Stacked autoencoders have been successfully used for feature extraction [25]. Also, they can be used to model complex relationships between variables due to the composition of several levels of non-linearity [25]. Xie et al. [26] modeled relationships between noisy and clean images using stacked denoising autoencoders. Although, deep autoencoders are rarely used to model time series data, there are researches on using variants of Restricted Boltzmann Machine (RBM) [27] for specific time series data such as human motion [28]. On the other hand, some convolutional architectures have been used to learn spatiotemporal features from video data [29]. Kaparthy et al. [11] used a deep structure of Convolutional Neural Networks (CNN) and tested it on a large scale video dataset. By learning long range motion features via training a hierarchy of multiple convolutional layers, they showed that their framework is just marginally better than single frame-based methods. Simonyan et al. [12] designed Two-Stream CNN which includes the spatial and the temporal networks. They took advantage of ImageNet dataset for pre-training and calculated the optical flow to explicitly capture the motion information. Tran et al. [13] investigated 3D CNNs [30] on realistic (captured in the wild) and large-scale video datasets. They tried to learn both the spatial and temporal features with 3D convolution operations. Sun et al. [14] proposed a factorized spatiotemporal CNN and exploited different ways to decompose 3D convolutional kernels.
The long-range temporal structure plays an important role in understanding the dynamics of events in videos. However, mainstream CNN frameworks usually focus on appearances and short-term motions. Thus, they lack the capacity to incorporate the long-range temporal structure. Recently, few other attempts (mostly relying on dense temporal sampling with a pre-defined sampling interval) have been proposed to deal with this problem [31,32]. This approach would incur excessive computational cost and is not applicable to real-world long video sequences. It also poses the risk of missing important information for videos that are longer than the maximal sequence length. Our proposed method deals with this problem by extracting Sparse Cubic Symmetrical Patterns (SCSP) from video sequences to feed its autoencoder structure (Sec. 4.1). In terms of spatiotemporal structure modeling, a key observation is that consecutive frames are highly redundant. Therefore, dense temporal sampling, which results in highly similar sampled frames, is unnecessary. Instead, a sparse spatiotemporal representation will be more favorable in this case. Also, autoencoders reduce the dimension and keep as much important information as possible, and remove noise. Furthermore, combining them with RBMs helps the model to learn more complicated video structures based on their non-linearity.

The Proposed Deep Discriminative Model
We first define a Heterogeneous Deep Discriminative Model (HDDM) which will be used to learn the underlying structure of the data in Sec 4.2. The architecture of the HDDM is shown in Figure 2. Generally, an appropriate parameter initialization is inevitable for deep neural networks to have a satisfactory performance. Therefore, we initialize the parameters of HDDM by performing pre-training in a greedy layer-wise framework using Gaussian Restricted Boltzmann Machines. The initialized HDDM is separately fine-tuned for each of the C classes of the training videos. Therefore, we end up with a total of C fine-tuned Deep Discriminative Models (DDMs). Then, the fined-tuned models are used for video classification.

The Heterogeneous Deep Discriminative Model
As can be seen in Figure 2, the proposed HDDM is based on an autoencoder which comprises multiple encoder and decoder layers. In the proposed autoencoder structure, both the encoder and the decoder have M hidden layers each such that the M -th layer of the encoder is considered as the first layer of the decoder. The encoder section represents the input data in a lower dimension. The encoder consists of a combination of non-linear functions s (·) used to map the input data x to a representation h given by where θ denotes the parameters of the i-the encoder layer.
e ∈ R ni is the bias vector and s (·) is a non-linear sigmoid activation function. The encoder parameters are learnt by combining the encoder with the decoder and jointly train the encoder-decoder structure to represent the input data by optimizing a cost function. Hence, the decoder can be defined as series of non-linear functions, which calculate an approximation of the input x from the encoder output h. The approximated outputx of the decoder is obtained bỹ are the parameters of the j-the decoder layer. Consequently, we represent the complete encoder-decoder structure by its parameters

Parameter Initialization
We train the defined HDDM with videos of each class individually, which results in class-specific models. The training is performed through stochastic gradient descent with back propagation [33]. The training may not yield to desirable results if the HDDM is initialized with inappropriate weights. Thus, the parameters of the model are first initialized through an unsupervised pre-training phase. For this purpose, a greedy layer-wise approach is adopted and Gaussian RBMs [15] are used.
Basically, a standard RBM [27] is used for binary stochastic data. We therefore use an extension of RBM to process real valued data by appropriate modifications in its energy function. Gaussian RBM (GRBM) [15] is one such popular extension whose energy function is defined by changing the bias term of the visible layer.
where W is the weight matrix, and b and c are the biases of the visible and the hidden layer, respectively. We use a numerical technique called Contrastive Divergence (CD) [34] to learn the model parameter {W, b, c} of the GRBM in the training phase. v i and h j denote the visible layer and the hidden layers nodes, respectively. Also, σ i is the standard deviation of the real valued Gaussian distributed inputs to the visible node v i . It is possible to learn σ i for each visible unit but it becomes arduous when using CD for GRBM parameter learning. We therefore use another approach and set σ i to a constant value.
Since there are no intra-layer node connections, result derivation becomes easily manageable for the RBM to the contrary of most directed graphical models. The probability distributions for GRBM are given by where Since our data are real-valued, we use GRBMs to initialize the parameters of the proposed HDDM. In this case, we consider two stacked layers at a time to obtain the GRBM parameters during the learning process. First, the input layer nodes and the first hidden layer nodes are considered as the visible units v and the hidden unit h of the first GRBM, respectively, and their respective parameters are obtained. The activations of the first GRBMs hidden units are then used as an input to train the second GRBM. We repeat this process for all four encoder hidden layers. The weights learnt for the encoder layers are then tied to the corresponding decoder layers.

Video Classification Procedure
In this section, we describe how to classify query videos using the representation error. Assume that there are C training videos {X c } C c=1 with the corresponding class labels y c ∈ {1, 2, · · · , C}. A video sequence is denoted by X c = x (t) T t=1 , where x (t) contains raw pixel values of the frame at time t. The problem is to assign class y q to the query video X q .

Sparse Cubic Symmetrical Patterns
We represent dynamic textures by video blocks, video volumes spanning over both the spatial and temporal domains, to jointly model the spatial and temporal information. Since there are strong correlations between adjacent regions of scenes (which cause redundancy), we devise an approach to extract a sparse representation of the spatiotemporal encoded features. As a result, the less important information is discarded which makes the deep discriminative model representation more efficacious. For this purpose, we design a volumetric based descriptor to capture the spatiotemporal variations in the scene. Given a video, we first decompose it into a batch of small cubic spatiotemporal volumes. We only consider the video cubes of small size (w × h × d pixels), which consists of relatively simple content that can be generated with few components. Figure 3 illustrates the feature extraction process. We divide each series of frames X = x (t) T t=1 into w × h × d distinct non-overlapping uniformly spaced cubic blocks and extract symmetric spatiotemporal variation pattern for every block which results in a feature vector of the corresponding block. Consequently, each video sequence X is encoded in terms of the symmetric signed magnitude variation patterns, denoted as x E ∈ R d , obtained by concatenating the feature vectors of all cubic blocks spanning over the entire video sequence. We do not consider the last one or two frames of video sequence if they do not fit in the cubic block structure. This does not affect the algorithms performance due to the correlation between consecutive frames.  The symmetric spatiotemporal variations for j-th plane is calculated as where x o . Also, denotes the concatenation operator.
The aforementioned feature vectors are organized into the columns of a matrix D ∈ R d×N , where d is the dimension of the feature vectors and N is the total number of videos. In variable-length videos, we temporally partition the video sequences into non-overlapping segments with a fixed length k and extract features from the cubic blocks within each segment, separately. Then, we place the extracted features of each section into a column of the matrix D. Here, we call matrix D the dictionary and aim to find a sparse representationx of the encoded video x E , x E = Dx by basis matching pursuit [35] such that where λ is a slack variable and · 1 is the sparsity including ℓ 1 norm. The slack variable balances the trade-off between fitting data perfectly and employing a sparse solution. For further improvements, we represent each color channel, individually. Also, we reshape the sparsely represented vectorx into a 3D structure ofX = x (l) L l=1 , where L is the length of the structure. We feed the proposed deep model with Sparse Cubic Symmetrical Patterns (SCSP) instead of raw videos.
For notational simplicity, we will consider the sparsely representedX = x (l) L l=1 as a sequence of frames with length L and denote it by X = x (l) L l=1 hereafter.

Learning DDMs of the Training Classes
In order to initialize the parameters of the HDDM using GRBMs, we randomly shuffle a small subset, containing video sequences from all classes (of the training video sequences). We use this subset for layer-wise GRBM training of all encoder layers. The parameters of the decoder layers are then configured with their corresponding tied parameters of the encoder layers. This process assures us that rarely does the proposed network gets stuck in a local minimum. We define a cost function based on the representation error over all frames of the video for learning class-specific parameters. In order to avoid over-fitting and enhance the generalization of the learnt model to unseen test data, the regularization terms are added to the cost function of the HDDM. A weight decay penalty term J wd and a sparsity constraint J sp are added.
where λ wd and λ sp are regularization parameters. J wd guarantees small values of weights for all hidden units and ensures that dropping out will not happen for hidden layers units. It is defined as the summation of the Frobenius norm of all weight matrices: Moreover, J sp enforces that the mean activationρ (i) j (over all training samples) of the j-th unit of the i-th hidden layer is as close as possible to the sparsity target ρ which is a very small constant. J sp is further defined based on the KL divergence as Therefore, a class specific model θ c is obtained by optimizing the regularized cost function J reg over all frames of the class X c .
We note that our proposed model is easily scalable. Enrolling new classes would not require re-training on the complete database. Instead, the class-specific models for the added classes can be learnt independently of the existing classes.

Classification
Given a query video sequence X q = x (t) Tq t=1 , we first extract SCSPs and then separately reconstruct them using all class-specific DDMs θ c , c = 1, · · · , C, using Equations (1) and (2). Supposex , from all class specific models; then, a weighted voting strategy is employed to determine the class label of the given query video sequence X q . Each query video sequences frame x (l) casts a vote to all classes. Using the reconstruction error of each classs model, we assign a weight to the casted vote to each class. The weight µ c x (l) of the vote casted by a frame x (l) to class c is defined as The candidate class which achieves the highest accumulated weight from all frames of X q is declared as the class y q of the query video sequence:

Experimental Analysis
We extensively evaluate the performance of the proposed method on five benchmarking datasets including UCF101 [36] and Hollywood II [37] datasets for action recognition, DynTex dataset [17] for dynamic texture recognition, and YUPENN [38] and Maryland [39] datasets for dynamic scene classification task.

Parameter Setting
We performed a grid search to obtain the optimal parameters and conducted experiments on a validation set. To be specific, the initial weights for layer-wise GRBM training are drawn from a uniform random distribution in the range of [−0.005, 0.005]. Contrastive Divergence (CD) was used to train GRBMs on 200 randomly selected videos from the training data. Mini-batches of 32 videos were used and the training was done for 50 epochs. A fixed learning rate of 10 −3 was used. To train the pre-initialized HDDM to learn class-specific models, we used an annealed learning rate that is started with 2×10 −3 and multiplied by a factor of 0.6 per epoch. We chose ℓ 2 weight decay (λ wd ) to be 0.01, a sparsity target (ρ) of 0.001, and non-sparsity penalty term (λ sp ) of 0.5. The training was performed by considering a mini-batch of 10 videos for 20 epochs. The size of volumetric blocks in SCSP also affects the performance of the algorithm. Therefore, we conducted an empirical study on different sizes of video blocks in Table 1. It is observed from Table 1 that the best result is achieved with the block size of 3 × 3 × 3. With very small blocks (e.g. 1 × 1 × 3), few spatiotemporal regions are captured and the model will have problems on dealing with the scene variations. Moreover, the blocks of large sizes (e.g. 7 × 7 × 5) carry too much information that does not improve the model's performance.
In order to determine the number of layers and the number of units in each layer, we employed a multi-resolution search strategy. The ideas is to test some values from a large parameter range, choose a few best configurations, and then test again with smaller steps around these values. We tested the model with the escalating number of layers [40] and stopped where the performance reaches the highest rate on the validation set. The hidden layers sizes varies in the range of [250, 1000]. Table 1: Comparison of the proposed method's accuracy (%) on the UCF101 database [36] with different block sizes for SCSP.

Human Action Recognition
We conducted experiments on two benchmark action recognition datasets, i.e. UCF101 [36] and Hollywood II [37] datasets, and compared the performance of the proposed method against state-of-the-art approaches. The UCF101 dataset [36] is composed of realistic web videos which are typically captured with large variations in camera motion, object appearance/scale, viewpoint, cluttered background, and illumination variations. It has 101 categories of human actions ranging from daily life to sports. The UCF101 contains 13,320 videos with an average length of 180 frames. It has three splits setting to separate the dataset into training and testing videos. We report the average classification accuracy over these three splits.
We compare the average accuracy performance of our proposed DDM with both the traditional and deep learning-based benchmark methods for human action recognition in Table 2. Our model obtains an average accuracy of 91.5%. However, the accuracy of DDM on the UCF101 is less than that of KVMF [41] by 1.6%. We argue that the performance of DDM degrades since it only captures short range spatiotemporal information in the video sequence. The videos in UCF101 exhibit significant temporal variations. Moreover, the severe camera movements increase the complexity of video's dynamics and make data reconstruction challenging. These issues bring up difficulties for the algorithm to focus on the action happening at each time instance.
To tackle this problem, we feed the extracted SCSP features to our DDM. The proposed SCSP extracts detailed spatiotemporal information by capturing the spatiotemporal variations of the video sequence within small volumetric blocks. By representing this information sparsely, it not only covers the whole length of the video sequence, but also decreases the redundancy of data. In this way, SCSP increases the discriminability of samples in the feature space in which the similar samples are mapped close to each other and dissimilar ones are mapped far apart. Therefore, the DDM can readily learn the underlying structure of each class. As can be seen from Table 2, the performance of our DDM improves by using SCSP features.
The Hollywood II dataset [37] has been constructed from 69 different Hollywood movies and includes 12 activity classes. It contains a total of 1,707 videos with 823 training videos and 884 testing videos. The length of videos varies from hundreds to several thousand frames. According to the test protocol, the performance is measured by the mean average precession over all classes [37]. Table 2: Comparison of the average classification accuracy of DDM against stateof-the-art methods on the UCF101 dataset [36].

Method
Average Accuracy (%) iDT+HSV [42] 87.9 MoFAP [43] 88.3 Two-Stream CNN [12] 88.0 C3D (3 nets) [13] 85.2 C3D (3 nets)+iDT [13] 90.4 FSTCN (SCI Fusion) [14] 88.1 TDD+FV [44] 90.3 KVMF [41] 93 To compare our approach with the benchmark, we obtain the average precession performance for each class and take the mean average precession (mAP) as indicated in Table 3. The best result is obtained using DDM with a 0.4 mAP improvement in the overall accuracy. The superior performance of the proposed method in action recognition task demonstrates the effectiveness of our longterm spatiotemporal modeling of videos approach.  [37].

Dynamic Texture and Dynamic Scene Recognition
We evaluated the capability of our proposed method in the case of dynamic texture and dynamic scene classification using DynTex [17] dataset, and YUPENN [38] and Maryland [39] datasets, respectively. In order to follow the standard comparison protocol, we use Leave-One-Out (LOO) cross validation. Note that the results are drawn from the related papers. The DynTex dataset [17] is a standard database for dynamic texture analysis containing high-quality dynamic texture videos such as windmill, waterfall, and sea waves. It includes over 650 videos recorded in PAL format in various conditions. Each video has 250 frames length with a 25 frames per second frame rate. Table 4 compares the rank-1 recognition rates of DDM with the benchmark approaches. It can be clearly seen that our proposed approach yields in the best results compared to all other methods.
The YUPENN dataset [38] is a stabilized dynamic scene dataset. This dataset was created with an emphasis on scene-specific temporal information. YUPENN contains 14 dynamic scene categories with 30 videos per category. There are significant variations in this dataset's video sequences such as frame rate, scene appearance, scaling, illumination, and camera viewpoint. We report the experimental results on this dataset in Table 5. It can be observed from Table 5 that Table 4: Comparison of the rank-1 recognition rates on the DynTex dataset [17].

Method
Recognition Rate (%) VLBP [19] 95.71 LBP-TOP [19] 97.14 DFS [50] 97.63 BoS Tree [51] 98.86 MBSIF-TOP [52] 98.61 st-TCoF [9] 98.20 DDM outperforms the existing state-of-the-art methods in the case of dynamic scene classification. The results confirm that the proposed DDM is effective for dynamic scene data classification in a stabilized setting. The Maryland dataset [39] is a dynamic scene database which consist of 13 natural scene categories containing 10 videos each with 617 frames on average. The dataset has videos showing a wide range of variations in natural dynamic scenes, e.g. avalanches, traffic, and forest fire. One notable difference between the Maryland dataset and the YUPENN dataset is that the former includes camera motions, while the latter does not.
We present the comparison between our proposed method and the state-ofthe-art methods in Table 5. Since most of the videos in the Maryland dataset show significant temporal variations, the experimental results suggest that, for highly dynamic data, DDM is able to outperform its strongest rival st-TCoF by a margin of 1.81%. The promising performance of st-TCoF in the dynamic scene classification (Table 5) is due to incorporating the spatial and the temporal information of the video sequence. However, the results on Maryland dataset suggests that st-TCoF is sensitive to the significant camera motions. On the other hand, our DDM is strongly robust when the structure of the images drastically changes their position with time. Therefore, the DDM can effectively learn the complex underlying structure of the dynamic scene in the presence of severe camera movements.

Discriminability Analysis
In order to illustrate the disciminability power of the SCSP, Figure 4 shows the distribution of the sampled data from different classes of UCF101 database before and after applying SCSP in a 3D space. Thanks to the existing redundancy, the samples are correlated before applying SCSP, which makes the data Fig. 4: An example of the distribution of the learnt classes from UCF101 dataset [36] before (Left) and after (Right) applying the proposed SCSP. The SCSP reduces the correlation between similar classes by condensing and scattering their samples in the feature space. reconstruction a non-trivial task. However, the samples become scattered in the feature space after applying SCSP, i.e. the similar samples are closer to each other and dissimilar samples are far apart. This strategy makes the process of learning class-specific models easier for DDM by learning the underlying structure of each class from the feature space instead of raw video data.
By enlarging the inter-class similarity of data, the proposed DDM reconstructs the videos of each class more effectively by learning the class-specif models. According to the distances between samples in the new feature space, the DDM can easily learn the pattern and the structure of each class, since the correlation and the redundancy are lessened by applying SCSP.

Conclusion
We proposed a novel deep learning approach for video-based scene classification. Specifically, a multi-layer deep autoencoder structure was presented which is first pre-trained for appropriate parameter initialization and then fine-tuned for learning class-specific Deep Discriminative Models (DDMs). Capturing the underlying non-linear complex geometric surfaces, the DDMs can effectively model the spatiotemporal variations within video sequences. In order to discard the redundant information in video sequences and avoid the strong correlations between adjacent frames, we captured the spatiotemporal variations in the video sequences and represented them sparsely using Sparse Cubic Symmetrical Pattern (SCSP). The learnt DDMs are used for a minimum reconstruction errorbased classification technique during the testing phase. The proposed method has been extensively evaluated on a number of benchmark video datasets for action recognition, dynamic texture and dynamic scene classification tasks. Comparisons against state-of-the-art approaches showed that our proposed method achieves very interesting performance.