Manuscript Offprint

arXiv:2609.11463

BruNet: A Cross-Domain Transfer Framework for Bruise Segmentation

Qiming Wang, Richard J. Motley, Ebube E. Obi, Xianfang Sun, Paul L. Rosin

Qiming Wang

Cardiff University

United Kingdom

WangQ79@cardiff.ac.uk

Richard J. Motley

Cardiff University

United Kingdom

Richard.Motley@wales.nhs.uk

Ebube E. Obi

Cardiff University

United Kingdom

ObiE@cardiff.ac.uk

Xianfang Sun

Cardiff University

United Kingdom

SunX2@cardiff.ac.uk

Paul L. Rosin

Cardiff University

United Kingdom

RosinPL@cardiff.ac.uk

Abstract

Segmenting bruises is a challenging task in medical imaging due to limited data and annotations, diffuse boundaries, and highly variable appearance. In this work, we propose BruNet, a segmentation framework that combines a ViT-based visual encoder (a self-supervised DINOv3 or a pretrained LingBot-Vision backbone) with a SAM-based mask decoder. BruNet is trained on the HAM10000 skin lesion dataset and evaluated on a separate bruise dataset without additional fine-tuning. Although a small number of prior studies have explored machine learning and computer vision for bruise analysis, existing work has primarily focused on detection, classification, or colour analysis rather than pixel-level localisation. To the best of our knowledge, this is the first study to address automatic bruise segmentation. Our results show that BruNet outperforms CNN-based models, state-of-the-art segmentation models, ChatGPT-4o/5-assisted SAM2 zero-shot baselines, and the medical-oriented MedSAM model, demonstrating strong cross-domain generalisation to bruise segmentation.

1. Introduction

Ever since the development of convolutional neural networks (CNNs) and Vision Transformers (ViTs) [8], they have replaced traditional statistical and machine learning (ML) methods and become one of the mainstream methods for medical image segmentation tasks. Architectures like U-Net [26] and UNETR [12] demonstrated strong performance on such tasks. However, they often lack generalisability and often require a large amount of annotated high-quality data, which is usually expensive in real-world scenarios, especially when dealing with data-scarce targets such as bruises. Foundation models such as CLIP [24] and SAM [17] offer zero-shot capabilities through semantic alignment and prompt-based segmentation, yet CLIP lacks localisation, and both SAM and CLIP often fail in clinical cases.

Bruise analysis is a representative yet underexplored challenge for medical imaging. Bruises, also referred to as ‘Contusions’ or ‘Echymoses’ in clinical contexts, usually exhibit substantial variability in appearance across individuals and over time, with diffuse, poorly standardised boundary definitions that complicate accurate delineation. Moreover, there is a lack of publicly available annotated datasets for bruises, partly because such injuries are often self-managed and rarely clinically documented, particularly in settings such as contact sports where they occur frequently [11]. However, bruising is frequently encountered in clinical practice and may reflect underlying disorders of haemostasis (a process to prevent and stop bleeding), vascular integrity, or systemic disease [31]. In addition, bruises play a critical role in forensic and legal contexts, where accurate documentation and assessment can provide important evidence in cases of physical violence [21, 37]. With the assistance of computer vision and machine learning, analysing such non-standardised tasks can significantly reduce bias compared to a manual process; the related research remains extremely limited, with existing studies focusing primarily on age classification [32] or detection using bounding boxes [1], rather than accurate localisation or segmentation.

In this work, we propose a segmentation framework that integrates a ViT-based backbone, and a SAM decoder to enable cross-domain generalisation. The model is trained on the HAM10000 skin lesion dataset and evaluated on a separate bruise dataset. This method is evaluated against CNN-based baselines, state-of-the-art (SOTA) vision transformer

(ViT) segmentation models, and prompt-driven SAM2 variants, including its medical-oriented model MedSAM with MedGemma as prompter [20, 27]. Results show the segmentation robustness under domain shift, highlighting the potential of cross-domain foundation models for dermatological and forensic imaging tasks.

This work also presents the first deep learning framework for bruise segmentation, along with a curated bruise dataset with expert annotations and a novel dual-region protocol for modelling boundary uncertainty.

Our contributions are summarised as follows:

• We introduce a dual-region annotation protocol for bruise segmentation that separates high-confidence bruise core regions from uncertain boundary regions.

• We curate and evaluate on an 86-image bruise dataset with expert-reviewed dual-region annotations.

• We propose BruNet, a cross-domain segmentation framework trained only on HAM10000 skin lesion masks and evaluated without bruise-specific fine-tuning.

• We compare BruNet against CNN, ViT, prompt-based SAM2, and medical-oriented baselines under an uncertainty-aware evaluation protocol.

References (35)

  • From structure health monitoring to forensics: adapting computer vision to support victims of violence
  • Multimodal wound classification using wound image and location by deep neural network
  • Investigations into multiscale retinex
  • Arm injury classification on a small custom dataset using cnns and augmentation
  • The effect of skin tone classification on bias in bruise detection
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • Integrating multi-source data for skin burn classification using deep learning
  • Vision pretraining for dense spatial perception (opens arXiv in a new tab)
  • Epidemiology of injuries in professional and amateur football men (Part II)
  • UNETR: Transformers for 3D medical image segmentation
  • Deep residual learning for image recognition
  • GPT-4o System Card
  • OneFormer: One Transformer to Rule Universal Image Segmentation
  • Segment anything
  • A synthetic dataset for 3d wound bed analysis (opens arXiv in a new tab)
  • Segment anything in medical images
  • The frequently dismissed importance of properly sampling skin bruises
  • On detecting domestic abuse via faces
  • A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics
  • Learning transferable visual models from natural language supervision
  • Single bruise characteristics associated with abusive vs accidental injury
  • U-net: Convolutional networks for biomedical image segmentation
  • Andrew Sellergren, Sahar Kazemzadeh, Tiam Jaroensri, Atilla Kiraly, Madeleine Traverse, Timo Kohlberger, Shawn Xu, Fayaz Jamil, Cían Hughes, Charles Lau, et al. MedGemma technical report. arXiv preprint arXiv:2507.05201, 2025. 2, 4 (opens arXiv in a new tab)
  • DINOv3
  • OpenAI GPT-5 System Card
  • A deep convolutional neural network-based approach for detecting burn severity from skin burn images
  • Clinical evaluation of the patient with bruising and bleeding
  • Bruise dating using deep learning
  • The ham10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions
  • Nature medicine, 26(8):1229–1234, 2020
  • Toward objective evaluation of image segmentation algorithms
  • Attention is all you need
  • An approach to investigation of easy bruising
  • Simultaneous truth and performance level estimation (STAPLE): an algorithm for the validation of image segmentation
  • A multimodal vision foundation model for clinical dermatology