# US 11,120,073 B2 · Generating metadata for image-based querying

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,120,073 B2
- Document ID: US11120073B2
- Status: Granted
- Kind: B2
- Application number: 16/511,590
- Filed: 2019-07-15
- Published: 2021-01-21
- Granted: 2021-09-14
- Earliest claimed: 2019-07-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Raghavendra Singh; Sachindra Joshi; Vikas C. Raykar; Ayushi Dalmia
- Web page: https://patentgrep.com/patent/US11120073B2

## CPC

- G06F 16/532: Query formulation, e.g. graphical querying
- G06F 16/538: Presentation of query results
- G06F 16/58: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F 18/24147: {Distances to closest patterns, e.g. nearest neighbour classification}
- G06F 18/256: {of results relating to different input data, e.g. multimodal recognition}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06V 10/811: {the classifiers operating on different input data, e.g. multi-modal recognition}
- G06V 20/30: in albums, collections or shared content, e.g. social network photos or video
- G06N 20/00: Machine learning
- G06V 2201/10: Recognition assisted with metadata
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods, systems, and computer program products for generating metadata for image-based querying are provided herein. A computer-implemented method includes processing a query image against a database by applying a deep learning visual model to the query image and images contained within the database; retrieving a set of multiple images from the database based on the processing; identifying subsets of images among the set of multiple images by analyzing metadata attribute values of the set of multiple images and nearest neighbor distance values between the query image and the multiple images in the set; determining one or more items of metadata attributable to the query image by processing metadata of the subsets of images; and outputting, to a user, the items of metadata in response to the query image.

## Claims

### Claim 1

A computer-implemented method, the method comprising steps of:
processing a query image against one or more databases by applying a deep learning visual model to (i) the query image and (ii) images contained within the one or more databases; retrieving a set of multiple images from the one or more databases based at least in part on said processing;
generating a star graph comprising: (i) a hub component corresponding to the query image; (ii) a set of spoke components corresponding to the retrieved set of multiple images; and (iii) a set of edges connecting the hub component to the set of spoke components, wherein a given edge in the set of edges represents a nearest neighbor distance value between the query image and an image in the retrieved set of multiple images corresponding to the given edge;
identifying one or more subsets of images among the set of multiple images by analyzing (i) one or more metadata attribute values of the set of multiple images and (ii) at least a portion of the nearest neighbor distance values of the star graph;
determining one or more items of metadata attributable to the query image by processing metadata of the one or more subsets of images; and
outputting, to at least one user, the one or more items of metadata in response to the query image;
wherein the steps are carried out by at least one computing device.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein said processing the query image comprises extracting one or more features from each of the query image and the images contained within the one or more databases.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, comprising:
generating one or more nearest neighbor indices on the images contained within the one or more databases, using the extracted features from the images contained within the one or more databases.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein said retrieving is based at least in part on implementation of the one or more nearest neighbor indices.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more databases comprise one or more product catalogs comprising images and metadata associated therewith.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein said identifying the one or more subsets of images comprises identifying one or more subsets of images within a given nearest neighbor distance value range that have variation in metadata values, as compared to the query image, below a predetermined threshold.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, comprising:
generating one or more suggested search terms based at least in part on the one or more items of metadata attributable to the query image.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, comprising:
outputting the one or more suggested search terms to the at least one user.

### Claim 9

A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computing device to cause the computing device to:
process a query image against one or more databases by applying a deep learning visual model to (i) the query image and (ii) images contained within the one or more databases;
retrieve a set of multiple images from the one or more databases based at least in part on said processing;
generate a star graph comprising: (i) a hub component corresponding to the query image; (ii) a set of spoke components corresponding to the retrieved set of multiple images; and (iii) a set of edges connecting the hub component to the set of spoke components, wherein a given edge in the set of edges represents a nearest neighbor distance value between the query image and an image in the retrieved set of multiple images corresponding to the given edge;
identify one or more subsets of images among the set of multiple images by analyzing (i) one or more metadata attribute values of the set of multiple images and (ii) at least a portion of the nearest neighbor distance values of the star graph;
determine one or more items of metadata attributable to the query image by processing metadata of the one or more subsets of images; and
output, to at least one user, the one or more items of metadata in response to the query image.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein said processing the query image comprises extracting one or more features from each of the query image and the images contained within the one or more databases.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the program instructions executable by a computing device further cause the computing device to:
generate one or more nearest neighbor indices on the images contained within the one or more databases, using the extracted features from the images contained within the one or more databases.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein said retrieving is based at least in part on implementation of the one or more nearest neighbor indices.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein the one or more databases comprise one or more product catalogs comprising images and metadata associated therewith.

### Claim 14 (depends on 9)

The computer program product of claim 9, wherein said identifying the one or more subsets of images comprises identifying one or more subsets of images within a given nearest neighbor distance value range that have variation in metadata values, as compared to the query image, below a predetermined threshold.

### Claim 15 (depends on 9)

The computer program product of claim 9, wherein the program instructions executable by a computing device further cause the computing device to:
generate one or more suggested search terms based at least in part on the one or more items of metadata attributable to the query image.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the program instructions executable by a computing device further cause the computing device to:
output the one or more suggested search terms to the at least one user.

### Claim 17

A system comprising:
a memory; and
at least one processor operably coupled to the memory and configured for:
processing a query image against one or more databases by applying a deep learning visual model to (i) the query image and (ii) images contained within the one or more databases;
retrieving a set of multiple images from the one or more databases based at least in part on said processing;
generating a star graph comprising: (i) a hub component corresponding to the query image; (ii) a set of spoke components corresponding to the retrieved set of multiple images; and (iii) a set of edges connecting the hub component to the set of spoke components, wherein a given edge in the set of edges represents a nearest neighbor distance value between the query image and an image in the retrieved set of multiple images corresponding to the given edge;
identifying one or more subsets of images among the set of multiple images by analyzing (i) one or more metadata attribute values of the set of multiple images and (ii) at least a portion of the nearest neighbor distance values of the star graph;
determining one or more items of metadata attributable to the query image by processing metadata of the one or more subsets of images; and
outputting, to at least one user, the one or more items of metadata in response to the query image.

### Claim 18

A computer-implemented method, the method comprising steps of:
processing multiple portions of a query image against one or more databases by applying a deep learning visual model to (i) the multiple portions of the query image and (ii) multiple portions of images contained within the one or more databases;
retrieving a set of multiple images from the one or more databases based at least in part on said processing;
generating a star graph for each of the multiple portions of the query image, the star graph comprising: (i) a hub component corresponding to a given portion of the query image;
(ii) a set of spoke components corresponding to multiple portions of the multiple images in the set; and (iii) a set of edges connecting the hub component to the set of spoke components, wherein a given edge in the set of edges represents a nearest neighbor distance value between the given portion of the query image and a portion of an image in the set of multiple images corresponding to the given edge;
identifying, for each of the multiple portions of the query image, one or more subsets of images among the set of multiple images by analyzing (i) one or more metadata attribute values of the multiple portions of the set of multiple images and (ii) at least a portion of the nearest neighbor distance values of the star graph;
generating a final subset of images by (i) removing one or more outlier subsets from the identified subsets and (ii) combining the remaining subsets into the final subset of images;
determining one or more items of metadata attributable to the query image by processing metadata of the images within the final subset; and
outputting, to at least one user, the one or more items of metadata in response to the query image;
wherein the steps are carried out by at least one computing device.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, comprising:
generating one or more suggested search terms based at least in part on the one or more items of metadata attributable to the query image.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19, comprising:
outputting the one or more suggested search terms to the at least one user.
