Encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos
The face image is encrypted through Ridgelet-DCT transformation and Tent-Henon double chaos model, and combined with the PCA algorithm to extract features and train the neural network, it solves the problem of insufficient resistance to geometric attacks and occlusion attacks in the existing technology, and achieves high Robust face recognition encryption method.
Patent Information
- Application Number
- CN202111243413.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing facial recognition technology has insufficient resistance to geometric attacks and occlusion attacks during the encryption process, and its robustness is low, resulting in huge security risks when facial image data is stored and transmitted in the cloud.
An encrypted face recognition method based on Ridgelet-DCT transformation and Tent-Henon double chaos is used to generate the encryption key by constructing a double chaos model, perform Ridgelet transformation and DCT transformation on the face image, and combine the PCA algorithm to extract features and train the neural network model , improve the image's ability to resist geometric attacks and occlusion attacks.
It significantly improves the ability of face images to resist geometric attacks and occlusion attacks, enhances robustness, makes it difficult to crack, and can effectively protect the security of face image data in a cloud environment.
Smart Images

Figure CN114091571B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of face recognition, and in particular to an encrypted face recognition method based on Ridgelet-DCT transformation and Tent-Henon double chaos. Background Art
[0002] Facial recognition technology refers to computer technology that uses analysis and comparison of facial feature information for identity authentication. In recent years, facial recognition technology has become a hot topic in artificial intelligence research, and facial recognition products have been widely used in finance, security inspection, medical care and other fields. While facial recognition technology brings a series of conveniences, it also poses huge security risks. During facial recognition, a large amount of original facial data is collected and stored and transmitted in the cloud, which can easily lead to the theft, leakage or tampering of facial images and personal related information by others, causing certain losses and impacts on individuals and society.
[0003] At present, the method used for face image encryption recognition is mainly the face recognition method based on wavelet dimension reduction under homomorphic encryption. Although it has a high recognition effect, it has poor resistance to geometric attacks and occlusion attacks and low robustness. Therefore, it is a technical problem that those skilled in the art need to solve urgently to provide a highly robust encrypted face recognition method with good resistance to geometric attacks and occlusion attacks. Summary of the invention
[0004] The embodiment of the present invention provides an encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos, which is used to improve the ability of face images to resist geometric attacks and occlusion attacks and has high robustness.
[0005] In view of this, the first aspect of the present invention provides an encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos, comprising the following steps:
[0006] S1. A Tent-Henon dual chaos model is constructed based on Tent chaotic scrambling and Henon chaotic scrambling. In the Tent-Henon dual chaos model, after the output matrices of Tent chaotic scrambling and Henon chaotic scrambling are binarized, the binarized output matrices of Tent chaotic scrambling and Henon chaotic scrambling are subjected to a first operation and a second operation respectively to obtain a first encryption key and a second encryption key;
[0007] S2, obtaining a face image sample, converting the face image sample into a grayscale image, and obtaining an image matrix;
[0008] S3, performing Ridgelet transform on the image matrix to obtain image data in the Ridgelet transform domain;
[0009] S4, performing a Hadamard product operation on the image data in the Ridgelet transform domain and the first encryption key to obtain first encrypted image data in the Ridgelet transform domain;
[0010] S5, performing a DCT transform on the first encrypted image data and performing a Hadamard product operation with the second encryption key to obtain second encrypted image data;
[0011] S6, performing DCT inverse transformation on the second encrypted image data to obtain encrypted face image data;
[0012] S7, adding the encrypted face image data to an encrypted face image database, and dividing the encrypted face image data in the encrypted face image database into a training set and a test set;
[0013] S8, extracting encrypted face data features of the encrypted face image data based on the PCA algorithm to obtain a projection matrix after dimensionality reduction;
[0014] S9, using the PCA algorithm to reduce the dimension of the encrypted face image data in the training set, after obtaining the projection matrix, pre-set it into the neural network model for training, obtain the trained neural network, and test the trained neural network with the test set;
[0015] S10, obtaining a face image to be recognized, and after executing steps S2-S6, extracting the reduced-dimensional projection matrix of the obtained encrypted face image data using the PCA algorithm and inputting it into the trained neural network to obtain the encrypted face image recognition result.
[0016] Optionally, the first operation is an XOR operation, and the second operation is a Hadamard product operation.
[0017] Optionally, the preset neural network is a BP neural network, which includes an input layer, two hidden layers and an output layer.
[0018] Optionally, the ratio of training set to test set is 7:3.
[0019] Optionally, the face image sample in step S2 is obtained from the ORL face database.
[0020] Optionally, the initial value of Tent's chaotic scrambling is 0.36, the control parameter is 0.998, the number of iterations is 300 times, and the two control parameters of Henon's chaotic scrambling are 1.4 and 0.314 respectively, and the number of iterations is 300 times.
[0021] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0022] The present invention provides an encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon dual chaos. A dual chaos model is used to generate a first encryption key and a second encryption key. After the face image is subjected to Ridgelet transform, the face image in the Ridgelet transform domain is encrypted once with the first encryption key. The encrypted image is then subjected to DCT transform, and a Hadamard product operation is performed with the second encryption key for secondary encryption. The encrypted face image is obtained after inverse DCT transform. Finally, the PCA algorithm is combined to extract the features of the encrypted face image, and a neural network model is trained to complete the encrypted recognition of the face image. Image encryption based on the Ridgelet-DCT transform domain takes into account the characteristics of the Ridgelet algorithm, such as higher approximation accuracy, better sparse expression capability, and the strong anti-conventional attack capability, ergodicity, and robustness of DCT. The Tent-Henon dual chaos system has a large key space (10 196 The above characteristics are high complexity and sensitive to initial values. The basic features of the encrypted face image have been hidden, making it difficult to crack. The PCA algorithm is used to extract features from the encrypted face image and then train the neural network model to reduce the complexity of the algorithm. Therefore, the face image's ability to resist geometric attacks and occlusion attacks is improved, and it has high robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present invention, and those skilled in the art can also obtain other drawings based on these drawings.
[0024] Figure 1 A flowchart of the Ridgelet-DCT transform and Tent-Henon dual chaotic encryption method provided in an embodiment of the present invention;
[0025] Figure 2 It is a principle block diagram of the Ridgelet-DCT transform and Tent-Henon dual chaos encryption method provided in an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of a facial image encryption process provided in an embodiment of the present invention;
[0027] Figure 4 8 randomly selected face images and their encrypted images provided in the embodiment of the present invention;
[0028] Figure 5The sensitivity analysis results of the encrypted face image provided in the embodiment of the present invention, where (a) is the original image; (b) is the encrypted image; (c) is the correctly decrypted image; (d) is the image in the Tent Map with x0=0.36+10 when other initial parameters remain unchanged. -16 (e) shows the wrong decryption result when other initial parameters remain unchanged and a=1.4+10 in HenonMap -16 The wrong decryption result;
[0029] Figure 6 The face image and encrypted face image with Gaussian noise (5%) provided in the embodiment of the present invention;
[0030] Figure 7 The face image and encrypted image processed by the median filter [7×7, 10 times] provided in the embodiment of the present invention;
[0031] Figure 8 The face image and encrypted image that are horizontally shifted to the left (5%) provided in the embodiment of the present invention;
[0032] Fig. 9 The face image and encrypted image rotated clockwise (10°) provided in the embodiment of the present invention;
[0033] Fig.10 : The glasses occlusion attack and encrypted image provided in the embodiment of the present invention, where (a), (b), and (c) represent images with occlusion areas of S, M, and L, respectively, and (a1), (b1), and (c1) are the corresponding encrypted images;
[0034] Fig.11 : The mask occlusion attack and encrypted image provided in the embodiment of the present invention, wherein (a), (b), and (c) respectively represent images with occlusion areas of S, M, and L, and (a1), (b1), and (c1) are the corresponding encrypted images. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0036] For easier understanding, see Figure 1 and Figure 2The encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos provided by the present invention comprises the following steps:
[0037] Step 101, constructing a Tent-Henon dual chaos model based on Tent chaotic scrambling and Henon chaotic scrambling. In the Tent-Henon dual chaos model, after the output matrices of Tent chaotic scrambling and Henon chaotic scrambling are binarized, the binarized output matrix of Tent chaotic scrambling and the output matrix of Henon chaotic scrambling are subjected to a first operation and a second operation respectively to obtain a first encryption key and a second encryption key.
[0038] Set the parameters of the Tent chaotic scrambling algorithm and the Henon chaotic scrambling algorithm. For example, the initial value x0 of the Tent chaotic scrambling algorithm is 0.36, α is 0.998, and the number of iterations is 300. Then the TentMap chaotic sequence can be generated, which is converted into a 300×300 matrix T1. The parameters of the Henon chaotic scrambling algorithm are α=1.4, β=0.314, and the number of iterations is 300. Then the HenonMap chaotic matrix H1 can be generated. Transform T1 and H1 into binary matrices, and the transformation rules are:
[0039]
[0040]
[0041] Finally, perform logical XOR operation on T1 and H1 to get the first encryption key Key1, and perform Hadamard product operation to get Key2:
[0042]
[0043] Key2=T2.*H2
[0044] Step 102: Obtain a face image sample, convert the face image sample into a grayscale image, and obtain an image matrix.
[0045] The ORL face database is used. The ORL face database contains a total of 40 people of different ages and genders. Each person has 10 face pictures from different angles, front and side. Let the original face data be Image(w,h), where w and h are the number of rows and columns of the image data. Convert the face image Image(w,h) to a p×p image matrix Image T (p, p), where p = max(w, h). In one embodiment, in order not to affect the calculation results and improve the accuracy, zeros are used for data padding:
[0046] Image T(p,p)=change(Image(w,h),zeros)
[0047] Step 103: Perform Ridgelet transform on the image matrix to obtain image data in the Ridgelet transform domain.
[0048] The face image encryption process of the present invention is as follows: Figure 3 First, Image T (p,p) performs Ridgelet transform to obtain the data Image in the Ridgelet transform domain Rid :
[0049] Image Rid =Ridgelet(Image T (p,p))
[0050] Ridgelet transform is a non-adaptive high-dimensional function representation method with directional selection and recognition capabilities, which can more effectively represent directional singular features in signals. Compared with wavelet transform, Ridgelet transform has higher approximation accuracy and better sparse expression performance for image processing, and has stronger noise suppression ability. Its mathematical model is:
[0051] CRT f (a,b,θ)=∫ R2 ψ a,b,θ (z)f(z)dz
[0052] in, is called the ridge function, is f(z) in R 2 The continuous Ridgelet transform on . In the two-dimensional case, the two can be linked through the Radon transform. The Ridgelet transform can be expressed as a one-dimensional wavelet transform on the Radon transform. The inverse transform of the Ridgelet transform is expressed as:
[0053]
[0054] Step 104: Perform a Hadamard product operation on the image data in the Ridgelet transform domain and the first encryption key to obtain first encrypted image data in the Ridgelet transform domain.
[0055] The first encryption key Key1 and Image Rid Perform Hadamard product operation to obtain the first encrypted image data Image after encryption in the Ridgelet transform domain Rid_k1 :
[0056] ImageRid_k1 =Image Rid .*Key1
[0057] Step 105: Perform a DCT transformation on the first encrypted image data and then perform a Hadamard product operation with the second encryption key to obtain second encrypted image data.
[0058] The encrypted face data still retains the data distribution characteristics of Radon transform, so it is encrypted again using DCT transform to obtain the second encrypted image data Image Rid_k1_dct :
[0059] Image Rid_k1_dct =DCT(Image Rid ).*Key1
[0060] Step 106: Perform DCT inverse transformation on the second encrypted image data to obtain encrypted face image data.
[0061] Through the inverse DCT transform, the final encrypted result EImage is output:
[0062] EImage=IDCT(Image Rid_k1_dct )
[0063] like Figure 3 and Figure 4 As shown, the encrypted result EImage image can be obtained.
[0064] Step 107: Add the encrypted face image data to an encrypted face image database, and divide the encrypted face image data in the encrypted face image database into a training set and a test set.
[0065] After step 106, encrypted facial image data may be obtained, and an encrypted facial image database may be constructed using the encrypted facial image data. The samples may be divided into a training set and a test set in a ratio of 7:3.
[0066] Step 108: extract encrypted face data features of the encrypted face image data based on the PCA algorithm to obtain a projection matrix after dimensionality reduction.
[0067] Since the encrypted face image has hidden the geometric features of the face image, and the cloud environment requires high speed and low latency for the face recognition algorithm. The present invention uses PCA to extract the features of the encrypted face image and obtain the projection matrix T after dimensionality reduction. The PCA algorithm can reduce the memory space for storing data, and the principal components are orthogonal, eliminating the mutual influence between the original data components. While reducing the complexity of the algorithm, it saves the time of neural network training.
[0068] Step 109: Reduce the dimension of the encrypted face image data in the training set using the PCA algorithm to obtain a projection matrix, which is then pre-set into a neural network model for training to obtain a trained neural network, and the trained neural network is tested using a test set.
[0069] Build a neural network structure: one input layer, two hidden layers (containing 60 neurons) and one output layer. Perform PCA dimensionality reduction processing on the divided training sample X to obtain the dimensionality reduction matrix D (the dimensionality reduction matrix of the training sample). Use D (dimensionality reduction matrix) as the input of the neural network model, create and train the neural network, and obtain a trained neural network. Encrypt the face image that needs to be tested or classified to obtain the encrypted image E1. Apply the PCA feature extraction method to the encrypted test face image E1 to obtain the dimensionality reduction projection matrix E2, which is the dimensionality reduction face matrix. Use the dimensionality reduction face matrix E2 as input data and input it into the trained neural network to complete the learning.
[0070] Step 110, obtaining a face image to be recognized, and after executing steps 102-106, extracting a reduced-dimensional projection matrix from the obtained encrypted face image data using a PCA algorithm and inputting the matrix into a trained neural network to obtain an encrypted face image recognition result.
[0071] When using the encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon dual chaos provided by the present invention, firstly, a face image to be recognized is obtained, and steps 102-106 are executed to obtain encrypted face image data. After feature extraction is performed on the encrypted face image data, the data is input into the trained neural network in step 109 to obtain an output encrypted face image recognition result.
[0072] The embodiment of the present invention provides an encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon dual chaos. A dual chaos model is used to generate a first encryption key and a second encryption key. After the face image is subjected to Ridgelet transform, the face image in the Ridgelet transform domain is encrypted once with the first encryption key. The encrypted image is then subjected to DCT transform, and a Hadamard product operation is performed with the second encryption key for secondary encryption. The encrypted face image is obtained after inverse DCT transform. Finally, the PCA algorithm is combined to extract the features of the encrypted face image, and a neural network model is trained to complete the encrypted recognition of the face image. Image encryption based on the Ridgelet-DCT transform domain takes into account the characteristics of the Ridgelet algorithm, such as higher approximation accuracy, better sparse expression capability, and the strong anti-conventional attack capability, ergodicity, and robustness of DCT. The Tent-Henon dual chaos system has a large key space (10 196The above characteristics are high complexity, and sensitive to initial values. The basic features of the encrypted face image have been hidden, making it difficult to crack. Using the PCA algorithm to extract features from the encrypted face image and then training the neural network model can reduce the complexity of the algorithm. Therefore, the ability of the face image to resist geometric attacks and occlusion attacks is improved, and it has high robustness.
[0073] In order to better demonstrate the technical effect achieved by the encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos provided in the present invention, the present invention provides the following verification examples:
[0074] (1) Sensitivity analysis
[0075] The Tent-Henon double chaotic system is highly sensitive to the initial value and is very dependent on the key. Even a slight change in the key will not result in the correct decrypted image, and the image encryption will fall into a chaotic state.
[0076] The initial parameters of Tent Map are set to: n = 300, x0 = 0.36, a = 0.998. The initial parameters of Henon Map are x0 = 0, y0 = 0, α = 1.4, β = 0.314, n = 300. While keeping other parameters unchanged, the initial parameters of Tent Map and Henon Map are changed to x0 = 0.36 + 10 -16 and α=1.4+10 -16 Can not get the correct face image, such as Figure 5 This shows that the face encryption algorithm proposed in the present invention is safe and reliable, and can well protect the security of face image data in a cloud environment.
[0077] (2) Robustness analysis
[0078] Anti-Gaussian noise attack performance:
[0079] like Figure 6 As shown in FIG. 1 , a face image (face No. 1 in the sample library) is selected for simulation testing, and the specific experimental simulation results after the attack are shown in Table 1.
[0080] Table 1
[0081] Noise intensity (%) 0.5 1 5 8 10 15 20 PSNR(dB) 29.1751 19.3180 12.1391 11.3598 10.7232 9.6065 8.8570 Identification number 1 1 1 1 1 1 1
[0082] Add noise attacks of different intensities to the original face image. The effects of the original face and the encrypted face when the noise attack is 5%, as shown in the figure below. Figure 6As shown in the figure, with the increase of noise intensity, the image quality gradually deteriorates. When the noise intensity reaches 20%, the original image cannot be recognized at all, indicating that the attack intensity is very large, but it can still be correctly recognized, with the serial number 1. This shows that it has good robustness under Gaussian noise.
[0083] Median filter attack performance:
[0084] Median filter attack is also a common attack type in cloud environments. It usually uses different window sizes and filtering times to perform attacks of different strengths. The results of filtering attacks with different window sizes and strengths are shown in Table 2. The algorithm is also highly robust under median filter attacks. Select the image after 7×7 iterations 10 times of filtering and its encryption result, as shown in Table 2. Figure 7 shown.
[0085] Table 2
[0086]
[0087] Translation attack performance:
[0088] The original image is subjected to left-right and up-down vertical translation attacks. The recognition results of the algorithm are shown in Table 3. When the left shift is 5%, the right ear of the face has moved out of the image, but it can still be correctly identified. Only when the left shift is 10%, it is mistakenly identified as person 8. The up-down shift is within 4%, and the image can be accurately recognized. In general, the algorithm has good robustness against translation. The recognition results of some algorithms are shown in Table 3. Figure 8 shown.
[0089] Table 3
[0090]
[0091] Spin attack performance:
[0092] The face image is rotated clockwise and counterclockwise respectively. Some effects are as follows Fig. 9 As shown in Table 4. After the rotation attack, the algorithm will only be mistakenly identified as face No. 24 and face No. 12 when the rotation angle is 11° clockwise and 13° counterclockwise, as shown in Table 4. In the rotation attack, the algorithm can still accurately identify the face within the range of 24° left and right rotation angles, which has strong robustness.
[0093] Table 4
[0094]
[0095] Occlusion attack performance:
[0096] Occlusion attack is the most common situation in face recognition. Usually, due to the occlusion of the main facial features of the face, the recognition rate and robustness of the algorithm will be significantly reduced. This paper verifies the recognition effect of the algorithm against the most common glasses occlusion attack and mask occlusion attack. The occlusion range is divided into three cases from large to small: S, M, and L. The encryption effect is as follows: Fig.10 and Fig.11 As shown in Table 5. Occlusion recognition is a difficult point in face recognition. The algorithm designed by the present invention can correctly identify all the faces except for the L-size mask occlusion and the L-size glasses occlusion under the condition of ensuring data encryption, as shown in Table 5. This shows that the algorithm has good robustness under occlusion attack.
[0097] Table 5
[0098]
[0099] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos, characterized in that: The following steps are involved: S1. A Tent-Henon dual chaos model is constructed based on Tent chaotic scrambling and Henon chaotic scrambling. In the Tent-Henon dual chaos model, after the output matrices of Tent chaotic scrambling and Henon chaotic scrambling are binarized, the binarized output matrix of Tent chaotic scrambling and the output matrix of Henon chaotic scrambling are subjected to XOR operation and Hadamard product operation respectively to obtain a first encryption key and a second encryption key; S2, obtaining a face image sample, converting the face image sample into a grayscale image, and obtaining an image matrix; S3, performing Ridgelet transform on the image matrix to obtain image data in the Ridgelet transform domain; S4, performing a Hadamard product operation on the image data in the Ridgelet transform domain and the first encryption key to obtain first encrypted image data in the Ridgelet transform domain; S5, performing a DCT transform on the first encrypted image data and performing a Hadamard product operation with the second encryption key to obtain second encrypted image data; S6, performing DCT inverse transformation on the second encrypted image data to obtain encrypted face image data; S7, adding the encrypted face image data to an encrypted face image database, and dividing the encrypted face image data in the encrypted face image database into a training set and a test set; S8, extracting encrypted face data features of the encrypted face image data based on the PCA algorithm to obtain a projection matrix after dimensionality reduction; S9, using the PCA algorithm to reduce the dimension of the encrypted face image data in the training set, after obtaining the projection matrix, pre-set it into the neural network model for training, obtain the trained neural network, and test the trained neural network with the test set; S10, obtaining a face image to be recognized, and after executing steps S2-S6, extracting the reduced-dimensional projection matrix of the obtained encrypted face image data using the PCA algorithm and inputting it into the trained neural network to obtain the encrypted face image recognition result.
2. The encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos according to claim 1 is characterized in that: The preset neural network is a BP neural network, which includes an input layer, two hidden layers and an output layer.
3. The encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos according to claim 1 is characterized in that: The ratio of training set to test set is 7:
3.
4. The encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos according to claim 1 is characterized in that: The face image samples in step S2 are obtained from the ORL face database.
5. The encrypted face recognition method based on Ridgelet-DCT transform and Tent-Henon double chaos according to claim 1 is characterized in that: The initial value of Tent chaotic scrambling is 0.36, the control parameter is 0.998, and the number of iterations is 300. The two control parameters of Henon chaotic scrambling are 1.4 and 0.314 respectively, and the number of iterations is 300.
