Wound documentation is lengthy and administrative for nurses: reports are often incomplete, they vary from nurse to nurse, and they take up on average 11 of the 30 minutes in each wound care session, time taken away from the patient when they need it most.
At the same time, complete and accurate wound reporting is essential for nurses to provide the best treatment for a wound. The Leiden University Medical Center (LUMC), one of the two winners of the National AI Challenge 2025, proposed using AI to assist the wound reporting process. Together with LUMC's lab for AI in healthcare, Cairelab, we developed TAIME: an AI assistant that helps nurses document wounds faster and more consistently.
Our question was simple: can a photo that nurses already take fill in the wound report for them?
In this blog, we'll explore:
the existing wound reporting workflow
how we labeled the data
how we combined three computer vision models
what we learned
Understanding the wound reporting workflow
A wound care session involves removing the bandages, cleaning and checking the wound, and applying new bandages. In between, the nurse also takes a photo and measures the wound. After the care process is completed, the nurse documents the wound in an electronic patient record system.
The wound report is structured in the universal TIME format with categories “Tissue”, “Infection”, “Moisture” and “Edge”. For each of these categories, certain properties are recorded, such as the size of the wound, the composition of tissue types (for example 50% red, 20% black, 30% yellow), and whether there are signs of infection and which ones. Tracking these categories is important if we want to see if the wound is healing well: we need to know if the wound is getting smaller and if the percentage of healthy tissues is increasing.
The wound is measured by putting a paper tape measure next to it and visually reading the length and the width of the wound. Usually, the wound picture also contains the tape measure for reference.
Using this current method of wound reporting, we have identified three problems:
First, the reports are often incomplete. We found that the wound report form is filled in completely in only 11% of cases.
Second, there is inconsistency between the nurses. For example, the dimension measurements can vary between nurses and are imprecise. If we have multiple inconsistent measurements of the wound by different nurses, it becomes hard to track the accurate progression of the wound over time.
Third, nurses experience the reporting as an administrative burden. One wound care session lasts 30 minutes, of which on average 11 minutes are spent on administration.
Using an AI-assisted process, we can help make reporting faster, more accurate and more complete. At the same time, we wanted to change as little as possible about the existing workflow. So we used the wound photo that nurses already take as the input to the AI system, which turns this into a computer vision problem.
In the new workflow, the nurse takes the photo in an app, the AI fills in a draft of the TIME report, and the nurse checks it before it goes into the patient record. The nurse always has the final say: they can adjust the draft where needed or reject the AI suggestion completely.
Next, we analyzed what information we need to derive from the wound image to fill the TIME report:
We need regional segmentation of different wound tissues on a per-pixel basis to calculate the wound shape and the composition of tissue types.
We need to derive properties of the wound tissues and the wound as a whole, for example, signs of infection, blistering, exposed bone or callus on the wound edge.
From the shape of the wound, we want to derive the actual size of the wound, meaning its length and width. A photo by itself has no scale, so we estimate the distance from the camera to each pixel using a known reference object to convert pixels into centimeters.
This translates to three different computer vision problems or tasks:
Semantic segmentation
Multi-label classification
Depth estimation
Each of these three problems is well understood on its own. There are public datasets, research papers, open-source code and pretrained models for all of them. However, for this application, we need to adapt (tune and train) the three models to medical wound images, combine their output into a usable report, and show that it works. And all that in nine months!
Of course, no AI project can start without data to train and validate the models. In the coming sections, I will first go into detail about the data labeling process, the problems we faced and how we solved them.
Then I will elaborate on the three tasks:
Wound segmentation
Classification of wound properties
Depth estimation
Plus, how we combined their outputs and what results we obtained.
Labeling wound images
For this project, we had to start labeling data from scratch. There was no public dataset with the level of detail on wound tissue that we needed. Most of the open wound datasets we found only mark the wound itself, not the different tissue types. These datasets were also rather small. Some published research papers solve similar problems, but on closed datasets. This is common in the medical domain, and we did not have access to these datasets. We could not use the existing TIME reports as labels either, because they are stored as free text and do not say where in the image each tissue type is located.
We could, however, retrieve past wound images from the patient record system and label them retrospectively. This had to be done by the domain experts, in this case the nurses. To make the best use of their time, and to label as much data as possible, we wanted to automate most of the labeling work.
We did this with Segment Anything 2, an open-source foundation model for segmentation, which we built into Label Studio, the labeling software we used. Like Segment Anything, Label Studio is open source, so we could deploy both on LUMC's internal infrastructure, and no patient data left the hospital network.
With Segment Anything in Label Studio, nurses only had to click a few points on the image, and the model drew the segmentation. They could then focus on recording the other properties of the wound, which takes a fraction of the time needed to draw every segmentation by hand. Connecting the two tools took some development time, but it made labeling much faster.
Segment Anything did not work well in every case. It is a model pretrained on general images (people, objects, animals, landscapes) rather than medical images, after all.
When the lighting was poor, or the wound was large and its edges were blurry, classical tools such as a magic wand worked better. A magic wand lets you click a color and selects all regions with a similar color. We therefore combined AI and classical computer vision tools for labeling. The setup cost some developer time, but it saved the labelers far more time and improved the quality of the labels.
Label Studio can be fully customized. Out of the box, it supports standard tasks such as image segmentation, object detection and classification. Our combination of tasks is less common, so we customized the labeling interface to support segmentation and classification annotations at the same time. The labelers drew the segmentation masks, by hand or with Segment Anything, and in the same view recorded the wound properties with checkboxes: Are there signs of infection? Are there other findings around the wound? Is there metadata to add? This gave us one integrated source of truth for all labels.
With this setup, a small group of nurses labeled a few hundred images. The quality of the labels is not consistent between nurses, so we had to check the labels. We searched for low-quality annotations with simple heuristics. For example, two tissue types should never overlap, but Label Studio has no setting to prevent overlap, so we had to rely on the labelers to be thorough. Images with a large overlap between the tissue types can point to other labeling inconsistencies. We also reviewed many labels manually.
Where the heuristics or the review found a problem, we asked the domain experts to adjust the annotation.
Key takeaway: In labeling work like this, it is important to give your domain experts feedback quickly and often: how to make the labels, and where there are mistakes or inconsistencies. Inconsistencies in the labels will end up in the models and are much harder to diagnose.
Three computer vision tasks for AI wound documentation
1. Wound segmentation
Wound segmentation was probably the most straightforward of the three problems. In a hackathon before the project started, we had already shown that a model can learn from this kind of segmentation data. The data was also in the best shape for this task: we had a few hundred images with segmentation masks.
The tissue types are not evenly distributed, though. Some colors appear in almost every wound, while other colors are rarer. Luckily, segmentation labels are dense: every pixel gets a label. So even for the rare classes, there are many labeled pixels to train on.
This meant we could start with a simple baseline from the literature and improve from there. Our approach was to start with the bare components and add features one experiment at a time: more layers in the network, more preprocessing steps such as data augmentation, and different loss functions. After each change, we trained the model and evaluated it on the validation data. If the improvement was large enough, we kept the configuration. Otherwise, we rejected it.
We did not invent a new model architecture. We used encoders and segmentation architectures from the literature. Our first model was a ResNet-50 encoder with a Feature Pyramid Network (FPN) decoder, and we gradually built on that.
At this point, I want to give credit to the open-source community, especially the PyTorch Image Models (timm) library. With timm, you can load almost any openly available pretrained vision encoder and fine-tune your network on top of it. Switching encoders is as easy as changing a model name. One of our first experiments was simply a loop over common and promising encoders, such as ResNet, DenseNet, MobileNet and even Vision Transformers, to see which feature extractor worked best.
Interestingly, larger models with more parameters were not better in our experiments. The classic ResNet models and models closely related to ResNets gave the best results. They were also easy to train with: we quickly found good learning rates and settings for sampling and data augmentation. Smaller models such as MobileNet, on the other hand, were hard to train: we struggled to find training parameters that made the loss converge.
Once we had a good baseline encoder and decoder, we had to address the class imbalance. In the early experiments, the network often collapsed to predicting only one color: the most common one. Three changes helped here. First, we added a little non-linearity to the FPN decoder. Second, we switched the loss function from Dice loss to a combination of Dice and focal loss. The Dice score measures how well the region that the model predicts for a tissue type overlaps with the region that the nurse labeled: 1 means a perfect match, 0 means no overlap at all. Dice loss trains the model to maximize this score directly. Focal loss gives less weight to pixels that the model already classifies correctly, so the rare classes get more attention during training. Third, we changed how we sample the training crops. Instead of cropping randomly, we pick crops so that the rare tissue types appear more often.
Data augmentation then helped the model to generalize. We used standard geometric augmentations, such as flips, rotations, scaling and crops, and color and lighting augmentations, such as changes in brightness, contrast and noise. The lighting augmentations are useful here, because the lighting differs strongly from one wound photo to the next. For this, we used the open-source Albumentations library, which provides a large set of standard transformations for computer vision.
We also found that the results were sensitive to the crop size. The best crop size depended on the other settings, such as the sampling, the loss, and the network architecture. After some experimentation, we settled on 1024 × 1024 pixels.
How much did all of this help? From our first stable baseline to the final model, the Dice score on the validation data almost doubled. On a held-out test set, the final model scored about 40% higher than our earlier model, and every tissue type improved. The biggest gain was on the rarest tissue type, black necrotic tissue, where the score tripled.
2. Classification of wound properties
At first sight, classification looks like a simpler problem than segmentation: instead of predicting the shape and color of each region, the model only answers yes or no for each class. However, if you look at how it works technically, you see that they are very similar: segmentation does classification at the pixel level and classification does it at the image level. Image-level classification has an additional step after the encoder stage: it pools the encoder features across the whole image into a single feature vector. The final output is a linear layer on top of the pooled features.
This means that the segmentation model and the classification model share most of their architecture. We can share the encoder and decoder between the two tasks. If we look at the availability of data, we can see another reason why sharing the encoder-decoder might be a good idea: the classification labels are “sparse”, in contrast to the “dense” segmentation labels. There is only one set of labels per image instead of one per pixel, which gives the model much less signal to train on. Our theory was that first training the encoder-decoder on the segmentation data and then freezing those weights while training on the classification labels would help the classification model generalize better.
The experiments confirmed this. With the decoder unfrozen, the validation loss of the classification head reached its minimum after a few epochs and then went up again: the model overfitted on the sparse labels. With the frozen decoder, the validation loss kept going down. The frozen decoder does not reach a lower loss, but it does not overfit, so the result does not depend on stopping at the right moment.
The classification head itself is small. It uses the features from the decoder, and puts a linear layer on top of those features. Everything else stays frozen. We also considered joint training, where we add the classification and segmentation losses together and train both heads at the same time. We decided against it, because the two tasks need different preprocessing and sampling settings.
Even so, classification turned out to be the hardest of the three tasks. Many wound properties are rare, so there are few positive examples to learn from. We resample the training images so that rare properties appear more often, but that only goes so far. The labels themselves are also uncertain: in our pilot, nurses often disagreed with each other on some properties, especially on signs of infection. If the experts do not agree, the model has no clear target to learn.
To search for improvements, we used an “autoresearch” loop with coding agents. One agent proposes a single, focused experiment, for example a change to the resampling strength, and runs it on our GPU cluster. A critic then accepts or rejects the result against fixed rules: the main metric must improve by a set margin, a second metric must not get worse, and the decision thresholds must still make sense in practice. In one of the first experiments, the main metric went up for a few epochs, but the critic rejected the change: the second metric dropped, and the model flagged almost every image as positive.
In the end, none of these experiments gave us a classification model that was good enough. Some properties did improve, but overall precision and recall were poor. Many properties had so few examples that it was hard to even find a validation metric that could separate real progress from noise. We knew in advance how hard this would be with the available data, so the classification task was always more of a “let’s see what happens” experiment.
3. Depth estimation
Depth estimation is a special case among the three tasks. Measuring in 3D from images is a classic, solved problem, but it usually needs a special setup. A stereo camera gives you the depth of an image directly, and so do depth sensors such as LiDAR or time-of-flight sensors, which some modern smartphones have. To fit the way of working at LUMC, we used the hardware that LUMC already uses, and those devices have no depth sensors.
So what options are left? You could take two photos of the wound from different angles. But then nothing is allowed to move between the two photos: the patient has to stay completely still, it takes two nurses to do this, and you need to know exactly where each photo was taken from. So this is not a practical solution.
Another option is to put an object of known size in the image, for example a card with a printed grid of dots. From its size and position in the image, you can calculate how far away it is. If you place it close to the wound, you can use it to estimate the size of the wound.
At the same time, there has been a lot of progress in monocular depth estimation: deep learning models, such as Depth Anything, that estimate depth from a single image instead of a stereo pair. We decided to try both approaches and, if possible, combine them.
In early experiments, the depth model on its own gave us a measurement, but in many cases it was off by a few centimeters. This is probably because the model was trained on a general collection of everyday images, such as smartphone photos of scenes, objects and landscapes. That does not transfer well to close-up photos of wounds. We could have fine-tuned the model or trained our own depth model for this domain. But that needs training data with ground-truth depth, which again requires stereo images or expensive depth sensors. We had neither, so we stayed with a pretrained model.
The reference card fills this gap. We know the size of the dot pattern and the parameters of the camera, so we can measure the exact distance from the camera to the card. We use that measured distance to correct the depth that the AI model estimates.
We tested the measurement on real patients during our pilot. Nurses photographed wounds several times each with the reference card in the image. For wounds of 5 cm or larger, the measured length was within about 7% of the nurse's measurement, and the width within about 11%. For smaller wounds, we had too few samples to draw conclusions, so the model needs further testing there. In some of the photos, we could not make a measurement at all, mostly because the card was not detected due to motion blur, poor lighting or a hand covering it. This showed us that nurses need training in taking good-quality wound photos.
Putting it all together
Besides the three models, we built everything around them that a pilot needs: an Android app for the nurses, a backend inside the LUMC network, and monitoring that records which AI suggestions the nurses accept or correct. This post focuses on the models, but the pilot ran on this complete system, and the feedback it collected showed us clearly what to improve before the solution can be adopted in the clinic.
The output of the three models cannot simply be chained and combined; it has to be post-processed and converted first.
The first step is to clean up the segmentation. A raw mask often contains small, isolated islands of tissue next to the wound. This is mostly noise caused by false-positive predictions in the background of the photo. It changes the tissue percentages, can make it look as if a tissue type is present when it is not, and it affects the measured length and width. We remove every island smaller than a certain threshold.
The masks of the tissues of interest are then combined into a single wound mask that is passed to the dimension estimation pipeline.
Next, we check the wound properties against the segmentation. Rule-based checks flag if the segmentation and classification output contradict each other and selects the one that is more reliable.
Finally, a property is only shown to the nurse if the classifier reached a predefined precision and recall threshold on our held-out test set. In the pilot, no property passed that bar, so the nurses did not see any checkbox from the classifier. Fields without a trusted answer stay empty. We think that is the right choice: a nurse can fill in an empty field, but a wrong suggestion costs trust. This way, the pilot also served as extra data collection for the next version of the model.
What we learned
Looking back, these are our main lessons.
Understand the problem before you pick a solution.
Knowing how wound care and the TIME report work in practice is what led us to use the existing photo as the only input, and to split the problem into three computer vision tasks.
Make the domain experts part of the team.
The nurses, supported by LUMC's Nursing Information Officers (NIOs), did not just deliver labels. They helped define what a correct label is, reviewed the model output in the pilot, and told us when something made no clinical sense. Their disagreement taught us as much as their agreement: if experts do not agree on a label, no model will learn it reliably.
Build on what the community has already made.
No need to reinvent the wheel. Segment Anything 2, Label Studio, timm, Depth Anything and Albumentations contain most of the modeling and pipeline complexity. Our work was to connect these parts and adapt them to wound photos
Sometimes a classical method works best.
A card with a grid of dots, a technique as old as camera calibration, fixed the errors of a state-of-the-art depth model. In the labeling tool, a magic wand helped where Segment Anything failed.
Foundation models make labeling much faster.
Segment Anything turned drawing a mask into a few clicks. But the nurses still had to check every mask, record the wound properties and fix the cases where the model failed. And fixing a bad mask can take longer than drawing it by hand, so it pays to know when to switch to a simpler tool.
In a pipeline, the weakest model sets the limit.
A slightly wrong wound outline shows up in the tissue percentages, in the wound properties and in the measured size. Improving the segmentation was therefore worth more than improving the depth model. For the wound properties, the weakest model was the classifier: it was not reliable enough to show anything in the pilot. In hindsight, we could have taken it out of the scope earlier.
Concluding thoughts: practical AI in healthcare
We started with a simple question: can a photo that nurses already take fill in the wound report for them?
After nine months, we delivered a fully functioning prototype, TAIME, including an Android app, that nurses can use and test as part of their daily workflow.
Two main challenges remain before adoption: there is not enough data to classify the wound properties, and the segmentation quality has to get better. For both, we have a clear road ahead: more and better labeled images, a stricter protocol for taking the photo, and training for the nurses who take them.
AI has enormous potential in healthcare, but adoption is often challenging in complex environments like hospitals. Solutions that solve real problems and fit existing workflows are often the best way forward. By collaborating with health care workers and sharing knowledge, we can work toward practical AI solutions in healthcare.
Read more about the project: AI-supported wound reporting
Related reading about AI in healthcare: Hallucination detection for small on-prem medical LLMs: what works, what doesn’t, and why