Fever Oracle is a comprehensive healthcare monitoring system that uses machine learning to predict fever outbreaks and assess individual patient risk. The system integrates multiple data sources including wastewater monitoring, pharmacy sales, and patient vital signs.
┌─────────────────────────────────────────────────────────────┐
│ Frontend Layer │
│ React + TypeScript + Vite + Tailwind CSS + shadcn/ui │
│ - Dashboard │
│ - Patient Risk Assessment │
│ - Alert Management │
└──────────────────────┬──────────────────────────────────────┘
│
│ HTTP/REST API
│
┌──────────────────────▼──────────────────────────────────────┐
│ Backend Layer │
│ Flask REST API │
│ - /api/patients │
│ - /api/wastewater │
│ - /api/pharmacy │
│ - /api/outbreak/predictions │
│ - /api/alerts │
└──────────────────────┬──────────────────────────────────────┘
│
┌──────────────┼──────────────┐
│ │ │
┌───────▼──────┐ ┌─────▼──────┐ ┌────▼──────┐
│ Models │ │ Data │ │ Database │
│ │ │ │ │ │
│ - Outbreak │ │ - CSV │ │ PostgreSQL│
│ - Patient │ │ - JSONL │ │ │
│ Twin │ │ │ │ │
└──────────────┘ └────────────┘ └───────────┘
- Technology Stack: React 18, TypeScript, Vite, Tailwind CSS, shadcn/ui
- Key Features:
- Real-time dashboard with charts and metrics
- Patient risk assessment interface
- Alert management system
- Responsive design for mobile and desktop
- Technology Stack: Flask, Python 3.11+, Blockchain
- API Endpoints:
GET /api/health- Health checkGET /api/patients- List all patientsGET /api/patients/<id>- Get specific patientGET /api/wastewater- Wastewater viral load dataGET /api/pharmacy- Pharmacy OTC sales dataGET /api/outbreak/predictions- Outbreak predictionsGET /api/alerts- System alertsGET /api/dashboard/metrics- Dashboard metrics- Blockchain Endpoints:
GET /api/blockchain/info- Blockchain informationPOST /api/blockchain/audit- Add audit logGET /api/blockchain/audit-trail- Get audit trailGET /api/blockchain/verify- Verify blockchain integrityPOST /api/blockchain/data-hash- Store data integrity hashPOST /api/blockchain/zk-proof- Create zero-knowledge proof
- Time series analysis for outbreak forecasting
- Multi-feature risk assessment
- Regional outbreak detection
- Individual patient risk modeling
- Sequential ML for personalized risk assessment
- Real-time risk score calculation
- wastewater_demo.csv: Wastewater viral load monitoring data
- otc_demo.csv: Over-the-counter medication sales data
- patients_demo.jsonl: Patient records with vital signs and risk factors
- ingest_wastewater.py: Process and ingest wastewater data
- generate_synthetic_vitals.py: Generate synthetic patient vital signs for testing
- Data Ingestion: Scripts process raw data from various sources
- Model Processing: ML models analyze data and generate predictions
- API Layer: Backend exposes processed data via REST API
- Frontend Display: React frontend visualizes data and predictions
- Alert Generation: System generates alerts based on risk thresholds
The system can be deployed using Docker Compose:
docker-compose up -dThis starts:
- Backend API on port 5000
- Frontend on port 8080
- PostgreSQL database on port 5432
-
Backend:
cd backend pip install -r requirements.txt python app.py -
Frontend:
cd frontend npm install npm run dev
- Blockchain Technology: Immutable audit logging and data integrity verification
- Zero-Knowledge Proofs: Privacy-preserving data verification without exposing sensitive information
- CORS enabled for frontend-backend communication
- Environment variables for sensitive configuration
- Input validation on API endpoints
- HIPAA/GDPR compliant with blockchain-based audit trails
- Encrypted communications with end-to-end encryption
- Decentralized identity management for enhanced privacy
The system uses blockchain technology for:
- Immutable Audit Logging: All data access and modifications are logged on the blockchain, creating an unalterable audit trail
- Data Integrity Verification: Data hashes are stored on-chain to verify data hasn't been tampered with
- Zero-Knowledge Proofs: Privacy-preserving verification without exposing sensitive patient data
- Decentralized Trust: No single point of failure for audit logs
- Compliance: Meets HIPAA/GDPR requirements for audit logging and data integrity
- Proof of Work: Blocks are mined with configurable difficulty
- Chain Verification: Automatic integrity checking
- Privacy-Preserving: Zero-knowledge proofs for sensitive operations
- Audit Trail: Complete history of all data access and modifications
- Real-time WebSocket connections for live updates
- Authentication and authorization with blockchain-based identity
- Database integration for persistent storage
- Advanced ML models (LSTM, Transformer-based)
- Federated learning for cross-institutional collaboration
- GraphQL API for flexible data queries
- Smart contracts for automated access control
- Interoperable blockchain networks for multi-institutional trust