# US 2022/0292685 A1 · Methods and systems for semantic augmentation of images

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

- Number: US 2022/0292685 A1
- Document ID: US20220292685A1
- Status: Published application
- Kind: A1
- Application number: 17/202,265
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Huawei Cloud Computing Technologies Co., Ltd.
- Applicants: Huawei Cloud Computing Technologies Co., Ltd.
- Inventors: Morgan Lindsay HEISLER; Amin BANITALEBI DEHKORDI; Yong ZHANG
- Web page: https://patentgrep.com/patent/US20220292685A1

## CPC

- G06T 7/11: Region-based segmentation
- G06N 3/045: Combinations of networks
- 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
- G06N 3/09: Supervised learning
- G06V 10/82: using neural networks
- G06V 20/20: in augmented reality scenes
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods and systems for generating a semantically augmented image are disclosed. An embedding is generated for each object label associated with a segmented input image. For each embedding associated with a respective object label, a similarity score is computed between the embedding associated with the object label and an embedding representing an object class in an object bank storing a plurality of object images. At least one object is selected, the selected object being associated with a respective object image in the object bank, the selected at least one object being from an identified object class that is identified as contextually relevant to at least one object label associated with the segmented input image, based at least on the similarity score. The selected object is added into the segmented input image to generate the augmented image.

## Claims

### Claim 1

A method for generating an augmented image, the method comprising:
generating an embedding for each object class label associated with a segmented input image;
for each embedding associated with a respective object class label, computing a similarity score between the embedding associated with the object class label and an embedding representing an object class in an object bank comprising a plurality of object images;
selecting at least one object, associated with a respective object image in the object bank, the selected at least one object being from an identified object class that is identified as contextually relevant to at least one object class label associated with the segmented input image, based at least on the similarity score; and
adding the selected at least one object into the segmented input image to generate the augmented image.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the embedding for each object class label comprises:
accessing a dictionary of embeddings containing a plurality of entries each associating a text string with a respective corresponding embedding; and
selecting the embedding for each object class label by looking up the text string in the dictionary of embeddings corresponding to each object label.

### Claim 3 (depends on 1)

The method of claim 1, wherein computing the similarity score comprises computing a cosine similarity or a Euclidean distance between the embedding associated with the respective object class label and the embedding representing the object class in the object bank.

### Claim 4 (depends on 1)

The method of claim 1, wherein adding the selected at least one object comprises applying a pixel-wise mask to the respective object image to segment the at least one object from the respective object image, and adding the segmented at least one object into the segmented input image.

### Claim 5 (depends on 1)

The method of claim 1, wherein adding the selected at least one object comprises:
identifying a contextually relevant object in the segmented input image, the contextually relevant object being identified based on the similarity score with the selected at least one object; and
adding the selected at least one object in a selected location relative to a location of the contextually relevant object.

### Claim 6 (depends on 1)

The method of claim 1, wherein the selected at least one object is from the identified object class that is identified based on a selection criterion to improve the original image dataset or to improve performance of the trained neural network.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
performing object segmentation to an input image to generate the segmented input image.

### Claim 8 (depends on 1)

The method of claim 1, wherein adding the selected at least one object comprises performing object augmentation on the selected at least one object, and adding the augmented at least one object into the segmented input image to generate the augmented image.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
performing global image augmentation on the augmented image.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
sampling the segmented input image from an image dataset; and
storing the augmented image in the same or different image dataset.

### Claim 11

A method for improving performance of a neural network trained using an original image dataset, the method comprising:
generating an augmented image dataset from the original image dataset by, for one or more segmented images sampled from the original image dataset, generating a respective semantically augmented image by:
generating an embedding for each object class label associated with the segmented image;
for each embedding associated with a respective object label, computing a similarity score between the embedding associated with the object label and an embedding representing an object class in an object bank storing a plurality of object images;
selecting at least one object, associated with a respective object image in the object bank, the selected at least one object being from an identified object class that is identified as contextually relevant to at least one object label associated with the segmented input image, based at least on the similarity score; and
adding the selected at least one object into the segmented image to generate the respective semantically augmented image; and
re-training the neural network using the augmented image dataset.

### Claim 12 (depends on 11)

The method of claim 11, wherein generating the embedding for each object class label comprises:
accessing a dictionary of embeddings containing a plurality of entries each associating a text string with a respective corresponding embedding; and
selecting the embedding for each object label by looking up the text string in the dictionary of embeddings corresponding to each object label.

### Claim 13 (depends on 11)

The method of claim 11, wherein the one or more segmented images sampled from the original image dataset is a portion of all images contained in the original image dataset.

### Claim 14 (depends on 13)

The method of claim 13, wherein, for one or more images from the original image dataset that is not used to generate semantically augmented images, global image augmentation is performed to generate globally augmented images for the augmented image dataset.

### Claim 15 (depends on 11)

The method of claim 11, wherein computing the similarity score comprises computing a cosine similarity or a Euclidean distance between the embedding associated with the respective object label and the embedding representing the object class in the object bank.

### Claim 16 (depends on 11)

The method of claim 11, wherein adding the selected at least one object comprises:
identifying a contextually relevant object in the segmented image, the contextually relevant object being identified based on the similarity score with the selected at least one object; and
adding the selected at least one object in a selected location relative to a location of the contextually relevant object.

### Claim 17 (depends on 11)

The method of claim 11, wherein the selected at least one object is from the identified object class that is identified based on a selection criterion to improve the original image dataset or to improve performance of the trained neural network.

### Claim 18 (depends on 11)

The method of claim 11, wherein the augmented image dataset is generated by adding the respective semantically augmented image to the original image dataset.

### Claim 19 (depends on 11)

The method of claim 11, wherein the augmented image dataset is generated by creating a new image dataset using the respective semantically augmented image.

### Claim 20

A computing system comprising:
a memory; and
a processing device in communication with the memory, the processing device configured to execute instructions to cause the computing system to:
generate an embedding for each object class label associated with a segmented input image;
for each embedding associated with a respective object class label, compute a similarity score between the embedding associated with the object label and an embedding representing an object class in an object bank storing a plurality of object images;
select at least one object, associated with a respective object image in the object bank, the selected at least one object being from an identified object class that is identified as contextually relevant to at least one object label associated with the segmented input image, based at least on the similarity score; and
add the selected at least one object into the segmented input image to generate the augmented image.
