Digital watermark processing method and system for lithology image data

By using a reversible neural network to perform wavelet transformation and singular value decomposition processing in lithology image data, embedding and extracting watermark information, the problem of watermark affecting image quality and insufficient recovery ability in the existing technology is solved, and the lithology image data is realized. Security and attack resistance.

CN118283195BActive Publication Date: 2024-08-30XI AN JIAOTONG UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410707447.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

While existing lithological image data protection methods ensure data integrity and authenticity, it is difficult to effectively reduce the impact of watermarks on image quality, cannot restore the original image losslessly, and is insufficiently robust against adversarial attacks.

Method used

A reversible neural network is used for digital watermark processing of lithology image data. Watermark information is embedded and extracted through technologies such as wavelet transform, singular value decomposition and inverse wavelet transform, and multi-layer contextual self-attention modules and dense connection structures are used to achieve watermarking. imperceptibility and robustness.

Benefits of technology

It realizes the security and certification traceability of lithology image data, ensures the indestructible recovery of data, enhances the robustness against attacks, and does not affect the accuracy of lithology determination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118283195B
    Figure CN118283195B
Patent Text Reader

Abstract

The present invention discloses a digital watermark processing method and system for lithologic image data, which belongs to the technical field of oil and gas detection. The method comprises obtaining a lithologic carrier image and a watermark image; constructing a reversible neural network, inputting the lithologic carrier image and the watermark image into the reversible neural network, sequentially performing wavelet transform, singular value decomposition, watermark information embedding, singular value inverse transform and wavelet inverse transform processing, outputting a coded image containing watermark information, and training to obtain a reversible neural network digital watermark model; the reversible neural network adopts a densely connected network as the basic structure, and the learning function adopts a multi-layer context self-attention module, and the modules are densely connected; the reversible neural network digital watermark model is used to embed and extract watermark information in the lithologic image to be processed. The present invention can authenticate and trace the image data of natural gas and oil detection, and protect the security and privacy of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of oil and gas detection, and in particular relates to a digital watermark processing method and system for lithology image data. Background Art

[0002] Lithology analysis is a key task in the process of oil and gas exploration and development. It involves analyzing the characteristics and composition of underground rock formations to determine potential oil and gas resources and reservoir conditions. These data are crucial for making decisions, formulating development strategies, and evaluating the feasibility of exploration projects. The original carrier images of rock cuttings images play a vital role in the determination of lithology. The acquisition process is very time-consuming and labor-intensive, and it is a very valuable data asset for all logging companies. Therefore, protecting the original rock cuttings image data is of great significance to logging companies. It can not only maintain the accuracy and credibility of scientific research, but also ensure commercial competitiveness, attract investment, comply with laws and regulations, and maintain cooperative relationships. Protecting the integrity and security of data is an indispensable part of the entire oil and gas exploration and development process.

[0003] Digital watermarking is a technology for hiding information in digital media. By embedding invisible watermarks into rock cuttings images, data authentication and copyright protection can be achieved. This watermark can be a piece of code, text, image or other form of identifier. It is embedded in the image and integrated with the image data. It is imperceptible to the human eye and does not affect the determination of lithology. In addition, the original image can be restored. Only authorized personnel can extract and interpret the watermark to confirm the authenticity and integrity of the image. In recent years, research based on neural networks has made progress in the field of digital watermarking. At the same time, in order to cope with the increasingly severe data security threats in the digital age, especially in oil and gas exploration, how to protect the integrity of lithology image data, ensure the authenticity of image data, reduce the impact of watermarks on image quality, and restore digital images without distortion are all key issues that watermarking methods focus on and urgently need to solve at this stage. Summary of the invention

[0004] In order to solve the problem of data leakage that may exist in lithology analysis images, the present invention provides a method and system for digital watermark processing of lithology image data, which can ensure the security of lithology image data.

[0005] The technical solution of the present invention to solve the above problems is as follows:

[0006] In a first aspect, the present invention provides a method for digital watermarking of lithological image data, characterized by comprising:

[0007] Obtaining lithology carrier image and watermark image;

[0008] A reversible neural network is constructed, and the lithology carrier image and the watermark image are input into the reversible neural network, and wavelet transform DWT, singular value decomposition SVD, watermark information embedding, singular value inverse transform and inverse wavelet transform IWT are performed in sequence, and a coded image containing watermark information is output, and a reversible neural network digital watermark model is obtained by training; the reversible neural network adopts a densely connected network as the basic structure, and the learning function adopts a multi-layer context self-attention module, and the modules are densely connected;

[0009] The reversible neural network digital watermark model is used to embed and extract watermark information from the lithological images to be processed.

[0010] As a further improvement of the present invention, the wavelet transform specifically includes:

[0011] The lithology carrier image includes the original carrier image, and the watermark image includes the original watermark image. The original carrier image and the original watermark image are respectively subjected to second-order discrete Haar wavelet transform to obtain image data in different frequency domains.

[0012] As a further improvement of the present invention, the singular value decomposition includes: performing SVD decomposition on the data converted to the frequency domain to obtain two singular value matrix features, specifically including:

[0013] The input carrier image is transformed using singular value decomposition and watermark image The corresponding wavelet domain data is preprocessed;

[0014] After preprocessing, the U and V orthogonal matrices reflecting the geometric structure of the image are obtained. The orthogonal matrices are saved as keys to obtain two singular value matrix features.

[0015] As a further improvement of the present invention, the watermark information embedding includes:

[0016] The watermark information is embedded by operating the two singular value matrix features through multiple reversible modules in series; the output of the last reversible module in the multiple reversible modules is the singular value matrix after the watermark information is embedded. , and the singular value matrix of the processed watermark information ; The i-th reversible module, the input is and , after operation the output and , the operation expression is:

[0017]

[0018]

[0019] Where S is the output singular value matrix of the i-th reversible module, which is the input of the i+1-th module, exp(·) is the exponential operator, and ⊙ is the Hadamard product. , as well as As a learning function for a reversible neural network.

[0020] As a further improvement of the present invention, the singular value inverse transform and the wavelet inverse transform specifically include:

[0021] Will and The original U and V orthogonal matrices are recombined to achieve the inverse transformation of singular value decomposition, and the generated coded image is obtained through the inverse wavelet transform. , and the other part is directly output as the embedding loss , the formula is:

[0022]

[0023]

[0024] In the formula, U cover and U w is the left singular value matrix of the carrier image and the watermark image, V cover and V w is the right singular value matrix of the carrier image and the watermark image, and is the output obtained after learning by the neural network. The coded image is obtained through inverse wavelet transform. The inverse wavelet transform IWT is the inverse operation of discrete wavelet transform DWT. DWT uses wavelet function to decompose and reconstruct the signal.

[0025] As a further improvement of the present invention, the extraction of watermark information from the lithological image to be processed by using the reversible neural network digital watermark model includes:

[0026] The reversible neural network digital watermark model uses a reverse operation, in which part of the input data , is the singular value matrix obtained after DWT and SVD transformation of the distorted image, and the other part of the input data Random sampling from Gaussian distribution; the data flow direction is from the i+1th module to the ith module, and the expression of the data processing process is:

[0027]

[0028]

[0029] Where z is a Gaussian distribution variable;

[0030] The learning function of the reverse operation uses the same network parameters as the forward operation, and performs operations through multiple reversible modules to realize the decoding process. The output of the last reversible module is Recorded as ; The output of the reverse operation is and , combined with the key information, perform SVD inverse transform and then use wavelet inverse transform to obtain the extracted watermark image , and the restored carrier image , the inverse wavelet transform process expression is:

[0031]

[0032]

[0033] In the formula, IWT is the inverse wavelet transform processing, , The left and right singular value matrices are obtained by inverse wavelet transform. The restored carrier singular value matrix is ​​obtained by reverse operation. and , restore the input data.

[0034] As a further improvement of the present invention, the key is used to restore the input data, which specifically includes:

[0035] When the parameters of the reversible module are fixed, the loss embedded in the key is directly used when extracting the watermark in reverse r The singular values ​​of Replace the variable z in the reversible module operation, and after the network inverse operation, get the original input carrier image and watermark image .

[0036] In a second aspect, the present invention provides a digital watermark processing system for lithology image data, comprising:

[0037] An acquisition module, used for acquiring a lithology carrier image and a watermark image;

[0038] A training module is used to construct a reversible neural network, input the lithology carrier image and the watermark image into the reversible neural network, perform wavelet transform DWT, singular value decomposition SVD, watermark information embedding, singular value inverse transform and inverse wavelet transform IWT in sequence, output a coded image containing watermark information, and train to obtain a reversible neural network digital watermark model; the reversible neural network adopts a densely connected network as the basic structure, the learning function adopts a multi-layer context self-attention module, and the modules are densely connected;

[0039] The embedding and extraction module is used to embed and extract watermark information from the lithology image to be processed using a reversible neural network digital watermark model.

[0040] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for digital watermarking of lithological image data when executing the computer program.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for digital watermarking of lithological image data are implemented.

[0042] Compared with the traditional treatment, the present invention has at least the following beneficial effects:

[0043] The digital watermark processing method for lithologic image data provided by the present invention adopts a reversible neural network to encode and decode the carrier image and watermark information, and realizes the embedding and extraction of the reversible watermark by utilizing the characteristic that the forward and reverse operations do not lose information, and improves the learning efficiency of the reversible neural network through the learning function based on the attention block and the SVD decomposition module, so that the added watermark information does not affect the original expression, and the additional information cannot be directly confirmed by the human eye, which effectively improves the imperceptibility of the watermark in the original carrier image; secondly, by adding the recovery loss to realize the reversibility of the algorithm, and adding the SVD loss, compared with the single-stage method, the present method can realize the lossless and lossy recovery of the lithologic carrier image when the key is provided and when the key is not provided, respectively, and can ensure that the copyright protection process has no effect on the lithologic determination. Experimental results show that the method can accurately restore the original carrier image and ensure the security and authentication traceability of the data under the premise of ensuring a certain imperceptibility and having a certain robustness against some attacks. In general, the present invention can authenticate and trace the image data of natural gas and oil exploration, protect the security and privacy of the data, and at the same time affect the data distribution without destroying the readability of the data. The authenticator can restore the data losslessly, while a third party that has not passed the authentication will not be able to obtain the accurate original carrier image. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart of a digital watermark processing method for lithology image data of the present invention;

[0045] Figure 2 It is an overall architecture diagram of a digital watermark processing method for lithology image data of the present invention;

[0046] FIG3 (a) is a schematic diagram of the forward operation process of the algorithm of the reversible module;

[0047] FIG3 (b) is a schematic diagram of the reverse operation process of the algorithm of the reversible module;

[0048] Figure 4 (a) shows the contextual self-attention full convolution block processing flow;

[0049] Figure 4 (b) is a schematic diagram of the contextual self-attention module structure;

[0050] Figure 5 A schematic diagram of an exemplary data authentication watermark embedding system for implementing the present invention;

[0051] Figure 6 This is a schematic diagram of an exemplary data traceability watermark extraction system for implementing the present invention;

[0052] Figure 7 It is a structural schematic diagram of a digital watermark processing system for lithology image data of the present invention;

[0053] Figure 8 It is a schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0054] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0055] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0056] Terminology explanation:

[0057] Wavelet transform DWT (Discrete Wavelet Transform): DWT stands for discrete wavelet transform, which is a multi-scale analysis technology that can decompose a signal into several sub-bands of different frequencies, thereby realizing signal analysis and processing.

[0058] The main idea is to use wavelet basis functions to decompose the signal. Wavelet basis functions are scalable, that is, wavelet basis functions of different sizes can be generated according to the needs of different scales. Commonly used wavelet basis functions include Haar wavelet, Daubechies wavelet, Mexican hat wavelet, etc.

[0059] Singular Value Decomposition (SVD): SVD is a matrix decomposition method that plays an important role in some machine learning algorithms. In SVD, U is an m×m orthogonal matrix, Σ is an m×n matrix, where the elements on the diagonal are called singular values, and V is an n×n orthogonal matrix.

[0060] Watermark information embedding: Watermark embedding refers to embedding identification information into data or files to give it a certain degree of identification.

[0061] Inverse singular value transform: Inverse singular value transform generally refers to the operation of recovering the original matrix or data from the result of singular value decomposition.

[0062] Inverse Wavelet Transform (IWT): IWT is the inverse process of wavelet transform, which is used to reconstruct the original signal from the coefficients of wavelet transform. By applying the same wavelet basis function and scale parameters as DWT, IWT can convert the wavelet coefficients back to the original signal to achieve complete reconstruction of the signal.

[0063] like Figure 1 As shown, the first object of the present invention is to provide a digital watermark processing method for lithology image data, comprising:

[0064] S1, obtaining lithology carrier image and watermark image;

[0065] S2, constructing a reversible neural network, inputting the lithology carrier image and the watermark image into the reversible neural network, sequentially performing wavelet transform, singular value decomposition, watermark information embedding, singular value inverse transform and wavelet inverse transform processing, outputting a coded image containing watermark information, and training to obtain a reversible neural network digital watermark model; the reversible neural network adopts a densely connected network as a basic structure, and the learning function adopts a multi-layer context self-attention module, and the modules are densely connected;

[0066] S3, using the reversible neural network digital watermark model to embed and extract watermark information from the lithological image to be processed.

[0067] The present invention can authenticate and trace the image data of natural gas and oil exploration, protect the security and privacy of the data, and at the same time affect the data distribution without destroying the readability of the data. The authenticator can restore the data losslessly, while a third party that fails to pass the authentication will not be able to obtain the accurate original carrier image.

[0068] Among them, S1 mainly collects lithology analysis image datasets and custom watermark image datasets.

[0069] The method of the embodiment of the present invention mainly uses a reversible neural network to train the data set, embeds the watermark into the original image through the model to obtain the secret data, and uses the characteristics of the reversible neural network to perform lossy and lossless recovery of the secret data. The present invention can authenticate and trace the image data of natural gas and oil exploration, protect the security and privacy of the data; at the same time, it affects the data distribution without destroying the readability of the data. The authenticator can restore the data losslessly, while the third party that fails to pass the authentication will not be able to obtain the accurate original data.

[0070] In order to improve efficiency and robustness, noise joint training, singular value decomposition and attention blocks can be used to improve the efficiency and robustness of lithology image watermark embedding.

[0071] The embodiment of the present invention proposes a deep watermarking method based on a reversible neural network, which implements watermark embedding through network forward operation and watermark extraction through reverse operation, and achieves lossless restoration of the carrier image while extracting.

[0072] The embodiment of the present invention adopts the learning function enhanced by the attention mechanism and the dense connection structure to improve the learning ability of the reversible watermark embedding and extraction module.

[0073] The embodiment of the present invention adopts wavelet transform to decompose the original image into multiple frequency bands, embeds the watermark information into different high and low frequency coefficients, and performs operations in the frequency domain to fit a more complex watermark embedding scheme.

[0074] The embodiment of the present invention embeds watermark information into singular values ​​with better concealment and stability based on singular value decomposition, and introduces singular value loss to reduce the difference between the encoded image and the original image.

[0075] Furthermore, three types of distortion attacks are introduced and jointly trained to enhance the robustness of the algorithm against some common attacks. Even after a certain compression or distortion, this method can still restore the original watermark information. In view of the distortion attacks that the watermark may be subjected to, noise joint training is used to improve the robustness of the watermark against various known attacks.

[0076] The present invention is described in detail below with reference to specific embodiments and accompanying drawings:

[0077] like Figure 2 As shown, the digital watermark processing method for lithological image data provided by the present invention comprises the following steps:

[0078] Step 1, wavelet transform, converts the original image into frequency domain.

[0079] Specifically, the original image includes the carrier image and the watermark image, both of which are RGB format images of the same size. The two images are first subjected to second-order discrete Haar wavelet transform (DWT) to obtain image data in different frequency domains.

[0080] In digital image watermarking, the second-order discrete Haar wavelet transform can be used to decompose and embed watermarks in images. Specifically, the original image is decomposed into multiple frequency subbands, and then the watermark information is embedded in specific subbands. When extracting the watermark, the watermark information can be obtained by performing an inverse Haar wavelet transform on the image. The original image can be decomposed into multiple frequency bands using the Haar wavelet transform, in which the low-frequency subband retains most of the information of the original image, while the high-frequency subband contains detail information. In the embedding process, low-frequency components that are stable and not easily attacked will be selected for embedding, so the watermark is more robust and can resist attacks such as JPEG compression and rotation. If the watermark is embedded in the high-frequency component, the watermark has good imperceptibility, but it is also easily affected by noise or attacks. According to the frequency domain data characteristics of the image, the watermark algorithm based on the Haar wavelet transform is to embed the watermark information into different high and low frequency coefficients, and maximize the robustness of the watermark algorithm while ensuring a certain imperceptibility of the algorithm.

[0081] Step 2: SVD decomposition to obtain the decomposed lithology carrier image matrix ( ) and the watermark image matrix ( ), and then the key singular value matrix of the two matrices as well as Input to subsequent modules.

[0082] Specifically, the stability of the singular values ​​of an image is very strong, that is, when a small disturbance is applied to the image, its singular values ​​will not change drastically. In addition, the matrices U and V obtained by SVD transformation reflect the geometric structure of the image. Therefore, when the watermark algorithm saves the U and V orthogonal matrices as keys, it has strong robustness to general geometric attacks such as transposition, rotation, and scaling. At the same time, the singular values ​​represent the intrinsic characteristics of the image rather than the visual characteristics. Small changes in singular values ​​will not lead to a decrease in the overall visual quality of the image. By utilizing the characteristics brought by the above SVD transformation, the robustness to distortion attacks is improved without reducing the visual quality of the image.

[0083] The specific operation process of the singular value decomposition module in the present invention is to use the singular value decomposition transformation on the input carrier image at the input end. and watermark image The corresponding wavelet domain data is preprocessed. The expression of the preprocessing process is:

[0084]

[0085]

[0086] DWT is the wavelet transform, is the lithology carrier image matrix parameter, is the watermark image matrix parameter.

[0087] The data obtained after preprocessing: U and V are orthogonal matrices, which are saved as part of the key; singular values and Input into the next module for numerical calculation. and The new singular value data obtained after the operation is recorded as and .

[0088] Step three: embed watermark information into high-dimensional features.

[0089] Specifically, the two singular value matrix features obtained in the previous step are connected in series with multiple reversible modules, including arrive ,right and Perform calculations to embed watermark information. The last reversible module of the forward process The output is the singular value matrix after embedding the watermark information , and the singular value matrix of the processed watermark information .

[0090] Figure 3 (a) and Figure 3 (b) show the structure of the i-th reversible module and one of the learning functions. Figure 3 (a) shows the forward operation process of the reversible module, and Figure 3 (b) shows the reverse operation process of the algorithm of the reversible module; the coupling layer in the reversible module is an additive affine transformation, and its input is the singular value matrix of the carrier image and the watermark image and , after operation, the output and , the operation expression is:

[0091]

[0092]

[0093] Where S is the output singular value matrix of the i-th reversible module, which is the input of the i+1-th module, exp(·) is the exponential operator, and ⊙ is the Hadamard product. , as well as As the learning function of the reversible neural network, the parameters are updated through back propagation.

[0094] Specifically, the core of the reversible module is to construct a bidirectional mathematical operation process, where embedding and extraction correspond to the forward and reverse directions of the bijective structure respectively. The revealing and recovery processes share the same network parameters, but the direction of the information flow is opposite. After a series of series-connected affine blocks, the singular value matrix after watermark embedding is output.

[0095] According to the operational characteristics of the reversible module, its learning function can be an arbitrarily complex function. Taking into account that dense connections and self-attention mechanisms have good representation capabilities in watermarking tasks, the present invention uses a densely connected network as the basic structure of the learning function and uses a contextual self-attention module (CoT Block) instead of the traditional 3×3 convolutional layer. The core is to combine the ability of self-attention to capture global information with the ability of convolutional neural networks CNN (Convolutional Neural Networks, CNN for short) to capture nearby local information, thereby improving the encoder network's ability to learn the features of the carrier image and watermark information.

[0096] The context self-attention module used in the present invention, FIG4 (a) is a processing flow of the context self-attention full convolution block; FIG4 (b) is a schematic diagram of the context self-attention module structure; Specifically, assuming that the input image , keymap, query and value map are defined as Unlike the traditional self-attention module that uses 1×1 convolutional encoding to obtain the key map, CoT Block performs Group convolution, group 4, get the adjacent context relationship of each key, denoted as , which represents the contextual information of the local neighboring position of the input, and takes it as input Then, the local context information obtained above is and Concatenate in the channel dimension through two consecutive 1×1 convolutions, where the first convolution network Using the Relu activation function, the second convolutional network Not using an activation function can avoid shielding too much valid information and calculate the attention matrix containing local information Next, similar to the typical self-attention calculation method, the matrix Reshape and Multiply them together to get the enhanced self-attention matrix ,because It can capture global information and use it as input Finally, the obtained proximity information is fused with the global information to output the feature map Y after attention enhancement.

[0097] The learning function of the method of the present invention adopts a multi-layer context self-attention module, and the modules are densely connected, which enhances the learning ability of the learning function and can better capture the global characteristics of the singular value matrix. The reversible module based on the learning function can more fully utilize the singular value information of the image to embed the watermark, thereby learning a watermark embedding scheme with better imperceptibility and robustness.

[0098] This method uses reversible modules to implement the core operation steps, mainly for the following considerations:

[0099] First, since the reversible neural network is reversible and does not lose information of the input data, it has good interpretability. Therefore, the present invention adopts a reversible module to implement watermark extraction and embedding operations, and utilizes the characteristic that information can be transmitted losslessly between reversible modules to achieve the reversible watermark task, which can accurately reconstruct the watermark image and the carrier image.

[0100] Secondly, the present invention adopts densely connected convolution blocks based on contextual self-attention as the learning function. The network has a stronger ability to capture information and can maximize the use of input information. At the same time, the network is highly parameterized, which can speed up the model training efficiency, thereby achieving a better watermark embedding solution.

[0101] Step 4: Inverse singular value transform and inverse wavelet transform, transform the singular value matrix Combined with the original left and right singular matrices, the coded image containing the watermark information is output through SVD inverse transform and inverse wavelet transform (IWT). At the same time, the part of information that is considered to be discarded during the watermark embedding process after network training is output. This part of information is called embedding loss r.

[0102] Specifically, and The original U and V orthogonal matrices are recombined to achieve the SVD inverse transform, and the coded image generated by the algorithm is obtained through the inverse wavelet transform (IWT). , and the other part is directly output as the embedding loss The formula is:

[0103]

[0104]

[0105] In the formula, U cover and U wis the left singular value matrix of the carrier image and the watermark image, V cover and V w is the right singular value matrix of the carrier image and the watermark image, and is the output obtained after learning by the neural network. The coded image is obtained through inverse wavelet transform. Inverse wavelet transform IWT is the inverse operation of discrete wavelet transform DWT. DWT uses wavelet function to decompose and reconstruct the signal. In the decomposition process, the signal is decomposed into sub-signals of different frequencies, each of which corresponds to a wavelet function of different scales. IWT uses the orthogonal properties of wavelet basis functions to perform inner product operations on wavelet coefficients and wavelet basis functions, and then weights and superimposes them through wavelet basis functions of different scales and frequencies to restore the original signal.

[0106] The above are the SVD transformation and inverse transformation involved in the forward operation process of the present invention.

[0107] In the reverse watermark extraction process, although the input and output are different from those in the forward process, the same SVD processing method is used, so it will not be repeated.

[0108] In step five, the encoded image will undergo several common distortion attacks, and different distortion types can be selected according to the task objectives during network training. In order to meet the requirement that the input and output dimensions of the reversible neural network must be consistent, and the network is trained end-to-end, the operation process needs to be differentiable, so as to meet the gradient descent to update the parameters and achieve the purpose of network optimization. In deep neural networks, the general data quantization operation is to round the value divided by the result of the quantization matrix to obtain the nearest integer after quantization. The rounding step in this process is not differentiable, because the result is a discontinuous, piecewise constant function, which also makes it impossible to derive it later to realize gradient back propagation. Therefore, in order to introduce quantization-related distortion into the model, the present invention adopts a differentiable approximation method.

[0109] Step 6. The above process is the information embedding process. The forward and reverse processes of the reversible neural network share the same parameters. Therefore, the extraction of messages can be considered as the reverse operation of the forward process.

[0110] Specifically, combined Figure 2 As shown, part of the input data for the reverse operation , is the singular value matrix obtained after DWT and SVD transformation of the distorted image, and the other part of the input data Random sampling from Gaussian distribution. The data flow direction is from the i+1th module to the ith module, and the expression of the data processing process is:

[0111]

[0112]

[0113] Where the extraction process is the inverse of the forward embedding, does not require additional training, and shares the same parameters as the forward operation. Except for the Gaussian distribution z, the definitions of other symbols are consistent with the forward operation.

[0114] The learning function of the reverse operation uses the same network parameters as the forward operation. The above operation is also performed through multiple reversible modules to realize the decoding process. The output of the last reversible module is Recorded as The output of the reverse operation is and , combined with the key information, perform SVD inverse transform and then use inverse wavelet transform IWT to obtain the extracted watermark image , and the restored carrier image , the process expression is:

[0115]

[0116]

[0117] In the formula, IWT uses the same Haar wavelet for inverse transformation, and the recovered carrier singular value matrix is ​​obtained through reverse operation. and , restore the input data.

[0118] Through the above reverse operation, we can get and , thereby restoring the input data and satisfying the reversibility requirements of reversible watermarking in the presence of distortion.

[0119] At the same time, the present invention adopts the key design, which can restore the input data losslessly without distortion of the encoded image in practical application. At this time, the reversible module parameters are fixed, and the key is directly used when the watermark is extracted in reverse. r The singular values ​​of Replace the Gaussian distribution variable in the above reversible module operation z , after the network inverse operation, the original input carrier image can be obtained and watermark image .

[0120] Step seven: Perform training based on the above data set and model improvements, and perform verification and inference.

[0121] Specifically, based on the above collected and collated data sets, a specially designed loss function is used to iterate the training of the improved model, and finally a robust model is obtained. When in use, watermark information can be added and restored for lithology images based on the model.

[0122] In view of the characteristics of the reversible model itself, the recovery loss of the carrier image is added to improve the convergence speed of the algorithm and further improve the reversibility of the algorithm when the encoded image is attacked.

[0123] As a further improvement, the scoring function evaluates the generated encrypted image and the restored image, and the loss function is designed based on the scoring function to optimize the model effect. Specifically:

[0124] First, the network forward operation realizes watermark embedding, the purpose is to embed the watermark image Embedding carrier images The coded image generated by the network needs to be visually consistent with the original image to meet the imperceptibility of the watermark. Therefore, the present invention uses the original carrier image The encoded image generated after embedding the watermark The mean square error between , the expression is:

[0125]

[0126] in, For the present invention Learnable parameters, . The smaller the value of, the higher the similarity between the original image and the encoded image, which means the better the imperceptibility of the watermark.

[0127] At the same time, according to the low-frequency characteristics of the image, in order to reduce the visual difference between the encoded image and the carrier image, the present invention uses the mean square error of the low-frequency domain of the two images as another part of the coding loss , the expression is:

[0128]

[0129] in I cover_low 、I en_low They are the low-frequency data of the carrier image and the coded image after wavelet transformation. Coding loss It is the sum of the above two parts of encoding loss:

[0130]

[0131] On the basis of coding loss, in order to further constrain the coding process of the network, the present invention combines the singular value decomposition module and introduces the singular value of the carrier image and the singular values ​​of the encoded image Singular value loss By reducing the L2 distance between two singular values, the difference between the singular values ​​of the image after the watermark information is embedded and the original image is constrained, further improving the imperceptibility of the watermark.

[0132]

[0133] Among them, MSE is mean-square error (MSE).

[0134] Secondly, the network reverse operation realizes the watermark information extraction and the singular value recovery of the original carrier image. Since the parameters of the reverse operation of the reversible module are the same as the forward operation and correspond one to one, no information loss will occur, so the present invention can naturally meet the reversibility under distortion-free conditions. However, under distortion conditions, some information must be lost, resulting in the inability to completely restore the original carrier image. At the same time, during the reverse training process, the present invention randomly samples the variable z from a general Gaussian distribution as part of the input, and discards part of the output of the network forward process. , and the loss of this part of information will also make it impossible to completely restore the original input. The closer the input of the forward operation of the present invention is to the output of the reverse operation, the more the network can capture the distribution of the above-mentioned lost information and learn more about the input, thereby completing accurate data reconstruction, and the algorithm robustness and reversibility are better. Based on the above analysis, the present invention uses the watermark information input during the forward operation And reverse operation to extract the watermark information The L2 distance between them is used as the network decoding loss , whose expression is:

[0135]

[0136] In addition to considering the effect of watermark extraction, the present invention also considers the input of the network forward operation And the output of the reverse operation The L2 distance between them is used as the recovery loss Through training, the recovery loss is reduced and the network's ability to restore the original carrier image is improved, thus achieving algorithm reversibility. The expression is:

[0137]

[0138] in, and It is obtained by performing the operations on the singular values ​​of the distorted image and the variable z Obtained by calculation.

[0139] Finally, combined with the encoding loss , singular value loss , decoding loss and recover losses , we get the loss function of the entire network , the expression is:

[0140]

[0141] in, , , , is the specific gravity coefficient, ranging from 0 to 1.

[0142] Training is performed based on the above datasets and model improvements, and verification and inference are performed.

[0143] like Figure 5 and Figure 6 As shown in Figure 2, they are the application process of digital watermarking of lithology carrier images. Specifically, the watermark embedding is applied to the authentication process of lithology images, such as Figure 5 The main features shown include:

[0144] Obtain and input lithology images. Select the lithology images that need to be authenticated as the input of the model to participate in the calculation process.

[0145] Select the watermark style, initialize the watermark through the predefined watermark template, and select the watermark color and embedding strength to show the expected effect.

[0146] After the selection is completed, the lithology image and the watermark image are input into the model for calculation, and the forward operation generates the image and key after the watermark is embedded, the embedding effect is displayed, and the original file is output.

[0147] The output encoded image and key are saved to complete the authentication process.

[0148] Watermark extraction is applied to the tracing process of lithological images, such as Figure 6 The main features shown include:

[0149] Acquire and input the traceability images, and select the lithology images that need to be traced as model input to participate in the calculation process.

[0150] Key input is optional. When no key is entered, random Gaussian distribution sampling is selected to participate in the calculation.

[0151] After the selection is completed, the traceability image is calculated with the optional key input model, and the reverse operation is performed to obtain the restored carrier image and watermark image and preview them. The authenticated image can be correctly restored, and the unauthenticated lithology image will obtain an irregular image distribution.

[0152] The source information is confirmed based on the recovery results and the traceability is completed.

[0153] like Figure 7 As shown, the second object of the present invention is to provide a digital watermark processing system for lithology image data, comprising:

[0154] An acquisition module, used for acquiring a lithology carrier image and a watermark image;

[0155] A training module is used to construct a reversible neural network, input the lithology carrier image and the watermark image into the reversible neural network, perform wavelet transform, singular value decomposition, watermark information embedding, singular value inverse transform and wavelet inverse transform in sequence, output a coded image containing watermark information, and train to obtain a reversible neural network digital watermark model; the reversible neural network adopts a densely connected network as the basic structure, the learning function adopts a multi-layer context self-attention module, and the modules are densely connected;

[0156] The embedding and extraction module is used to embed and extract watermark information from the lithology image to be processed using a reversible neural network digital watermark model.

[0157] like Figure 8 As shown, the third object of the present invention is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for digital watermarking of lithological image data when executing the computer program.

[0158] A fourth object of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for digital watermark processing of lithological image data are implemented.

[0159] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0160] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0161] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A digital watermark processing method for lithological image data, characterized in that: include: Obtaining lithology carrier image and watermark image; A reversible neural network is constructed, and the lithology carrier image and the watermark image are input into the reversible neural network, and wavelet transform DWT, singular value decomposition SVD, watermark information embedding, singular value inverse transform and inverse wavelet transform IWT are performed in sequence, and a coded image containing watermark information is output, and a reversible neural network digital watermark model is obtained by training; the reversible neural network adopts a densely connected network as the basic structure, and the learning function adopts a multi-layer context self-attention module, and the modules are densely connected; The reversible neural network digital watermark model is used to embed and extract watermark information from the lithological images to be processed. The watermark information embedding includes: The watermark information is embedded by operating the two singular value matrix features through multiple reversible modules in series; the output of the last reversible module in the multiple reversible modules is the singular value matrix after the watermark information is embedded. , and the singular value matrix of the processed watermark information ; The i-th reversible module, the input is and , after operation the output and , the operation expression is: Where S is the output singular value matrix of the i-th reversible module, which is the input of the i+1-th module, exp(·) is the exponential operator, and ⊙ is the Hadamard product, i.e., the element-by-element product. , as well as As a learning function for a reversible neural network; The singular value inverse transform and wavelet inverse transform specifically include: Will and The original U and V orthogonal matrices are recombined to achieve the inverse transformation of singular value decomposition, and the generated coded image is obtained through the inverse wavelet transform. , and the other part is directly output as the embedding loss , the formula is: In the formula, U cover and U w is the left singular value matrix of the carrier image and the watermark image, V cover and V w is the right singular value matrix of the carrier image and the watermark image, and is the output obtained after learning by the neural network. The coded image is obtained through inverse wavelet transform. Inverse wavelet transform IWT is the inverse operation of discrete wavelet transform DWT. DWT uses wavelet function to decompose and reconstruct the signal. The method of extracting watermark information from the lithological image to be processed by using the reversible neural network digital watermark model includes: The reversible neural network digital watermark model uses a reverse operation, in which part of the input data , is the singular value matrix obtained after DWT and SVD transformation of the distorted image, and the other part of the input data Random sampling from Gaussian distribution; the data flow direction is from the i+1th module to the ith module, and the expression of the data processing process is: Where z is Gaussian distribution; The learning function of the reverse operation uses the same network parameters as the forward operation, and performs operations through multiple reversible modules to realize the decoding process. The output of the last reversible module is Recorded as ; The output of the reverse operation is and , combined with the key information, perform SVD inverse transform and then use wavelet inverse transform to obtain the extracted watermark image , and the restored carrier image , the inverse wavelet transform process expression is: Where IWT is the inverse wavelet transform process. , The left and right singular value matrices are obtained by inverse wavelet transform. The restored carrier singular value matrix is ​​obtained by reverse operation. and , restore the input data.

2. The digital watermark processing method for lithological image data according to claim 1 is characterized in that: The wavelet transform specifically includes: The lithology carrier image includes the original carrier image, and the watermark image includes the original watermark image. The original carrier image and the original watermark image are respectively subjected to second-order discrete Haar wavelet transform to obtain image data in different frequency domains.

3. The digital watermark processing method for lithological image data according to claim 1 is characterized in that: The singular value decomposition includes: performing SVD decomposition on the data converted to the frequency domain to obtain two singular value matrix features, specifically including: The input carrier image is transformed using singular value decomposition and watermark image The corresponding wavelet domain data is preprocessed; After preprocessing, the U and V orthogonal matrices reflecting the geometric structure of the image are obtained. The orthogonal matrices are saved as keys to obtain two singular value matrix features.

4. The digital watermark processing method for lithological image data according to claim 1 is characterized in that: It also includes using the key to restore the input data, including: When the parameters of the reversible module are fixed, the loss embedded in the key is directly used when extracting the watermark in reverse r The singular values ​​of Replace the variable z in the reversible module operation, and after the network inverse operation, get the original input carrier image and watermark image .

5. A digital watermark processing system for lithological image data, based on the digital watermark processing method for lithological image data according to any one of claims 1 to 4, characterized in that: The system includes: An acquisition module, used for acquiring a lithology carrier image and a watermark image; A training module is used to construct a reversible neural network, input the lithology carrier image and the watermark image into the reversible neural network, perform wavelet transform DWT, singular value decomposition SVD, watermark information embedding, singular value inverse transform and inverse wavelet transform IWT in sequence, output a coded image containing watermark information, and train to obtain a reversible neural network digital watermark model; the reversible neural network adopts a densely connected network as the basic structure, the learning function adopts a multi-layer context self-attention module, and the modules are densely connected; The embedding and extraction module is used to embed and extract watermark information from the lithology image to be processed using a reversible neural network digital watermark model.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the digital watermark processing method for lithological image data as described in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for digital watermarking of lithological image data as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • DTI image copyright protection method and system based on deep watermark algorithm

    CN116894752A

  • Image blind watermark embedding and extracting method, system, equipment and medium

    CN117830070A