HealthGPT Project Overview
HealthGPT is an innovative iOS application developed by the Stanford Biodesign Digital Health team. This experimental app allows users to seamlessly interact with their health data stored in the Apple Health app via natural language, leveraging cutting-edge technology to simplify user experience and enhance health management.
About HealthGPT
HealthGPT is based on the Stanford Spezi platform, an open-source framework designed for developing digital health applications. The application integrates large language models (LLM) to facilitate meaningful conversations about personal health data. The initiative began as a collaborative project with contributions from various specialists, led initially by Varun Shenoy, who laid the groundwork for its development.
For those interested in using HealthGPT, it is available for download on iOS devices through TestFlight, providing a platform for experimentation and feedback.
Key Features
-
Modular Architecture: HealthGPT's architecture is built upon the Stanford Spezi framework, which makes it easily customizable and extendable for developers looking to create LLM-powered health applications.
-
Chat Interface: Users can engage with their health data using a chat-style interface, thanks to the SpeziChat module. This module supports both speech-to-text and text-to-speech functionalities, enhancing accessibility and ease of use. Additionally, users can export chat conversations for their records.
-
Integration with Apple Health: Utilizing the SpeziHealthKit, HealthGPT integrates seamlessly with the Apple Health app, allowing it to access and analyze health data such as sleep patterns, steps taken, energy expenditure, exercise minutes, heart rate, and body mass.
-
Advanced Query Capabilities: The app employs GPT-3.5 and GPT-4 through the SpeziLLM module to provide sophisticated responses. An option for privacy-preserving local execution using the SpeziLLMLocal module with Llama3 8B is also available, supporting automatic download and storage of model files during setup.
Important Disclaimer
While HealthGPT serves as a general informational tool, it is not a substitute for professional medical advice, diagnosis, or treatment. Users should be aware that large language models may generate inaccurate information due to hallucinations. It is crucial to consult with qualified healthcare providers for personalized health advice. Moreover, HealthGPT uploads aggregated HealthKit data from the past two weeks to OpenAI, and users should review the OpenAI privacy policy for further details.
Getting Started with HealthGPT
To build and run HealthGPT, users need a Mac with Xcode 15.2 or later. The setup process involves cloning the project repository, opening it in Xcode, and running the app either on an iOS device or within an iOS simulator.
For additional health data queries, users can update the SpeziHealthKit configurations, modify the HealthDataFetcher to create specific queries, and tweak the prompt generator to send new data to the OpenAI API.
Contributing to the Project
HealthGPT welcomes contributions from the community. Interested individuals should review the contribution guidelines and the code of conduct. The project maintains a list of contributors who have supported its development.
Licensing
The project is released under the MIT License, making it free to use and modify, with more information available in the project's license documentation.
By engaging with HealthGPT, users become part of an exciting journey into the future of digital health, enabled by the robust combination of natural language processing and personal health data integration.