Intelligent oil field-oriented large-scale image depth large-interval supervised Hash retrieval method and system

By introducing the large margin supervised hashing method and the class center loss function into the CNN network, the loss function is optimized to increase the inter-class feature distance and reduce the intra-class feature distance, which solves the slow convergence speed and low retrieval accuracy of the deep hashing method. problem, achieving efficient image retrieval.

CN118535753APending Publication Date: 2024-08-23CHINA NAT PETROLEUM CORP +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310165113.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the metric-based deep hashing method has a slow convergence speed, and the classification-based deep hashing method has low retrieval accuracy, making it difficult to effectively manage and query massive image data.

Method used

The large-scale image depth large-interval supervised hashing method is adopted, and the single-point mode and class center loss function are combined through the CNN network to optimize the loss function to increase the inter-class feature distance and reduce the intra-class feature distance to achieve rapid convergence and high retrieval accuracy. .

Benefits of technology

It improves the convergence speed and retrieval accuracy of the deep hashing method, solves the problems of slow convergence speed and low classification-based retrieval accuracy based on metric learning, and improves the efficiency and accuracy of image retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535753A
    Figure CN118535753A
Patent Text Reader

Abstract

The invention discloses a large-scale image depth large-interval supervised Hash retrieval method and system for an intelligent oil field. The method comprises the following steps: disorganizing an initialized training image data set; if the training round iter is larger than the center loss enabling round IterThres, the center loss weight lambda is lambda 0; otherwise, setting the value to be 0. Judging whether there is training image data needing to be calculated in the current round, if yes, selecting a plurality of images from the disordered training image data set, processing the selected images based on image categories, obtaining a CNN network loss function, and performing back propagation; if not, the training round iter + 1 is carried out, and the class center is updated; judging whether the training round is smaller than the maximum number of iterations MaxIter or not; and if yes, continuously updating a CNN network loss function, and if not, obtaining a hash code of the training image. According to the method, the CNN network loss function is acquired based on images of different weights and categories, a single-point mode which is the same as image classification is adopted, and tuples do not need to be selected; the method has the characteristics of high convergence speed and high retrieval precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and relates to a large-scale image depth large interval supervised hash retrieval method and system for smart oil fields. Background Art

[0002] In order to improve the construction of smart oilfields and enhance the accuracy of intelligence, it is inevitable to efficiently process massive visual data such as images and videos, such as images and videos of drone inspections and unmanned stations. Effective management and query of these rich and intuitive visual information is particularly important. Therefore, as an important technology for realizing large-scale image database management and query, image retrieval has become a symbol of the intelligence level of smart oilfields.

[0003] Content-based image retrieval technology aims to search for images similar to the query image in the image database. It is widely used in fields such as search engines, e-commerce, and medical systems. In recent years, deep features that can reflect the high-level semantics of images have been applied to image retrieval tasks and have achieved good results. Therefore, people have integrated deep convolutional neural networks and hash learning into a unified framework and proposed deep supervised hashing technology. This technology reduces the semantic gap and greatly improves retrieval accuracy.

[0004] Existing deep hashing techniques can be roughly divided into metric-based learning methods and classification-based methods. The former learns the semantic relationship between samples through a large number of binary and triple pairs, while the latter embeds hash learning in a deep classification network. However, both have corresponding shortcomings. The metric-based deep hashing method has a slow convergence speed and the classification-based deep hashing method has a low retrieval accuracy. Summary of the invention

[0005] The purpose of the present invention is to solve the problems of slow convergence speed of metric-based deep hashing methods and low retrieval accuracy of classification-based deep hashing methods in the prior art, and to provide a large-scale image deep large-interval supervised hashing retrieval method and system for smart oil fields.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] A large-scale image deep large-margin supervised hash retrieval method for smart oil fields, including:

[0008] Step 1: Collect the training image data set and input it into the CNN network for initialization, so that the training round iter is 0;

[0009] Step 2: Randomly shuffle the initialized training image dataset;

[0010] Step 3: Determine whether the training round is greater than the center loss enabling round IterThres. If not, the center loss weight λ is 0; if so, the center loss weight λ is λ 0 ; 0 is the maximum value of the set center loss weight;

[0011] Step 4: Determine whether there is training image data to be calculated in the current round. If so, select several images from the shuffled training image data set, process the selected images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center;

[0012] Step 5: Determine whether the training round is less than the maximum number of iterations MaxIter; if so, repeat steps 2 to 4, and continuously update the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter; if not, end the training and obtain the hash code of the training image.

[0013] A further improvement of the present invention is:

[0014] Furthermore, the training image dataset is X = {x 1 ,...,x L}, the label set corresponding to the training image dataset is Y = {y 1 ,...,y L}, the parameters of the CNN network are the maximum number of iterations MaxIter, the batch size BatchSize, and the center loss enabling round IterThres.

[0015] Furthermore, the image is processed based on the image category, specifically:

[0016] Determine whether the selected image is single-label data. If so, the CNN network loss function is:

[0017]

[0018] If not, the selected image is multi-label data, then the CNN network loss function is:

[0019]

[0020] Among them, y i is the image label, w i is the classification layer parameter, u is the image hash code, θ is the angle between u and w, c i is the class center of the i-th class sample.

[0021] Furthermore, the CNN network loss function includes the large margin classification loss function and the class center loss function for single-label image samples;

[0022] The large margin classification loss function of the single-label image sample is:

[0023]

[0024] Among them, i is the sample category, w i is the i-th classification vector of the matrix W, θ i is the sample feature and w i The angle between

[0025] The class center loss function is:

[0026]

[0027] Among them, c i is the class center corresponding to the i-th class sample, and

[0028] Furthermore, the CNN network loss function includes the large margin classification loss function and the class center loss function for multi-label image samples;

[0029] The large margin classification loss function of the multi-label image sample is:

[0030]

[0031] The class center loss function is:

[0032]

[0033] Furthermore, the number of images in the shuffled training image dataset is the same as the batch size BatchSize.

[0034] Large-scale image deep large-margin supervised hash retrieval system for smart oil fields, including:

[0035] An initialization module collects a training image data set and inputs it into the CNN network for initialization, so that the training round iter is 0;

[0036] A mixing module, wherein the mixing module randomly shuffles the initialized training image data set;

[0037] The first judgment module determines whether the training round is greater than the center loss enabling round IterThres. If not, the center loss weight is 0; if so, the center loss weight is λ 0 ; 0 is the maximum value of the set center loss weight;

[0038] The second determination module determines whether there is training image data to be calculated in this round. If so, select several images from the shuffled training image data set, process the images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center;

[0039] The third judgment module determines whether the training round is less than the maximum number of iterations MaxIter; continuously updates the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter, ends the training, and obtains the hash code of the training image.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention obtains the CNN network loss function based on different weight values ​​and image categories, and obtains the hash code of the training image through continuous iterative training; the present invention adopts the same single-point mode as image classification based on the characteristics of the classification method, and does not need to select tuples, and the scale of training data is greatly reduced. In addition, the optimization efficiency of the classification problem is high, and the present invention has a fast convergence speed, which effectively solves the problem of the convergence speed of deep hashing based on metrics.

[0042] Furthermore, the large margin classification loss function can increase the distance between features of samples of different classes, making the hash codes between dissimilar images as far apart as possible. The class center loss function makes the distance between hash codes of samples of the same class as small as possible. By increasing the feature distance between classes and reducing the feature distance within a class, the retrieval effect of the present invention is greatly improved compared to the simple classification method, solving the problem of low retrieval accuracy of the deep hashing method based on classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flow chart of the large-scale image deep large-interval supervised hash retrieval method for smart oil fields of the present invention;

[0045] Figure 2 This is a structural diagram of the large-scale image deep large-interval supervised hash retrieval system for smart oil fields of the present invention;

[0046] Figure 3 Learn schematics for existing features;

[0047] Figure 4 It is a comparison diagram between the feature space of the original classification function and the feature space of the large interval classification function; among them, Figure 4 (a) is the feature space diagram of the original classification function. Figure 4 (b) is the feature space diagram of the large margin classification function;

[0048] Figure 5 Feature space diagram for large margin classification and center loss;

[0049] Figure 6 It is a comparison diagram of the feature space of the original multi-label classification function and the feature space of the multi-label large-interval classification function; among them, Figure 6 (a) is the feature space diagram of the original multi-label classification function; Figure 6 (b) is the feature space diagram of the multi-label large margin classification function;

[0050] Figure 7 Schematic diagram of the deep large-margin supervised hashing algorithm framework;

[0051] Figure 8 Another flow chart of the large-scale image deep large-interval supervised hash retrieval method for smart oil fields of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0053] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0055] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0056] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0057] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0058] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0059] See also Figure 1 The present invention discloses a large-scale image deep large-interval supervised hash retrieval method for smart oil fields, comprising:

[0060] S101: Collect training image data sets and input them into the CNN network for initialization, so that the training round iter is 0;

[0061] The training image dataset is X = {x 1 ,...,x L}, the label set corresponding to the training image dataset is Y = {y 1 ,...,y L}, the parameters of the CNN network are the maximum number of iterations MaxIter, the batch size BatchSize, the center loss enabling round IterThres, and the center loss weight λ 0 .

[0062] S102: Randomly shuffle the initialized training image data set;

[0063] S103: Determine whether the training round is greater than the center loss enabling round IterThres. If not, the center loss weight is 0; if so, the center loss weight is λ 0 ; 0 is the maximum value of the set center loss weight;

[0064] S104: Determine whether there is any training image data that has not been calculated in this round. If so, select several images from the shuffled training image data set, process the images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center;

[0065] Determine whether the selected image is single-label data. If so, the CNN network loss function is:

[0066]

[0067] If not, the selected image is multi-label data, then the CNN network loss function is:

[0068]

[0069] The CNN network loss function includes the large margin classification loss function and the center loss function of single-label image samples;

[0070] The large margin classification loss function for single-label image samples is:

[0071]

[0072] Among them, i is the sample category, w i is the i-th classification vector of the matrix W, θ i is the sample feature and w i The angle between

[0073] The center loss function is:

[0074]

[0075] Among them, c i is the class center corresponding to the i-th class sample, and

[0076] The CNN network loss function includes the large margin classification loss function and the center loss function of multi-label image samples;

[0077] The large margin classification loss function for multi-label image samples is:

[0078]

[0079] The center loss function is:

[0080]

[0081] The number of images in the shuffled training image dataset is the same as the batch size BatchSize.

[0082] S105: Determine whether the training round is less than the maximum number of iterations MaxIter; if so, repeat S102 to S104, and continuously update the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter; if not, end the training and obtain the hash code of the training image.

[0083] See also Figure 2 The present invention discloses a large-scale image deep large-interval supervised hash retrieval system for smart oil fields, comprising:

[0084] An initialization module collects a training image data set and inputs it into the CNN network for initialization, so that the training round iter is 0;

[0085] A mixing module, wherein the mixing module randomly shuffles the initialized training image data set;

[0086] The first judgment module determines whether the training round is greater than the center loss enabling round IterThres. If not, the center loss weight is 0; if so, the center loss weight is λ 0 ; 0 is the maximum value of the set center loss weight;

[0087] The second determination module determines whether there is training image data to be calculated in this round. If so, select several images from the shuffled training image data set, process the images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center;

[0088] The third judgment module determines whether the training round is less than the maximum number of iterations MaxIter; continuously updates the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter, ends the training, and obtains the hash code of the training image.

[0089] Example:

[0090] The solution of the existing technology: The metric-based deep hashing learns the semantic relationship between samples through a large number of binary and triple pairs, so that the Hamming distance between similar images is small and the Hamming distance between dissimilar images is large. The existing DSH is a typical binary algorithm, and it also uses the loss calculation method of Contrastive Loss. Its loss function is as follows:

[0091]

[0092] When two images are similar (s ij =1), the first half of the above formula works, optimizing in the direction of reducing the hash code L2 distance; when the two images are not similar (s ij =0), the second part of the above formula takes effect, optimizing in the direction of the distance between hash codes being greater than m. m is the interval between hash codes, which can increase the distance between hash codes of dissimilar images to improve retrieval accuracy. Existing classification-based deep hashing technology directly classifies based on image categories without the need for binary or triple training. The SSDH proposed by Huei-Fang Yang et al. points out that the hash code of an image can be regarded as some hidden attributes, so the presence or absence of attributes can determine the category of the image, that is, the hash code has the ability to classify. In SSDH, the hash layer is inserted directly before the classification layer, such as Figure 3 shown.

[0093] First, two different types of large-margin classification loss functions are introduced, and then the overall algorithm framework is given.

[0094] 1. Loss function for single-label data

[0095] Each single-label image belongs to only one category, so the label y = {1, 2, ..., C}, which can also be written as a one-hot vector form y = {y 1 ,...,y C That is, there is only one position corresponding to the category 1, and the others are all 0. If the output of the network classification layer is z, the output can be converted into a probability form using softmax:

[0096]

[0097] It indicates the probability that the sample is predicted to be of the i-th category.

[0098] Therefore, the cross entropy classification loss function of single-label data can be obtained:

[0099]

[0100] Where n is the number of samples, represents the probability that the kth sample is predicted to be the true category i, z kiis the i-th output of the classification network for the k-th sample.

[0101] Take two categories as an example, that is, there is output z = [z 1 ,z 2 ] T According to the maximum a posteriori probability criterion, the condition for classification into the first category is That is The hash feature W corresponding to the u image is [w 1 ,w 2 ]. The large margin classification loss adds an angle interval parameter to make the classification condition more stringent and increase the distance between the classification surface and the feature. The specific method is as follows.

[0102] It can also be written in another form z i =‖w i ‖‖u‖cos(θ i ), where ||·|| represents the vector modulus and cos() represents the i-th component w of u and W. i The cosine of the angle. Therefore, for a single sample, the loss function can be written in the form of cosine:

[0103]

[0104] but Equivalent to ||w 1 ||||u||cos(θ 1 )>||w 2 ||||u||cos(θ 2 ). For m>1, Yes||w 1 ||||u||cos(θ 1 )>||w 1 ||||u||cos(mθ 1 )>||w 2 ||||u||cos(θ 2 ). Therefore, using cos(mθ 1 ) instead of cos(θ 1 ) can make the conditions for correct category judgment more stringent.

[0105] like Figure 4 As shown in the figure, the dots represent category 1 and the squares represent category 2, which illustrates the difference between the large margin classification function and the original classification function in the binary classification problem and the working principle of the large margin classification function. In the feature space using the original classification function, the angle between the classification decision surface and the classification vectors of the two categories is equal, and the samples with features located in the upper right and lower areas of the decision surface are respectively determined as category 1 and category 2. Since cos(θ 1 )>cos(θ2 ), so sample s is judged as category 1. In the feature space of large-interval classification, if we want to make cos(mθ 1 )>cos(θ 2 ), then the sample s and the classification vector w 1 The angle between them should be reduced, and the classification vector w 2 The angle between them increases. Similarly, for samples in category 2, their features are consistent with the classification vector w 2 The angle should also be reduced. Therefore, in the feature space of large-interval classification, the distance between features of different categories increases, and there is a larger interval between classification decision surfaces. Therefore, the use of this classification function can make the distance between hash features of different categories larger, which can improve the retrieval effect.

[0106] When m>1, only when Only then can you 1 ||||u||cos(θ 1 )>||w 1 ||||u||cos(mθ 1 ). Because 0≤cosmθ≤1. And when 2iπ≤mθ≤(2i+1)π, cos(mθ 1 ) is monotonically decreasing. (2i+1)π≤mθ≤(2i+2)π, cos(mθ 1 ) increases. Therefore, we can define φ(θ)=(-1) k Cosmθ-2k, It is easy to see that when 0≤θ≤π, φ(θ) decreases monotonically. And when k=0, φ(θ)=cosmθ. Therefore, φ(θ) can be used instead of cos(mθ 1 ). Get the large margin classification loss function for a single sample:

[0107]

[0108] Where i is the sample category, w i is the i-th classification vector of the matrix W, θ i is the sample feature and w i The angle between.

[0109] In image retrieval, on the one hand, the distance between features of different classes is required to be as large as possible, and on the other hand, the distance between features of the same class is required to be as small as possible. Therefore, based on the large margin classification function, the central loss function is introduced to control the distance between features within a class. This paper adopts the central loss function based on Gaussian distribution.

[0110]

[0111] Among them, c i is the class center corresponding to the i-th class sample, and The category is i. Optimization can make the hash features gather at the center of the class.

[0112] like Figure 5 As shown in the figure, after adding the center loss, the features are more concentrated around the center of the category feature, and the distance between features is smaller, which can further improve the retrieval effect.

[0113] Combining the large margin classification function with the center loss function, we can get the loss function for single-label data:

[0114]

[0115] Among them, w i is the classification layer parameter, u is the image hash code, θ is the angle between u and w, c i is the class center of the i-th class sample.

[0116] 2. Loss Function for Multi-label Data

[0117] Unlike single-label classification problems, a single multi-label image can belong to multiple categories at the same time. Multi-classification can be viewed as C independent binary classification problems, that is, determining whether a sample belongs to a certain category separately. Add a sigmoid function after the classification layer, and the classification layer output z maps the output to the probability of belonging to a certain category: The cross entropy loss function for multi-label classification can be:

[0118]

[0119] Similarly, because z i =‖w i ‖‖u‖cos(θ i ), thus Rewritten as:

[0120]

[0121] like Figure 6 (a). The angle between the classification vector of category 1 is less than θ 1 The sample is judged as class 1. Since ||w 1 ||||u||cos(θ 1 )>||w 1 ||||u||cos(mθ 1 ), so in Figure 6 In (b), the angle between the feature and the classification vector decreases, and features of the same category are more concentrated.

[0122] When i =1, cosθ i Replaced by φ(θ i ) can reduce the angle between the feature and the classification surface; and when yi = 0, cosθ i Replace with The angle between the feature and the classification surface can be increased. In summary, the probability of large-interval classification can be obtained again. Where m>1, φ(θ)=(-1) k cosmθ-2k,

[0123] Finally, the large margin classification loss function with much easier labels is:

[0124]

[0125] For multi-label data, one sample corresponds to multiple class centers, so the cluster center constraint function can take a simple square loss:

[0126]

[0127] Combining the classification and center loss functions, we can get a multi-label large interval center loss function:

[0128]

[0129] Among them, y i is the image label, w i is the classification layer parameter, u is the image hash code, θ is the angle between u and w, c i is the class center of the i-th class sample.

[0130] 3. DLSH Algorithm

[0131] The DLSH algorithm can be summarized as follows: Figure 7 .like Figure 7 As shown in , this algorithm adds the hash learning layer to the classification layer before the image corresponding to the hash code Where θ is the parameter of all previous layers, W h is the hash layer parameter. In order to optimize directly, the symbolic function is relaxed to a logical function, that is, Then the classification layer Each dimension represents a corresponding category. The large margin classification loss can be calculated based on the category output z and the corresponding category information; the corresponding center loss function is calculated based on the relaxed hash code of the hash layer and the category information. Then, combining the above two different types of loss functions, the parameters can be learned through the back propagation algorithm.

[0132] The specific algorithm block diagram is as follows Figure 8 shown.

[0133] This algorithm uses a batch strategy for optimization, the optimizer uses SGD, and the batch size BatchSize = 64.

[0134] Step 1: Input corresponding parameters and perform initialization.

[0135] Step 1.1: The input data includes: the training image dataset X = {x 1 ,..., x L}, the label Y = {y 1 ,..., y L}, the maximum number of iterations MaxIter, the batch size BatchSize, the number of rounds IterThres for enabling the center loss, and the center loss weight λ 0 .

[0136] Step 1.2: Initialization: Initialize the network parameters using the pre-trained network parameters, the current round iter = 0, and assign all zeros to the class centers.

[0137] Step 2: Randomly shuffle the dataset.

[0138] Step 3: Assign the center loss weight λ. At the beginning of training, due to the strong randomness of the hash codes and the low credibility of the class centers, the center loss weight is set to zero. After training for a certain number of rounds (i.e., when iter > IterThres), the center loss is added to make the feature distribution more concentrated.

[0139] Step 4: When there is uncalculated training data in the current round, perform training.

[0140] Step 4.1: Select BatchSize images from the shuffled dataset and send them into the network.

[0141] Step 4.2: Calculate the loss function according to the image category, using formula (1) for single-label and formula (2) for multi-label, and perform backpropagation.

[0142] Step 5: At the end of one round of training, iter + 1, and update the class centers.

[0143] Step 6: When the number of iterations is less than the maximum number of iterations, i.e., iter < MaxIter, return to Step 2. Otherwise, end the training and output the convolutional neural network parameters and the image hash codes.

[0144] The above is only the preferred embodiment of the present invention and is not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A large-scale image deep large-margin supervised hash retrieval method for smart oil fields, characterized by: include: Step 1: Collect the training image data set and input it into the CNN network for initialization, so that the training round iter is 0; Step 2: Randomly shuffle the initialized training image dataset; Step 3: Determine whether the training round is greater than the center loss enabling round IterThres. If not, the center loss weight λ is 0; if so, the center loss weight λ is λ0; λ0 is the set maximum value of the center loss weight; Step 4: Determine whether there is training image data to be calculated in the current round. If so, select several images from the shuffled training image data set, process the selected images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center; Step 5: Determine whether the training round is less than the maximum number of iterations MaxIter; if so, repeat steps 2 to 4, and continuously update the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter; if not, end the training and obtain the hash code of the training image.

2. The large-scale image deep large-interval supervised hash retrieval method for smart oil fields according to claim 1 is characterized in that: The training image dataset is X={x1,...,x L }, the label set corresponding to the training image dataset is Y = {y1,...,y L }, the parameters of the CNN network are the maximum number of iterations MaxIter, the batch size BatchSize, and the center loss enabling round IterThres.

3. The large-scale image deep large-interval supervised hash retrieval method for smart oil fields according to claim 2 is characterized in that: The image is processed based on the image category, specifically: Determine whether the selected image is single-label data. If so, the CNN network loss function is: If not, the selected image is multi-label data, then the CNN network loss function is: Among them, y i is the image label, w i is the classification layer parameter, u is the image hash code, θ is the angle between u and w, c i is the class center of the i-th class sample.

4. The large-scale image deep large-interval supervised hash retrieval method for smart oil fields according to claim 3 is characterized in that: The CNN network loss function includes a large margin classification loss function and a class center loss function for single-label image samples; The large margin classification loss function of the single-label image sample is: Among them, i is the sample category, w i is the i-th classification vector of the matrix W, θ i is the sample feature and w i The angle between The class center loss function is: Among them, c i is the class center corresponding to the i-th class sample, and 5. The large-scale image deep large-interval supervised hash retrieval method for smart oil fields according to claim 3 is characterized in that: The CNN network loss function includes a large interval classification loss function and a class center loss function for multi-label image samples; The large margin classification loss function of the multi-label image sample is: The class center loss function is:

6. The large-scale image deep large-interval supervised hash retrieval method for smart oil fields according to claim 2 is characterized in that: The number of images in the shuffled training image dataset is the same as the batch size BatchSize.

7. A large-scale image deep large-interval supervised hash retrieval system for smart oil fields, characterized by: include: An initialization module collects a training image data set and inputs it into the CNN network for initialization, so that the training round iter is 0; A mixing module, wherein the mixing module randomly shuffles the initialized training image data set; A first judgment module, wherein the first judgment module judges whether the training round is greater than the center loss enabling round IterThres, if not, the center loss weight is 0; if so, the center loss weight is λ0; λ0 is the set maximum value of the center loss weight; The second determination module determines whether there is training image data to be calculated in this round. If so, select several images from the shuffled training image data set, process the images based on the image category, obtain the CNN network loss function and perform back propagation until the calculation is completed; if not, train for round iter+1 and update the class center; The third judgment module determines whether the training round is less than the maximum number of iterations MaxIter; continuously updates the CNN network loss function until the training round is greater than the maximum number of iterations MaxIter, ends the training, and obtains the hash code of the training image.

Citation Information

Patent Citations

  • Remote sensing image retrieval method and device based on category-level semantic hash

    CN113190699A