An AI-powered wound assessment system designed to analyze wound images, measure wound dimensions, track healing progress over time, and generate clinically useful reports.
Project Status: π§ Initial Planning / Architecture Phase Implementation Status: No implementation has been completed yet.
Wound healing is commonly monitored by visually inspecting the wound and manually estimating its size and progress. This process can be subjective, time-consuming, and difficult to compare consistently across multiple assessments.
This project aims to develop an AI-assisted system that can analyze wound images and provide objective measurements and progress information.
The proposed system will:
- Detect the wound region in an image
- Precisely segment the wound boundary
- Calculate wound area and other measurements
- Compare wound assessments across time
- Estimate healing progress
- Provide a recovery timeline
- Generate an automated clinical report
- Allow a clinician to review and verify AI-generated results
The project is intended as a clinical decision-support system, not as an autonomous diagnostic system.
Doctors and healthcare professionals often estimate wound size and healing progress manually.
This can introduce:
- Subjectivity in measurements
- Variation between different assessments
- Difficulty comparing images taken at different times
- Additional workload for clinicians
- Limited quantitative information about healing trends
The goal of this project is to develop an AI-assisted workflow that converts wound images into measurable and trackable healing information.
The primary objectives of the project are:
- Capture and upload wound images.
- Detect the wound region using deep learning.
- Segment the wound at pixel level.
- Calculate wound dimensions and area.
- Compare current and previous wound assessments.
- Estimate healing percentage and healing trends.
- Provide a recovery timeline.
- Generate an automated clinical report.
- Allow clinicians to verify or adjust AI-generated measurements.
- Maintain historical assessment data for each wound.
The core AI pipeline is planned as:
Wound Image
β
βΌ
βββββββββββββββ
β YOLO β
β Detection β
ββββββββ¬βββββββ
β
βΌ
βββββββββββββββ
β U-Net β
β Segmentationβ
ββββββββ¬βββββββ
β
βΌ
βββββββββββββββ
β OpenCV β
β Measurement β
ββββββββ¬βββββββ
β
βΌ
Wound Measurements
β
βΌ
Healing Progress Analysis
β
βΌ
Clinical Report
YOLO is planned for wound detection.
Its purpose is to identify the approximate location of the wound within the image before performing detailed segmentation.
U-Net is planned for pixel-level wound segmentation.
Instead of only producing a bounding box, U-Net will be used to identify the precise wound boundary.
OpenCV will be used for image processing and measurement operations, including:
- Image preprocessing
- Cropping
- Contrast adjustment
- Mask processing
- Contour extraction
- Pixel-area calculation
- Geometric measurements
- Calibration
The proposed YOLO β U-Net β OpenCV pipeline is described in the project architecture document.
A major consideration of this project is converting image pixels into meaningful physical measurements.
A segmentation model can determine the number of wound pixels, but pixel measurements alone do not directly represent real-world dimensions such as cm or cmΒ².
Therefore, the proposed system will investigate:
- A physical reference marker/ruler in the image
- A controlled image-capture setup
- Consistent camera distance and angle
- Lighting and image-quality requirements
The calibration strategy will be finalized before implementing clinical area measurements.
Important: Reporting a measurement such as
4.2 cmΒ²without a reliable physical reference would create a false sense of precision.
The architecture proposal specifically identifies calibration as an important design decision that should be addressed before measurement implementation.
The planned system will be divided into separate application and machine-learning services.
ββββββββββββββββββββββββ
β React + TS β
β Clinical Dashboard β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Node.js + Express β
β Main Backend API β
βββββββββ¬ββββββββ¬βββββββ
β β
ββββββββββββ βββββββββββββ
βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ
β PostgreSQL β β MinIO / S3 β
β Clinical Data β β Image Storage β
βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β FastAPI β
β ML Service β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β YOLO β U-Net β β
β OpenCV β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Measurements + AI β
β Results + Confidence β
ββββββββββββββββββββββββ
The architecture separates the application/clinical workflow from the machine-learning workload. Node.js/TypeScript is planned for the application layer, while FastAPI/Python will handle the AI pipeline.
| Layer | Technology | Planned Purpose |
|---|---|---|
| Frontend | React + TypeScript | Clinical dashboard and image comparison interface |
| Main Backend | Node.js + Express + TypeScript | Application and clinical workflow |
| ORM | Prisma | Database access and type-safe queries |
| Database | PostgreSQL | Patients, wounds, assessments and measurements |
| Image Storage | MinIO / S3 | Wound image storage |
| ML API | FastAPI | AI inference service |
| Object Detection | YOLO | Wound localization |
| Segmentation | U-Net | Precise wound boundary segmentation |
| Image Processing | OpenCV | Preprocessing and measurements |
| Cache | Redis | Optional caching/rate limiting |
| Async Processing | RabbitMQ | Optional future asynchronous inference |
| Interoperability | FHIR | Future healthcare-system integration |
| Deployment | Docker | Containerized development and deployment |
These technologies are proposed, not yet implemented. The architecture document describes PostgreSQL, MinIO, FastAPI, YOLO, U-Net and OpenCV as the core planned components, with Redis and RabbitMQ as later/optional additions.
The clinical data is expected to follow a relational structure:
Patient
β
βββ Wound
β β
β βββ Assessment
β β β
β β βββ Image
β β βββ AI Result
β β βββ Measurements
β β βββ Clinician Review
β β
β βββ Assessment
β
βββ Wound
- Patient
- Wound
- Assessment
- Image
- Measurement
- AI Result
- Clinician Review
- Report
PostgreSQL is proposed because the project contains naturally relational data such as patient β wound β assessment β measurement, with relationships and constraints that should be enforced by the database.
Wound images are planned to be stored separately from clinical metadata.
PostgreSQL
β
βββ Patient information
βββ Wound information
βββ Assessment information
βββ Image object key / metadata
MinIO / S3
β
βββ wound-image-001
βββ wound-image-002
βββ wound-image-003
The database will store metadata and references to images, while the actual image files will reside in object storage.
For local development, MinIO is proposed, with an S3-compatible storage system planned for deployment.
This keeps large binary image data separate from structured clinical data.
The intended workflow is:
1. Clinician uploads wound image
β
2. Backend validates the image
β
3. Image stored in MinIO / S3
β
4. Assessment record created
β
5. Node.js sends image for AI analysis
β
6. FastAPI receives analysis request
β
7. YOLO detects wound
β
8. U-Net segments wound
β
9. OpenCV calculates measurements
β
10. AI result stored
β
11. Clinician reviews result
β
12. Current assessment compared
with previous assessments
β
13. Healing trend calculated
β
14. Clinical report generated
This workflow follows the proposed upload and retrieval flow in the architecture document.
The system is planned to produce the following outputs:
A segmentation mask showing the detected wound region.
Original Image
+
Segmentation Mask
β
Detected Wound Boundary
Estimated wound area based on the segmented region and the selected calibration method.
A comparison between previous and current wound measurements.
For example:
Previous Area : 10.0 cmΒ²
Current Area : 7.5 cmΒ²
Estimated reduction = 25%
The exact healing metric and formula will be defined during implementation and validation.
The system will maintain historical assessments to visualize wound progression over time.
Day 0 β 10.0 cmΒ²
Day 7 β 8.5 cmΒ²
Day 14 β 7.1 cmΒ²
Day 21 β 5.8 cmΒ²
β
Healing Trend
A future report may contain:
- Patient/wound information
- Assessment date
- Original wound image
- Segmentation result
- Wound measurements
- Previous measurements
- Healing trend
- AI confidence
- Model version
- Clinician verification
- Observations
The AI output will not automatically be treated as the final clinical measurement.
The proposed workflow allows a clinician to:
- Review the AI-generated wound boundary.
- Accept the result.
- Adjust the boundary if required.
- Verify the measurement.
- Store both the original AI result and the clinician-verified result.
This distinction is important because it allows the project to evaluate how closely the model agrees with clinical assessment over time.
Since the project deals with potentially sensitive medical information, security will be considered from the beginning.
Planned considerations include:
- Authentication
- Role-based access control
- Audit logging
- HTTPS/TLS
- Protected image access
- Upload validation
- Consent tracking
- Model version tracking
These are planned architectural requirements and are not currently implemented.
FHIR is planned as a future interoperability layer.
Potential FHIR resources include:
PatientObservationDiagnosticReportDocumentReference
FHIR would allow the system to exchange relevant information with external healthcare systems without replacing the project's internal REST API.
The project will be developed incrementally.
- Design PostgreSQL schema
- Set up Node.js/Express backend
- Set up React frontend
- Implement Patient β Wound β Assessment structure
- Implement secure image upload
- Set up MinIO object storage
- Set up FastAPI ML service
- Implement image preprocessing
- Prepare wound detection dataset
- Train/evaluate YOLO model
- Prepare wound segmentation dataset
- Train/evaluate U-Net model
- Implement wound segmentation
- Implement OpenCV measurement pipeline
- Define and implement calibration
- Store AI results
- Build wound history/timeline
- Compare previous and current images
- Compare segmentation masks
- Implement clinician verification
- Calculate healing percentage/trends
- Generate clinical reports
- Implement RBAC
- Implement audit logging
- Protect image access
- Add model versioning
- Explore FHIR integration
- Redis caching
- RabbitMQ asynchronous inference
- Application/ML monitoring
- Cloud deployment
The phase structure follows the proposed build order in the architecture document.
The repository structure is expected to evolve during implementation. An initial target structure is:
wound-healing-analysis/
β
βββ frontend/
β βββ React + TypeScript application
β
βββ backend/
β βββ Node.js + Express + TypeScript
β
βββ ml-service/
β βββ FastAPI + Python
β
βββ ml/
β βββ yolo/
β βββ unet/
β βββ preprocessing/
β βββ measurement/
β
βββ data/
β βββ Dataset documentation
β
βββ docs/
β βββ architecture/
β βββ research/
β
βββ docker/
β
βββ README.md
βββ .gitignore
This is a planned structure. Directories will be added as implementation begins.
Several challenges will need to be addressed during development.
A suitable wound-image dataset with reliable annotations will be required for training and evaluation.
The wound boundary may be difficult to identify because of:
- Different wound types
- Lighting variations
- Skin-tone variation
- Shadows
- Blood or exudate
- Irregular wound boundaries
- Background objects
Pixel measurements cannot automatically be interpreted as real-world measurements without a reliable scale.
Healing comparisons become more meaningful when images are captured under reasonably consistent conditions.
AI-generated measurements should be evaluated against appropriate ground-truth or clinician-verified measurements.
Every AI-generated assessment should eventually record which model/version produced the result so that historical results remain traceable.
The architecture proposal specifically highlights calibration, clinician verification, model versioning, and consistent capture conditions as important considerations.
At the current stage:
- No AI model has been implemented.
- No YOLO model has been trained.
- No U-Net model has been trained.
- No image segmentation pipeline exists yet.
- No wound measurement pipeline exists yet.
- No healing prediction model exists yet.
- No frontend has been implemented.
- No backend has been implemented.
- No database has been implemented.
- No clinical report generator has been implemented.
This repository currently represents the planning and architecture stage of the project.
Possible future improvements include:
- Improved wound segmentation models
- More accurate wound-area estimation
- Multi-class wound analysis
- Wound severity assessment
- Tissue classification
- Healing-rate prediction
- Personalized recovery estimates
- Automated longitudinal trend analysis
- Model confidence visualization
- Explainable AI features
- FHIR-based interoperability
- Cloud deployment
- Monitoring and model performance tracking
Model evaluation will be introduced once the dataset and models are available.
Potential evaluation metrics include:
- Precision
- Recall
- mAP
- Dice Score
- Intersection over Union (IoU)
- Precision
- Recall
- Mean Absolute Error
- Relative measurement error
The final evaluation methodology will depend on the available longitudinal dataset and clinically validated ground truth.
This project is being developed as an academic/research prototype and clinical decision-support concept.
It is not intended to replace professional medical judgment, diagnosis, or treatment decisions.
AI-generated measurements and predictions should be reviewed by a qualified healthcare professional before being used for clinical decision-making.
The repository will gradually include documentation covering:
- System architecture
- Dataset selection
- Data preprocessing
- YOLO training
- U-Net training
- Image segmentation
- Wound measurement
- Calibration
- Healing-progress calculation
- Backend API
- Database design
- Clinical workflow
- Model evaluation
- Deployment
Current Stage: π‘ Planning / Architecture
Architecture ββββββββββ Planned
Backend ββββββββββ Not Started
Frontend ββββββββββ Not Started
Dataset ββββββββββ To Be Finalized
YOLO ββββββββββ Not Started
U-Net ββββββββββ Not Started
OpenCV Pipeline ββββββββββ Not Started
Measurement ββββββββββ Not Started
Healing Analysis ββββββββββ Not Started
Clinical Report ββββββββββ Not Started
AI-Based Wound Healing Progress Analysis
The project aims to combine computer vision, deep learning, backend engineering, and healthcare-oriented software design into an end-to-end wound assessment platform.
The long-term goal is to build a system where a clinician can upload a wound image and receive a structured assessment containing:
Wound Image
β
Wound Detection
β
Precise Segmentation
β
Measurements
β
Historical Comparison
β
Healing Trend
β
Clinician Verification
β
Clinical Report
The focus is not simply to build an image-classification model, but to develop a complete and traceable workflow around wound measurement and longitudinal healing assessment.