Learning Spatial Relationships between Samples of Patent Image Shapes

Juan Castorena, Manish Bhattarai, Diane Oyen

Introduction

Patent diagrams present a unique challenge for computer vision. Unlike natural images found in datasets like ImageNet, patent illustrations are sparse, binary, and highly subjective. They rely on lines, varying thicknesses, and complex callouts rather than texture or color. Standard Convolutional Neural Networks (CNNs) often struggle with these "texture-less" images because they are not inherently invariant to rotations or scaling and tend to overfit on the vast "empty" white space characteristic of technical drawings.

In this work, we propose a shift from pixel-based processing to geometric shape analysis. By treating patent diagrams as sparse point clouds and processing them using a Dynamic Graph CNN (DGCNN), we can focus on the spatial relationships between components rather than raw pixel intensities.

Methodology

The proposed approach utilizes a three-stage pipeline to transform binary images into a format suitable for geometric deep learning.

The proposed three-stage pipeline: Shape Extraction, Sparse Sampling, and Shape Learning.
  1. Shape Extraction: Foreground elements are segmented from the background using Otsu’s adaptive thresholding.
  2. Sparse Sampling: To reduce data redundancy, we employ mini-batch k-means clustering to extract a representative point cloud. While 10 points may suffice for simple digits, complex patent drawings typically require approximately 1,000 points.
  3. Learning via DGCNN: The core of our architecture is the Dynamic Graph CNN. Unlike static graph networks, the EdgeConv layers dynamically compute the k-nearest neighbors for each point in the feature space at every layer.
The EdgeConv operation at a node, illustrating how local geometric features are aggregated.

By centering and normalizing these point clouds to a unit ball, the model achieves inherent invariance to translation and scaling, addressing a major limitation of Euclidean CNNs.

Experimental Results

The model was evaluated on the CLEF-IP patent dataset, MNIST, and Fashion-MNIST.

Classification Performance

On the CLEF-IP dataset (~38,000 images across 9 categories), the DGCNN achieved a classification accuracy of 94.2%. This significantly outperforms standard architectures like ResNet-50, which achieved only 24.4%, and LeNet-5 at 55.5%. The failure of deep Euclidean models highlights that increasing network depth is ineffective if the underlying data representation does not align with the geometric nature of the problem.

Robustness and Sparsity

Tests on the MNIST dataset demonstrated remarkable robustness. Accuracy remained stable even when digits were reduced to just 15-20 points, suggesting that the topological "essence" of a shape is more critical than pixel density. Furthermore, the model proved invariant to "binary inversion" (flipping black and white pixels), a common artifact in document scanning that typically degrades CNN performance.

Image Retrieval

In retrieval tasks using the Fashion-MNIST dataset, our geometric approach achieved a Mean Average Precision (MAP) of 0.886. This far exceeds the performance of traditional methods like the Structural Similarity Index (SSIM), which yielded a MAP of 0.276.

Discussion and Future Work

By prioritizing spatial relationships over pixel-level textures, we demonstrate a more efficient and accurate method for analyzing patent diagrams. While the model excels at 2D transformations, 3D-to-2D projections remain a challenge; a front-view drawing of a machine remains geometrically distinct from a side-view. Future research will explore multi-modal approaches, combining these geometric features with text-based patent data to create more robust search and classification engines.

Summary updated

BibTeX
@inproceedings{castorena2020learning,
  author = {Juan Castorena and Manish Bhattarai and Diane Oyen},
  title = {{Learning Spatial Relationships between Samples of Patent Image Shapes}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00094},
}
Figure