SurroundShield: Your Personal Health Guardian π‘οΈ
The Story Behind SurroundShield
In a world where health and wellness have become paramount, SurroundShield emerges as your personal health guardian. This innovative web application combines the power of modern web technologies with advanced AI capabilities to help you track, understand, and improve your health metrics in a user-friendly way.
What Makes SurroundShield Special?
SurroundShield is more than just another health tracking app. It's your personal health companion that:
- π Tracks your vital health metrics (BMI, weight, height)
- π Monitors your location-based health data
- π Securely stores your personal health information
- π± Provides a beautiful, intuitive interface
- π€ Connects you with your health journey
- π€ Leverages AI for personalized health insights
- π Real-time health monitoring and alerts
System Architecture ποΈ
SurroundShield is built with a modern, full-stack architecture:
Frontend
- React.js for dynamic user interface
- Modern CSS with responsive design
- Real-time data updates
Backend
- Node.js/Express.js for user management
- Python Flask for AI/ML services
- MongoDB for data storage
- Databricks Playground for LLM integration
Getting Started π
Prerequisites
Before you begin your health journey with SurroundShield, make sure you have:
- Node.js (v14 or higher)
- Python 3.8 or higher
- MongoDB (for data storage)
- npm (Node Package Manager)
- pip (Python Package Manager)
- Databricks account (for LLM features)
Installation Steps
Clone the Repository
git clone https://github.com/yourusername/SurroundShield.git cd SurroundShieldInstall Node.js Dependencies
npm installInstall Python Dependencies
cd python_backend pip install -r requirements.txtSet Up Environment Variables Create a
.envfile in the root directory with:# Node.js Backend MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret PORT=3000 # Python Flask Backend FLASK_APP=app.py FLASK_ENV=development DATABRICKS_TOKEN=your_databricks_token DATABRICKS_URL=your_databricks_workspace_urlStart the Servers
# Terminal 1 - Start Node.js server npm start # Terminal 2 - Start Flask server cd python_backend flask runAccess the Application Open your browser and navigate to:
http://localhost:3000
Features π
User Management
- Secure user registration and login
- JWT-based authentication
- Password hashing for security
Health Tracking
- BMI calculation
- Weight and height tracking
- Location-based health data
- Age-specific health metrics
AI-Powered Features
- Personalized health insights using LLAMA 3.1 70B model
- Advanced health risk assessment with large language model capabilities
- Smart recommendations based on comprehensive health data analysis
- Natural language health queries with state-of-the-art language understanding
- Context-aware health monitoring and alerts
User Interface
- Clean, modern design
- Responsive layout
- Intuitive navigation
- Real-time data updates
Project Structure π
SurroundShield/
βββ config/
β βββ mongoCollections.js
β βββ settings.js
βββ data/
β βββ users.js
βββ public/
β βββ js/
β βββ src/
β βββ components/
β β βββ login.js
β β βββ Registration.js
β βββ styles/
β β βββ styles.css
β βββ App.js
βββ python_backend/
β βββ app.py
β βββ requirements.txt
β βββ models/
β β βββ llm_model.py
β βββ utils/
β βββ databricks_utils.py
βββ routes/
β βββ index.js
β βββ users.js
βββ views/
βββ .env
βββ .gitignore
βββ app.js
βββ package.json
API Endpoints π
User Routes (Node.js)
-
POST /users- Register a new user -
POST /users/login- User login -
GET /users/:id- Get user profile -
PUT /users/:id- Update user profile -
DELETE /users/:id- Delete user account
AI Routes (Flask)
-
POST /api/health-insights- Get personalized health insights -
POST /api/risk-assessment- Get health risk assessment -
POST /api/recommendations- Get personalized recommendations -
POST /api/health-query- Natural language health queries
Databricks Integration π
Our LLM integration is powered by Databricks Playground, featuring the LLAMA 3.1 70B parameter model, providing:
- Advanced natural language processing with 70 billion parameters
- State-of-the-art health insights and analysis
- Deep understanding of medical and health-related queries
- Contextual health recommendations
- Real-time health monitoring with advanced pattern recognition
- Risk assessment with comprehensive data analysis
- Multi-modal health data interpretation
LLM Model Specifications
- Model: LLAMA 3.1 70B
- Parameters: 70 billion
- Integration: Databricks Playground
- Capabilities:
- Natural language understanding
- Health data analysis
- Risk assessment
- Personalized recommendations
- Medical context awareness
- Real-time health monitoring
Contributing π€
We welcome contributions to SurroundShield! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Security π
SurroundShield takes security seriously:
- All passwords are hashed using bcrypt
- JWT tokens for authentication
- Secure MongoDB connection
- Environment variable protection
- Secure API endpoints
- Data encryption
Future Roadmap πΊοΈ
We're constantly improving SurroundShield. Here's what's coming:
- [ ] Mobile app version
- [ ] Health goal setting
- [ ] Progress visualization
- [ ] Community features
- [ ] Integration with health devices
- [ ] Advanced AI features
- [ ] Real-time health monitoring
- [ ] Integration with wearable devices
Log in or sign up for Devpost to join the conversation.