Human Activities Recognition and Monitoring System Using Machine Learning Techniques
Human Activities Recognition and Monitoring System Using Machine Learning Techniques
Chongtham Pankaj
Department of Information Science and Engineering (ISE)
M S Ramaiah Institute of Technology
Bangalore, INDIA
[email protected]
Abstract—Human activity recognition is the wide range of field algorithm to predict human actions. The required number of
of research and challenging task to identify the actions of the nodes are limited and most efficient way to have only one
human in period of time based on received signal strength data node which makes comfortable of the person. The machine
in wireless sensor network. It is important to monitor activity
of a person for numerous reasons. Recently, Machine Learning learning algorithms results are found to predict less accuracy
approach shows capable of classifying the actions of the human with less data from single node over multiple nodes with multi-
by automatically using the raw sensor data. In this work, the dimensional data. Several issues are to be addressed when
dataset consists of received signal strength of seven activities using collecting the data from sensor data. If data from sensor nodes
three sensor nodes that are trained by using supervised machine are corrupted due to non-functional of the nodes which lead to
learning algorithms to recognize the actions and random activities
are monitored to identify the strange action of the person using loss of predicting coordination of the human movement. The
unsupervised machine learning. The proposed machine learning maintaining of the sensor nodes that is required over period
based human activity recognition model are evaluated and predict of time. The selection of machine learning methods which is
the seven human activities by achieving 90% of accuracy. The achieved efficient accuracy of prediction of the coordination
model is later improved to recognize the random actions of the of the nodes.
human.
Index Terms—Human Activity Recognition, Robotics, Machine The proposed work has the list of problem statements: To
Learning, Neural Network gather the data of human actions with number of sensor nodes
coordination. To pre-process and clean the dataset by finding
I. I NTRODUCTION missing values. To implement various supervised machine
learning algorithms that will suitable for the selected dataset of
In times of covid-19 pandemic, human movement are re- the human movement. To train the selected supervised machine
quired to monitor when it is necessary for quarantine to stop learning algorithm that predict and classify the different hu-
the spread of coronavirus. This requires the effective and man activities. To develop the unsupervised machine learning
economic system or device that is capable of detect the object methods that is able to forecast the unexpected movement of
movement within the defined parameter. Machine Learning is the object. To deploy machine learning model to predict the
the robust method that can solve complex problems. Various anomaly behavior and classify the human actions.
machine learning methods can learn pattern of the human Objectives of our work includes To select the benchmark
movement from wearable sensor data that can also predict dataset for the human movement To pre-process the selected
the movement. The proposed work can monitor the movement dataset for machine learning methods To implement supervised
of the human including walking, sitting, standing with the machine learning algorithms such as Support Vector Machines,
help of wearable sensor data. The supervised machine learning Decision Tree, Random Forest for classification of human
methods are used to predict the movement of the human activities. To implement the unsupervised machine learning
with the defined parameter horizontally but limited to detect algorithm that is kohonen’s Self-Organizing Maps to find the
movement vertically. anomaly movement of the object. To deploy machine learning
Challenges of our work is that the placement of wearable based monitoring of human actions.
sensor which is not much interfere with the normal activities
of the person is the challenges deal. Without the proper II. R ELATED W ORK
placement of the iris node [1][2], the data receiving from the In recent years, the analysis of human activities is necessary
node may not accurate that may affect the machine learning in numerous sectors such as medical sector, robotic indus-
63
Authorized licensed use limited to: Khulna Univ of Engineering & Technology - KUET. Downloaded on November 14,2024 at 02:30:17 UTC from IEEE Xplore. Restrictions apply.
machine learning algorithm such as random forest, k-Nearest
Neighbour, Support Vector Machine, Gaussian Naive Bayes
are implemented using python script. The pandas package is
used to analyze the dataset for the machine learning algo-
rithms. The dataset is divided into train and test dataset using
sklearn train test split function. The accuracy of the machine
learning algorithm with the dataset are obtained with the help
of confusion matrix from sklearn metrics function.
V. R ESULT AND D ISCUSSION
The RSS between the sensors are analyzed for human
actions such as sitting, standing, cycling, lying, walking,
bending and the signal data patterns are non-uniform as shown
in Fig.3, Fig.4 and Fig.5 for Signal Strength between Sensor
1 and 2, Sensor 1 and 3 and Sensor 2 and 3 respectively.
Fig. 1. Placement of three sensors on human body
TABLE I
PARAMETER OF SENSOR DATA
Parameters values
Avg rss12 numerical value
Var rss12 numerical value
Avg rss13 numerical value
Var rss13 numerical value
Avg rss23 numerical value
Var rss23 numerical value
Fig. 3. Signal Strength between Sensor 1 and Sensor 2
B. Preprocessing data The signal data pattern for these human actions are observed
The dataset is clean by deleting null value and any other that would be very complex to classify each action by simple
missing data in the records. We have used the python scripting mathematical methods.
using mostly numpy and pandas packages to pre-process the
dataset. After cleaning process is done, each activity are
labelled with the respectively actions. The final dataset is made
by combining all the activity defined in raw dataset. The final
dataset are further divided into fine proportional of test and
train dataset for applying machine learning methods.
C. Experiment
64
Authorized licensed use limited to: Khulna Univ of Engineering & Technology - KUET. Downloaded on November 14,2024 at 02:30:17 UTC from IEEE Xplore. Restrictions apply.
Fig. 9. Confusion Matrix - Gaussian Naive Bayes
VI. C ONCLUSION
Most of the industry increases use of robotics (Human
model) and healthcare system needs to monitor remotely the
Fig. 5. Signal Strength between Sensor 2 and Sensor 3
patient’s activities continuously for treatment. The Human
Activity Recognition system plays a big role with advancement
of machine learning techniques. In our work, using simple
sensor nodes to be attached to the human or can be worn
easily in three places that is in both knee and one in upper
part of the body. The measuring distance between these three
sensor nodes would be transmitted wirelessly. The machine
learning algorithms learn the sensor data pattern for each
pre-defined human activities and further the trained machine
Fig. 6. Confusion Matrix - RandomForest learning model is able to classify the pre-defined human
activities with un-labelled incoming sensor data. The random
B. K-Nearest Neighbour forest and K-nearest neighbour can achieve 90% of accuracy
K-Nearest Neighbour can achieve almost same as random of classification. Support Vector Machine and Gaussian naive
forest that is 89% of accuracy. In K-nearest Neighbour con- bayes can achieve 85% of accuracy.
fusion matrix results, cycling and walking are misclassified In continuation of this work, the unsupervised machine
more compared to other activities. learning algorithm is used to find the anomaly activity of
human movement apart from pre-defined human activities. The
neural network based unsupervised machine learning method
is developed that is capable of classification and predict
anomaly behaviour of the human movement.
R EFERENCES
[1] F.Palumbo, C.Gallicchio, R.Pucci and A.Micheli, ”‘Human Activity
Recognition using multisensor data fusion based on Reservior Com-
puting,“, Journal of Ambient Intelligence and Smart Environments, p.p.
Fig. 7. Confusion Matrix - K-Nearest Neighbour 87-107, 2016
[2] F.Palumbo, P.Barsocchi, C.Gallicchio, S.Chessa and A.Micheli, ”‘ Mul-
tisensor data fusion for activity recognition based on reservoir comput-
C. Support Vector Machine ing,“, Evaluating AAL Systems Through Competitive Benchmarking,
Communications in Computer and Information Science, vol. 386, p.p.
Support Vector Machine can achieve 86% of accuracy. 24, Springer, 2013.
[3] B. Haixia, P. N. Miquel, S. R. Raul and F. Peter, ”‘Human Activity
Recognition Based on Dynamic Active Learning,“, IEEE Journal of
Biomedical and Health Informatics, vol. 25, p.p. 9220934, 2021.
[4] L. C. Hugo and M. M. Jaoa, ”‘Human Activity Recognition by Means
of Online Semi-supervised Learning,“, IEEE International Conference
on Mobile Data Management, p.p. 75-77, 2016
[5] C. Kaixuan, Y. Lina, Z. Dalin, W Xianzhi, C. Xiaojun and N. Feip-
ing, ”‘A Semisupervised Recurrent Convolutional Attention Model for
Human Activity Recognition,“, IEEE Transactions on Neural Networks
and Learning Systems, vol. 31, p.p. 1747-1756, 2020.
[6] G. Negar and M. Mahta, ”‘A Comparison of Machine Learning Clas-
Fig. 8. Confusion Matrix - Support Vector Machine sifiers for Human Activity Recognition using Magnetic Induction-
based Motion signals,“, 14th European Conference on Antennas and
Propagation, p.p. 1-3, 2020.
D. Gaussion Naive Bayes [7] M. H. S. Md, A. Nafis, N. Koundinya and P. Kannappan, ”‘A Hybrid
Approach for Human Activity Recognition with Support Vector Machine
Gaussian Naive Bayes can achieve 85% of accuracy similar and 1D Convolutional Neural Network,“, IEEE Applied Imagery Pattern
to Support Vector Machine Recognition Workshop, p.p. 1-5, 2020.
65
Authorized licensed use limited to: Khulna Univ of Engineering & Technology - KUET. Downloaded on November 14,2024 at 02:30:17 UTC from IEEE Xplore. Restrictions apply.
[8] H. Plamen, M. Agata and B. Ognian, ”‘Deep Learning and SVM-Based
Method for Human Activity Recognition with Skeleton Data,“, 28th
National Conference with International Participation, p.p. 49-52, 2020.
[9] K. Girja, C. Jayeeta, N. Anup, ”‘Effect of Reduced Dimensionality
on Deep learning for Human Activity Recognition,“, 11th International
Conference on Computing, Communication and Networking Technolo-
gies, p.p. 1-7, 2020.
[10] N. Anubhav, S. Abhishek, P. Thinagaran and S. Suman, ”‘Deep Learning
for Multi-Resident Activity Recognition in Ambient Sensing Smart
Homes,“, p.p. 340-341, 2019.
[11] P. D. Ashish and S. H. Jigarkumar, ”‘Performance Analysis of Su-
pervised Machine Learning Algorithms to Recognize Human Activity
in Ambient Assisted Living Environment,“, IEEE 16th India Council
International Conference, p.p. 1-4, 2019.
[12] G. P. Sonia, S. Qingquan and Z. Yan, ”‘Improved Sensor Based Human
Activity Recognition via Hybrid Convolutional and Recurrent Neural
Networks,“, IEEE International Symposium on Inertial Sensors and
Systems, p.p. 1-4, 2021.
[13] Q. Jin, W. Zhangjing, L. Xiancheng and L. Chunmin, ”‘Learning
Complex Spatio-Temporal Configurations of Body Joints for Online
Activity Recognition,“, IEEE Transactions on Human-Machine Systems,
vol. 48, p.p. 637-647, 2018.
[14] S. Sujittra and T. Kreangsak, ”‘An Individual model for Human Ac-
tivity Recognition Using Transfer Deep Learning,“, Joint International
Conference on Digital Arts, Media and Technology with ECTI Northern
Section Conference on Electrical, Electronics, Computer and Telecom-
munications Engineering, p.p. 149-152, 2020.
[15] T. Nilay adn O. Ozen, ”‘A Comparative Research on Human Activity
Recognition Using Deep Learning,“, 27th Signal Processing and Com-
munications Applications Conference, p.p. 1-4, 2019.
[16] B. P. Vijaya Kumar, D. V. Sujana, P. Chongtham, S. Shruthi and R.
Priyanka, ”‘Temporal based Network Packet Anomaly Detection using
Machine Learning,“, IEEE International Conference on Electronics,
Computing and Communication Technologies, p.p. 1-6, 2021.
[17] P. Chongtham, S. V. Konjengbam, S. R. Khoirom, ”‘Artificial Intelli-
gence enabled Web-Based Prediction of Diabetes using Machine Learn-
ing Approach,“, International Conference on Disruptive Technologies
for Multi-Disciplinary Research and Applications, p.p. 60-64, 2021.
[18] P. Chongtham, S. N. Gurumayum and S. R. Khoirom, ”‘Improved
Energy Lifetime of Integrated LEACH Protocol for Wireless Sensor
Network,“, International Conference on Disruptive Technologies for
Multi-Disciplinary Research and Applications, p.p. 265-269, 2021.
66
Authorized licensed use limited to: Khulna Univ of Engineering & Technology - KUET. Downloaded on November 14,2024 at 02:30:17 UTC from IEEE Xplore. Restrictions apply.