Full text
A Time Flexible Kernel Framework for Video-Based Activity Recognition Mario Rodrigueza,∗, Carlos Orritea, Carlos Medranob,a, Dimitrios Makrisc aCVLab, I3A, Zaragoza University, c/Mariano Esquillor s/n 50018, Zaragoza, Spain bEduQTech, E.U. Politecnica, Zaragoza University, c/Ciudad Escolar s/n, 44003, Teruel, Spain cDigital Imaging Research Centre, Kingston University, Penrhyn Road Kingston upon Thames Surrey KT1 2EE,UK Abstract This work deals with the challenging task of activity recognition in unconstrained videos. Standard methods are based on video encoding of low-level features using Fisher Vectors or Bag of Features. However, these approaches model every sequence into a single vector with fixed dimensionality that lacks any long-term temporal information, which may be important for recognition, especially of complex activities. This work proposes a novel framework with two main technical novelties: First, a video encoding method that maintains the temporal structure of sequences and second a Time Flexible Kernel that allows comparison of sequences of different lengths and random alignment. Results on challenging benchmarks and comparison to previous work demonstrate the applicability and value of our framework. Keywords: Activity Recognition, Soft-assignment, Kernel Methods, Support Vector Machine ∗Corresponding author Email addresses: [email protected] (Mario Rodriguez), [email protected] (Carlos Orrite), [email protected] (Carlos Medrano), [email protected] (Dimitrios Makris) Abbreviations: Time Flexible Kernel (TFK), Improved Dense Trajectories (IDT), Motion Interchange Patterns (MIP), Probability Product Kernel (PPK) Preprint submitted to Image and Vision Computing September 4, 2015
1. Introduction Significant research effort has been invested in video-based activity recognition during the last few years, supported by the widespread availability of video cameras, as it may benefit many applications such as video indexing, surveillance or entertainment.5 A video is a sequence of frames that can be viewed as a 3-dimensional matrix of pixels, two dimensions provide the space localization and the third one is related to time. When displayed in a screen, as a sequence of images, humans are able to easily distinguish among activities, but the same task is extremely challenging for a computational method. The machine learning community10 has suggested several approaches with their advantages and disadvantages, but results in unconstrained recordings are still far from what humans may achieve. The design of sophisticated low-level descriptors [1] [2] [3] has been central in recent advances for this research challenge. Specifically, space-time feature codification has been present in the state-of-the-art approaches where video se-15 quences are represented by a Bag of Features (BoF) or a Fisher Vector (FV), encoding the extracted features. The recognition process is carried out afterwards by applying a multi-class Support Vector Machine (SVM) [4], which takes advantage of the kernel trick. Despite the promising performance of these approaches there are two drawbacks due to the characteristics of the descriptors:20 (i) using image or short-term descriptors, the lack of explicit temporal information withhold them from reliable recognition of activities [5], and (ii) mid-term descriptors may describe better the activities [6] but still lack of information of the whole temporal structure making them unreliable for complex activities where the order of sub-actions describes the activity.25 On the other hand, some state space models such as Hidden Markov Models (HMM) [7] or more recent Conditional Random Fields [8], codify the long term temporal information of the sequences. Although they have provided satisfactory results in human activities they usually work in constrained scenarios such as ones implied by the datasets KTH, Weizmann or UT-Tower, where there30 2
Figure 1: Graphical Abstract: (i) sliding frame-windows in the clip frames are used to encode the low-level descriptors information obtaining a sequence of vectors, (ii) two different kernels between sequence elements are computed using video and structure information and (iii) a multiple kernel learning is calculated in order to recognize using a SVM. is no camera motion and the point of view is fixed [9] [10] [11]. Thanks to these restrictions it is possible to train states encompassing common characteristics among the videos and thus to achieve high accuracy. However, new databases, such as HMDB51, UCF50, OlympicSports and Virat Release 2.0 have been produced aiming at challenging tasks, such as indexing events in35 unconstrained videos in the internet or surveillance in uncontrolled scenarios performing a scene-independent learning and recognition. These datasets were recorded in unconstrained environments with random viewpoints, camera movements and/or dynamic changes in the background. Some of the best results in these challenging benchmark datasets have been40 obtained with variations of the mentioned SVM approach [12] [4] [6], which has been proven to be a convenient method in spite of the lack of long-term dynamic information. Nevertheless, the long-term temporal information is important in the description of complex activities and thus, we propose the recognition framework depicted in Figure 1 where such information is maintained. Both BoF and45 3
FV create a codebook, the former using k-means clustering of the training descriptors and the latter using an EM-GMM algorithm. Following the application of sliding frame-windows, each video is modelled as a sequence of BoFs or FVs. The use of a window with few frames produces sparse data so we minimize its effect by using a soft-assignment approach when using BoFs. These sequences50 preserve the long-term dynamic information needed for the recognition of complex activities. However, as the sequences length and the pace of actions are variable, standard kernels obtained between vectors of same length are not applicable and novel approaches, like Spatio-Temporal Pyramid Matching (STPM) [13], keep the long-term information, but they rely on perfect alignment of the55 sequences with regular pace of actions. Nevertheless, it is worth noting the improvement achieved using several encoding scales, proposed in STPM, that we also apply into our work. So, our contribution in this paper includes the design of a novel kernel formulation between arbitrary length sequences that allows the use of the long-term dynamic information in a SVM with matching flexibility,60 named Time Flexible Kernel (TFK). In order to validate our contribution we have carried out several experiments in four challenging datasets: HMDB51, UCF50, OlympicSports and Virat Release 2.0. The rest of the paper is divided as follows. Section 2 reviews some related works. Section 3 explains the proposed framework, focusing on our two main65 technical contributions: a novel encoding scheme and the Time Flexible Kernel, as well as its application for activity recognition. Section 4 presents our experimental validation and section 5 concludes the work. 2. Related Work Feature extraction is a key element in recognition systems thus a signifi-70 cant number of methods have been proposed. Descriptors can be divided into global and local or low-level features, however, the former group is sensitive to noise, occlusions and viewpoint variations that can be experienced in challenging datasets such as HMDB51, UCF50, OlympicSports and Virat Release 4
2.0. Therefore, researchers have mainly focused on local descriptors that can be75 roughly categorised as: (i) image descriptors like SIFT, HOG, Harris, which lack any kind of time information or (ii) space-time descriptors like their extensions 3D-SIFT [2], HOG3D [3] and spatio-temporal Harris interest points [1]. Some descriptors of the latter group are designed so to capture directly the video information as Motion Interchange Patterns (MIP) [5], HOG-HOF [14] or SCISA80 [15] do. Most of the approaches use holistic encoding based on BoF or FV to derive a vector for each video sequence. Then, SVM is used for multi-class classification, either using a one-against-one approach or a one-against-all approach for multi-class recognition. Until recently, BoF has been the standard approach in video encoding, quantizing the feature vectors into a predefined codebook.85 However, recent works [6] [4] have adopted the strategy of encoding the feature information into a FV which keeps second-order information in relation to an estimated Gaussian Mixture Model (GMM). Alternatively to the above framework, [16] modifies the SVM strategy to a ranking problem obtaining encouraging results. Finally, Dense Trajectories [17] [18] and the actual state of90 the art in many benchmarks Improved Dense Trajectories (IDT)[6] are based on short trajectories of local descriptors within a sliding temporal window. The activity encoding methods such as BoF and FV require a “visual word” dictionary. Usually, such a dictionary is created using clustering of the extracted features in the training examples. In the case of BoF every feature is roughly95 assigned to a word of the dictionary. However, quantization errors are caused, when only a small amount of samples are used, as in the case of the use of a narrow temporal window. Soft-assignment approaches have been proposed to deal with this problem [19] [20] [21]. Alternatively, FV models the codebook as a GMM and the encoding produces a vector of K(2d+ 1) dimensions, Kis100 the number of Gaussians and dis the dimension of descriptors, where second order information of the GMM is used [4] [6]. However, the main drawback of both approaches is that the long-term temporal information is lost since the encodings are obtained from an unordered collection of local descriptors. Many approaches have been designed to account complex temporal struc-105 5
Figure 2: Two “opposite” activities from Virat Release 2.0 dataset with different sub-actions order. First row: person opens car door, goes out of the vehicle, closes door and walks. Second row: person walks, opens car door, gets into the vehicle and closes door. tures recognizing complex human activities defined as composite multimedia semantics (e.g., birthday party, wedding ceremony) where orderless sub-actions appear in the video. These approaches consider the order of sub-actions as a distracter (not a discriminant) and hence they perform an alignment of similar sub-scenes disregarding their order. For instance Xu et al. [22] divide the110 clips into sub-clips which later are matched with other sequence using the earth movers distance (EMD). Cao et al. [23] have designed a kernel that makes a pooling of the frames into a fixed number of scenes called Scene Alignment Pooling (SAP). In [24] a detection of sub-scenes categories and a global scene category are combined in a Multiple Kernel Latent SVM where several features115 are used. In the work of Li et al. [25] the proposed method identifies the most representative segments of the actions using a dynamic pooling with a latent variable. As opposed to the previously explained works, the temporal order of the sub-actions performed in an activity is considered essential in this paper, as the120 objective is to distinguish between complex activities that can be composed of same sub-actions but in different order, even opposite as for instance “Getting Out of Vehicle” and “Getting Into Vehicle” in Virat dataset, Figure 2. Thanks to the kernel trick the SVM can classify in a dimensional space differ- 6
ent from the original one where samples may be linear-separable. The standard125 kernel methods assume a fixed length D-dimensional vector per sample which is projected into a different space where the inner product is performed. However, this is not straightforward in activity recognition videos where the long-term activity dynamic information remains in the encoding because lengths of sequences may be arbitrary. Two solutions have been proposed in the literature:130 (i) obtaining some sort of inner product by aligning the sequences lengths of the patterns, as Dynamic Time-Alignment Kernel [26] or Fast Global Alignment Kernel [27] do and (ii) training a HMM with a single sequence and posterior obtaining a Probability Product Kernel (PPK) [28] like in [29]. Both solutions have been used in sequence clustering tasks [30] [29] [31]. Sequence alignment135 enforces a common start and end in the sequences which is not always the case. On the other hand, the PPK of HMMs implies that each HMM is trained with only one sequence which does not offer sufficient information to train properly the parameters of a complex model. Moreover, the optimization process in the HMM training is performed with the Baun-Welch algorithm which only assures140 a local optimum. The long-term temporal information has been used in some other methods. A recent one is the extension of the work of Spatial Pyramid Matching (SPM) [32] called Spatio-Temporal Pyramid Matching (STPM) [13]. The method suggests dividing the videos into equal number of spatio-temporal volumes at sev-145 eral scales, called pyramids, computing in each volume a BoF, and finally obtaining a similarity between two video clips by comparing the corresponding volumes. Fixing the number of divisions and comparing volumes one-to-one constrain the method to regular paced actions losing flexibility. In [33] they encode each video into a 3D histogram with spatio-temporal information and150 design a specific kernel for the 3D histogram, but their pairwise feature comparison is not suitable for dense features extraction which recently have provide the state-of-the-art results. Using HMM, the authors of [34] propose to learn the temporal structure, including latent variables that determine the expected time to stay in a state. [35] keeps the long-term information using graph models155 7
of the video foreground and with a Kronecker product constructs a Kronecker graph model per action class used in the classification. In [36] the sequences length is not constrained and the authors use a framework where appearance and temporal position of motion segments is included, however, due to high computational load, their learning process finds a local optimum.160 As pace of actions is unknown and the alignment performed by the segmentation can introduce some errors, our approach improves the previous methods by introducing some flexibility in the kernel framework that compensates in some degree these errors. The framework allows arbitrary length vectors in the kernel, and as the SVM training is a convex optimization problem it finds a165 global optimum. 3. Activity Recognition Framework using a Time Flexible Kernel (TFK) Figure 3 summarises our proposed framework for activity recognition and compares it to the standard approach. Specifically, it assumes a pipeline of170 feature extraction and clustering, video encoding using BoF or FV, applying kernel and finally using multi-class SVM. The contribution of our framework is twofold: First, the video encoding method that produces multiple encodings that preserve temporal information, as described in section 3.1. Second, the Time Flexible Kernel that allows comparison of vectors of different lengths,175 as described in section 3.2. Section 3.3 discusses the application of the novel framework on activity recognition. 3.1. Video Encoding We have designed an encoding that maintains the temporal information of sequences. In Figure 3 we can compare the standard approach (up) and our180 encoding method (down). There is a common stage of features extraction and codebook generation by clustering, but the video is represented differently. Our proposal keeps temporal information by computing the FV or BoF on sliding 8
Multi-class SVM TFK Multi-class SVM Figure 3: Standard (up) and proposed (down) approaches: The features extraction and the clustering stages are common. The standard approach encodes a video into a single BoF using hard-assignment to clusters or a single FV. Our novel approach encodes the video splitting it into sliding frame-windows (window duration, wKframes, and window stride, wDframes) obtaining a BoF using soft-assignment or a FV in each window. The new encoding needs a specific kernel (TFK) instead of standard kernels, such as linear, RBF, etc. Finally a multiclass SVM performs the recognition. 9
one, so it is important to follow the authors’ protocol. The authors suggest a division into 25 groups in order to apply a leave-one-group-out cross-validation315 strategy that we follow. OlympicSprots [36] contains 783 videos of athletes practising 16 different sports. All video sequences were obtained from YouTube and have been annotated with the help of Amazon Mechanical Turk. The authors suggest a split for training and testing the recognition system.320 Virat Release 2.0 [41] has been recorded in 11 different scenes of video surveillance, captured by stationary HD cameras (1080p or 720p). There are 11 different classes of activities annotated where persons and vehicles appear (Loading, Unloading, Opening Trunk, Closing Trunk, Getting Into Vehicle, Getting out of Vehicle, Entering Facility, Exiting Facility, Gesturing, Carrying and325 Running). We follow the scene-independent learning and recognition mode of evaluation suggested by the authors. In the experiments we specifically focus in the actions with “opposite” counterpart, all the actions except Gesturing, Carrying and Running. 4.2. Parameter Identification330 The framework performance is tested using two different descriptors. First, as representative low-level descriptor with short-term information we have used the MIP descriptor [5], which performs better than other common short-term descriptors like SIFT or HOG-HOF. Second, as state-of-the-art descriptor, and with longer temporal information captured we have selected the IDT descriptor.335 In order to understand the utility of the proposed framework we have conducted more exhaustive experiments with this descriptor. In both cases a parameter analysis is explained in this subsection. The MIP descriptor is extracted with the original specifications proposed by the authors. The video is encoded with a BoF approach creating a codebook340 of 5000 codewords per channel obtaining a (8 ×5000)-dimensional vector. Our proposed video encoding depends on three parameters: β(in Equation 2) controlling the softness of the assignment and wDand wK(in Figure 3) modelling 16
(c) accuracy (b) accuracy (a) accuracy Figure 6: Parameters performance using MIP descriptors: Performance of the system evaluated in the first split of HMDB51 in relation to three parameters: (a) β, (b) wK, and (c) σ. the sliding frame-windows. Fixing the temporal spacing ∆t= 1 we let σas the free parameter of the Gaussian functions.345 We firstly perform experiments for multiple combinations of the parameter β, the window width wD, the window displacement wKand the the standard deviation σof the Gaussian function of the kernel, using the first split of the HMDB51 dataset. From initial experiments we have found that a sliding frame-window without350 overlapping provides best results, therefore we fix wD=wKand then only 2 parameters of the video encoding are analysed: wKand β. We show in Figure 6 the results obtained by fixing two of the three analysed parameters to the values finally selected, so the graphs represent the performance of the remaining one. We can observe the importance of using the soft-assignment approximation355 in Figure 6(a) where different values of βare evaluated. If we use a hardassignment with a window of width wK= 15 the system performance declines 17
in relation to a proper soft-assignment, which can be explained by the lack of sufficient data in a window. On the other hand, any of the three analysed values of β(6, 8 and 10) gives better results than the hard-assignment, what implies360 that the use of a soft-assignment is an adequate optimization in a wide range of values. The width of the window wK, Figure 6(b), does not impose significant variations in the system performance either, although the value wK= 15 seems to be optimal.365 Figure 6(c), depicts the performance of the system while varying the standard deviation σof the kernel Gaussian functions. The bigger it is the wider are the Gaussians which means that the sequences are more flexible to asymmetrically expand or shrink but also that the temporal position is less influential. Very small values of σlead to low accuracy, but then the variation in perfor-370 mance is minor and we find the optimum between σ= 1 and σ= 2. We extend the parameters influence experiments to the IDT descriptor. In this case the encoding is performed with FV using a mixture model of 256 Gaussians. Hence, the study is performed over wKand wDfor the sliding frame-window and σfor the temporal structure. We perform the analysis using375 the training examples of the OlympicSports dataset, dividing it into two groups randomly selected: 70% for training and 30% for validation. In Figure 7 we show three graphs fixing two of the parameters to the final value selected and varying the remaining one. Figure 7 (a) shows low variation in the performance of the system for varying380 wKexcept with short windows close to the IDT length, once reached wK= 25 the accuracy variation is produced only by two examples recognition, slightly tending to the maximum when increasing the size until reaching the whole video represented in the axes as wK→ ∞. The case where wK→ ∞ corresponds to the use of a single FV per video, which is the standard approach of IDT385 presented in [6]. Therefore, in order to compare our framework with the original approach we carry out the experiments using wK= 30. The value of wDhas even a lower influence in the performance and although the optimal value is 18
(c) accuracy (b) accuracy (a) accuracy Figure 7: Parameters performance using IDT descriptors: Performance of the system evaluated in the OlympicSports dataset in relation to three parameters: (a) wK, (b) wDand (c) σ. between wD= 5 and wD= 15, it makes little difference in the final result. The parameter σhas a similar behaviour to the one in the MIP analysis, although390 we can consider that the optimum value extends from σ= 1 to at least the maximum analysed σ= 3 because the accuracy decreases only in one incorrectly recognized example. 4.3. Framework Validation Our proposed framework is advantageous in two scenarios: (i) when using395 short time descriptors, as it allows including longer temporal information in the classifier and (ii) recognizing complex activities where the order of actions may be crucial for correct recognition. In the latter scenario, our framework can benefit even cases where longer time descriptors are used, as it encodes all the temporal information of the activity. However, when dividing the videos in400 small sub-clips the information can be scarce and produce unstable encoding that leads to bad classification in examples where the previous propositions are 19
not fulfilled. This problem is overcome by combining the two granularities of the video division proposed in Equation 10. Our first experiment analysed the proposed framework performance using405 short-term descriptors. It is carried out using the MIP descriptor and the BoF encoding over the datasets HMDB51 and UCF50. In the previous section, we have seen that the performance of the framework is not significantly influenced when parameters are chosen within acceptable ranges. For the following experiments we select β= 8, in case of soft-assignment, the width wK= 15 and the410 displacement of sliding frame-windows wD= 15, so they are not overlapped, and the standard deviation of the Gaussian functions of the structural kernel σ= 1. We divided both datasets according to the authors’ recommendations: 3 splits in HMDB51 and 25 groups in UCF50. We have used publicly available code for MIP 1and SVM 2, using the default parameters. The randomness of415 initialisation of the k-means algorithm justifies why our results do not exactly coincide with those given in the MIP original paper. To ensure fair comparison between the standard method and our proposed framework, clustering and features extraction, as well as the one-against-all SVM classification, coincide in both pipelines. The difference lays in the middle stages. The standard method420 encodes the video with a single BoF obtained with a hard-assignment and applies a linear kernel between BoFs (BoF + LinK) as suggested by the authors for best results [5]. The proposed framework encodes each video in a sequence of BoFs (SeqBoF) using soft-assignment and applies the proposed TFK (SeqBoF + TFK). In Table 1 we can see how the inclusion of long-term temporal infor-425 mation using TFK clearly improves the results in both datasets which validates our first assumption regarding short-term descriptors. However, clearly better results have been obtained in the state-of-the-art using mid-term descriptors and specifically with IDT. 1MIP descriptor code can be downloaded in http://www.openu.ac.il/home/hassner/projects/MIP/MIPcode.zip 2SVM code can be downloaded in http://www.csie.ntu.edu.tw/∼cjlin/libsvm/ 20
HMDB51 UCF50 Kliper-Gross et al. [5] 29.17 68.51 MIP + BoF + LinK [5] 30.9 66.0 MIP + SeqBoF + TFK [OURS] 34.4 72.4 Table 1: Average accuracy (in %) in the HMDB51 and UCF50 datasets using the splits suggested by the authors. First row: results provided in [5]. Second row: own implementation of [5]. Third row: novel framework using TFK. The second battery of experiments has been performed using the state-of-430 the-art descriptor, IDT3, and comparing the novel framework against the original work in [6] and other related works in Activity Recognition. The sliding frame-windows vary form the MIP experiments as wK= 30 and wD= 15. We compute the experiments in all the evaluated datasets: OlympicSports, HMDB51, UCF50 and Virat Release 2. In all the experiments we follow the435 authors’ recommendations: one division for training and testing in Olympic- Sports, 3 splits in HMDB51, leave-one-group-out from 25 groups in UCF50 and leave-one-scene-out with 11 scenes in Virat Release 2.0. As in the literature we find mainly results of Accuracy (acc) or Mean Average Precision (mAP), we compute both in the different approaches evaluated. Table 2 shows the results440 obtained with the original IDT as well as our proposed frameworks. To assure fair comparison we perform all the experiments using the same IDT extraction and GMM estimation. First, we obtain an unique FV per Video and apply a linear kernel for a SVM classification (IDT+FV+LinK), obtaining our own implementation of the approach in [6]. Following, we use the extracted IDT fea-445 tures to obtain a sequence of FV (SeqFV) that are used in our TFK approach (IDT+SeqFV+TFK). Finally, we combine both approaches in the CombK kernel (IDT+CombK). The TFK approach is suitable in complex activities where the order of sub- 3IDT descriptor code can be downloaded in http://lear.inrialpes.fr/people/wang/download/improved trajectory release.tar.gz 21
OlympicSports HMDB51 UCF50 Virat2 mAP acc mAP acc mAP acc mAP acc IDT+FV+LinK [6] 89.8 83.6 57.8 57.4 93.8 90.0 43.5 55.7 IDT+SeqFV+TFK 86.5 82.8 58.3 57.7 92.7 89.5 52.1 63.6 IDT+CombK 89.9 84.3 59.1 58.6 94.1 90.3 47.9 58.1 Table 2: Mean Average Precision (mAP) and average accuracy (acc) (in %) results in the OlympicSports, HMDB51, UCF50 and Virat Release 2 datasets using the Improved Dense Trajectories. First row: own implementation of [6]. Second row: novel framework using TFK. Third row: novel framework using the combination of TFK with [6]. actions determines the class. This can be confirmed with the results in Virat450 dataset where there are 4 activities with their respective “opposites”, depicted in the second row, two last columns of Table 2. However, TFK also have some drawbacks, as can be observed in the other three datasets where it performs similarly to the original IDT method. TFK relies in the extracted features in each window, and if they are scarce, the computed FV can be less robust to clutter.455 These datasets have complex activities, but not all of them depend on the order of sub-actions, therefore, although some activities are better classified with TFK, others are worse. The solution for this lack of robustness against clutter is the linear combination of both kernels. As we can see in the last row, this approach improves the results in all datasets but Virat where, even improving460 the original approach, the result is worse than the direct use of TFK because all the activities but 3 have “opposite” counterparts and the combination of kernels lowers the importance of order. In Table 3 we observe a comparison of the proposed approach against some of the best results in the literature. It is worth to note that there are two rows465 representing the original approach with IDT [6], the third-to-last and the second- to-last. In the third-to-last row we show the results provided in the original paper, but a direct comparison between this results and our approach is not fair as several stages have some randomness and slightly alter the final results. On the other hand, the second-to-last row shows our own implementation of470 22
OlympicSports HMDB51 UCF50 Virat2 mAP acc mAP acc mAP acc mAP acc Tang et al.[34] 66.8 Niebles et al.[36] 72.1 Li et al.[25] 76.2 Gaidon et al. [12] 82.7 Cao et al.[23] 27.8 Kliper-Gross et al. [5] 29.2 68.5 Reddy et al. [40] 27.0 76.9 Wang et al. [6] 90.2 55.9 90.5 IDT+FV+LinK [6] 89.8 83.6 57.8 57.4 93.8 90.0 43.5 55.7 IDT+CombK [OURS] 89.9 84.3 59.1 58.6 94.1 90.3 47.9 58.1 Table 3: Mean Average Precision (mAP) and average accuracy (acc) (in %) results in the OlympicSports, HMDB51, UCF50 and Virat Release 2 datasets. Comparison of the proposed framework (last row) with several state-of-the-art approaches. [6] which share the features extraction and the clustering with the TFK so the comparison is fair. We can see how our novel approach overtakes all the compared methods in the “fair” comparison. To our knowledge there is no method with better results for all the datasets. The results on Virat Release 2.0 are further analysed using only the activities475 with “opposites”, (Loading, Unloading, Opening Trunk, Closing Trunk, Getting Into Vehicle, Getting out of Vehicle, Entering Facility and Exiting Facility). The Confusion Matrices of the (IDT+FV+LinK) and (IDT+SeqFV+TFK) methods are depicted in 8. In addition to the improvement obtained with the proposed framework, these matrices confirm our premise that the TFK is suitable for480 better learning of complex activities defined with the sub-actions order. The improvement achieved by the proposed framework is clear as every element of the diagonal is greater or equal. But the improvement do not restrict to this as in addition of a general improvement, the wrong classified activities are now confused with activities with similar temporal structure. For instance, the two485 first activities (‘Loading’ and ‘Unloading’) are mainly confused with (‘Getting 23
Loading Unloading OpeningTrunk ClosingTrunk GettingIntoVehicle GettingOutofVehicle EnteringFacility ExitingFacility Loading Unloading OpeningTrunk ClosingTrunk GettingIntoVehicle GettingOutofVehicle EnteringFacility ExitingFacility 1.70 10 23.80 37.30 7.10 12.20 10.80 8.30 1.90 0.80 4.80 40.50 2.40 0.90 2.10 0.60 3.40 24.40 1.80 2.10 33.30 28.80 21.40 34.10 640 43.80 38.10 28.80 310 26.80 20.70 42.70 0.60 0.90 67.90 28.60 0.90 28.80 70.70 Loading Unloading OpeningTrunk ClosingTrunk GettingIntoVehicle GettingOutofVehicle EnteringFacility ExitingFacility Loading Unloading OpeningTrunk ClosingTrunk GettingIntoVehicle GettingOutofVehicle EnteringFacility ExitingFacility 28.60 52.50 9.50 26.80 0.90 8.30 3.20 0.80 40.50 2.40 24.40 52.40 220 23.80 19.50 86.50 36.50 0.60 190 25.40 23.80 29.30 10.80 55.20 0.90 750 28.60 0.90 21.20 70.70 Figure 8: Confusion Matrices in Virat Release 2.0 using activities with “opposites”: First the Confusion Matrix using IDT + FV + LinK approach, second using IDT + SeqFV + TFK. 24
Figure 9: Confusion Matrices in Virat Release 2.0 using two classes (IN and OUT): First the Confusion Matrix using IDT + FV + LinK approach, second using IDT + SeqFV + TFK. Into Vehicle’ and ‘Getting Out of Vehicle’). If we observe the Confusion Matrix of the (IDT + FV + LinK) method, the confusion is more or less random, but using TFK we can see how the structure is learned and then “loading” is mainly confused with “getting into vehicle” and “unloading” is mainly confused490 with “getting out of vehicle”. We achieve a clearer representation of this idea by gathering all the activities with similar temporal structure into one class so, activities (Loading, Opening Trunk, Getting Into Vehicle and Entering Facility) with structure (approaching and opening-closing) are grouped in class IN and activities (Unloading, Closing Trunk, Getting out of Vehicle and Exit-495 ing Facility) with structure (opening-closing and moving away) are grouped in class OUT. Figure 9 depicts the Confusion Matrices of these two classes. Here it is clear how the TFK approach keeps better the temporal structure of the activities. Finally, we introduce one more experiment in order to compare our frame-500 work with the STPM approach which also preserves the temporal structure of the activities. In [13], Choi et al. have designed an experiment called Quality of binary decision where one example is compared to other two, one with the same class and other with a different class. Whenever the example of the same class is more similar to the initial example than the other one, the binary decision is505 correct. With this experimentation the authors obtains a maximum of 95.3% of Precision. In order to get a similar process we select single-class SVM to provide binary decisions between two randomly selected examples (one form the same class and one from a different class). Whenever the example of the same class 25
[39] H. Kuehne, H. Jhuang, E. Garrote, T. Poggio, T. Serre, HMDB: a large video database for human motion recognition, in: IEEE Intenational Conference on Computer Vision (ICCV), 2011. doi:10.1109/ICCV.2011.675 6126543. [40] K. K. Reddy, M. Shah, Recognizing 50 human action categories of web videos, Machine Vision and Applications 24 (5) (2013) 971–981. doi:10. 1007/s00138-012-0450-4. [41] S. Oh, A. Hoogs, A. Perera, N. Cuntoor, C.-C. Chen, J. T. Lee, S. Mukher-680 jee, J. K. Aggarwal, H. Lee, L. Davis, E. Swears, X. Wang, Q. Ji, K. Reddy, M. Shah, C. Vondrick, H. Pirsiavash, D. Ramanan, J. Yuen, A. Torralba, B. Song, A. Fong, A. Roy-Chowdhury, M. Desai, A large-scale benchmark dataset for event recognition in surveillance video, in: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Washington, DC,685 USA, 2011, pp. 3153–3160. doi:10.1109/CVPR.2011.5995586. 32