Source-linked AI summary

Automatic Image Segmentation by Dynamic Region Merging

Bo Peng, Lei Zhang, David Zhang

arXiv:1012.1193v1cs.CVcs.RO

TL;DR

Automatic image segmentation requires deciding how and when neighboring regions should merge without losing desirable global properties. The paper proposes dynamic region merging with a predicate based on SPRT and maximum likelihood, then accelerates it with a nearest-neighbor graph. The resulting scheme is shown to preserve certain global properties, and experiments on real images demonstrate efficiency.

  • Problem

    Region-merging segmentation needs principled decisions about merge order and stopping while preserving global properties that existing local algorithms are rarely proven to preserve.

  • Method

    The method iteratively merges neighboring regions using a predicate defined from SPRT-based consistency and maximum likelihood, with a nearest-neighbor graph accelerating candidate search.

  • Results

    The proposed dynamic region merging scheme preserves certain global properties, including avoiding over-merging and under-merging, while experiments demonstrate acceleration efficiency.

  • Takeaways & Limitations

    Image segmentation is formulated as an inference problem whose final segmentation is established from observed image data through dynamically ordered region merging.

Abstract

from arXiv · show

This paper addresses the automatic image segmentation problem in a region merging style. With an initially over-segmented image, in which the many regions (or super-pixels) with homogeneous color are detected, image segmentation is performed by iteratively merging the regions according to a statistical test. There are two essential issues in a region merging algorithm: order of merging and the stopping criterion. In the proposed algorithm, these two issues are solved by a novel predicate, which is defined by the sequential probability ratio test (SPRT) and the maximum likelihood criterion. Starting from an over-segmented image, neighboring regions are progressively merged if there is an evidence for merging according to this predicate. We show that the merging order follows the principle of dynamic programming. This formulates image segmentation as an inference problem, where the final segmentation is established based on the observed image. We also prove that the produced segmentation satisfies certain global properties. In addition, a faster algorithm is developed to accelerate the region merging process, which maintains a nearest neighbor graph in each iteration. Experiments on real natural images are conducted to demonstrate the performance of the proposed dynamic region merging algorithm.

I. Introduction

The paper presents automatic image segmentation as region merging over primitive regions, addressing the difficulty of choosing merge order and preserving global properties. Its dynamic predicate combines consistency and similarity evidence to guide efficient merging while supporting global guarantees.

  • Automatic image segmentation partitions images into pieces with coherent features for applications including object recognition, target tracking, content-based retrieval, and medical image processing.
  • Region-based methods start from primitive regions and progressively merge similar neighboring regions, reducing the number of elements relative to pixels and accelerating processing.
  • Existing region-merging algorithms make local decisions but are often difficult to prove to preserve global properties, while cut-based methods may be computationally inefficient or globally hard to optimize.
  • The proposed method iteratively merges similar neighboring regions using a predicate combining consistency and similarity measures.Consistency is evaluated with SPRT hypotheses for inconsistent versus consistent data, while similarity measures affinity between neighboring regions.
  • The merging order follows a dynamic-programming principle: regions transition toward closest neighbors, and merging occurs when neighboring regions exchange labels.The scheme is shown to satisfy the maximum likelihood criterion, assigning each primitive region to its most similar group at the lowest final cost.
  • The proposed algorithm preserves global properties by avoiding over-merging and under-merging, and a nearest-neighbor graph accelerates candidate searches.Experiments report that the acceleration algorithm is efficient on real images.

II. The Region Merging Predicate

The paper defines region merging as an inference problem over a region adjacency graph, using a predicate that combines mutual similarity with consistency. This predicate determines merging order and stopping while supporting global properties and start-point independence.

  • Existing region-merging algorithms may produce over-segmented or under-segmented results because they cannot guarantee globally optimal merging.
  • The proposed predicate merges neighboring regions when they are mutually most similar and satisfy a consistency principle.Consistency serves as the stopping criterion; without it, all regions would eventually merge into one.
  • A region adjacency graph represents image regions as nodes and neighboring regions as edges weighted by their dissimilarity.The dissimilarity between two neighboring regions is the minimum-weight edge connecting them.
  • The predicate’s consistency test uses visual cues extracted from image data, with SPRT introduced to make consistency decisions reliable.
  • The predicate’s mutual-nearest-neighbor condition uniquely determines the regions merged at each level and makes the algorithm independent of its starting merge point.The paper also states that at least one region pair always satisfies this condition.

III. Consistency Test of Cues

The consistency test models whether neighboring regions belong to the same group as a statistical hypothesis and evaluates visual cues sequentially with SPRT. Gaussian cue models, error thresholds, and truncated sampling define the decision process and its quality–cost trade-off.

  • Consistency is formulated as testing whether two regions belong to the same group using null and alternative hypotheses linked to observable visual cues.
  • SPRT accumulates successive likelihood-ratio evidence until it crosses an upper or lower bound, then stops and decides the hypothesis.If neither bound is crossed, sampling continues; the procedure is designed to use few observations while controlling two decision-error probabilities.
  • The method uses intensity, color, or texture cues and approximates their conditional distributions with a Gaussian model.The model incorporates average colors and covariance information from the sampled regions.
  • Lowering the error rates α and β improves region-merging quality but increases computational effort.The implementation sets both α and β to 0.05.
  • A truncated SPRT imposes an upper bound N0 on the number of tests to limit worst-case uncertainty.N0 is set above the larger expected test count under the two hypotheses.

IV. Dynamic Region Merging (DRM)

Dynamic region merging formulates segmentation as a labeling and optimization problem over initially over-segmented regions. The algorithm uses predicate-guided transitions and dynamic programming to select merges while establishing global segmentation properties.

  • Algorithm: The DRM algorithm starts from an over-segmented image and progressively merges neighboring regions according to a predicate.The initial regions may be obtained with a watershed algorithm, while more sophisticated initialization such as mean-shift may improve final segmentation results.
  • Algorithm: The merging predicate selects neighboring regions connected by the minimum-weight edge in their neighborhood, causing their labels to become identical.This local transition rule defines which neighboring regions are merged at each decision step.
  • Algorithm: Each region receives a sequence of labels from its initial label to a final label, and regions belonging to the same object share a label.The final label is not necessarily unique because SPRT decisions can vary with a given decision error.
  • Optimization: The objective function F sums transition costs across regions, and its minimization is decomposed into subproblems using dynamic programming.For each region, the transition sequence corresponds to a shortest path whose total length is the sum of minimum edge weights.
  • Optimization: The dynamic-programming formulation reduces each region’s optimization to a finite shortest-path search solvable by Dijkstra’s algorithm in polynomial time.The layered graph represents label transitions between adjacent layers, with the shortest path encoding the selected merges.
  • Properties: The resulting segmentation is neither over-merged nor under-merged according to the paper’s definitions.Theorems 1 and 2 establish these properties, while a boundary evidence prevents adjacent regions from being merged later.

V. Algorithm Acceleration by Nearest Neighbor Graph (NNG)

The acceleration replaces repeated searches over the full region adjacency graph with a nearest neighbor graph that tracks closest-neighbor relations and cycles. Updates are localized because new cycles can arise only near merged nodes.

  • Motivation: Repeatedly scanning the region adjacency graph for minimum-weight edges can be computationally expensive, especially when many regions are merged.A linear search for relevant nodes and edges requires O(||E||) time, and total cost can become very high for large merge counts.
  • NNG construction: The nearest neighbor graph assigns each region one directed edge to its most similar neighbor, producing ||V|| edges and out-degree one.The graph is directed even though the dissimilarity function used for edge weights is symmetric.
  • Stopping criterion: A pair satisfying the merging predicate forms a cycle in the nearest neighbor graph, so merging stops when no cycle remains.The graph properties guarantee at least one mergeable pair before the stopping criterion is satisfied.
  • NNG updates: After a merge, only the second-order neighborhood of the merged nodes needs to be examined for newly formed cycles.This locality permits the accelerated algorithm to maintain nearest-neighbor relations without rescanning the entire region adjacency graph.
  • Complexity: The computation time for merging an NNG cycle is O(γ(2)+1), where γ(2) is the merged node’s second-order neighborhood size.Because γ(2) is usually far less than ||V||, the update can reduce computation time relative to full-graph searching.

VI. Experimental Results and Discussions

Experiments evaluate DRM on natural images, compare it with established segmentation methods, and examine parameter sensitivity, merging behavior, acceleration, and limitations. DRM preserves meaningful boundaries and tolerates gradual color variation, while remaining vulnerable to certain perceptual and boundary-pattern failures.

  • Evaluation setup: DRM was evaluated on the Berkeley Segmentation Dataset, using 100 test images with 5–10 human segmentations per image as ground truth.
  • Evaluation setup: The experiments compare DRM with mean-shift and graph-based region merging at roughly the same number of regions, while also evaluating an accelerated DRM variant.
  • Parameter sensitivity: When λ1 is large, DRM tends toward over-merging; when λ1 is small, it tends toward under-merging, with λ2 fixed to 1 in implementation.
  • Qualitative results: DRM merges neighboring regions with coherent colors, localizes boundaries reasonably, and tolerates substantial within-region variation when color changes gradually along boundaries.
  • Method comparison: Compared with mean-shift and graph-based results at matched granularity, DRM retains good boundary localization, whereas the alternatives miss or over-detect some major boundaries.
  • Acceleration: The accelerated region-merging algorithm substantially reduces computational effort, and experiments indicate that the acceleration is efficient.
  • Limitations: DRM can miss long but weak boundaries, merge regions separated by short high-contrast boundaries, and make errors when local perceptual information is insufficient.

VII. Conclusions

The paper proposes dynamic region merging for automatically grouping initially over-segmented regions using a statistical merging predicate. It preserves certain global properties despite local merge decisions and adds graph-based acceleration, while identifying extensions for future work.

  • VII. Conclusions: The proposed method segments images in a region-merging style by progressively grouping initially over-segmented small regions.
  • VII. Conclusions: The merging predicate is defined using the sequential probability ratio test and the maximum likelihood criterion.
  • VII. Conclusions: Although regions are selected locally at each merge stage, the final segmentations retain certain global properties.
  • VII. Conclusions: An accelerated implementation uses region adjacency and nearest neighbor graphs to improve computational efficiency.
  • VII. Conclusions: The authors identify global refinement and user interaction as potential extensions for future investigation.
Loading 1012.1193v1…