We consider the problem of semi-supervised 3D action recognition which has been rarely explored before. Its major challenge lies in how to effectively learn motion representations from unlabeled data. Self-supervised learning (SSL) has been proved very effective at learning representations from unlabeled data in the image domain. However, few effective self-supervised approaches exist for 3D action recognition, and directly applying SSL for semi-supervised learning suffers from misalignment of representations learned from SSL and supervised learning tasks. To address these issues, we present Adversarial Self-Supervised Learning (ASSL), a novel framework that tightly couples SSL and the semi-supervised scheme via neighbor relation exploration and adversarial learning. Specifically, we design an effective SSL scheme to improve the discrimination capability of learned representations for 3D action recognition, through exploring the data relations within a neighborhood. We further propose an adversarial regularization to align the feature distributions of labeled and unlabeled samples. To demonstrate effectiveness of the proposed ASSL in semi-supervised 3D action recognition, we conduct extensive experiments on NTU and N-UCLA datasets. The results confirm its advantageous performance over state-of-the-art semi-supervised methods in the few label regime for 3D action recognition.READ FULL TEXT VIEW PDF
Recently, 3D action recognition (a.k.a. skeleton-based action recognition) has made remarkable progress through learning discriminative features with effective networks [7, 47, 18, 12, 44, 29, 30]. However, these methods heavily rely on the available manual annotations that are costly to acquire. Techniques requiring less or no manual annotations are therefore developed, and among them a powerful approach is semi-supervised learning. It is aimed at leveraging unlabeled data to enhance the model’s capability of learning and generalization such that the requirement for labeled data can be alleviated. It has been widely applied in the image domain [14, 25, 27, 15, 34, 24, 16]. Compared with these methods,  has recently proposed a more efficient way of feature learning from unlabeled data, namely self-supervised semi-supervised learning (L), that couples self-supervision with a semi-supervised learning algorithm. It employs the self-supervised technique to learn representations of unlabeled data to benefit semi-supervised learning tasks. Self-supervised learning is very advantageous in making full use of unlabeled data, which learns the representations of unlabeled data via defining and solving various pretext tasks. Thus in this work we exploit its application to semi-supervised 3D action recognition, which has little previous investigation.
As images contain rich information that is beneficial to feature extraction, many effective SSL techniques[5, 37, 42] are image-based. Comparatively, for tasks over skeleton data which represent a person by 3D coordinate positions of key joints, it becomes very challenging to leverage SSL techniques to learn discriminative motion representation. Therefore, how to learn motion representation with SSL technique is an urgent problem for this task. Recently,  proposes a SSL method to learn temporal information of unlabeled sequence via skeleton inpainting. This SSL treats each sample as an individual such that it ignores the shared information among samples with the same action class. As a result, semi-supervised 3D action recognition has derived little benefit from the representations learned by skeleton inpainting.
Moreover, we also find that, directly applying SSL for semi-supervised learning suffers from misalignment of representations learned from self-supervised and supervised learning tasks. As shown in Fig. 1, labeled and unlabeled samples are enforced with supervised and self-supervised optimization objectives respectively. Though both sampled from the same data distribution, their feature distributions are misaligned. This misalignment would weaken the generalization of semi-supervised 3D action recognition models to unseen samples. A task with similar problem as ours is unsupervised domain adaptation (UDA) that matches the feature distributions from different domains. While their problem is quite similar to ours, there exist important differences between UDA and our task. In UDA, the discrepancy of feature distributions is caused by different domains. Our problem is the misalignment of representations learned from SSL and supervised learning tasks in semi-supervised 3D action recognition. One line of research in UDA is adversarial-based adaptation methods [9, 35, 20] that have shown promising results in domain adaptation. These methods seek to minimize an approximate domain discrepancy distance through an adversarial objective with respect to a domain discriminator. Hence, inspired by the alignment effect of adversarial learning in UDA, we exploit its application to couple the self-supervision method into a semi-supervised learning algorithm.
In this work, we propose an Adversarial Self-Supervised Learning (ASSL) Network for semi-supervised 3D action recognition. As shown in Fig. 1, our model leverages (i) self-supervised learning to capture discriminative motion representation of unlabeled skeleton sequences, and (ii) adversarial regularization that allows to align feature distributions of labeled and unlabeled sequences. More specifically, in addition to a self-inpainting constraint  for learning temporal information of each individual unlabeled sample, we propose a new perspective of consistency regularization within the neighborhood to explore the data relationships. Neighborhoods can be considered as tiny sample-anchored clusters with high compactness and class consistency. Consistency regularization within the neighborhood further reveals the underlying class concept of the self-supervised motion representation. Such discriminative motion representations significantly improve the performance of semi-supervised 3D action recognition. Moreover, considering that adversarial learning can minimize the discrepancy between two distributions, we also propose a novel adversarial learning strategy to couple the self-supervision method and a semi-supervised algorithm. The adversarial regularization allows the model to align the feature distributions of labeled and unlabeled data, which boosts the capability of generalization to unseen samples for semi-supervised 3D action recognition.
We perform extensive studies for semi-supervised 3D action recognition on two benchmark datasets: NTU RGB+D  and N-UCLA  datasets. With the proposed ASSL network, we establish new state-of-the-art performances of semi-supervised 3D action recognition. Summarily, our main contributions are in three folds:
We present an Adversarial Self-Supervised Learning (ASSL) framework for semi-supervised 3D action recognition, which tightly couples SSL and a semi-supervised scheme via adversarial learning and neighbor relation exploration.
We offer a new self-supervised strategy, i.e., neighborhood consistency, for semi-supervised 3D action recognition. By exploring data relationships within the neighborhood, our model can learn discriminative motion representations that significantly improve the performance of semi-supervised 3D action recognition.
We identify that directly applying SSL for semi-supervised learning suffers from the representation misalignment of labeled and unlabeled samples. A novel adversarial regularization is pioneered to couple SSL into a semi-supervised algorithm to align their feature distributions, which further boosts the capability of generalization.
Human action recognition is one of important computer vision tasks. Due to the informative representation for the action, skeleton-based action recognition has been examined thoroughly in past literature. Previously, the traditional approaches[36, 37, 11, 38] try to design various hand-crafted features from skeleton sequences to represent human motion, e.g., relative 3D geometry between all pairs of body parts 
. Recently, deep learning has also been applied to this task due to its wide success. To model temporal dependencies, many methods leverage and extend the recurrent neural networks (RNNs) to capture the motion features for skeleton-based action recognition,e.g., HBRNN  and VA-LSTM 
. Based on Convolutional Neural Networks (CNNs) that are powerful at learning hierarchical representations, spatio-temporal representations are extracted for action recognition in[6, 12, 18, 41]. For graph-structured data, graph-based approaches [31, 19, 32] are popularly adopted for skeleton-based action recognition, e.g., ST-GCN  and AGC-LSTM . Though successful, these supervised methods highly rely on massive data samples with annotated action labels, which are expensive to obtain. Semi-supervised approaches are thus developed to alleviate this data annotation limitation, and in this paper, we apply it to learning motion representation for 3D action recognition.
Semi-supervised learning algorithms learn from a data set that includes both labeled and unlabeled data, usually mostly unlabeled. For a comprehensive review of semi-supervised methods, we refer readers to . Recently, there is increasing interest in deep learning based semi-supervised algorithms. One group of these methods is based on generative models, e.g.26], variational autoencoders  and generative adversarial networks [25, 27]. Some semi-supervised methods add small perturbations to unlabeled data, and require similar outputs between them by enforcing a consistency regularization, e.g., -Model , Temporal Ensembling , Mean Teacher  and Virtual Adversarial Training . There are also some other works. To name a few, Lee et al. 
pick up the class with maximum predicted probability as pseudo-labels for unlabeled data, and use them to train the models. presents a conditional entropy minimization for unlabeled data, which encourages their predicted probability to bias some class. The work most related to ours is  which proposes a new technique for semi-supervised learning by leveraging SSL techniques to learn representation of unlabeled images. Their work enlarges the generalization of semi-supervised learning methods. In this work, we exploit effective SSL to learn discriminative motion representation for semi-supervised 3D action recognition. Moreover, we further propose a novel adversarial regularization to couple SSL into the semi-supervised algorithm.
Self-supervised learning for action recognition aims to learn motion representations from the unlabeled data by solving the pretext tasks. Recently, a stream of studies [33, 23, 8, 17, 1, 43] design various temporal-related tasks to learn the temporal pattern from the unlabeled RGB videos. For example, a sequence sorting task is introduced in . [21, 40] propose to learn the video representation by predicting motion flows. Note that, these methods are for learning representations from RGB videos and not applicable to long-term skeleton sequences. For 3D action recognition, Zheng et al.  propose a conditional skeleton inpainting architecture to learn the long-term dynamics from unlabeled skeleton data. However, this SSL ignores the shared information among samples with the same action class and therefore may yield less discriminative feature representations. Hence, we propose an effective self-supervised strategy to learn discriminative representation that is beneficial for semi-supervised 3D action recognition.
Instead of relying on massive labels in existing methods, we use only a few labeling data in semi-supervised 3D action recognition. Formally, let be the training set. The training samples are skeleton sequences with frames, and . At each time , the
is a set of 3D coordinates of body joints, which can be obtained by the Microsoft Kinect and the advanced human pose estimation algorithms[2, 46]. In contrast to supervised 3D action classification, training samples are split to two subsets in our task here: a labeled training set denoted as and an unlabeled training set denoted as . The training samples have annotated labels with , where is a discrete label set for action classes. The training samples are unlabeled. Usually, is smaller than ().
Inspired by L , we propose an Adversarial Self-Supervised Learning framework to learn discriminative motion representations from and . It couples self-supervised techniques into the semi-supervised scheme via adversarial learning and neighbor relation exploration. Detailed descriptions of ASSL are described in the following subsections.
Semi-supervised 3D action recognition aims to learn discriminative motion representation from massive unlabeled sequences. However, this is difficult over succinct 3D human poses. To tackle this challenge, we propose an effective SSL strategy, neighborhood consistency, that enhances the underlying class semantics of motion representation by exploring data relations within the neighborhoods, so as to improve recognition performance.
As shown in Fig. 2, we first employ skeleton inpainting  to learn temporal information for each unlabeled sequence. Specifically, an encoder network takes an input skeleton sequence from training set
and produces a vector as the temporal features. Conditioned on the learned representation , a decoder network aims to fill the masked regions in the input sequence. Due to the difference between the action classification (discrimination) and skeleton inpainting (regression) tasks, we use a translation layer i.e., a linear layer, to bridge the gap between the feature spaces of both tasks. The output of linear layer is denoted as for the sample . Then, in this feature space, we employ K-nearest neighbor  to select nearest neighbors from unlabeled training set . The neighbor set of is denoted as
. A message aggregation module is proposed to produce the local center vector. We use a multilayer perceptron to assign a weight for each neighbor sample, which evaluates their similarities as the anchor. The weightsare computed as follows:
where is the translated feature of neighbor sample , denotes the multilayer perceptron in message aggregation module. According to the computed weights , the local class center can be aggregated with the neighbor set as follows:
Considering the high compactness and class consistency within neighborhoods, we require that the samples within neighborhoods achieve a similar prediction with the local center . However, for a sample , its neighbor samples either share the class label (positive) with or not (negative). To minimize the impact of negative neighbors, we introduce a simple selecting criterion: we get the 1-nearest labeled neighbor from the labeled training set for the anchor and the neighbor . If the labeled neighbors of the anchor and the neighbor have the same label, is regarded as the positive neighbor. The set of selected positive neighbor for sample is denoted as . Finally, the loss of consistency regularization within neighborhood is defined as follows:
is the classifier that outputs the predictions,
denotes Kullback-Leibler divergence.
Like consistency regularization for unlabeled samples , the neighbor sets of labeled examples are also selected from the unlabeled set . which are denoted as . Similarly, we use the feature of as the anchor to estimate its local center representation with its neighbors set as the Eqn. (1)-(2) (shown in Fig. 2). Under the assumption that the anchor shares the same class semantic with the local center, we use a cross-entropy loss for the center :
where is the class label of .
Overall, the optimization objectives of unlabeled samples can be formulated as follows:
where denotes the skeleton inpainting loss that is the distance between the inpainted sequence and the original input sequence. Minimizing this optimization objective encourages the model to enhance the underlying class concept of the self-supervised motion representation and yield discriminative feature representations.
According to the training of existing semi-supervised learning methods, the labeled and unlabeled samples are enforced with supervised and SSL objectives, respectively. In this work, Eqn. (5) is used for the unlabeled samples. Although our proposed SSL technique is quite effective for semi-supervised 3D action recognition, we identify that the representations learned with supervised and SSL task are misaligned. As shown in the Fig. 3, with the benefit of SSL technique, the features of Sup. + Sel. present a more compact distribution than Sup.. However, in contrast to the intra-class compactness of labeled data (the squares with black border), there are scattering distributions for the unlabeled data in Fig. 3(b). Thus, although both sequences are sampled from the same data distribution, their feature distributions are misaligned due to different optimization objectives. To tackle this problem, we propose a novel adversarial training strategy to couple SSL method with the semi-supervised 3D action recognition. Specifically, a discriminator is trained to distinguish the unlabeled features from the labeled features. And the model is trained simultaneously to confuse the discriminator . Hence, the adversarial loss is defined as follows:
The adversarial regularization allows the model to align the feature distributions of labeled and unlabeled data. Therefore, like the labeled data, the feature distribution of unlabeled data becomes more intra-class compactness, which boosts the capability of generalization to unseen samples. More analyses about adversarial regularization are reported in Section 4.3.
Unlike the existing 3D action recognition method [7, 47, 18, 12, 44, 29, 30] learning the discriminative features through the designed effective networks, the goal of this work is to explore effective semi-supervised scheme for 3D action recognition. Therefore, this work adopts a universal architecture. In order to effectively capture the motion dynamics, we use three bidirectional GRU layers to encode the input skeleton sequence in the . The decoder consists of two unidirectional GRU layers. We use 4 linear layers and 3 linear layers in the discriminator and the multilayer perceptron of message aggregation, respectively. The classifier is a two-layer perceptron.
During training, our ASSL network is learned by minimizing the following loss on the training data:
where is a cross-entropy loss of all labeled examples in , and are non-negative scalar weights. Note that, we always sample the same number labeled and unlabeled samples in mini-bathes.
In this section, we evaluate and compare our work with previous semi-supervised methods and also conduct detailed component analysis.
NTU RGB+D dataset  contains 56,880 samples covering 60 different classes of human actions performed by 40 distinct subjects. These videos are collected with three cameras simultaneously in different horizontal views. Two evaluation protocols are provided: Cross-Subject (CS) and Cross-View (CV). For CS protocol, skeleton sequences performed by 20 subjects are used for training, and the rest for testing. For CV protocol, all videos from Camera 2 and 3 are used for training while those from Camera 1 are used for testing. For semi-supervised 3D action recognition, 5%, 10%, 20% and 40% of training sequences of each class are labeled on the training set.
Northwestern-UCLA dataset  has 1,494 samples performed by 10 different subjects belonging to 10 action classes. Each action sample is captured by three Kinect cameras simultaneously from a variety of viewpoints. Its training set consists of samples from the first two cameras and the rest from the third camera form the testing set. For semi-supervised 3D action recognition, we use 5%, 15%, 30% and 40% labels of training sequences of each class on the training set.
There is no available semi-supervised baseline for 3D action recognition, so we use following methods as baselines that achieve state-of-the-art performances in the RGB domain:
Supervised-only (Sup.), training with labeled skeleton sequences only.
Pseudo labels , leveraging the idea that the predicted labels of unlabeled samples are used for training. First, train a model with the labeled data, then predict the classes of unlabeled samples. These pseudo labels are used to retrain the network in a supervised fashion with labeled and unlabeled data simultaneously.
Virtual Adversarial Training (VAT) , training with unlabeled data to make the model robust around input data point against local perturbation. It generates small adversarial perturbations for unlabeled samples, which greatly alter the output distribution; then consistency loss is applied over unlabeled training data to encourage consistency of predictions for input data and its adversarially perturbed version.
Conditional Entropy Minimization (EntMin) , minimizing the entropy of prediction over unlabeled training data as a regularization for model training. Predicted class probabilities are encouraged to be near a one-hot vector via training with unlabeled data.
All comparisons with semi-supervised baselines are made under the same setting to be fair. In all experiments, the dimension of hidden states in the GRU and bidirectional GRU is set to 512. On both datasets, we randomly sample frames from each skeleton sequence as input during training and testing. We train all networks by the ADAM optimizer 
. The learning rate, initiated with 0.0005, is reduced by multiplying it by 0.5 every 30 epochs. We setand in Eqn. (7
). Our experiments are all implemented with PyTorch and 1 Titan Xp GPU.
|CS (33 v./c. )||CV (31 v./c.)||CS (66 v./c.)||CV (62 v./c.)||CS (132 v./c.)||CV (124 v./c.)||CS (264 v./c.)||CV (248 v./c.)|
|VAT + EntMin ||51.7||58.3||61.4||67.5||65.9||73.3||70.8||78.9|
|L (Inpainting) ||48.4||55.1||58.1||63.6||63.1||71.1||68.2||76.9|
As seen from tables, with the proposed ASSL network, we establish new state-of-the-art performances of semi-supervised 3D action recognition. To be specific, L (Inpainting) performs worse than Pseudolabels, VAT and VAT + EntMin, suggesting it is inefficient to learn discriminative representation via skeleton inpainting and thus semi-supervised 3D action recognition has derived little benefit from self-supervised representations. L (Inpainting), though a advanced semi-supervised approach, requires an effective self-supervised representations that are difficult to learn in this task. Compared with these semi-supervised methods, our benefit is larger when the number of labels is reduced. For example, with 5% labels of training set on NTU dataset, the results of our ASSL present greater improvement compared with VAT + EntMin. This clearly demonstrates the power of the proposed ASSL.
|Method||5% (5 v./c.)||15% (15 v./c.)||30% (30 v./c.)||40% (40 v./c.)|
|VAT + EntMin ||46.8||66.2||75.4||75.6|
|L (Inpainting) ||35.3||46.6||54.5||60.6|
We then investigate effectiveness of the neighborhood consistency and adversarial training in our proposed ASSL on NTU and N-UCLA datasets. We also analyze effects of different neighborhood sizes and Neighborhood quality.
We evaluate the effects of the proposed self-supervised strategy, neighborhood consistency, upon the discriminativeness of motion representations that is shown in final performance of semi-supervised 3D action recognition. In Table 3, the model Sup. + Inp. is trained with a cross-entropy loss for labeled data and a self-inpainting loss for unlabeled data. Instead of self-inpainting loss, Sup. + Nei. explores the data relations within neighborhoods by enforcing the consistency regularization (Eqn. (3), (4)) for unlabeled data. We can see that Sup. + Nei. significantly outperforms the Sup. + Inp.. The comparison results justify that our neighborhood consistency can learn more discriminative motion representations that are more beneficial for semi-supervised 3D action recognition.
Moreover, the self-inpainting constraint  aims at learning temporal information of each individual unlabeled sequence. The goal of our neighborhood consistency regularization is to explore inter-sample relations within neighborhoods. We jointly learn the two features in Sup. + Inp. + Nei.. It can be seen compared with Sup. + Inp. and Sup. + Nei., Sup. + Inp. + Nei. achieves better performance on both datasets for semi-supervised 3D action recognition. This illustrates that the representations learned by our neighborhood consistency are complementary to those learned with self-inpainting. Therefore, the benefits of combining these two SSL techniques to capture discriminative representation from unlabeled sequences in our final model are verified (seen Eqn. (5)).
|Methods||NTU 5%||N-UCLA 15%|
|CS (33 v./c.)||CV (31 v./c.)||(15 v./c.)|
|Sup. + Inp.||48.4||55.1||46.6|
|Sup. + Nei.||52.1||57.8||60.0|
|Sup. + Inp. + Nei.||55.2||61.1||66.4|
We assume that the larger neighborhood size imposes stronger regularization and gives better performance. In order to justify this hypothesis, we investigate the effects of different neighborhood sizes in Fig. 5. As neighborhood size increases, the performance is improved and then becomes saturated. This implies that more discriminative representations can be learned with a larger size. But, if using too large a size, the model will cover distant data points that have weak semantic consistency within the neighborhood,and hence the performance becomes saturated.
We further examine effects of the class consistency of anchor Neighborhood, i.e., Neighborhood quality. In Fig. 5, we report the progress of the ratio of neighbor samples sharing the same action label as the anchor throughout training. We can observe the ratio of class consistent neighborhoods increases, and then becomes saturated. This indicates exploring data relations is helpful to inferring underlying class semantics, thus facilitating the clustering of samples with the same action labels.
|Methods||NTU 5%||N-UCLA 15%|
|CS (33 v./c.)||CV (31 v./c.)||(15 v./c.)|
Sup. + Inp.
|Sup. + Nei.||w/o adv||52.1||57.8||60.0|
|(Sup. + Inp. + Nei.)||w/ adv||57.3||63.6||74.8|
The adversarial alignment is proposed to mitigate the gap between representations learned from supervised and self-supervised tasks. To evaluate effectiveness of adversarial training for coupling self-supervision methods with the semi-supervised 3D action recognition, we train several self-supervised models with or without adversarial regularization. The results are reported in Table 4. It is obvious that all models with adversarial regularization achieve better performances than those without. For example, on N-UCLA dataset, the result of ASSL w/ adv is 74.8%, outperforming ASSL w/o adv by 8.4%. The improved performance in Table 4 demonstrates that it is an effective strategy to couple self-supervision with semi-supervised algorithms by adversarial training.
To further explore this scheme, we visualize the feature distributions of Sup., ASSL w/o adv and ASSL w/ adv by using t-SNE  in Fig. 6. For the model Sup. trained with only supervised objective on labeled data, the decision boundaries of its feature distributions are very ambiguous. The model ASSL w/o adv is trained with supervised and self-supervised objectives for labeled and unlabeled data, respectively. Compared with Sup., the features of ASSL w/o adv present tighter distributions, which benefit from self-supervised learning. But, long-tail distributions still exist for unlabeled samples (circles). Fig. 6(c) and 6(f) show clearly the alignment between feature distributions of labeled and unlabeled data for ASSL w/ adv, i.e., the proposed ASSL. Overall, the comparison results prove the effectiveness of adversarial training for coupling self-supervision with semi-supervised action recognition. And this drives our model to learn more discriminative features that have desired intra-class compactness and inter-class separability.
In this paper, we consider the semi-supervised learning scheme for 3D action recognition task. The proposed ASSL effectively couples SSL into semi-supervised algorithm via neighbor relation exploration and adversarial learning. Exploring data relations with neighborhood consistency regularization encourages the model to learn discriminative motion representations that significantly improve the performance of this task. Moreover, we introduce a novel adversarial regularization to couple SSL method into a semi-supervised algorithm. This allows the model to align the feature distributions of labeled and unlabeled samples and boosts the capability of generalization to unseen samples. Our experiments verify that the proposed neighbor relation exploration and adversarial learning are strongly beneficial for semi-supervised 3D action recognition. With the proposed ASSL network, we establish news state-of-the-art performances of semi-supervised 3D action recognition.
This work is jointly supported by National Key Research and Development Program of China (2016YFB1001000), National Natural Science Foundation of China (61420106015, 61976214, 61721004), Shandong Provincial Key Research and Development Program (Major Scientific and Technological Innovation Project) (NO.2019JZZY010119). Jiashi Feng was partially supported by MOE Tier 2 MOE2017-T2-2-151, NUS_ECRA_FY17_P08, AISG-100E-2019-035. Chenyang Si was partially supported by the program of China Scholarships Council (No.201904910608). We thank Jianfeng Zhang for his helpful comments.
Improving spatiotemporal self-supervision by deep reinforcement learning. In ECCV, Cited by: §2.3.
Realtime multi-person 2d pose estimation using part affinity fields. In CVPR, Cited by: §3.1.
Self-supervised video representation learning with odd-one-out networks. In CVPR, Cited by: §2.3.
Unsupervised domain adaptation by backpropagation. In ICML, Cited by: §1.
Journal of machine learning research. Cited by: §4.3.