SmartCare Insight is a comprehensive real-time health monitoring platform that demonstrates the practical application of advanced Internet of Things (IoT) and Distributed Systems concepts in a digital healthcare environment.
This system simulates a complete patient monitoring ecosystem, from wearable devices collecting biometric data to AI-powered predictive analytics, providing a scalable, real-time solution for continuous patient monitoring.
To provide an integrated real-time health monitoring solution that enables continuous and proactive patient monitoring, improving care quality and enabling early interventions.
- Demonstrate IoT concepts in biometric data collection and processing
- Illustrate distributed systems architecture in a digital healthcare scenario
- Showcase the integration of multiple components (devices, data processing, AI) in a real-time data pipeline
- Provide a foundation for exploring emerging digital health technologies
- Real-time Monitoring: Continuous collection and processing of vital signs
- Distributed Architecture: Containerized microservices that scale on demand
- AI-Powered Analysis: Advanced data processing using language models
- Intelligent Alerting: Proactive anomaly detection and contextual alerts
- Scalable Pipeline: MQTT-based messaging with InfluxDB storage
- Interactive Dashboard: Real-time data visualization and trend analysis
- RESTful API: Comprehensive interface for system integration
- Multi-level Security: Authentication, authorization, and encryption
Monitor patients in various settings with real-time alerts for abnormal values.
Supported Monitoring Scenarios:
-
Hospital Inpatient Monitoring
- Track vital signs of hospitalized patients
- Monitor post-operative recovery
- Track ICU patients with critical conditions
-
Home Care
- Remote monitoring of chronic conditions (hypertension, diabetes, etc.)
- Post-discharge follow-up
- Elderly care and fall detection
-
Clinical Research
- Collect longitudinal health data
- Monitor clinical trial participants
- Track treatment effectiveness
Example Workflow:
- Patient wears monitoring device (in hospital, at home, or in clinic)
- System continuously collects and analyzes health data
- AI detects anomalies and generates contextual alerts
- Healthcare providers receive real-time notifications
- Proactive interventions are initiated based on data insights
Ideal for studies requiring continuous physiological data collection with real-time analysis.
Enables post-hospitalization monitoring at home, reducing costs and improving comfort.
- Docker 20.10+
- Docker Compose 2.0+
- OpenAI API key (for LLM features)
-
Clone the repository:
git clone https://github.com/lehdermann/smartcare-insight.git cd smartcare-insight -
Configure environment:
cp .env.example .env # Add your OpenAI API key to .env -
Start the system:
docker-compose up -d
-
Access the dashboard: http://localhost:8501
Microservices-based architecture with independent Docker containers communicating via REST APIs and MQTT messaging.
Key Principles:
- Decoupling: Independent components with well-defined interfaces
- Scalability: Individual component scaling
- Resilience: Fault tolerance
- Performance: Parallel processing
- Generates realistic biometric data (heart rate, blood pressure, etc.)
- Advanced physiological modeling:
- Circadian rhythms
- Meal effects on glucose
- Sleep patterns
- Medical condition simulations
- Validates and processes incoming data
- Stores data in InfluxDB time-series database
- Monitors for anomalies
- Generates alerts based on configurable thresholds
AI-powered analysis with four types:
- Time Window Analysis
- Event-Based Analysis
- Comparative Analysis
- Trend Analysis
RESTful endpoints for:
- Patient management
- Data retrieval
- Alert management
- Authentication
Streamlit-based web interface for monitoring and analysis.
- Collection: Wearables β MQTT
- Processing: Data validation β Storage
- Analysis: Pattern detection β Insights
- Presentation: Dashboard visualization
For detailed configuration instructions, please refer to the Configuration Guide.
-
Copy the example environment file:
cp .env.example .env
-
Update the configuration in
.envas needed -
Start the services:
docker-compose up -d
- Wearable Simulator: Control patient simulation parameters
- MQTT Broker: Configure message broker settings
- InfluxDB: Database and retention policies
- API Server: Authentication and CORS settings
- LLM Service: AI model configuration
See the Configuration Guide for all available options and advanced setup.
-
Clone and create virtual environment:
python -m venv venv source venv/bin/activate # Windows: .\venv\Scripts\activate pip install -r requirements-dev.txt
-
Start services:
docker-compose up -d mosquitto influxdb
-
Run components:
# In separate terminals python -m src.wearable_simulator python -m src.data_processor python -m src.alert_manager python -m src.llm_service python -m src.api_server streamlit run src/dashboard/app.py
smartcare-insight/
βββ src/
β βββ api_server/ # REST API
β βββ data_processor/ # Data processing
β βββ alert_manager/ # Alert system
β βββ llm_service/ # AI analysis
β βββ dashboard/ # Web UI
β βββ wearable_simulator/ # IoT simulator
βββ tests/ # Tests
βββ docker/ # Docker configs
βββ docs/ # Documentation
βββ .env.example # Env vars
βββ docker-compose.yml # Container setup
- System Architecture - High-level system design and component interactions
- User Guide
- API Documentation
- Alert Manager Documentation
- API Server Documentation
- Dashboard Documentation
- Data Processor Documentation
- LLM Service Documentation
- Wearable Simulator Documentation
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- The "SmartCare Insight" name and logo are trademarks of the original author(s).
- You may not use the "SmartCare Insight" name, logo, or branding in a way that suggests your project is endorsed by or affiliated with the original authors without explicit written permission.
- For commercial use or distribution beyond the terms of the Apache License 2.0, please contact the copyright holders for additional licensing options.
For support, please open an issue in the repository or contact the maintainers.
- The open-source community
- Healthcare professionals
- Contributing developers