ThorMed Innovation and UT Dallas · 2025 to now
Ultrasound Segmentation for Portable Devices
The problem
Bladder volume shows whether a patient is retaining urine. It’s usually measured with a catheter, which risks infection. Ultrasound can measure it without one if a model can outline the bladder in the image, on a device small enough for the bedside.
No public bladder ultrasound dataset exists, so we worked from 486 images labeled for this project. A model that runs on a small device also needs its weights compressed.
The paper is joint work with Andrew Vu, Dr. Eric Chou and Dr. Gregory Thoreson of Baylor University Medical Center, and Dr. Katherine Brown at UT Dallas.
Building the labels
Outlining the bladder by hand on every frame is slow, so I built a pipeline that drafts the labels. It runs SAMUS, an ultrasound version of Segment Anything, on each frame and cleans up the mask it returns. A radiologist then graded the masks by hand before any model trained on them.
The models
I trained U-Net models with four encoders, from ResNet34 down to MobileNetV2 and EfficientNet-B0. Each encoder started either from ImageNet weights or from weights I pretrained on 9,204 thyroid and breast ultrasound images from the public US30K collection. US30K has no bladder images.
Then I quantized each trained model’s weights to 8 and 4 bits without retraining and scored it again on 97 held-out images. The score is Dice, the overlap between the predicted outline and the labeled one.
What it showed
At full precision the starting point barely matters. Every model scores between 95.4 and 96 percent Dice. At 8 bits nothing moves by more than a point. At 4 bits the ImageNet models fall far behind.
| Encoder | Start | 32‑bit | 8‑bit | 4‑bit |
|---|---|---|---|---|
| ResNet34 | ImageNet | 95.57 | 95.48 | 70.88 |
| Ultrasound | 95.78 | 95.77 | 92.73 | |
| ResNet18 | ImageNet | 95.48 | 95.46 | 54.49 |
| Ultrasound | 95.82 | 95.80 | 91.45 | |
| MobileNetV2 | ImageNet | 95.45 | 95.14 | 56.40 |
| Ultrasound | 95.99 | 95.84 | 75.49 | |
| EfficientNet-B0 | ImageNet | 95.51 | 95.30 | 10.88 |
| Ultrasound | 95.62 | 95.37 | 76.01 |
Models that started from ImageNet dropped as low as 11 percent, on EfficientNet-B0. Models that started from ultrasound kept between 75 and 93 percent.
Breast ultrasound
On the public BUSI breast ultrasound dataset, I trained an attention U-Net and tested it on 156 images it never saw during training or checkpoint selection.
Normal scans have no lesion, but the model drew one on more than half of them. Those false alarms account for a third of the lost Dice, from a fifth of the test images.
Next
Next I want to run the 4-bit models on real hardware, since the compression so far is simulated, and check predicted volumes against catheter measurements.