# US 2022/0343626 A1 · Text Based Image Search

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

- Number: US 2022/0343626 A1
- Document ID: US20220343626A1
- Status: Published application
- Kind: A1
- Application number: 17/635,108
- Filed: 2020-08-05
- Published: 2022-10-27
- Earliest claimed: 2019-08-15
- Assignees: Vision Semantics Limited
- Applicants: Vision Semantics Limited
- Inventors: Shaogang Gong; Qi Dong; Xiatian Zhu
- Web page: https://patentgrep.com/patent/US20220343626A1

## CPC

- G06V 30/413: Classification of content, e.g. text, photographs or tables
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/76: {based on eigen-space representations, e.g. from pose or different illumination conditions; Shape manifolds}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Method and system for building a machine learning model for finding visual targets from text queries, the method comprising the steps of receiving a set of training data comprising text attribute labelled images, wherein each image has more than one text attribute label. Receiving a first vector space comprising a mapping of words, the mapping defining relationships between words. Generating a visual feature vector space by grouping images of the set of training data having similar attribute labels. Mapping each attribute label within the training data set on to the first vector space to form a second vector space. Fusing the visual feature vector space and the second vector space to form a third vector space. Generating a similarity matching model from the third vector space.

## Claims

### Claim 1

A method for building a machine learning model for finding visual targets from text queries, the method comprising the steps of:
receiving a set of training data comprising text attribute labelled images, wherein each image has more than one text attribute label;
receiving a first vector space comprising a mapping of words, the mapping defining relationships between words;
generating a visual feature vector space by grouping images of the set of training data having similar attribute labels;
mapping each attribute label within the training data set on to the first vector space to form a second vector space;
fusing the visual feature vector space and the second vector space to form a third vector space; and
generating a similarity matching model from the third vector space.

### Claim 2 (depends on 1)

The method of claim 1, wherein the similarity matching model is generated using a mean square error loss function.

### Claim 3 (depends on 2)

The method of claim 2, wherein the mean square error loss function is:
ℒ
m
⁢
s
⁢
e
=
1
N
batch
⁢
∑
i
=
1
N
batch
(
y
i
-
y
^
i
)
2
where yi and ŷi denote the ground-truth and predicted similarity of the i-th training pair, respectively and a mini-batch size is specified by Nbatch.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the first vector space is based on a Wikipedia pre-trained word2vector model.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the textual terms within the first vector space include the words of the text labels of the images within the training data set.

### Claim 6 (depends on 1)

The method according to claim 1, wherein generating the visual feature vector space by grouping images of the set of training data having similar attribute labels further comprises discriminative learning using a softmax Cross Entropy loss in a Deep Convolutional Neural Network, CNN, where each attribute label is treated as a separate classification task, cls, according to
ℒ
cls
=
-
1
N
b
⁢
a
⁢
t
⁢
c
⁢
h
⁢
∑
i
=
1
N
batch
∑
j
=
1
N
attr
log
⁡
(
p
ij
)
,
where pij is a probability estimate of an i-th training sample on a j-th ground truth attribute.

### Claim 7 (depends on 1)

The method according to claim 1, wherein mapping each attributed label within the training data set on to the first vector space to form a second vector space further comprises embedding each attribute label, ziloc, i∈{1, . . . , Natt}.

### Claim 8 (depends on 7)

The method according to claim 7 further comprising the step of obtaining a global textual embedding, zglo, according to:
𝓏
g
⁢
l
⁢
o
=
f
⁡
(
{
𝓏
i
loc
}
i
=
1
N
att
)
=
Tanh
⁡
(
∑
i
=
1
N
att
(
w
2
i
·
Tanh
⁢
(
w
1
i
·
𝓏
i
loc
)
)
)
where w1 and w2 are learnable parameters and Tan h is a non-linear activation function of a neuron in a Convolutional Neural Network, CNN.

### Claim 9 (depends on 8)

The method of claim 8 further comprising discriminative learning using a softmax Cross Entropy loss, where each attribute label is treated as a separate classification task, cls, according to
ℒ
cls
=
-
1
N
b
⁢
a
⁢
t
⁢
c
⁢
h
⁢
∑
i
=
1
N
batch
∑
j
=
1
N
attr
log
⁡
(
p
ij
)
,
where pij is a probability estimate of an i-th training sample on a j-th ground truth attribute.

### Claim 10 (depends on 1)

The method according to claim 1, wherein generating the visual feature vector space by grouping images of the set of training data having similar attribute labels further comprises building local attribute-specific embedding:
(xiloc,i∈{1, . . . ,Natt})
based on a global part (xglo) in a ResNet-50 CNN architecture.

### Claim 11 (depends on 1)

The method according to claim 1, wherein fusing the visual feature vector space and the second vector space to form the third vector space further comprises element-wise multiplication.

### Claim 12 (depends on 11)

The method of claim 11, wherein the element-wise multiplication is a Hadamard Product in CNN learning optimisation.

### Claim 13 (depends on 12)

The method of claim 12, wherein for each attribute label a separate lightweight branch with two fully connected, FC, layers of a deep CNN are used.

### Claim 14 (depends on 12)

The method of claim 12, further comprising cross-modality global-level embedding sglo according to:
sglo=xglo∘zglo
wherein ∘ specifies the Hadamard Product.

### Claim 15 (depends on 1)

The method according to claim 1, wherein fusing the visual feature vector space and the second vector space to form the third vector space further comprises forming per-attribute cross-modality embedding according to:
siloc=xiloc∘ziloc,i∈{1, . . . ,Natt}.

### Claim 16 (depends on 15)

The method of claim 15, wherein fusing the visual feature vector space and the second vector space to form the third vector space is based on a quality aware fusion algorithm.

### Claim 17 (depends on 16)

The method of claim 16 further comprising estimating a per-attribute quality, ρiloc, using minimum prediction scores on image and text as:
ρiloc=min(pivis,ρitex),i∈{1, . . . ,Natt}
where pivis and pitex denote ground-truth class posterior probability estimated by a corresponding classifier.

### Claim 18 (depends on 17)

The method of claim 17 further comprising adaptively cross-attribute embedding according to:
sloc=f({ρiloc·siloc}i=1Natt).

### Claim 19 (depends on 18)

The method of claim 18 further comprising forming a final cross-modality cross-level embedding according to:
s=f({sloc,sglo})
where the final embedding s is used to estimate an attribute matching result ŷ.

### Claim 20

(canceled)

### Claim 21

One or more non-transitory computer readable media storing computer readable instructions which, when executed by a processor of a wireless communication device, cause the device to perform:
receiving a set of training data comprising text attribute labelled images, wherein each image has more than one text attribute label;
receiving a first vector space comprising a mapping of words, the mapping defining relationships between words;
generating a visual feature vector space by grouping images of the set of training data having similar attribute labels;
mapping each attribute label within the training data set on to the first vector space to form a second vector space;
fusing the visual feature vector space and the second vector space to form a third vector space; and
generating a similarity matching model from the third vector space.

### Claim 22

(canceled)

### Claim 23

(canceled)

### Claim 24 (depends on 1)

Use of the similarity matching model generated according to claim 1, to identify unlabelled images from a text query.
