An adaptive robust watermarking method based on integer wavelet transform and frost optimization

By combining integer wavelet transform, singular value decomposition and Hadamard transform, and using the frost-ice optimization algorithm and the double encryption technology of scrambled generalized Gray code transform and four-dimensional hyperchaotic Lorenz system, the robustness and invisibility in color watermark images are solved. The balance between properties significantly improves the attack resistance and security of watermark information.

CN118429172BActive Publication Date: 2024-10-11JINGYING SHUZHI TECH HLDG CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410883221.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-11
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Existing digital watermarking technology has a difficult balance between robustness and invisibility in color watermarked images, and its resistance to complex attacks is insufficient, especially its limited performance in embedding watermark information in the transform domain.

Method used

Using a method that combines integer wavelet transform, singular value decomposition and Hadamard transform, the optimal embedding factor is adaptively found through the Frost and Ice Optimization Algorithm, and combined with the scrambled generalized Gray code transform and the four-dimensional hyperchaotic Lorenz system for double encryption to improve the watermark information security and attack resistance.

Benefits of technology

It improves the robustness and invisibility of the watermarking scheme, ensures the performance of high peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and normalized cross-correlation (NC) indicators, and enhances the security of watermark information. and resistance to attack.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429172B_ABST
    Figure CN118429172B_ABST
Patent Text Reader

Abstract

The present invention discloses an integer wavelet transform adaptive robust watermarking method based on frost optimization, which belongs to the field of watermark technology and includes the following steps: step 1, obtaining the original color watermark image and preprocessing the original color watermark image; step 2, embedding watermark information in the three channels of the image by combining integer wavelet transform, singular value decomposition and Hadamard transform; step 3, extracting watermark from the color image embedded with watermark information; step 4, obtaining the optimal embedding factor by frost optimization algorithm. For the color watermark image, the present invention can improve the robustness of the watermark while maintaining high invisibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of watermarking, and in particular relates to an integer wavelet transform adaptive robust watermarking method based on frost optimization. Background Art

[0002] In today's digital age, with the popularity of social media and online content sharing, information such as digital images can be easily copied, tampered with, and illegally disseminated. Therefore, measures need to be taken to maintain information security and protect product copyrights. Digital watermarking technology is a common means to solve the above problems, especially robust watermarking technology. Robust watermarking technology embeds watermark information securely into the carrier image and ensures that this information can still be accurately detected and extracted in the face of common signal processing attacks such as image compression, filtering, noise addition, or geometric transformation.

[0003] After years of research, existing watermarking technologies are mainly concentrated in the spatial domain and transform domain. The most commonly used spatial domain method is the least significant bit (LSB) replacement. Generally, spatial domain methods are popular because they are easy to implement and have low computational complexity, but they are less effective in resisting complex attacks. Common frequency domain methods include discrete wavelet transform (DWT), discrete cosine transform (DCT), integer wavelet transform (IWT), discrete Fourier transform (DFT) and singular value decomposition (SVD). Transform domain methods have higher security and robustness, but are relatively complex to implement. Although watermarking technology based on transform domain is superior to traditional spatial domain methods in terms of anti-attack ability, the performance of embedding watermark information in a transform domain is limited. Therefore, in order to improve the application performance of watermarking technology, researchers have proposed many hybrid domain-based methods, such as watermarking methods based on DWT-DCT-SVD, watermarking methods based on RDWT-SVD, watermarking methods based on, and watermarking algorithms based on NSCT-RDWT-SVD, all of which have achieved relatively good performance.

[0004] In any watermarking scheme, invisibility, robustness, security and embedding capacity are all key issues that need to be paid attention to. However, existing digital watermarking technology tends to use binary images or grayscale images with low information content and poor visual effects as watermark images, which makes watermarking technology lack in color watermark images. Therefore, in order to make up for this deficiency, this paper uses color watermark images for research. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes an adaptive robust watermarking method of integer wavelet transform based on frost optimization. For color watermark images, the low-frequency area of ​​integer wavelet transform (IWT) is selected to embed watermark information, which can improve the resistance to various attacks; Hadamard transform has the characteristic of energy diffusion, and the watermark information can be evenly distributed in the transform domain, while SVD embeds the watermark information in the main features of the image by modifying the singular values ​​in the S matrix, which will not significantly change the visual effect of the image. Therefore, combining SVD and Hadamard transform not only makes the watermark more difficult to be detected by unauthorized persons, but also enhances its resistance to image processing attacks; then, the optimal embedding factor is adaptively found through the frost optimization algorithm to achieve a balance between invisibility and robustness; the watermark image is scrambled using double encryption to ensure the security of the watermark information.

[0006] The technical solution of the present invention is as follows:

[0007] An integer wavelet transform adaptive robust watermarking method based on frost optimization includes the following steps:

[0008] Step 1, obtaining the original color watermark image, and preprocessing the original color watermark image;

[0009] Step 2: embed watermark information in the three channels of the image by combining integer wavelet transform, singular value decomposition and Hadamard transform;

[0010] Step 3, extracting the watermark from the color image embedded with the watermark information;

[0011] Step 4: Get the optimal embedding factor through the frost optimization algorithm.

[0012] Furthermore, the specific process of step 1 is as follows:

[0013] Step 1.1: Get the original color watermark image ,right The three channels of R, G, and B are scrambled by generalized Gray code transformation to obtain scrambled images of the three channels;

[0014] (1);

[0015] in, For Channel Scrambled image of It is R channel, G channel or B channel; To scramble the generalized Gray code transform;

[0016] Step 1.2: Perform scrambling of the four-dimensional hyperchaotic Lorenz system;

[0017] The expression of the four-dimensional hyperchaotic Lorenz system is:

[0018] (2);

[0019] in, , , , are the four state variables of the system; , , , They are , , , Derivatives with respect to time; , , , They are the control parameters of the four-dimensional hyperchaotic Lorenz system;

[0020] The classic fourth-order Runge-Kutta algorithm is used to solve the Lorenz chaotic system and the chaotic sequence is obtained. ,Will Convert to a sequence of integers , then Divide and Two parts, as follows:

[0021] (3);

[0022] (4);

[0023] (5);

[0024] in, is the modulo operation; is the number of rows of the image; is the number of columns of the image; For the first element to A subsequence of elements; For the Elements to A subsequence of elements;

[0025] Step 1.3, according to , Generate a new index sequence ;set up is the pixel value sequence of the original color watermark image, For the Line Column pixels; according to the new index sequence , rearrange the image pixels to obtain a rearranged scrambled image;

[0026] (6);

[0027] (7);

[0028] (8);

[0029] in, is the pixel value sequence number, ; Represents the rearranged A sequence of pixel values; For the new index sequence No. pixel value; For Channel After rearrangement A sequence of pixel values; For Channel The rearranged scrambled image;

[0030] Step 1.4: Perform a 2-level integer wavelet transform to obtain the low-frequency subband. The formula is as follows:

[0031] (9);

[0032] (10);

[0033] in, , , , They are the color watermark image channels obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; is integer wavelet transform; , , , They are the color watermark image channels obtained by 2-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band;

[0034] Step 1.5: Perform Hadamard transform to get the Hadamard matrix:

[0035] (11);

[0036] in, For Channel The Hadamard matrix of is the Hadamard transform.

[0037] Furthermore, the specific process of step 2 is as follows:

[0038] Step 2.1: Get the original color carrier image ,Will Convert from RGB color space to YCbCr color space to obtain Y, Cb, Cr three-channel images in YCbCr color space;

[0039] (12);

[0040] in, Channels in the YCbCr color space image; channel It is Y channel, Cb channel or Cr channel; It converts the RGB color space into the YCbCr color space;

[0041] Step 2.2: Perform a 3-level integer wavelet transform on the three channels of Y, Cb, and Cr to obtain the low-frequency subband of each channel:

[0042] (13);

[0043] (14);

[0044] (15);

[0045] in, , , , They are the color carrier image channels obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , Respectively represent the color carrier image channels obtained by 2-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , They are the color carrier image channels obtained by 3-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band;

[0046] Step 2.3: Perform singular value decomposition to obtain the left singular matrix, right singular matrix, and diagonal matrix corresponding to the three channels of Y, Cb, and Cr;

[0047] (16);

[0048] in, For Channel The left singular matrix of ; For Channel The diagonal matrix of ; For Channel The right singular matrix of ; is the singular value decomposition;

[0049] Step 2.4: Perform Hadamard transform to obtain the transformed singular value matrix ;

[0050] (17);

[0051] Step 2.5: Embed watermark information using the following formula:

[0052] (18);

[0053] in, is the pixel matrix after embedding watermark information; is the embedded factor;

[0054] Step 2.6: The inverse Hadamard transform is performed using the following formula:

[0055] (19);

[0056] in, is the pixel matrix after inverse Hadamard transformation; is the inverse Hadamard transform;

[0057] Step 2.7: Perform singular value decomposition to obtain the left singular matrix of embedded watermark information , the diagonal matrix of embedded watermark information , the right singular matrix of embedded watermark information :

[0058] (20);

[0059] Step 2.8: Perform inverse singular value decomposition according to the following formula to obtain the low-frequency sub-band image embedded with watermark information:

[0060] (twenty one);

[0061] in, is transposed; The color carrier image channel embedded with watermark information is a 3-level integer wavelet transform The low frequency subband of

[0062] Step 2.9: Reconstruct the color image embedded with watermark information by applying inverse 3-level integer wavelet transform ; Combine the three channels, and then Convert from YCbCr color space to RGB color space to get the final color image with embedded watermark information ;

[0063] (twenty two);

[0064] (twenty three);

[0065] (twenty four);

[0066] (25);

[0067] in, represents the inverse integer wavelet transform; The color carrier image channel embedded with watermark information is a 2-level integer wavelet transform The low frequency subband of The color carrier image channel embedded with watermark information is a 1-level integer wavelet transform The low frequency subband of To convert the YCbCr color space to the RGB color space.

[0068] Furthermore, the specific process of step 3 is as follows:

[0069] Step 3.1: Convert from RGB color space to YCbCr color space, and then perform 3-level integer wavelet transform on Y, Cb, and Cr channels respectively;

[0070] (26);

[0071] (27);

[0072] (28);

[0073] in, , , , They are the color image channels with embedded watermark information obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , The color image channels with embedded watermark information obtained by 2-level integer wavelet transform are Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , The color image channels with embedded watermark information obtained by 3-level integer wavelet transform are Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; for Channel ;

[0074] Step 3.2: Perform singular value decomposition to obtain the diagonal matrix of the watermark information embedded in the three channels of Y, Cb, and Cr:

[0075] (29);

[0076] in, Channel for embedding watermark information The left singular matrix of ; Channel for embedding watermark information The right singular matrix of ; Channel for embedding watermark information The diagonal matrix of ;

[0077] Step 3.3: Perform inverse singular value decomposition to obtain the decomposed diagonal matrix of embedded watermark information:

[0078] (30);

[0079] in, is the channel of embedded watermark information after decomposition The diagonal matrix of ;

[0080] Step 3.4: Perform Hadamard transform to get the matrix of embedded watermark information after Hadamard transform :

[0081] (31);

[0082] Step 3.5: Extract watermark image information according to the following formula:

[0083] (32);

[0084] in, Channel for extracting watermark information Matrix of

[0085] Step 3.6: Perform inverse Hadamard transform to obtain the low-frequency subbands of the three channels R, G, and B of the inverse transformed watermark image:

[0086] (33);

[0087] in, is the watermark image channel after inverse transformation The low frequency subband of

[0088] Step 3.7: Reconstruct the three channels of the watermark image using the inverse 2nd-level integer wavelet transform :

[0089] (34);

[0090] (35);

[0091] in, The watermark image channel of the first-level integer wavelet transform of the extracted watermark information The low frequency subband of

[0092] Step 3.8: Decryption is performed, and the decryption operation includes the inverse process of hyperchaotic Lorenz encryption and the inverse scrambled generalized Gray code transformation;

[0093] Step 3.9: Merge the three channels of the image to extract the watermark image .

[0094] Furthermore, the specific process of step 4 is as follows: first, the position and parameters are initialized, the watermark embedding process of step 2 is executed, and the peak signal-to-noise ratio value and the structural similarity index measurement value of the color image with the final watermark information embedded and the original color carrier image are calculated; then, after different types of attacks are performed on the image with the embedded watermark information, the watermark image is extracted according to the watermark extraction process of step 3, and the normalized mutual correlation value is calculated; finally, the fitness value is calculated according to the fitness function, and the fitness value will change from small to large and then to small. When it no longer increases, it is the maximum value of the fitness. If the fitness value reaches the maximum value, the value of the embedding factor is saved. If it is not reached, the fitness value is continuously updated to obtain the optimal embedding factor. .

[0095] Furthermore, the calculation formula of the peak signal-to-noise ratio is:

[0096] (36);

[0097] in, is the peak signal-to-noise ratio value; , They are the original color carrier images , the final color image with embedded watermark information In the channel Middle position The pixel value at ; Indicates the maximum pixel value; is the total number of rows; is the total number of columns;

[0098] The calculation formula of the structural similarity index metric is:

[0099] (37);

[0100] in, is the structural similarity index metric; is the brightness estimate, is the contrast estimation, For structural estimation;

[0101] The calculation formula of the normalized cross-correlation value is:

[0102] (38);

[0103] in, is the normalized cross-correlation value; , They are the original color watermark images , the extracted watermark image In the channel Location The pixel value at ;

[0104] The calculation formula of the fitness function is:

[0105] (39);

[0106] in, is the fitness value; Indicates the number of attack methods. Indicates the number of iterations.

[0107] The beneficial technical effects brought by the present invention are as follows: the present invention combines integer wavelet transform, singular value decomposition and Hadamard transform to improve the robustness and invisibility of the watermarking scheme; the three indicators of peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and normalized correlation (NC) are used as fitness functions, and the optimal embedding factor is found through the RIME optimization algorithm; the scrambled generalized Gray code transform and the four-dimensional hyperchaotic Lorenz system are combined to encrypt the watermark image, thereby improving the security of the watermark information. The complexity of the watermarking scheme proposed by the present invention is O(n 3 ), which is comparable to the complexity of the SVD-based watermarking scheme. In general, the scheme of the present invention can improve the robustness of the watermark while maintaining high invisibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0108] Figure 1 This is a flow chart of the adaptive robust watermarking method of integer wavelet transform based on frost optimization of the present invention.

[0109] Figure 2 The figure is a flow chart of the original color watermark image preprocessing process and the watermark embedding process of the present invention.

[0110] Figure 3 The flowchart of the watermark extraction process of the present invention.

[0111] Figure 4 This is a comparison chart of the peak signal-to-noise ratio values ​​under different embedding factors under different carriers in the experiment of the present invention. DETAILED DESCRIPTION

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

[0113] like Figure 1 As shown, an adaptive robust watermarking method based on integer wavelet transform optimized by frost and ice is shown. The method combines integer wavelet transform, singular value decomposition and Hadamard transform, and mainly includes embedding stage and extraction stage. In the embedding stage, the watermark image is first preprocessed, and then the color carrier image is converted from RGB color space to YCbCr color space, and the watermark information is embedded in three channels by integer wavelet transform, singular value decomposition and Hadamard transform. Among them, the optimal embedding strength is obtained by the frost and ice optimization algorithm. Finally, in the extraction stage, the watermark image is reconstructed to obtain the watermark image. Specifically, the following steps are included:

[0114] Step 1: In order to improve the security and anti-attack ability of watermark information, the original color watermark image needs to be preprocessed. The present invention proposes a dual encryption algorithm that protects watermark information by combining scrambled generalized Gray code transform and four-dimensional hyperchaotic Lorenz system. Scrambled generalized Gray code transform has high randomness and diffusion, which can better confuse and diffuse the grayscale value of the image, and has low complexity. Scrambling the image pixel value through the four-dimensional hyperchaotic Lorenz system can effectively enhance the security of the watermark information. Figure 2 As shown, the specific process of step 1 is:

[0115] Step 1.1: Get the original color watermark image Based on the scrambled generalized Gray code transform and the four-dimensional hyperchaotic Lorenz system Double encryption of the R, G, and B channels; first, The three channels of R, G, and B are scrambled by generalized Gray code transformation to obtain scrambled images of the three channels;

[0116] (1);

[0117] in, For Channel Scrambled image of It is R channel, G channel or B channel; To scramble the generalized Gray code transform;

[0118] Step 1.2, then Perform scrambling of the four-dimensional hyperchaotic Lorenz system;

[0119] The expression of the four-dimensional hyperchaotic Lorenz system is:

[0120] (2);

[0121] in, , , , are the four state variables of the system; , , , They are , , , Derivatives with respect to time; , , , are the control parameters of the four-dimensional hyperchaotic Lorenz system. , , , The system is in a hyperchaotic state.

[0122] Setting the initial values ​​of the four state variables of the four-dimensional hyperchaotic Lorenz system , , , They are 1.1, 2.2, 3.3, and 3.3 respectively. The classic fourth-order Runge-Kutta algorithm (RK4) is used to solve the Lorenz chaotic system and obtain the chaotic sequence ,Will Convert to a sequence of integers , then Divide and Two parts, as follows:

[0123] (3);

[0124] (4);

[0125] (5);

[0126] in, is the modulo operation; is the number of rows of the image; is the number of columns of the image; For the first element to A subsequence of elements; For the Elements to A subsequence of elements;

[0127] Step 1.3, according to , Generate a new index sequence , as shown below. is the pixel value sequence of the original color watermark image, For the Line Column pixels; according to the new index sequence , rearrange the image pixels to obtain a rearranged scrambled image;

[0128] (6);

[0129] (7);

[0130] (8);

[0131] in, is the pixel value sequence number, ; Represents the rearranged A sequence of pixel values; For the new index sequence No. pixel value; For Channel After rearrangement A sequence of pixel values; For Channel The rearranged scrambled image;

[0132] Step 1.4: Perform a 2-level integer wavelet transform to obtain the low-frequency subband. The formula is as follows:

[0133] (9);

[0134] (10);

[0135] in, , , , They are the color watermark image channels obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; is integer wavelet transform; , , , They are the color watermark image channels obtained by 2-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band;

[0136] Step 1.5: Perform Hadamard transform to get the Hadamard matrix:

[0137] (11);

[0138] in, For Channel The Hadamard matrix of is the Hadamard transform.

[0139] Step 2: embed watermark information in the three channels of the image by combining integer wavelet transform, singular value decomposition and Hadamard transform; the watermark embedding process includes the following steps:

[0140] Step 2.1, obtain the original color carrier image, and convert the original color carrier image Convert from RGB color space to YCbCr color space to obtain Y, Cb, Cr three-channel images in YCbCr color space;

[0141] (12);

[0142] in, Channels in the YCbCr color space image; channel It is Y channel, Cb channel or Cr channel; It converts the RGB color space into the YCbCr color space;

[0143] Step 2.2: Perform a 3-level integer wavelet transform on the three channels of Y, Cb, and Cr to obtain the low-frequency subband of each channel:

[0144] (13);

[0145] (14);

[0146] (15);

[0147] in, , , , They are the color carrier image channels obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , Respectively represent the color carrier image channels obtained by 2-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , They are the color carrier image channels obtained by 3-level integer wavelet transform low-frequency sub-band, horizontal detail sub-band, vertical detail sub-band, and diagonal detail sub-band.

[0148] Step 2.3: Perform singular value decomposition to obtain the left singular matrix, right singular matrix, and diagonal matrix corresponding to the three channels of Y, Cb, and Cr;

[0149] (16);

[0150] in, For Channel The left singular matrix of ; For Channel The diagonal matrix of ; For Channel The right singular matrix of ; is the singular value decomposition;

[0151] Step 2.4: Perform Hadamard transform to obtain the transformed singular value matrix ;

[0152] (17);

[0153] Step 2.5: Embed watermark information using the following formula:

[0154] (18);

[0155] in, is the pixel matrix after embedding watermark information; is the embedded factor;

[0156] Step 2.6: The inverse Hadamard transform is performed using the following formula:

[0157] (19);

[0158] in, is the pixel matrix after inverse Hadamard transformation; is the inverse Hadamard transform;

[0159] Step 2.7: Perform singular value decomposition to obtain the left singular matrix of embedded watermark information , the diagonal matrix of embedded watermark information , the right singular matrix of embedded watermark information :

[0160] (20);

[0161] Step 2.8: Perform inverse singular value decomposition according to the following formula to obtain the low-frequency sub-band image embedded with watermark information:

[0162] (twenty one);

[0163] in, is transposed; The color carrier image channel embedded with watermark information is a 3-level integer wavelet transform The low frequency subband of

[0164] Step 2.9: Reconstruct the color image embedded with watermark information by applying inverse 3-level integer wavelet transform . Combine the three channels and then Convert from YCbCr color space to RGB color space to get the final color image with embedded watermark information ;

[0165] (twenty two);

[0166] (twenty three);

[0167] (twenty four);

[0168] (25);

[0169] in, represents the inverse integer wavelet transform; The color carrier image channel embedded with watermark information is a 2-level integer wavelet transform The low frequency subband of The color carrier image channel embedded with watermark information is a 1-level integer wavelet transform The low frequency subband of To convert the YCbCr color space into the RGB color space.

[0170] Step 3: Extract the watermark from the color image embedded with the watermark information; Figure 3 As shown, the watermark extraction process includes the following steps:

[0171] Step 3.1: The final color image with embedded watermark information Convert from RGB color space to YCbCr color space, and then perform 3-level integer wavelet transform on Y, Cb, and Cr channels respectively;

[0172] (26);

[0173] (27);

[0174] (28);

[0175] in, , , , They are the color image channels with embedded watermark information obtained by 1-level integer wavelet transform Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , The color image channels with embedded watermark information obtained by 2-level integer wavelet transform are Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; , , , The color image channels with embedded watermark information obtained by 3-level integer wavelet transform are Low frequency sub-band, horizontal detail sub-band, vertical detail sub-band, diagonal detail sub-band; Color image with embedded watermark information Channel ;

[0176] Step 3.2: Perform singular value decomposition to obtain the diagonal matrix of the watermark information embedded in the three channels of Y, Cb, and Cr:

[0177] (29);

[0178] in, Channel for embedding watermark information The left singular matrix of ; Channel for embedding watermark information The right singular matrix of ; Channel for embedding watermark information The diagonal matrix of ;

[0179] Step 3.3: Perform inverse singular value decomposition to obtain the decomposed diagonal matrix of embedded watermark information:

[0180] (30);

[0181] in, is the channel of embedded watermark information after decomposition The diagonal matrix of ;

[0182] Step 3.4: Perform Hadamard transform to get the matrix of embedded watermark information after Hadamard transform :

[0183] (31);

[0184] Step 3.5: Extract watermark image information according to the following formula:

[0185] (32);

[0186] in, Channel for the extracted watermark information Matrix of

[0187] Step 3.6: Perform inverse Hadamard transform to obtain the low-frequency subbands of the three channels R, G, and B of the inverse transformed watermark image:

[0188] (33);

[0189] in, is the watermark image channel after inverse transformation The low frequency subband of

[0190] Step 3.7: Reconstruct the three channels of the watermark image using the inverse 2nd-level integer wavelet transform :

[0191] (34);

[0192] (35);

[0193] in, The watermark image channel of the first-level integer wavelet transform of the extracted watermark information The low frequency subband of

[0194] Step 3.8: Decryption is performed, and the decryption operation includes the inverse process of hyperchaotic Lorenz encryption and the inverse scrambled generalized Gray code transformation;

[0195] Step 3.9: Merge the three channels of the image to extract the watermark image .

[0196] Step 4: Get the best embedding factor through the frost ice optimization algorithm (RIME). First, initialize the position and parameters, execute the watermark embedding process of step 2, and calculate the PSNR value and SSIM value of the color image with the final watermark information embedded and the original color carrier image; then, after performing different types of attacks on the image with the embedded watermark information, extract the watermark image according to the watermark extraction process of step 3, and calculate the NC value; finally, calculate the fitness value according to the fitness function. The fitness value will change from small to large and then to small. When it no longer increases, it is the maximum value of the fitness. If the fitness value reaches the maximum value, the value of the embedding factor is saved. If it does not reach it, the fitness value continues to be updated to get the optimal embedding factor. .

[0197] Introduce the various evaluation indicators used in the optimization algorithm:

[0198] Invisibility and robustness are two basic properties of digital watermarks. The invisibility of a watermark is evaluated by the peak signal-to-noise ratio (PSNR) and the structural similarity index metric (SSIM). Good invisibility means that the watermarked image looks almost exactly the same as the original image. The definition of PSNR is as follows:

[0199] (36);

[0200] in, is the peak signal-to-noise ratio value; , They are the original color carrier images , the final color image with embedded watermark information In the channel Middle position The pixel value at ; Indicates the maximum pixel value; is the total number of rows; is the total number of columns;

[0201] Structural Similarity Index (SSIM) is an indicator for evaluating image quality, which can measure the similarity between the image embedded with watermark information and the original carrier image. SSIM is measured by three index factors: image brightness, contrast and structure. The calculation formula is as follows:

[0202] (37);

[0203] in, is the structural similarity index metric; is the brightness estimate, is the contrast estimation, For structural estimation.

[0204] Normalized cross correlation (NC) is achieved by comparing the similarity between the original watermark and the watermark extracted after the attack, and can be used to measure robustness. When the NC value is close to 1, it indicates that the scheme is robust to these attacks. The calculation method is shown in the following formula:

[0205] (38);

[0206] in, is the normalized cross-correlation value; , They are the original color watermark images , the extracted watermark image In the channel Location The pixel value at .

[0207] In order to better balance invisibility and robustness, it is critical to select a suitable fitness function. The present invention uses the above three indicators to construct a fitness function, and the fitness function is defined as follows:

[0208] (39);

[0209] in, is the fitness value; Represents the number of attack methods. In the proposed scheme, , indicating that filtering attacks (including median filtering, average filtering, and Gaussian filtering) and noise attacks (including salt and pepper noise, Gaussian noise, and speckle noise) are applied. Indicates the number of iterations.

[0210] In order to prove the feasibility and superiority of the present invention, comparative experimental analysis was carried out.

[0211] The experiment of the present invention was simulated using MATLAB r2021b in a 2.50GHZ CPU, 16GB RAM, and Win11 operating environment to evaluate the invisibility, robustness, embedding capacity, and security of the watermarking scheme. The evaluation indicators include the PSNR, SSIM of the watermark image, and the NC value of the extracted watermark image. Six 512×512 color images of Lena, Baboon, Peppers, Airplane, Sailboat, and Barbara were selected from the standard image data USC-SIPI as the original color carrier images, and two 24-bit original color watermark images W1 and W2 of 256×256 size were tested.

[0212] When searching for the optimal embedding factor, it is usually necessary to use an optimization algorithm with strong global search capabilities. The frost optimization algorithm can overcome the limitations of local optimal solutions, find the global optimal solution, and has a faster convergence speed. Therefore, the present invention adopts the frost optimization algorithm, and the parameters selected by the frost optimization algorithm include the number of search agents, the number of iterations, the lower boundary, and the upper boundary, and the specific values ​​set are: 50, 100, 0, and 1 respectively.

[0213] When embedding watermark information, the algorithm of the present invention uses the RIME algorithm to calculate the optimal embedding factor for different carrier images. The values ​​of the embedding factors calculated for the six carrier images of Lena, Baboon, Peppers, Airplane, Sailboat and Barbara are 0.055225, 0.059383, 0.071768, 0.033055, 0.052132 and 0.046972, respectively. The three decimal places are retained as the value of the optimal embedding factor in the algorithm.

[0214] Experiment 1: Invisibility analysis;

[0215] Invisibility is a key feature of digital watermarking technology and an important criterion for evaluating the performance of watermarking algorithms. It ensures the concealment of the watermarked image. Good visual effects require that the image embedded with the watermark information is difficult to detect the difference between it and the original image within the range of human visual perception, thereby ensuring the practicality and effectiveness of the digital watermark.

[0216] In the experiment, the original color watermark images W1 and W2 are embedded into the original color carrier image successively, and the PSNR value and SSIM value of the embedded watermark information image are calculated to detect the invisibility of the watermark. Among them, the range of SSIM value and NC value is (0,1), and the closer the NC value is to 1, the better the robustness. When the PSNR value is greater than 40dB and the SSIM value is close to 1, the watermark scheme has good invisibility.

[0217] Table 1 lists the PSNR values ​​and SSIM values ​​of different original color watermark images embedded in different original color carrier images. It can be seen that the average PSNR is higher than 59db and the average SSIM is higher than 0.99. Figure 4 The PSNR values ​​of the watermark information W1 embedded in different original color carrier images are shown. It can be seen that when When , the minimum PSNR value is still higher than 40db. This shows that the watermarking scheme proposed in the present invention has good invisibility.

[0218] Table 1 Invisibility results of the proposed algorithm

[0219] .

[0220] Taking W1 as the original color watermark image, the PSNR value and SSIM value of the embedded watermark information image are calculated and compared with other watermarking schemes. Scheme 1 is a quaternion Fourier transform (QFT) algorithm based on Arnold transform and chaotic encryption; Scheme 2 is an improved color image watermarking algorithm based on Shure decomposition; Scheme 3 is a blind color digital image watermarking method based on image correction and eigenvalue decomposition (EVD). PSNR (unit: dB) and SSIM are used to compare the invisibility of the proposed scheme with various other watermarking schemes. The specific results are shown in Table 2. Figure 2 The values ​​in are PSNR (unit: dB) and SSIM, for example, the value 47.4800 / 0.96 corresponding to solution 1 means that the PSNR is 47.4800 dB and the SSIM is 0.96. It can be seen from Table 2 that the PSNR and SSIM values ​​of the solution proposed in the present invention are significantly higher than those of other solutions. This shows that the proposed solution has good invisibility overall.

[0221] Table 2 Comparison of the invisibility of the solution proposed in this invention and other watermarking solutions

[0222] .

[0223] Experiment 2: Embedded Capacity Analysis;

[0224] With the widespread application of color images in various fields, embedding color watermark images into carrier images has obvious advantages. Existing watermark algorithms have covered various types of watermark images, including binary images, grayscale images and color watermark images. Embedding capacity is an important evaluation indicator of watermarking schemes. Generally speaking, the higher the embedding capacity, the lower the PSNR value will be. This is because increasing the embedding capacity usually means making greater modifications to the carrier image to hide more information. The present invention applies a 2-level integer wavelet transform to a 24-bit original color watermark image of size 256 × 256, and the actual low-frequency subband size obtained is 64×64. Therefore, the actual embedding capacity of the watermarking scheme proposed in the present invention can be calculated as: .

[0225] Table 3 is a comparison of the embedding capabilities of different schemes. Table 3 shows that the scheme proposed in the present invention embeds more watermark information, and the actual embedding capacity is much higher than other schemes. Combined with the comparison in PSNR data in Table 2, it can be seen that the scheme of the present invention can maintain high image quality while ensuring high embedding capacity.

[0226] Table 3 Comparison of embedding capabilities of different solutions

[0227] .

[0228] Experiment 3: Robustness analysis;

[0229] In watermarking methods, robustness refers to the ability to extract the watermark from the image in which the watermark information is embedded in the face of various attacks. There are 15 types of attacks used, including filtering (median filtering, average filtering and Gaussian filtering), adding noise (salt and pepper noise, Gaussian noise and speckle noise), image compression (JPEG compression and JPEG2000 compression), image enhancement methods (sharpening, gamma correction and histogram equalization) and geometric attacks (rotation, cropping, shearing and scaling).

[0230] Table 4 shows the NC values ​​of the extracted watermarked images after different attacks. Generally, when the NC value is greater than 0.75, it is considered acceptable. It can be seen from Table 4 that when the watermarked image is subjected to different attacks, all NC values ​​are above 0.9, indicating that the proposed watermarking scheme has good robustness. From the data in Table 4, it can be seen that the scheme of the present invention is very robust to filtering attacks and noise attacks, and the NC values ​​of the extracted watermarked images are all greater than 0.99. When the watermarked image is subjected to gamma correction (0.25), histogram equalization, and geometric attacks, the extracted watermarked image can still be accurately recognized.

[0231] Table 4 Comparison of NC values ​​of watermarked images extracted after various attacks

[0232] .

[0233] By calculating the NC value of the watermark image extracted after various attacks, a comparative analysis is conducted with Scheme 1, Scheme 2, and Scheme 3. It can be seen from Table 5 that the NC value of the proposed scheme is significantly higher than that of Scheme 1, showing strong robustness. It can be seen from Table 6 that the mean NC of Scheme 2 is significantly lower than that of the scheme proposed in the present invention. When facing salt and pepper noise and sharpening attacks, the NC values ​​are comparable, while for other attacks, the proposed scheme shows obvious advantages. Table 7 shows that when facing median filtering, JPEG2000, and 60° rotation attacks, the NC value of the present invention is higher than that of Scheme 3, and the obtained NC mean is higher than that of Scheme 3. This shows that the proposed scheme has good robustness overall.

[0234] Table 5 Comparison of NC values ​​between the present invention and Scheme 1

[0235] .

[0236] Table 6 Comparison of NC values ​​between the present invention and Scheme 2

[0237] .

[0238] Table 7 Comparison of NC values ​​between the present invention and Scheme 3

[0239] .

[0240] Experiment 4: Safety analysis;

[0241] The present invention realizes double encryption of watermark image by combining scrambled generalized Gray code transformation and four-dimensional hyper-chaotic Lorenz system, which ensures the security of watermark image and makes it more difficult to crack. The initial value of the four-dimensional hyper-chaotic Lorenz system is used as four keys. Unauthorized persons cannot extract the complete watermark image without the complete key. Taking the carrier image "Lena" containing the watermark as an example, when the other three keys are correct, only one key is , , , When the four keys are correct, the watermark image cannot be decrypted correctly and it is difficult to identify the watermark related information. Only when the four keys are completely correct can the watermark image be completely and effectively decrypted.

[0242] From the security analysis of the key, we can see that , , and The accuracy of , , and , then the key space is , significantly greater than Therefore, the algorithm proposed in the present invention can effectively resist exhaustive attacks in the image encryption process. At the same time, the scrambled generalized Gray code transform can resist statistical attacks, so the security of the proposed watermarking scheme can be effectively guaranteed.

[0243] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. An adaptive robust watermarking method based on integer wavelet transform optimized by frost, characterized in that: The steps include: Step 1, obtaining the original color watermark image, and preprocessing the original color watermark image; Step 2: In the three channels of the image, watermark information is embedded by combining integer wavelet transform, singular value decomposition and Hadamard transform. The specific process is as follows: Step 2.1, obtain the original color carrier image H, convert H from the RGB color space to the YCbCr color space, and obtain the Y, Cb, Cr three-channel image in the YCbCr color space; H j * =rgb2ycbcr(H) (12); Among them, H j * is the image of channel j in YCbCr color space; channel j is Y channel, Cb channel or Cr channel; rgb2ycbcr(·) converts RGB color space to YCbCr color space; Step 2.2: Perform a 3-level integer wavelet transform on the three channels of Y, Cb, and Cr to obtain the low-frequency subband of each channel: [LL j ,LH j ,HL j ,HH j ]=IWT(H j * ) (13); [LL 2j ,LH 2j ,HL 2j ,HH 2j ]=IWT(LL j ) (14); [LL 3j ,LH 3j ,HL 3j ,HH 3j ]=IWT(LL 2j ) (15); Among them, LL j , LH j , HL j , HH j are the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color carrier image channel j obtained by level 1 integer wavelet transform; LL 2j , LH 2j , HL 2j , HH 2j They represent the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color carrier image channel j obtained by the 2-level integer wavelet transform; LL 3j , LH 3j , HL 3j , HH 3j They are respectively the low frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color carrier image channel j obtained by 3-level integer wavelet transform; Step 2.3: LL 3j Perform singular value decomposition to obtain the left singular matrix, right singular matrix, and diagonal matrix corresponding to the three channels of Y, Cb, and Cr; [U j ,S j ,V j ]=SVD(LL 3j ) (16); Among them, U j is the left singular matrix of channel j; S j is the diagonal matrix of channel j; V j is the right singular matrix of channel j; SVD(·) is the singular value decomposition; Step 2.4: S j Perform Hadamard transform to obtain the transformed singular value matrix S Hj ; S Hj =HT(S j ) (17); Step 2.5: Embed watermark information using the following formula: H j =S Hj +α×H k (18); Among them, H j is the pixel matrix after embedding watermark information; α is the embedding factor; Step 2.6: H j The inverse Hadamard transform is performed using the following formula: S Hj ′=iHT(H j ) (19); Among them, S Hj ′ is the pixel matrix after inverse Hadamard transform; iHT(·) is the inverse Hadamard transform; Step 2.7: S Hj ′ Perform singular value decomposition to obtain the left singular matrix U embedded with watermark information wj , the diagonal matrix S of embedded watermark information wj , the right singular matrix V embedded with watermark information wj : [U wj ,S wj ,V wj ]=SVD(S Hj ′) (20); Step 2.8: Perform inverse singular value decomposition according to the following formula to obtain the low-frequency sub-band image embedded with watermark information: LL 3wj =U j ×S wj ×V j T (21); Among them, T is transpose; LL 3wj is the low-frequency subband of channel j of the color carrier image embedded with watermark information by 3-level integer wavelet transform; Step 2.9: Reconstruct the color image H embedded with watermark information by applying inverse 3-level integer wavelet transform emj ; Combine the three channels, and then H emj Convert from YCbCr color space to RGB color space to get the final color image H embedded with watermark information w ; LL 2wj =iIWT(LL 3wj ,LH 3j ,HL 3j ,HH 3j ) (22); LL wj =iIWT(LL 2wj ,LH 2j ,HL 2j ,HH 2j ) (23); H emj =iIWT(LL wj ,LH j ,HL j ,HH j ) (24); H w =ycbcr2rgb(H emj ) (25); Where iIWT(·) represents the inverse integer wavelet transform; LL 2wj is the low-frequency subband of channel j of the color carrier image embedded with watermark information by 2-level integer wavelet transform; LL wj is the low-frequency subband of channel j of the color carrier image embedded with watermark information by 1-level integer wavelet transform; ycbcr2rgb is the conversion of YCbCr color space into RGB color space; Step 3, extracting the watermark from the color image embedded with the watermark information; Step 4: Get the optimal embedding factor through the frost optimization algorithm; the specific process is: First, the position and parameters are initialized, and the watermark embedding process of step 2 is executed to calculate the peak signal-to-noise ratio value and the structural similarity index measurement value of the color image with the final watermark information embedded and the original color carrier image; then, after different types of attacks are carried out on the image with the embedded watermark information, the watermark image is extracted according to the watermark extraction process of step 3, and the normalized cross-correlation value is calculated; finally, the fitness value is calculated according to the fitness function, and the fitness value will change from small to large and then to small. When it no longer increases, it is the maximum value of the fitness. If the fitness value reaches the maximum value, the value of the embedding factor is saved. If it does not reach it, the fitness value is continuously updated to obtain the optimal embedding factor α; The calculation formula of the peak signal-to-noise ratio value is: Among them, PSNR(·) is the peak signal-to-noise ratio value; They are the original color carrier image H and the final color image H embedded with watermark information. w Position in channel k The pixel value at X max Indicates the maximum pixel value; m is the total number of rows; n is the total number of columns; The calculation formula of the structural similarity index metric is: SSIM(H,H w )=l(H,H w )c(H,H w )s(H,H w ) (37); Among them, SSIM(·) is the structural similarity index metric; l(·) is the brightness estimate, c(·) is the contrast estimate, and s(·) is the structure estimate; The calculation formula of the normalized cross-correlation value is: Where NC(·) is the normalized cross-correlation value; They are the original color watermark image W and the extracted watermark image W * At the position of channel k The pixel value at ; The calculation formula of the fitness function is: Among them, F is the fitness value; R represents the number of attack methods, and r represents the number of iterations.

2. The adaptive robust watermarking method based on integer wavelet transform optimized by frost according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1.1, obtain the original color watermark image W, perform scrambled generalized Gray code transformation on the R, G, and B channels of W respectively, and obtain a scrambled image of the three channels; W k =Gray(W) (1); Among them, W k is the scrambled image of channel k; channel k is R channel, G channel or B channel; Gray(·) is the scrambled generalized Gray code transform; Step 1.2: W k Perform scrambling of the four-dimensional hyperchaotic Lorenz system; The expression of the four-dimensional hyperchaotic Lorenz system is: Among them, x, y, z, and ω are the four state variables of the system; are the time derivatives of x, y, z, and ω respectively; a, b, c, and r are the control parameters of the four-dimensional hyperchaotic Lorenz system respectively; The classic fourth-order Runge-Kutta algorithm is used to solve the Lorenz chaotic system and obtain the chaotic sequence S. S is converted into an integer sequence X, and then X is divided into two parts, X1 and X2, as shown below: X1=X(1:M×N) (4); X2=X(M×N+1:2×M×N) (5); Where mod is the modulus operation; M is the number of rows of the image; N is the number of columns of the image; X1 is the subsequence from the 1st element to the M×N element; X2 is the subsequence from the M×N+1th element to the 2×M×N element; Step 1.3: Generate a new index sequence q based on X1 and X2; let A = [A1, A2, ..., A M×N ] is the pixel value sequence of the original color watermark image, A M×N is the pixel at the Mth row and the Nth column; according to the new index sequence q, the image pixels are rearranged to obtain a rearranged scrambled image; q=mod(X2+X1·(1:M×N),M×N)+1 (6); A′ i =A qi (7); Where i is the pixel value number, i = 1, 2, ..., M × N; A' i A represents the i-th pixel value sequence after rearrangement; qi is the i-th pixel value of the new index sequence q; A' ki is the i-th pixel value sequence after the rearrangement of channel k; is the rearranged scrambled image of channel k; Step 1.4: Perform a 2-level integer wavelet transform to obtain the low-frequency subband. The formula is as follows: [LL 2k ,LH 2k ,HL 2k ,HH 2k ]=IWT(LL k ) (10); Among them, LL k , LH k , HL k , HH k are the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color watermark image channel k obtained by 1-level integer wavelet transform; IWT(·) is integer wavelet transform; LL 2k , LH 2k , HL 2k , HH 2k They are respectively the low frequency subband, horizontal detail subband, vertical detail subband and diagonal detail subband of the color watermark image channel k obtained by 2-level integer wavelet transform; Step 1.5: LL 2k Perform Hadamard transform to get the Hadamard matrix: H k =HT(LL 2k ) (11); Among them, H k is the Hadamard matrix of channel k; HT(·) is the Hadamard transform.

3. The adaptive robust watermarking method based on frost-optimized integer wavelet transform according to claim 1 is characterized in that: The specific process of step 3 is as follows: Step 3.1: H w Convert from RGB color space to YCbCr color space, and then perform 3-level integer wavelet transform on Y, Cb, and Cr channels respectively; in, are the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color image channel j embedded with watermark information obtained by 1-level integer wavelet transform; are the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color image channel j embedded with watermark information obtained by 2-level integer wavelet transform; are the low-frequency subband, horizontal detail subband, vertical detail subband, and diagonal detail subband of the color image channel j embedded with watermark information obtained by three-level integer wavelet transform; H wj H w Channel j; Step 3.2: Perform singular value decomposition to obtain the diagonal matrix of the watermark information embedded in the three channels of Y, Cb, and Cr: in, is the left singular matrix of channel j where watermark information is embedded; is the right singular matrix of channel j where watermark information is embedded; is the diagonal matrix of channel j where watermark information is embedded; Step 3.3: Perform inverse singular value decomposition to obtain the decomposed diagonal matrix of embedded watermark information: in, is the diagonal matrix of channel j after decomposition and embedding watermark information; Step 3.4: Perform Hadamard transform to get the matrix of embedded watermark information after Hadamard transform Step 3.5: Extract watermark image information according to the following formula: in, is the matrix of channel k for extracting watermark information; Step 3.6: Perform inverse Hadamard transform to obtain the low-frequency subbands of the three channels R, G, and B of the inverse transformed watermark image: in, is the low-frequency subband of the watermark image channel k after inverse transformation; Step 3.7: Apply inverse 2nd-level integer wavelet transform to reconstruct the three channels of the watermark image. in, The low-frequency subband of the watermark image channel k of the first-level integer wavelet transform of the extracted watermark information; Step 3.8: Decryption is performed, and the decryption operation includes the inverse process of hyperchaotic Lorenz encryption and the inverse scrambled generalized Gray code transformation; Step 3.9: Merge the three channels of the image and extract the watermark image W. * .

Citation Information

Patent Citations

  • Wavelet domain color image watermark encryption algorithm based on differential evolution

    CN105335924A

  • Local multi-watermarking method for color image

    CN113689319A

  • Color digital image watermarking method

    CN115272045A

  • Quaternion-based color image high-capacity information hiding method

    CN116405609A

  • Robust watermarking algorithm based on WOA and RDWT-HD-SVD

    CN116862748A