Thesis Report
Thesis Report
Submitted by:
Ninad Kumar Sarker
Roll: 1903032
4th Year 2nd Term
Supervised by:
Dr. Md. Salah Uddin Yusuf
Professor
Department of Electrical and Electronic Engineering,KUET
TABLE OF CONTENTS
1. Introduction 3
3. Motivation 8 - 10
4. Objectives 10
5. Progress 11 - 13
6. Future work 13
7. Conclusion 13 - 14
1.Introduction:
Human Activity Recognition (HAR) has emerged as a vital area of research, especially in the
context of ubiquitous computing and the widespread use of mobile devices. The growing
prevalence of smartphones equipped with advanced sensors, such as accelerometers,
gyroscopes, and magnetometers, has paved the way for continuous, non-intrusive
monitoring of human motion. These capabilities have unlocked a range of practical
applications, including healthcare monitoring, personalized fitness coaching, smart home
automation, elderly care, and real-time safety alerts.
Moreover, the variability in human motion, sensor placement, and the presence of noise in
sensor data introduce additional complexities. Human activities are inherently dynamic and
subject to numerous factors, such as speed, orientation, and environmental conditions. As
a result, there is a pressing need to explore more advanced machine learning techniques
that can effectively model and generalize across diverse patterns of human behavior.
This paper aims to address these challenges by investigating the use of machine learning
techniques for HAR using smartphone sensor data. We evaluate the effectiveness of various
machine learning models, exploring their strengths and limitations in accurately classifying
activities. The study emphasizes key aspects such as data preprocessing, feature
engineering, model optimization, and performance evaluation using real-world datasets. By
leveraging the power of machine learning, we seek to create a more accurate, adaptable,
and efficient HAR system that can enhance user experiences and improve the functionality
of smart healthcare and lifestyle applications. Our findings contribute valuable insights into
the design of future HAR systems, underscoring the transformative potential of machine
learning in human-centric applications.
2.Literature review:
1. "Accuracy vs Complexity: A Small Scale Dynamic Neural Networks Case" by M.
Dumpis and D. Navakauskas
• Key Contributions: The dynamic approach optimizes model complexity based on the
input data context, ensuring scalability for practical use in everyday applications.
2. "ML-based Realtime User Activity and Transport Mode Detection using Smartphone
Sensors" by N. Liu
o The approach may not scale well to real-time applications due to the
computational overhead of feature encoding.
• Summary: The authors propose an ensemble model combining CNNs, LSTMs, and
attention mechanisms to maximize HAR performance. The approach leverages the
strengths of each model, making it robust against noise and user variability.
• Key Contributions: The ensemble model achieves superior accuracy, adapting well
to various activities and user habits.
The paper does not discuss the challenges of synchronizing multiple deep learning models
or managing memory usage efficiently.
o The method may not fully retain the original model's performance for
complex or overlapping activities.
6. "An Optimal Feature Selection Method for Human Activity Recognition Using
Multimodal Sensory Data" by T. Haider, M.H. Khan, M.S. Farid
o The feature selection method may not adapt well to rapidly changing or
unpredictable activities.
7. "A Novel Hybrid Strategy Based on Swarm and Heterogeneous Federated Learning
for Activity Recognition" by H. Jamil, M.A. Khan, F. Jamil
o The paper does not address the potential risks of model drift over time as
user behavior changes.
o The model's performance may degrade when applied to activities with more
subtle or slower movements.
• Summary: The paper provides a benchmark for evaluating HAR models' adaptability
and generalization across various domains. The authors compare several models,
focusing on their performance when tested in different environments and with
diverse populations.
o The paper does not propose a concrete solution to address these adaptation
challenges, instead serving as a resource for future research.
3.Motivation:
The motivation behind studying Human Activity Recognition (HAR) with smartphone
sensors using machine learning lies in the growing demand for intelligent systems that can
monitor, interpret, and respond to human behavior in real time. As smartphones have
become ubiquitous, their embedded sensors, such as accelerometers, gyroscopes, and
magnetometers, provide a rich and accessible source of motion data. This abundance of
data opens up new possibilities for developing applications that can significantly impact
healthcare, fitness tracking, personal safety, and smart home automation.
1. Healthcare and Elderly Monitoring: One of the most compelling motivations is the
application of HAR in healthcare. For elderly individuals or patients with chronic
conditions, continuous monitoring of activities can provide critical information for
early detection of health issues or potential falls. This capability can enhance
independent living for the elderly, reduce healthcare costs, and provide peace of
mind to caregivers and family members.
2. Fitness and Lifestyle Applications: In the fitness industry, HAR can be used to
monitor exercise routines, track progress, and provide personalized coaching.
Accurate activity recognition allows for automated logging of workouts and better
insights into physical activity patterns, promoting healthier lifestyles and more
effective training programs.
3. Safety and Emergency Response: HAR can be leveraged for safety applications, such
as detecting abnormal behavior or emergencies. For example, automatic fall
detection using smartphone sensors can alert emergency contacts, potentially
saving lives in critical situations.
4. Smart Homes and Ambient Assisted Living: The integration of HAR with smart home
technologies enables the development of ambient assisted living systems. These
systems can automate household tasks based on the user's activity, enhancing
convenience and energy efficiency. For instance, lights could turn off when a user
lies down to sleep, or alarms could sound if unusual inactivity is detected, signaling
a potential medical issue.
4.Objectives:
1.Feature extraction from raw sensor data and optimal feature selection.
HAR Dataset from UCI dataset storehouse is utilized. This dataset is collected from 30
persons (referred as subjects in this dataset), performing different activities with a
smartphone to their waists. The data is recorded with the help of sensors (accelerometer
and Gyroscope) in that smartphone. This experiment was video recorded to label the data
manually.
This project is to build a model that predicts the human activities such as Walking,
Walking_Upstairs, Walking_Downstairs, Sitting, Standing and Laying.
Train and Test dataset was collected from HAR dataset from UCI dataset storehouse.There
were 561 features in datasets.
• WALKING as 1
• WALKING_UPSTAIRS as 2
• WALKING_DOWNSTAIRS as 3
• SITTING as 4
• STANDING as 5
• LAYING as
• Although there are fluctuations in the label counts, the labels are quite equally
distributed.
• Assuming the participants had to walk the same number of stairs upwards as well
as downwards and knowing the smartphones had a constant sampling rate, there
should be the same amount of datapoints for walking upstairs and downstairs.
• Disregarding the possibility of flawed data, the participants seem to walk roughly
10% faster downwards.
1.Logistic Regression
When a model learns the training data too closely, it fails to fit new data or predict unseen
observations reliably. This condition is called overfitting and is countered, in one of many
ways, with ridge (L2) regularization. Ridge regularization penalizes model predictors if they
are too big, thus enforcing them to be small. This reduces model variance and avoids
overfitting
2.Decision Tree
• Decision trees is a hierarchical model also known as classification and regression trees.
They have the property of predicting response from data. The attributes of the decision
trees are mapped into nodes. The edges of the tree represent the possible output values.
Each branch of the tree represents a classification rule, from the root to the leaf node.
• This method has been used for several tasks in the field of pattern recognition and machine
learning as a predictive model. The main goal is to predict the next value given several input
variable.
Results:
6.Future Work:
1.feature extraction from raw sensor data and optimal feature selection.
7.Conclusion:
In conclusion, the study of Human Activity Recognition (HAR) using smartphone sensors
and machine learning has significant implications for advancing technologies in
healthcare, fitness, safety, and smart environments. By leveraging the widespread
availability of smartphones and the power of machine learning algorithms, we can achieve
accurate and efficient recognition of human activities. This enables the development of
real-time, automated systems that improve user experiences and provide crucial
assistance in everyday life. However, challenges remain, such as handling sensor noise,
optimizing models for low-power devices, and ensuring robust performance across diverse
populations and environments. Continued research in this field will focus on enhancing
model efficiency, improving generalization, and integrating HAR systems seamlessly into
practical applications.