WILLIE: one model, three wound questions, one look
University of Houston

WILLIE

Wound Imaging, Localization & Integrated Evaluation

One model. Three questions a clinician asks about a wound. One look at the photo.

Gopi Trinadh Maddikunta   Peizhu Qian

Department of Computer Science
College of Natural Sciences and Mathematics, University of Houston

Machine Learning for Healthcare 2026  ·  PMLR 340

The whole idea in one minute.

No sound needed. Every scene carries its own words, so it plays fine on mute.

Then scroll on for the detail, or go straight to the paper.

What the video shows
  1. A nurse checks a wound. This is illustrative footage, not study data. Three questions appear: type, edges, location.
  2. Today these usually need three separate AI models, one per question.
  3. WILLIE answers all three with one model. A wound photo goes in; type, edges and location come out.
  4. A screen recording of WILLIE reading a photo and returning the type, the outline and the location in one pass.
  5. Three public datasets, FUSeg, AZH and Medetec, merged into one benchmark with five classes: diabetic, pressure, surgical, venous and no wound.
  6. The best scores: 92% accuracy on wound type, 91 Dice on the outline, 96 AP@0.5 on location.
  7. Boxes drawn from the outline reach 96.2 AP@0.5, ahead of the best dedicated detector, YOLOv8m, at 91.2 on this benchmark.
  8. The hardest case is pressure wounds, F1 76.5, most often confused with venous wounds.
  9. The paper title and where to read it.
8.2M
Medicare beneficiaries diagnosed with a wound or wound related infection in a single year

That is close to one in seven. The conservative estimate of what Medicare spent treating them in 2014 was $28.1 billion, and the share of beneficiaries affected has risen since.

SHARE OF MEDICARE BENEFICIARIES WITH A CHRONIC WOUND 2014 14.5% 2019 16.3%
Prevalence over five years. The number is moving the wrong way Sources: Nussbaum et al., Value in Health 2018, from 2014 Medicare claims. Carter et al., Journal of Medical Economics 2023, comparing 2014 with 2019. The 2023 follow up reports prevalence up by about 13 percent while its most conservative spending estimate fell. Read the dollar figure as a 2014 snapshot, not a trend.

Where wound specialists are scarce, assessment gets delayed. Delay turns into infection, hospitalization, sometimes amputation.

A nurse looks at a wound and answers three things at once.

A wound photo enters WILLIE, which produces anatomical localization, boundary segmentation, and wound type classification with confidence percentages.
One wound, three answers, produced in a single pass
What kind is it?
Diabetic, pressure, surgical, venous, or not a wound at all. The type drives the treatment.
Where are its edges?
You cannot tell whether a wound is healing unless you measure it the same way every week.
Where is it?
Position goes in the chart and lets you line this week's photo up against last week's.

They are not separate jobs. Size hints at type. Type tells you what the edges should look like. A clinician does all three in one glance.

Machine learning split them into three strangers.

A classifier
on its own dataset
A segmenter
on a different one
A detector
on a third
Three models, three datasets, three scoring rules

Nobody could answer whether solving them together helps, because there was nowhere to run the comparison.

What we built, part one

So we built the place.

SOURCE DATASETS TASK BENCHMARKS FUSeg 1,010 images with traced edges AZH 930 images, expert type labels Medetec 384 images, rare types Type 1,314 images, five classes Edges 1,010 images with masks Position 1,210 images with boxes
How three unrelated datasets become three comparable benchmarks

Merging them forced one decision that mattered more than any other: a single set of five labels that every image has to fit.

TRAINING IMAGES PER CLASS Venous 318 Pressure 270 Diabetic 220 No wound 150 Surgical 122 Widest ratio 2.32 to 1, corrected with inverse frequency weighting
The five class taxonomy and how lopsided it is

Now all three questions get asked of the same images, scored the same way, against the same held out test set. Results become comparable for the first time.

How it was built

The official AZH test split of 234 images is held out across every fold and used only for final classification scoring. Segmentation uses the official FUSeg release, 610 training and 400 validation images, because the FUSeg test labels are not public.

Localization boxes are derived from FUSeg masks and supplemented with negative images from AZH, giving 810 training images and 400 validation images, 1,210 in total.

What we built, part two

One photo in. Three answers out. One pass.

Photo of a wound Shared vision backbones DINOv2 · ConvNeXt · SAM2 TYPE Which of five kinds EDGES Pixel by pixel outline POSITION Box around the wound not trained, read off the edges
The pipeline. One forward pass produces all three answers

How a box appears without ever training a box

Predicted mask Threshold at 0.5 Drop specks Wrap a box soft probabilities hard yes or no under 20 pixels one per region No detection head. No box regression loss. Four lines of post processing.
The segmentation to localization pipeline, end to end

We did try the other way. A dedicated detection head inside the same architecture reached 6.6%. Reading boxes off the mask reached 96.2%.

Trained box head 6.6% Box read off the mask AP@0.5 inside the same architecture 96.2%
Why we stopped training boxes

The obvious objection, and we agree with it: YOLOv8m reaches 91.22 on these same boxes, so detection is plainly learnable on this data. What failed is narrower than detection. It is a box head sharing one backbone with a classification objective and a segmentation objective, where box regression pulled the shared features away from what the other two tasks needed. Read the 6.6 as evidence about joint optimisation, not about detectors.

The architecture

Frozen pretrained backbones feed bidirectional cross attention between backbones, a feature pyramid, and task specific scale routing. Classification runs through a mixture of experts head. The segmentation decoder is modulated by the predicted wound type, so diagnosis conditions the mask.

Full WILLIE architecture: pretrained backbones, frequency decomposed cross attention, feature pyramid network, wound aware cross scale attention, mixture of experts classification, and wound type conditioned segmentation feeding three outputs.

Wide figure. Drag sideways on a phone, or open it full size.

SizeBackbonesParamsTrainable
MINIDINOv2-S34.3M35.7%
BASEplus ConvNeXt-L520.4M3.8%
XLplus SAM2-Hiera-L762.5M47.3%

It holds its own against three specialists at once.

Type
91.88%
correct on 234 unseen photos
Ahead
Best single task model, 88.03%
Edges
91.41
Dice overlap with a human tracing
Level, not ahead
SAM2.1 specialist, 91.74
Position
96.23
AP@0.5 against traced boxes
Ahead
YOLOv8m detector, 91.22
WILLIE-XL against the best specialist on each task
TYPE, ACCURACY ON THE HELD OUT TEST SET WILLIE-BASE 91.88 WILLIE-XL 91.88 WILLIE-MINI 88.90 ResNet-50 88.03 DINOv2 linear 86.75 EfficientNet-B4 83.76 VGG-19 78.63 Bars start at zero. n = 234
Every classification model, same protocol, same test set
EDGES, MEAN DICE ON FUSEG VALIDATION SAM2.1 91.74 WILLIE-XL 91.41 MedSAM 90.93 WILLIE-BASE 86.36 U-Net 84.59 WILLIE-MINI 81.80 A specialist still wins here, and we say so
The one task where we do not come first
POSITION, AP AT 0.5 ON FUSEG VALIDATION WILLIE-XL 96.23 YOLOv8m 91.22 WILLIE-BASE 89.91 RT-DETR-L 87.95 WILLIE-MINI 84.60 All methods scored against the same mask derived boxes
Position, where reading beats detecting

We are not claiming to beat everyone. A dedicated segmentation model still traces edges slightly better than we do, and it is in the paper and on this page. The claim is that one model reaches specialist level on all three at once, from a single look.

Full tables and the fine print
TypeAccF1AUC
WILLIE-BASE (TTA)91.8891.140.992
WILLIE-XL (TTA)91.8890.730.986
WILLIE-MINI (ens)88.9087.600.976
ResNet-5088.0387.820.973
DINOv2 + Linear86.7587.010.986
EfficientNet-B483.7683.360.975
VGG-1978.6378.140.956
PositionAP@0.5PrecRecall
WILLIE-XL96.2396.2394.64
YOLOv8m91.2287.4588.47
WILLIE-BASE89.9192.4095.40
RT-DETR-L87.9588.1589.38
WILLIE-MINI84.6089.0388.66

Fair warning on the position number. Ground truth boxes come from traced masks, and every method including YOLOv8m and RT-DETR is scored against those same boxes. This is evidence that box training is unnecessary when the target is one solid region. It is not a general claim that detectors are unnecessary.

How the two WILLIE annotations read. TTA means test time augmentation, which multiplies inference cost. "ens" means a cross validation fold ensemble, so WILLIE-MINI's 88.90 is not a single forward pass and its real inference cost is higher than 34.3M parameters suggests.

A single pass of XL runs at about 88 ms per image and 9.3 GB of GPU memory on a V100.

Removing any one internal component changes results within cross validation noise. The pretrained backbones and multi scale features account for most of the performance. The contribution is the unified benchmark, not a claim that every module is essential.

Two things we found ourselves and are not hiding. A byte level check turned up one image identical between the AZH train and test splits. Worst case that moves the headline accuracy from 91.88% to 91.45%. Nine image pairs are identical between FUSeg train and validation. Every edge and position score on this page, ours and the baselines', is measured on that validation set, because the FUSeg test labels are not public. It is also the set we used to pick checkpoints. Both can make those scores look better than they would on truly unseen images.

One correction against our own paper. The published abstract describes the 8.2 million figure as patients in the United States. It is 8.2 million Medicare beneficiaries, from 2014 claims data in Nussbaum et al. The number is right and the denominator is wrong. This page uses the corrected wording, so it reads differently from the abstract on PMLR and on arXiv v1. Nothing in the method or the results depends on it.

All training images are foot, pressure, venous and surgical wound photographs from a small number of clinical sources. Performance across skin tones has not been measured. Generalisation to other cameras, lighting and wound types is untested. This is research code, not a medical device.

The argument, in one shape.

Put one WILLIE-XL against the strongest single task classifier on five axes. On the first three they are close. On the last two the specialist is not slightly behind. It is not there at all.

Accuracy 91.9 vs 88.0 Macro F1 90.7 vs 87.8 AUC 98.6 vs 97.3 Boundary Dice 91.4 vs none Localization AP 96.2 vs none WILLIE-XL, one model ResNet-50, best single task classifier Each axis runs from zero at the centre to 100 at the rim. AUC is shown on the same 0 to 100 scale
Five axes, two models. The missing wedge is the whole point

A classifier is not bad at tracing edges. It cannot trace edges. Comparing on accuracy alone hides that, which is exactly why the three tasks needed one benchmark before anyone could argue about them honestly.

The smallest version is the one worth staring at.

ACCURACY AGAINST MODEL SIZE 94 88 82 77 20M 60M 200M 700M EfficientNet-B4 DINOv2 linear ResNet-50 VGG-19, 125M params WILLIE-MINI, 34M BASE, 520M XL, 762M
Classification accuracy against total parameters

MINI carries 4.5% of XL's parameters and still lands above every baseline, including a VGG-19 nearly four times its size. One caveat we should state rather than bury: MINI's 88.90 is a fold ensemble, so a bedside deployment running a single MINI would pay less compute and score somewhat lower. The point stands about parameter count, not about a free lunch.

Making the model bigger only helped two out of three.

MINI BASE XL 34M 520M 762M 91.9 91.4 96.2 88.9 81.8 84.6 TYPE EDGES POSITION
Performance against model size across the three tasks
Pick a size and watch what moves
Type
91.88
 
Edges
91.41
 
Position
96.23
 
XL, 762.5M parameters. Another 242 million parameters. Edges gain 5 points, position gains 6, and diagnosis gains nothing at all.
Three sizes, same benchmark. Diagnosis stops improving, the other two do not

Type flattens the moment the model reaches medium. Edges and position keep climbing all the way to the top.

That matters if you are paying for GPUs. The 762 million parameter version buys you nothing on diagnosis over the 520 million one. Size the model to the task, not to a hunch.

The mistakes are not spread evenly.

A wound on the lower leg. Dark red, shallow, irregular edge. Pressure or venous?
The third one is the honest answer. Our model gets pressure wounds right only 76.5% of the time, and nearly every miss is a pressure wound called venous. It is the worst class by a wide margin.
Try it before reading on
F1 SCORE BY WOUND CLASS No wound 99.0 Venous 94.6 Surgical 92.0 Diabetic 86.7 Pressure 76.5 Bar marks the pressure 95% interval, 63.5 to 86.7, on only 34 test images
One class carries almost all the error, and it is the least certain one

Some of that is real. The two look alike, and a photo does not carry the patient history, the vascular assessment, or the body site a clinician uses to tell them apart.

WHERE EACH CLASS COMES FROM Pressure AZH 100 Medetec 170 Venous AZH 185 Medetec 133 The two classes the model confuses most lean on opposite sources. Part of what it learned may be the camera, not the wound.
The confound we could only see after merging the datasets

Nobody could have spotted that while the datasets sat apart. That is the argument for building the benchmark, stated as plainly as we can.

Per class numbers
ClassPrecRecallF1n
No wound98.0100.099.050
Venous91.098.494.662
Surgical88.995.292.042
Diabetic97.378.386.746
Pressure76.576.576.534

Diabetic recall is the other soft spot: precision 97.3 but recall 78.3, meaning the model is cautious about calling something diabetic and misses roughly a fifth of them.

Four things we would tell you if we met at the poster.

None of these are about wounds specifically. They are what we would carry into the next multi-output medical imaging problem.

Do not train the box jointly.
Read it off the predicted mask.
A box head sharing a backbone with classification and segmentation reached 6.6 AP. Boxes derived from the mask reached 96.2. A standalone YOLOv8m reached 91.22, so detection works here; what does not work is asking one backbone to serve box regression alongside two other objectives.
Scaling pays off unevenly.
Match model size to the task.
Diagnosis saturates at BASE. Boundary and location keep climbing to XL, 242 million parameters later. Do not assume every output benefits equally from a bigger backbone.
Sharing a backbone is not enough.
Task formulation decides.
Type and boundary learn well together. Location framed as box regression fought the other two objectives, so we derived it afterwards instead. Clinically related tasks are not automatically compatible during optimisation.
The errors are clinical, not random.
Flag them, do not hide them.
Pressure F1 is 76.5 and nearly every miss is called venous. A photo does not carry the history a clinician uses. Systems in this position should escalate to human review rather than present every prediction as equally certain.

So what should anyone take from this.

One model can do all three jobs. Whether it works depends less on sharing a brain than on how you ask each question. Type and edges learn well together. Position is better derived from the edges than trained alongside them. And the only reason we could see the hidden bias in our own data is that we finally put the datasets in the same room.

That last part travels past wounds. If you are building one model for several clinically linked outputs, the benchmark is not paperwork you do before the science. It is where the science happens.

The whole thing, if you want it.

First page of the WILLIE camera ready paper.
WILLIE: A Unified Framework and Benchmark for Wound Classification, Segmentation, and Localization
Gopi Trinadh Maddikunta gmaddiku@cougarnet.uh.edu Peizhu Qian pqian@uh.edu Department of Computer Science, College of Natural Sciences and Mathematics, University of Houston
Venue
11th Machine Learning for Healthcare Conference, 12 to 14 August 2026
Published in
PMLR volume 340, pages 1243 to 1263, published 8 September 2026
Preprint
arXiv:2610.05341, posted 4 October 2026
Licence
Open access, CC BY 4.0
Camera ready, 21 pages, open access under CC BY 4.0
@InProceedings{pmlr-v340-maddikunta26a,
  title     = {WILLIE: A Unified Framework and Benchmark for Wound
               Classification, Segmentation, and Localization.},
  author    = {Maddikunta, Gopi Trinadh and Qian, Peizhu},
  booktitle = {Proceedings of the 11th Machine Learning for Healthcare
               Conference},
  pages     = {1243--1263},
  year      = {2026},
  volume    = {340},
  series    = {Proceedings of Machine Learning Research},
  month     = {12--14 Aug},
  publisher = {PMLR},
  url       = {https://proceedings.mlr.press/v340/maddikunta26a.html}
}

This is the official PMLR entry with the editor list and abstract fields removed for length. The complete record is on the PMLR page. Please also cite FUSeg, AZH and Medetec on their own terms if you use the benchmark.

Tell me I am wrong.

Or tell me you work on wound care and want to talk. Either is welcome. I answer all of these.

Form not loading? Email gmaddiku@cougarnet.uh.edu or open it in a new tab.

University of Houston
Department of Computer Science
College of Natural Sciences and Mathematics
University of Houston

WILLIE: A Unified Framework and Benchmark for Wound Classification, Segmentation, and Localization. Gopi Trinadh Maddikunta and Peizhu Qian. Proceedings of the 11th Machine Learning for Healthcare Conference, PMLR 340:1243–1263, 2026. Open access under CC BY 4.0. Official record. Preprint: arXiv:2610.05341.

Developed in the Qian Group, Department of Computer Science, College of Natural Sciences and Mathematics, University of Houston. Computation performed on the UH carya cluster.

Epidemiology figures: Nussbaum et al., Value in Health 2018 (2014 Medicare claims). Carter et al., Journal of Medical Economics 2023 (2014 to 2019 comparison).

Figures reproduced from the paper, which is open access under CC BY 4.0. The wound photographs within them belong to the FUSeg, AZH, and Medetec datasets and remain under their original licenses. Code and weights are MIT.

gopitrinadh.site  ·  Connect  ·  Qian Group  ·  Code  ·  Weights

Talk to me