Research on Human Activity Recognition Based on Random Forest Classifier
Zhiyong Feng, Yike Shi, Duomu Zhou, Liping Mo · 2023
The current machine learning algorithms classify human activities with inaccurate accuracy, poor generalization ability of the model, and poor classification effect. Proposing to use Random Forest classifier to classify the samples. The classifier has the advantage of good generalization ability, high accuracy, and the ability to handle a large number of sample data. After comparing with BP neural networks, Naive Bayesian networks, and decision trees, the random forest classifier achieved an accuracy of 98% on the test set, much higher than the 55%, 87%, and 88% of the other algorithms. In addition, we also tested the generalization ability of the model using the K-Folder cross-validation method, which yielded an average accuracy of 95.5%, also much higher than the 49.9%, 85%, and 90% of the other classifiers. The experimental results show that the random forest classifier has significantly improved in accuracy and generalization ability compared with BP neural network by 78% and 91%, respectively. Therefore, the superiority of the random forest classifier in human activity classification is proved.