Next Article in Journal
A Serious Mixed-Reality Game for Training Police Officers in Tagging Crime Scenes
Previous Article in Journal
CAST-YOLO: An Improved YOLO Based on a Cross-Attention Strategy Transformer for Foggy Weather Adaptive Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Granular Computing Classifier for Human Activity with Smartphones

by
Mahmood A. Mahmood
1,2,*,†,
Saleh Almuayqil
1,†,
Khalaf Okab Alsalem
1,† and
Karim Gasmi
1,3,†
1
Department of Information Systems, College of Computer and Information Sciences, Jouf University, Sakaka 72388, Saudi Arabia
2
Department of Information Systems and Technology, Faculty of Graduate Studies for Statistical Research, Cairo University, Giza 12613, Egypt
3
Department of Computer Science, College of Arts and Sciences at Tabarjal, Jouf University, Sakaka 72388, Saudi Arabia
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Appl. Sci. 2023, 13(2), 1175; https://doi.org/10.3390/app13021175
Submission received: 19 December 2022 / Revised: 5 January 2023 / Accepted: 13 January 2023 / Published: 15 January 2023
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
Recently, smart home devices have been widely used to assist and facilitate the lives of human beings. Human activity recognition (HAR) aims to identify human activities using sensors in smartphones. Therefore, it can be employed in many applications, such as remote health monitoring for disabled and elderly people. This paper proposes a granular computing-based approach to classifying human activities using wearable sensing devices. The approach has two main phases: feature selection and classification. In the feature selection phase, the approach attempts to remove redundant and irrelevant attributes. At the same time, the classification phase makes use of granular computing concepts to build the granules and find the relationships between granules at different levels. To evaluate the approach, we applied the dataset to five famous machine learning models. For the comparative evaluation, we also tested other well-known machine learning methods. The experimental results presented in this paper show that the approach outperformed common traditional classifiers in terms of classification precision recall, f-measure, and MCC for most recognized human activities by approximately 97.3%, 94%, 95.5%, and 94.8%, respectively. However, in terms of processing time, it performs comparably.

1. Introduction

Human activity recognition has become an important research area in the machine learning literature. Due to the development of games, TV, and other technologies that depend on human motions, many researchers are looking for the best classifier that can efficiently determine human motions while outperforming other classifiers in terms of performance accuracy [1]. Human activity recognition makes use of machine learning techniques to determine common activities in real life, such as sitting, walking, and standing. Accordingly, human activity recognition can be used to identify personal relationships among people by collecting data from multiple objects at the same place. It can be applied in various fields such as security, surveillance, games, and remote monitoring [1]. A human activity may be a simple or complex movement. Examples of simple movements include walking, lying, running, standing, and setting. However, complex movements contain walking downstairs and walking upstairs. Furthermore, a complex movement can be decomposed into several simple movements [2].
There are several devices that are used to capture human motion, such as cameras or sensors. Cameras can be employed to record the human activity videos, and then computer vision techniques are utilized to answer two questions: “What is the action?” and “Where is the action in the video?” In recent years, researchers have focused on “dense sensing”, where many sensors are distributed in the environment to capture human activities [2].
Recently, various methods have been introduced to solve the human activity recognition problem with efficient accuracy. The study by Ahmed et al. (2020) improved human activity recognition based on sensor data. This model employs a hybrid feature selection model using sequential floating forward search (SFFS) to select the most representative features. It makes use of a multiclass support vector machine (SVM) to classify the observations into its labels. This model achieved higher classification accuracy than traditional machine learning classifiers [3].
The study by Mohamed et al. (2018) presented a technique for recognizing human activities based on a multi-label classification of various accelerometer sensor positions. In order to achieve high accuracy, this technique focuses on determining the optimal sensor placement in relation to the performed activity.It can recognize six different types of activities. Furthermore, it compares among traditional multi-class and multi-label classification methods such as rotation forest [4], SVM [5], and Iterative Dichotomizer 3 (ID3) [6]. However, this model relies on traditional machine learning classifiers, so it searches for the one that gives the highest classification accuracy.
Recently, (Burns and Whyne 2020) suggested a novel HAR approach aimed at personalizing human activity recognition based on deep triplet embedding. The subject triplet selection makes use of triplet neural networks for personalized activity recognition. Therefore, it improves the performance of the training process. However, the latency time increased as the size of the input data increased [7].
Also, (Archana and Hareesh 2021) suggested that Resnet and 3D CNN recognize human activities in real-time. And the accuracy of recognition can be improved by combining ResNet with 3D CNN. As a result, a technique for identifying, tracking, and detecting real-time human movements has been created [8]. The study by Giovanni et al. (2013) describes a system for identifying and reporting unusual behaviors. The suggested approach uses the situation awareness paradigm to identify unusual behavior. The architecture adds temporal information, including duration and frequency, to the recognition process [9].
Giovanni and Antonio’s (2017) offer a method for recognizing that Alzheimer’s disease is the most prevalent kind of dementia. Patients with this type of dementia may exhibit symptoms like restless sleep, muscle rigidity, or other standard Alzheimer’s movement anomalies. They have concentrated on the alterations connected to sleep problems. The fact that sleep disorders are not well-known makes it challenging to create software that can recognize them. Using deep learning algorithms, they were able to solve the issue of automatically identifying sleep abnormalities in Alzheimer’s disease patients [10].
Babiker et al. (2017) show the development of an intelligent human activity identification system. Each level of the suggested system employed a variety of digital image processing techniques, including background subtraction, binarization, and morphological operations. Based on the human activity features database that was taken from the frame sequences, a strong neural network was constructed. A multi-layer feed forward perceptron network was used to categorize the dataset’s activities [11].
This article aims to determine the set of human activities based on a predefined, finite set of activities. Well-known classification models could be used to solve this problem. Therefore, the process of recognition consists of two phases: the training and testing phases. In the training phase, well-known samples of human activities are used to generate a supervised model. This model can differentiate among the characteristics of human activities. However, the testing phase evaluates the performance of the established model by taking activity samples without their labels. Moreover, the models are evaluated by comparing the true state of nature to the expected activities [12]. This paper attempted to answer the following questions: “What information is useful in determining human action?” (i.e., a feature selection problem), “What is the action?” (i.e., a recognition problem), and “What is the response time?” (i.e., a problem of time complexity).
The rest of the paper is organized as follows: Section 2 presents basic concepts, while Section 3 provides the approach in detail. However, the experimental results and discussion are introduced in Section 4. Finally, Section 5 concludes this work.

2. Basic Concepts

In this section, a literature review for feature selection methods is presented. Also, the rule induction granular computing is introduced.

2.1. Feature Selection

The recent explosion of dataset size, in both number of observations and dimensions, has pushed towards the usage of data reduction techniques. Moreover, increasing dataset size might sometimes produce worse performances in data analytics applications. Furthermore, data reduction can improve storage efficiency and reduce costs. Data reduction can be achieved either by decreasing the number of objects or by decreasing the number of features. Therefore, data reduction is considered a significant preprocessing task for big data analytics techniques [13].
Feature reduction techniques can be divided into two main groups: feature construction and feature selection. Feature construction techniques transform the original features in high-dimensional space into new low-dimensional features. The newly generated features are usually linear or nonlinear functions of the original features, e.g., principal component analysis (PCA) [14], singular value decomposition (SVD) [14], and linear discriminant analysis (LDA) [14].
On the other hand, feature selection aims at removing a group of irrelevant and redundant features, attributes, or variables [15]. As shown in Figure 1, these methods may be classified according to the type of learning algorithms into three main approaches: supervised, unsupervised, and semi-supervised. Unsupervised feature selection techniques do not require labeled data. These techniques are employed before supervised machine learning algorithms such as clustering. They focus on finding the set of features that maximize clustering quality measures [16,17]. When some subsets of data are labeled but others are not, semi-supervised feature selection techniques are used [18]. Supervised feature selection methods are used in conjunction with supervised machine learning algorithms such as classification or regression, where the decision or class variable is present. These techniques attempt to select a group of features that maximize the accuracy of the predicted decision variable using predefined supervised techniques [14,19]. They require the availability of labeled data. Based on the selection methodologies, supervised feature selection algorithms are further classified into three types: wrapper, filter, and hybrid [20].
Wrapper feature selection methods make use of optimization algorithms to choose the set of features that improve the classification accuracy of a predefined learning algorithm [21]. However, filter feature selection algorithms choose features based on their intrinsic characteristics [22]. On the other hand, hybrid feature selection methods combine the advantages of both filter and wrapper feature selection algorithms. They often consist of two phases. In the first phase, they employ either a filter or a wrapper technique as the initial step for minimizing a set of features. while another type of feature selection algorithm is used in the next phase to select the final set of attributes [23]. Filter feature selection methods are widely used in the literature because they are usually fast and scalable techniques [23]. This paper is concerned with supervised feature selection techniques due to the availability of class labels for human activities. It focuses on filter-based feature selection techniques to choose the list of the most relevant features for recognizing human activities.
There are three types of filter feature selection techniques: statistical and informational, bioinspired, and spectral based. The first group makes use of statistical and/or information measures such as variance, entropy, and mutual information among features. Bio-inspired techniques employ bio-inspired stochastic optimization search strategies for choosing a good subset of features based on some quality criteria. However, the third group makes use of spectral analysis to find the best representative features [24].
Finally, statistical feature and information-based selection algorithms can be further classified into two subcategories: univariate and multivariate techniques. Univariate feature selection algorithms detect redundant features by ranking them individually, for example, based on their association with a class variable or information gain. However, multivariate feature selection techniques handle features jointly rather than individually. Multivariate methods are used to detect redundant and irrelevant features [25].
Nowadays, feature selection plays an important role in machine learning projects because a good feature selection algorithm influences overfitting, improves accuracy, and minimizes training time [15]. Therefore, this paper focuses on multivariate filter based feature selection because the set of human activities has class labels and the other features have numerical values. Each record in the dataset has a triaxial acceleration from the accelerometer (total acceleration) and the estimated body acceleration, a triaxial angular velocity from the gyroscope, a 561-feature vector with time and frequency domain variables, and its activity label.

2.2. Granular Computing

Granulation aims at grouping elements based on their similarity, functionality, proximity, or indistinguishability. Granular Computing (GrC) formally represents a granule as a subset of a universal set [26]. In machine learning, the classification problem can be seen as a model of inductive learning, which exploits the training sets to build a model that provides an efficient representation for all testing sets. Granular computing employs the partitioning process by learning a classifier. It employs a rule induction algorithm that is applied using supervised machine learning techniques [27].
Computing the granules can be regarded as knowledge processing. Granules can be defined as the basic unit of knowledge. Each granule can be perceived by a human’s knowledge processing. Therefore, unknown concepts (a subset of the universe dataset) can be approximated by known grains according to the axioms of approximation [27].
The rule induction technique is used in granular computing to emulate the supervised machine learning methods used to classify the dataset. In rule induction, a set of rules (r1, r2, …, rm) is expressed to map the input space to the output space. Each rule consists of a logical implication, and the results become valid if the prediction is satisfied [28,29]. AQ-family [30] and CN2 [31] are examples of traditional rule induction methods. In GrC, every rule, ri, is associated with a certain subset of instances; it might be considered a granule from the GrC point of view [27].
Definition 1.
In the two-dimensional plane space of the information system S = (U, R), the elementary granulation in each granulation is designated by a point in the plane, known as the granular node. For elementary granulations within the same granulation, there is no line segment connecting; however, for elementary granulations within different granulations, a line segment connecting in the plane space denotes that the two granulations have the intersection set. This line segment is referred to as the granulation side, and the intersection set on the granulation side denotes the granulation side’s weight value. As a result, a granular network in two dimensions is created [32].
Definition 2.
A directed weighted graph can be used to represent the entire granular network of a decision table since each granulation side is represented by a directed line segment from left to right, as shown in Figure 2 [32].
The following stages are used to build granular computing network (GrC) for the dataset S = (xi, yi) | I = 1, 2, …, n in N-dimensional space. First, the point in S is symbolized by the indivisible atomic grains. Second, based on the set’s view, a distance between two granules is suggested. Thirdly, the union process is jointly determined by distance and granularity. Finally, the class of test data is predicted using the granule set, which is obtained at this point.

2.2.1. Granularity and Granule Representation

In fact, the union granule and the meet granule are related to the shapes of the granules; the distance between two granules is not easily calculated; and the shapes of the granules are uneven. To explore granular computing, the granule is represented as regular shapes such as a hyperdiamond, a hypersphere, hypercube, and a hyperbox. The hyperdiamond granules represented as a vector include the center of the hyperdiamond and half of its diagonal length. The hypersphere granules represented as vectors include the center and radius of the hypersphere. A vector that includes the hypercube’s center and one-half of its side length is used to represent a hypercube granule. The hyperbox granule is represented as a vector with vectors induced at both the beginning and end points.
In this paper, the granule computing network calculates the distance between two hypesphere granules (1) using the Euclidean distance (2) between the two centers of each granule.
g r ( G ) = r
where r is the radius of hypersphere.
g r = x y 2

2.2.2. Operators between Granules

Any point is regarded as an indivisible atomic granule; the union process is required to generate larger granules than atomic granules. The decomposition process is important for breaking up bigger grains into smaller ones, since the whole universe is a granule with the highest degree of granularity. The union hypersphere granule is (3) for two sphere granules, G 1 = ( C 1 , r 1 ) and G 2 = ( C 2 , r 2 ) .
G = G 1 G 2

3. Methods and Materials

In this section, the model of human activity recognition is briefly described in a detailed procedure. The model is diagrammatically shown in Figure 3. The model consists of two major phases: the first phase targets selecting the optimal set of attributes from the dataset, and the second phase presents the model, which aims at classifying human motion based on the concept of a granular computing classifier. Moreover, the quality of the raw dataset is low. Therefore, the approach performs the data preprocessing steps such as missing value imputation, feature normalization, and data encoding.

3.1. Feature Selection

In this phase, the dataset is split into two subsets: the first subset contains 70% of the whole dataset for training, and the second subset includes 30% for testing. The first subset is used to generate the optimal set of attributes. The feature selection method called fast correlation based filter (FCBF), FCBF is a filter selection for high dimensional data and can remove a large number of features that are redundant. FCBF is used to reduce the attributes based on the pairwise correlation between each attribute and the decision attribute [33], as shown in Figure 4.

3.2. Granular Computing Classifier

The granular computing classifier has two major parts: a granule builder and a granular computing network.

3.2.1. Granules Builder

The granules builder method describes the number of objects in granules that are similar in a specific formula. These objects are called “basic granules” [27]. The fundamental idea is that the pair (a, m) represents the value of the decision attribute and the set of objects that are correlated with this value. Each pair is a basic concept called a “basic granule”, and then the builder method builds the family of basic concepts where an object may be included in many basic granules.

3.2.2. Granular Computing Network

Figure 5 depicts network techniques for granular computing. The training granular computing network algorithm is suggested by the following steps for training set: The atomic granule is first formed using the training set. Second, the stated union operator introduces the threshold ϵ of granularity to conditionally combine the atomic granules, and the granule set is made up of all the union granules. Thirdly, the union process ends if all atomic granules are included in the GS granules; otherwise, the second phase is continued.
This stage computes the fitness value (i.e., Minimum Euclidean distance) of each basic concept to optimize the basic granules that are correlated to a specific class of decision attribute. The approach combines these basic granules to construct granule nodes in a granular network. The algorithm steps are shown in Figure 5.
The goal of the training process is to obtain the granule set and the related class label, which are used to predict the class label of an unknown input. The testing set, which is used to evaluate the effectiveness of granular computing network algorithms, is composed of testing data, including various data and their class labels. If the prediction class labels match the actual class labels, the testing data is classified. Otherwise, the testing data is incorrectly classified. One of the capabilities of granular classification algorithms is classification accuracy.

4. Experimental Results and Discussion

The purpose of this work is to evaluate the performance of the classification model for recognizing various kinds of human activities with the efficient placement of the sensor. The approach is compared in this experiment to traditional machine learning classifiers such as decision trees with a confidence factor of 0.25 and a minimum number of objects of 2, K-nearest neighbors (KNN) with a value of k = 49 [34], multi-layer perceptrons (MLP) with four hidden layers [35], support vector machines (SVM) with a sigmoid kernel function [5], naive bayes [36], and random forest with number of trees in the forest are 100, number of variables randomly sampled as candidates at each split are 100, maximum number of depth is unlimited, minimum number of objects per leaf node is 1, and minimum numeric class variance proportion is 0.001 [37].

4.1. Dataset Description

The Samsung Galaxy SII dataset from the UCI machine learning repository [2] was used to evaluate traditional machine learning classifiers as well as the approach. This dataset was collected from 30 volunteers aged 19–48 years. Each person wore a smartphone on their waists. Everyone had performed six activities. Moreover, the dataset consists of 10,299 observations and 561 attributes. The size of the dataset for each human activity in the training and testing datasets is described in Table 1.

4.2. Experimental Results on Approach

The training set contains 561 attributes. Preprocessing processes are applied to the training set to enhance its quality by removing noise. Moreover, the final number of attributes after performing feature selection is 105. The granular builder stage uses the optimal feature attributes to construct the basic granules and the basic concept family. Furthermore, the granular computing network employs the algorithm shown in Figure 5 to build the granular computing network with a threshold ϵ of granularity from 0.2 to 0 with step 0.01. Furthermore, the approach discovered that the number of features influencing the decision attribute on the training set is six. Additionally, the classifier executes the optimal feature attributes of the testing set by using the testing algorithm shown in Figure 6 subset to measure the precision and recall of the approach.

4.3. Discussion

In this section, the approach for human activities using a granular computing classifier is evaluated versus traditional machine learning classifiers, i.e., KNN, Naive Bayes, MLP, Random Forest, and SVM. The granular computing classifier outperformed traditional machine learning classifiers. The evaluating metrics that are used in making comparisons include precision [38], recall [38], f-measure [38], and Matthews correlation coefficient (MCC) [39]. In fact, the approach can achieve correctly classified objects better than other traditional machine learning classifiers. As shown in Table 2, the percentage of correctly classified objects using our approach is 94%. However, the percentages of correctly classified objects for KNN Naive Bayes, MLP, Random Forest, and SVM are 86.1%, 84%, 92.7%, 90.7%, and 93.2%, respectively. Table 3 shows the detailed accuracy of candidate classifiers per class. It consists of six activations: lying, running, standing, walking, stepping upstairs, and stepping downstairs. It reports the activity precision per row, and the last row concludes the overall precision of each algorithm over all activities. Table 3 emphasizes that the precision values of traditional machine learning classifiers are less than our approach in all activities as well as the overall precision shown in Figure 7. Table 4, Table 5 and Table 6 compare among candidate activity recognition solutions in terms of recall, f-measure, and MCC based on each activity as well as overall recall, f-measure, and MCC values. These tables indicate that SVM outperforms the approach for two activities: walking and walking downstairs. However, the approach has the best recall, f-measure, and MCC for the other 4 activities as well as the best overall average of activities. Moreover, Figure 8, Figure 9 and Figure 10 depict bar chart comparisons of candidate solutions in terms of recall, f-measure, and MCC, respectively. Finally, Table 7 indicates the overall processing time in seconds required for each classifier in both the learning and testing phases. The processing time of Naive Bayes is the minimum. However, the approach comes in third place after the Naive Bayes and SVM algorithms. Therefore, it has an acceptable processing time.

5. Conclusions

This article uses a granular computing classifier to recognize human activity. The approach consists of two phases: feature selection and classification. In the feature selection phase, the approach aims at identifying the most representative attributes that differentiate among different human activities. Feature selection tries to remove redundant and irrelevant attributes. On the other hand, the classification phase employs granular computing concepts to build a classification model to predict the expected label. Experimental results show that the approach significantly improves the classification accuracy of human activity recognition algorithms. Furthermore, the approach outperforms traditional classifiers in terms of precision, overall recall, overall f-measures, and overall MCC. Moreover, it has the highest recall, f-measures, and MCC for all activities except walking and walking down stairs. Although the processing time of the approach is not the best, it achieves a third lower processing time than SVM and Naive Bayes. Therefore, its processing time is acceptable with respect to other algorithms.

Author Contributions

Conceptualization, M.A.M., K.G. and S.A.; Methodology, M.A.M.; Software, M.A.M. and K.O.A.; Validation, M.A.M., S.A. and K.O.A.; Resources, M.A.M. and K.G.; Data curation, K.O.A. and K.G.; Formal analysis, M.A.M. and K.G.; Investigation, M.A.M.; Project administration, M.A.M.; Supervision, M.A.M.; Visualization, M.A.M. and K.G.; Writing—original draft, M.A.M. and K.O.A.; Writing—review & editing, M.A.M. and K.G. 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

The dataset is a public dataset in the machine learning repository https://archive.ics.uci.edu/ml/datasets/human+activity+recognition+using+smartphones#, accessed on 4 January 2023.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
HARHuman Activity Recognition
SFFSSequential Floating Forward Search
SVMSupport Vector Machine
ID3Iterative Dichotomizer 3
PCAPrincipal Component Analysis
SVDSingular Value Decomposition
LDALinear Discriminant Analysis
GrCGranular Computing
KNNK-Nearest Neighbors
MLPMulti-Layer Perceptron
MCCMatthews Correlation Coefficient

References

  1. Anguita, D.; Ghio, A.; Oneto, L.; Parra, X.; Reyes-Ortiz, J.L. Energy Efficient Smartphone-Based Activity Recognition using Fixed-Point Arithmetic. J. Univers. Comput. Sci. 2013, 19, 1295–1314. [Google Scholar]
  2. Anguita, D.; Ghio, A.; Oneto, L.; Parra, X.; Reyes-Ortiz, J.L. A Public Domain Dataset for Human Activity Recognition using Smartphones. In Proceedings of the ESANN 2013—European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, Bruges, Belgium, 24–26 April 2013; pp. 437–442. [Google Scholar]
  3. Ahmed, N.; Rafiq, J.I.; Islam, M.R. Enhanced human activity recognition based on smartphone sensor data using hybrid feature selection model. Sensors 2020, 20, 317. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Rodriguez, J.; Kuncheva, L.; Alonso, C. Rotation Forest: A new classifier ensemble method. IEEE Trans. Pattern Anal. Mach. Intell. 2008, 28, 1619–1630. [Google Scholar] [CrossRef] [PubMed]
  5. Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
  6. Quinlan, J.R. Induction of decision trees. Mach. Learn. 1986, 1, 81–106. [Google Scholar] [CrossRef] [Green Version]
  7. Burns, D.M.; Whyne, C.M. Personalized Activity Recognition with Deep Triplet Embeddings. arXiv 2020, arXiv:2001.05517. [Google Scholar] [CrossRef] [PubMed]
  8. Archana, N.; Hareesh, K. Real-time Human Activity Recognition Using ResNet and 3D Convolutional Neural Networks. In Proceedings of the 2021 2nd International Conference on Advances in Computing, Communication, Embedded and Secure Systems (ACCESS), Ernakulam, India, 26–28 May 2021; pp. 173–177. [Google Scholar]
  9. Giovanni, P.; Antonio, C.; Giuseppe, P. A Monitoring System enhanced by means of Situation-Awareness for Cognitive Impaired People. In Proceedings of the 8th International Conference on Body Area Networks, Boston, MA, USA, 30 September–2 October 2013. [Google Scholar]
  10. Giovanni, P.; Antonio, C. A Deep Learning-Based Approach for the Recognition of Sleep Disorders in Patients with Cognitive Diseases: A Case Study. In Proceedings of the Federated Conference on Computer Science and Information Systems, Prague, Czech Republic, 3–6 September 2017; Volume 12, pp. 43–48. [Google Scholar]
  11. Babiker, M.; Khalifa, O.; Htike, K.; Hassan, A.; Zaharadeen, M. Automated daily human activity recognition for video surveillance using neural network. In Proceedings of the 2017 IEEE 4th International Conference on Smart Instrumentation, Measurement and Application (ICSIMA), Putrajaya, Malaysia, 28–30 November 2017; pp. 1–5. [Google Scholar]
  12. Agarwal, S.; Whyne, C.M. Data mining: Data mining concepts and techniques. In Proceedings of the 2013 International Conference on Machine Intelligence and Research Advancement (ICMIRA), Katra, India, 21–23 December 2013; pp. 203–207. [Google Scholar]
  13. Li, J.; Cheng, K.; Wang, S.; Morstatter, F.; Trevino, R.P. Feature selection: A data prespective. ACM Comput. Surv. 2018, 50, 1–45. [Google Scholar] [CrossRef] [Green Version]
  14. Alelyani, S.; Tang, J.; Liu, H. Feature selection for clustering: A review. In Data Clustering, 1st ed.; Taylor and Francis Group: Abingdon-on-Thames, UK, 2014; Volume 1, pp. 29–60. [Google Scholar]
  15. Miao, J.; Niu, L. A survey on feature selection. Procedia Comput. Sci. 2016, 91, 919–926. [Google Scholar] [CrossRef] [Green Version]
  16. Farahat, A.K.; Ghodsi, A.; Kamel, M.S. An Efficient Greedy Method for Unsupervised Feature Selection. In Proceedings of the IEEE 11th International Conference on Data Mining, Vancouver, BC, Canada, 11–14 December 2011; pp. 161–170. [Google Scholar]
  17. Guo, J.; Zhu, W. Dependence Guided Unsupervised Feature Selection. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence and Thirtieth Innovative Applications of Artificial Intelligence Conference and Eighth AAAI Symposium on Educational Advances in Artificial Intelligence, New Orleans, LO, USA, 2–7 February 2018; Volume 32, pp. 2232–2239. [Google Scholar]
  18. Sheikhpour, R.; Sarram, M.A.; Gharaghani, S.; Chahooki, M.A. A survey on semi-supervised feature selection methods. Pattern Recognit. 2017, 64, 141–158. [Google Scholar] [CrossRef]
  19. Arvin, A. Medical Applications of Artificial Intelligence; Taylor and Francis Group, CRC Press: Abingdon-on-Thames, UK, 2013. [Google Scholar]
  20. Shi, L.; Du, L.; Shen, Y.D. Robust Spectral Learning for Unsupervised Feature Selection. In Proceedings of the 2014 IEEE International Conference on Data Mining, Shenzhen, China, 14–17 December 2014; pp. 977–982. [Google Scholar]
  21. Solorio-Fernández, S.; Carrasco-Ochoa, J.A.; Martínez-Trinidad, J.F. A review of unsupervised feature selection methods. Artif. Intell. Rev. 2020, 53, 907–948. [Google Scholar] [CrossRef]
  22. Tabakhi, S.; Moradi, P. Relevance/redundancy feature selection based on ant colony optimization. Pattern Recognit. 2015, 48, 2798–2811. [Google Scholar] [CrossRef]
  23. Tang, C.; Liu, X.; Li, M.; Wang, P.; Chen, J. Robust unsupervised feature selection via dual self-representation and manifold regularization. Knowl.-Based Syst. 2018, 145, 109–120. [Google Scholar] [CrossRef]
  24. Yu, K.; Wu, X.; Ding, W.; Pei, J. Towards scalable and accurate online feature selection for big data. In Proceedings of the 2014 IEEE International Conference on Data Mining, Shenzhen, China, 14–17 December 2014; pp. 660–669. [Google Scholar]
  25. Zhao, Z.A.; Liu, H. Spectral Feature Selection for Data Mining, 1st ed.; Chapman and Hall/CRC: Boca Raton, FL, USA, 2012. [Google Scholar]
  26. Lin, T.Y. Granular computing: Examples, intuitions and modeling. In Proceedings of the IEEE International Conference on Granular Computing, Beijing, China, 25–27 July 2005; Volume 1, pp. 40–44. [Google Scholar]
  27. Yao, J.T.; Yao, Y.Y. A Granular Computing Approach to Machine Learning. In Proceedings of the 1st International Conference on Fuzzy Systems and Knowledge Discovery (FSKD’02), Singapore, 18–22 November 2002; pp. 732–736. [Google Scholar]
  28. Mahmood, M.A.; El-Bendary, N.; Hassanien, A.; Hefny, H.A. Fuzzy rule generation approach to granular computing using rough Mereology. In Proceedings of the International Conference on Computer Research and Development, Ho Chi Minh City, Vietnam, 23–24 February 2013; pp. 107–112. [Google Scholar]
  29. Mahmood, M.A.; El-Bendary, N.; Hassanien, A.; Hefny, H.A. Rule generation approach for granular computing using rough Mereology. In Proceedings of the International Conference on Computer Research and Development, Ho Chi Minh City, Vietnam, 23–24 February 2013; pp. 102–106. [Google Scholar]
  30. Wojtusiak, J. AQ Learning. In Encyclopedia of the Sciences of Learning; Seel, N.M., Ed.; Springer: Boston, MA, USA, 2012; pp. 298–300. [Google Scholar]
  31. Clark, P.; Niblett, T. The CN2 induction algorithm. Mach. Learn. 1989, 3, 261–283. [Google Scholar] [CrossRef]
  32. Deng, S.; Li, M.; Guan, S.; Chen, L. The Structure of Granular Network Based on Granular Computing and its Application in Data Reduction. In Proceedings of the 2007 IEEE International Conference on Granular Computing (GRC 2007), San Jose, CA, USA, 2–4 November 2007; pp. 89–89. [Google Scholar]
  33. Senliol, B.; Gulgezen, G.; Yu, L.; Cataltepe, Z. Fast correlation-based filter (FCBF) with a different search strategy. In Proceedings of the 23rd International Symposium on Computer and Information Sciences, Istanbul, Turkey, 27–29 October 2008; pp. 1–4. [Google Scholar]
  34. Altman, N.S. An Introduction to Kernel and Nearest-Neighbor Nonparametric Regression. Am. Stat. 1992, 46, 175–185. [Google Scholar]
  35. Mohamed, R.; Zainudin, M.N.; Sulaiman, M.N.; Perumal, T.; Mustapha, N. Multi-label classification for physical activity recognition from various accelerometer sensor positions. J. Inf. Commun. Technol. 2018, 17, 209–231. [Google Scholar]
  36. Nordhausen, K. The elements of statistical learning: Data mining, inference, and prediction. Int. Stat. Rev. 2009, 77, 482–482. [Google Scholar] [CrossRef]
  37. Ho, T.K. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; Volume 1, pp. 278–282. [Google Scholar]
  38. Soliman, K.; Mahmood, M.A.; El Azab, A.; Hefny, H.A. A Survey of Recommender Systems and Geographical Recommendation Techniques. In GPIS Applications in the Tourism and Hospitality Industry; IGI Global: Pennsylvania, PA, USA, 2018; pp. 249–274. [Google Scholar]
  39. Matthews, B. Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochim. Biophys. Acta Protein Struct. 1975, 405, 442–451. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The Taxonomy of Features Selection Techniques-Supervised.
Figure 1. The Taxonomy of Features Selection Techniques-Supervised.
Applsci 13 01175 g001
Figure 2. Granular Computing Network Example.
Figure 2. Granular Computing Network Example.
Applsci 13 01175 g002
Figure 3. The Approach.
Figure 3. The Approach.
Applsci 13 01175 g003
Figure 4. FCBF Algorithm [33].
Figure 4. FCBF Algorithm [33].
Applsci 13 01175 g004
Figure 5. The Granular Computing Network flowchart.
Figure 5. The Granular Computing Network flowchart.
Applsci 13 01175 g005
Figure 6. The Testing flowchart.
Figure 6. The Testing flowchart.
Applsci 13 01175 g006
Figure 7. Detailed Precision by Class.
Figure 7. Detailed Precision by Class.
Applsci 13 01175 g007
Figure 8. Detailed Recall by Class.
Figure 8. Detailed Recall by Class.
Applsci 13 01175 g008
Figure 9. Detailed F-measure by Class.
Figure 9. Detailed F-measure by Class.
Applsci 13 01175 g009
Figure 10. Detailed MCC by Class.
Figure 10. Detailed MCC by Class.
Applsci 13 01175 g010
Table 1. Dataset size for each human activity.
Table 1. Dataset size for each human activity.
ActivityTraining SetTesting Set
Laying1407537
Sitting1286491
Standing1374533
Walking1226496
Walking Downstairs986420
Walking upstairs1073471
Table 2. Accuracy of Candidates Classifiers.
Table 2. Accuracy of Candidates Classifiers.
ClassifierCorrectly Classified ObjectsIncorrectly Classified Objects
KNN2538409
Naive Bayes2475472
MLP2731216
Random Forest2674273
SVM2745202
Peoposed Approach2770177
Table 3. Detailed Precision by Class.
Table 3. Detailed Precision by Class.
Classifier/ClassKNNRandom ForestMLPNaive BayesSVMApproach
LAYING1.0001.0000.9940.9931.0001.000
SITTING0.8300.8800.8710.9220.9130.967
STANDING0.7520.8530.9050.7110.8650.960
WALKING0.8400.8680.8930.7940.9080.982
WALKING DOWNSTAIRS0.9300.9720.9850.8450.9730.977
WALKING UPSTAIRS0.8480.8900.9230.8520.9440.954
Overall Precision0.8650.9100.9280.8530.9330.973
Table 4. Detailed Recall by Class.
Table 4. Detailed Recall by Class.
Classifier/ClassKNNRandom ForestMLPNaive BayesSVMApproach
LAYING1.0001.0000.9980.9981.0001.000
SITTING0.6840.8330.8900.5740.8371.000
STANDING0.8700.8950.8780.9300.9271.000
WALKING0.9600.9640.9780.8950.9940.899
WALKING DOWNSTAIRS0.7860.8400.9170.7520.9290.817
WALKING UPSTAIRS0.8410.8940.8940.8540.8940.926
Overall Recall0.8610.9070.9270.8400.9310.940
Table 5. Detailed F-measure by Class.
Table 5. Detailed F-measure by Class.
Classifier/ClassKNNRandom ForestMLPNaive BayesSVMApproach
LAYING1.0001.0000.9960.9951.0001.000
SITTING0.7500.8560.8800.7080.8740.983
STANDING0.8070.8730.8910.8060.8950.980
WALKING0.8960.9130.9340.8420.9490.939
WALKING DOWNSTAIRS0.8520.9020.9490.7960.9500.890
WALKING UPSTAIRS0.8440.8920.9080.8530.9180.940
Overall F-measure0.8600.9070.9270.8360.9310.955
Table 6. Detailed MCC by Class.
Table 6. Detailed MCC by Class.
Classifier/ClassKNNRandom ForestMLPNaive BayesSVMApproach
LAYING1.0001.0000.9950.9941.0001.000
SITTING0.7100.8280.8560.6900.8510.980
STANDING0.7630.8450.8680.7670.8710.976
WALKING0.8760.8960.9210.8090.9400.929
WALKING DOWNSTAIRS0.8330.8900.9420.7660.9420.878
WALKING UPSTAIRS0.8150.8710.8910.8250.9040.929
Overall MCC0.8350.8900.9120.8120.9180.948
Table 7. Performance measure for each classifier.
Table 7. Performance measure for each classifier.
Classifier/ClassTime in Seconds
KNN5.55
Random Forest5.83
MLP440.97
Naive Bayes0.97
SVM1.86
Approach4
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mahmood, M.A.; Almuayqil, S.; Alsalem, K.O.; Gasmi, K. A Granular Computing Classifier for Human Activity with Smartphones. Appl. Sci. 2023, 13, 1175. https://doi.org/10.3390/app13021175

AMA Style

Mahmood MA, Almuayqil S, Alsalem KO, Gasmi K. A Granular Computing Classifier for Human Activity with Smartphones. Applied Sciences. 2023; 13(2):1175. https://doi.org/10.3390/app13021175

Chicago/Turabian Style

Mahmood, Mahmood A., Saleh Almuayqil, Khalaf Okab Alsalem, and Karim Gasmi. 2023. "A Granular Computing Classifier for Human Activity with Smartphones" Applied Sciences 13, no. 2: 1175. https://doi.org/10.3390/app13021175

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