You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intelligent Real-time Health Monitoring Using Edge AI & IoT
π― About The Project
Airea is a comprehensive AI-powered health monitoring system that leverages Edge AI, IoT sensors, and cloud computing to provide real-time health insights. The system monitors multiple health metrics including respiratory health (cough detection), heart rate, respiratory rate, body temperature, and fall detection with automatic emergency alerts.
Why Airea?
π₯ Healthcare - Remote patient monitoring and chronic disease management
π Home Care - Non-invasive health surveillance for elderly and families
π€ AI-Powered - Edge ML inference with TensorFlow Lite for real-time analysis
π Privacy-First - Sensor data processed locally on ESP32 device
π Comprehensive - Multiple health metrics in one wearable system
π¨ Emergency Alerts - Automatic SMS alerts to emergency contacts
β¨ Key Features
π€ Edge AI Capabilities
β On-device ML inference using TensorFlow Lite Micro
β Real-time cough classification with confidence scoring (>80%)
β Fall detection using accelerometer/gyroscope fusion
β Low latency DSP-based heart rate and respiratory rate extraction
β INT8 quantized models for ESP32 optimization
π Health Monitoring
π« Respiratory - Cough detection via INMP441 microphone + CNN model
β€οΈ Cardiovascular - Heart rate (BPM) via AD8232 ECG module with DSP peak detection
π¬οΈ Breathing - Respiratory rate via ECG-derived respiration (EDR)
π‘οΈ Temperature - Body temperature via MAX30205 sensor
π Motion - Fall detection via MPU6050 IMU + G-force analysis
π¨ Emergency Alert System
Automatic SMS alerts via Notify.lk API
Critical thresholds: HR <40 or >150 BPM, Temp <35Β°C or >39.5Β°C, RR <8 or >30
Fall impact severity scoring (G-force >2.5G triggers alert)
GPS location included in emergency messages
5-minute cooldown to prevent duplicate alerts
π Cross-Platform
iOS, Android, Web, and Desktop support via Flutter
Real-time data synchronization with WebSocket
Daily/Weekly health summaries with AI-generated insights
cd frontend
# Install dependencies
flutter pub get
# Configure API (edit lib/config/api_config.dart)# Set backendHost = 'localhost' for local testing# Set backendHost = '192.168.x.x' for mobile device testing# Run app
flutter run -d chrome # Web
flutter run -d android # Mobile
cd esp32_firmware
# Install PlatformIO CLI
pip install platformio
# The firmware uses WiFiManager for easy WiFi setup# On first boot, connect to "AIREA-Setup" WiFi network# Configure your WiFi credentials via the captive portal# Upload to ESP32-S3
pio run -t upload
# Monitor serial output
pio device monitor -b 115200
Firmware Features
FreeRTOS Tasks: Audio inference and network sender run on Core 0
WiFiManager: Easy WiFi configuration via captive portal
Background HTTP Queue: Non-blocking data transmission
ECG DSP: 250Hz sampling with peak detection for BPM
# The backend is configured for Railway deployment# See railway.toml for configuration# Database configuration (choose ONE approach)# Option A (recommended)
SPRING_DATASOURCE_URL=jdbc:postgresql://db.xxx.supabase.co:5432/postgres?sslmode=require
SPRING_DATASOURCE_USERNAME=postgres
SPRING_DATASOURCE_PASSWORD=your_password
# Option B
DATABASE_URL=postgresql://postgres:your_password@db.xxx.supabase.co:5432/postgres
# Required app variables
JWT_SECRET=your_long_secure_secret_key
CORS_ALLOWED_ORIGINS=https://your-frontend-domain.com
# Optional mail (password reset)
MAIL_USERNAME=your_gmail@gmail.com
MAIL_PASSWORD=your_gmail_app_password
# Optional SMS (alerts)
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=+1234567890
SMS_ALERTS_ENABLED=true
Production URL: https://airea-production.up.railway.app
Database (Supabase)
PostgreSQL 15 hosted on Supabase
Automatic backups enabled
Connection pooling via PgBouncer
Frontend (Multi-platform)
# Build for different platforms
flutter build apk # Android
flutter build ios # iOS
flutter build web # Web
flutter build macos # macOS
flutter build windows # Windows
π€ Contributing
Contributions are welcome!
Fork the repository
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit changes (git commit -m 'Add feature')
Push to branch (git push origin feature/AmazingFeature)