Color Invariant Skin Segmentation

Han Xu, Abhijit Sarkar, A. Lynn Abbott

TL;DR

This paper tackles the challenge of robustly detecting human skin in images, especially across diverse skin tones and under varying lighting conditions. They introduce a novel color-space augmentation technique during training that significantly reduces the model's reliance on color cues, leading to more consistent and less biased skin segmentation.

What Problem Does This Paper Address?

Automated skin detection is crucial for many applications, from content filtering and facial recognition to computer graphics and virtual reality. However, existing methods heavily rely on color information, which introduces two major problems: performance limitations and significant bias. Firstly, color-based methods struggle with varying illumination, shadows, and creative image filters (like Instagram filters), leading to inconsistent results. Secondly, training datasets are often imbalanced, with a disproportionate number of lighter skin tones, causing models to perform poorly on darker skin tones. This paper aims to overcome these limitations by developing a color-invariant skin segmentation approach.

Methods

The core of this paper's contribution lies in its color-space augmentation strategy applied during the training of deep neural networks. Instead of relying solely on the original RGB images, the authors augment the training data by strategically manipulating the HSV (Hue, Saturation, Value) color space. This involves hue rotation, saturation decay, and value changes. The goal is to expose the network to a wider range of skin appearances without explicitly providing color information, thereby forcing it to learn features related to visual texture and context.

They train two common segmentation architectures, U-Net and FCN, using this augmented dataset. The augmentation process transforms each training image into fifteen variations, effectively increasing the training set size significantly. The models are trained using binary cross-entropy loss. For evaluation, they employ standard metrics like precision, recall, accuracy, F1 score, and IoU.

Datasets

The authors utilize the following datasets:

  • ECU dataset: This dataset, containing 4000 RGB images with manually annotated skin pixels, was used for training and initial evaluation. It features diverse attributes like gender, age, skin type, and varying illumination conditions. A key characteristic noted is the class imbalance in Fitzpatrick skin tones (Type I-VI), with darker tones being underrepresented.
  • RFW (Racial Faces in the Wild) dataset: This dataset was used for cross-dataset validation to specifically test for racial bias. It is noted for its balanced representation across four ethnic groups: Caucasians, Asians, Indians, and Africans.
  • Self-made dataset: A small dataset of 20 images with extreme illumination variations (neon lighting, artificial filters) was created to specifically test the system's robustness under challenging conditions.

Key Insights and Ideas

  • Color is a double-edged sword: While color cues are intuitive for skin detection, their over-reliance leads to both performance degradation under non-ideal conditions and significant demographic bias.
  • Augmentation as a de-biasing tool: Strategic color-space augmentation during training can effectively "repair" dataset imbalances and reduce bias, forcing models to learn more generalizable features.
  • Texture and context over color: The paper demonstrates that by reducing reliance on color, models can learn robust features from texture and contextual information, leading to better performance across diverse scenarios.
  • Universality for "in the wild" applications: The goal of color invariance makes the system more suitable for real-world applications where lighting and image capture conditions are unpredictable.

Key Results

  • Improved performance on ECU dataset: The proposed U-Net model with color augmentation achieved a higher accuracy (96.33%) and significantly outperformed baseline methods and FCN models (both with and without augmentation) across various metrics like precision, recall, F1 score, and IoU, especially for darker skin tones (Type VI).
  • Reduced racial bias on RFW dataset: When tested on the racially balanced RFW dataset, the augmented models showed significantly less decline in performance for the "African" group compared to baseline methods, indicating reduced racial bias. The U-Net model with augmentation achieved a skin/face ratio of 78.73% for the African group, outperforming others by nearly 29%.
  • Robustness to illumination and filters: The augmented models demonstrated remarkable consistency when tested on images with extreme illumination variations and artificial filters, whereas models without augmentation failed significantly.
  • Effectiveness on grayscale images: Even when tested on grayscale images, the augmented models showed substantial improvements in IoU, highlighting their reduced dependence on color information.

Limitations and Future Work

  • Limitations: While the paper demonstrates significant improvements, the authors acknowledge that the RFW dataset, while balanced, still has limitations in its annotation for skin/face ratio evaluation. The paper also mentions that the "mix" category in the ECU dataset, representing images with multiple skin tones, still presents some challenges.
  • Future Work: The authors suggest that the color-augmentation strategy for training and testing can be applied more broadly to other domains to address problems related to racial and social bias. They also anticipate that their approach can address issues related to illumination differences, sensor parameters, and other computer vision tasks.

Summary updated

BibTeX
@misc{xu2022color,
  author = {Han Xu and Abhijit Sarkar and A. Lynn Abbott},
  title = {{Color Invariant Skin Segmentation}},
  year = {2022},
  eprint = {2204.09882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.09882},
}
Figure