Medical image digital watermark embedding encryption method and system
By combining convolutional neural networks and chaotic mapping with QR codes, medical image features are extracted and encrypted to form a zero-watermark, which solves the problems of image quality damage and insufficient security caused by digital watermarks and achieves high-fidelity image security protection.
Patent Information
- Application Number
- CN202411003645.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
AI Technical Summary
Existing digital watermarking technologies can impair the quality of medical images when embedding watermark information, and lack effective security measures during the transmission of medical images, especially in terms of unauthorized information interception and malicious scanning.
A convolutional neural network is used to extract medical image feature vectors. An encrypted feature vector is generated through DCT transformation and Henon chaotic mapping. This vector is then combined with a QR code and embedded using LBP value and continuous transformation to form a zero watermark, thereby enhancing security and robustness.
It achieves the goal of ensuring image integrity and intellectual property protection without compromising image quality, and enhances the security and anti-attack capabilities of watermark information.
Smart Images

Figure CN118972502A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a medical image digital watermark embedding encryption method and system. Background Art
[0002] With the maturity of smart medical and remote diagnosis technologies, the demand for the transmission of medical images via the Internet is growing. However, this process brings the risk of medical image information leakage. Protecting patient privacy information has become a key issue in remote diagnosis and medical data sharing. In telemedicine, QR codes are widely used to store patients' private information, such as diagnostic reports and medical records, and are often transmitted as attachments together with medical images. Patients can quickly and easily access their medical information, including specific medical diagnosis results and treatment plans, by scanning QR codes. However, there is still a lack of corresponding technical means to ensure the security of QR code information during information transmission and prevent unauthorized information interception and malicious scanning on the path.
[0003] Digital watermarking is a technology that embeds specific digital signals into digital products to protect the copyright, integrity, anti-copying or whereabouts tracking of digital products. However, existing digital watermarking technologies will modify the original data to a certain extent in order to embed watermark information, and this modification will cause certain damage to the quality of the original media information. Summary of the invention
[0004] Purpose of the invention: The first purpose of the present invention is to provide a medical image digital watermark embedding encryption method with strong robustness and high security; the second purpose of the present invention is to provide a medical image digital watermark embedding encryption system corresponding to the above-mentioned medical image digital watermark embedding encryption method.
[0005] Technical solution: A medical image digital watermark embedding encryption method, comprising the following steps:
[0006] (1) Using a convolutional neural network to extract the feature vector of the medical image, performing a DCT transform on the feature vector, and selecting a number of coefficients after the DCT transform to form the visual feature vector of the medical image;
[0007] (2) Generate a chaotic matrix using Henon chaotic mapping, perform an XOR operation on the visual feature vector of the medical image and the chaotic matrix, and obtain the encrypted feature vector of the medical image;
[0008] (3) Create a QR code based on the watermark information of the medical image, combine the encrypted feature vector of the medical image with the QR code to form a watermark image and the corresponding verification key;
[0009] (4) Calculate the LBP value of the medical image, and then perform continuous two-level decomposition of the medical image through LWT transformation and DWT transformation to determine the scaling factor of the medical image and the embedding factor of the watermark image, and obtain the medical image embedded with the watermark.
[0010] Specifically, in step (1), the calculation formula of DCT transform is as follows:
[0011]
[0012] Where: f(x,y) is the pixel value of the medical image at the coordinate (x,y), C(u) and C(v) are normalization coefficients, and N is the transformation size.
[0013] Preferably, in step (1), the first 64 coefficients after DCT transformation are selected to form the visual feature vector of the medical image.
[0014] Specifically, in step (2), a chaotic matrix with the same dimension as the visual feature vector of the medical image is generated using the Henon chaotic map. The calculation formula is as follows:
[0015] x n+1 =1-ax n 2 +y n
[0016] y n+1 =bx n
[0017] Where: a, b are the parameters of the chaotic system, x n and n The status value of the current iteration.
[0018] Specifically, in step (3), the encrypted feature vector of the medical image is combined with the QR code through a logical relationship, and the logical relationship includes data fusion, visual superposition, frequency domain fusion, fault-tolerant utilization, layered coding, spatial transformation, color coding, and time series coding.
[0019] Specifically, the method further comprises the following steps:
[0020] (5) Extract the image features of the medical image to be tested after image processing and regenerate the key, which is matched with the verification key. If the keys match, it proves that the medical image to be tested has not been tampered with, and then the corresponding watermark information is extracted.
[0021] Specifically, in step (5), the image processing includes JPEG compression, noise addition, filtering, rotation and cropping.
[0022] Specifically, the watermark information of medical images includes patient information, report information, surgical information, safety information, administrative information, and financial information.
[0023] Preferably, the convolutional neural network is an improved ResNeXt-50 convolutional neural network.
[0024] The present invention also provides a medical image digital watermark embedding encryption system, comprising:
[0025] Feature extraction module: used to extract feature vectors of medical images using convolutional neural networks, perform DCT transformation on the feature vectors, and select several coefficients after DCT transformation to form visual feature vectors of medical images;
[0026] Feature encryption module: used to generate a chaotic matrix using Henon chaotic mapping, perform an XOR operation on the visual feature vector of the medical image and the chaotic matrix, and obtain the encrypted feature vector of the medical image;
[0027] Zero watermark combination module: used to create QR code based on the watermark information of medical images, combine the encrypted feature vector of medical images with QR code to form a watermark image and corresponding verification key;
[0028] Watermark embedding module: used to calculate the LBP value of the medical image, and then perform continuous two-level decomposition of the medical image through LWT transformation and DWT transformation to determine the scaling factor of the medical image and the embedding factor of the watermark image to obtain the medical image embedded with the watermark.
[0029] Beneficial effects: Compared with the prior art, the present invention has the following significant effects:
[0030] (1) Zero watermark technology is used to ensure the high fidelity of medical images while making the watermark invisible to the naked eye, thereby maintaining the integrity of the diagnostic process and protecting the intellectual property rights embedded in the medical images.
[0031] (2) By integrating chaotic encryption, cryptography and third-party concepts, the watermark algorithm's ability to resist attacks is enhanced, the robustness and recovery ability of the algorithm are guaranteed, and the security of the watermark information is strengthened.
[0032] (3) Utilize the powerful feature extraction capability of convolutional neural networks to effectively capture the stable features of medical images, combining accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a step flow chart of Example 1 of the present invention.
[0034] Figure 2 This is the improved ResNeXt-50 convolutional neural network architecture diagram of Example 1 of the present invention.
[0035] Figure 3 It is a schematic diagram of the MRI scan image processing flow of Example 1 of the present invention. DETAILED DESCRIPTION
[0036] The present invention is further described below in conjunction with the accompanying drawings.
[0037] Example 1
[0038] This embodiment uses a nuclear magnetic resonance (MRI) scan image as an example of medical imaging for illustration. The convolutional neural network used in this embodiment is an improved ResNeXt-50 convolutional neural network.
[0039] See also Figure 1 As shown, this embodiment provides a medical image digital watermark embedding encryption method, comprising the following steps:
[0040] Step 1: Input MRI scan image and use the improved ResNeXt-50 convolutional neural network to extract features from the MRI scan image. Please refer to Figure 2 As shown, the improved ResNeXt-50 network used in this embodiment replaces the three-layer convolutional blocks in the original ResNet network by stacking parallel blocks of the same topological structure. This replacement improves the accuracy of the model without significantly increasing the parameter scale. Due to the consistency of the topological structure, it also reduces hyperparameters and facilitates the transplantation of the model. The channel attention module in the improved ResNeXt-50 convolutional neural network strengthens the correlation between different feature channels by adaptively recalibrating the response of the feature channels; the spatial attention module highlights the importance of spatial position in the image, ensuring that key spatial information is retained during the feature extraction process.
[0041] After passing through the feature extraction network, the image data is passed to the fully connected layer, and discrete cosine transform (DCT) is performed on the output of the fully connected layer. DCT can convert image data from the spatial domain to the frequency domain. In this embodiment, 64 low-frequency coefficients, i.e., the first 64 coefficients after DCT transformation, are selected to form a visual feature vector representing each MRI image.
[0042] The calculation formula of DCT transform is as follows:
[0043]
[0044] Where: f(x,y) is the pixel value of the medical image at the coordinate (x,y), C(u) and C(v) are normalization coefficients, and N is the transformation size.
[0045] Step 2: Use Henon chaotic mapping to generate a chaotic matrix with the same dimension as the visual feature vector of the MRI scan image. The calculation formula is as follows:
[0046] x n+1 =1-ax n 2 +y n
[0047] y n+1 =bx n
[0048] Where: a, b are the parameters of the chaotic system, x n and n The status value of the current iteration.
[0049] The visual feature vector of the MRI scan image is XORed with the chaotic matrix to obtain the encrypted feature vector of the MRI scan image, that is, the "zero watermark" is generated. The zero watermark is not embedded in the original image, but is stored through the association with the visual feature vector. The irregularity and sensitivity of the chaotic sequence make the encryption process difficult to predict and crack, which enhances the security of the system.
[0050] Step 3: Use the QR code generator to create a QR code based on the watermark information of the MRI scan image, and combine the encrypted feature vector of the MRI scan image with the QR code through a specific logical relationship to form a watermark image and the corresponding verification key. In this way, the key information can be embedded in the form of a zero watermark without changing the original MRI scan image.
[0051] In this embodiment, a typical watermark information is as follows:
[0052] Patient information: Patient name: for example, "Zhang San"; Date of birth: for example, "1985-08-15"; Medical record number: for example, "HIS123456789".
[0053] Report information: Examination date: for example, "2024-05-01"; Examination type: for example, "CT scan"; Diagnosis result: for example, "inflammation of the left lower lobe of the lung".
[0054] Treatment information: surgery date: for example, "2024-05-10"; surgery name: for example, "laparoscopic cholecystectomy"; postoperative advice: for example, "recheck within two weeks after surgery."
[0055] Security information: Doctor's signature: Use digital signature to ensure the reliability of the source of information; Timestamp: For example, "2024-05-07 14:30:00" to ensure the timeliness of information; Encryption key: Used to decrypt the information in the QR code when necessary.
[0056] Administrative information: Medical insurance status: for example, "insured".
[0057] Financial information: Cost details: for example, "surgery fee: 20,000 yuan, drug fee: 3,500 yuan"; Settlement method: for example, "self-paid".
[0058] In this embodiment, the logical relationship that can be adopted for the fusion of the encrypted feature vector and the QR code includes:
[0059] Data fusion: Encode the encrypted feature vector data directly into the QR code so that the QR code itself carries the encrypted information.
[0060] Visual overlay: A translucent encrypted feature vector pattern is superimposed on a certain area or the entire surface of the QR code, which will not affect the recognition of the QR code but can hide the information.
[0061] Frequency domain fusion: After Fourier transforming the QR code, the information of the encrypted feature vector is added to certain frequency domains, and then the inverse transform is performed back to the spatial domain.
[0062] Fault-tolerance exploitation: Based on the error correction capability of the QR code, some modules of the QR code are deliberately modified within the fault-tolerance range to contain encrypted feature vector information.
[0063] Layered encoding: Create multiple layers of QR code, each layer contains different information, and one layer is used to store encrypted feature vectors.
[0064] Spatial transformation: Using spatial transformation methods such as Arnold transformation, the encrypted feature vector information is embedded into the QR code pattern. This method is usually accompanied by an inverse transformation process for data recovery.
[0065] Color encoding: If the QR code supports color, the encrypted feature vector information can be encoded by changing the color of specific modules while ensuring that the QR code is still scannable.
[0066] Time series encoding: By displaying different QR codes at different time points, the encrypted feature vector information can be encoded in the time series, and the complete information can be restored through a specific algorithm after scanning all QR codes.
[0067] Step 4: In order to further improve the security of the system, the concept of "third party" is introduced, and the local binary pattern (LBP) value is used to calculate the characteristics of the MRI scan image, so as to determine the scaling factor of the MRI scan image and the embedding factor of the watermark image. First, the Laplace pyramid transform (LWT) is performed on the MRI scan image for multi-scale decomposition, and then the second-level decomposition of the discrete wavelet transform (DWT) is performed on the basis of the LWT result, and finally a two-level decomposition MRI scan image is obtained, and then the watermark image is embedded with the determined embedding factor. The two consecutive transformations enhance the anti-attack ability of the MRI scan image and reduce the possible information loss.
[0068] Step 5: Please refer to Figure 3 As shown, in order to verify the integrity of the medical image, the above method is used to extract the image features of the medical image to be tested and regenerate the key, which is matched with the verification key. If the keys match, it proves that the medical image to be tested has not been tampered with, and then the corresponding watermark information is extracted.
[0069] To verify the robustness of this method, we tested medical images after image processing and after conventional attacks such as JPEG compression, noise addition, filtering, rotation and cropping. This method was able to effectively extract the watermark, proving that this method has excellent robustness.
[0070] Example 2
[0071] This embodiment provides a medical image digital watermark embedding encryption system, including:
[0072] Feature extraction module: used to extract feature vectors of medical images using convolutional neural networks, perform DCT transformation on the feature vectors, and select several coefficients after DCT transformation to form visual feature vectors of medical images;
[0073] Feature encryption module: used to generate a chaotic matrix using Henon chaotic mapping, perform an XOR operation on the visual feature vector of the medical image and the chaotic matrix, and obtain the encrypted feature vector of the medical image;
[0074] Zero watermark combination module: used to create QR code based on the watermark information of medical images, combine the encrypted feature vector of medical images with QR code to form a watermark image and corresponding verification key;
[0075] Watermark embedding module: used to calculate the LBP value of the medical image, and then perform continuous two-level decomposition of the medical image through LWT transformation and DWT transformation to determine the scaling factor of the medical image and the embedding factor of the watermark image to obtain the medical image embedded with the watermark.
Claims
1. A medical image digital watermark embedding encryption method, characterized in that: The following steps are involved: (1) Using a convolutional neural network to extract the feature vector of the medical image, performing a DCT transform on the feature vector, and selecting a number of coefficients after the DCT transform to form the visual feature vector of the medical image; (2) Generate a chaotic matrix using Henon chaotic mapping, perform an XOR operation on the visual feature vector of the medical image and the chaotic matrix, and obtain the encrypted feature vector of the medical image; (3) Create a QR code based on the watermark information of the medical image, combine the encrypted feature vector of the medical image with the QR code to form a watermark image and the corresponding verification key; (4) Calculate the LBP value of the medical image, and then perform continuous two-level decomposition of the medical image through LWT transformation and DWT transformation to determine the scaling factor of the medical image and the embedding factor of the watermark image, and obtain the medical image embedded with the watermark.
2. The medical image digital watermark embedding encryption method according to claim 1 is characterized by: In the step (1), the calculation formula of DCT transformation is as follows: Where: f(x,y) is the pixel value of the medical image at the coordinate (x,y), C(u) and C(v) are normalization coefficients, and N is the transformation size.
3. The medical image digital watermark embedding encryption method according to claim 1 is characterized by: In the step (1), the first 64 coefficients after DCT transformation are selected to form the visual feature vector of the medical image.
4. The medical image digital watermark embedding encryption method according to claim 1 is characterized by: In step (2), a chaotic matrix with the same dimension as the visual feature vector of the medical image is generated using the Henon chaotic map, and the calculation formula is as follows: y n+1 =bx n Where: a, b are the parameters of the chaotic system, x n and n The status value of the current iteration.
5. The medical image digital watermark embedding encryption method according to claim 1 is characterized by: In the step (3), the encrypted feature vector of the medical image is combined with the QR code through a logical relationship, and the logical relationship includes data fusion, visual superposition, frequency domain fusion, fault-tolerant utilization, layered coding, spatial transformation, color coding, and time series coding.
6. The medical image digital watermark embedding encryption method according to claim 1 is characterized in that: The following steps are also included: (5) Extract the image features of the medical image to be tested after image processing and regenerate the key, which is matched with the verification key. If the keys match, it proves that the medical image to be tested has not been tampered with, and then the corresponding watermark information is extracted.
7. The medical image digital watermark embedding encryption method according to claim 6 is characterized by: In the step (5), the image processing includes JPEG compression, noise addition, filtering, rotation and cropping.
8. The medical image digital watermark embedding encryption method according to claim 1 is characterized by: The watermark information of the medical image includes patient information, report information, operation information, safety information, administrative information, and financial information.
9. The medical image digital watermark embedding encryption method according to claim 1, characterized in that: The convolutional neural network is an improved ResNeXt-50 convolutional neural network.
10. A medical image digital watermark embedding encryption system, characterized in that: include: Feature extraction module: used to extract feature vectors of medical images using convolutional neural networks, perform DCT transformation on the feature vectors, and select several coefficients after DCT transformation to form visual feature vectors of medical images; Feature encryption module: used to generate a chaotic matrix using Henon chaotic mapping, perform an XOR operation on the visual feature vector of the medical image and the chaotic matrix, and obtain the encrypted feature vector of the medical image; Zero watermark combination module: used to create QR code based on the watermark information of medical images, combine the encrypted feature vector of medical images with QR code to form a watermark image and corresponding verification key; Watermark embedding module: used to calculate the LBP value of the medical image, and then perform continuous two-level decomposition of the medical image through LWT transformation and DWT transformation to determine the scaling factor of the medical image and the embedding factor of the watermark image to obtain the medical image embedded with the watermark.
Citation Information
Patent Citations
Medical image zero-watermark embedding method based on Hough combination transformation
CN110517181A
Medical image robust zero-watermark method based on Bandelet-DCT (Discrete Cosine Transform)
CN111968025A
Medical image robust watermarking method based on Tetrolet-DCT
CN111988490A
An encrypted medical image digital watermarking method based on PHTs-DCT
CN112907426A
Medical image robust watermarking method based on LBP-DCT
CN113160030A
Cited By
Cross-modal steganography method and device, equipment and storage medium
CN119562067A
