# US 2025/0148050 A1 · Similarity determining method and device, network training method and device, search method and device, and electronic device and storage medium

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

- Number: US 2025/0148050 A1
- Document ID: US20250148050A1
- Status: Published application
- Kind: A1
- Application number: 19/011,753
- Filed: 2025-01-07
- Published: 2025-05-08
- Earliest claimed: 2019-11-22
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: Boe Technology Group Co., Ltd.
- Inventors: Zhenzhong ZHANG
- Web page: https://patentgrep.com/patent/US20250148050A1

## CPC

- G06F 16/3347: {using vector based model}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 16/56: having vectorial format
- G06F 16/90335: {Query processing}
- G06F 18/213: Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/95: {structured as a network, e.g. client-server architectures}
- G06V 30/274: {Syntactic or semantic context, e.g. balancing}
- G06V 30/40: Document-oriented image-based pattern recognition
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- G16H 30/20: for handling medical images, e.g. DICOM, HL7 or PACS
- G16H 30/40: for processing medical images, e.g. editing
- G06V 10/753: {Transform-based matching, e.g. Hough transform}
- G06V 30/10: Character recognition
- 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
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

A method and device of similarity determination, network training, and search, an electronic device, and a storage medium are provided. The data similarity determination method includes: acquiring first data of a first object; mapping the first sub-data as a first semantic representation in a semantic comparison space, where the semantic comparison space enables a similarity between a semantic representation obtained by mapping data of the first modality to the semantic comparison space and a semantic representation obtained by mapping data of the second modality to the semantic comparison space to be computed; acquiring second data of a second object; mapping the second sub-data as a second semantic representation in the semantic comparison space; and calculating a similarity between the first data and the second data based on at least the first semantic representation and the second semantic representation.

## Claims

### Claim 1

A data similarity determination method, comprising:
acquiring first data of a first object, wherein the first data comprises first sub-data of a first modality or a second modality;
mapping the first sub-data as a first semantic representation in a semantic comparison space, wherein the semantic comparison space enables a similarity between a semantic representation obtained by mapping data of the first modality to the semantic comparison space and a semantic representation obtained by mapping data of the second modality to the semantic comparison space to be computed;
acquiring second data of a second object, wherein the second data comprises second sub-data of the first modality or the second modality;
mapping the second sub-data as a second semantic representation in the semantic comparison space; and
calculating a similarity between the first data and the second data based on at least the first semantic representation and the second semantic representation.

### Claim 2 (depends on 1)

The data similarity determination method according to claim 1, wherein the first modality is a text, and the second modality is an image.

### Claim 3 (depends on 1)

The data similarity determination method according to claim 1, wherein the first data comprises the first sub-data of the first modality and third sub-data of the second modality;
the second data comprises the second sub-data of the first modality and fourth sub-data of the second modality;
the first object comprises a first characteristic, the first sub-data comprises a first sub-semantic describing the first characteristic, and the third sub-data comprises a third sub-semantic describing the first characteristic;
the second object comprises a second characteristic, the second sub-data comprises a second sub-semantic describing the second characteristic, and the fourth sub-data comprises a fourth sub-semantic describing the second characteristic;
the method further comprises:
mapping the third sub-data as a third semantic representation in the semantic comparison space and mapping the fourth sub-data as a fourth semantic representation in the semantic comparison space; and
calculating the similarity between the first data and the second data based on at least the first semantic representation and the second semantic representation, comprises:
acquiring the similarity between the first data and the second data based on the first semantic representation, the second semantic representation, the third semantic representation, and the fourth semantic representation.

### Claim 4 (depends on 3)

The data similarity determination method according to claim 3, wherein acquiring the similarity between the first data and the second data based on the first semantic representation, the second semantic representation, the third semantic representation, and the fourth semantic representation, comprises:
calculating at least one selected from a group comprising a similarity between the first semantic representation and the fourth semantic representation and a similarity between the second semantic representation and the third semantic representation.

### Claim 5 (depends on 4)

The data similarity determination method according to claim 4, wherein acquiring the similarity between the first data and the second data based on the first semantic representation, the second semantic representation, the third semantic representation, and the fourth semantic representation, further comprises:
calculating at least one selected from a group comprising a similarity between the first semantic representation and the second semantic representation and a similarity between the third semantic representation and the fourth semantic representation.

### Claim 6 (depends on 5)

The data similarity determination method according to claim 5, wherein the similarity between the first data and the second data is equal to a sum of the similarity between the first semantic representation and the fourth semantic representation, the similarity between the second semantic representation and the third semantic representation, the similarity between the first semantic representation and the second semantic representation, and the similarity between the third semantic representation and the fourth semantic representation.

### Claim 7 (depends on 6)

The data similarity determination method according to claim 6, wherein the first semantic representation, the second semantic representation, the third semantic representation, and the fourth semantic representation are all expressed as vectors;
a dimension of a vector corresponding to the first semantic representation, a dimension of a vector corresponding to the second semantic representation, a dimension of a vector corresponding to the third semantic representation, and a dimension of a vector corresponding to the fourth semantic representation are equal to each other; and
the similarity f(pi,pj) between the first data and the second data is obtained by a following expression:
f
⁡
(
p
i
,
p
j
)
=
f
⁡
(
(
t
i
,
g
i
)
,
(
t
j
,
g
j
)
)
=
sim
1
(
t
i
,
t
j
)
+
sim
2
(
t
i
,
g
j
)
+
sim
2
(
g
i
,
t
j
)
+
sim
1
(
g
i
,
g
j
)
,
rt
i
=
NN
⁢
1
⁢
(
t
i
)
,
rg
i
=
NN
⁢
2
⁢
(
g
i
)
,
rt
j
=
NN
⁢
1
⁢
(
t
j
)
,
rg
j
=
NN
⁢
2
⁢
(
g
j
)
,
sim
1
(
t
i
,
t
j
)
=
cos
⁡
(
NN
⁢
1
⁢
(
t
i
)
,
NN
⁢
1
⁢
(
t
j
)
)
=
cos
⁡
(
rt
i
,
rt
j
)
=
rt
i
T
·
rt
j
❘
"\[LeftBracketingBar]"
rt
i
❘
"\[RightBracketingBar]"
⁢
❘
"\[LeftBracketingBar]"
rt
j
❘
"\[RightBracketingBar]"
,
sim
1
(
g
i
,
g
j
)
=
cos
⁡
(
NN
⁢
2
⁢
(
g
i
)
,
NN
⁢
2
⁢
(
g
j
)
)
=
cos
⁡
(
rg
i
,
rg
j
)
=
rg
i
T
·
rg
j
❘
"\[LeftBracketingBar]"
rg
i
❘
"\[RightBracketingBar]"
⁢
❘
"\[LeftBracketingBar]"
rg
j
❘
"\[RightBracketingBar]"
,
sim
2
(
t
i
,
g
j
)
=
cos
⁡
(
NN
⁢
1
⁢
(
t
i
)
,
NN
⁢
2
⁢
(
g
j
)
)
=
cos
⁡
(
rt
i
,
rg
j
)
=
rt
i
T
·
rg
j
❘
"\[LeftBracketingBar]"
rt
i
❘
"\[RightBracketingBar]"
⁢
❘
"\[LeftBracketingBar]"
rg
j
❘
"\[RightBracketingBar]"
,
sim
2
(
g
i
,
t
j
)
=
cos
⁡
(
NN
⁢
2
⁢
(
g
i
)
,
NN
⁢
1
⁢
(
t
j
)
)
=
cos
⁡
(
rg
i
,
rt
j
)
=
rg
i
T
·
rt
j
❘
"\[LeftBracketingBar]"
rg
i
❘
"\[RightBracketingBar]"
⁢
❘
"\[LeftBracketingBar]"
rt
j
❘
"\[RightBracketingBar]"
,
where pi is the first data, pj is the second data;
ti is the first sub-data, gi is the third sub-data, tj is the second sub-data, and gj is the fourth sub-data;
sim1(ti, tj) is a similarity between the first sub-data and the second sub-data;
sim1(gi, gj) is a similarity between the third sub-data and the fourth sub-data;
sim2(ti, gj) is a similarity between the first sub-data and the fourth sub-data;
sim2(gi,tj) is a similarity between the second sub-data and the third sub-data;
NN1 refers to mapping a corresponding sub-data by a first neural network, and NN2 refers to mapping a corresponding sub-data by a second neural network; and
rti is the first semantic representation, rgi is the third semantic representation, rtj is the second semantic representation, and rgj is the fourth semantic representation.

### Claim 8 (depends on 3)

The data similarity determination method according to claim 3, wherein the first sub-data is mapped as the first semantic representation and the second sub-data is mapped as the second semantic representation by using a first neural network; and
the third sub-data is mapped as the third semantic representation and the fourth sub-data is mapped as the fourth semantic representation by using a second neural network.

### Claim 9 (depends on 1)

A data similarity determination device, comprising a processor and a memory,
wherein the memory stores computer program instructions which are executed by the processor, and in a case where the computer program instructions are executed by the processor, the processor executes the data similarity determination method according to claim 1.

### Claim 10 (depends on 1)

A non-transitory storage medium, comprising computer program instructions stored on the non-transitory storage medium,
wherein in a case where the computer program instructions are executed by a processor, the processor executes the data similarity determination method according to claim 1.

### Claim 11

A training method of a neural network used for determining a data similarity, comprising:
acquiring first training data of a training object, wherein the first training data comprises first training sub-data of a first modality and second training sub-data of a second modality, the training object comprises a training characteristic, the first training sub-data comprises a first training sub-semantic describing the training characteristic, and the second training sub-data comprises a second training sub-semantic describing the training characteristic;
mapping the first training sub-data as a first training semantic representation in a semantic comparison space through a first neural network, wherein the semantic comparison space enables a similarity between a semantic representation obtained by mapping data of the first modality to the semantic comparison space and a semantic representation obtained by mapping data of the second modality to the semantic comparison space to be computed;
mapping the second training sub-data as a second training semantic representation in the semantic comparison space through a second neural network; and
calculating a similarity between the first training semantic representation and the second training semantic representation, and adjusting parameters of at least one of the first neural network and the second neural network according to the similarity between the first training semantic representation and the second training semantic representation.

### Claim 12 (depends on 11)

The training method according to claim 11, wherein adjusting the parameters of at least one of the first neural network and the second neural network according to the similarity between the first training semantic representation and the second training semantic representation, comprises:
calculating a loss function based on the similarity between the first training semantic representation and the second training semantic representation; and
minimizing the loss function by adjusting the parameters of at least one of the first neural network and the second neural network.

### Claim 13 (depends on 12)

The training method according to claim 12, wherein the loss function/is obtained by a following expression:
l
=
1
2
⁢
∑
i
=
1
M
(
1
-
sim
2
(
trt
i
,
trg
i
)
)
2
=
1
2
⁢
∑
i
=
1
M
(
1
-
cos
⁡
(
NN
⁢
1
⁢
(
trt
i
)
,
NN
⁢
2
⁢
(
trg
i
)
)
)
2
,
where trti is first training sub-data of an i-th training object, and trgi is second training sub-data of the i-th training object;
sim2(trti, trgi) is a similarity between the first training sub-data of the i-th training object and the second training sub-data of the i-th training object;
NN1 refers to mapping a corresponding training sub-data by using the first neural network, and NN2 refers to mapping a corresponding training sub-data by using the second neural network;
NN1(trti) is a first training semantic representation of the i-th training object, and NN2(trgi) is a second training semantic representation of the i-th training object; and
minimizing the loss function by adjusting the parameters of at least one of the first neural network and the second neural network, comprises:
adjusting the parameters of at least one of the first neural network and the second neural network based on a gradient descent method.

### Claim 14 (depends on 11)

The training method according to claim 11, further comprising:
performing data preprocessing on original data before acquiring the first training data of the training object.

### Claim 15 (depends on 11)

The training method according to claim 11, wherein the similarity between the first training semantic representation and the second training semantic representation of the training object is maximized by minimizing the loss function.

### Claim 16 (depends on 11)

A training system of a neural network used for determining a data similarity, comprising: a processor and a memory,
wherein the memory stores computer program instructions which are executed by the processor, and in a case where the computer program instructions are executed by the processor, the processor executes the training method according to claim 11.

### Claim 17 (depends on 1)

A similar object search method, comprising:
acquiring first data of a first object;
acquiring second data of a plurality of second objects;
calculating a similarity between the first object and each second object by using the data similarity determination method according to claim 1 to obtain a plurality of object similarities; and
outputting information of a second object corresponding to an object similarity with a largest value among the plurality of object similarities.

### Claim 18 (depends on 9)

A similar object search device, comprising the data similarity determination device according to claim 9.

### Claim 19

A training method of a neural network used for a patient similarity determination method, comprising:
acquiring medical text data and medical image data of a training patient, wherein both the medical image data of the training patient and the medical text data of the training patient comprise a training sub-semantic describing a training characteristic of the training patient;
mapping the medical text data of the training patient as a first training semantic representation in a semantic comparison space through a first neural network, wherein the semantic comparison space enables a similarity between a semantic representation obtained by mapping data of a medical text to the semantic comparison space and a semantic representation obtained by mapping data of a medical image to the semantic comparison space to be computed;
mapping the medical image data of the training patient as a second training semantic representation in the semantic comparison space through a second neural network; and
calculating a similarity between the first training semantic representation and the second training semantic representation, and adjusting parameters of at least one selected from a group comprising the first neural network and the second neural network according to the similarity between the first training semantic representation and the second training semantic representation.

### Claim 20 (depends on 19)

An electronic device, comprising a processor and a memory,
wherein the memory stores computer program instructions which are executed by the processor, and in a case where the computer program instructions are executed by the processor, the processor executes the training method according to claim 19.
