Hash coding image matching method and system based on graph convolution

Through a hash-encoded image matching method based on graph convolution, the hash label generation network and style discriminator are used to solve the mismatching and adaptability problems in medical image matching and improve the approximate class matching of pancreatic ductal adenocarcinoma pathology images. accuracy, achieving more accurate image matching.

CN118097193BActive Publication Date: 2024-10-11SUZHOU UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410487747.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-10-11
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve accurate image matching in medical images, especially in pathological images of pancreatic ductal adenocarcinoma, where there is a problem of mismatching, and it is difficult for the model to adapt to unknown scenes that are not covered in the training process.

Method used

A hash coding image matching method based on graph convolution is adopted, including building a hash label generation network, enhanced feature map convolution hash coding network and style discriminator, and generating hash coding and style features through unsupervised training and feature extraction. , for approximate class image matching.

Benefits of technology

It improves the accuracy of approximate class matching of pathological images, ensures that approximate class images of different staining styles are matched first without affecting the matching accuracy, and overcomes the shortcomings of existing methods in poor matching of pathological images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097193B_ABST
    Figure CN118097193B_ABST
Patent Text Reader

Abstract

The present invention discloses a hash coding image matching method and system based on graph convolution, which relates to the field of image processing technology, including: obtaining the original training set; constructing a hash tag generation network, using unsupervised training to convert the original multi-classification labels into orthogonal hash class center labels; constructing an enhanced feature graph convolution hash coding network; using the training set to train the enhanced feature graph convolution hash coding network to obtain the hash code of each image; constructing a style discriminator to correctly discriminate the style of the input image; combining the hash coding and style discrimination results to sequentially pair the images in the data set to complete the task of matching similar images. The hash coding image matching method based on graph convolution provided by the present invention proposes an enhanced feature graph convolution hash coding image matching method, which can further improve the accuracy of similar class matching of pathological images compared with the existing image matching methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a hash coding image matching method and system based on graph convolution. Background Art

[0002] Pancreatic cancer is a highly malignant digestive tract tumor, the main type of which is ductal adenocarcinoma. This type of cancer has an insidious onset and the initial symptoms are not obvious, so diagnosis and treatment are very difficult. At present, full-field slice image technology has realized the digitization of pathological slice images, enabling pathologists to better analyze the patient's tissue lesions under high-resolution images, but this analysis process requires doctors to have extremely high professional qualities. By automatically matching similar images in pancreatic ductal adenocarcinoma pathological images through algorithms, doctors can be assisted in making more accurate diagnoses of patients' conditions, which is of great practical significance for improving the quality of medical treatment for patients in areas with backward medical levels.

[0003] In recent years, hash coding-based image matching deep learning models have proven to be able to achieve good performance in solving natural image problems. However, medical images are more complex than natural images, and the amount of data is small, and the distribution of data in each category is extremely unbalanced. It is difficult to achieve accurate matching. We need to find better methods to adapt the model to unknown scenarios that are not covered during training. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is to solve the problem that the existing technology can only classify complex medical images but cannot effectively match images, and to overcome the technical defect of easy mismatch by using the prior knowledge of the relationship between various tissues in the medical image.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a hash coding image matching method based on graph convolution, comprising: obtaining an original training set, wherein the original training set contains images of multiple tissue components; constructing a hash label generation network, using unsupervised training to convert the original multi-classification labels into orthogonal hash class center labels; constructing an enhanced feature graph convolution hash coding network, wherein the enhanced feature graph convolution hash coding network includes an encoder, a channel-related graph convolution module, a variational autoencoder and a multi-layer perceptron; using the training set to train the enhanced feature graph convolution hash coding network to obtain a hash code for each image; constructing a style discriminator, using the images in the training set to train it, and correctly discriminate the style of the input image; combining the hash coding and style discrimination results to sequentially pair the images in the data set to complete the approximate image matching task.

[0007] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, wherein: the construction of the hash tag generation network includes using a hash orthogonal loss function And the symbol loss function The generated hash class center label is constrained, and the hash orthogonal loss function And the symbol loss function It is expressed as,

[0008] ;

[0009] in, represents the hash tag matrix generated by the hash tag generation network, , Represents the hash tag matrix The transpose of , represents the identity matrix, Total number of categories, Indicates the encoding length, Represents a symbolic function.

[0010] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, the channel association graph convolution module includes calculating and generating an adjacency matrix using the multi-classification label information of the data set, and the element of the i-th row and j-th column in the adjacency matrix is the frequency of the jth target appearing when the ith target appears, expressed as,

[0011] ;

[0012] in, Indicates the number of images containing the i-th category of targets in the dataset, represents the training set, Represents an indicator function, which is 1 if the condition in the brackets is met, otherwise it is 0.

[0013] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, the channel association graph convolution module further includes encoding and compressing the previously generated hash class center labels through a parameter-learnable weight matrix, performing matrix multiplication of the compressed short code with the adjacency matrix, and then performing matrix operation with a parameter-learnable weight matrix again to obtain a priori features;

[0014] Creating a channel correlation matrix with learnable parameters , the correlation matrix Size ,in, To reduce the number of channels of the deepest feature map extracted by the encoder, the deep feature map extracted by the pre-trained encoder is deformed according to the channel dimension to Then multiply it with the channel correlation matrix to get the channel correlation feature, where is the height of the deepest feature map, is the width of the deepest feature map;

[0015] The channel-related features and prior features are added and sent to the multi-layer perceptron to calculate the final graph features.

[0016] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, wherein: the obtaining of the hash code of each image includes using the total loss function to be expressed as:

[0017] ;

[0018] in, Represents the generated hash code, represents the hash code for enhanced feature generation, represents the hash class center label of the class to which the input image belongs, represents the class center label of the nth class among all hash class center labels, represents the cosine similarity, represents a hyperparameter.

[0019] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, wherein: the construction of the style discriminator includes extracting the deepest feature map using a pre-trained encoder, calculating the mean vector through a convolution layer, and then calculating the compressed mean vector through a multi-layer perceptron;

[0020] Use the pre-trained encoder to extract the deepest feature map, calculate the variance vector through a convolutional layer, and then calculate the compressed variance vector through a multi-layer perceptron;

[0021] The compressed mean vector and the compressed variance vector are concatenated along the channel dimension and sent to a multi-layer perceptron to output the prediction result. The prediction result uses the binary cross entropy loss function. And labels are constrained, expressed as;

[0022] ;

[0023] Where B represents the input batch size, represents the true label of the b-th image, represents the predicted probability of the bth image;

[0024] The style discriminator includes a mean vector branch and a variance vector branch, each branch includes a convolution layer and a fully connected layer with the same operation but different initialization parameters; the convolution layer uses a convolution operation with a convolution kernel size of 3, a step size of 1, and a padding of 1, batch normalization, and ReLU operations; the fully connected layer compresses the vector length to 1 / 4 of the input; the final multi-layer perceptron output channel number is 2, and a style discrimination prediction probability vector is obtained.

[0025] As a preferred solution of the hash coding image matching method based on graph convolution described in the present invention, wherein: the completion of the approximate image matching task includes calculating the image similarity using the comprehensive similarity, expressed as,

[0026] ;

[0027] in, represents the cosine similarity of the hash codes of the u-th and v-th images, represents the inner product, || represents the modulus, Represent the feature hash codes of the u-th and v-th images respectively, Represents the style weighting coefficient of the u-th and v-th images Respectively represent the style discrimination results of the u-th and v-th images;

[0028] After calculating the weighted similarity between the input image and all other images, the image with the highest weighted similarity is selected as the matching image of the input image.

[0029] Another object of the present invention is to provide a hash coding image matching system based on graph convolution, which can generate feature hash codes for input images through graph convolutional neural networks, and use feature hash codes to perform approximate class matching on images in a data set, thereby solving the defect that existing methods can only perform classification tasks or approximate class matching tasks on pathological images with poor results.

[0030] To solve the above technical problems, the present invention provides the following technical solutions: a hash coding image matching system based on graph convolution, comprising: a training set acquisition module, a hash label generation network construction module, an enhanced feature graph convolution hash coding network construction module, a style discriminator and a training module; the training set acquisition module is used to acquire the original training set, and the original training set contains multiple multi-tissue component images; the hash label generation network construction module is used to construct a hash label generation network, and the hash label generation network uses the original multi-classification labels to perform unsupervised hash class center label generation; the enhanced feature graph convolution hash coding network construction module is used to construct an enhanced feature graph convolution hash coding network, and the enhanced feature graph convolution hash coding network includes an encoder, a channel association graph convolution module, a variational autoencoder module and a multi-layer perceptron; the style discriminator is used to discriminate the style features of the input image to assist image matching; the training module is used to train the enhanced feature graph convolution hash coding network through the training set and update the parameters of the enhanced feature graph convolution hash coding network to obtain the trained enhanced feature graph convolution hash coding network.

[0031] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the hash coding image matching method based on graph convolution are implemented.

[0032] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the hash coding image matching method based on graph convolution as described above.

[0033] Beneficial effects of the present invention: The graph convolution-based hash coding image matching method provided by the present invention proposes an associated feature graph convolution hash coding network and designs a corresponding loss function, so that the network can perform feature hash coding prediction on the input image, thereby achieving the effect of using feature hash coding to perform approximate image matching on the input image; the present invention proposes a style discriminator for auxiliary matching, through which the staining style of the pathological image can be identified, and combined with the associated feature graph convolution hash coding network, it can be ensured that approximate images with different staining styles are matched preferentially without affecting the approximate class matching; the enhanced feature graph convolution hash coding image matching method proposed by the present invention (including two parts, the associated feature graph convolution hash coding network and the style discriminator) can further improve the accuracy of approximate class matching of pathological images compared with the existing image matching method. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0035] Figure 1 An overall flow chart of a hash coding image matching method based on graph convolution provided for one embodiment of the present invention.

[0036] Figure 2 A schematic diagram of a hash tag generation network for a hash coding image matching method based on graph convolution provided by an embodiment of the present invention.

[0037] Figure 3 A schematic diagram of a channel-associated graph convolution module of a hash coding image matching method based on graph convolution provided for an embodiment of the present invention.

[0038] Figure 4 A schematic diagram of a style discriminator of a hash coding image matching method based on graph convolution provided by an embodiment of the present invention.

[0039] Figure 5 An experimental matching comparison diagram of a hash coding image matching method based on graph convolution provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0041] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0042] Example 1

[0043] Reference Figure 1-Figure 4 , as an embodiment of the present invention, provides a hash coding image matching method based on graph convolution, comprising:

[0044] S1. Obtaining an original training set, wherein the original training set includes a plurality of multi-tissue component images;

[0045] S2. Construct a hash tag generation network and train it in an unsupervised way to convert the original multi-classification labels into orthogonal hash class center labels.

[0046] For more information, see Figure 2 As shown, the hash tag generation network input is a multi-classification label of length n, in the form of (1):

[0047] (1);

[0048] in, Represent tumor, blood vessel, nerve, pancreatic islet and duct respectively. If the input image contains the corresponding category, the corresponding category position is 1, otherwise it is 0. Pass it through the multi-layer perceptron to obtain a length of The loss function used in the training process is:

[0049] (2);

[0050] (3);

[0051] in, represents the hash tag matrix generated by the hash tag generation network, Represents the hash tag matrix The transpose of represents the identity matrix, represents the total number of categories, Indicates the encoding length, Represents a symbolic function.

[0052] S3, constructing an enhanced feature graph convolution hash coding network, wherein the enhanced feature graph convolution hash coding network includes an encoder, a channel association graph convolution module, a variational autoencoder and a multi-layer perceptron;

[0053] The encoder uses the encoder part of the pre-trained U-Net, freezes the encoder parameters during training, and only updates the channel-related graph convolution module, variational autoencoder, and multi-layer perceptron parameters.

[0054] For details about the channel-related graph convolution module, see Figure 3 As shown in Figure 1, the input is divided into a priori information integration part and a feature input part. In the priori information integration part, we first establish an adjacency matrix It is used to represent the correlation between multiple target categories. The element in the i-th row and j-th column of the adjacency matrix is is the frequency of occurrence of the jth type target when the ith type target appears, expressed as formula (5). It represents the number of images containing the i-th type of target in the data set, and the calculation formula is formula (4), where represents the training set. 1 is an indicator function, which is 1 when the bracket condition is met, otherwise it is 0. The numerator of formula (5) represents the number of images that also contain the jth class among all images that contain the ith class. All elements on the diagonal of the adjacency matrix (i.e., when i=j) are set to 0.

[0055] (4);

[0056] (5);

[0057] The feature input part is the deep feature map extracted by the encoder , h, w, c are the length, width, and number of channels of the deep feature map respectively. In order to make full use of the correlation information between channels, a parameter-learnable correlation matrix is ​​set , c is the number of input deep feature channels. Straighten the channels into c long vectors and stack them to form a feature matrix The feature matrix and the correlation matrix are multiplied, and then a global average pooling is performed to obtain the channel correlation features. The channel correlation features are added to the previous prior knowledge vector, and then passed through two fully connected layers. Each fully connected layer uses a combination of a full connection operation and a ReLU activation operation, and finally outputs a 512-length correlation graph convolution feature vector.

[0058] S4. Use the training set to train the enhanced feature map convolution hash coding network to obtain the hash code of each image. The total loss function used is:

[0059] (6);

[0060] (7);

[0061] (8);

[0062] (9);

[0063] in, Represents the generated hash code, represents the hash code for enhanced feature generation, represents the hash class center label of the class to which the input image belongs, represents the class center label of the nth class among all hash class center labels, represents the cosine similarity, represents a hyperparameter.

[0064] S5. Build a style discriminator and train it using the images in the training set so that the style discriminator can correctly discriminate the style of the input image;

[0065] For details, see Figure 4 As shown. The deepest feature map of the encoder is sent to two convolutional layers with the same structure but different initialization to extract the mean and variance attributes of the deep features respectively. The convolutional layer consists of two convolution operations, each of which includes 3×3 convolution, batch normalization and ReLU activation. The output of each convolution layer does not change the image size. The output channel of the first convolution layer is 1 / 8 of the input, and the output channel of the second convolution layer is 1 / 16 of the input. The mean and variance of the convolution output are calculated according to the channel to obtain the mean and variance vectors. The mean and variance vectors are compressed using two fully connected layers with the same structure. After being compressed to 1 / 4 of the length of the mean variance vector, they are spliced ​​along the channel and sent to the prediction fully connected layer to obtain the prediction result. The prediction result and the style unique hot label calculate the binary cross entropy loss function, as shown in formula (10).

[0066] (10);

[0067] Where B represents the input batch size, represents the true label of the b-th image, represents the predicted probability of the b-th image.

[0068] S6, combining hash coding and style discrimination results to sequentially pair the images in the original training set to complete the approximate image matching task;

[0069] The image similarity is calculated by using the comprehensive similarity:

[0070] (11);

[0071] (12);

[0072] (13);

[0073] in, represents the cosine similarity of the hash codes of the u-th and v-th images, Represent the feature hash codes of the u-th and v-th images respectively. Represents the style weighting coefficient of the u-th and v-th images Respectively represent the style discrimination results of the u-th and v-th images. Indicates the comprehensive similarity of the hash codes of the final u-th and v-th images.

[0074] Example 2

[0075] As one embodiment of the present invention, a hash coding image matching system based on graph convolution is provided, comprising:

[0076] Training set acquisition module, hash tag generation network building module, enhanced feature map convolutional hash coding network building module, style discriminator and training module.

[0077] The training set acquisition module is used to acquire an original training set, wherein the original training set includes a plurality of multi-tissue component images.

[0078] The hash tag generation network construction module is used to construct a hash tag generation network, which uses the original multi-classification labels to perform unsupervised hash class center label generation.

[0079] The enhanced feature graph convolutional hash coding network construction module is used to construct an enhanced feature graph convolutional hash coding network, and the enhanced feature graph convolutional hash coding network includes an encoder, a channel association graph convolution module, a variational autoencoder module and a multi-layer perceptron.

[0080] The style discriminator is used to discriminate the style features of the input image and assist in image matching.

[0081] The training module is used to train the enhanced feature graph convolutional hash coding network through a training set and update the parameters of the enhanced feature graph convolutional hash coding network to obtain the trained enhanced feature graph convolutional hash coding network.

[0082] Example 3

[0083] An embodiment of the present invention is different from the first two embodiments in that:

[0084] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0085] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0086] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0087] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0088] Example 4

[0089] Reference Figure 1 and Figure 5 , which is an embodiment of the present invention, provides a hash coding image matching method based on graph convolution. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0090] Reference Figure 1The figure shows the overall flow chart of the present invention. The data used in the present invention are collected from patients with pancreatic ductal adenocarcinoma. A total of 72 whole-slice pathology staining images from different patients are included, and all images are stained with HE. These whole-slice pathology images are annotated by an experienced pathology expert doctor, and include areas of five types of tissue components in the image, including tumors, nerves, blood vessels, pancreatic islets and ducts. The whole-slice pathology images are processed using the following steps: 1. After downsampling the whole-slice pathology image by 16 times, a scaled image with an average size of approximately 12000×9400 is obtained; 2. Using a 512×512 sliding window, the downsampled whole-slice pathology image is cropped into non-overlapping local slice images; 3. In the cropped image, a total of 3378 local slice images containing the segmentation target are used as the total data set used in this chapter.

[0091] The present invention uses the pytorch deep learning framework, torch version 1.13.0. All training and verification processes are completed on an NVIDIA GeForce RTX 3090 graphics card equipped with 24G video memory. During the training process, the neural network uses a small batch method to read data, and the batch size is set to 2. The optimizer uses the stochastic gradient descent (SGD) method, the initial learning rate is set to 0.01, the optimizer momentum is set to 0.9, and the optimizer regularization coefficient is set to 0.0001. The learning rate adjustment strategy uses the Poly method.

[0092] The experimental results of the present invention are as follows: In order to quantitatively evaluate the performance of the method proposed by the present invention, the approximate class matching accuracy is selected as the evaluation index. In this part, it is defined that if the categories contained in the two images are completely consistent or the categories contained in the two images differ by only one class, then the two images belong to similar classes. At the same time, the approximate class matching accuracy is defined as:

[0093] ;

[0094] The present invention compares the segmentation results with the unique hash coding matching network, as shown in Table 1, which compares the approximate class matching results of the present invention with others' methods.

[0095] Table 1 Comparison of experimental results

[0096]

[0097] like Figure 5 As shown in the figure, the approximate class matching results of different methods are shown, where the first column is the original pathological slice image, the second column is the corresponding gold standard, the third column is the matched target image, and the fourth column is the gold standard of the matched image.

[0098] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. Hash coding image matching method based on graph convolution, It is characterized in that include: Acquire an original training set, wherein the original training set contains multiple tissue component images; Construct a hash tag generation network and use unsupervised training to convert the original multi-classification labels into orthogonal hash class center labels; Constructing an enhanced feature graph convolution hash coding network, wherein the enhanced feature graph convolution hash coding network includes an encoder, a channel association graph convolution module, a variational autoencoder and a multi-layer perceptron; Use the training set to train the enhanced feature map convolutional hash coding network to obtain the hash code of each image; Build a style discriminator and train it using the images in the training set to correctly discriminate the style of the input image; The combined hash coding and style discrimination results are used to pair images in the dataset in order to complete the task of matching similar images. The input of the channel association graph convolution module is divided into a priori information integration part and a feature input part. In the priori information integration part, an adjacency matrix M is first established. ij It is used to represent the correlation between multiple target categories. The element M in the i-th row and j-th column of the adjacency matrix ij is the frequency of the jth target appearing when the ith target appears, expressed as, Where X represents the training set, 1(·) is an indicator function, which is 1 when the bracket condition is met and 0 otherwise, and N i It indicates the number of images that also contain the jth class among all images that contain the ith class. All elements on the diagonal of the adjacency matrix are set to 0. The feature input part is the deep feature map f extracted by the encoder. h, w, c are the length, width, and number of channels of the deep feature map respectively; The hash center label is first compressed by encoding the previously generated hash center label through a parameter-learnable weight matrix. After the compressed short code is multiplied by the adjacency matrix, it is again matrix-operated with a parameter-learnable weight matrix to obtain the prior feature. Create a channel correlation matrix M with learnable parameters corr , the correlation matrix M corr The size is C×C, where C is the number of channels of the deepest feature map extracted by the encoder. The deep feature map extracted by the pre-trained encoder is deformed into C×H×W according to the channel dimension and then multiplied with the channel correlation matrix to obtain the channel correlation feature, where H is the height of the deepest feature map and W is the width of the deepest feature map. The channel-related features and prior features are added and sent to the multi-layer perceptron to calculate the final graph features.

2. The hash coding image matching method based on graph convolution as claimed in claim 1, Features: The construction of the hash tag generation network includes using the hash orthogonal loss function L hash_otho And the symbol loss function L sign The generated hash class center label is constrained, and the hash orthogonal loss function L hash_otho And the symbol loss function L sign It is expressed as, Among them, H represents the hash tag matrix generated by the hash tag generation network, H T represents the transpose of the hash tag matrix H, I represents the identity matrix, represents the total number of categories, L represents the encoding length, and sign represents the sign function.

3. The hash coding image matching method based on graph convolution as claimed in claim 2, Features: The method of obtaining the hash code of each image includes using the total loss function expressed as: L hash_total =L MSE +L con +L con_VAE L MSE =||vp-v' p || 2 Among them, v p Represents the generated hash code, v' p represents the hash code for enhanced feature generation, h + Indicates the hash class center label of the class to which the input image belongs, h n represents the class center label of the nth class among all hash class center labels, sim(·) represents the cosine similarity, and τ represents the hyperparameter.

4. The hash coding image matching method based on graph convolution as claimed in claim 3, Features: The construction of the style discriminator includes extracting the deepest feature map using a pre-trained encoder, calculating the mean vector through a convolutional layer, and then calculating the compressed mean vector through a multi-layer perceptron; Use the pre-trained encoder to extract the deepest feature map, calculate the variance vector through a convolutional layer, and then calculate the compressed variance vector through a multi-layer perceptron; The compressed mean vector and the compressed variance vector are concatenated along the channel dimension and sent to a multi-layer perceptron to output the prediction result. The prediction result uses the binary cross entropy loss function L BCE And labels are constrained, expressed as; Among them, B represents the input batch size, y b represents the true label of the b-th image, p b represents the predicted probability of the bth image; The style discriminator includes a mean vector branch and a variance vector branch, each branch includes a convolution layer and a fully connected layer with the same operation but different initialization parameters; the convolution layer uses a convolution operation with a convolution kernel size of 3, a step size of 1, and a padding of 1, batch normalization, and ReLU operations; the fully connected layer compresses the vector length to 1 / 4 of the input; the final multi-layer perceptron output channel number is 2, and a style discrimination prediction probability vector is obtained.

5. The hash coding image matching method based on graph convolution as claimed in claim 4, Features: The task of completing the approximate image matching includes calculating the image similarity using a comprehensive similarity, expressed as: YES uv =yes uv +σ uv Among them, sim uv represents the cosine similarity of the hash codes of the u-th and v-th images, · represents the inner product, || represents the modulus, and h u ,h v Respectively represent the feature hash codes of the u-th and v-th images, σ uv Represents the style weighting coefficient S of the u-th and v-th images u ,S v Respectively represent the style discrimination results of the u-th and v-th images; After calculating the weighted similarity between the input image and all other images, the image with the highest weighted similarity is selected as the matching image of the input image.

6. A system using the hash coding image matching method based on graph convolution as claimed in any one of claims 1 to 5, It is characterized in that include: Training set acquisition module, hash tag generation network building module, enhanced feature map convolutional hash coding network building module, style discriminator and training module; The training set acquisition module is used to acquire an original training set, wherein the original training set includes a plurality of multi-tissue component images; The hash tag generation network construction module is used to construct a hash tag generation network, and the hash tag generation network uses the original multi-classification labels to perform unsupervised hash class center label generation; The enhanced feature graph convolution hash coding network construction module is used to construct an enhanced feature graph convolution hash coding network, and the enhanced feature graph convolution hash coding network includes an encoder, a channel association graph convolution module, a variational autoencoder module and a multi-layer perceptron; The style discriminator is used to discriminate the style features of the input image and assist in image matching; The training module is used to train the enhanced feature graph convolutional hash coding network through a training set and update the parameters of the enhanced feature graph convolutional hash coding network to obtain the enhanced feature graph convolutional hash coding network after training.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the graph convolution-based hash coding image matching method described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the graph convolution-based hash coding image matching method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Image hash generation method and device based on graph neural network

    CN110555121A

  • Pathological image retrieval method and device

    CN114168781A

  • Medical diagnosis method and device based on cross-modal semantic hash

    CN115938563A

  • Brain network classification method based on deep hash mutual learning

    CN116543215A