IP Library Granted Patent US 12,541,953
Granted Patent B2
US 12,541,953 · App. 18/139,608 · Granted Feb 3, 2026

Near-duplicate detection of images for training or validation of machine learning models

Inventors: Abdelhamid Bouzid (Louisville, KY); Mark William Sabini (River Edge, NJ)
Assignee: LandingAI Inc.
G06V10/774G06V10/757
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,541,953
App. No.
18/139,608
Granted
Feb 3, 2026
Kind
B2
Abstract

A system filters near-duplicate images to generate data for training or validation of a machine learning model. The system receives a set of images and generates feature vectors from the images. The system clusters the feature vectors. For each cluster of feature vectors, the system determines near-duplicate pairs of images. The system may generate a cost matrix representing a linear assignment problem and find near-duplicate pairs of images by solving the linear assignment problem. The system filters images from the set of images based on the near-duplicate pairs of images. The system uses the filtered set of images for training or validation of the machine learning model.

Claims (55)

1 . A computer-implemented method for generating training data for a machine learning model, the method comprising:

receiving a set of images for generating training dataset for training the machine learning model, the machine learning model configured to receive an input image and output a prediction for the input image;

for each image from the set of images, generating a feature vector;

clustering the feature vectors to generate a plurality of clusters of feature vectors;

for each cluster of feature vectors:

generating a cost matrix, wherein a non-diagonal element of the cost matrix represents a measure of distance between a pair of feature vectors;

finding near-duplicate pairs of feature vectors based on the cost matrix; and

obtaining near-duplicate pairs of images based on the near-duplicate pairs of feature vectors;

filtering the set of images by removing one or more images from the set of images, wherein the removed images belong to the near-duplicate pairs of images; and

adding images from the filtered set of images to a training dataset for training the machine learning model.

2 . The computer-implemented method of claim 1 , further comprising:

training the machine learning model using the training dataset, the training comprising updating parameters of the machine learning model.

3 . The computer-implemented method of claim 1 , further comprising:

using images from the filtered set of images for validating the machine learning model.

4 . The computer-implemented method of claim 1 , wherein finding near-duplicate pairs of feature vectors based on the cost matrix comprises solving a linear assignment problem based on the cost matrix.

5 . The computer-implemented method of claim 4 , wherein solving the linear assignment problem based on the cost matrix is performed using a Hungarian matching process.

6 . The computer-implemented method of claim 1 , wherein generating the feature vector comprises providing the image as input to a neural network and extracting an embedding from a hidden layer of the neural network as the feature vector of the image.

7 . The computer-implemented method of claim 1 , wherein clustering the feature vectors to generate the plurality of clusters of feature vectors is performed using a density based clustering of the set of images.

8 . The computer-implemented method of claim 1 , wherein diagonal elements of the cost matrix are set to a value representing infinity.

9 . A non-transitory computer readable storage medium storing instructions that when executed by one or more computer processors, cause the one or more computer processors to perform steps comprising:

receiving a set of images for generating training dataset for training a machine learning model, the machine learning model configured to receive an input image and output a prediction for the input image;

for each image from the set of images, generating a feature vector;

clustering the feature vectors to generate a plurality of clusters of feature vectors;

for each cluster of feature vectors:

generating a cost matrix, wherein a non-diagonal element of the cost matrix represents a measure of distance between a pair of feature vectors;

finding near-duplicate pairs of feature vectors based on the cost matrix; and

obtaining near-duplicate pairs of images based on the near-duplicate pairs of feature vectors;

filtering the set of images by removing one or more images from the set of images, wherein the removed images belong to the near-duplicate pairs of images; and

adding images from the filtered set of images to a training dataset for training the machine learning model.

10 . The non-transitory computer readable storage medium of claim 9 , wherein the instructions further cause the one or more computer processors to perform steps comprising:

training the machine learning model using the training dataset, the training comprising updating parameters of the machine learning model.

11 . The non-transitory computer readable storage medium of claim 9 , wherein the instructions further cause the one or more computer processors to perform steps comprising:

using images from the filtered set of images for validating the machine learning model.

12 . The non-transitory computer readable storage medium of claim 9 , wherein finding near-duplicate pairs of feature vectors based on the cost matrix comprises solving a linear assignment problem based on the cost matrix.

13 . The non-transitory computer readable storage medium of claim 12 , wherein solving the linear assignment problem based on the cost matrix is performed using a Hungarian matching process.

14 . The non-transitory computer readable storage medium of claim 9 , wherein generating the feature vector comprises providing the image as input to a neural network and extracting an embedding from a hidden layer of the neural network as the feature vector of the image.

15 . The non-transitory computer readable storage medium of claim 9 , wherein clustering the feature vectors to generate the plurality of clusters of feature vectors is performed using a density based clustering of the set of images.

16 . A computer system comprising:

one or more computer processors; and

a non-transitory computer readable storage medium storing instructions that when executed by the one or more computer processors, cause the one or more computer processors to perform steps comprising:

receiving a set of images for generating training dataset for training a machine learning model, the machine learning model configured to receive an input image and output a prediction for the input image;

for each image from the set of images, generating a feature vector;

clustering the feature vectors to generate a plurality of clusters of feature vectors;

for each cluster of feature vectors:

generating a cost matrix, wherein a non-diagonal element of the cost matrix represents a measure of distance between a pair of feature vectors;

finding near-duplicate pairs of feature vectors based on the cost matrix; and

obtaining near-duplicate pairs of images based on the near-duplicate pairs of feature vectors;

filtering the set of images by removing one or more images from the set of images, wherein the removed images belong to the near-duplicate pairs of images; and

adding images from the filtered set of images to a training dataset for training the machine learning model.

17 . The computer system of claim 16 , wherein the instructions further cause the one or more computer processors to perform steps comprising:

training the machine learning model using the training dataset, the training comprising updating parameters of the machine learning model.

18 . The computer system of claim 16 , wherein the instructions further cause the one or more computer processors to perform steps comprising:

using images from the filtered set of images for validating the machine learning model.

19 . The computer system of claim 16 , wherein finding near-duplicate pairs of feature vectors based on the cost matrix comprises solving a linear assignment problem based on the cost matrix.

20 . The computer system of claim 19 , wherein solving the linear assignment problem based on the cost matrix is performed using a Hungarian matching process.

Assignments (2)
CHANGE OF NAME Recorded Mar 4, 2025
From: LANDING AI, INC.
To: LANDINGAI INC.
Reel/Frame 070403/0654 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 21, 2024
From: BOUZID, ABDELHAMID; SABINI, MARK WILLIAM
To: LANDING AI, INC.
Reel/Frame 066859/0288 →
Continuity (1)
Related Publication 20240362895A1 · Oct 31, 2024
References Cited (7)
US 20230206131A1 · Brock · 2023 [cited by examiner]
Narayana, V. A., Govardhan, A., & Premchand, P. (Nov. 2011). To create a confusion matrix in respect of threshold being fixed for effective detection of near duplicate web documents in web crawling. In 2011 6th Internat… [cited by examiner]
Y. Bo, Y. Chen, W. He and J. Xiang, “DVD: Constructing a Discriminative Video Descriptor by Convolving Frame Features,” 2018 IEEE Fourth International Conference on Multimedia Big Data (BigMM), Xi'an, China, 2018, pp. 1… [cited by examiner]
Barz, B., & Denzler, J. (2020). Do we train on test data? purging cifar of near-duplicates. Journal of Imaging, 6(6), 41. (Year: 2020). [cited by examiner]
Foo, J. J., Zobel, J., & Sinha, R. (Sep. 2007). Clustering near-duplicate images in large collections. In Proceedings of the international workshop on Workshop on multimedia information retrieval (pp. 21-30). (Year: 200… [cited by examiner]
Thyagharajan, K. K., & Kalaiarasi, G. (2021). A review on near-duplicate detection of images using computer vision techniques. Archives of Computational Methods in Engineering, 28(3), 897-916. (Year: 2021). [cited by examiner]
M. Chen, Y. Wang, X. Zou, S. Wang and G. Wu, “A duplicate image deduplication approach via Haar wavelet technology,” 2012 IEEE 2nd International Conference on Cloud Computing and Intelligence Systems, Hangzhou, China, 2… [cited by examiner]