Skip to content

newnol/HealthSense-IoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

86 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 Heart Rate & SpOβ‚‚ Monitoring System

A smart health monitoring solution powered by ESP32, collecting Heart Rate and SpOβ‚‚ (Blood Oxygen) data, integrated with AI-driven analytics to provide personalized health insights. Built with a modern full-stack architecture: ⚑ Next.js (frontend) Β· πŸš€ FastAPI (backend) Β· ☁️ Firebase (database & auth)


πŸ”Ž Overview

This project enables:

  • πŸ“‘ Real-time monitoring β€” ESP32 streams Heart Rate & SpOβ‚‚ data securely to the cloud
  • πŸ€– AI analytics β€” Detect anomalies, analyze trends, and assess health risks
  • πŸ’‘ Personalized insights β€” Lifestyle advice & early warnings
  • πŸ“Š Visualization β€” Dashboards, trend charts, and periodic health reports

βš™οΈ Key Features

  • πŸ” User & Device Authentication β€” Firebase Auth + secure device registration
  • πŸ“‘ Data Collection β€” ESP32 β†’ REST API β†’ Firebase
  • ⚑ AI-powered Analysis β€” Trend detection & anomaly alerts
  • πŸ“Š Interactive Dashboard β€” Personal health metrics in real time
  • πŸ“œ Command Management β€” Send instructions to IoT devices
  • 🌍 Cross-platform β€” Works across devices with CORS-enabled endpoints

πŸ—οΈ Architecture

graph TD
  A[ESP32 Device] -->|REST API| B[FastAPI Backend]
  B -->|Realtime Sync| C[Firebase Realtime Database]
  C --> D[Next.js Frontend]
  B --> E[AI Analytics Engine]
  D -->|User Auth| C
Loading
  • Frontend: Next.js + TypeScript (UI & Dashboard)
  • Backend: FastAPI + Firebase Admin SDK (APIs & analytics)
  • Database: Firebase Realtime Database (real-time sync)
  • Deployment: Vercel (serverless, auto-scale)

πŸš€ Getting Started

πŸ“¦ Prerequisites

  • Node.js β‰₯ 18
  • Python β‰₯ 3.8
  • Firebase project (Realtime DB + Auth enabled)
  • Vercel CLI (for deployment)

πŸ”§ Installation

# Clone repo
git clone <repository-url>
cd HealthSense-IoT

# Install frontend deps
npm install

# Setup Python backend
python -m venv .venv
source .venv/bin/activate   # (Windows: .venv\Scripts\activate)
pip install -r requirements.txt

βš™οΈ Configuration

  1. Setup Firebase project + enable Realtime Database & Auth
  2. Generate service account key β†’ serviceAccountKey.json
  3. Create .env.local file with Firebase & API configs

πŸ“‘ API Endpoints (Quick Reference)

  • Auth: GET /api/auth/verify β€” Verify Firebase ID token

  • Records:

    • POST /api/records/ β€” Submit sensor data
    • GET /api/records/ β€” Fetch health records
    • POST /api/records/device/register β€” Register device
  • Commands:

    • GET /api/command/{device_id} β€” Retrieve commands
    • POST /api/command/ β€” Send commands

πŸ“Š Database Structure

/devices/{device_id}/
    secret
/records/{record_id}/
    device_id, sensor_data
/commands/{device_id}/
    action, pattern

🌍 Deployment

Vercel

npm i -g vercel
vercel
  • Configure env vars in Vercel Dashboard
  • Supports automatic Next.js + FastAPI deployment

πŸ› οΈ Contributing

  1. Fork & clone
  2. Create branch: git checkout -b feature/xyz
  3. Commit: git commit -m "Add feature xyz"
  4. Push & PR πŸš€

πŸ‘‰ Do you want me to also add badges and visuals (screenshots/mockups) to make the README look more attractive, like a landing page?

About

🩺 Smart Health Monitoring System with ESP32, AI Analytics & Real-time Dashboard Real-time heart rate and SpO2 monitoring system using ESP32 sensors, AI-powered health analysis, and modern web technologies. Features secure device authentication, personalized health recommendations, and comprehensive data visualization.

Topics

Resources

License

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors