YOUNG INVESTORS CHALLENGE
BFRA (Bike Form Recognition Analysis)
SMK DATUK HAJI AHMAD BADAWI, SMK DATUK HAJI
AHMAD BADAWI, 13200 KEPALA BATAS, PULAU PINANG.
PRESENTED BY;
NURUL ASYIKIN BINTI ABD RAHMAN
NUR ADLINA BINTI MOHD NAZREN
SAFIYYA RANIA BINTI ROSLI
TEACHER ADDVISOR;
PUAN SURIYANI BINTI YAHAYA
1. Introduction
Regular physical exercise has numerous benefits, including improved brain health, weight
management, and reduced disease risk. To maximize these benefits, proper form is
essential. Computer vision technology, such as the Mediapipe framework, can help
analyse exercise positions, including cycling, to ensure correct form and optimize training.
The project uses 3D visualizations to correct bike positions and track cadence for intensity
training.
1.2 General approach
The research aims to identify and correct common improper cycling positions on stationary bikes. This
involves selecting technology, collecting and processing data, training and evaluating models, building a
web application, and testing the final model and application. The goal is to ensure safer and more
effective cycling workouts.
1.3 Prerequisite
For effective and safe cycling exercises, the seat should be adjusted to the correct height to
maintain proper alignment and prevent strain. The stationary bike should be placed on a stable
and secure surface. For webcam detection, users should maintain a consistent position to allow
for accurate joint recognition and form analysis.
1.4 Problem description
Performing exercises with improper form is a common mistake, especially for beginners or
those who exercise independently. This can lead to a higher risk of injury and may prevent
individuals from achieving desired results. Common injuries include knee, back, and neck pain.
Objectives
The project aims to develop machine learning models that can detect incorrect movements in
various cycling positions and track cadence, speed, and distance. A web application will use
these models to analyse exercise videos, provide insights, and identify incorrect positions. The
models will also contribute to performance enhancement and injury prevention. Prediction
models will assess position form and predict RPM values.
2. Project and model description
2.1 Model Overview
The model's purpose is to recognize cycling exercise form positions on a stationary
bike. We'll test the model on different scales using 3, 5, and 7 layers of fully connected
layers, and optimize hyperparameters using Keras Tuner's hyperband method.
Additionally, we'll fine-tune pre-trained models from the Sklearn framework.
Figure 1 List of pre-trained model from Sklearn framwork
2.2 Data Description
The model was trained on a large online dataset of cycling form positions, and we're also
creating our own dataset using OpenCV. The dataset is organized into subclasses,
including upper body and tuck form, and divided into training and testing sets. The data
consists of float coordinates (x, y, z) and visibility scores for each joint on the body, saved
in a CSV file.
Figure 3 1000-2000 images for Train dataset Figure 200-300 images for Test dataset
Figure 4Figure 4 Screenshot of joints coordinate in [Link]
2.3 Training
The model was trained using the Adam optimizer with randomized learning rate, units,
and activation functions for 10 epochs. The training and validation loss were monitored to
prevent overfitting or underfitting, and the training and validation accuracy were tracked
to ensure improvement.
2.4 Evaluation
The model was evaluated on a testing set of 200-300 cycling images and achieved
a perfect accuracy score of 1.0 or 100%. This indicates that the model is able to accurately
classify text as positive or negative sentiment.
2.5 Testing on video and real time
After training and testing, we evaluated each model, including deep learning and pre-trained models, for
image, video, and video stream classification. The final deep learning model chosen was a 7-layer model
for its logical and accurate predictions, while the pre-trained model selected was the KNN model.
However, we will continue to use deep learning for further predictions. Once complete, we will add
additional features such as angle, distance key points, repetition counter, and 3-D plot for further analysis.
3. Conclusion
The project's next steps involve commercializing the application and refining it based on
improved model evaluation metrics, such as loss and accuracy. This will include integrating
high-accuracy and complex pose detection models to boost performance. The app will also be
expanded to include features tailored to specific bike types, such as road bikes, time trial bikes,
and hybrid bikes, as well as bike fit and bike intensity training categories. Additional features
like speed and distance tracking will be added to enhance the existing feature set. These
advancements aim to create a more comprehensive and adaptable application, providing users
with a more personalized and immersive cycling experience.
4. Reference:
1• [Link]
2• [Link]
3• [Link]
4• [Link]
5• [Link]