ArticleslgStudy

science

Segmentation-based object categorization

Segmentation-based object categorization is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Segmentation-based object categorization rather than just read about it. In short: The image segmentation problem is concerned with partitioning an image into multiple regions according to some homogeneity criterion. This article is primarily concerned with graph theoretic approaches to image segmentation applying graph partitioning via minimum cut or maximum cut.

Key takeaways

  • Segmentation-based object categorization belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Segmentation-based object categorization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Segmentation-based object categorization from memory before moving on to harder problems.

Reference excerpt

The image segmentation problem is concerned with partitioning an image into multiple regions according to some homogeneity criterion. This article is primarily concerned with graph theoretic approaches to image segmentation applying graph partitioning via minimum cut or maximum cut. Segmentation-based object categorization can be viewed as a specific case of spectral clustering applied to image segmentation.

Applications of image segmentation Image compression Segment the image into homogeneous components, and use the most suitable compression algorithm for each component to improve compression. Medical diagnosis Automatic segmentation of MRI images for identification of cancerous regions. Mapping and measurement Automatic analysis of remote sensing data from satellites to identify and measure regions of interest. Transportation Partition a transportation network makes it possible to identify regions characterized by homogeneous traffic states.

Segmentation using normalized cuts

Graph theoretic formulation The set of points in an arbitrary feature space can be represented as a weighted undirected complete graph G = (V, E), where the nodes of the graph are the points in the feature space. The weight wij of an edge (i,j)∈E is a function of the similarity between the nodes i and j. In this context, we can formulate the image segmentation problem as a graph partitioning problem that asks for a partition V1,⋯,Vk of the vertex set V, where, according to some measure, the vertices in any set Vi have high similarity, and the vertices in two different sets Vi,Vj have low similarity.

Normalized cuts Let G = (V, E, w) be a weighted graph. Let A and B be two subsets of vertices. Let:

w(A,B)=∑i∈A,j∈Bwij ncut⁡(A,B)=w(A,B)w(A,V)+w(A,B)w(B,V) nassoc⁡(A,B)=w(A,A)w(A,V)+w(B,B)w(B,V) In the normalized cuts approach, for any cut (S,S‾) in G, ncut⁡(S,S‾) measures the similarity between different parts, and nassoc⁡(S,S‾) measures the total similarity of vertices in the same part. Since ncut⁡(S,S‾)=2−nassoc⁡(S,S‾), a cut (S∗,S‾∗) that minimizes ncut⁡(S,S‾) also maximizes nassoc⁡(S,S‾). Computing a cut (S∗,S‾∗) that minimizes ncut⁡(S,S‾) is an NP-hard problem. However, we can find in polynomial time a cut (S,S‾) of small normalized weight ncut⁡(S,S‾) using spectral techniques.

The ncut algorithm Let:

d(i)=∑jwij Also, let D be an n×n diagonal matrix with d on the diagonal, and let W be an n×n symmetric matrix with wij=wji. After some algebraic manipulations, we get:

min(S,S‾)ncut⁡(S,S‾)=minyyT(D−W)yyTDy subject to the constraints:

yi∈{1,−b}, for some constant −b ytD1=0 Minimizing yT(D−W)yyTDy subject to the constraints above is NP-hard. To make the problem tractable, we relax the constraints on y, and allow it to take real values. The relaxed problem can be solved by solving the generalized eigenvalue problem (D−W)y=λDy for the second smallest generalized eigenvalue. The partitioning algorithm:

Given a set of features, set up a weighted graph G=(V,E), compute the weight of each edge, and summarize the information in D and W. Solve (D−W)y=λDy for eigenvectors with the second smallest eigenvalues. Use the eigenvector with the second smallest eigenvalue to bipartition the graph (e.g. grouping according to sign). Decide if the current partition should be subdivided. Recursively partition the segmented parts, if necessary.

Computational Complexity Solving a standard eigenvalue problem for all eigenvectors (using the QR algorithm, for instance) takes O(n3) time. This is impractical for image segmentation applications where n is the number of pixels in the image. Since only one eigenvector, corresponding to the second smallest generalized eigenvalue, is used by the uncut algorithm, efficiency can be dramatically improved if the solve of the corresponding eigenvalue problem is performed in a matrix-free fashion, i.e., without explicitly manipulating with or even computing the matrix W, as, e.g., in the Lanczos algorithm. Matrix-free methods require only a function that performs a matrix-vector product for a given vector, on every iteration. For image segmentation, the matrix W is typically sparse, with a number of nonzero entries O(n), so such a matrix-vector product takes O(n) time. For high-resolution images, the second eigenvalue is often ill-conditioned, leading to slow convergence of iterative eigenvalue solvers, such as the Lanczos algorithm. Preconditioning is a key technology accelerating the convergence, e.g., in the matrix-free LOBPCG method. Computing the eigenvector using an optimally preconditioned matrix-free method takes O(n) time, which is the optimal complexity, since the eigenvector has n components.

Software Implementations scikit-learn uses LOBPCG from SciPy with algebraic multigrid preconditioning for solving the eigenvalue problem for the graph Laplacian to perform image segmentation via spectral graph partitioning as first proposed in and actually tested in and.

OBJ CUT OBJ CUT is an efficient method that automatically segments an object. The OBJ CUT method is a generic method, and therefore it is applicable to any object category model. Given an image D containing an instance of a known object category, e.g. cows, the OBJ CUT algorithm computes a segmentation of the object, that is, it infers a set of labels m. Let m be a set of binary labels, and let Θ be a shape parameter(Θ is a shape prior on the labels from a layered pictorial structure (LPS) model). An energy function E(m,Θ) is defined as follows.

E(m,Θ)=∑ϕx(D|mx)+ϕx(mx|Θ)+∑Ψxy(mx,my)+ϕ(D|mx,my) (1) The term ϕx(D|mx)+ϕx(mx|Θ) is called a unary term, and the term Ψxy(mx,my)+ϕ(D|mx,my) is called a pairwise term. A unary term consists of the likelihood ϕx(D|mx) based on color, and the unary potential ϕx(mx|Θ) based on the distance from Θ. A pairwise term consists of a prior Ψxy(mx,my) and a contrast term ϕ(D|mx,my). The best labeling m∗ minimizes ∑iwiE(m,Θi), where wi is the weight of the parameter Θi.

m∗=arg⁡minm∑iwiE(m,Θi) (2)

Algorithm Given an image D, an object category is chosen, e.g. cows or horses. The corresponding LPS model is matched to D to obtain the samples Θ1,⋯,Θs The objective function given by equation (2) is determined by computing E(m,Θi) and using wi=g(Θi|Z) The objective function is minimized using a single MINCUT operation to obtain the segmentation m.

Other approaches Jigsaw approach Image parsing Interleaved segmentation LOCUS LayoutCRF Minimum spanning tree-based segmentation

References

Worked examples

Example 1 — a first encounter with Segmentation-based object categorization

Start with the simplest possible case. Write down what Segmentation-based object categorization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Segmentation-based object categorization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Segmentation-based object categorization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Segmentation-based object categorization

In research
Segmentation-based object categorization appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Segmentation-based object categorization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Segmentation-based object categorization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Image segmentation, Object recognition and categorization, so understanding it makes those chapters shorter.
In everyday life
Look for Segmentation-based object categorization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Segmentation-based object categorization” →

How to study Segmentation-based object categorization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Segmentation-based object categorization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Segmentation-based object categorization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Segmentation-based object categorization in simple terms?

The image segmentation problem is concerned with partitioning an image into multiple regions according to some homogeneity criterion. This article is primarily concerned with graph theoretic approaches to image segmentation applying graph partitioning via minimum cut or maximum cut.

Why does Segmentation-based object categorization matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Segmentation-based object categorization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Segmentation-based object categorization.

Tags

  • Image segmentation
  • Object recognition and categorization

Keep exploring