Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2021 Dec 18;21(24):8469. doi: 10.3390/s21248469

Hand Pose Recognition Using Parallel Multi Stream CNN

Iram Noreen 1,*, Muhammad Hamid 2, Uzma Akram 1, Saadia Malik 3, Muhammad Saleem 4
Editor: Petros Daras
PMCID: PMC8708730  PMID: 34960562

Abstract

Recently, several computer applications provided operating mode through pointing fingers, waving hands, and with body movement instead of a mouse, keyboard, audio, or touch input such as sign language recognition, robot control, games, appliances control, and smart surveillance. With the increase of hand-pose-based applications, new challenges in this domain have also emerged. Support vector machines and neural networks have been extensively used in this domain using conventional RGB data, which are not very effective for adequate performance. Recently, depth data have become popular due to better understating of posture attributes. In this study, a multiple parallel stream 2D CNN (two-dimensional convolution neural network) model is proposed to recognize the hand postures. The proposed model comprises multiple steps and layers to detect hand poses from image maps obtained from depth data. The hyper parameters of the proposed model are tuned through experimental analysis. Three publicly available benchmark datasets: Kaggle, First Person, and Dexter, are used independently to train and test the proposed approach. The accuracy of the proposed method is 99.99%, 99.48%, and 98% using the Kaggle hand posture dataset, First Person hand posture dataset, and Dexter dataset, respectively. Further, the results obtained for F1 and AUC scores are also near-optimal. Comparative analysis with state-of-the-art shows that the proposed model outperforms the previous methods.

Keywords: hand posture, classification, deep learning, 2D CNN, multi stream, depth data

1. Introduction

Innovative technology has enabled us to communicate with computers and machines through touchless mechanisms in today’s fast-paced digital world. This mechanism involves postures such as waving hands, pointing fingers, and moving different body parts instead of touching screens, pressing switches, and raising voices [1]. This new paradigm of posture-based communication mechanics has evolved a new era of smart applications and challenges as well. This mechanism uses machine learning, pattern recognition, and computer vision technology. Posture recognition has concerns to the accurate identification of meaningful postures. Further, posture recognition has great significance in human–computer interfacing and intelligent systems. Posture recognition has various applications, e.g., smart surveillance, sign language recognition, human–robot interaction, vision based robotic surgery [2], handicapped medical assistance [3], TV control, gaming, and robot control [4]. The hand pose recognition problem has received the attention of researchers in the field of machine learning and computer vision [5] due to convenience and a wide range of applications. Hand-posture-based interfacing in applications has introduced convenience, flexible products, and efficiency for users to control devices without physical contact [6]. However, being an evolving domain, it confronts many issues and challenges. Traditional hand posture recognition methods began at the beginning of the 1980s [7]. Until recently, most posture recognition approaches were focused mainly on RGB intensity images. The main limitation in such RGB image datasets is that they are highly sensitive to illumination conditions, cluttered backgrounds, camera resolutions, and diverse points of view. This is problematic for segmentation, motion analysis, and detection of points of interest, and can perform well only in limited scenarios.

With the introduction of Kinect in 2010, easily available depth data has improved the domain. Firstly, with recent advances in depth camera technology, depth data can be acquired for much less cost. Secondly, depth data provide better information descriptions for the hand poses. Third, previous approaches are only effective with a limited number of gestures. Most of the work reported in the literature focuses on using conventional machine learning approaches with RGB data and depth data as well.

Recently, deep learning approaches have achieved state-of-art results as compared to conventional handcrafted feature-based techniques; however, they have also not investigated depth data much in comparison to RGB data. In recent years, CNNs have gained popularity and attention. Most of the CNN-based approaches involve 3D data representation of 2D depth images. Depth images are converted into 3D voxels to utilize 3D spatial information followed by an application of a 3D CNN for 3D hand pose classification. The methods using 3D point cloud-based inputs have performed well in capturing the geometric features of depth images; however, they suffer from complex data-conversion phases and also involve heavy parameter management, increasing the time complexity. Three-dimensional CNNs have complex network structure with a larger number of parameters and high computational cost. In the same way when a depth image is mapped to a 3D space, it may cause information loss or add unnecessary information (noise), resulting in errors. Therefore, 3D CNN-based methods not only waste convolution process calculations, but also move the neural network from learning effective features. Additionally, it is reported in the literature that multiple streams are helpful to improve recognition performance [8]. Further, little work is also reported with two-stream CNN using the optical flow method, but use of the optical flow method increases the process complexity [9]. Hand posture recognition remains a challenging problem and needs improvement. In this study, we designed a four-stream 2D CNN (2-dimensional convolutional neural network) to resolve the aforementioned issues. The main contribution of this study can be summarized as follows:

  • The proposed a deep learning model comprises four parallel-stream 2D CNN for recognition of hand postures.

  • The proposed model is lightweight compared to complex 3D CNN, which has a heavy set of parameters. Hyper parameters tuning using experimentation and multiple parallel streams enhance the performance of the proposed model.

  • The proposed model outperforms existing state-of-the-art methods. An accuracy of 99.99%, 99.48%, and 98% is achieved using the Kaggle hand posture dataset, First Person hand posture dataset, and Dexter dataset, respectively.

  • The evaluation of the proposed model on three different benchmark datasets independently makes it more robust and generalized.

The rest of the article is organized as follows. Section 2 describes related work. Section 3 explains the proposed approach. Section 4 presents the experimentation and results in discussion, which is followed by conclusion and potential future research directions in Section 5.

2. Related Work

The research community is active in the domain of hand pose recognition and a number of researchers have addressed this problem. Prominent work in the domain is described in this section. Zhu et al. [1] proposed a method to discuss the problem of HRI (human–robot interaction) and SAIL (smart assisted living) for disabled and elderly people. They used a neural network for posture spotting and HMM for context-based identification of posture. They collected data from the foot and waist joints. Cheng et al. [10] presented a survey on 3D posture estimation and presented a state-of-the-art analysis for 3D hand modeling, hand trajectory, continuous hand postures, and static hand posture estimation.

Plouffee et al. [11] proposed a method for static and dynamic posture recognition. They developed a natural posture UI (user interface) to track real-time hand postures using depth data of the ASL (American Sign Language) data set. They extracted the area of interest of the hand using a segmentation process with the assumption that the user is the closest object or entity in the scene to the camera. They improved scanning time on hand contour. They identified fingerprints using a k-curvature algorithm to recognize a person performing posture using the DTW (dynamic time warping) algorithm. They achieved a recognition rate of 92.5% for fifty-five static and dynamic postures.

Liu et al. [7] proposed a method for 3D posture recognition to accord the skeleton tracking of a person. They collected skeleton data from depth images generated through Kinect. Wu et al. [12] presented a method known as DDNN (deep dynamic neural network) for posture recognition using both depth and RGB data. They used a semi-supervised framework based on HMM for posture segmentation and DBN (deep belief network) to handle skeleton dynamics. Further, they adopted 3D CNN to fuse batches of depth and RGB data. Bao et al. [13] proposed a deep convolutional neural network method to classify postures without segmentation. Their method was able to classify seven types of hand postures in real-time and user-independent ways. Kumar et al. [14] proposed a robust position invariant SLR (sign language recognition) framework to observe occluded sign postures. Nunez et al. [5] used Kinect sensors and HMM to obtain and process skeleton data. They presented a method based on CNN and LSTM (long short-term memory) for posture and human activity recognition. They used 3D sequences of the full-body scan. Saha et al. [15] used an ensemble of tree classifiers with a bagging mechanism for an efficient two-person interaction detection system.

Supancic et al. [16] introduced a novel test set to perform the challenging segmentation of the active hand. Jun et al. [17] presented a vision-based hand posture recognition system to accord high security in an IoT (Internet of Things) application. The system was able to interact with users by recognizing postures in the captured images through a monocular camera installed on a terminal device. The first module of the system used an edge repair-based hand segmentation algorithm and the second module located the user’s position using an adaptive method. Avola et al. [18] used RNN (recurrent neural network) to train angles formed through the bones of fingers. Features were acquired through a LMC (leap motion controller) sensor and were selected based on hand joint movement. They achieved 96% accuracy on the ASL dataset and acquired more than 70% accuracy on the SHREC dataset. Tai et al. [19] proposed a many-to-many LSTM-based scheme for hand posture recognition. They applied maximum posteriori estimation on sensory data received by a gyroscope and also implemented a smartphone application to measure the performance. Mirehi et al. [20] presented a method based on fine-tuned inception V3 for static posture recognition from RGB-D data and obtained nearly 90% accuracy using ASL and NTU hand digit datasets. They also presented the SBU-1 dataset [21] that comprises multiple variations and deformation of hand postures.

Sanchez-Riera et al. [22] presented a method for posture recognition of multiple persons using the ICP (iterative closest point) algorithm. It is a minimization function that is initialized through parameters obtained through a dataset. Pinto et al. [23] used a combination of segmentation, polygonal approximation, contour detection, and morphological filters during preprocessing for better feature extraction followed by a CNN. Zhang et al. [24] proposed a robust feature descriptor based on path signature. They proposed the AOH (attention on hand) principle to identify single joint and pair joint features. They achieved an accuracy of 82% on the NVIDIA hand dataset. Hu et al. [25] presented a hand gesture recognition system using CNN with eight layers to control unmanned aerial vehicles (UAV). They achieved an average accuracy of 96%. However, the model is applicable only for non-scaled datasets. Okan et al. [26] also presented a CNN-based hand gesture recognition approach for video data. They applied a sliding window approach and evaluated the performance efficiency on two public datasets, NVIDIA, and EgoGesture. Their main contribution was to improve memory and computing requirements. Jinxian et al. [27] proposed an approach using PCA and generalized regression neural network (GRNN). They obtained classification results of hand gestures from the model and applied them further to extract human emotions with 95% accuracy. However, their approach was applicable to only nine static human gestures. Chen et al. [28] used CNN to recognize hand gestures through surface electromyography signals (sEMG). However, for classification, they used the traditional machine learning classification model. They trained the model on the Myo dataset and achieved an accuracy of 90%.

Kolivand et al. [29] acquired 96% accuracy on depth data of American Sign Language (ASL) by artificial neural network (ANN) and support vector machine (SVM) using radial basis function (RBF). Their main contribution was to devise a rotation invariant procedure of geometric feature extraction from hands received by depth camera. However, the limitation is that this scheme is manual. Similarly, Kapuściński et al. [30] trained near-neighbor and SVM methods using a static depth dataset of Polish Sign Language (PSL). They proposed a distance-based descriptor to recognize static gesture images. Though their method showed good performance but inherits all the limitations of manual procedure.

Human activities are categorized into group collaborations, interactions, actions, and gestures according to different complexity level. Warchoł et al. [31] proposed a bone pair descriptor and distance descriptor for skeletal data. Their method is beneficial as it is light and position invariant; however it is designed for ‘action’ recognition and not for hand ‘gesture’ recognition. Garcia et al. [32] presented a real-time segmentation method for hand gesture recognition using RGB frames. They demonstrated its performance on the IPN hand dataset comprising thirteen different gestures for touchless screen interaction. Sarma et al. [9] presented 2D CNN and 3D CNN using optical-flow-based motion template. The main issue with recent 2D or 3D approaches based on optical flow modalities is that they are computationally expensive and not suitable for real-time application due to increased complexity and computation cost. Though several researchers have addressed the hand posture recognition problem, very little work is reported using depth data in proportion to RGB data. Moreover, much of the work with depth data is focused either on action recognition or applies traditional machine learning methods, which are constrained to manual or handcrafted feature extraction. Manual procedures are undesirable because they are prone to errors, skill dependent, and time consuming, and involve tedious labor.

3. Proposed Model

Deep learning has gained immense popularity recently due to its ability of auto feature detection and high performance with image/video data. The true potential of deep learning is unleashed when the dataset is large. It is also reported in the literature that the use of multiple different streams can improve the performance in the image recognition accuracy [9]. We used 2D CNN with multiple parallel streams for posture classification. The proposed model was trained and tested using depth data and able to recognize with improved accuracy than state-of-the-art model methods. Description of datasets and the proposed model is provided in the following subsections.

3.1. Data Set Description

Three benchmark public research datasets were adopted to train and test the model. All three are static depth datasets. They are challenging and provide various types of hand gestures. Detail of each dataset is provided in this section.

A hand gesture recognition database was adopted from Kaggle [33], which is a public repository. It offers 10 different classes for hand gesture images for 10 digits (0–9). Each class is a collection of 2000 images representing different digits by hand gestures. Features are collected using LMC (leap motion controller).

The First Person [34] hand dataset consists of 105,469 frames in total with accurate hand pose and action categories, including annotations. This dataset consists of 45 hand action categories recorded in three different scenarios: kitchen, office, and social. This dataset was captured by an Intel RealSense SR300 RGB-D camera with 640 × 480 resolution for depth stream and 1920 × 1080 resolution for color stream [34].

The Dexter dataset [22] consists of seven classes using a multi-camera setup comprising five RGB cameras, one ToF (time-of-flight) camera, and one Kinect camera. RGB images were captured by Sony DFW-V500 cameras, whereas depth images were captured by Creative Interactive Posture cameras as ToF depth data sensors [22].

3.2. Data Preprocessing

The model was trained using the low-cost depth datasets mentioned above, contrary to approaches using RGB images only. To provide better information descriptions for the hand poses, these datasets maintained RGB images by extracting hands from the depth data sample using view and color information associated with depth data. An augmented image data store function with preprocessing operations was used in MATLAB to transform batches of training and testing data. Randomized preprocessing operation was applied to prevent the network from memorizing the training images, hence avoiding overfitting. Then images were resized to 28 × 28 × 1, and color preprocessing function converted the images from RGB to gray. Finally, augmented images from the depth dataset were fed into the model for training. A few samples from each dataset are depicted in Figure 1. Table 1 shows the details of the hand posture datasets.

Figure 1.

Figure 1

A few hand posture samples from selected hand posture datasets, (left) Kaggle Samples [33], (middle) Dexter Samples [22], (right) First Person Samples [34].

Table 1.

Details of hand posture datasets.

Title Total Frames Training Frames Testing Frames Number of Classes Dimension
Kaggle [33] 20,000 13,375 6625 10 320 × 240
First Person [34] 105,469 98,842 6627 45 320 × 240
Dexter [22] 26,000 19,519 6481 7 320 × 240

3.3. Internal Architecture of the Proposed Model

In 2D CNN, the convolutional kernel can process data in two directions, i.e., x and y to compute the convolutional output, which is actually generated in the shape of a 2D matrix. This makes it more suitable for image-based operations. We defined four parallel 2D CNN streams; each one received input samples from the dataset. Each stream followed the 2-D convolution process in parallel. Further, a batch normalization layer was added before pooling layers in order to enable independent learning by each layer in the network. Outputs of previous steps were concatenated and fed to the FC (fully connected) layer. In the end, SoftMax was applied for the final classification.

Our 2D CNN network consists of 21 layers with 23 connections. Layers are arranged in a parallel fashion. There are four convolutional layers and a total of three filters with filter size 5 × 5, keeping stride size ‘1’ with dilation factor ‘1’. The padding style is the same, weight learning rate is 0.001, bias learning rate is 1, and bias initializer is 0. In batch normalization layer configuration, epsilon is 0.00001, offset learn-rate factor is 1, scale learning rate factor is 1, offset is initialized with zeros, and scale initializer consists of ones. In the max-pooling 2D layer, we further used stride size {1} and pool size {5}.

In this model, we used an Adam optimizer to train the model. Moreover, we experimented using different initial learning rates, but our model performed best at 0.001. We tried different mini batch sizes for all three datasets, but we obtained the best results on 50, 100, and 50 mini batch sizes on the Kaggle, Dexter, and First Person datasets respectively. The network is optimized by minimizing the categorical cross-entropy (CCE) loss, defined as

LCCE=iNcC(yi,clog(pi,c)), (1)

where C represents the number of classes, N shows the number of samples in the minibatch, yi,c is 1 if the class c is the ground truth class of the sample I, otherwise it would be 0. Similarly, pi,c shows the predicted class distribution over the C classes for the ith sample.

The number of epochs is 25 for training purposes and each epoch consists of 552 iterations. We achieved the desired results with total of 13,800 iterations. We set the frequency as 30 iterations to validate our model. Figure 2 shows the proposed methodology. Table 2 describes the network parameters, and Table 3 shows the network architecture.

Figure 2.

Figure 2

Proposed methodology.

Table 2.

Details concerning the network parameters.

Network Parameters Values
Total parameters 114,078
Trainable parameters 113,316
Non trainable parameters 762
Learning rate 0.001
Optimizer Adam
Epochs 25
Iteration per epoch 552

Table 3.

Network architecture details.

No Name Type Activations Learnable Total Learnable
1 Image input
28 × 28 × 1 with ‘zerocente…
Image input 28 × 28 × 1 - 0
2 Conv_1
3 5 × 5 × 1 convolutions with stride…
Convolution 28 × 28 × 3 Weights 5 × 5 × 1 × 3
Bias 1 × 1 × 3
78
3 Conv_3
3 5 × 5 × 1 convolutions with stride…
Convolution 28 × 28 × 3 Weights 5 × 5 × 1 × 3
Bias 1 × 1 × 3
78
4 reLu_3
ReLU
ReLU 28 × 28 × 3 - 0
5 batchnorm_3
Batch normalization with 3 chan...
Batch normalization 28 × 28 × 3 Offset 1 × 1 × 3
Scale 1 × 1 × 3
6
6 maxpool_3
5 × 5 max pool with stride [1,1]
Max pooling 28 × 28 × 3 - 0
7 reLu_1
ReLU
ReLU 28 × 28 × 3 - 0
8 batchnorm_1
Batch normalization with 3 chan..
Batch normalization 28 × 28 × 3 Offset 1 × 1 × 3
Scale 1 × 1 × 3
6
9 maxpool_1
5 × 5 max pool with stride [1,1]
Max pooling 28 × 28 × 3 - 0
10 Conv_4
3 5 × 5 × 1 convolutions with stride…
Convolution 28 × 28 × 3 Weights 5 × 5 × 1 × 3
Bias 1 × 1 × 3
78
11 reLu_4, ReLU ReLU 28 × 28 × 3 - 0
12 batchnorm_4
Batch normalization with 3 chan..
Batch normalization 28 × 28 × 3 Offset 1 × 1 × 3
Scale 1 × 1 × 3
6
13 maxpool_4
5 × 5 max pool with stride [1,1]
Max pooling 28 × 28 × 3 - 0
14 Conv_2
3 5 × 5 × 1 convolutions with stride…
Convolution 28 × 28 × 3 Weights 5 × 5 × 1 × 3
Bias 1 × 1 × 3
78
15 reLu_2, ReLU ReLU 28 × 28 × 3 - 0
16 batchnorm_2
Batch normalization with 3 chan…
Batch normalization 28 × 28 × 3 Offset 1 × 1 × 3
Scale 1 × 1 × 3
6
17 maxpool_2
5 × 5 max pool with stride [1,1]
Max pooling 28 × 28 × 3 - 0
18 Depthcat
Depth concatenation of 4 inputs
Depth concatenation 28 × 28 × 12 - 0
19 Fc
12 fully connected layer
Fully connected 1 × 1 × 12 Weights 12 × 9408
Bias 12 × 1
112,908
20 SoftMax SoftMax 1 × 1 × 12 - 0
21 Classoutput
crossentropyex with ‘index-L’…..
Classification output - - 0

3.4. Experimental Setup

The programming language Python 3.7 was used to code the proposed approach. In our model’s experimental configuration, the experiment’s hardware environment was carried out on Intel MATL GPU + MATLAB 2019a. For the experimentation purpose, we used MATLAB GPU-based cloud offered by MathWorks. It enables researchers to train the models on a GeForce GTX 1080 machine without any expense for huge data. The computational power of MATLAB cloud servers enhances performance and saves computation time.

3.5. Training and Testing

We used the K-fold cross-validation strategy for training and validation to avoid overfitting and sampling bias. It also provides the opportunity for each observation to be used once for training as well as for validation. During model training, we performed 25 folds in leave-one-out order to avoid overfitting and to maintain accurate learning experience. Table 1 shows the training frames for each benchmark dataset, which are divided into 25 subsets to perform cross-validation. Average performance scores are used for final results.

3.6. Parameter Tuning for Performance

We compared the performance of the model by experimenting with different values of the optimizer, learning rate, mini batch sizes, number of epochs, number of iterations, and dropout. Table 4 shows the accuracy values of the model using different parameter values selected.

Table 4.

Experimentation results of parameter tuning for the Kaggle hand posture dataset.

Optimizer Adam
Learning Rate 0.01 0.001 0.0001
Batch Size Accuracy% Accuracy% Accuracy%
25 91.57 99.60 98.78
30 92.27 99.99 99.32
60 98.51 99.58 97.74
90 98.43 99.62 98.99

3.6.1. Optimizer

Optimizers are used to tune the parameters of the model and to minimize the overall cost. Optimizers are usually categorized as gradient-descent optimizers and adaptive optimizers. This division is based on operational aspects. Optimizers manually tune the learning rate in the case of the gradient-descent algorithm whereas it automatically adapts in the case of the adaptive algorithm. Initially, we trained our model on both stochastic gradient descent with momentum (SGDM) and the Adam optimizer. We selected an Adam optimizer because our model learned features faster, converged rapidly, and also rectified vanishing learning rate with high variance.

3.6.2. Learning Rate

Learning rate is a hyper parameter that actually defines the adjustment in the weights. It determines how fast or slow the training process moves towards optimal weights. Experimental observations showed that our model extracts features and classifies more accurately at the learning rate of 0.001. At lower values it improved feature learning.

3.6.3. Mini Batch Size

Batch size is referred to as a total number of training samples per batch. It improves the effectiveness of training because the entire dataset cannot be passed to the neural network at once; therefore, a division of the dataset into batches or sets adds value. The amount of data included in each sub-epoch was adjusted through mini batch size. The mini batch size varied from 50 to 100 for different datasets and was adjusted to achieve the best throughput results for each dataset.

3.6.4. Number of Epochs

Epoch is referred to as the complete pass of the entire dataset as forward and backward through the NN (neural network). We need to divide it into several smaller batches, however, because one epoch is too large to feed to the model at once. Using a single epoch can lead to under fitting, however, the higher the number of epochs, the higher the chances of training parameter readjustment, and the learning curve goes from under fitting to optimal and to overfitting. Our model was trained at an equal number of epochs, that is, 25, for all varying datasets to obtain a uniform distribution of trainable assets.

3.6.5. Number of Iterations

Iterations are the number of batches or parts or sets needed to complete one epoch. The number of batches is equaled to the number of iterations for one epoch. In our model, it varied among datasets depending on the number of samples in a dataset.

3.6.6. Dropout

Dropout removes certain neurons from the network. Each neuron in the network has a probability known as the dropout rate. Dropout improves the generalization capabilities of the network. Our model dropout rate was set to 0.5 so that features with a probability of less than 50% would be removed. Only strong features participated in classification.

4. Results and Discussion

The accuracy score is not the true representative of a model’s performance. Therefore, other metrics are also used to evaluate the performance. We calculated sensitivity, specificity, precision, and recall for all three datasets. Moreover, the ROC curve and area under the ROC curve, known as the AUC-score, were also calculated to measure the performance. The ROC curve is a tradeoff between sensitivity and precision and tells us about the true, false positive, and false positive rates. If it is closest to the diagonal, then the curve is not fine. A better output is indicated by classifiers that offer curves closer to the top-left corner. The closest the curve gets to the space of the ROC 45-degree diagonal, the less precise the model is. The performance metrics are defined in Equations (2)–(5). The summary of the performance results as per metrics defined in Equations (2)–(5) are shown in Table 5. The datasets are multiclass, therefore average values for all metrics are calculated using macro averaging, and are provided in Table 5. Figure 3 shows the confusion matrix and class wise detail of Precision, Recall, Accuracy, and F1 score of the proposed model for all three datasets.

Recall=TP(TP+FN) (2)
Precision =TP(TP+FP) (3)
Accuracy=(TP+TN)(TP+TN+FP+FN) (4)
F1=2(Precision  Recall)(Precision+Recall) (5)

Table 5.

Summary of testing results of the proposed methodology with three datasets.

Dataset Accuracy Precision Recall F1 AUC Mean Error
Kaggle [33] 99.99% 1 0.99 1 0.9992 0.01
Dexter [22] 99.48% 1 1 1 1 0.52
First Person [34] 98% 0.93 0.92 0.92 0.9900 2.31

Figure 3.

Figure 3

Figure 3

Confusion matrices of the performance results by the proposed model by using (a) Kaggle, (b) Dexter, and (c) First Person datasets.

The Kaggle hand posture dataset [33] contains 20 k frames in total; 13,375 frames for training and 6625 for testing are used. There are a total of 10 classes in the Kaggle hand posture dataset. Leap motion sensor was used to capture the dataset. In our model, we used an Adam optimizer with a starting learning rate of 0.001. Mini batch size in our model was set to 50 for the Kaggle dataset. A total of 25 epochs were used in our model, while 13,800 iterations were done in the proposed methodology. In our model, we used a total of 21 hidden layers and 23 connections. We used an image from the Kaggle dataset with the size 28 × 28 × 1 as an input to the model. We used a total of five 2D convolutional layers, five ReLU activation layers, five batch normalization layers, five max pooling layers, a fully connected layer, and a SoftMax activation function for posture classification. The proposed model achieved 99.99% accuracy using the Kaggle hand posture dataset. The calculated error rate for the Kaggle dataset was 0.01. The confusion matrix for the Kaggle dataset is shown in Figure 3a. The confusion matrix of 2D CNN architecture for Kaggle shows class wise true positive, false positive, true negative, and false negative information. Other useful metric results such as precision, recall, F1, and accuracy are also shown in Figure 3a. The ROC curve for the Kaggle dataset is shown in Figure 4. It shows true positive rate and false positive rate of the proposed model with a 1 and 0, respectively.

Figure 4.

Figure 4

Macro average ROC curve and AUC score by the proposed approach using the Kaggle dataset.

The Dexter hand dataset [22] contains 26k frames; 19,519 frames were used for training and 6481 frames were used for testing. The Dexter dataset consists of a total of seven classes. A Kinect sensor was used to capture the depth dataset, using five RGB cameras and one ToF camera. In our model, we used an Adam optimizer with a starting learning rate of 0.001. Mini batch size for the Dexter dataset was set to 100. A total of 25 epochs and 3090 iterations were used in our model. In our model, we used a total of 21 hidden layers and 23 connections. We used an image from the Dexter dataset with the size 28 × 28 × 1 as an input to the model. Using 2D CNN, we obtained a training accuracy of 99.91% and validation accuracy of 99.48% for the Dexter dataset. We calculated the error rate in the results obtained for the Dexter dataset, which was 0.52.

The confusion matrix of 2D CNN architecture for the Dexter dataset shows class wise true positive, false positive, true negative, and false negative information. Other useful metric results such as precision, recall, F1, and accuracy are also shown in Figure 3b. The ROC curve for the Dexter dataset is shown in Figure 5. It shows the true positive rate and false positive rate of the proposed methodology with a 1 and 0, respectively.

Figure 5.

Figure 5

Macro average ROC curve and AUC score by the proposed approach using the Dexter dataset.

The First Person dataset [34] contains 105,469 frames in total, in which 98,842 frames are used for training and 6627 frames are used for testing. The First Person dataset consists of nine classes. Kinect sensor was used to capture the depth dataset. This dataset consists of 45 daily hand action categories. In our model, we used an Adam optimizer with a starting learning rate 0.001 and a mini batch size of 50 for First Person. A total of 25 epochs and 7550 iterations were used in our model. In our model, we used a total of 21 hidden layers and 23 connections. We used an image from the Dexter dataset with the size 28 × 28 × 1 as an input to the model. Using 2D CNN we obtained a validation accuracy of 98%. We calculated the error rate of the First Person dataset, which was 2.31.

The confusion matrix of 2D CNN architecture for the Dexter dataset shows class wise true positive, false positive, true negative, and false negative information. Other useful metric results such as precision, recall, F1, and accuracy are also shown in Figure 3c. The ROC curve for the First Person dataset is shown in Figure 6. A training and validation accuracy-and-loss plot is shown in Figure 7 for the Kaggle dataset. It is evident from the plot that validation loss was minimal and there was not much gap between training and validation accuracies.

Figure 6.

Figure 6

Macro average ROC curve and AUC score by the proposed approach using the First Person dataset.

Figure 7.

Figure 7

Plot of accuracy and loss for validation.

The results of the fine-tuned model are summarized and compared with state-of-the-art technique in Table 6. Sanchez-Riera et al. [22] attained 87% accuracy using CNN on the Dexter dataset. Garcia-Hernando et al. [34] attained 80% and 87% accuracy using Transition Forest and LSTM methods, respectively, for the First Person dataset. Tekin et al. [35] attained 88% accuracy using a hybrid approach of LSTM + MLP on the First Person dataset. Gadekallu et al. [36] attained 100% accuracy using CNN on the Kaggle hand posture dataset. Another recent two-stream 2D CNN-based approach by Sarma et al. [9] used an optical flow template scheme for static and dynamic hand gestures. In contrast, our proposed approach used four parallel streams for static datasets. Use of an optical flow scheme for a static dataset increases the computational cost and makes the process heavyweight. It is beneficial for a dynamic moving-hand scenario. Therefore, our approach avoids complexities of optical flow and is a lightweight method.

Table 6.

Comparison of the proposed model with state-of-art technique for all datasets.

Dataset Previous Approaches Proposed Approach
Year Reference Technique Accuracy
Dexter [22] 2018 Sanchez-Riera et al. [22] CNN 87% 99.48%
First Person [34] 2017 Garcia-Hernando et al. [34] TF
LSTM
80.69%
87.45%
98%
2019 Tekin et al. [35] LSTM + MLP 88.47%
Kaggle [33] 2021 Gadekallu et al. [36] CNN 100% 99.99%

It is evident from the performance results that the proposed model outperformed the previous approaches. Moreover, it is also more generalized and robust than previous approaches. It was evaluated independently on three benchmark datasets. Hence, it is capable of recognizing a larger number of gestures than previous approaches.

5. Conclusions and Future Work

Hand posture recognition has received remarkable attention in recent years and plays a vital role in many fields such as robotics, gaming, surveillance, and HCI. Hand posture recognition using RGB intensity images has challenges due to lighting conditions and background clutter. However, depth image data have added value in the domain for better identification of postures than color images. In this study, 2D CNN with multiple parallel streams is used for posture identification using benchmark Kaggle, Dexter, and First Person datasets. Testing accuracy of the proposed method using the Kaggle dataset is 99.99%, using the Dexter dataset is 99.48%, and using the First Person dataset is 98%. Moreover, other evaluation matrices such as precision, recall, F1 score, AUC score, and root mean square error are also applied to measure performance. Comparison with other state-of-art approaches shows that our model has improved performance and is sufficiently robust. The future work plan is to extend the proposed approach as a multiple stream 3D CNN, and conduct ablation studies between 2D and 3D network behavior. Another future direction is to train the proposed model using hand gesture dataset of emergency/crisis vocabulary to develop an assistive application. Another future direction could be the hand posture estimation, which is the next level after gesture recognition. It requires a skeletal joint mapping process and identification of mean distance error for joint identification. Light, position, and rotation invariance capacity building is an open challenge to address by the community in this domain. Research in this direction will open new horizons of research and development due to the increased use of smart devices in the near future.

Author Contributions

Conceptualization, I.N.; data curation, I.N. and U.A.; literature review, I.N. and M.H.; formal analysis, I.N.; investigation, I.N., M.H., M.S. and S.M.; methodology, I.N.; software, I.N. and U.A.; writing—original draft preparation, I.N.; writing—review and editing, I.N. and M.H.; project administration, I.N., M.S. and S.M.; resources, I.N., M.H., M.S. and S.M.; funding acquisition, S.M. and M.S.; supervision, I.N.; validation, I.N. and M.H.; visualization, I.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not Applicable.

Data Availability Statement

Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

Footnotes

Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Zhu C., Sheng W. Wearable sensor-based hand gesture and daily activity recognition for robot-assisted living. IEEE Trans. Syst. Man Cybern. Part A Syst. Hum. 2011;41:569–573. doi: 10.1109/TSMCA.2010.2093883. [DOI] [Google Scholar]
  • 2.Su H., Ovur S.E., Zhou X., Qi W., Ferrigno G., De Momi E. Depth vision guided hand gesture recognition using electromyographic signals. Adv. Robot. 2020;34:985–997. doi: 10.1080/01691864.2020.1713886. [DOI] [Google Scholar]
  • 3.Van Amsterdam B., Clarkson M.J., Stoyanov D. Gesture Recognition in Robotic Surgery: A Review. IEEE Trans. Biomed. Eng. 2021;68:2021–2035. doi: 10.1109/TBME.2021.3054828. [DOI] [PubMed] [Google Scholar]
  • 4.Danafar S., Gheissari N. Lecture Notes in Computer Science. Volume 4844. Springer; Berlin/Heidelberg, Germany: 2007. Action recognition for surveillance applications using optic flow and SVM; pp. 457–466. [Google Scholar]
  • 5.Núñez J.C., Cabido R., Pantrigo J.J., Montemayor A.S., Vélez J.F. Convolutional Neural Networks and Long Short-Term Memory for skeleton-based human activity and hand gesture recognition. Pattern Recognit. 2018;76:80–94. doi: 10.1016/j.patcog.2017.10.033. [DOI] [Google Scholar]
  • 6.Zhang Z., Tian Z., Zhou M. Latern: Dynamic Continuous Hand Gesture Recognition Using FMCW Radar Sensor. IEEE Sens. J. 2018;18:3278–3289. doi: 10.1109/JSEN.2018.2808688. [DOI] [Google Scholar]
  • 7.Liu Y., Dong M., Bi S., Gao D., Jing Y., Li L. Gesture recognition based on Kinect; Proceedings of the 6th Annual IEEE International Conference on Cyber Technology in Automation, Control and Intelligent Systems, IEEE-CYBER 2016; Chengdu, China. 19–22 June 2016; pp. 343–347. [Google Scholar]
  • 8.Karpathy A., Toderici G., Shetty S., Leung T., Sukthankar R., Li F.-F. Large-scale video classification with convolutional Networks; Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; Columbus, OH, USA. 23–28 June 2014; pp. 1725–1732. [Google Scholar]
  • 9.Sarma D., Kavyasree V., Bhuyan M.K. Two-stream fusion model for dynamic hand gesture recognition using 3d-cnn and 2d-cnn optical flow guided motion template. arXiv. 2020 doi: 10.1007/s11334-022-00477-z.2007.08847 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Cheng H., Yang L., Liu Z. Survey on 3D Hand Gesture Recognition. IEEE Trans. Circuits Syst. Video Technol. 2016;26:1659–1673. doi: 10.1109/TCSVT.2015.2469551. [DOI] [Google Scholar]
  • 11.Plouffe G., Cretu A.M. Static and dynamic hand gesture recognition in depth data using dynamic time warping. IEEE Trans. Instrum. Meas. 2016;65:305–316. doi: 10.1109/TIM.2015.2498560. [DOI] [Google Scholar]
  • 12.Wu D., Pigou L., Kindermans P.J., Le N.D.H., Shao L., Dambre J., Odobez J.M. Deep Dynamic Neural Networks for Multimodal Gesture Segmentation and Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2016;38:1583–1597. doi: 10.1109/TPAMI.2016.2537340. [DOI] [PubMed] [Google Scholar]
  • 13.Bao P., Maqueda A.I., Del-Blanco C.R., Garciá N. Tiny hand gesture recognition without localization via a deep convolutional network. IEEE Trans. Consum. Electron. 2017;63:251–257. doi: 10.1109/TCE.2017.014971. [DOI] [Google Scholar]
  • 14.Kumar P., Saini R., Roy P.P., Dogra D.P. A position and rotation invariant framework for sign language recognition (SLR) using Kinect. Multimed. Tools Appl. 2018;77:8823–8846. doi: 10.1007/s11042-017-4776-9. [DOI] [Google Scholar]
  • 15.Saha S., Ganguly B., Konar A. Gesture recognition from two-person interactions using ensemble decision tree. Adv. Intell. Syst. Comput. 2018;518:287–293. doi: 10.1007/978-981-10-3373-5_29. [DOI] [Google Scholar]
  • 16.Supančič J.S., Rogez G., Yang Y., Shotton J., Ramanan D. Depth-Based Hand Pose Estimation: Methods, Data, and Challenges. Int. J. Comput. Vis. 2018;126:1180–1198. doi: 10.1007/s11263-018-1081-7. [DOI] [Google Scholar]
  • 17.Xu J., Zhang X., Zhou M. A High-Security and Smart Interaction System Based on Hand Gesture Recognition for Internet of Things. Secur. Commun. Netw. 2018;2018:11. doi: 10.1155/2018/4879496. [DOI] [Google Scholar]
  • 18.Avola D., Bernardi M., Member S., Massaroni C., Member S. Exploiting Recurrent Neural Networks and Leap Motion Controller for the Recognition of Sign Language and Semaphoric Hand Gestures. IEEE Trans. Multimed. 2018;21:234–245. doi: 10.1109/TMM.2018.2856094. [DOI] [Google Scholar]
  • 19.Tai T.-M., Jhang Y.-J., Liao Z.-W., Teng K.-C., Hwang W.-J. Sensor-Based Continuous Hand Gesture Recognition by Long Short-Term Memory. IEEE Sens. Lett. 2018;2:1–4. doi: 10.1109/LSENS.2018.2864963. [DOI] [Google Scholar]
  • 20.Mirehi N., Tahmasbi M., Targhi A.T. Hand gesture recognition using topological features. Multimed. Tools Appl. 2019;78:13361–13386. doi: 10.1007/s11042-019-7269-1. [DOI] [Google Scholar]
  • 21.Marcon M., Paracchini M.B.M., Tubaro S. A framework for interpreting, modeling and recognizing human body gestures through 3D eigenpostures. Int. J. Mach. Learn. Cybern. 2019;10:1205–1226. doi: 10.1007/s13042-018-0801-1. [DOI] [Google Scholar]
  • 22.Sanchez-Riera J., Srinivasan K., Hua K.L., Cheng W.H., Hossain M.A., Alhamid M.F. Robust RGB-D Hand Tracking Using Deep Learning Priors. IEEE Trans. Circuits Syst. Video Technol. 2018;28:2289–2301. doi: 10.1109/TCSVT.2017.2718622. [DOI] [Google Scholar]
  • 23.Pinto R.F., Borges C.D.B., Almeida A.M.A., Paula I.C. Static Hand Gesture Recognition Based on Convolutional Neural Networks. J. Electr. Comput. Eng. 2019;2019:4167890. doi: 10.1155/2019/4167890. [DOI] [Google Scholar]
  • 24.Li C., Zhang X., Liao L., Jin L., Yang W. Skeleton-Based Gesture Recognition Using Several Fully Connected Layers with Path Signature Features and Temporal Transformer Module. Proc. AAAI Conf. Artif. Intell. 2019;33:8585–8593. doi: 10.1609/aaai.v33i01.33018585. [DOI] [Google Scholar]
  • 25.Hu B., Wang J. Deep learning based hand gesture recognition and UAV flight controls. Int. J. Autom. Comput. 2020;17:17–29. doi: 10.1007/s11633-019-1194-7. [DOI] [Google Scholar]
  • 26.Kopuklu O., Gunduz A., Kose N., Rigoll G. Online Dynamic Hand Gesture Recognition Including Efficiency Analysis. IEEE Trans. Biom. Behav. Identity Sci. 2020;2:85–97. doi: 10.1109/TBIOM.2020.2968216. [DOI] [Google Scholar]
  • 27.Qi J., Jiang G., Li G., Sun Y., Tao B. Surface EMG hand gesture recognition system based on PCA and GRNN. Neural Comput. Appl. 2020;32:6343–6351. doi: 10.1007/s00521-019-04142-8. [DOI] [Google Scholar]
  • 28.Chen L., Fu J., Wu Y., Li H., Zheng B. Hand gesture recognition using compact CNN via surface electromyography signals. Sensors. 2020;20:672. doi: 10.3390/s20030672. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Kolivand H., Joudaki S., Sunar M.S. An implementation of sign language alphabet hand posture recognition using geometrical features through artificial neural network. Neural Comput. Appl. 2021;33:13885–13907. doi: 10.1007/s00521-021-06025-3. [DOI] [Google Scholar]
  • 30.Kapuściński T., Warchoł D. Hand Posture Recognition Using Skeletal Data and Distance Descriptor. Appl. Sci. 2020;10:2132. doi: 10.3390/app10062132. [DOI] [Google Scholar]
  • 31.Warchoł D., Kapuściński T. Human Action Recognition Using Bone Pair Descriptor and Distance Descriptor. Symmetry. 2020;12:1580. doi: 10.3390/sym12101580. [DOI] [Google Scholar]
  • 32.Benitez-Garcia G., Prudente-Tixteco L., Castro-Madrid L.C., Toscano-Medina R., Olivares-Mercado J., Sanchez-Perez G., Villalba L.J.G. Improving Real-Time Hand Gesture Recognition with Semantic Segmentation. Sensors. 2021;21:356. doi: 10.3390/s21020356. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Kaggle Hand Gesture Recognition Database. [(accessed on 5 February 2020)]. Available online: https://www.kaggle.com/gti-upm/leapgestrecog/version/1.
  • 34.Garcia-Hernando G., Yuan S., Baek S., Kim T.K. First-person hand action benchmark with rgb-d videos and 3d hand pose annotations; Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; Salt Lake City, UT, USA. 18–23 June 2018; pp. 409–419. [Google Scholar]
  • 35.Tekin B., Bogo F., Pollefeys M. H+ o: Unified egocentric recognition of 3d hand-object poses and interactions; Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; Long Beach, CA, USA. 15–20 June 2019; pp. 4511–4520. [Google Scholar]
  • 36.Gadekallu T.R., Alazab M., Kaluri R., Maddikunta P.K.R., Bhattacharya S., Lakshmanna K., Parimala M. Hand gesture classification using a novel CNN-crow search algorithm. Complex Intell. Syst. 2021;7:1855–1868. doi: 10.1007/s40747-021-00324-x. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Data sharing is not applicable to this article.


Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES