A large-capacity information hiding method for color images based on quaternion

By combining integer wavelet transform and discrete cosine transform in color images, using QR code and logical chaos mapping technology, the problem of robustness and invisibility in color image information hiding is solved, and high capacity and high security are achieved The information is hidden.

CN116405609BActive Publication Date: 2024-11-29SHANDONG UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310133582.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-11-29
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

The prior art is difficult to take into account both robustness and invisibility in color image information hiding, especially in large-capacity information hiding.

Method used

Using a quaternion-based method, combining integer wavelet transform and discrete cosine transform, secret information is stored in the form of a QR code, and the Arnold transform and logical chaotic mapping are used for confusion and encryption, and the embedded factor is selected using the sine cosine algorithm to achieve secrets. High capacity of information hiding.

Benefits of technology

It improves the robustness and invisibility of information hiding, while increasing the security of images. By balancing the embedding intensity through intelligent optimization algorithms, it can effectively resist a variety of attacks, including rotation, noise and compression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116405609B_ABST
    Figure CN116405609B_ABST
Patent Text Reader

Abstract

The present invention discloses a large-capacity information hiding method for color images based on quaternions, and belongs to the field of information security. The present invention includes a secret information embedding process and a secret information extraction process; the secret information embedding process includes storing the secret information in the form of a two-dimensional code, scrambling the two-dimensional code image by the Arnold transform method, and encrypting the scrambled two-dimensional code image by the logical chaos mapping method; the embedding of the secret information is based on a framework proposed by quaternions combined with lifting wavelet transform and discrete cosine transform, and the extraction process is the inverse process of the embedding process. The important parameter embedding factor in the embedding process is determined by the sine-cosine algorithm, and a new fitness function value evaluation function is proposed in order to better balance robustness and invisibility. The present invention stores secret information in the form of a two-dimensional code, and uses the automatic error correction capability of the two-dimensional code to achieve the ability to hide more information while ensuring robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of information security, and in particular relates to a method for hiding large-capacity information in color images based on quaternions. Background Art

[0002] Information hiding refers to the technology of hiding secret information in publicly available media information, making it difficult for people to detect its existence through intuitive vision and hearing.

[0003] According to the different embedding methods of secret information, the information hiding in images is mainly divided into spatial domain algorithms and transform domain algorithms. Spatial domain algorithms embed secret information by directly modifying the pixel values ​​of the original image. Common spatial domain algorithms include least significant bit (LSB) and histogram shift (HS). Spatial domain algorithms have large embedding capacity and simple processing, but poor invisibility and robustness. Transform domain algorithms are important for hiding secret information in the carrier file. Common algorithms include discrete cosine transform (DCT), discrete Fourier transform (DFT) and discrete wavelet transform (DWT). Compared with spatial domain algorithms, transform domain algorithms have better invisibility and robustness, and many scholars have proposed various combined algorithms to optimize the effect, such as DWT-SVD, DCT-QR and other methods. However, the robustness, invisibility and large capacity of the image cannot be achieved at the same time. In order to ensure the capacity of embedded information, the robustness and invisibility of the image are often sacrificed. How to balance the two and the embedding capacity is still a research space.

[0004] Integer wavelet transform is a completely reversible transform proposed by Calderbank in 1998. It is a special implementation of discrete wavelet transform. It is generally believed that digital signals with integer amplitudes can still obtain integer transform results after wavelet transform. In addition to being completely reversible, integer wavelet transform also has the advantages of low computational complexity and saving storage space. Since the pixel values ​​of an image are all integers, this transform is very suitable for image problems.

[0005] Most of the information hiding methods for color images are to embed secret information in a certain channel of the color image, but in essence, they are still methods for processing grayscale images. Some methods are based on quaternion overall processing, which can better preserve the connection between the three channels. However, there is still a lot of room for improvement in how to achieve better invisibility and robustness, especially capacity. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a large-capacity information hiding method for color images based on quaternions. By combining integer wavelet transform and discrete cosine transform on three channels, better robustness and invisibility are achieved. At the same time, the secret information is presented in the form of a QR code, which increases the diversity and capacity of the secret information.

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

[0008] A large-capacity information hiding method for color images based on quaternions includes a secret information embedding process and a secret information extraction process; wherein,

[0009] The steps of the secret information embedding process are as follows:

[0010] Step 1.1, obtain the original color image, and divide the color image into three channels of R, G, and B for processing;

[0011] Step 1.2, perform integer wavelet transform on the three channels respectively, perform one-dimensional integer wavelet transform on the rows and columns of the image, and obtain four frequency bands LL, LH, HL, and HH of the three channels;

[0012] Step 1.3, take the LL bands of the three channels for secondary integer wavelet transform; then take the low frequency subbands LLR2, LLG2, and LLB2 of the secondary integer wavelet transform of the three channels for processing;

[0013] Step 1.4, store the secret information in the form of a two-dimensional code, then scramble the two-dimensional code image using the Arnold transform method, and finally encrypt the scrambled two-dimensional code image using the logical chaos mapping method, and finally obtain the scrambled and encrypted two-dimensional code image W2;

[0014] Step 1.5, embed W2 into the real part of the quaternion using the additive embedding rule, and the embedding factor is selected using an intelligent optimization algorithm;

[0015] Step 1.6, the unchanged imaginary part and the real part embedded with the secret information are combined to form a quaternion matrix, and then the inverse discrete cosine transform is performed to obtain LLq', and the low-frequency subbands of the three channels are separated from this matrix;

[0016] Step 1.7, perform secondary integer wavelet inverse transform on the three modified sub-bands and other unmodified sub-bands to obtain an image embedded with secret information;

[0017] The steps of the secret information extraction process are as follows:

[0018] Step 2.1, perform a secondary integer wavelet transform on the image embedded with secret information by channel, and obtain secondary low-frequency sub-bands LLR2, LLG2, and LLB2 of three channels;

[0019] Step 2.2, these three low-frequency subbands are formed into quaternions, expressed in the form of quaternion matrix and subjected to discrete cosine transform, and the obtained matrix is ​​then expressed in the form of quaternion, which has both real and imaginary parts;

[0020] Step 2.3, extract the secret information hidden in the real part according to the embedding formula used in the embedding method;

[0021] Step 2.4, performing logical chaos mapping decryption and Arnold inverse transformation on the obtained data to obtain a two-dimensional code image;

[0022] Step 2.5: Scan and decode the QR code image to obtain the secret information.

[0023] Furthermore, in step 1.2, the formula of one-dimensional integer wavelet transform is as follows:

[0024]

[0025] Among them, H(·) represents high-frequency information, L(·) represents low-frequency information, I(·) represents the pixel value of the original image, and n represents the pixel position.

[0026] Furthermore, in step 1.3, the low-frequency subbands of the three channels are represented in the form of quaternions, which are represented in the form of complex matrices as follows:

[0027]

[0028] Where (x, y) represents the position of the low-frequency subband information, and m and n represent the mth row and nth column of the quaternion matrix, respectively.

[0029] Furthermore, in step 1.5, the formula for embedding rules is as follows:

[0030] S'=S+α*W (7)

[0031] Where W represents the secret information, S represents the real information, α represents the embedding factor, and S′ represents the modified real information.

[0032] Furthermore, in step 1.5, the sine-cosine algorithm is used to find the optimal embedding factor, and the steps are as follows:

[0033] Step 1.5.1, initialize basic parameters and set the number of iterations to 100;

[0034] Step 1.5.2, set the individual position x to the embedding factor α;

[0035] Step 1.5.3, select the attack type and set the parameters to attack the obtained image;

[0036] Step 1.5.4, use the following formula to evaluate the fitness function value of the entire population:

[0037]

[0038] Where G and G' respectively represent the original image and the image after embedding secret information, Q and Q' respectively represent the original QR code image and the QR code image extracted after attack, and PSNR represents the peak signal-to-noise ratio of the image;

[0039] Step 1.5.5: Update the population position according to the sine-cosine position update formula (9).

[0040]

[0041] Among them, t represents the number of iterations, r 1 、r 2 、r 3 、r 4 They represent random numbers in different ranges respectively, and P(t) represents the current optimal solution;

[0042] Step 1.5.6, compare its fitness function value with the global optimal value and select the optimal solution;

[0043] Step 1.5.7: When the number of iterations is reached, terminate the loop.

[0044] Furthermore, in step 1.7, the formula for the inverse integer wavelet transform is as follows:

[0045]

[0046] Beneficial technical effects brought by the present invention:

[0047] The processing of secret information mainly includes three parts: storing the secret information in the form of a QR code to achieve the purpose of large-capacity hiding, then scrambling the QR code image using the Arnold transform method, and finally encrypting the scrambled QR code image using the logical chaos mapping method to increase the security of the image;

[0048] The embedding formula adopts the additive embedding rule, the embedding strength is selected using the sine-cosine algorithm, and a new evaluation function is designed to better balance robustness and invisibility;

[0049] The evaluation function is determined not only by the original image and the image embedded with the secret information, but also by the secret information and the secret information extracted after the attack, which ensures that the present invention has a certain robustness;

[0050] The attack functions include six types of attacks: rotation, Gaussian noise, salt and pepper noise, median filtering, JPEG compression and shearing. Each attack has different parameters that can be randomly selected, which can effectively eliminate randomness and ensure the comprehensiveness of the performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a flow chart of the secret information embedding process of the present invention;

[0052] Figure 2 Flow chart of the secret information extraction process of the present invention. DETAILED DESCRIPTION

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

[0054] A large-capacity information hiding method for color images based on quaternions includes a secret information embedding process and a secret information extraction process.

[0055] The secret information embedding process is to process the three channels of the color image separately, and embed the secret information in all three channels. First, the three channels are subjected to multi-level integer wavelet transform, which can improve the invisibility of the secret information. Then, the low-frequency subbands of the three channels are taken to form a quaternion matrix, and the quaternion matrix is ​​subjected to discrete cosine transform. The secret information is embedded by modifying the transformed coefficient matrix. Then, the secret information is expressed in the form of a QR code, and common logical encryption and Arnold scrambling are performed. Finally, the modified coefficient matrix is ​​subjected to inverse discrete cosine transform and multi-level integer wavelet inverse transform to obtain an image embedded with the secret information.

[0056] The secret information extraction process is the inverse process of the embedding process. The three channels of the color image are subjected to multi-level integer wavelet transform, and then the low-frequency sub-bands of the three channels are taken to form a quaternion matrix. The matrix is ​​subjected to discrete cosine transform, and the information hidden in the coefficient matrix is ​​extracted according to the embedding formula. The obtained information is decrypted and inversely transformed by Arnold to obtain the QR code image, and the secret information is decoded.

[0057] like Figure 1 As shown, the steps of the secret information embedding process of the present invention are as follows:

[0058] Step 1.1, get the original color image, the size of the original color image is 512*512*3, including three channels of R, G, and B. Divide the color image into three channels for processing, and the size of each channel is 512*512.

[0059] Step 1.2: Perform integer wavelet transform on the three channels respectively. The formula of one-dimensional integer wavelet transform is as follows:

[0060]

[0061] Among them, H(·) represents high-frequency information, L(·) represents low-frequency information, I(·) represents the pixel value of the original image, and n represents the pixel position;

[0062] One-dimensional integer wavelet transform is performed on both rows and columns of the image to obtain four frequency bands (LL, LH, HL, HH) of three channels. The size of each frequency band is 256*256, and there are 12 sub-bands in total for the three channels.

[0063] Step 1.3, take the LL bands of the three channels and perform integer wavelet transform again, that is, two-level integer wavelet transform (2L-IWT), the obtained frequency band size is 128*128, take the low-frequency subbands (LLR2, LLG2, LLB2) of the two-level integer wavelet transform of the three channels for processing; the specific processing process is as follows:

[0064] Represent the low-frequency subbands of the three channels in the form of quaternions.

[0065] Quaternion is an extension of complex number. Complex number has only one imaginary unit i, while quaternion has three imaginary units i, j, k, expressed as q=a+bi+cj+dk. Therefore, the representation of three-channel information using quaternion is q=Ri+Gj+Bk. At this time, there is only imaginary part but no real part. Then the quaternion is represented in the form of a matrix and discrete cosine transform is performed.

[0066] There are two forms of matrix representation of quaternions, namely real matrix representation and complex matrix representation, as shown in the following formulas:

[0067]

[0068]

[0069] The present invention adopts a complex matrix representation, namely:

[0070]

[0071] Where (x, y) represents the position of the low-frequency subband information, and m and n represent the mth row and nth column of the quaternion matrix, respectively.

[0072] Therefore, the size of the obtained quaternion matrix is ​​256*256. A two-dimensional discrete cosine transform QDCT is performed on this matrix, and the obtained matrix is ​​represented by a quaternion, which has both an imaginary part and a real part.

[0073] Step 1.4: Store the secret information in the form of a QR code to achieve the purpose of large-capacity hiding. The size of the QR code image is 128*128. Then scramble the QR code image using the Arnold transform method, and finally encrypt the scrambled QR code image using the logical chaos mapping method to increase the security of the image, and finally obtain the scrambled and encrypted QR code image W2.

[0074] Arnold transform is a commonly used scrambling method. The specific formula is as follows:

[0075]

[0076] Wherein, (x1, y1) represents the position of the original pixel, (x', y') is the position of the scrambled pixel, a and b are parameters, and N is a constant, which is 128 in the embodiment of the present invention.

[0077] Logical chaos mapping is a common image encryption method. The specific formula is as follows:

[0078] x n+1 =x n μ(1-x n ) (6)

[0079] Among them, x n+1 represents the value obtained after n iterations according to formula (6), and μ represents a constant. When 3.5699456<μ≤4, the logical chaotic map has chaotic properties, and the generated sequence is irregular. The generated sequence is XORed with the pixel values ​​of the image in sequence to obtain the encrypted image.

[0080] Step 1.5, the embedding formula is mainly divided into two categories, additive embedding formula and multiplicative embedding formula. The present invention embeds W2 into the real part of the quaternion according to the additive embedding rule, i.e., the following formula, and the embedding factor is selected using an intelligent optimization algorithm.

[0081] S'=S+α*W (7)

[0082] Where W represents the secret information, S represents the real information, α represents the embedding factor, and S′ represents the modified real information.

[0083] The steps of finding the optimal embedding factor using the sine-cosine algorithm are as follows:

[0084] Step 1.5.1. Initialize the basic parameters and set the number of iterations to 100. Since only one embedding factor is calculated, the optimal value can be found without too many iterations.

[0085] Step 1.5.2. Set the individual position x to the embedding factor α.

[0086] Step 1.5.3, according to Figure 1 The process shown embeds secret information and attacks the obtained image. The specific attack types and parameters are shown in Table 1:

[0087] Table 1 Attack types and parameters

[0088]

[0089] To ensure the comprehensiveness of the experiment, the PSNR values ​​after six attacks are calculated in each loop iteration, and the parameters of each attack are randomly selected from the three listed in the table above.

[0090] Step 1.5.4: Use the following evaluation function to evaluate the fitness function value of the entire population to better balance robustness and invisibility. The formula of the evaluation function is as follows:

[0091]

[0092] Among them, G and G' respectively represent the original image and the image after embedding secret information, Q and Q' respectively represent the original QR code image and the QR code image extracted after the attack, and PSNR represents the peak signal-to-noise ratio of the image.

[0093] Step 1.5.5: Update the formula (9) according to the position of sine and cosine, and then update the population position.

[0094]

[0095] Among them, t represents the number of iterations, r 1 、r 2 、r 3 、r 4 They represent random numbers in different ranges respectively, and P(t) represents the current optimal solution.

[0096] Step 1.5.6: Compare its fitness function value with the global optimal value and select the optimal solution.

[0097] Step 1.5.7: When the number of iterations is reached, terminate the loop.

[0098] The fitness function value evaluation function is not only determined by the original image and the image embedded with secret information, but also by the secret information and the secret information extracted after the attack in order to ensure the invention has a certain robustness. In order to eliminate randomness and comprehensiveness, the attack function includes six attacks: rotation, Gaussian noise, salt and pepper noise, median filtering, JPEG compression and shearing. Each attack has different parameters that can be randomly selected.

[0099] The pseudo code for finding the embedding factor using the intelligent optimization algorithm is as follows:

[0100]

[0101]

[0102] Step 1.6, the unchanged imaginary part and the real part embedded with secret information are combined to form a quaternion matrix, and then the inverse discrete cosine transform IQDCT is performed to obtain LLq'. From this matrix, the low-frequency sub-bands LLR2', LLG2', and LLB2' of the three channels can be separated.

[0103] Step 1.7: Perform a two-level integer wavelet inverse transform on the three modified subbands and other unmodified subbands to obtain an image embedded with secret information. The formula for integer wavelet inverse transform is as follows:

[0104]

[0105] Combination Figure 2 , the steps of the secret information extraction process of the present invention are as follows:

[0106] Step 2.1: Perform two-level integer wavelet transform (2L-IWT) on the image embedded with secret information by channel, and obtain two-level low-frequency sub-bands (LLR2, LLG2, LLB2) of three channels.

[0107] Step 2.2: The three low-frequency subbands are constructed into quaternions, which are expressed in the form of quaternion matrices and subjected to discrete cosine transform (QDCT). The obtained matrix is ​​then expressed in the form of a quaternion, which has both real and imaginary parts.

[0108] Step 2.3: Extract the secret information hidden in the real part according to formula (11).

[0109]

[0110] Step 2.4: Generate a chaotic sequence of length 128*128 according to formula (6), perform an XOR operation on the obtained chaotic sequence and the data obtained in the previous step to perform a decryption operation to obtain a scrambled two-dimensional code image; then perform an inverse Arnold transform on the obtained data according to formula (12) to obtain a two-dimensional code image.

[0111]

[0112] Step 2.5: Scan and decode the QR code image directly to obtain the secret information image.

[0113] 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. A large-capacity information hiding method for color images based on quaternions, It is characterized in that It includes a secret information embedding process and a secret information extraction process; wherein, The steps of the secret information embedding process are as follows: Step 1.1, obtain the original color image, and divide the color image into three channels of R, G, and B for processing; Step 1.2, perform integer wavelet transform on the three channels respectively, perform one-dimensional integer wavelet transform on the rows and columns of the image, and obtain four frequency bands LL, LH, HL, and HH of the three channels; Step 1.3, take the LL bands of the three channels for secondary integer wavelet transform; then take the low frequency subbands LLR2, LLG2, and LLB2 of the secondary integer wavelet transform of the three channels for processing; In step 1.3, the low-frequency subbands of the three channels are represented in the form of quaternions, which are represented in the form of complex matrices, as follows: Where (x, y) represents the position of the low-frequency subband information, and m and n represent the mth row and nth column of the quaternion matrix respectively; Step 1.4, store the secret information in the form of a two-dimensional code, then scramble the two-dimensional code image using the Arnold transform method, and finally encrypt the scrambled two-dimensional code image using the logical chaos mapping method, and finally obtain the scrambled and encrypted two-dimensional code image W2; Step 1.5: Embed W2 into the real part of the quaternion using the additive embedding rule. The embedding factor is selected using an intelligent optimization algorithm. The formula of the embedding rule is as follows: S'=S+α*W (7) Where W represents the secret information, S represents the real information, α represents the embedding factor, and S′ represents the modified real information; The sine-cosine algorithm is used to find the optimal embedding factor. The steps are as follows: Step 1.5.1, initialize basic parameters and set the number of iterations to 100; Step 1.5.2, set the individual position x to the embedding factor α; Step 1.5.3, select the attack type and set the parameters to attack the obtained image; Step 1.5.4, use the following formula to evaluate the fitness function value of the entire population: Where G and G' respectively represent the original image and the image after embedding secret information, Q and Q' respectively represent the original QR code image and the QR code image extracted after attack, and PSNR represents the peak signal-to-noise ratio of the image; Step 1.5.5: Update the population position according to the sine-cosine position update formula (9). Among them, t represents the number of iterations, r 1 、r 2 、r 3 、r 4 They represent random numbers in different ranges respectively, and P(t) represents the current optimal solution; Step 1.5.6, compare its fitness function value with the global optimal value and select the optimal solution; Step 1.5.7: When the number of iterations is reached, terminate the loop; Step 1.6, the unchanged imaginary part and the real part embedded with the secret information are combined to form a quaternion matrix, and then the inverse discrete cosine transform is performed to obtain LLq', and the low-frequency subbands of the three channels are separated from this matrix; Step 1.7, perform secondary integer wavelet inverse transform on the three modified sub-bands and other unmodified sub-bands to obtain an image embedded with secret information; The steps of the secret information extraction process are as follows: Step 2.1, perform a secondary integer wavelet transform on the image embedded with secret information by channel, and obtain secondary low-frequency sub-bands LLR2, LLG2, and LLB2 of three channels; Step 2.2, these three low-frequency subbands are formed into quaternions, expressed in the form of quaternion matrix and subjected to discrete cosine transform, and the obtained matrix is ​​then expressed in the form of quaternion, which has both real and imaginary parts; Step 2.3, extract the secret information hidden in the real part according to the embedding formula used in the embedding method; Step 2.4, performing logical chaos mapping decryption and Arnold inverse transformation on the obtained data to obtain a two-dimensional code image; Step 2.5: Scan and decode the QR code image to obtain the secret information.

2. According to the quaternion-based color image large-capacity information hiding method of claim 1, It is characterized in that In step 1.2, the formula of one-dimensional integer wavelet transform is as follows: Among them, H(·) represents high-frequency information, L(·) represents low-frequency information, I(·) represents the pixel value of the original image, and n represents the pixel position.

3. According to the quaternion-based color image large-capacity information hiding method of claim 1, It is characterized in that In step 1.7, the formula for integer wavelet inverse transform is as follows: Among them, H(·) represents high-frequency information, L(·) represents low-frequency information, I(·) represents the pixel value of the original image, and n represents the pixel position.

Citation Information

Patent Citations

  • Method for embedding hidden information in image, detection method and anti-counterfeiting traceability method

    CN114638738A

  • Image information embedding method and storage medium

    CN115034947A