Posture Detection System is an Android-based mobile application which can be run on an Android mobile platform. It can detect incorrect sitting or standing postures and display messages on the app screen, namely sitting or standing hunched over and sitting crossleg.
Our project refers to an Android application demonstration by TensorFlow Lite as a foundation to build on. Our AI that detects postures is trained using Tensorflow's estimation model, MoveNet while the classification is done using a notebook provided by Tensorflow Lite. The model that we used in our application is MoveNet Thunder.
├───android
│ ├───app
│ │ └───src
│ └───gradle
├───document_images
├───training
│ └───posture_data
│ ├───forwardhead
│ ├───crossleg
│ └───standard
android/
contains all files relating to the application
document_images/
contains screenshots and images for README.md
training/
contains AI training sample data, screenshots and files of the training process using Google Colab pose_classification.ipynb
.
To install our application on your Android device, just download and install the APK package under Releases. If you want to do some testing with our code, it is recommended to do it in Android Studio as our project is build on said platform.
-
If you don't have it already, install Android Studio 4.2 or above, following the instructions on the website.
-
Android device and Android development environment with minimum API 23.
-
Fork and
git clone
the repository in the directory you desire on your machine. -
Open Android Studio, and from the
Welcome
screen, selectOpen an existing Android Studio project
. -
From the
Open File or Project
window that appears, navigate to and select the/android
directory from wherever you cloned the our GitHub repo. ClickOK
. -
If it asks you to do a
Gradle Sync
, clickOK
. -
If it asks you to use
Instant Run
, clickProceed Without Instant Run
. -
Also, you need to have an Android device plugged in with developer options enabled at this point. See here for more details on setting up developer devices.
After installing the Application on your Android device, there will be a prompt asking permission for camera access when opening the app.
The application itself uses the device's camera to detect if there is a target or in this case, a person, to be found. If there is, it will start counting frames per second, when it detects all 30 frames of said person is in either Hunchback or Crossleg, it will display a warning comment above the screen, if the person persist for another 30 frames, it will display a red comment.
Basically the comment on the screen will update every 30 frames based on the detected posture.
![]() |
![]() |
![]() |
![]() |
AIROST Internship 2022
Team Rocket
- LAI FOO ZHENG
- MUHAMMAD ADAM BIN YAACOB
- TAN CHUN MING