Skip to main content

Wound Care Analysis System using LLMs and sensor data

Project description

Wound EHR Analyzer

Python 3.12 License: CC BY-NC 4.0 Streamlit App

An AI-powered tool for analyzing and interpreting wound care management data, providing healthcare professionals with advanced insights and recommendations.

Overview

This application leverages large language models (LLMs) to analyze wound care data, generating comprehensive insights and evidence-based recommendations for healthcare providers. The system includes both an interactive web dashboard and command-line tools for efficient data processing and analysis.

Key Features

  • Interactive Analysis Dashboard: Streamlit-based interface for real-time data visualization and AI-powered insights
  • Multi-Model LLM Support: Compatible with various LLM platforms including OpenAI and custom endpoints
  • Advanced Statistical Analysis: Comprehensive wound healing trend analysis and progression tracking
  • Flexible Data Handling: Support for diverse data types including images, time-series data, and clinical notes
  • Robust Error Handling: Graceful recovery from API interruptions and connection issues
  • Containerized Deployment: Docker support for consistent deployment across environments

Dashboard Components

The interactive dashboard provides comprehensive wound analysis through specialized tabs:

  • Overview: Patient demographics, wound summary statistics, and population-level trends
  • Impedance Analysis: Electrical measurements visualization with clinical interpretations
  • Temperature: Thermal gradient analysis for wound assessment
  • Oxygenation: Tissue oxygen saturation monitoring and analysis
  • Exudate: Characterization and trending of wound drainage
  • Risk Factors: Patient-specific risk factor evaluation and impact analysis
  • LLM Analysis: AI-powered natural language processing for comprehensive wound assessment

Quick Start

Prerequisites

  • Python 3.12+
  • Docker (for containerized deployment)
  • OpenAI API key or compatible service

Installation & Setup

We provide convenient scripts for all setup operations. Choose the deployment method that best fits your needs:

Option 0: Pip Installation (Simplest Method)

# Install directly from PyPI (once published)
pip install wound-analysis

# Or install the latest version from GitHub
pip install git+https://github.com/artinmajdi/Wound_management_interpreter_LLM.git

# Run the dashboard
wound-dashboard

# Or run analysis from command line
wound-analysis --record-id 41

See documentation/INSTALL.md for detailed pip installation instructions.

Option 1: Docker Deployment (Recommended for Production)

# 1. Set up environment variables (API keys, etc.)
./scripts/setup_env_variables.sh

# 2. Start the application in Docker
./scripts/run_docker.sh start

# 3. Access the dashboard at http://localhost:8501

# 4. Run CLI analysis for a specific patient record
./scripts/run_docker.sh cli 41

# 5. Verify dataset structure and integrity
./scripts/run_docker.sh verify

Option 2: Conda Environment (Recommended for Development)

# 1. Create and configure the conda environment
./scripts/install.sh

# 2. Activate the environment
conda activate wound_analysis

# 3. Run the dashboard
streamlit run wound_analysis/dashboard.py

Option 3: Python Virtual Environment

# 1. Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# 2. Install dependencies and set up environment
pip install -r setup_config/requirements.txt
pip install -e .
./scripts/setup_env_variables.sh

# 3. Run the dashboard
streamlit run wound_analysis/dashboard.py

Documentation

Project Structure

wound_management_interpreter_LLM/
├── setup.py                  # Package configuration
├── setup_config/                   # Configuration files
│   ├── .env.example          # Template for environment variables
│   ├── environment.yml       # Conda environment specification
│   ├── MANIFEST.in           # Package manifest file
│   ├── pyproject.toml        # Modern Python project metadata
│   ├── pytest.ini            # PyTest configuration
│   └── requirements.txt      # Python dependencies
├── documentation/            # Documentation files
│   ├── INSTALL.md            # Installation instructions
│   ├── LICENSE               # License file
│   ├── configuration.md      # Configuration guide
│   ├── docker_usage.md       # Docker deployment instructions
│   ├── data_processing.md    # Data processing guide
│   ├── llm_integration.md    # LLM integration guide
│   └── index.md              # Documentation index
├── docker/                   # Docker configuration
│   ├── Dockerfile            # Container definition
│   ├── docker-compose.yml    # Service orchestration
│   └── .dockerignore         # Build exclusions
├── scripts/                  # Utility scripts
│   ├── run_docker.sh         # Docker management script
│   ├── install.sh        # Conda environment setup
│   └── setup_env_variables.sh          # Environment configuration
├── tests/                    # Test suite
├── wound_analysis/           # Core application code
│   ├── dashboard.py          # Streamlit interface
│   ├── main.py               # CLI entry point
│   ├── cli.py                # Command line interface
│   ├── utils/                # Utility modules
│   └── dashboard_components/ # Dashboard components
│       ├── overview.py       # Overview tab component
│       ├── impedance.py      # Impedance analysis component
│       ├── temperature.py    # Temperature analysis component
│       ├── oxygenation.py    # Oxygenation analysis component
│       ├── exudate.py        # Exudate analysis component
│       └── risk_factors.py   # Risk factors analysis component
├── dataset/                  # Data directory (mounted at runtime)
├── .env                      # Environment variables
└── ide_config/               # IDE configuration
    └── Wound_management_interpreter_LLM.code-workspace  # VSCode workspace file

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0), which permits non-commercial use with attribution. See the documentation/LICENSE file for details.

Acknowledgments

  • This project was developed as part of advanced research in AI-assisted healthcare
  • Special thanks to the healthcare professionals who provided domain expertise

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wound_analysis-1.5.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wound_analysis-1.5.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file wound_analysis-1.5.0.tar.gz.

File metadata

  • Download URL: wound_analysis-1.5.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wound_analysis-1.5.0.tar.gz
Algorithm Hash digest
SHA256 e18c69dfc9a4806959b7b6e8d4c5d7066004738a41f338f2095a1d493b6d106c
MD5 ec40b4649e1a86cdba62645a15407fd0
BLAKE2b-256 5afc027bd85fb344808757c6cab0c442c18c51f4c7ee0d44bd9a5a6d22e161a3

See more details on using hashes here.

File details

Details for the file wound_analysis-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: wound_analysis-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wound_analysis-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d8a384a3931e63763013460a72b950e1327041986d3eeb781de6088fcb502c8
MD5 9da94e94c3dbcc72fc0b06faf417e229
BLAKE2b-256 f1e1869316488ec5ab8b0b26659d6844b4f30e343894760c106db29b48c9c238

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page