fyp report (2)
fyp report (2)
_____________________________________
Submitted By
Name Student ID
Mubashir Khalid F2021266291
Muhammad Musa F2021266251
Muhammad Azan F2021266290
Session: 2021
Dedication
We dedicate this project to our families for their unwavering support and
encouragement, and to all visually impaired individuals, with the hope that this
innovation enhances their independence and accessibility.
Final Approval
UMT Lahore
UMT Lahore
• Supervisor ______________________
• Department of Informatics & Systems.
• Co-Supervisor ______________________
Acknowledgment
We are immensely grateful to Sir Hashir Hasnain Asghar, Mam Ayesha Yasin, Mam Sheeza
Zaheer for their constant guidance, encouragement, and valuable insights throughout the
development of our AI Health & Fitness App. Their expertise and dedication have played a
crucial role in shaping the direction and quality of our project, helping us refine our approach and
overcome technical challenges.
We would also like to express our gratitude to our university and faculty members for their
continuous support, motivation, and access to essential resources. Their mentorship has been
instrumental in enhancing our understanding of AI-based fitness solutions, ensuring that our
application aligns with modern health and wellness standards.
Furthermore, we extend our heartfelt appreciation to our families and friends for their
unwavering belief in our abilities. Their patience, support, and encouragement have been a
driving force behind our commitment to this project.
Lastly, a special thanks to our peers and colleagues for their collaborative efforts, insightful
discussions, and technical assistance. Their contributions have significantly enhanced the overall
quality of our work, making this project a true team effort.
This achievement is a collective success, and we are deeply thankful to everyone who played a
part in making our vision a reality.
Undertaken by:
Tools Used:
Plagiarism Report
Abstract
With the rise of artificial intelligence and digital health solutions, fitness tracking
has become more efficient and accessible. The AI Health & Fitness App is
designed to assist users in achieving their health and wellness goals by leveraging
AI-powered workout recommendations, real-time health tracking, and smart
nutrition guidance.
This app integrates machine learning to provide personalized fitness plans, ensuring
that users receive tailored workout suggestions, AI-driven progress analysis, and
accurate calorie tracking. The system uses Machine learning models to assess
movement patterns, making workout recommendations more effective.
Additionally, AI-based dietary insights help users optimize their nutrition for better
health outcomes.
To ensure seamless performance, the app is developed using Flutter for cross-
platform compatibility, Firebase for real-time data synchronization. The application
is designed to be user-friendly, scalable, and efficient, making it accessible to a
wide range of fitness enthusiasts, from beginners to professional athletes.
Revision 1 Mubashir Khalid, Reduce the plagiarism ratio and adjust TBD
Muhammad the paragraph structure
Musa, for coherence.
Muhammad
Azan
Contents
1. Introduction – 10
1.1 Motivations – 11
1.2 Project Overview – 11
1.3 Problem Statement – 13
1.4 Objectives – 14
2. Domain Analysis – 15
2.1 Customer – 15
2.2 Stakeholders – 17
2.3 Health & Fitness Industry Impact – 17
2.4 Dependencies / External APIs (Google Fit, Apple Health, Firebase ML) – 18
2.5 Reference Documents – 18
2.5.1 Related Health & Fitness Apps – 19
2.5.2 Feature Comparison with Competitors – 19
3. Requirements – 20
3.1 Functional Requirements – 20
3.2 List of Users & Roles (Trainers, Users) – 21
3.3 List of Use Cases – 21
3.4 Use Case Diagram – 22
3.5 Extended Use Cases – 23
4. Data Flow & Processing – 24
4.1 Data Flow Diagram Level 0 – 24
4.2 Data Flow Diagram Level 1 – 25
4.3 Data Flow Diagram Level 2
5. – 25
6. System Design – 27
5.1 Architecture Diagram – 27
5.2 Class Diagram – 29
5.3 Component & Module Interaction – 30
5.4 Database Schema & Data Dictionary – 32
1 Introduction
1.1 Motivations
In today's fast-paced world, maintaining a healthy lifestyle has become increasingly
challenging due to lack of time, proper guidance, and personalized fitness solutions. Many
individuals struggle with inconsistent workout routines, poor dietary habits, and a lack of
motivation, leading to health issues like obesity, stress, and low fitness levels.
Our vision behind developing the AI Health Fitness App is to provide users with an
intelligent, adaptive, and user-friendly fitness assistant that can:
The primary users include fitness enthusiasts, beginners, and individuals seeking personalized
health guidance. The app also benefits trainers, nutritionists, and healthcare professionals
who want to monitor and guide their clients effectively. Additionally, fitness centers and wellness
organizations can integrate the app to enhance their service offerings.
Project Goals
Suggests balanced meal plans based on fitness goals (weight loss, muscle gain,
maintenance).
Offers ingredient alternatives and caloric breakdowns.
1. AI-Driven Customization: Smart algorithms tailor fitness plans based on real-time data.
2. Real-Time Performance Analysis: Instant feedback on workouts and health metrics.
3. Seamless User Experience: Interactive, easy-to-navigate interface with voice and text
support.
4. Cross-Platform Accessibility: Available on iOS, Android, and web, with cloud-based
synchronization.
5. Scalability & Future Enhancements: Room for AI-based injury prevention, mental
health tracking, and VR workout experiences.
Maintaining a healthy lifestyle has become increasingly difficult due to lack of personalized
fitness guidance, inconsistent workout tracking, and insufficient nutritional insights. Many
individuals struggle with fitness because traditional solutions—such as generic workout plans,
basic calorie counters, and manual exercise tracking—fail to provide real-time, adaptive, and
data-driven support.
With the rising global awareness of health and wellness, more people are turning to digital
solutions to enhance their fitness journeys. However, many existing fitness applications lack:
Personalization: Generic workout and diet plans that do not adapt to individual user
needs.
Real-Time Progress Analysis: Inability to analyze workout performance and suggest
immediate improvements.
Integrated Health Monitoring: Lack of synchronization with wearable devices for
accurate fitness tracking.
AI-Powered Assistance: Absence of smart coaching and automated feedback based on
real-time data.
To bridge this gap, our AI-powered Health & Fitness App leverages machine learning, real-
time data analytics, and intelligent coaching to offer a customized, adaptive, and interactive
fitness experience. This solution aims to:
Generate Personalized Workout Plans: AI-driven recommendations tailored to user goals,
fitness levels, and health conditions.
Provide Real-Time Performance Feedback: Smart tracking and AI-based suggestions for better
workout efficiency.
Offer AI-Enhanced Nutrition Guidance: Intelligent meal planning based on caloric needs and
fitness objectives.
Mobile Sensors for Health Tracking: Utilize the accelerometer, gyroscope, GPS, and heart
rate sensor to monitor steps, movement, distance, and heart rate—ensuring accurate fitness
insights directly from the smartphone.
By harnessing the power of AI, mobile sensors (accelerometer, gyroscope, heart rate sensor,
GPS), and cloud-based analytics, this app empowers users to take control of their fitness with a
highly customized, data-driven, and interactive experience. As technology evolves, future
enhancements—such as AI-driven injury prevention, mental wellness tracking, making fitness
smarter, more accessible, and more effective than ever before.
1.4 Objectives
The primary objective of this project is to develop an AI-powered Health & Fitness App that
provides personalized workout planning, real-time health tracking, AI-driven nutrition
guidance, and intelligent coaching to help users achieve their fitness goals efficiently. This
solution leverages machine learning, data analytics, to offer an adaptive and interactive fitness
experience.
In Phase 1 (FYP1), the primary focus was on designing and developing the complete UI for the
AI Health Fitness App, ensuring an intuitive and user-friendly experience. This phase
established a strong foundation by integrating essential navigation, interactive fitness tracking
interfaces, and seamless user interaction, setting the stage for future enhancements, AI-driven
features, and advanced functionalities.
Key Objectives
Integrate motion detection, heart rate monitoring, and calorie tracking through AI-
enhanced data processing.
Utilize built-in mobile sensors (accelerometer, gyroscope, heart rate sensor, and GPS)
for accurate fitness tracking and real-time health monitoring.
Provide data-driven insights and progress reports for better goal management.
In the next phase (FYP2), backend development and AI functionalities will be implemented to
enable personalized workout recommendations and health tracking. Smartphone sensor
integration will be improved for real-time monitoring, and the UI/UX will be refined for a better
user experience. This phase will also enhance the AI-based nutrition module, setting the stage for
future features like mental wellness tracking and injury prevention insights.
2. Domain Analysis
2.1 Customers
The primary users of the AI Health Fitness App are individuals looking to improve their
fitness and overall health. The app caters to a diverse audience, including gym enthusiasts,
athletes, and beginners seeking AI-driven guidance. Users can track their workouts, monitor
health metrics using smartphone sensors, and receive personalized fitness and nutrition
recommendations. The intuitive UI ensures seamless interaction, making it easy for users to set
goals and monitor progress. With AI-powered insights, the app adapts to user behavior, providing
a customized fitness experience.
2.2 Stakeholders
End Users (Fitness Enthusiasts & Health-Conscious Individuals)
The primary stakeholders who directly use the AI Health & Fitness App.
They include weight loss/gain seekers, general fitness enthusiasts.
Their main concern is AI-powered personalized training, health tracking, and
progress analytics.
Fitness experts who can use the app to provide AI-enhanced coaching and remote
guidance.
They benefit from data-driven insights into their clients’ performance and workout
progress.
AI tools can assist in injury prevention, recovery monitoring, and customized
workout plans.
Businesses that can partner with the app to offer customized workout programs, live
AI coaching, and membership integration.
AI-powered analytics can help them track client progress and optimize fitness
programs.
People with disabilities, chronic illnesses, or post-injury conditions can use AI-
powered fitness plans tailored to their needs.
Personalized rehabilitation exercises for individuals recovering from injuries.
Economic Impact
Growth of the Digital Fitness Economy
AI-driven fitness apps contribute to the $100+ billion global fitness tech industry,
attracting investors and startups.
Expansion of AI-powered health subscriptions, premium features, and integrations
with fitness wearables.
Affordable fitness solutions for low-income individuals who cannot afford personal
trainers or expensive gym memberships.
Government-backed health initiatives can integrate AI fitness tracking for public health
monitoring.
Research on AI & Fitness Tech: Studies show AI-based fitness apps improve workout
efficiency and user engagement.
Industry Reports: Market analysis of AI-powered health & fitness applications.
Government Guidelines & Health Standards: Compliance with digital health
regulations.
User Studies & Feedback Reports: Real-world data on AI-driven fitness assistance and
personalized recommendations.
3. Requirements
Users input fitness goals, and the AI generates a personalized workout routine.
The app dynamically adjusts workouts based on performance, fatigue, and progression.
The app suggests daily meal plans based on the user's fitness goal (weight loss, muscle
gain, maintenance).
AI scans food items and calculates nutritional values automatically.
Actors:
The AI-powered health fitness app assists users in achieving their fitness goals through real-time
exercise tracking, personalized workout plans, and AI-driven nutrition recommendations. The
system leverages machine learning, and NLP to provide users with automated feedback, progress
tracking, and meal planning.
The system intelligently processes user-entered workout data, dietary inputs, and fitness progress
to provide real-time AI-driven recommendations. This ensures:
Beyond basic fitness tracking, the AI-powered health fitness app offers enhanced functionality to
improve user experience, motivation, and overall well-being.
Adaptive Training Plans: The AI dynamically adjusts workout intensity and duration
based on the user's progress, fatigue levels, and fitness goals.
Posture Correction & Injury Prevention: Uses computer vision to analyze workout
posture and provide real-time feedback, reducing the risk of injuries.
Virtual Coaching & Motivation: AI-generated voice or chatbot support to keep users
engaged and accountable.
Personalized Meal Plans: AI suggests meal plans based on dietary preferences, allergies,
and fitness goals.
Hydration Reminders: Intelligent alerts based on weather conditions, activity levels, and
personal hydration habits.
Health Monitoring
Heart Rate : Uses smartphone sensors to analyze heart rate variability and provide
recommendations.
Sleep Tracking & Recovery Optimization: AI assesses sleep patterns and offers
suggestions for better rest and muscle recovery.
Injury & Fatigue Prediction: Predicts overtraining risks and suggests rest days based on
exercise data.
Social Engagement
The Level 0 Data Flow Diagram represents a high-level overview of how the AI Health Fitness
App interacts with external entities and processes data.
User: Provides input such as fitness goals, food intake, exercise logs, and health metrics.
AI Health Fitness App (System): The core system processes data, tracks progress, and
provides real-time fitness recommendations.
AI Processing Engine: Analyzes user data and generates personalized workout, nutrition,
and health insights.
Output (Feedback): The app delivers progress reports, personalized exercise routines,
meal plans, and AI-driven recommendations via notifications and visual dashboards.
This diagram presents the basic structure of how data moves through the system, with users,
and AI modules interacting in a continuous feedback loop.
The Level 1 DFD provides a detailed breakdown of how different components interact within
the AI Health Fitness App.
❖ User Input: Users enter fitness goals, dietary habits, and health data manually or through
connected devices.
❖ AI Processing Engine:
This DFD Level 1 expands on how data is processed internally to enhance the fitness
experience through AI-driven recommendations.
4.3 Data Flow Diagram Level 2
This level further breaks down the AI-powered fitness app into smaller processes and data flow
components.
Process Breakdown:
❖ User Interaction:
The user inputs fitness data (e.g., weight, goals, activity level).
❖ Input Sources:
❖ Data Preprocessing:
Attributes: User ID, Name, Age, Gender, Weight, Height, Fitness Level
Functions: Register, Login, View Progress, Update Goals
Workout AI Module
Nutrition AI Module
The collaboration diagram illustrates the real-time AI-driven fitness tracking feature of the AI
Health Fitness App. The system efficiently processes user data, provides AI-powered workout
and nutrition recommendations, and offers real-time feedback.
1. Data Processing & AI Analysis:
Data Collection: The system retrieves data through Sensors and manual user inputs (e.g., diet
logs, workout preferences).
Data Cleaning & Preprocessing: The app filters out inconsistencies (e.g., incorrect calorie logs,
sensor anomalies) for accurate tracking.
AI-Powered Analysis:
The Workout AI Model evaluates fitness levels and recommends personalized exercise
plans.
The Nutrition AI Model suggests diet adjustments based on caloric intake, macros, and
fitness goals.
The Health Insights Engine detects trends (e.g., hydration levels, recovery needs) and
provides smart suggestions.
2. Feedback:
The AI Assistant provides text alerts for scheduled workouts, hydration reminders, and
recovery insights.
The Progress Monitoring System compares current vs. past performance, updating goal
achievements dynamically.
Conclusion:
The AI Health Fitness App leverages advanced AI algorithms and smartphone sensors to deliver a
highly personalized fitness experience. By providing tailored workout plans, intelligent nutrition
recommendations, and real-time progress tracking, the app empowers users to achieve their health
goals efficiently. With future enhancements like AI-driven insights, automated adjustments, and
deeper data analytics, the app will continue evolving to offer a smarter, more adaptive fitness
journey. This innovative approach ensures accessibility, motivation, and long-term user
engagement in achieving a healthier lifestyle.