Next Article in Journal
Characterization and Evaluation of Human–Exoskeleton Interaction Dynamics: A Review
Previous Article in Journal
TIMo—A Dataset for Indoor Building Monitoring with a Time-of-Flight Camera
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Human Activity Recognition by Sequences of Skeleton Features

1
Escuela de Ingeniería Eléctrica, Pontificia Universidad Católica de Valparaíso, Av. Brasil 2147, Valparaíso 2362804, Chile
2
School of Electronic Engineering and Computer Science, Queen Mary University of London, London E1 4NS, UK
3
Department of Computer Science and Engineering, Universidad Carlos III de Madrid, 28903 Madrid, Spain
4
Departamento de Informática y Automática, Universidad Nacional de Educación a Distancia, Juan del Rosal 16, 28040 Madrid, Spain
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(11), 3991; https://doi.org/10.3390/s22113991
Submission received: 11 April 2022 / Revised: 11 May 2022 / Accepted: 18 May 2022 / Published: 25 May 2022
(This article belongs to the Section Intelligent Sensors)

Abstract

:
In recent years, much effort has been devoted to the development of applications capable of detecting different types of human activity. In this field, fall detection is particularly relevant, especially for the elderly. On the one hand, some applications use wearable sensors that are integrated into cell phones, necklaces or smart bracelets to detect sudden movements of the person wearing the device. The main drawback of these types of systems is that these devices must be placed on a person’s body. This is a major drawback because they can be uncomfortable, in addition to the fact that these systems cannot be implemented in open spaces and with unfamiliar people. In contrast, other approaches perform activity recognition from video camera images, which have many advantages over the previous ones since the user is not required to wear the sensors. As a result, these applications can be implemented in open spaces and with unknown people. This paper presents a vision-based algorithm for activity recognition. The main contribution of this work is to use human skeleton pose estimation as a feature extraction method for activity detection in video camera images. The use of this method allows the detection of multiple people’s activities in the same scene. The algorithm is also capable of classifying multi-frame activities, precisely for those that need more than one frame to be detected. The method is evaluated with the public UP-FALL dataset and compared to similar algorithms using the same dataset.

1. Introduction

The detection and recognition of human activities have attracted the attention of researchers around the world in recent years. In this research field, fall detection using machine learning techniques has become very important due to the aging of the population in developed countries and the increase in the cost of hospitalizations [1]. For that reason, this kind of application has been growing due to the implementation of safety measures [2] in high-risk work environments, shopping malls, hospitals, nursing homes [3], etc.
These solutions have been implemented both for closed private places and in open public spaces, so there is an essential difference between indoor and outdoor scenarios.
On the one hand, in controlled indoor spaces, such applications use sensors, such as gyroscopes, accelerometers, inertial sensors, barometers, etc., for fall detection. Such sensors can be embedded in smartphones, wearable necklaces, or smart bracelets. They can also be placed directly on the waist or chest of the person [4]. However, they have the disadvantage that the devices must be attached to the subjects’ bodies. This can be uncomfortable and is not always feasible because these types of sensors must be worn constantly and in many cases present battery and wireless connection problems [5,6,7].
On the other hand, outdoor approaches may perform human activity detection and recognition through video images. The use of video images has some advantages over the wearable sensor-based approaches: (a) users do not need to wear any sensors, (b) the approach can be implemented in open spaces and not only in a laboratory environment, and (c) there can be more than one person in the scene [8]. Many works dedicated to human activity detection from video cameras can be found in the literature. In some cases, they use pose detection through a human skeleton as a feature extraction method. These approaches allow the detection of various types of activities such as walking, running, jumping, jogging, or falling, among others. They also enable the detection of more than one person in the same scene, which is a substantial advantage over other approaches [9]. For example, in [10] the authors present a network-based fall detection in videos, where experiments show a high sensitivity of 98.46 % on the multiple cameras fall dataset and 100 % on the UR-Fall [11] dataset.
In this context, we previously presented [12] a vision-based approach for fall detection and activity recognition using human skeleton estimation for feature extraction. It can detect several subjects in the same scene, so it uses a filtering method to detect the activity of a single person of interest, discriminating the skeleton of the other subjects. It can also be used in real open and uncontrolled environments, where a large number of people can be present at the same time in the scene, for example, in a shopping mall. The method has been evaluated with the public databases UP-Fall [13] and UR-Fall [11]. In both cases, the results outperformed other systems using the same dataset [14], achieving a 98.84 % accuracy and an F1-Score of 97.41 % , which performs fall detection using a k-nearest neighbor (KNN) classifier. This system uses pose detection of the human skeleton as an input feature.
Despite the very good results obtained, some activities were not well recognized because more than one frame is required to identify them accurately. This implies that the activity cannot be classified instantaneously, so it needs more time to be detected. That is, the activity starts at an initial state and requires intermediate steps before it reaches the final state so that it can be properly recognized as an activity. Therefore, a method that uses only one frame to detect this type of activity is not adequate. Several articles related to this topic have been published recently. For example, in [15], the authors present a deep neural network approach consisting of an automatic encoder followed by a CNN, where the model is trained with image sequences. In [16], the authors propose a method for human fall detection with CNNs. The system uses the concept of “dynamic imaging”, which combines the frames of a video into a single image to identify action sequences. In [17], the authors propose a multi-camera system for video-based fall detection. They augment the estimation of human pose (OpenPifPaf algorithm) by supporting multi-camera, multi-person tracking and an LSTM neural network to predict classes. The method achieves an F1 score of 92.5 % on the UP-Fall dataset.
To be able to detect activities that cannot be detected with a single frame, some modifications are made to our previous works. The result is what is presented here, in which the main contribution is the development of a method capable of detecting those activities that cannot be recognized using a single frame. The major effort is made in the feature extraction stage rather than the machine learning methods, which shows a better performance in comparison with previous works. Regardless of the classification method, in all cases the results are improved. In this approach, the feature extraction method seeks to obtain the pose of the subject to which the activity is identified and for which a skeleton detection algorithm that has delivered excellent results in previous work is used [12]. This method has been proven with different datasets and machine learning algorithms showing better results than previous works [18,19,20]. Therefore, the main contributions of this work are:
  • The use of several frames of a video to recognize an activity is proposed. This approach allows us to correctly detect those activities that require a time greater than the period required to capture a frame. The use of several frames of a video is proposed to recognize an activity. Note that this approach allows performing two kinds of classification problems: bi-classification (fall/not fall), and multi-classification (recognition of more than two activities). The proposed method provides better results than those reported in previous works, including those activities that were recognized with only one frame. That is why the method represents a global improvement in the detection of activities.
  • This approach differs from many existing works in that the effort is made in the feature extraction stage by proposing to use skeleton features to estimate the human pose in a frame. Unlike previous works, the feature vector is formed by combining skeleton features from several consecutive frames. In this paper, we describe a study to specifically determine the frames needed to detect activities.
  • To show the improved detection performance, the approach is validated using different ML methods to build an activity classifier. Better results are obtained for most of the machine learning methods used.
  • Finally, the robustness and versatility of the approach have been validated with two different datasets, achieving in both cases better results compared to those previously reported in the literature.
The rest of the paper is organized as follows. Section 2 presents some fall detection approaches that can be found in the literature. In addition, the UP-Fall database, which will be used later to test the developed algorithm, is briefly described. Section 3 and Section 4 describe the developed algorithm. Section 5 shows the machine learning models and evaluation metrics used. Section 6 shows the experimental results and a comparison with previous results for the UP-Fall dataset. Finally, Section 7 summarizes the main conclusions and future work.

2. Fall Detection Datasets and Related Work

A considerable number of works related to activity detection with sensors can be found in the literature. Many of them present some drawbacks such as frequent battery replacement, high costs, use of wearable devices, sensing distance, computational load, etc. Several recent works have focused on human posture detection from video images to avoid some of these drawbacks. These approaches can be divided into two groups: (a) works that process video images to detect activities using artificial intelligence techniques (SVN, CNN, YOLO, etc.) directly from those images; (b) research that uses human skeleton feature detection (e.g., obtained with OpenPose, AlphaPose, etc.) in video images to classify activities, also with artificial intelligence techniques to improve the results. The use of skeleton detection can improve the training time effectively as well as eliminate the effects of blurriness, light, and shadows. Some of those activities cannot be classified using only one frame. That is why some recent research has focused on activity detection from image sequences.
Table 1 shows a summary of the state of the art of works related to activity detection. The first column is the reference to each article. The second column indicates whether the approach is able to detect multiple activities or not and how many. The third column shows whether the paper uses an algorithm for pose detection with skeleton detection. The fourth column indicates whether the developed algorithm uses image sequences to classify the activities. The fifth column indicates whether the method uses depth sensors for detection. The sixth column shows the artificial intelligence algorithm used in each case. The last column shows the dataset used to perform the tests.
As can be seen, 63 % of the reviewed literature uses skeletons for activity detection, and the most used method is OpenPose. Only 20 % of the works can detect multiple activities. The most used public datasets for testing are: UR-Fall ( 30 % ), UP-Fall ( 16 % ), and own datasets ( 16 % ), while 70 % of the articles report the use of sequences for activity detection.
The most commonly used database is UR-Fall, and one of the articles using this database is [21] in which the authors present enhanced dynamic optical flow. Their experimental results showed that the fall detection accuracy improved about 3 % and the processing time between 40 and 50 ms.
In the application presented in [22], the authors propose a deep learning fall detection framework for a mobile robot. This method runs three times faster than YOLOv3-tiny on a Raspberry Pi without any hardware accelerator and with good detection performance.
In [23], the authors presented a dense block-based drop detection method with a multi-channel convolutional fusion (MCCF) strategy. This method shows excellent results for fall detection over the same dataset (F-score of 0.973).
In [24], the authors developed an architecture to classify human fall events using 2D CNN and GRU. Experimental results with this dataset show that the proposed model obtains an accuracy of 99 % . Although the proposal has a good performance, it has the disadvantage of using the depth information of the databases with which they test and validate their approach. This makes fall detection easier to detect and more difficult to apply since it is more common to use RGB images in real environments.
In [25], the authors proposed a method capable of detecting human falls in video sequences using multi-channel CNN and SVM. The results are competitive with those obtained by the state of the art on the UR-Fall dataset.
In [34], the authors proposed methods that apply OpenPose for real-time multi-person 2D pose estimation and movement. These methods were tested with RNN and LSTM models to learn the changes in human joint points in continuous time. Experiments over UR-Fall show that they can detect falls with a recognition accuracy of up to 98.1 % and 98.2 % , respectively.
The work presented in [37] describes a vision-based fall tracking method where upper body joints are grouped into one segment to increase the fall classification ratio. This method can be beneficial to achieve efficient tracking of human activities and provide a useful technique to distinguish falls from other daily life activities.
In Table 1, it can be seen that the works [43,44,45] are the most similar to the present work. The characteristics to be taken into account are: (a) fall detection, (b) recognition of different activities, and (c) the use of skeletons and a sequential frame analysis methodology, resulting in good performance (accuracy over 90 % ). It is important to note that the present work cannot be properly compared with the three mentioned works due to the fact that the training and validation datasets are different (The present work uses the UP-Fall and UR-Fall datasets to compare directly with [12]). On the other hand, the datasets used in [44,45] (FFD and TST-Fall, respectively) have images with depth information from the use of kinect cameras, which makes the method much easier to apply. However, it is not very practical to use non-conventional depth cameras. Based on the above, the present work uses a novel method in which datasets acquired from conventional cameras are considered. In addition, a greater number of activities are recognized than almost all the works mentioned in the review.
On the other hand, Table 2 shows the most used datasets for fall detection (reflected in Table 1). The first column names and references each dataset. The second column shows the fall type included in each dataset. The third column shows other kind of activities (different from falling) included in the dataset. The fourth column indicates the number of attempts or sequences performed for each activity and fall. Finally, Columns 5 and 6 show the methods used by the original authors to evaluate their dataset and the performance obtained with each method. It should be noted that Table 2 shows the performance obtained by the original authors of each dataset, while Table 1 shows the performance obtained in the most recent works that use the same datasets.

3. Methodology of the Proposed Approach

The present work focuses on improving the performance of fall detection and activity recognition using video data. The main hypothesis is that the results obtained in [12] can be improved by carrying out a sequential analysis of frames, instead of analyzing and classifying each frame independently, even using the same machine learning models and the same datasets.
A sequence of several frames is used for the recognition of an activity instead of detecting the activity with a single frame. This allows the correct detection of activities that require more time than the period required for the capture of a single frame, thus improving the performance in those activities that previously were not recognized with a single frame. Therefore, the proposed method represents an overall improvement in the detection of activities.
Here, the use of skeletal features to estimate the human pose in a frame focuses the effort on the feature extraction stage, differentiating from the works in the state of the art. Unlike previous works, the feature vector is formed by combining the skeletal features of several consecutive frames. We describe a study to specifically determine the number of frames needed to detect an activity. The approach is validated using various ML methods for activity recognition, obtaining better results for most of the machine learning methods used. Finally, the robustness and versatility of the approach is validated with two different datasets, obtaining in both cases superior results compared to those previously reported in the literature.
The proposed methodology for fall detection and activity recognition is shown in Figure 1. The proposed method is divided into two parts: feature extraction and activity recognition using different machine learning models. The process begins with the collection of video images, followed by the extraction of features by estimating the pose of the human skeleton, and then the selection of sliding time windows for training machine learning models that predict the fall or activity for each time window.

3.1. Selection of Sliding Windows

The novelty of the proposal includes the combination of consecutive skeleton features by considering image frame sequences through a sliding windows approach ( S W ). The design of these windows is shown in Figure 2. The process consists of defining the size of the windows in seconds, so that each window will cover the number of frames equal to the fps of the video times the size of the window ( S W L = f p s × s e c o n d s ). So, for an 18 fps video with 1 s windows, each window will span 18 frames ( S W L = 18 ). Finally, each window scrolls one frame to the right of the previous one until one window spans the last frame of the video.
The total number of sliding windows can be determined by Equation (1), as follows:
S W m = # F r a m e s V i d e o S W L + 1 ,
where # F r a m e s V i d e o is the total number of frames of the video.
Each window spans an S W L number of frames, and each frame contains the activity of one person. Following the methodology proposed in [12], each frame will have the 51 skeleton characteristics associated with the person’s pose and the label associated with the activity performed in that frame. This means that each sliding window will contain S W L skeletons with their respective associated tag. The size of the sliding window can be determined by ( 1 , S W L , 51 ) .

3.2. Feature Vector Construction

Once the sliding windows are designed, the goal is to predict the activity corresponding to each window. To do that, one skeleton is obtained for each frame of the sliding window. After that, each skeleton is labeled using a machine learning model. Finally, the statistical mode is used to output the most frequent label of the sliding window. Thus, each sliding window has a single tag/label associated with the activity performed in that time interval. To build the features vector to train and validate the ML models and taking into account that each window has a size in three dimensions, it is necessary to resize each window size to two dimensions, so each window will have the following shape: ( 1 , S W L × 51 ) .
The first 51 columns correspond to the features of the first skeleton, and the last 51 columns correspond to the 51 features of the last skeleton. Finally, the feature vector and the label vector will have the form:
( S W m × # V i d e o s , S W L × 51 ) ,
and the size of labels vector is:
( S W m × # V i d e o s , 1 ) ,
where # V i d e o s varies depending on the number of videos in the dataset.
The following section shows the parameters selected in the construction of this vector and an optimization proposal to correctly detect all activities.

4. Study of Feature Vector Parameters Settings

As in [12], the estimation of the human pose is performed using AlphaPose [52], available at https://www.mvig.org/research/alphapose.html (accessed on 20 January 2022). AlphaPose is an open-source method to detect the pose of one or more subjects in the scene. Its methodology consists of taking RGB images as input and performing pose detection with a model previously trained with the COCO dataset. For each subject detected in the image, there is a set of 17 key points or joints with coordinates (x,y) that compose a skeleton. In addition, it provides an individual joint score s for each key point and also, an overall detection score for the (17 × 3) attributes. The features are obtained to train a classifier that detects falls and recognizes activities. In this way, a sequence of RGB images or a video is converted into a sequence of joints and scores that form the features. Vector shells are used to learn to distinguish the different actions.

4.1. Exhaustive Search

An objective function is defined as: recall maximization as a function of window size (W), number of skeletons (S), and number of features (F):
M a x _ R e c a l l ( W , S , F ) 100 %
Taking into account how a skeleton is obtained from the pose of a person, there are some restrictions to consider:
  • Videos or images must have only one person; so if there is more than one person in the scene, only the characteristics of the person of interest are used, and the skeletons of the other people are discriminated.
  • The duration of the video must be longer than the window size (W).
  • The duration of the activity must be longer than or equal to the window size (W).
  • When obtaining the skeleton features for each video frame, the key-points must always be 17 per person.
Once the images without people have been eliminated and the filter designed in [12] is applied (which selects only the skeleton of the person of interest in the images that contain more than one person), the size of the window (W) must be greater than 0 s and less than or equal to T seconds: 0 < W T . Therefore, for this work, three window sizes were selected: 0.5 , 1, and 2 s. Taking into account that for each frame of the window there is a skeleton, the feature vector can be optimized using all the skeletons of the window or less; then, the number of skeletons (S) in the window can be less or equal to the frames per second of the video (fps) times the size of the window.
1 < S ( f p s × W )
1 < S S W L

4.2. Data Acquisition

To test the hypothesis that the use of temporary sliding windows can improve results in [12], the UP-Fall database [13] was selected for a more direct comparison.
Data acquisition was performed using the same methodology described in [12], skeleton features of the person pose were extracted for each frame of the videos in the UP-Fall dataset. The videos in UP-Fall have 18 fps (frames per second).
The experiments were performed using the UP-Fall dataset, which was divided using 70 % for training and 30 % of the data for testing. Four classification models were validated: random forest (RF), support vector machine (SVM), multilayer perceptron (MLP), and K-nearest neighbor (KNN). For each model, 10 rounds of cross-validation were carried out.
The exhaustive search technique was selected to find the candidate that optimizes the feature vector by reducing the number of skeletons per window without sacrificing system performance. This exhaustive search was implemented with Matlab 2020b (Windows OS) and Python 3.6 (training and validation).

4.3. Skeletons Selection

Given that UP-Fall videos are 18 fps, that the maximum number of skeletons S per window W is f p s × W and that the number of features is 51 × S , then:
  • For W = 0.5 s: 2 S f p s × 0.5 .
  • For W = 1 s: 2 S f p s × 1 .
  • For W = 2 s: 2 S f p s × 2 .
An example of the selection of skeletons per sliding window is shown in Figure 3. Considering a window of 1 s duration, the exhaustive search of two skeletons up to f p s × W or S W L skeletons (S) per window was performed.
The selection of the skeletons for each window is defined by the following code:
for ws in {0.5, 1.0, 2.0} do
    for s in {1...FPS} do
        feature_vector = new Matrix{ frames_of_video.size \
        - (ws ∗ FPS) + 1 , 51 ∗ (s+1) }
        frames = new Vector{ s+1 }
        for x in {0...s} do
            frames[x] = (x / s) ∗ ((ws ∗ FPS) - 1)
        frames[s] = (ws ∗ FPS) - 1
        i = 0
        while (i <= (frames_of_video.size - (ws ∗ FPS))) do
            f = 0
            for frame in frames do
                feature_vector[i][f] = frames_of_video[frame+i]
                f++
            i++
where:
  • S 0 : Initial position of the skeleton.
  • S i : Position of the skeleton to be selected.
  • F: The data number of the feature vector ( 51 × S ).
Finally, a feature vector was obtained for each possible candidate with which the ML models are trained and validated. Each vector has the form:
( ( S W m × # V i d e o s ) , F )
Size of labels vector:
( ( S W m × # V i d e o s ) , 1 )

4.4. Best Solution

The exhaustive search of the M a x R e c a l l was carried out taking into account 10 cross-validations for each possible W and S parameter.
From the results obtained by the exhaustive search, the recall obtained for each candidate pair W and S is plotted in Figure 4. This graph shows the maximization of the recognition recall of the 12 UP-Fall activities when using sliding windows with skeleton sequences instead of performing the frame-by-frame analysis proposed in [12].
Finally, the candidate with the highest recall for the entire system is selected:
  • Recall = 96.43 % .
  • Window size (W) = 2 s.
  • Number of skeletons for window (S) = 3.
  • Number of features (F) = 153.
As can be seen in Figure 4, the next best candidates are found in the 2 s window with 18 and 35 skeletons. It is possible to conclude that the highest recall values are obtained with 2 s windows. Since the exhaustive search is performed with the UP-Fall database, using three skeletons works well for this database, it may be different from other databases. On the other hand using three skeletons and choosing the first frame, the middle frame, and the last frame makes sense to recognize an action that occurs in the full size of the window. We believe that this is caused by the relative simplicity of the model, which is not prone to overfitting and curse of dimensionality.

5. Metrics and Associated Parameters

As in [12], the skeleton sequences are preprocessed to eliminate empty frames and because some images show other people in addition to the volunteer performing the action to be recognized, the skeleton with the highest overall score is chosen. Thus, the other skeletons are eliminated from the training process.

5.1. Models

The results of the proposed approach were validated by using the same experimental methodology described in [12]. The experiments were performed using the UP-Fall dataset, selecting 70 % of the data for training and 30 % of the data for testing. total of 10 rounds of cross-validation were performed with five classification methods: random forest (RF), support vector machine (SVM), multilayer perceptron (MLP), K-nearest neighbor (KNN), and AdaBoost.

5.2. Metrics

This work uses the same performance metrics used in [12] for a direct comparison:
accuracy = TP + TN TP + FP + TN + FN
precision = TP TP + FP
recall = TP TP + FN
specificity = TN TN + FP
F 1 = 2 × precision × recall precision + recall ,
where:
  • TP (True positives) = “fall” detected as “fall”;
  • FP (False positives) = “not fall” detected as “fall”;
  • TN (True negatives) = “not fall” detected as “not fall”;
  • FN (False negatives) = “fall” detected as “not fall”.

6. Experimental Results

The results obtained from the proposed methodology are shown below.To verify that the recall and the performance of the system, in general, can be maximized when using sliding windows with skeleton sequences, all the experiments in the present work were carried out using the methodology proposed in Section 3 and the parameters selected from Section 4.

6.1. Fall Detection and Activity Recognition Using an LSTM

Firstly, to test deep learning models, an activity recognition experiment was performed using the same feature vector described in Section 3 and Section 4, for which an LSTM (long short-term memory) neural network was designed, taking into account that the proposed approach uses temporary window sliders with the skeleton sequences.
The structure used to determine the classification of feature sequences obtained in the human pose detection phase has its nucleus in an LSTM network. The proposed structure is composed of 51 input features for the LSTM with 100 hidden states, followed by a fully-connected layer with 100 nodes, and finished by a softmax layer with 12 nodes. These final nodes are related to the previous job classes [12], namely 12 activities in total: falling forward on hands, falling forward on knees, falling backwards, landing sitting on an empty chair, falling from the side, walking, standing, pick up an object, sit, jump, lie down, and kneel. The first five activities correspond to human fall actions, and the next seven correspond to simple daily human activities. The selected loss function was cross-entropy loss with the Adam optimizer with a learning rate of 0.01.
It is necessary to clarify that the input to the network is a sequence of features extracted from a temporal sequence of frames in which the feature set is related to the highest pose estimation score detected in just one frame, i.e., the algorithm just detects one person per frame.
The LSTM network was trained and validated using the UP-Fall database. A total of 10 rounds of cross-validation with 70:30 partitions was performed. Finally, the results obtained for the recognition of the 12 UP-Fall activities are: accuracy = 81.14 % , precision = 27.76 % , recall = 31.82 % and F 1 -score = 29.53 % . The low performance of the network was attributed to the imbalance present in the 12 classes of the UP-Fall dataset. It is possible that with more balanced datasets the performance of the network increases, even using the same methodology proposed in this work (sequences of skeletons).
Based on the poor results obtained with the LSTM neural network, it was decided to test the proposed method with well-known machine learning models; so the experiment was divided into two parts: fall detection (bi-classifier system) and activity recognition (multi-classifier system).

6.2. Fall Detection with UP-Fall

Fall detection was performed by means of binary classifiers. The input data was the feature vector described in Section 3 and Section 4. There were 220,660 frames, with which 203,525 sliding windows were created of which 43,469 ( 21.36 % ) windows corresponded to sequences with falls and 160,056 ( 78.64 % ) to sequences without falls.
As in [12], the original 12 class labels were converted so that all five types of dropouts were encoded as “dropout” and the rest as “no dropout”. The five classification models were trained separately (random forest, support vector machine, multi-layer perceptron, K-nearest neighbor and AdaBoost) and validated by 10 rounds of cross-validation (k-fold = 10) using 70:30 random partitions of the entire dataset.
The results obtained by each classifier are shown in Table 3 (performance of the proposed method). The best results were obtained with RF that achieved an accuracy of 99.81 % , a recall of 99.81 % and an F 1 -score of 99.56 % . Table 3 compares the results obtained from the proposed method with those obtained in [12]. It is possible to observe that the use of sliding windows leads to improved performance for four out of the five classification models.
The best confusion matrix for each of the five classification models is shown in Figure 5. The classifier with the best performance is RF in which, of the 4,425 fall data, only 5 ( 0.11 % ) were not recognized as such.
Figure 6 compares the best model (RF: Windowing) of the proposed method with the best model (RF: Frame by Frame) of the method proposed in Ramirez et al. [12]. It can be seen from the two confusion matrices that even with the same datast and the same type of classification model, the model trained with sliding windows shows better performance, increasing the percentage of fall detection from 98.89 % to 99.89 % . As mentioned in the previous sections, the difference between the two methods is that the present work performs the detection of falls by means of sequences of frames, whereas in [12], detection is carried out independently frame by frame.
Table 4 compares our performance to other studies performing fall detection with camera view skeleton sequences for fall detection and using the same database: UP-Fall. It is possible to observe that the performance of our proposal exceeds the performance delivered by the work carried out in [12,17,32]. Moreover, unfortunately, the works in [17,32] do not implement activity recognition.
Therefore, it is possible to conclude that our hypothesis is proven, by showing that it is possible to improve the results obtained with the same classification models proposed in [12] that uses a single modality (RGB images) and the same dataset, along with human skeletal sequences.

6.3. Activity Recognition with UP-Fall

As described in Martínez-Villaseñor et al. [13], the UP-Fall dataset contains 12 different types of actions of which the first 5 correspond to fall activities, falling forward with hands, falling forward with knees, falling backward, landing sitting on an empty chair, and fall sideways, and the next 7 correspond to human daily activities, walking, standing, picking up an object, sitting, jumping, lying down, and kneeling down.
Activity recognition is carried out using multi-class classifiers. As in the fall detection case, the input data is the feature vector described in Section 3 and Section 4, but in this case, each sliding window contains 1 of the 12 UP-Fall activities. Of the 203,525 sliding windows, 1120 ( 0.55 % ) correspond to the activity falling forward with hands, 1102 ( 0.54 % ) to falling forward with knees, 1384 ( 0.68 % ) to falling backward, 1109 ( 0.54 % ) to landing sitting on an empty chair, 1371 ( 0.67 % ) to picking up an object, 38,787 ( 19.06 % ) to falling sideways, 50,997 ( 25.06 % ) to walking, 45,871 ( 22.54 % ) to standing, 1331 ( 0.65 % ) to sitting, 21,786 ( 10.7 % ) to jumping, 37,383 ( 18.37 % ) to lying down, and 1284 ( 0.63 % ) to kneeling down. Finally, following the same methodology used in [12], the dataset is randomly split 10 times into 70 % for training and 30 % for testing. The five models are validated separately (RF, SVM, MLP, KNN and AdaBoost) and validated through 10 rounds (k-fold = 10) of cross-validation.
Table 5 compares the results obtained in this work with the results obtained in Ramirez et al. [12]. It is observed that the performance of all the models of the proposed method exceeds the performance of all the models in Ramirez et al. except for the SVM. It is also possible to observe that our best model outperforms the best model in Ramirez et al.
Figure 7 compare thes confusion matrix of our best model (RF) versus the best model in Ramirez et al. (Figure 8) [12] (RF). From the confusion matrix of our best model, it is possible to observe that the performance of the classifier increases and that the system is more accurate in recognizing each activity, managing to increase accuracy from 99.78 % to 99.92 % and recall from 88.97 % to 96.03 % . Our best model is capable of recognizing falling activities with more than 90 % accuracy and activities such as sitting, jumping, and kneeling with 100 % .
One of the biggest drawbacks in [12] is that when performing an analysis of independent frames, the falling activities (first five activities) are often confused with other activities such as lying down (Activity 11). This can be seen in the matrix of confusion of Figure 8. Therefore, our original hypothesis that it is possible to improve the performance of classification models for activity recognition and avoid confusion between classes by using skeleton sequences by means of optimized sliding windows is demonstrated (Section 4).
As Table 6 shows, our method outperforms results from similar work using camera-view skeleton sequences for fall detection and activity recognition such as Wang et al. [43], Zhu et al. [44] and Yin et al. [45] where they reach an accuracy of 95 % , 99.04 % , and 93.9 % , respectively, while we achieve an accuracy of 99.91 % . It is important to point out, as mentioned in the Section 2, the present work cannot be adequately compared with the three mentioned works because the training and validation datasets are different. The present work uses the UP-Fall and UR-Fall datasets to compare directly with [11]. Furthermore, the works of Zhu et al. [44] and Yin et al. [45] use images with depth information, which makes the method much easier to design but not very practical because of the need to have depth cameras. The latter proves the value of our method since, even though it is more complex to develop, better results are achieved even using a single conventional camera. It is also important to highlight the notorious imbalance of the 12 classes of the UP-Fall database. Even so, our proposal manages to achieve high performance with each ML model when it comes to recognizing any of the 12 activities.

6.4. Fall Detection with UR-Fall

To check the efficiency and robustness of the proposed method, the experiments were repeated with another dataset, UR-Fall [11]. UR-Fall has 9800 frames with which 5712 sliding windows are created, of which 1870 ( 32.74 % ) correspond to falls and 3842 ( 67.26 % ) to not-falls. As with the UP-Fall database, the same five fall detection classification models are trained and validated with 10 rounds of cross-validation using 70:30 partitions.
Table 7 compares the results obtained with the proposed method versus the results obtained in Ramirez et al. [12]. Even though the performance of the [12] fall detection system using UR-Fall was already quite good, it can be seen that by using sliding windows with skeleton sequences it is possible to increase the performance of the fall detection system. As Table 7 shows, our best model (RF) outperforms the best model in Ramirez et al.
The confusion matrix of our best model (RF) using UR-Fall is shown in Figure 9 (left). Here, it is possible to observe that the model can detect falls with 100 % precision. Therefore, based on the results obtained, the hypothesis is demonstrated that by using optimized sliding windows (Section 4) with skeleton sequences, it is possible to increase the performance of fall detection systems even when using other datasets.
Table 8 compares our performance to other studies performing fall detection with camera view using a skeleton for fall detection and using the same database, UR-Fall. It is possible to observe that the performance of our proposal exceeds the performance delivered in all the works cited in the table.
Finally, Table 9 shows the execution time for 10 cross-validations of each ML model. All models were trained and validated on a Notebook with an Apple M1 Chip (8 cores) and 16GB RAM. On average, each model took 0.59 s considering the creation of the Jason file with the AlphaPose skeleton data, and 0.07 s for reading the file and making the prediction for each frame.
From Table 9, it is possible to conclude that the KNN model is the best option considering its high accuracy rates and its fast execution performance.

7. Conclusions

This paper has proposed and tested a method for fall detection and activity recognition from RGB video sequences estimating the pose of a person in the entire video sequence. The feature vector is implemented by means of skeleton features that contain information about the pose of the person contained in the video. The proposal was evaluated using the UP-Fall database through five machine learning models (RF, SVM, MLP, KNN and AdaBoost), with which a good performance of the method was demonstrated that surpassed other fall detection systems and activity recognition referenced in the state of the art.
The main contribution of this work is that by using skeletons, it is possible to represent the joints of the human body, correctly estimating the pose of a person, which allows detecting a fall or correctly recognizing a daily activity. In addition, the use of time sequences of these skeletons makes it possible to significantly reduce the confusion between classes by correctly recognizing very similar activities. On the other hand, it is shown that by designing the feature vector from skeleton sequences, it is possible to reduce the amount of data by using only some of the skeletons without decreasing system performance.
For future work, we intend to test the proposal on real videos, since it has only been tested on datasets created in the laboratory and under controlled environments. Also, the construction of an activity recognition system of several people in the same video needs to be considered. In addition, the development of an algorithm for tracking one or more people in different scenes will be considered. Such an algorithm could recognize all the activities carried out and search or create datasets for activity recognition with multiple people and multiple cameras in different scenes.

Author Contributions

Conceptualization, G.F. and S.A.V.; methodology, H.R.; software, H.R. and P.A.; validation, H.R. and P.A.; formal analysis, G.F.; investigation, H.R.; resources, G.F.; data curation, H.R.; writing—original draft preparation, E.F. and H.R.; writing—review and editing, S.A.V., G.F., E.F. and H.R.; visualization, E.F. and H.R.; supervision, G.F. and S.A.V.; project administration, G.F.; funding acquisition, G.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported in part by the Chilean Research and Development Agency (ANID) under Project FONDECYT 1191188. The National University of Distance Education under Project 2021V/-TAJOV/00 and Ministry of Science and Innovation of Spain under Project PID2019-108377RB-C32.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Pham, T.N.; Vo, D.H. Aging population and economic growth in developing countries: A quantile regression approach. Emerg. Mark. Financ. Trade 2021, 57, 108–122. [Google Scholar] [CrossRef]
  2. Usmani, S.; Saboor, A.; Haris, M.; Khan, M.A.; Park, H. Latest research trends in fall detection and prevention using machine learning: A systematic review. Sensors 2021, 21, 5134. [Google Scholar] [CrossRef] [PubMed]
  3. Palestra, G.; Rebiai, M.; Courtial, E.; Koutsouris, D. Evaluation of a rehabilitation system for the elderly in a day care center. Information 2018, 10, 3. [Google Scholar] [CrossRef] [Green Version]
  4. Khojasteh, S.B.; Villar, J.R.; Chira, C.; González, V.M.; De la Cal, E. Improving fall detection using an on-wrist wearable accelerometer. Sensors 2018, 18, 1350. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Liu, Z.; Cao, Y.; Cui, L.; Song, J.; Zhao, G. A benchmark database and baseline evaluation for fall detection based on wearable sensors for the Internet of medical things platform. IEEE Access 2018, 6, 51286–51296. [Google Scholar] [CrossRef]
  6. Kwon, S.B.; Park, J.H.; Kwon, C.; Kong, H.J.; Hwang, J.Y.; Kim, H.C. An energy-efficient algorithm for classification of fall types using a wearable sensor. IEEE Access 2019, 7, 31321–31329. [Google Scholar] [CrossRef]
  7. Alarifi, A.; Alwadain, A. Killer heuristic optimized convolution neural network-based fall detection with wearable IoT sensor devices. Measurement 2021, 167, 108258. [Google Scholar] [CrossRef]
  8. Kavya, G.; CT, S.K.; Dhanush, C.; Kruthika, J. Human Fall Detection Using Video Surveillance. ACS J. Sci. Eng. 2021, 1, 1–10. [Google Scholar] [CrossRef]
  9. Jeong, S.; Kang, S.; Chun, I. Human-skeleton based fall-detection method using LSTM for manufacturing industries. In Proceedings of the 2019 34th International Technical Conference on Circuits/Systems, Computers and Communications (ITC-CSCC), Jeju Island, Korea, 23–26 June 2019; pp. 1–4. [Google Scholar]
  10. Guan, Z.; Li, S.; Cheng, Y.; Man, C.; Mao, W.; Wong, N.; Yu, H. A Video-based Fall Detection Network by Spatio-temporal Joint-point Model on Edge Devices. In Proceedings of the 2021 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France, 1–5 February 2021; pp. 422–427. [Google Scholar]
  11. Bogdan, K.; Kepski, M. Human fall detection on embedded platform using depth maps and wireless accelerometer. Comput. Methods Prog. Biomed. 2014, 117, 489–501. [Google Scholar] [CrossRef]
  12. Ramirez, H.; Velastin, S.A.; Meza, I.; Fabregas, E.; Makris, D.; Farias, G. Fall Detection and Activity Recognition Using Human Skeleton Features. IEEE Access 2021, 9, 33532–33542. [Google Scholar] [CrossRef]
  13. Martínez-Villaseñor, L.; Ponce, H.; Brieva, J.; Moya-Albor, E.; Núñez-Martínez, J.; Peñafort-Asturiano, C. UP-Fall Detection Dataset: A Multimodal Approach. Sensors 2019, 19, 1988. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Ramirez, H.; Velastin, S.A.; Fabregas, E.; Meza, I.; Makris, D.; Farias, G. Fall detection using human skeleton features. In Proceedings of the 11th International Conference of Pattern Recognition Systems (ICPRS 2021), Online, 17–19 March 2021; pp. 73–78. [Google Scholar] [CrossRef]
  15. Khan, S.S.; Nogas, J.; Mihailidis, A. Spatio-temporal adversarial learning for detecting unseen falls. Pattern Anal. Appl. 2021, 24, 381–391. [Google Scholar] [CrossRef]
  16. Fan, Y.; Levine, M.D.; Wen, G.; Qiu, S. A deep neural network for real-time detection of falling humans in naturally occurring scenes. Neurocomputing 2017, 260, 43–58. [Google Scholar] [CrossRef]
  17. Taufeeque, M.; Koita, S.; Spicher, N.; Deserno, T.M. Multi-camera, multi-person, and real-time fall detection using long short term memory. In Medical Imaging 2021: Imaging Informatics for Healthcare, Research, and Applications; International Society for Optics and Photonics: Bellingham, WA, USA, 2021; Volume 11601, p. 1160109. [Google Scholar]
  18. Chen, Z.; Wang, Y. Infrared–ultrasonic sensor fusion for support vector machine–based fall detection. J. Intell. Mater. Syst. Struct. 2018, 29, 2027–2039. [Google Scholar] [CrossRef]
  19. De Miguel, K.; Brunete, A.; Hernando, M.; Gambao, E. Home camera-based fall detection system for the elderly. Sensors 2017, 17, 2864. [Google Scholar] [CrossRef] [Green Version]
  20. Agrawal, S.C.; Tripathi, R.K.; Jalal, A.S. Human-fall detection from an indoor video surveillance. In Proceedings of the 2017 8th International Conference on Computing, Communication and Networking Technologies (ICCCNT), Delhi, India, 3–5 July 2017; pp. 1–5. [Google Scholar]
  21. Chhetri, S.; Alsadoon, A.; Al-Dala’in, T.; Prasad, P.; Rashid, T.A.; Maag, A. Deep learning for vision-based fall detection system: Enhanced optical dynamic flow. Comput. Intell. 2021, 37, 578–595. [Google Scholar] [CrossRef]
  22. Chen, G.; Duan, X. Vision-Based Elderly Fall Detection Algorithm for Mobile Robot. In Proceedings of the 2021 IEEE 4th International Conference on Electronics Technology (ICET), Chengdu, China, 7–10 May 2021; pp. 1197–1202. [Google Scholar]
  23. Cai, X.; Liu, X.; An, M.; Han, G. Vision-Based Fall Detection Using Dense Block With Multi-Channel Convolutional Fusion Strategy. IEEE Access 2021, 9, 18318–18325. [Google Scholar] [CrossRef]
  24. Sultana, A.; Deb, K.; Dhar, P.K.; Koshiba, T. Classification of indoor human fall events using deep learning. Entropy 2021, 23, 328. [Google Scholar] [CrossRef]
  25. Leite, G.V.; da Silva, G.P.; Pedrini, H. Three-stream convolutional neural network for human fall detection. In Deep Learning Applications; Springer: Berlin/Heidelberg, Germany, 2021; Volume 2, pp. 49–80. [Google Scholar]
  26. Shu, F.; Shu, J. An eight-camera fall detection system using human fall pattern recognition via machine learning by a low-cost android box. Sci. Rep. 2021, 11, 1–17. [Google Scholar] [CrossRef]
  27. Keskes, O.; Noumeir, R. Vision-based fall detection using ST-GCN. IEEE Access 2021, 9, 28224–28236. [Google Scholar] [CrossRef]
  28. Tran, T.H.; Nguyen, D.T.; Nguyen, T.P. Human Posture Classification from Multiple Viewpoints and Application for Fall Detection. In Proceedings of the 2020 IEEE Eighth International Conference on Communications and Electronics (ICCE), Phu Quoc, Vietnam, 13–15 January 2021; pp. 262–267. [Google Scholar]
  29. Hasib, R.; Khan, K.N.; Yu, M.; Khan, M.S. Vision-based Human Posture Classification and Fall Detection using Convolutional Neural Network. In Proceedings of the 2021 International Conference on Artificial Intelligence (ICAI), Islamabad, Pakistan, 5–7 April 2021; pp. 74–79. [Google Scholar]
  30. Nguyen, V.D.; Pham, P.N.; Nguyen, X.B.; Tran, T.M.; Nguyen, M.Q. Incorporation of Panoramic View in Fall Detection Using Omnidirectional Camera. In The International Conference on Intelligent Systems & Networks; Springer: Berlin/Heidelberg, Germany, 2021; pp. 313–318. [Google Scholar]
  31. Berlin, S.J.; John, M. Vision based human fall detection with Siamese convolutional neural networks. J. Ambient. Intell. Humaniz. Comput. 2021, 2021, 1–12. [Google Scholar] [CrossRef]
  32. Galvão, Y.M.; Portela, L.; Ferreira, J.; Barros, P.; De Araújo Fagundes, O.A.; Fernandes, B.J.T. A Framework for Anomaly Identification Applied on Fall Detection. IEEE Access 2021, 9, 77264–77274. [Google Scholar] [CrossRef]
  33. Kang, Y.K.; Kang, H.Y.; Weon, D.S. Human Skeleton Keypoints based Fall Detection using GRU. J. Korea Acad.-Ind. Coop. Soc. 2021, 22, 127–133. [Google Scholar]
  34. Lin, C.B.; Dong, Z.; Kuan, W.K.; Huang, Y.F. A Framework for Fall Detection Based on OpenPose Skeleton and LSTM/GRU Models. Appl. Sci. 2021, 11, 329. [Google Scholar] [CrossRef]
  35. Dentamaro, V.; Impedovo, D.; Pirlo, G. Fall Detection by Human Pose Estimation and Kinematic Theory. In Proceedings of the 2020 25th International Conference on Pattern Recognition (ICPR), Milan, Italy, 10–15 January 2021; pp. 2328–2335. [Google Scholar]
  36. Chang, W.J.; Hsu, C.H.; Chen, L.B. A Pose Estimation-based Fall Detection Methodology Using Artificial Intelligence Edge Computing. IEEE Access 2021, 9, 129965–129976. [Google Scholar] [CrossRef]
  37. Kang, Y.k.; Kang, H.Y.; Kim, J.B. A Study of Fall Detection System Using Context Cognition Method. In Proceedings of the 2021 21st ACIS International Winter Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD-Winter), Ho Chi Minh City, Vietnam, 28–30 January 2021; pp. 79–83. [Google Scholar]
  38. Apicella, A.; Snidaro, L. Deep Neural Networks for real-time remote fall detection. In Proceedings of the International Conference on Pattern Recognition, Virtual, 10–15 January 2021; Springer: Berlin/Heidelberg, Germany, 2021; pp. 188–201. [Google Scholar]
  39. Liu, C.; Lv, J.; Zhao, X.; Li, Z.; Yan, Z.; Shi, X. A Novel Key Point Trajectory Model for Fall Detection from RGB-D Videos. In Proceedings of the 2021 IEEE 24th International Conference on Computer Supported Cooperative Work in Design (CSCWD), Dalian, China, 5–7 May 2021; pp. 1021–1026. [Google Scholar]
  40. Kang, Y.; Kang, H.; Kim, J. Fall Detection Method Based on Pose Estimation Using GRU. In Proceedings of the International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, Hochimin City, Vietnam, 28–30 January 2021; Springer: Berlin/Heidelberg, Germany, 2021; pp. 169–179. [Google Scholar]
  41. Varshney, N.; Bakariya, B.; Kushwaha, A.K.S.; Khare, M. Rule-based multi-view human activity recognition system in real time using skeleton data from RGB-D sensor. Soft Comput. 2021, 2021, 1–17. [Google Scholar] [CrossRef]
  42. Zhu, H.; Du, J.; Wang, L.; Han, B.; Jia, Y. A vision-based fall detection framework for the elderly in a room environment using motion features and DAG-SVM. Int. J. Comput. Appl. 2021, 2021, 1–9. [Google Scholar] [CrossRef]
  43. Wang, K.; Li, X.; Yang, J.; Wu, J.; Li, R. Temporal action detection based on two-stream You Only Look Once network for elderly care service robot. Int. J. Adv. Robot. Syst. 2021, 18, 17298814211038342. [Google Scholar] [CrossRef]
  44. Zhu, N.; Zhao, G.; Zhang, X.; Jin, Z. Falling motion detection algorithm based on deep learning. IET Image Process. 2021. [Google Scholar] [CrossRef]
  45. Yin, J.; Han, J.; Xie, R.; Wang, C.; Duan, X.; Rong, Y.; Zeng, X.; Tao, J. MC-LSTM: Real-Time 3D Human Action Detection System for Intelligent Healthcare Applications. IEEE Trans. Biomed. Circ. Syst. 2021, 15, 259–269. [Google Scholar] [CrossRef]
  46. Ma, X.; Wang, H.; Xue, B.; Zhou, M.; Ji, B.; Li, Y. Depth-based human fall detection via shape features and improved extreme learning machine. IEEE J. Biomed. Health Inform. 2014, 18, 1915–1922. [Google Scholar] [CrossRef] [PubMed]
  47. Aziz, O.; Musngi, M.; Park, E.J.; Mori, G.; Robinovitch, S.N. A comparison of accuracy of fall detection algorithms (threshold-based vs. machine learning) using waist-mounted tri-axial accelerometer signals from a comprehensive set of falls and non-fall trials. Med. Biol. Eng. Comput. 2017, 55, 45–55. [Google Scholar] [CrossRef] [PubMed]
  48. Tran, T.H.; Le, T.L.; Pham, D.T.; Hoang, V.N.; Khong, V.M.; Tran, Q.T.; Nguyen, T.S.; Pham, C. A multi-modal multi-view dataset for human fall analysis and preliminary investigation on modality. In Proceedings of the 2018 24th International Conference on Pattern Recognition (ICPR), Beijing, China, 20–24 August 2018; pp. 1947–1952. [Google Scholar] [CrossRef]
  49. Adhikari, K.; Bouchachia, H.; Nait-Charif, H. Activity recognition for indoor fall detection using convolutional neural network. In Proceedings of the 2017 Fifteenth IAPR International Conference on Machine Vision Applications (MVA), Nagoya, Japan, 8–12 May 2017; pp. 81–84. [Google Scholar] [CrossRef] [Green Version]
  50. Liu, C.; Hu, Y.; Li, Y.; Song, S.; Liu, J. PKU-MMD: A large scale benchmark for continuous multi-modal human action understanding. arXiv 2017, arXiv:1703.07475. [Google Scholar]
  51. Yu, X.; Jang, J.; Xiong, S. A Large-Scale Open Motion Dataset (KFall) and Benchmark Algorithms for Detecting Pre-impact Fall of the Elderly Using Wearable Inertial Sensors. Front. Aging Neurosci. 2021, 2021, 399. [Google Scholar] [CrossRef] [PubMed]
  52. Fang, H.S.; Xie, S.; Tai, Y.W.; Lu, C. Rmpe: Regional multi-person pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2334–2343. [Google Scholar]
Figure 1. Workflow for activity recognition.
Figure 1. Workflow for activity recognition.
Sensors 22 03991 g001
Figure 2. Sliding Windows for activity recognition.
Figure 2. Sliding Windows for activity recognition.
Sensors 22 03991 g002
Figure 3. Selection of number of skeletons per window.
Figure 3. Selection of number of skeletons per window.
Sensors 22 03991 g003
Figure 4. Exhaustive search graph.
Figure 4. Exhaustive search graph.
Sensors 22 03991 g004
Figure 5. Confusion matrix for fall detection for RF, KNN, SVM, MLP, and AdaBoost, respectively. True positives (TP) are in the upper left corner; false positives (FP) are in the lower left corner; false negatives (FN) are in the upper right corner; true negatives (TN) are in the lower right corner.
Figure 5. Confusion matrix for fall detection for RF, KNN, SVM, MLP, and AdaBoost, respectively. True positives (TP) are in the upper left corner; false positives (FP) are in the lower left corner; false negatives (FN) are in the upper right corner; true negatives (TN) are in the lower right corner.
Sensors 22 03991 g005
Figure 6. Comparison of confusion matrices for fall detection using UP-Fall: RF proposed method (left) vs. Frame by Frame+RF (right) [12]. Best results are shown in red.
Figure 6. Comparison of confusion matrices for fall detection using UP-Fall: RF proposed method (left) vs. Frame by Frame+RF (right) [12]. Best results are shown in red.
Sensors 22 03991 g006
Figure 7. Confusion matrices in activity recognition: Windowing+RF. Best results are shown in red.
Figure 7. Confusion matrices in activity recognition: Windowing+RF. Best results are shown in red.
Sensors 22 03991 g007
Figure 8. Confusion matrices in activity recognition: Frame-by-Frame+RF. Best results are shown in red.
Figure 8. Confusion matrices in activity recognition: Frame-by-Frame+RF. Best results are shown in red.
Sensors 22 03991 g008
Figure 9. Comparison of confusion matrices for fall detection using UR-Fall: RF proposed method (left) vs. Frame-by-Frame+RF (right) [12]. Best results are shown in red.
Figure 9. Comparison of confusion matrices for fall detection using UR-Fall: RF proposed method (left) vs. Frame-by-Frame+RF (right) [12]. Best results are shown in red.
Sensors 22 03991 g009
Table 1. State of the art for human activity recognition by video images. Please consider the following meaning ✓—Yes, X—No.
Table 1. State of the art for human activity recognition by video images. Please consider the following meaning ✓—Yes, X—No.
RefMulti
Activity
SkeletonSequenceCam
RGB
ModelDataset
[21]XXCNNUR-Fall
[22]XXNanoDet-LiteUR-Fall
[23]XXMCCFUR-Fall
[24]XXDepth2D CNN-GRUUR-Fall
[25]XXDepthCNN-SVMUR-Fall
[26]XXDepthRVMown
[27]XXDepthST-GCNTST-Fall
[28]XXXCNN-YOLOCMD-Fall
[29]XXXCNNown
[30]XXXKNN-SVMBOMNI
[31]XXXCNNown
[17]XownLSTMUP-Fall
[32]XownAutoEncoderUP-Fall
[10]XOpenPoseLSTMUR-Fall
[33]XPoseNetGRUUR-Fall
[34]XOpenPoseLSTM-GRUUR-Fall
[21]XOpenPoseSVMUR-Fall
[35]XOpenPoseSVMUR-Fall
[36]XOpenPoseLSTMCMU
[37]XPoseNetCNNown
[38]XPoseNetCNN-RNNown
[39]XOpenPoseDepthRFSDU-Fall
[40]XownGRUSDU-Fall
[41]-OpenPose---
[14]XAlphaPoseXKNNUP-Fall
[42]✓(5)XXDAG-SVMown
[43]✓(7)Yolo v33D CNNPKU-MMD
[44]✓(4)OpenPoseDepthDNNFDD
[45]✓(8)ownDepthMC-LSTMTST-Fall
[12]✓(12)AlphaPoseXRF-SVM
MLP-KNN
UP-Fall
Table 2. Vision-based datasets for fall detection.
Table 2. Vision-based datasets for fall detection.
DatasetFall TypesOther
Activities
TrialsML
Method
Performance
SDUFall
[46]
Fall to
the floor
Sitting,
walking,
squatting,
lying,
bending
6 actions
10 times
Bag of
words model
built upon
curvature
scale space
features
Accuracy:
79.91 % ,
Sensitivity
81.91 % ,
Specificity
76.62 %
SFU-IMU
[47]
15
types
of falls
Walking,
Standing,
Rising,
Ascending
stairs,
Picking up
an object
3
repetitions
SVMSensitivity
96 % ,
Specificity
96 %
UR-Fall
[11]
From
standing,
from sitting
on a chair
Lying,
walking,
sitting down,
crouching
down
70
sequences
SVMAccuracy:
94.99 % ,
Precision
89.57 % ,
Sensitivity
100 % ,
Specificity
91.25 %
CMD-FALL
[48]
While
walking,
lying on
the bed,
sitting on
the chair
Horizontal
movement
20
actions
CNN:
Res-TCN
F1-Score
(Activity):
39.38 % ,
F1-Score
(Fall):
76.06 %
Fall-Dataset
[49]
Fall to
the floor
Standing,
sitting,
lying,
bending and
crawling
CNNAccuracy:
74 %
PKU-MMD
[50]
Drinking,
waving hand,
putting on
the glassed,
hugging,
shaking...
6
sequences
RNN
SVM
LSTM
F 1 -Score:
52.6 %
13.1 %
33.3 %
K-Fall
[51]
15
types
of falls
21
types of
activities
Conv-LSTMAccuracy:
99.32 % ,
Recall:
99.3 %
UP-Fall
[13]
Forward
using hands,
forward
using
knees,
backward,
sideward,
sitting
Walking,
standing,
sitting,
picking up
an object,
jumping,
laying,
kneeling
down
3
repetitions
RF
SVM
MLP
KNN
Accuracy:
32.33 %
34.40 %
27.08 %
34.03 %
Table 3. Performance (mean ± standard deviation) obtained for each model of the proposed fall detection system using UP-Fall. The best results are shown in bold.
Table 3. Performance (mean ± standard deviation) obtained for each model of the proposed fall detection system using UP-Fall. The best results are shown in bold.
Performance Ramirez et al. [12]
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.34 ± 0.0398.23 ± 0.1798.82 ± 0.1099.48 ± 0.0598.52 ± 0.08
SVM98.81 ± 0.0798.15 ± 0.1996.50 ± 0.2799.47 ± 0.0597.32 ± 0.17
MLP97.39 ± 0.1093.87 ± 0.8594.57 ± 1.1598.21 ± 0.2994.21 ± 0.27
KNN98.84 ± 0.0697.53 ± 0.1597.30 ± 0.2499.29 ± 0.0497.41 ± 0.16
Performance of the Proposed Method
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.81 ± 0.0499.30 ± 0.1799.81 ± 0.0799.81 ± 0.0599.56 ± 0.09
SVM93.37 ± 0.1599.76 ± 0.0569.12 ± 0.8099.95 ± 0.0181.66 ± 0.57
MLP98.95 ± 0.1497.62 ± 0.4997.47 ± 0.8699.35 ± 0.1497.54 ± 0.33
KNN99.69 ± 0.0499.17 ± 0.1899.39 ± 0.1299.77 ± 0.0599.28 ± 0.10
AdaBoost99.71 ± 0.0499.11 ± 0.1499.52 ± 0.1199.76 ± 0.0499.31 ± 0.10
Table 4. Comparison with other methods using skeletons for fall detection with UP-Fall. Please note that ✓—yes, X—No.
Table 4. Comparison with other methods using skeletons for fall detection with UP-Fall. Please note that ✓—yes, X—No.
MethodsDatasetCAMSkeleton SequencesAccuracy
Taufeeque et al. [17]UP-FallRGB98.28%
Galvão et al. [32]UP-FallRGB98.62%
Ramirez et al. [12]UP-FallRGBX99.34%
Our methodUP-FallRGB99.81%
Table 5. Performance (mean ± standard deviation) obtained for each model of the activity recognition system using UP-Fall.
Table 5. Performance (mean ± standard deviation) obtained for each model of the activity recognition system using UP-Fall.
Performance in Ramirez et al. [12]
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.45 ± 1.0296.60 ± 0.4888.99 ± 0.5699.70 ± 0.5092.34 ± 0.39
SVM99.65 ± 0.0193.85 ± 0.6587.29 ± 0.8399.79 ± 0.0190.20 ± 0.59
MLP98.93 ± 0.1785.39 ± 1.6971.44 ± 2.3099.34 ± 0.1175.95 ± 1.84
KNN99.60 ± 0.0191.65 ± 0.5584.17 ± 0.8199.76 ± 0.0187.35 ± 0.63
Performance of the Proposed Method
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.91 ± 0.0197.73 ± 0.2895.60 ± 0.3999.95 ± 0.0196.63 ± 0.33
SVM98.60 ± 0.0495.60 ± 0.6757.40 ± 0.6099.14 ± 0.0262.87 ± 0.81
MLP99.28 ± 0.1782.71 ± 2.2378.97 ± 2.0199.58 ± 0.1079.89 ± 1.96
KNN99.81 ± 0.0192.49 ± 0.4091.50 ± 0.3799.89 ± 0.0191.95 ± 0.35
AdaBoost99.81 ± 0.0395.53 ± 0.5092.56 ± 0.3899.89 ± 0.0293.97 ± 0.39
Table 6. Other methods using skeletons for fall detection and activity recognition. Please consider the following meaning ✓—Yes, X—No.
Table 6. Other methods using skeletons for fall detection and activity recognition. Please consider the following meaning ✓—Yes, X—No.
MethodsDatasetCAMActivitiesSkeleton SequencesAccuracy
Wang et al. [43]PKU-MMDRGB795.00%
Zhu et al. [44]FDDDepth499.04%
Yin et al. [45]TST-FallDepth893.90%
Ramirez et al. [12]UP-FallRGB12X99.65%
Our methodUP-FallRGB1299.91%
Table 7. Performance (mean ± standard deviation) obtained for each model of the proposed fall detection system using UR-Fall. Best results are shown in bold.
Table 7. Performance (mean ± standard deviation) obtained for each model of the proposed fall detection system using UR-Fall. Best results are shown in bold.
Performance in Ramirez et al. [12]
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.11 ± 0.4399.18 ± 0.5997.53 ± 1.8199.71 ± 0.2198.34 ± 0.80
SVM98.60 ± 0.3096.50 ± 0.8898.37 ± 0.8898.69 ± 0.3297.42 ± 0.60
MLP90.79 ± 4.1486.63 ± 13.6083.06 ± 11.6193.69 ± 8.1583.19 ± 5.55
KNN98.88 ± 0.3198.41 ± 0.9697.41 ± 1.1199.43 ± 0.3397.90 ± 0.60
AdaBoost98.95 ± 0.3198.42 ± 0.9897.67 ± 1.1299.43 ± 0.3498.04 ± 0.59
Performance of the Proposed Method
ModelAccuracy (%)Precision (%)Recall (%)Specificity (%) F 1 -Score (%)
RF99.51 ± 0.3399.35 ± 0.6899.15 ± 0.7199.69 ± 0.3299.25 ± 0.51
SVM96.39 ± 0.9290.60 ± 2.1799.36 ± 0.5594.94 ± 1.3494.77 ± 1.23
MLP92.18 ± 4.7188.53 ± 8.6289.42 ± 17.0493.39 ± 5.8287.39 ± 10.58
KNN99.28 ± 0.3998.88 ± 0.6498.95 ± 0.8499.45 ± 0.3198.91 ± 0.58
AdaBoost99.42 ± 0.3499.25 ± 0.6398.99 ± 0.8099.64 ± 0.3099.12 ± 0.52
Table 8. Comparison with other methods using skeletons for fall detection with UR-Fall. Please consider the following meaning ✓—Yes, X—No.
Table 8. Comparison with other methods using skeletons for fall detection with UR-Fall. Please consider the following meaning ✓—Yes, X—No.
MethodsDatasetCAMSkeleton SequencesAccuracy
Guan et al. [10]UR-FallRGB99.00%
Kang et al. [33]UR-FallRGB99.46%
Lin et al. [34]UR-FallRGB98.20%
Chhetri et al. [21]UR-FallRGB95.11%
Dentamaro et al. [35]UR-FallRGB99.00%
Ramirez et al. [12]UR-FallRGBX99.11%
Our methodUR-FallRGB99.51%
Table 9. Execution times for 10 k-fold of cross validations for each ML model.
Table 9. Execution times for 10 k-fold of cross validations for each ML model.
Training and Validation Times [s]
ModelFall Detection
with UP-Fall
Activity Recognition
with UP-Fall
Fall Detection
with UR-Fall
RF1644.322262.0623.54
SVM64,696.15120,464.1331.04
MLP981.784913.33317.17
KNN376.60439.881.23
AdaBoost3148.763936.2749.81
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ramirez, H.; Velastin, S.A.; Aguayo, P.; Fabregas, E.; Farias, G. Human Activity Recognition by Sequences of Skeleton Features. Sensors 2022, 22, 3991. https://doi.org/10.3390/s22113991

AMA Style

Ramirez H, Velastin SA, Aguayo P, Fabregas E, Farias G. Human Activity Recognition by Sequences of Skeleton Features. Sensors. 2022; 22(11):3991. https://doi.org/10.3390/s22113991

Chicago/Turabian Style

Ramirez, Heilym, Sergio A. Velastin, Paulo Aguayo, Ernesto Fabregas, and Gonzalo Farias. 2022. "Human Activity Recognition by Sequences of Skeleton Features" Sensors 22, no. 11: 3991. https://doi.org/10.3390/s22113991

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop