AI-Powered Nutrition Assistant and Step Tracker

DOI : 10.17577/IJERTV13IS040178

Download Full-Text PDF Cite this Publication

Text Only Version

AI-Powered Nutrition Assistant and Step Tracker

Dr. N K Sakthivel

Dean Academics

Nehru Institute of Engineering and Technology

Coimbatore, Tamil Nadu

Mr. C. Jeffrey Hasan Computer Science and Engineering Nehru Institute of Engineering and

Technology Coimbatore, Tamil Nadu

Dr. S. Subasree

Professor and Head

Nehru Institute of Engineering and Technology

Coimbatore, Tamil Nadu

Mr. G. Muruguraj Computer Science and Engineering Nehru Institute of Engineering and

Technology Coimbatore, Tamil Nadu

Mr. Surya Kannan Kumbhar Computer Science and Engineering Nehru Institute of Engineering and Technology

Coimbatore, Tamil Nadu

Mr. Shabin SJ Computer Science and Engineering Nehru Institute of Engineering and

Technology Coimbatore, Tamil Nadu

Abstract This paper presents an AI-powered mobile application that provides personalized nutrition tracking, meal planning, and fitness monitoring using IoT technology. The system employs machine learning algorithms to generate customized diet recommendations and meal plans tailored to each user's body mass index (BMI), nutritional goals, and preferences. Key features include user-friendly meal logging, in-depth analysis of diet quality and nutrient balances, and adaptive meal planning based on individual needs. Additionally, the system integrates an IoT-based step counter and heart rate monitor to accurately track physical activity levels during workouts. The mobile application offers an intuitive interface, allowing users to effortlessly manage their dietary habits and physical activity through an integrated AI and IoT solution. Experimental results demonstrate the system's effectiveness in providing personalized nutrition guidance, promoting healthier eating habits, and facilitating fitness goal achievement. The proposed system presents a comprehensive and data-driven approach to optimizing nutrition and overall well-being.

Keywords: AI nutrition assistant, personalized meal recommendations, machine learning, diet tracking, nutrient analysis, adaptive meal planning, IoT step counter, heart rate monitoring, fitness tracking, mobile application, health and wellness

  1. INTRODUCTION

    The rise of lifestyle diseases and health concerns has increased the importance of maintaining a balanced diet and active lifestyle. However, managing personal nutrition and fitness can be a challenging task due to the complexity of tracking dietary intake, analyzing nutrient composition, and monitoring physical activity levels. Traditional methods of nutrition management often rely on manual logging, generalized meal plans, and limited insights into overall diet quality.

    This conference paper introduces an AI-powered mobile application that aims to revolutionize the way individuals approach their nutritional and fitness goals. The proposed system leverages machine learning algorithms to generate personalized meal recommendations tailored to each user's body mass index (BMI), dietary preferences, and health objectives. By integrating artificial intelligence, the application provides a data-driven approach to meal planning, ensuring that suggested meals align with individual nutritional requirements and preferences.

    The mobile application offers a user-friendly interface for effortless meal logging, allowing users to conveniently track their daily food intake. It provides in-depth analysis of the overall diet quality, identifying potential nutrient deficiencies or excesses, and offers recommendations for dietary improvements. Additionally, the system incorporates an adaptive meal planning feature that dynamically adjusts meal suggestions based on the user's progress and evolving needs. To promote a holistic approach to well-being, the system integrates an IoT-based step counter and heart rate monitor. This innovative feature utilizes sensor technology to accurately track physical activity levels and monitor cardiovascular health during workouts. By combining nutritional guidance with fitness tracking, the application empowers users to make informed decisions and achieve a balanced lifestyle.

    The primary objective of this research is to develop an intelligent and comprehensive mobile solution that simplifies the complexities of nutrition management and fitness tracking. The proposed system leverages the power of artificial intelligence and the Internet of Things (IoT) to provide personalized recommendations, real-time tracking, and actionable insights, enabling users to optimize their dietary habits and physical activity for improved overall well-being.

    Through extensive experimentation and evaluation, the effectiveness of the system is demonstrated, showcasing its ability to generate accurate personalized meal plans, provide insightful diet quality analysis, and reliably monitor fitness activities. The integration of AI, IoT, and user-friendly mobile technology presents a promising solution for individuals seeking a holistic approach to managing their nutrition and fitness goals.

  2. LITERATURE SURVEY

    The literature survey provides valuable insights into the existing research and advancements in the field of personalized nutrition and fitness tracking systems. Here are the key inferences drawn from the survey:

    • Machine learning techniques, particularly neural networks and collaborative filtering, have shown great potential in generating personalized meal recommendations and dietary plans based on individual user preferences, health goals, and constraints. Researchers have explored various algorithms and data representations to enhance the accuracy and relevance of these recommendations.

    • The integration of Internet of Things (IoT) technology has enabled the development of wearable devices and sensors for tracking physical activity levels, such as step counting and heart rate monitoring. Studies have demonstrated the effectiveness of these IoT-based solutions in promoting an active lifestyle and providing real- time fitness data.

    • Cloud-based databases and data management platforms play a crucial role in storing and synchronizing user data, enabling seamless access and analysis of nutritional and fitness information across multiple devices and platforms. These scalable and reliable data storage solutions are essential for developing comprehensive health and wellness applications.

    • The literature survey highlights the potential of combining machine learning algorithms, IoT technology, and cloud-based data management in a comprehensive personalized nutrition and fitness tracking system. By leveraging these technologies, users can receive tailored dietary guidance, monitor their physical activity levels, and gain insights into their overall well-being.

    • The surveyed literature also emphasizes the need for further research and development in enhancing the accuracy and personalization capabilities of recommendation algorithms, improving the usability and user experience of mobile applications, and exploring new sensor technologies for more comprehensive fitness tracking.

    In conclusion, the literature survey underscores the significance of machine learning, IoT, and cloud-based data management in personalized nutrition and fitness tracking

    systems. The findings from the surveyed research studies provide a solid foundation for the development of our proposed AI-powered nutrition assistant and step tracker, enabling acurate meal recommendations, seamless diet tracking, and reliable fitness monitoring for improved overall well-being.

  3. SYSTEM ANALYSIS

    1. PROPOSED SYSTEM

      The rise of lifestyle diseases and health concerns has increased the importance of maintaining a balanced diet and active lifestyle. However, managing personal nutrition and fitness can be a challenging task due to the complexity of tracking dietary intake, analyzing nutrient composition, and monitoring physical activity levels. Traditional methods of nutrition management often rely on manual logging, generalized meal plans, and limited insights into overall diet quality.

      This conference paper introduces an AI-powered mobile application that aims to revolutionize the way individuals approach their nutritional and fitness goals. The proposed system leverages machine learning algorithms to generate personalized meal recommendations tailored to each user's body mass index (BMI), dietary preferences, and health objectives. By integrating artificial intelligence, the application provides a data-driven approach to meal planning, ensuring that suggested meals align with individual nutritional requirements and preferences.

      The mobile application offers a user-friendly interface for effortless meal logging, allowing users to conveniently track their daily food intake. It provides in-depth analysis of the overall diet quality, identifying potential nutrient deficiencies or excesses, and offers recommendations for dietary improvements. Additionally, the system incorporates an adaptive meal planning feature that dynamically adjusts meal suggestions based on the user's progress and evolving needs. To promote a holistic approach to well-being, the system integrates an IoT-based step counter and heart rate monitor. This innovative feature utilizes sensor technology to accurately track physical activity levels and monitor cardiovascular health during workouts. By combining nutritional guidance with fitness tracking, the application empowers users to make informed decisions and achieve a balanced lifestyle.

    2. PROPOSED SYSTEM

      The proposed AI-powered Nutrition Assistant has the potential to significantly improve dietary habits, physical activity levels, and overall well-being. The system offers several advantages over traditional nutrition tracking methods:

      1. Personalized Recommendations: By leveraging machine learning algorithms, the system generates personalized meal plans and recommendations tailored to each user's BMI, dietary preferences, and health goals, ensuring a customized approach to nutrition management.

      2. Accurate Nutrient Tracking: The meal logging feature allows users to accurately track their daily food intake, providing insights into nutrient composition and enabling data-driven dietary adjustments.

      3. Automated Diet Quality Analysis: The system automates the analysis of overall diet quality, identifying potential nutrient deficiencies or excesses, and offering recommendations for improvements, reducing the effort required for manual analysis.

      4. Adaptive Meal Planning: The meal planning module dynamically adjusts recommendations based on the user's progress and evolving needs, ensuring that the suggested meals remain relevant and effective over time.

      5. Engaging User Experience: The user-friendly mobile interface and integration of advanced technologies, such as AI and IoT, can enhance user engagement and encourage consistent use of the application.

      6. Holistic Fitness Monitoring: The integration of an IoT-based step counter and heart rate monitor promotes a comprehensive approach to well-being by accurately tracking physical activity levels and monitoring cardiovascular health during workouts.

      7. Data-Driven Insights: The system provides valuable data-driven insights into dietary habits and physical activity levels, enabling users to make informed decisions and take corrective actions to achieve their health and fitness goals.

      8. Convenient and Accessible: The mobile application offers a convenient and accessible platform for users to manage their nutrition and fitness, enabling them to track progress and receive personalized guidance anytime, anywhere.

        By leveraging AI, IoT, and user-friendly mobile technology, the proposed Nutrition Assistant empowers users to optimize their dietary habits, increase physical activity, and ultimately improve their overall well-being through personalized recommendations, real-time tracking, and actionable insights.

  4. SYSTEM DESIGN

    1. Module Description

      The system design of the proposed AI-powered Nutrition Assistant and Step Tracker is based on a modular architecture that consists of three main modules: Personalized Meal Recommendation, Meal Tracking, and Step Tracker and Heart Rate Monitor. Each module has a specific role in providing personalized nutrition guidance and fitness tracking, and they work together to offer a comprehensive solution for managing dietary habits and physical activity levels.

      1. Personalized Meal Module

        The Personalized Meal Module is the core component of the system. It is responsible for generating customized meal plans and recommendations tailored to each user's body mass index (BMI), dietary preferences, and health goals. The

        module employs machine learning algorithms to analyze the user's data and suggest meals that align with their nutritional requirements and preferences. It utilizes vector embeddings to compare the user's BMI with a local database of meal vectors, enabling the recommendation of personalized meal options catering to the user's needs.

        Fig: BMI Chart

        Source: https://www.who.int/europe/news-room/fact- sheets/item/a-healthy-lifestyle—who-recommendations

      2. Vector Embedding

        Fig: Vector Embedding

        The personalized food is recommended to the user by the Vector Embedding technique. The following steps are involved in Vector Embedding:

        • Embedding of food items is created and stored on GraphQL website.

        • When the user enters their details, an embedding is created using the details as well.

        • Finally on a Scalar Plane, the user embedding is compared against the food embedding.

        • The food embedding closest to the user embedding is recommended to the user.

      3. Meal Tracking Module

        The Meal Tracking Module allows users to log their daily food intake through a user-friendly interface. Users can conveniently record their meals and snacks consumed throughout the day. The module employs Firestore, a flexible and scalable NoSQL database, to store and manage the user- generated data efficiently. Users can access historical data to analyze trends and changes in their eating habits over time, facilitating awareness and informed decision-making for dietary improvements.

      4. Step Tracker and Heart Rate Monitor Module

      This module integrates an IoT-based sensor setup to monitor the user's physical activity levels and cardiovascular health. The primary sensor used for movement tracking is the MPU6050, a 3-axis gyroscope and accelerometer sensor. The MPU6050 is accompanied by an ESP32 IoT sensor, a lightweight Bluetooth and Wi-Fi combo chip, which facilitates wireless communication between the sensor and the mobile application.

      Fig: MPU6050 Motion Sensor

      Additionally, a Silicon Finger Clip Based Heartbeat Sensor is incorporated to monitor the user's heart rateduring physical activities. This module also includes a Step Up Boost Power Converter to efficiently regulate the input voltage from the power source to the required levels for the sensors.

      Fig: Heart Rate Sensor

      The Step Tracker and Heart Rate Monitor Module enables accurate tracking of steps taken, distance covered, and heart rate during workouts, providing users with valuable insights into their fitness levels and promoting an active lifestyle.

      By integrating these three modules, the AI-powered Nutrition Assistant and Step Tracker offers a comprehensive solution for personalized nutrition management and fitness tracking, empowering users to optimize their dietary habits, increase physical activity, and ultimately improve their overall well-being.

  5. SYSTEM IMPLEMENTATION

    1. Functional Requirements

      The functional requirements of the system are as follows:

      • The system should be able to calculate the user's Body Mass Index (BMI) based on their height and weight inputs.

      • The system should be able to generate personalized meal recommendations tailored to the user's BMI, dietary preferences, and health goals using machine learning algorithms and vector embeddings.

      • The system should be able to generate personalized meal recommendations tailored to the user's BMI, dietary preferences, and health goals using machine learning algorithms and vector embeddings.

      • The system should be able to generate personalized meal recommendations tailored to the user's BMI, dietary preferences, and health goals using machine learning algorithms and vector embeddings.

      • The system should be able to analyze the overall diet quality of the user, identifying potential nutrient deficiencies or excesses.

      • The system should be able to provide recommendations for dietary improvements based on the analysis of the user's logged meals.

      • The system should be able to dynamically adjust meal recommendations based on the user's progress and evolving needs through an adaptive meal planning feature.

      • The system should be able to accurately track the user's physical activity levels, including step counting, using an IoT sensor setup like the MPU6050 sensor and ESP32 IoT sensor.

      • The system should be able to monitor the user's heart rate during physical activities using a sensor like the Silicon Finger Clip Based Heartbeat Sensor.

      • The system should be able to synchronize and display the user's activity data, such as steps taken and heart rate, in real-time within the mobile application.

      • The system should provide a comprehensive view of the user's nutritional intake and physical activity levels, enabling informed decision-making for achieving overall well-being.

    2. Functional Requirements

      The non-functional requirements of the system are as follows:

      • The system should provide an intuitive and user- friendly interface for seamless interaction with the various features, such as meal logging, activity tracking, and personalized recommendations.

      • The system must implement robust security measures to safeguard user privacy and sensitive health data, ensuring compliance with industry-standard data protection protocols.

      • The system should be scalable and able to handle a large number of concurrent users while ensuring real- time data synchronization and seamless performance.

      • The system should be designed with error handling and exception management capabilities to ensure graceful handling of errors and maintain system stability.

      The system should be compatible with both Android and iOS platforms, providing a consistent user experience across different mobile devices.

    3. Functional Requirements

      The following are the system requirements for developing and running the AI-powered Nutrition Assistant and Step Tracker:

      • React Native

      • Cloud Services

      • IoT Sensor Integration

      • Firebase Realtime Database

      • Android 6.0 or higher

      These are the software specifications required for developing and running the Attendance Management System. It is important to ensure that the development tools, libraries, and APIs are up-to-date to ensure optimal performance and security of the system.

  6. RESULT

    Fig: Login and Register Screen

    Fig: Home and Profile Screen

    Fig: Google Firestore Database

    Fig: Step Tracker and Data Tracking

    Fig: Heart Rate and Steps Data from ThingSpeak

    Fig: IOT Device for capturing Heart Rate and Steps.

  7. CONCLUSION AND FUTURE WORK

    In conclusion, the AI-powered Nutrition Assistant and Step Tracker developed in this project is a comprehensive and innovative solution for personalized nutrition management and fitness tracking. The system is designed to be user- friendly, secure, and scalable, making it suitable for individuals seeking a holistic approach to maintaining a balanced diet and active lifestyle.

    The project has successfully demonstrated the feasibility and effectiveness of integrating advanced technologies such as machine learning, IoT sensors, and cloud computing to provide personalized meal recommendations, accurate nutrition tracking, and reliable fitness monitoring.

    Future work for this project could include further optimization of the recommendation algorithms to enhance the accuracy and relevance of personalized meal suggestions. Additionally, integrating with other health and fitness platforms or wearable devices could provide users with a more comprehensive view of their overall well-being. Another potential area for future development is the creation of a unified application that consolidates the various components of the system, such as meal tracking, activity monitoring, and personalized recommendations, into a single user interface. This would streamline the user experience and make it more convenient for individuals to manage their nutritional and fitness goals within a centralized platform.

    Overall, the AI-powered Nutrition Assistant and Step Tracker developed in this project has the potential to significantly improve individuals' ability to maintain a balanced diet and active lifestyle by providing personalized guidance, real-time tracking, and data-driven insights. It represents a valuable contribution to the field of digital health and wellness technology, empowering users to make informed decisions and achieve their nutritional and fitness goals.

  8. REFERENCES

  1. T. Islam, A. R. Joyita, M. G. R. Alam, M. Mehedi Hassan, M. R. Hassan and R. Gravina, "Human-Behavior-Based Personalized Meal Recommendation and Menu Planning Social System," in IEEE Transactions on Computational Social Systems, vol. 10, no. 4, pp. 2099-2110, Aug. 2023, doi: 10.1109/TCSS.2022.3213506 .

  2. Ritu Shandilya, Sugam Sharma, Johnny Wong, MATURE-Food: Food Recommender System for Mandatory Feature Choices A system for enabling Digital Health, International Journal of Information Management Data Insights, Volume 2, Issue 2, 2022, 100090, ISSN

    2667-0968.

  3. Khanna D, Peltzer C, Kahar P, Parmar MS. Body Mass Index (BMI): A Screening Tool Analysis. Cureus. 2022 Feb 11;4(2):e22119. doi: 10.7759/cureus.22119. PMID: 35308730; PMCID: PMC8920809.

  4. Guldogan, E. M., Gumus, Y. Y., & Akcayol, M. A. (2022). A personalized food recommendation system based on dietary habits and health conditions. Computers in Biology and Medicine, 143, 105277.

  5. Jiang, S., Qian, X., Shen, J., Fu, Y., & Mei, T. (2022). Personalized food recommendation with long-and short-term preference dynamics. IEEE Transactions on Knowledge and Data Engineering, 34(5), 2230- 2243.

  6. Huang, Y., Chen, Y., & Xie, X. (2023). A Hybrid Meal Recommendation System Considering Nutritional and Social Factors. IEEE Access, 11, 29382-29393.

  7. Jiang, W., Zhang, C., Li, Y., & Sun, Y. (2023). A Personalized Food Recommendation System Based on Multi-Modal Deep Learning. IEEE Access, 11, 23849-23858.

  8. Huang, Y., Chen, Y., & Xie, X. (2022). A Hybrid Meal Recommendation System Considering Nutritional and Social Factors. IEEE Access, 10, 77843-77853.

  9. Bai, Y., Jiang, L., & Xu, C. (2022). Personalized Food Recommendation System Based on Deep Learning and Knowledge Graph. IEEE Access, 10, 46855-46863.

  10. Weir CB, Jan A. BMI Classification Percentile And Cut Off Points. 2023 Jun 26. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2024 Jan. PMID: 31082114.

  11. Ribeiro, R., Carneiro, D., Novais, P., & Analide, C. (2022). A Personalized Nutrition Recommendation System based on Machine Learning and Ontological Knowledge. IEEE Access, 10, 47731- 47745.

  12. Aydos, M., Jolfaei, A., & Gondal, I. (2022). An AI-powered personalized nutrition recommendation system with food image recognition. IEEE Access, 10, 31495-31506.

  13. Bi, J., Oquab, D., Petrina, Z., & Cristobal-Fransi, E. (2022). A Personalised Nutrition Recommendation System Using Contextual Bandits. IEEE Access, 10, 42097-42108.