Sparse Hierarchical Clustering for Near-Duplicate Image Collections
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional image clustering methods face inefficiencies when dealing with large collections of images, particularly due to high space and time complexities, making it challenging to cluster millions of images effectively within current computer systems.
Innovation Solution
A computer-implemented method that generates a vocabulary of visual words, extracts image features using SIFT, creates an inverted index, performs geometric verification, and uses a modified complete-linkage agglomerative hierarchical clustering algorithm to efficiently cluster images based on similarity measures, reducing memory requirements and clustering time.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If bottom-up hierarchical clustering is used to ensure accurate image clustering, then clustering accuracy is improved, but space complexity increases to O(n^2) requiring terabytes of RAM
Solution Approach 1:
The patent divides the image collection into multiple shards or partitions that can be processed independently. Each shard is clustered separately using bottom-up hierarchical clustering, and then results are merged. This segmentation reduces the space complexity from O(n^2) for the entire dataset to O((n/k)^2) for each shard, where k is the number of partitions, making it feasible to process millions of images with available memory.
Solution Approach 2:
The patent performs preliminary filtering and preprocessing of images before clustering. It extracts visual features and creates compact representations in advance, so that when bottom-up hierarchical clustering is applied, the computation operates on pre-processed data rather than raw images. This preliminary action reduces both memory requirements and clustering time while preserving clustering accuracy.
2Reliability
If bottom-up hierarchical clustering is applied to cluster millions of images, then clustering completeness is improved, but time complexity increases to at least O(n^2) requiring hundreds of hours
Solution Approach 1:
The patent segments the large image collection into smaller batches or shards that can be clustered in parallel. By dividing the dataset and applying bottom-up hierarchical clustering to each segment independently using multiple processing threads or nodes, the total clustering time is reduced from O(n^2) sequential processing to approximately O((n/k)^2) parallel processing, where k is the number of parallel workers, enabling millions of images to be clustered in minutes rather than hundreds of hours.
Solution Approach 2:
The patent implements a two-stage clustering approach where a coarse clustering is performed first using approximate nearest neighbor methods, followed by refined bottom-up hierarchical clustering only on selected candidate pairs. This partial application of the computationally intensive bottom-up method reduces overall time complexity while maintaining clustering completeness by focusing computational resources on the most promising image pairs.
3Measurement precision
If a large vocabulary of visual words is used for image classification, then classification accuracy is improved, but compatibility with top-down partitioning approaches deteriorates
Solution Approach 1:
The patent merges the strengths of both top-down and bottom-up approaches by combining k-means clustering for vocabulary generation with bottom-up hierarchical clustering for final image grouping. The large vocabulary of visual words is created using top-down k-means on extracted features, providing accurate classification capability. Then bottom-up hierarchical clustering is applied on the visual word sequences, maintaining compatibility while achieving both high classification accuracy and effective image clustering for near-duplicate detection.
Data Source
AI summary
Detection of near-duplicate images is important for detecting the reuse of copyrighted material. Some applications require the clustering of near-duplicates instead of the comparison to an original. Representing images as bags of visual words is the first step for our clustering approach. An inverted index points from visual words to all the images containing that visual word. In the next step, matches are geometrically verified in pairs of images that share a large fraction of their visual words. Geometric verification may use affine, perspective, or other transformations. The verification step provides a similarity measure based on the fraction of the matching image points and on their distributions in the compared images. The resulting distance matrix is very sparse because most images in the collection are not compared to each other. This distance matrix is used as input for modified agglomerative hierarchical clustering approach that can handle a sparse distance matrix.


