# US 2023/0281956 A1 · Method for generating objective function, apparatus, electronic device and computer readable medium

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

- Number: US 2023/0281956 A1
- Document ID: US20230281956A1
- Status: Published application
- Kind: A1
- Application number: 18/005,081
- Filed: 2021-05-26
- Published: 2023-09-07
- Earliest claimed: 2020-07-16
- Applicants: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Yi HE; Changhu WANG
- Web page: https://patentgrep.com/patent/US20230281956A1

## CPC

- G06V 10/72: Data preparation, e.g. statistical preprocessing of image or video features
- G06F 18/15: Statistical pre-processing, e.g. techniques for normalisation or restoring missing data
- G06F 18/21: Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F 18/213: Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 20/00: Machine learning
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 7/10: Segmentation; Edge detection (motion-based segmentation G06T7/215)
- G06T 7/13: Edge detection
- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- G06V 10/32: Normalisation of the pattern dimensions
- G06V 10/40: Extraction of image or video features
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/74: Image or video pattern matching; Proximity measures in feature spaces
- G06V 10/752: {Contour matching}
- G06V 10/757: {Matching configurations of points or features}
- G06V 10/758: {Involving statistics of pixels or of feature values, e.g. histogram matching}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/77: Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 30/18: Extraction of features or characteristics of the image
- G06V 30/1801: {Detecting partial patterns, e.g. edges or contours, or configurations, e.g. loops, corners, strokes or intersections (extracting features by contour coding G06V30/182)}
- G06V 30/182: by coding the contour of the pattern
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06V 40/168: {Feature extraction; Face representation}
- G06V 40/171: {Local features and components; Facial parts (eye characteristics G06V40/18); Occluding parts, e.g. glasses; Geometrical relationships}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/2255: {Hash tables}
- G06F 16/325: {Hash tables}
- G06F 16/9014: {hash tables}
- G06F 2101/14: Probability distribution functions
- G06F 2218/08: Feature extraction
- G06F 2218/12: Classification; Matching
- G06T 2207/20081: Training; Learning
- H04L 7/0087: {Preprocessing of received signal for synchronisation, e.g. by code conversion, pulse generation or edge detection}
- H04N 21/23418: {involving operations for analysing video streams, e.g. detecting features or characteristics (television picture signal circuitry for scene change detection H04N5/147; filtering for image enhancement G06T5/00; methods or arrangements for recognising scenes G06V20/00; arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for generating a target function is provided. The method includes: performing normalization processing on a vector corresponding to each pixel in a target feature map set to generate a target vector, so as to obtain a target vector set; generating hash coding corresponding to each vector in the target vector set, to obtain a hash coding set; determining a prior probability of each hash coding in the hash coding set; and generating a target function based on an entropy of the prior probability.

## Claims

### Claim 1

A method for generating a target function, comprising:
performing normalization processing on a vector corresponding to each pixel in a target feature map set to generate a target vector, so as to obtain a target vector set;
generating hash coding corresponding to each vector in the target vector set, to obtain a hash coding set;
determining a prior probability of each hash coding in the hash coding set; and
generating a target function based on an entropy of the prior probability.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a prior probability of each hash coding in the hash coding set comprises:
adding a first preset multiplexing result and a second preset multiplexing result to obtain an adding result; and
determining an average of a sum of the adding result as the prior probability of each hash coding.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first preset multiplexing result and the second multiplexing result are obtained by:
determining a coded value of each dimension in each hash coding and a vector value corresponding to the coded value;
determining a first difference between one and the coded value of each dimension in each hash coding and a second difference between one and the vector value;
multiplexing the coded value of each dimension in each hash coding by the corresponding vector value, to obtain the first preset multiplexing result; and
multiplexing the first difference by the second difference to obtain the second preset multiplexing result.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the target function is obtained by: determining a logarithm value of the prior probability of each hash coding;
multiplexing the prior probability of each hash coding by the logarithm value of the prior probability of the hash coding, to obtain a multiplexing result;
calculating a sum of the multiplexing result; and
determining an inverse number of the sum of the multiplexing result as the target function.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the target feature map set is obtained by extracting features of a target image set over a feature extraction network.

### Claim 6 (depends on 2)

The method according to claim 2, further comprising:
optimizing the feature extraction network based on the target function to obtain a trained feature extraction network.

### Claim 7 (depends on 3)

The method according to claim 3, further comprising:
extracting features of two images based on the trained feature extraction network, to obtain hash coding; and
determining similarity between the two images based on the obtained hash coding.

### Claim 8

An apparatus for training a feature extraction network, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and storing instructions that upon execution by the at least one processor cause the apparatus to:
perform normalization processing on a vector corresponding to each pixel in a target feature map set to generate a target vector, to obtain a target vector set;
generate hash coding corresponding to each vector in the target vector set, to obtain a hash coding set;
determine a prior probability of each hash coding in the hash coding set; and
generate a target function based on an entropy of the prior probability.

### Claim 9

(canceled)

### Claim 10

A computer readable non-transitory storage medium,
bearing computer-readable instructions that upon execution on a computing device cause the computing device at least to:
perform normalization processing on a vector corresponding to each pixel in a target feature map set to generate a target vector, to obtain a target vector set;
generate hash coding corresponding to each vector in the target vector set, to obtain a hash coding set;
determine a prior probability of each hash coding in the hash coding set; and
generate a target function based on an entropy of the prior probability.

### Claim 11 (depends on 8)

The apparatus of claim 8, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
add a first preset multiplexing result and a second preset multiplexing result to obtain an adding result; and
determine an average of a sum of the adding result as the prior probability of each hash coding.

### Claim 12 (depends on 11)

The apparatus of claim 11, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
determine a coded value of each dimension in each hash coding and a vector value corresponding to the coded value;
determine a first difference between one and the coded value of each dimension in each hash coding and a second difference between one and the vector value;
multiplex the coded value of each dimension in each hash coding by the corresponding vector value, to obtain the first preset multiplexing result; and
multiplex the first difference by the second difference to obtain the second preset multiplexing result.

### Claim 13 (depends on 8)

The apparatus of claim 8, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
determine a logarithm value of the prior probability of each hash coding;
multiplex the prior probability of each hash coding by the logarithm value of the prior probability of the hash coding, to obtain a multiplexing result;
calculate a sum of the multiplexing result; and
determine an inverse number of the sum of the multiplexing result as the target function.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the target feature map set is obtained by extracting features of a target image set over a feature extraction network.

### Claim 15 (depends on 11)

The apparatus of claim 11, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
optimize the feature extraction network based on the target function to obtain a trained feature extraction network.

### Claim 16 (depends on 12)

The apparatus of claim 12, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
extract features of two images based on the trained feature extraction network, to obtain hash coding; and
determine similarity between the two images based on the obtained hash coding.
