Smart phones and Smart Watches have become a most useful tool in our daily life for communication with advanced technology provided intelligent assistance to the user in their everyday activities. The portable working framework with computing ability and interconnectivity, application programming interfaces for executing outsiders’ tools and applications, mobile phones have highlights such as cameras, GPS, web browsers so on., and implanted sensors such as accelerometers and gyroscope which permits the improvement of applications in view of client’s specific area, movement and context.
As these algorithms are used in devices like Smart Watches and Smart Phones with low computation power, it would be the good practice to reduce the Multicollinearity, and select only the best features which are contributing in determing the Activity recognition
Activity Recognition (AR) is monitoring the liveliness of a person by using smart phone. Smart phones are used in a wider manner and it becomes one of the ways to identify the human’s environmental changes by using the sensors in smart mobiles. Smart phones are equipped in detecting sensors like gyroscope and accelerometer. The contraption is demonstrated to examine the state of an individual.
This project is to build a model that predicts the human activities such as Walking, Walking_Upstairs, Walking_Downstairs, Sitting, Standing and Laying as done in Smart-Watches.
Feature Selection (FS) selecting the features that are contributing in determining the output variable. Selecting the subset of features from the features of dataset, using only subset of features without letting drop in the accuracy of the model. As these algorithms are executed on the devices with low computational power.
Human Activity Recognition (HAR) framework collects the raw data from sensors and observes the human movement using different deep learning approach. Deep learning models are proposed to identify motions of humans with plausible high accuracy by using sensed data.
The scope of this project revolves around developing a system for activity recognition in both smartphones and smartwatches. The goal is to leverage machine learning algorithms to accurately identify and classify different activities performed by users, such as walking, running, sitting, standing, etc. The project focuses on real-time analysis, meaning that the recognition process should be efficient and effective for immediate use.
-
Important Note: When I am applying Machine learning algorithm, I use these experts created feature data. When we are applying Deep learning algorithm, I use RAW sensors DATA for predicting Human Activity.
-
The data is provided as a single zip file that is about 58 megabytes in size. The direct link for this download is: UCI HAR Dataset.zip
- Perform the feature scaling so that to restric all the feature under the same scale.
- Check for distribution of data.
The dataset used in this project is highly dimensional, with 563 features. Such high dimensionality can lead to issues like multicollinearity, increased computational cost, and reduced interpretability of the models. To mitigate these challenges and improve model performance, several feature selection techniques were applied.
Purpose: Removes constant or quasi-constant features that do not add significant information. Impact: Reduced the number of features by eliminating those with low variance, leading to a more concise and relevant feature set.
Purpose: Identifies and removes highly correlated features to reduce multicollinearity. Impact: Improved model stability and interpretability by removing redundant features and focusing on independent predictors.
Purpose: Selects features based on F-statistics or F-ratio, especially useful for numeric features and categorical output. Impact: Further refined the feature set, retaining features that have a significant impact on the target variable.
These feature selection techniques were crucial in enhancing the performance, reducing computational complexity, and improving the interpretability of the models used in this project.
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.
-
Blog 1 : https://www.ijrte.org/wp-content/uploads/papers/v8i1/A1385058119.pdf
-
Blog 2 : https://machinelearningmastery.com/how-to-model-human-activity-from-smartphone-data/
-
For HAR Data_Set : https://archive.ics.uci.edu/ml/datasets/Smartphone+Dataset+for+Human+Activity+Recognition+%28HAR%29+in+Ambient+Assisted+Living+%28AAL%29
Given a new datapoint we have to predict the Human Activity, by using minimal set of features.
We have a fairly small data set of Human Activity Recognition that has been labeled as “Walking”, “Walking Upstairs”, “Walking Downstairs”, “Standing”, “Sitting” and “Lying”. We had downloaded HAR Dataset from UCI dataset storehouse .Firstly i used the blogs mentioned above as a reference to understand the domain Well. Secondly, After collection of dataset i.e. Data acquisition, with help of domain knowledge and EDA i carefully examined each feature,Thirdly,I used feature selection techinques so that to reduce the multicollinearity and remove the unwanted features which are not contributing in determining the output.Then we use pre-engineered dataset with classical machine learning (ML) to learn from the data, and predict the human Activity.At End, we evaluated all the models using performance measures such as Accuracy-Score, Confusion Matrix and Classification report,
Human activity recognition, is a challenging time series classification task. It involves predicting the movement of a person based on sensor data and traditionally involves deep domain expertise and methods from signal processing to correctly engineer features from the raw data in order to fit a machine learning model. In Addition it is a supervised Machine Learning Problem.
OR in other words you can call, it is a multiclass classification problem, for given a new datapoint we have to predict the Human Activity. And Each datapoint corresponds one of the 6 Activities.
- Accuracy : For any model we have printed the over all accuracy with this simple “Accuracy” metric.
- SVM Machine learning algorithm showed best accuracy in both the cases.
- Confusion-Matix : Confusion is a performance measure and it well describes performance of the models.
- Classification-Report : Classification Report is one of the best report for showing various peformance measure and shows how well is our model behaving.
- Multi-class log-loss: We know that Multi-class log-loss is very important metric for multiclass ML problem.
-
These days, in addition to Smartphones, we are also using Smart-Watches like Fitbit or Apple-Watch, which help us to track our health. They monitor our each activity throughout the day check how many calories we have burnt. How many hours have we slept. However, in addition to Accelerometer and Gyroscope, they also use Heart-Rate data to monitor our activity. Since, we only have Smartphone data so just by using Accelerometer and Gyroscope data we will monitor the activity of a person. This software can then be converted into an App which can be downloaded in Smartphone. Hence, a person who has Smartphone can monitor his/her health using this App.
-
The cost of a mis-classification can be very high.
-
No strict latency concerns.
30 subjects(volunteers) data is randomly split to 80% of the volunteers were taken as training data and remaining 20% subjects’ recordings were taken for test data. e.g. 21 subjects for train and nine for test.