A Subpath Kernel for Learning Hierarchical Image Representations

Yanwei Cui, Laetitia Chapel, Sébastien LefèvrearXiv 2016 · DOI

This paper, presented at the 10th IAPR-TC15 Workshop on Graph-based Representations in Pattern Recognition, introduces a specialized kernel designed to bridge the gap between structural pattern recognition and numerical image analysis.

TL;DR

The authors propose a new subpath kernel tailored for hierarchical image representations, which are typically represented as unordered trees with numerical node features. By adapting symbolic tree kernels to the continuous domain and utilizing dynamic programming for efficiency, they demonstrate significantly improved classification performance on both synthetic and remote sensing datasets.

What Problem Does This Paper Address?

In fields like remote sensing, images are often represented hierarchically—think of a forest region that breaks down into clusters of trees, which then break down into individual canopies. These are naturally represented as trees. However, standard machine learning tools for trees (tree kernels) were largely developed for Natural Language Processing (NLP) or bioinformatics.

These existing kernels face two major hurdles when applied to images:

  1. Ordering: NLP trees are "ordered" (the sequence of words matters), but image regions are "unordered" (the sub-regions of a field don't have a fixed left-to-right order).
  2. Data Type: Most tree kernels expect symbolic labels (like "Noun Phrase" or "Cytosine"). Image nodes, however, contain numerical features like spectral averages or color histograms.

The authors set out to create a kernel that respects the hierarchical structure of images while handling the numerical, unordered nature of the data efficiently.

Methods

The core of the approach is the Subpath Kernel. Instead of comparing entire subtrees—which is computationally expensive—the authors focus on subpaths: sequences of nodes connecting an ancestor to a descendant.

Key technical contributions include:

  • Numerical Adaptation: The authors replace the standard Kronecker delta (which only checks if two nodes are identical) with atomic kernels (like Gaussian or $\chi^2$ kernels). This allows the model to measure the similarity between numerical feature vectors at each node in a subpath.
  • Efficient Computation: Comparing every possible subpath between two trees is $O(|T|^2 |T'|^2)$. The authors use a dynamic programming strategy to reduce this to $O(|T| |T'|)$, making it feasible for trees with many nodes.
  • Weighting and Normalization: They introduce a weighting parameter $\beta$ to give more importance to nodes representing larger image regions (relative area) and apply normalization to ensure the kernel isn't biased by the total number of nodes in a tree.
Fig. 1: A tree T and all its subpaths si, that may have multiple occurrences in T: h(si, T) = 2 for s2 = (A →B) and s5 = (B) ; h(si, T) = 1 otherwise.

Datasets

The authors evaluated their kernel using two distinct setups:

  1. Artificial Dataset: A controlled environment where they could isolate whether the "root" (the whole region), the "structure" (how it's divided), or the "internal nodes" (sub-regions) were the discriminative factors.
  2. Strasbourg Dataset: A real-world multispectral QuickBird satellite image of Strasbourg, France. This dataset contains 400 regions categorized into 7 classes (e.g., Water, Forest, Urban vegetation, Industrial blocks). The hierarchies were generated using the RHSEG (Recursive Hierarchical Segmentation) algorithm.

Key Insights and Ideas

  • Structure as a Feature: The artificial experiments proved that the kernel can distinguish classes even when the top-level average (the root) is identical, simply by looking at how the regions are organized hierarchically.
  • Subpaths vs. Random Walks: While graph kernels often use random walks, the authors argue that for tree structures, a complete enumeration of subpaths is both achievable and more descriptive of the hierarchy.
  • The Power of $\chi^2$: In their experiments, using a $\chi^2$ atomic kernel (which compares histograms) consistently outperformed the standard Gaussian kernel, likely because histograms capture a richer distribution of the underlying pixels in a region.
Fig. 2: An illustration of the different scenarios used for experimental evaluation.

Key Results

  • Synthetic Success: In scenarios where only the structure or internal nodes were discriminative, the subpath kernel achieved 100% accuracy, while a "rooted kernel" (which only looks at the top-level region) performed no better than random chance (~50%).
  • Remote Sensing Performance: On the Strasbourg dataset, the subpath kernel with a $\chi^2$ atomic kernel reached an Overall Accuracy of 61.4%, a notable improvement over the 57.8% achieved by the rooted kernel.
  • Class-Specific Gains: The kernel was particularly effective for complex classes like "urban vegetation" and "agricultural zones," where the spatial arrangement of sub-components is vital for identification.

Limitations and Future Work

  • Global Weighting: The node weighting parameter $\beta$ is currently global. The authors note that a value that works well for the whole dataset might not be optimal for every individual class.
  • Computational Scale: While dynamic programming helps, the sheer size of high-resolution satellite images means that scaling to millions of regions remains a challenge.
  • Broader Comparisons: The authors suggest that future work should include more direct comparisons with general graph kernels, as trees are a specific subset of graphs.

For researchers working on Geographic Object-Based Image Analysis (GEOBIA) or structured learning, this subpath kernel offers a mathematically grounded way to treat image hierarchies as more than just a collection of independent regions.

Summary updated

BibTeX
@misc{cui2016subpath,
  author = {Yanwei Cui and Laetitia Chapel and Sébastien Lefèvre},
  title = {{A Subpath Kernel for Learning Hierarchical Image Representations}},
  year = {2016},
  eprint = {1604.01787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.01787},
}
Figure