Delineation of line patterns in images using B-COSFIRE filters

Nicola Strisciuglio, Nicolai Petkov

TL;DR

This paper introduces B-COSFIRE filters, a bio-inspired and trainable approach for detecting line patterns in diverse images, from retinal blood vessels to aerial road networks. By mimicking "simple cells" in the brain's visual cortex, these filters automatically configure themselves to recognize specific shapes, offering a highly efficient and robust alternative to both hand-crafted kernels and computationally expensive deep learning models.

What Problem Does This Paper Address?

Delineating elongated structures—like cracks in pavement, rivers in satellite imagery, or capillaries in medical scans—is a fundamental task in computer vision. However, it is notoriously difficult because these "lines" vary wildly in thickness, orientation, and contrast.

Traditional methods often fall into two camps:

  1. Hand-crafted filters (e.g., Gabor or Hessian): These require manual tuning and often struggle with complex junctions or varying widths.
  2. Machine Learning/Deep Learning: While powerful, these often require massive labeled datasets and significant computational power for training and inference.

The authors seek a middle ground: a filter that is trainable (it learns from a single prototype) and efficient (it runs in a fraction of the time required by complex stochastic models).

Methods

The authors propose the B-COSFIRE (Bar-Combination of Shifted Filter Responses) filter. Its design is inspired by the primary visual cortex (area V1), specifically "simple cells" that fire when they see a bar of a certain orientation.

Key technical components include:

  • Difference-of-Gaussians (DoG): The filter starts with basic DoG responses, which detect local contrast changes.
  • Automatic Configuration: Instead of manually defining the filter's structure, you provide a "prototype" pattern (e.g., a synthetic bar). The system automatically identifies the arrangement of DoG sub-units needed to represent that pattern.
  • Geometric Mean (The "AND" Logic): To compute the final response, the filter takes the weighted geometric mean of its sub-units. This acts like a fuzzy logical "AND" operation—the filter only fires strongly if all expected sub-parts of the line are present.
  • Rotation Tolerance: By applying the filter at multiple orientations and taking the maximum response, the system becomes invariant to the angle of the line.

Datasets

The researchers evaluated their approach on two distinct datasets to prove versatility:

  1. INRIA Line-Network Dataset: Contains four diverse categories: nerves of a leaf, a tiled wall, aerial images of a river, and a road network.
  2. IOSTAR Dataset: A collection of 30 high-resolution retinal fundus images used for clinical blood vessel segmentation.

Key Insights and Ideas

  • Trainable Representation Learning: Unlike standard filters that are fixed, B-COSFIRE is a form of "representation learning." It determines its own selectivity based on a sample, making it adaptable to different domains (e.g., switching from detecting leaf veins to detecting tiles) without rewriting code.
  • The Power of the Geometric Mean: Using the geometric mean rather than the arithmetic mean makes the filter highly selective. It suppresses noise effectively because a zero response in any single sub-unit results in a zero total response.
  • Computational Efficiency: The method is significantly faster than "point process" models. For example, on the INRIA leaf dataset, B-COSFIRE took 0.75 seconds, while a competing junction-point process took 73.5 seconds.

Key Results

  • State-of-the-Art Performance: On the INRIA dataset, B-COSFIRE achieved the highest Matthews Correlation Coefficient (MCC) for the leaf (0.7680) and tiles (0.8410) images, outperforming several established methods.
  • Medical Accuracy: On the IOSTAR retinal dataset, it achieved an accuracy of 0.9458, which is competitive with specialized medical imaging algorithms, despite B-COSFIRE being a general-purpose tool.
  • Robustness: The filter proved capable of delineating lines even in noisy environments or when the "lines" were actually textures (like the edges of tiles).

Limitations and Future Work

  • Sensitivity to Occlusions: Because the geometric mean requires all parts of the pattern to be present, the filter can fail if a line is partially occluded or broken. The authors suggest exploring other combination functions, like the arithmetic mean, to improve "soft" detection in these cases.
  • Scale Invariance: A single B-COSFIRE filter is tuned to a specific line thickness. While the paper demonstrates success with a single filter, the authors note that a multi-scale approach (using a bank of filters for different widths) would be necessary to capture the full range of vessel sizes in complex medical images.
  • Implementation: While already efficient in MATLAB, the authors point out that the algorithm is highly parallelizable and could be further accelerated using GPU implementations.

Summary updated

Abstract

Delineation of line patterns in images is a basic step required in various applications such as blood vessel detection in medical images, segmentation of rivers or roads in aerial images, detection of cracks in walls or pavements, etc. In this paper we present trainable B-COSFIRE filters, which are a model of some neurons in area V1 of the primary visual cortex, and apply it to the delineation of line patterns in different kinds of images. B-COSFIRE filters are trainable as their selectivity is determined in an automatic configuration process given a prototype pattern of interest. They are configurable to detect any preferred line structure (e.g. segments, corners, cross-overs, etc.), so usable for automatic data representation learning. We carried out experiments on two data sets, namely a line-network data set from INRIA and a data set of retinal fundus images named IOSTAR. The results that we achieved confirm the robustness of the proposed approach and its effectiveness in the delineation of line structures in different kinds of images.
BibTeX
@inproceedings{strisciuglio2017delineation,
  author = {Nicola Strisciuglio and Nicolai Petkov},
  title = {{Delineation of line patterns in images using B-COSFIRE filters}},
  booktitle = {IWOBI},
  year = {2017},
  url = {https://openreview.net/forum?id=oRRUvu5cDl},
}

Loading related content...

Figure