This project senses human activity with the help of an app installed in the smartphone which uses ML to predict from the data collected from sensors present in the phone. This project is handled by the DSC ML Team of NIT Patna
-
Accelerometer
-
Gyroscope
Once we collect the data we will be preprocessing the data and train it using LSTM or further more advanced models. Then finally we would be predicting the activity.
- WALKING
- WALKING_UPSTAIRS
- WALKING_DOWNSTAIRS
- SITTING
- STANDING
- LAYING
- Firstly we need to make a android app and integrate with firebase for collecting the data
- Then we need to preprocess the data
- Create a ML Model
- Need to deploy the model in Mobile
- Make it avalaible in Playstore
We used 2 Different Strategies in order to achieve the accuracy. They are
-
We took each frame of the data into 128 steps and created 561 different possible calculations and passed them using machine learning algorithms like Logistic Regression ,KNN ,Decision Trees ,Random Forest ,Support Vector Machine etc.
The below is the metrics which are resulted from above method.
Model Name | Accuracy Acheived |
---|---|
Logistic Regression | 98.66% |
Support Vector Machine | 93.42% |
XGBoost | 98.73% |
Linear SVM | 96% |
Decision Tree | 92.5% |
Random Forest | 92.5% |
KNN | 91% |
-
We took each frame of data and passed it to the recurrent neural network i.e LSTM and predicted the activity it belongs to.
The below is the metrics which are resulted from above department.
Model Name | Accuracy |
---|---|
Stacked LSTM | 91.78% |