IP Library Granted Patent US 12,322,198
Granted Patent B2
US 12,322,198 · App. 17/635,108 · Granted Jun 3, 2025

Text based image search

Inventors: Shaogang Gong (Pinner, GB); Qi Dong (London, GB); Xiatian Zhu (Cambridge, GB)
Assignee: VERITONE, INC.
G06V30/413G06V10/454G06V10/76
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,322,198
App. No.
17/635,108
Granted
Jun 3, 2025
Kind
B2
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 (226)

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;

generating a similarity matching model from the third vector space; and

obtaining a global textual embedding, z glo , 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 w 1 and w 2 are learnable parameters and Tan h is a non-linear activation function of a neuron in a Convolutional Neural Network, CNN,

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, z i loc , i∈{1, . . . , N att }.

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

3. The method of claim 2 , wherein the mean square error loss function is:

_“mse”=1/N_“batch”Σ_( i =1){circumflex over ( )}(N_batch) ( y _ i −y⊥{circumflex over ( )}_ i _{circumflex over ( )}2

where y i and y⊥{circumflex over ( )}_i denote the ground-truth and predicted similarity of the i-th training pair, respectively and a mini-batch size is specified by N batch .

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

5. 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.

6. 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 p ij is a probability estimate of an i-th training sample on a j-th ground truth attribute.

7. The method of claim 1 , 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 p ij is a probability estimate of an i-th training sample on a j-th ground truth attribute.

8. 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:

( x i loc , i∈{ 1, . . . , N att })

based on a global part (x glo ) in a ResNet-50 CNN architecture.

9. 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.

10. The method of claim 9 , wherein the element-wise multiplication is a Hadamard Product in CNN learning optimization.

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

12. The method of claim 10 , further comprising cross-modality global-level embedding s glo according to:

s glo =x glo ∘z glo

wherein ∘ specifies the Hadamard Product.

13. The method according to claim 1 , further comprising unlabelled images from a text query using the similarity matching model.

14. 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

estimating a per-attribute quality, P i loc , using minimum prediction scores on image and text as:

ρ i loc =min( p i vis ,p i tex ), i∈{ 1, . . . , N att }

where p i vis and P i tex denote ground-truth class posterior probability estimated by a corresponding classifier,

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:

s i loc =x i loc ∘z i loc , i∈{ 1, . . . , N att }

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.

15. The method of claim 14 , further comprising adaptively cross-attribute embedding according to:

s loc =f ({p i loc ·s i loc } i=1 N att ).

16. The method of claim 15 , further comprising forming a final cross-modality cross-level embedding according to:

s=f ({ s loc , s glo })

where the final embedding s is used to estimate an attribute matching result y.

17. 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; and

obtaining a global textual embedding, z glo , 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 w 1 and w 2 are learnable parameters and Tan h is a non-linear activation function of a neuron in a Convolutional Neural Network, CNN,

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, z i loc , i∈{1, . . . , N att }.

Assignments (4)
RELEASE OF SECURITY INTEREST Recorded Nov 19, 2025
From: WILMINGTON SAVINGS FUND SOCIETY, FSB, AS COLLATERAL AGENT
To: VERITONE, INC.
Reel/Frame 073634/0333 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 23, 2025
From: ZHU, XIATIAN; DONG, QI; GONG, SHAOGANG
To: VISION SEMANTICS LIMITED
Reel/Frame 069976/0523 →
SECURITY INTEREST Recorded Dec 13, 2023
From: VERITONE, INC.
To: WILMINGTON SAVINGS FUND SOCIETY, FSB, AS COLLATERAL AGENT
Reel/Frame 066140/0513 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 6, 2022
From: VISION SEMANTICS LIMITED
To: VERITONE, INC.
Reel/Frame 061337/0051 →
Priority Claims (1)
GB 1911724 · Aug 15, 2019 · national
Continuity (1)
Related Publication 20220343626A1 · Oct 27, 2022
References Cited (17)
US 20170206465A1 · Jin · 2017 [cited by examiner]
US 20200105287A1 · Chang · 2020 [cited by examiner]
US 20200302016A1 · Aggarwal · 2020 [cited by examiner]
US 20210034913A1 · Pan · 2021 [cited by examiner]
CN 109002834A · 2018 [cited by applicant]
WO 2018013982A1 · 2018 [cited by applicant]
Fu, Yanwei, et al. “Transductive multi-view zero-shot learning.” IEEE transactions on pattern analysis and machine intelligence 37.11 (2015): 2332-2345. (Year: 2015). [cited by examiner]
Li, Kai, et al. “Linear subspace ranking hashing for cross-modal retrieval.” IEEE transactions on pattern analysis and machine intelligence 39.9 (2016): 1825-1838. (Year: 2016). [cited by examiner]
Zhu, Yabin, et al. “FANet: Quality-aware feature aggregation network for robust RGB-T tracking.” arXiv preprint arXiv:1811.09855 (2018). (Year: 2018). [cited by examiner]
Dong, Qi, Shaogang Gong, and Xiatian Zhu. “Person search by text attribute query as zero-shot learning.” Proceedings of the IEEE/CVF international conference on computer vision. 2019. (Year: 2019). [cited by examiner]
Nov. 5, 2020—(WO) International Search Report and Written Opinion—App PCT/GB2020/051872. [cited by applicant]
Jan. 20, 2020—(GB) Search Report—APP 1900667.5. [cited by applicant]
Ma Lin et al: “Bidirectional image-sentence retrieval by local and global deep matching”, Neurocomputing, vol. 345, Feb. 4, 2019 (Feb. 4, 2019), pp. 36-44, XP085677053. [cited by applicant]
Zhedong Zheng et al: “Dual-Path Convolutional Image-Text Embedding”, arxiv.org, Cornell University Library, 201 OLIN Library Cornell University Ithaca, NYy 14853, Nov. 15, 2017 (Nov. 15, 2017), XP081288657. [cited by applicant]
Chen Tianlang et al: “Improving Text-Based Person Search by Spatial Matching and Adaptive Threshold”, 2018 Eee Winter Conference on Applications of Computer Vision (WACV), IEEE, Mar. 12, 2018 (Mar. 12, 2018), pp. 1879-1… [cited by applicant]
Venugopalan Subhashini et al: “Captioning Images with Diverse Objects”, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE Computer Society, US, Jul. 21, 2017 (Jul. 21, 2017), pp. 1170-1178, XP… [cited by applicant]
Textminer, “Training Word2Vec Model on English Wikipedia by Gensim”, Mar. 11, 2015, Retrieved from Internet. [cited by applicant]