mkowalsky0 / Human_Activities_Recognition

:microscope: Checking how the CNN neural network deals with HAR using inertial sensors from the smartphone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Human Activities Recognition Mobile Application

Hi, I'm Mike. Welcome in my project!

Introduction

Technologies

Python TensorFlow Jupyter Java AndroidStudio
  • Python v. 3.10.1
  • TensorFlow v. 2.9.1 n Keras
  • Jupyter Notebook
  • Java v. 8
  • Android Studio v. 2020.3.1

Description

This project has three main steps:

  1. Signal Processing

raw signals processing, noises filtering: 3rd order Butterworth filter, separating the gravity component: high-pass filter, windowing signals, normalisation, division of the data into training and testing components, matching the shape to the CNN model, signals visualisation

  • Example of the Data Frame with values after the signals processing:

DATA

  • Histogram with the obtained data samples:

TEST/TRAIN

  1. CNN Model Design

designing a CNN model, training and testing process, fitting and evaluating, parameters visualisation

  • CNN model:

CNN Model

  • Quality of the CNN model:

Classification report

πŸ”¬ MODEL ACCURACY: 95,03%

  1. Mobile Application

the mobile application based on CNN model to clasificate 6 motion activities in real-time:

1. WALKING 2. WALKING UPSTAIRS 3. WALKING DOWNSTAIRS 4. SITTING 5. STANDING 6. LAYING

  • Application Interface:
Interface Interface

πŸ™‹ How to place the phone on the body:

πŸ“± Phone axes:

Phone axes

Conclusions

The application has been tested on a group of people aged 25, 27 and 45. The results of the above program were satisfactory. The application is very good at classifying activities with indexes 1, 3, 4 and 6, while it makes occasional errors when classifying activities with indexes 2 and 5. This model is an excellent basis for further research into creating a useful application for motion recognition.

License

MIT License

I'M GLAD FOR YOUR ATTENTION!

About

:microscope: Checking how the CNN neural network deals with HAR using inertial sensors from the smartphone.

License:MIT License


Languages

Language:Jupyter Notebook 95.8%Language:Java 2.3%Language:PureBasic 1.9%