Skip to content

lehdermann/smartcare-insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SmartCare Insight Logo

SmartCare Insight

Intelligent Health Monitoring Platform

License Docker Python

🌐 Overview

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.

🎯 Objectives

Primary

To provide an integrated real-time health monitoring solution that enables continuous and proactive patient monitoring, improving care quality and enabling early interventions.

Additional Objectives

  1. Demonstrate IoT concepts in biometric data collection and processing
  2. Illustrate distributed systems architecture in a digital healthcare scenario
  3. Showcase the integration of multiple components (devices, data processing, AI) in a real-time data pipeline
  4. Provide a foundation for exploring emerging digital health technologies

πŸš€ Key Features

  • 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

πŸ₯ Use Cases

Patient Monitoring

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:

  1. Patient wears monitoring device (in hospital, at home, or in clinic)
  2. System continuously collects and analyzes health data
  3. AI detects anomalies and generates contextual alerts
  4. Healthcare providers receive real-time notifications
  5. Proactive interventions are initiated based on data insights

Clinical Research

Ideal for studies requiring continuous physiological data collection with real-time analysis.

Remote Patient Monitoring

Enables post-hospitalization monitoring at home, reducing costs and improving comfort.

πŸš€ Quick Start

Prerequisites

  • Docker 20.10+
  • Docker Compose 2.0+
  • OpenAI API key (for LLM features)

Installation

  1. Clone the repository:

    git clone https://github.com/lehdermann/smartcare-insight.git
    cd smartcare-insight
  2. Configure environment:

    cp .env.example .env
    # Add your OpenAI API key to .env
  3. Start the system:

    docker-compose up -d
  4. Access the dashboard: http://localhost:8501

πŸ—οΈ System Architecture

Architecture Overview

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

Component Details

Wearable Simulator

  • Generates realistic biometric data (heart rate, blood pressure, etc.)
  • Advanced physiological modeling:
    • Circadian rhythms
    • Meal effects on glucose
    • Sleep patterns
    • Medical condition simulations

Data Processor

  • Validates and processes incoming data
  • Stores data in InfluxDB time-series database

Alert Manager

  • Monitors for anomalies
  • Generates alerts based on configurable thresholds

LLM Service

AI-powered analysis with four types:

  1. Time Window Analysis
  2. Event-Based Analysis
  3. Comparative Analysis
  4. Trend Analysis

API Server

RESTful endpoints for:

  • Patient management
  • Data retrieval
  • Alert management
  • Authentication

Dashboard

Streamlit-based web interface for monitoring and analysis.

Data Flow

  1. Collection: Wearables β†’ MQTT
  2. Processing: Data validation β†’ Storage
  3. Analysis: Pattern detection β†’ Insights
  4. Presentation: Dashboard visualization

βš™οΈ Configuration

For detailed configuration instructions, please refer to the Configuration Guide.

Quick Setup

  1. Copy the example environment file:

    cp .env.example .env
  2. Update the configuration in .env as needed

  3. Start the services:

    docker-compose up -d

Key Configuration Areas

  • 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.

πŸ›  Development

Setup

  1. Clone and create virtual environment:

    python -m venv venv
    source venv/bin/activate  # Windows: .\venv\Scripts\activate
    pip install -r requirements-dev.txt
  2. Start services:

    docker-compose up -d mosquitto influxdb
  3. 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

Project Structure

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

πŸ“š Documentation

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“œ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Additional Terms and Conditions

  • 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.

πŸ“ž Support

For support, please open an issue in the repository or contact the maintainers.

πŸ™ Acknowledgments

  • The open-source community
  • Healthcare professionals
  • Contributing developers

About

SmartCare Insight: A real-time health monitoring platform leveraging IoT and distributed systems for continuous patient care. Features biometric data collection, AI-powered analytics, and scalable architecture for proactive healthcare solutions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors