Image Segmentation Using Overlapping Group Sparsity

Shervin Minaee, Yao Wang · DOI

Introduction

Image segmentation is a fundamental task in computer vision, particularly for screen content coding where images contain a mixture of natural backgrounds, text, and computer-generated graphics. Traditional methods like k-means clustering often struggle with screen content because backgrounds frequently contain smooth color gradients, and text colors may overlap with background intensities. While sparse decomposition has emerged as a promising alternative, standard approaches often produce fragmented results, failing to capture the inherent connectivity of text characters and lines.

Problem Formulation

Screen content segmentation aims to separate an image into a smooth background layer and a sparse foreground layer containing text and graphics.

Example of screen content with text over a gradient background, illustrating the challenge of overlapping intensities.

Previous sparse decomposition techniques typically model the image $F$ as $F = X + S$, where $X$ is the background and $S$ is the foreground. However, these methods often suffer from two main issues: overfitting, where the background model captures high-frequency details belonging to the foreground, and a lack of connectivity, where penalizing individual pixels leads to "salt and pepper" noise.

Methodology

The proposed framework addresses these limitations by introducing a structured sparsity prior. The background $X$ is represented as a linear combination of low-frequency 2D Discrete Cosine Transform (DCT) basis functions. By restricting the model to a small set of smooth bases, the algorithm prevents the background from absorbing the sharp edges of the foreground text.

The core innovation is the use of Overlapping Group Sparsity (OGS) for the foreground $S$. Instead of penalizing pixels independently, the authors apply a penalty to overlapping groups defined by all rows and columns within an image block. This mathematical constraint encourages the optimization to select pixels that form continuous horizontal and vertical structures, effectively promoting the connectivity of text strokes and graphical lines. To solve the resulting objective function, the authors employ the Alternating Direction Method of Multipliers (ADMM).

Experimental Results

The algorithm was evaluated using 332 image blocks (64x64 pixels) from the HEVC standard test sequences for screen content coding.

Comparison of segmentation results showing the original block and the resulting masks. The group sparsity constraint helps eliminate isolated noise.

The proposed method significantly outperformed existing baselines, including SPEC, Hierarchical Clustering (DjVu), and Least Absolute Deviation (LAD). Quantitatively, the method achieved an F1 score of 90% and a remarkably high precision of 93.7%. Qualitatively, the inclusion of group sparsity priors successfully eliminated isolated noise pixels, resulting in sharp, well-defined masks for text and graphics.

Conclusion

By combining a smooth DCT-based background model with an overlapping group-sparse foreground model, this framework provides a robust solution for screen content segmentation. The emphasis on spatial connectivity through group sparsity represents a significant advancement over pixel-wise sparse decomposition. Future work will focus on reducing the computational complexity of the ADMM iterations to enable real-time applications.

Summary updated

Abstract

Sparse decomposition has been widely used for different applications, such as source separation, image classification and image denoising. This paper presents a new algorithm for segmentation of an image into background and foreground text and graphics using sparse decomposition. First, the background is represented using a suitable smooth model, which is a linear combination of a few smoothly varying basis functions, and the foreground text and graphics are modeled as a sparse component overlaid on the smooth background. Then the background and foreground are separated using a sparse decomposition framework and imposing some prior information, which promote the smoothness of background, and the sparsity and connectivity of foreground pixels. This algorithm has been tested on a dataset of images extracted from HEVC standard test sequences for screen content coding, and is shown to outperform prior methods, including least absolute deviation fitting, k-means clustering based segmentation in DjVu, and shape primitive extraction and coding algorithm.
BibTeX
@misc{minaee2016image,
  author = {Shervin Minaee and Yao Wang},
  title = {{Image Segmentation Using Overlapping Group Sparsity}},
  year = {2016},
  eprint = {1611.07909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.07909},
}
Figure