| Literature DB >> 32240426 |
Lei Chen1, Rui Liu2, Dongsheng Zhou1, Xin Yang3, Qiang Zhang1,3.
Abstract
With the rapid development of deep learning technology, behavior recognition based on video streams has made great progress in recent years. However, there are also some problems that must be solved: (1) In order to improve behavior recognition performance, the models have tended to become deeper, wider, and more complex. However, some new problems have been introduced also, such as that their real-time performance decreases; (2) Some actions in existing datasets are so similar that they are difficult to distinguish. To solve these problems, the ResNet34-3DRes18 model, which is a lightweight and efficient two-dimensional (2D) and three-dimensional (3D) fused model, is constructed in this study. The model used 2D convolutional neural network (2DCNN) to obtain the feature maps of input images and 3D convolutional neural network (3DCNN) to process the temporal relationships between frames, which made the model not only make use of 3DCNN's advantages on video temporal modeling but reduced model complexity. Compared with state-of-the-art models, this method has shown excellent performance at a faster speed. Furthermore, to distinguish between similar motions in the datasets, an attention gate mechanism is added, and a Res34-SE-IM-Net attention recognition model is constructed. The Res34-SE-IM-Net achieved 71.85%, 92.196%, and 36.5% top-1 accuracy (The predicting label obtained from model is the largest one in the output probability vector. If the label is the same as the target label of the motion, the classification is correct.) respectively on the test sets of the HMDB51, UCF101, and Something-Something v1 datasets.Entities:
Keywords: Action recognition; Attention mechanism; Res34-SE-IM-net; ResNet34-3DRes18
Year: 2020 PMID: 32240426 PMCID: PMC7099545 DOI: 10.1186/s42492-020-00045-x
Source DB: PubMed Journal: Vis Comput Ind Biomed Art ISSN: 2524-4442
Fig. 1Some actions easily confused with each other in datasets
Fig. 2A architecture of ResNet34-3DRes18 network. The N frames images are obtained by the sparse sampling strategy. Then these images are processed by ResNet34 network to get their Feature map. The Feature map are stacked to obtain a temporal feature map, named Temporal FM. The Temporal FM is processed by 3DRes18 network to get the final action recognition result
Fig. 3A architecture of Res34-SE-IM-Net network
Fig. 4SE Module. (a) BasicBlock; (b) SE Module; (c) SE-IM-BasicBlock
Network architecture of ResNet34 and 3D Res18
| ResNet34 | 3D Res18 | ||||
|---|---|---|---|---|---|
| Layer name | Output size | The architecture of ResNet34 | Layer name | Output size | The architecture of 3D Res18 |
| Conv1 | 112 × 112 | [2D conv7 × 7 64] | Conv1 | 7 × 7 × 128 | {3Dconv3 × 3 × 3128 3Dconv3 × 3 × 3128} × 2 |
| pool | 56 × 56 | [max pool 3 × 3] | Conv2 | 7 × 7 × 256 | {3Dconv3 × 3 × 3256 3Dconv3 × 3 × 3256} × 2 |
| Layer1 | 56 × 56 | {2D conv3 × 3 64 2D conv3 × 3 64} × 3 | Conv3 | 7 × 7 × 512 | {3Dconv3 × 3 × 3512 3Dconv3 × 3 × 3512} × 2 |
| Layer2 | 28 × 28 | {2D conv3 × 3128 2D conv3 × 3128} × 4 | Pooling | 1 × 1 × 512 | [Avgpool3D 1 × 7 × 7] |
| Layer3 | 14 × 14 | {2D conv3 × 3256 2D conv3 × 3256} × 6 | Dropout | 1 × 8192 | Dropout ( |
| Layer4 | 7 × 7 | {2D conv3 × 3512 2D conv3 × 3512} × 3 | – | 1 × classes | FC, softmax |
Details of HMDB51, UCF101 and Something-Something v1 datasets
| Dataset name | Classes | Total clips | Clips/class |
|---|---|---|---|
| HMDB51 | 51 | 6766 | 102 (min) |
| UCF101 | 101 | 13,320 | 101 (min) |
| Something-Something v1 | 174 | 108,499 | 77–986 |
The critical hyper-parameters of the experiment
| Num-segments (N) | 16 | Dropout | 0.5 |
|---|---|---|---|
| Batch-size | 16 | clip-gradient | 50 |
| Lr | 0.001 | Momentum | 0.9 |
| Weight-decay | 5e-4 | Num-saturate | 5 |
Comparison of recognition accuracy with state-of-the-art methods on HMDB51 and UCF101 datasets
| Methods | Input modality | Pre_training | HMDB51 (%) | UCF101 (%) |
|---|---|---|---|---|
| HOG/HOF [ | RGB | – | 20.44 | – |
| IDT [ | RGB | – | 57.2 | 85.9 |
| MIFS [ | RGB | – | 65.1 | 89.1 |
| ECO-Lite (16 frames) [ | RGB | Kinetics | 68.2 | 91.6 |
| ECO (16 frames) [ | RGB | Kinetics | 68.5 | 92.8 |
| ResNext-101 [19] | RGB | Kinetics | 63.8 | 90.7 |
| Res3D [ | RGB | Sports-1 M | 54.9 | 85.8 |
| I3D [ | RGB | Kinetics | 74.5 | 95.4 |
| ResNet101 [ | RGB | Kinetics | 61.7 | 88.9 |
| DTTP (split 1) [ | RGB | ImageNet | 61.5 | 89.7 |
| RSN [ | RGB | – | 55.9 | 87.5 |
| Two-stream (fusion by SVM) [ | RGB, Optical flow | ILSVRC | 59.4 | 88.0 |
| VGG16 + TSN [ | RGB,Optical flow | ImageNet | 67.3 | 92.1 |
| ResNet34-3DRes18 (16 frames) | RGB | Kinetics | 70.997 | 92.143 |
| Res34-SE-IM-Net (16 frames) | RGB | Kinetics | 71.85 | 92.196 |
Comparison of recognition accuracy with state-of-the-art methods on Something-Something v1 dataset
| Methods | Input modality | Pre_training | Top-1 val (%) | TOP-1test (%) |
|---|---|---|---|---|
| TSN by ref. [ | RGB | ImageNet | 18.48 | – |
| MultiScale TRN [ | RGB | ImageNet | 34.44 | 33.6 |
| ECO (16 frames) [ | RGB | ImageNet | 41.4 | – |
| TRN (ResNet-50) by ref. [ | RGB | ImageNet | 38.9 | – |
| ResNet34-3DRes18 (16 frames) | RGB | Kinetics | 41.012 | – |
| Res34-SE-IM-Net (16 frames) | RGB | Kinetics | 41.398 | 36.5 |
Comparison of the complexity and accuracy between our methods and state-of-the-art methods on the HMDB51 and UCF101 datasets
| Methods | FLOPs | Param | Depth | VPS | HMDB51 (%) | UCF101 (%) |
|---|---|---|---|---|---|---|
| I3D(RGB) [ | 139.39G | 12.7 M | 72 | 0.5 | 74.5 | 95.4 |
| ResNext-101 [19] | 192.31G | 60.63 M | 101 | – | 63.8 | 90.7 |
| ResNet-101 [19] | 277.23G | 86.92 M | 101 | – | 61.7 | 88.9 |
| ResNet34-3DRes18 (16 frames) | 85.57G | 55.78 M | 48 | 20.2 | 70.997 | 92.143 |
| Res34-SE-IM-Net (16 frames) | 85.6G | 60.2 M | 48 | 18.8 | 71.85 | 92.196 |
Comparison of recognition accuracy between ResNet34-3DRes18 and Res34-SE-IM-Net on HMDB51, UCF101 and Something-Something v1 datasets
| Dataset | Methods | Top-1 (%) | Top-5 (%) |
|---|---|---|---|
| HMDB51(test set) | ResNet34-3DRes18 | 70.997 | 90.748 |
| Res34-SE-IM-Net | 71.85 (+ 0.853) | 91.535 (+ 0.787) | |
| UCF101(test set) | ResNet34-3DRes18 | 92.143 | 99.392 |
| Res34-SE-IM-Net | 92.196 (+ 0.053) | 98.862 | |
Something-Something v1(validation set) | ResNet34-3DRes18 | 41.012 | 72.139 |
| Res34-SE-IM-Net | 41.398 (+ 0.386) | 72.743 (+ 0.604) |
Comparison of the confusion between ResNet34-3DRes18 and Res34-SE-IM-Net
| Confusing actions | ResNet34-3DRes18 (16frames) | Res34-SE-IM-Net (16 frames) |
|---|---|---|
| (flic-flac, cartwheel) | 43% | 30% (−13%) |
| (wave, clap) | 32% | 11% (−21%) |
| (laugh, smile) | 37% | 16% (−21%) |
| (fencing, sword) | 40% | 37% (−3%) |
| (cartwheel, handstand) | 26% | 24% (−2%) |
Fig. 5Results of online recognition of the Res34-SE-IM-Net network