Safe data transmission method and device for medical treatment
By embedding sensitive information into image pixels in medical data transmission and using quantum image processing and chaotic system encryption, the problem of malicious cracking and leakage in medical data transmission is solved, and efficient and secure data transmission is achieved.
Patent Information
- Application Number
- CN202411450006.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Medical data is easily maliciously cracked and leaked during transmission, resulting in incomplete data transmission and causing data security issues.
By obtaining text and image data in medical data, extracting sensitive information and embeding it into image pixel values, using quantum image processing and chaotic system to generate keys for encryption, forming target encrypted image groups and non-sensitive information to be sent as encrypted ciphertexts .
Improves the security and efficiency of data transmission, prevents tampering and leakage, enhances anti-interference and attack resistance, reduces bandwidth usage and improves storage efficiency.
Smart Images

Figure CN119276588A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data security, and in particular relates to a method and device for secure transmission of medical data. Background Art
[0002] In the digital age, efficient and secure transmission of medical data is crucial to protecting patient privacy, improving the quality of medical services, and promoting the precision of medical decision-making. With the popularization of intelligent medical equipment and telemedicine services, the development of medical data transmission technology not only needs to meet the needs of high-speed and stable data flow, but also ensure the security and integrity of information. At the same time, the integrated application of big data and artificial intelligence provides new possibilities for medical data analysis, making it possible to extract valuable information from massive medical data to support more accurate diagnosis and treatment.
[0003] Patent No. CN117688606A discloses a method and system for secure storage and transmission of medical data based on blockchain; obtains and builds a distributed data storage and transmission architecture based on the overall requirements of distributed trust; builds a user login function architecture, binds the user's real identity with the blockchain identity, and realizes blockchain integration; collects and analyzes and processes medical data, performs quality control to obtain the corresponding target medical data, and performs data standardization on the target medical data, and builds a medical index; authenticates the user identity based on the distributed data storage and transmission architecture, and after successful authentication, stores the medical index and the corresponding target medical data, and realizes data transmission sharing through the medical index.
[0004] Although the above solution solves some problems, some problems still exist. For example, data may be maliciously cracked during transmission, and data leakage may lead to incomplete data transmission, causing data security issues. Summary of the invention
[0005] The purpose of the present invention is to solve the problem that data may be maliciously cracked during transmission, data leakage leads to incomplete data transmission, and causes data security, and proposes a data security transmission method and device for medical use.
[0006] In a first aspect of the present invention, a method for secure data transmission for medical treatment is first proposed, the method comprising: Acquire medical data, identify text data and image data in the medical data to obtain a text data set and an image data set; Extracting sensitive information from the text data set, and embedding the sensitive data into pixel values of a first target image to obtain a preprocessed image set; the first target image is an image in the image data set; Mapping the grayscale value of the second target image in the preprocessed image set to quantum bits to obtain a quantum image set; Selecting a quantum image group from the quantum image set, performing pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and performing an XOR operation on the target quantum image group to obtain a target encrypted image group; the quantum image group includes any two quantum images; The target encrypted image group and non-sensitive information are sent to a receiving end as encrypted ciphertext.
[0007] Optionally, before selecting the quantum image group in the quantum image set, the step includes: Initializing the chaotic system, taking the initial value and the control parameter as the input of the chaotic system for iterative training, wherein the chaotic system performs iterative calculation according to a preset chaotic system formula to generate pseudo-random numbers; When the length of the pseudo-random number meets the preset encryption condition, the pseudo-random number is used as a key sequence to obtain a key sequence group; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula:
[0008] Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
[0009] Optionally, the quantum image group includes a first quantum image and a second quantum image, and performing pixel value row-column transformation on the quantum image group to obtain a target quantum image group includes: Mapping the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and mapping the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; Comparing sequence characteristic values on row pixels in the first quantum image and the second quantum image, and when the sequence characteristic values of the first quantum image and the second quantum image are the same, performing row pixel exchange to obtain a first row quantum image and a second row quantum image; Mapping the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and mapping the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The sequence characteristic values on the column pixels in the first row quantum image and the second row quantum image are judged, and when the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, the column pixels are exchanged to obtain the first row column quantum image and the second row column quantum image.
[0010] Optionally, performing an XOR operation on the target quantum image group to obtain a target encrypted image group includes: Performing an XOR operation on the x key sequence and the y key sequence to obtain a two-dimensional matrix; Reading pixel coordinates in the first row and column quantum image and the second row and column quantum image, and determining parity of the pixel coordinates; If the horizontal coordinate and the vertical coordinate of the pixel coordinate are both odd or even, the pixel coordinate is permuted with the matrix element of the corresponding coordinate in the two-dimensional matrix to obtain a target encrypted image group; the matrix element is the pixel value of any coordinate of the two-dimensional pixel matrix, and the target encrypted image group includes a permuted first row and column quantum image and a permuted second row and column quantum image.
[0011] Optionally, sending the target encrypted image group and the non-sensitive information as encrypted ciphertext to the receiving end includes: Encrypting the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; Encrypting the symmetric key generated by the symmetric encryption algorithm by an asymmetric encryption algorithm to obtain second transmission data; The first transmission data and the second transmission data are sent to a receiving end.
[0012] In a second aspect of the present invention, a data security transmission device for medical treatment is provided, comprising: a data acquisition module, a data embedding module, an image conversion module, an image encryption module and a data transmission module: The data acquisition module is used to acquire medical data, identify text data and image data in the medical data to obtain a text data set and an image data set; The data embedding module is used to extract sensitive information from the text data set, and embed the sensitive data into the pixel values of a first target image to obtain a preprocessed image set; the first target image is an image in the image data set; The image conversion module is used to map the grayscale value of the second target image in the preprocessed image set to the quantum bit to obtain a quantum image set; The image encryption module is used to select a quantum image group from the quantum image set, perform pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and perform an XOR operation on the target quantum image group to obtain a target encrypted image group; the quantum image group includes any two quantum images; The data transmission module is used to send the target encrypted image group and non-sensitive information as encrypted ciphertext to a receiving end.
[0013] Optionally, the image encryption module further includes: a pseudo-random number generation module and a key sequence determination module: The pseudo-random number generation module is used to initialize the chaotic system, and use the initial value and the control parameter as the input of the chaotic system for iterative training. The chaotic system generates pseudo-random numbers by iterative calculation according to a preset chaotic system formula; The key sequence determination module is used to obtain a key sequence group by using the pseudo-random number as a key sequence when the length of the pseudo-random number meets a preset encryption condition; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula:
[0014] Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
[0015] Optionally, the key sequence determination module further includes: a row pixel mapping module, a row pixel exchange module, a column pixel mapping module and a column pixel exchange module: The row pixel mapping module is used to map the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and to map the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; The row pixel exchange module is used to compare the sequence characteristic values on the row pixels in the first quantum image and the second quantum image, and when the sequence characteristic values of the first quantum image and the second quantum image are the same, perform row pixel exchange to obtain the first row quantum image and the second row quantum image; The column pixel mapping module is used to map the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and to map the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The column pixel exchange module is used to judge the sequence characteristic values on the column pixels in the first row quantum image and the second row quantum image, and when the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, perform column pixel exchange to obtain the first row column quantum image and the second row column quantum image.
[0016] Optionally, the column pixel exchange module further includes: a two-dimensional matrix generation module, an odd-even judgment module and a pixel replacement module: The two-dimensional matrix generation module is used to obtain a two-dimensional matrix by performing an XOR operation on the x key sequence and the y key sequence; The parity determination module is used to read the pixel coordinates in the first row and column quantum image and the second row and column quantum image, and determine the parity of the pixel coordinates; The pixel replacement module is used to replace the pixel coordinates with the matrix elements of the corresponding coordinates in the two-dimensional matrix to obtain a target encrypted image group if the horizontal coordinate and the vertical coordinate of the pixel coordinate are both odd or even; the matrix elements are the pixel values of any coordinate of the two-dimensional pixel matrix, and the target encrypted image group includes the replaced first row and column quantum image and the replaced second row and column quantum image.
[0017] Optionally, the data transmission module includes: a symmetric encryption module, an asymmetric encryption module and a data sending module: The symmetric encryption module is used to encrypt the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; The asymmetric encryption module is used to encrypt the symmetric key generated by the symmetric encryption algorithm by using the asymmetric encryption algorithm to obtain the second transmission data; The data sending module is used to send the first transmission data and the second transmission data to a receiving end.
[0018] Beneficial effects of the present invention: The present invention proposes a data security transmission method for medical treatment, which obtains text data and image data in medical data to obtain text data sets and image data sets; extracts sensitive information in the text data sets, embeds the sensitive data into the pixel values of the first target image to obtain a preprocessed image set; maps the grayscale value of the second target image in the preprocessed image set to quantum bits to obtain a quantum image set; selects a quantum image group in the quantum image set, performs pixel value row-column transformation on the quantum image group to obtain a target quantum image group, performs XOR operation on the target quantum image group to obtain a target encrypted image group; sends the target encrypted image group and non-sensitive information as encrypted ciphertext to a receiving end. Embedding text data into image pixels can use images as carriers to covertly carry text information, which not only reduces bandwidth occupancy and improves transmission efficiency, but also enhances data security through encryption means, prevents tampering and leakage, and performs pixel value row-column transformation on the quantum image group to ensure the security of the image during transmission, improve encryption efficiency, and enhance anti-interference and anti-attack capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention will be further described below in conjunction with the accompanying drawings.
[0020] Figure 1 A flowchart of a method for secure data transmission for medical treatment is provided for an embodiment of the present invention; Figure 2A schematic structural diagram of a device for securely transmitting medical data is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the present invention, the description of "first", "second", etc. is only used for descriptive purposes, and cannot be understood as indicating or implying its relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0022] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.
[0023] The embodiment of the present invention provides a method for secure transmission of medical data. Figure 1 , Figure 1 A flowchart of a method for secure data transmission for medical treatment provided by an embodiment of the present invention. The method comprises the following steps: S101, acquiring medical data, identifying text data and image data in the medical data to obtain a text data set and an image data set; S102, extracting sensitive information from the text data set, and embedding the sensitive data into the pixel values of the first target image to obtain a preprocessed image set; S103, mapping the grayscale value of the second target image in the preprocessed image set to the quantum bit to obtain a quantum image set; S104, selecting a quantum image group in the quantum image set, performing pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and performing an XOR operation on the target quantum image group to obtain a target encrypted image group; S105, sending the target encrypted image group and non-sensitive information as encrypted ciphertext to the receiving end.
[0024] The first target image is an image in the image data set; the quantum image group includes any two quantum images; A data security transmission method for medical use provided by an embodiment of the present invention can embed text data into image pixels, so that images can be used as carriers to covertly carry text information, which not only reduces bandwidth occupancy and improves transmission efficiency, but also enhances data security through encryption means to prevent tampering and leakage. The pixel value rows and columns of the quantum image group are transformed to ensure the security of the image during transmission, improve encryption efficiency, and enhance anti-interference and anti-attack capabilities.
[0025] In one implementation, by embedding sensitive information into image pixels, the information becomes visually invisible, thereby reducing the risk of being directly discovered or stolen. Even if the image file is intercepted, it is difficult for attackers to recover the original sensitive information from the image without the correct extraction method and key, thereby improving data security. In some information hiding technologies, such as the LSB (least significant bit) algorithm, it can be ensured that the original quality of the image is not destroyed while embedding the information, thus achieving lossless embedding. In this way, the encrypted image can still be used for normal medical diagnosis or research purposes, and the integrity of the data can be maintained. By embedding sensitive information into ordinary images, it can be transmitted through conventional image transmission channels without arousing suspicion. This helps to achieve the covert transmission of sensitive information and increase the flexibility of data transmission when it is necessary to protect the security of the data transmission channel. By using a large amount of redundant space in the image file to store sensitive information, the utilization rate of the storage space can be effectively improved. At the same time, since the image file itself can be used as a carrier for transmission, there is no need to allocate storage space separately for sensitive information, thus improving storage efficiency.
[0026] In one implementation, sensitive information is extracted from a text data set. Sensitive information includes personal identity information and health information. Personal identity information includes residential address, ID card and contact information, and health information includes medical records and medical insurance records. Natural language processing (NLP) technology is used: NLP technology can be used to identify key information such as medical terms in text, events and time in medical records, and diagnosis and treatment in medical reports. Sensitive information in medical data can be extracted more accurately through steps such as lexical analysis, grammatical analysis and semantic understanding.
[0027] In one implementation, the data in the image data set is preprocessed and cropped, wherein the preprocessing includes: graying the original image, converting the color image into a grayscale image so that each pixel is represented by only one grayscale value, which is usually between 0 and 255; cropping × The size of; NEQR (Novel Enhanced Quantum Representation) algorithm: This is a specific quantum image representation method that converts the grayscale value of each pixel of the image into a superposition state of a quantum state. In the NEQR algorithm, the grayscale value is mapped to a specific state of the quantum bit (such as the superposition state of |0> or |1>), and it is more efficient to process it through a series of quantum gate operations; while directly converting the grayscale value into a binary number and mapping each binary bit to a quantum bit may not be efficient enough because it does not utilize the superposition state characteristics of the quantum bit.
[0028] In one implementation, quantum images are images represented and stored using the superposition and entanglement properties of quantum bits (qubits). It draws on basic concepts and methods in quantum mechanics to achieve more efficient and complex image processing and analysis. In a quantum computer, images no longer exist in the form of classical bits, but are encoded and processed in the form of quantum bits; due to the superposition properties of quantum bits, quantum images can use fewer quantum bits to represent the same image information, thereby improving storage efficiency; the parallelism of quantum computing enables quantum image processing to process multiple pixels or features at the same time, thereby significantly improving processing speed; characteristics such as quantum entanglement make quantum images more secure during transmission and processing, and can effectively resist certain forms of attacks.
[0029] In one embodiment, before step S104, the following steps are included: Initialize the chaotic system, use the initial value and control parameters as the input of the chaotic system for iterative training, and the chaotic system generates pseudo-random numbers by iterative calculation according to the preset chaotic system formula; When the length of the pseudo-random number meets the preset encryption condition, the pseudo-random number is used as a key sequence to obtain a key sequence group; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula:
[0030] Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
[0031] In one implementation, the high sensitivity and unpredictability of chaotic systems make the generated keys extremely complex and random, greatly enhancing the security of the encryption algorithm. Even if an attacker knows the details of the encryption algorithm, it is difficult to recover the original image through brute force or statistical analysis.
[0032] In one implementation, the initial value of the chaotic system (e.g. and ) and control parameters (such as α and β) are set as part of the key. Since the output sequence of the chaotic system is very sensitive to small changes in initial conditions and parameters, even if the attacker can guess the key close to the correct one, he cannot correctly decrypt the image. This feature makes the encryption algorithm resistant to key guessing attacks. The process of generating keys by the chaotic system is automated and does not require human intervention. Therefore, a large number of keys can be generated quickly for encryption operations, which helps to improve the efficiency of the encryption process.
[0033] In one implementation, the iteration can be stopped when the length of the generated key sequence meets the encryption requirements, that is, the iteration can be stopped when the length of the key sequence is ≥ the number of pixel values of the image. The value range of the control parameter is between (2,4), and the value of the preset chaotic system formula is between (0,2) and rounded, that is, the value of the preset chaotic formula is 0 or 1, so the x key sequence and the y key sequence are binary codes.
[0034] In one embodiment, step S104 includes: Mapping the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and mapping the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; Comparing the sequence characteristic values on the row pixels in the first quantum image and the second quantum image, when the sequence characteristic values of the first quantum image and the second quantum image are the same, performing the row pixel exchange to obtain the first row quantum image and the second row quantum image; Mapping the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and mapping the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The sequence characteristic values on the column pixels in the first row of quantum images and the second row of quantum images are judged. When the sum of the sequence characteristic values of the first column of quantum images and the second column of quantum images is an even number, the column pixels are exchanged to obtain the first row of column quantum images and the second row of column quantum images.
[0035] In one implementation, the sequence characteristic value of the x key sequence is mapped to the row pixels of the first quantum image. Since the length of the x key sequence is ≥ the pixel length of the first quantum image, they can be mapped one-to-one. Each sequence characteristic value of the x key sequence corresponds to a row of pixels in the first quantum image. For example, if the x key sequence is 01011101, then the pixel length of the first quantum image at this time should be ≤8. The second bit of the sequence characteristic value in the x key sequence is 1, so it corresponds to all pixels in the second row in the first quantum image. Similarly, the sequence characteristic value of the y key sequence can also be mapped to the column pixels of the second row of the quantum image. Then, any sequence characteristic value of the y key sequence corresponds to all pixels in any column of the second row of the quantum image.
[0036] In one implementation, when performing the row-column transformation of pixel values, the row pixels of the two images are first replaced, and then the column pixels of the image after the row pixel replacement are replaced; when the sequence characteristic values of the first quantum image and the second quantum image are the same, the row pixels are exchanged to obtain the first row quantum image and the second row quantum image, for example: the sequence characteristic values of the first quantum image and the second quantum image are both 1 or both 0, then the row pixels are replaced; when the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, the column pixels are exchanged to obtain the first row and column quantum image and the second row and column quantum image, for example: the sum of the sequence characteristic values is one of the three possible ones, the sequence characteristic value may be 1 or 0, so the sum of the sequence characteristic values may be one of 0, 1 and 2.
[0037] In one embodiment, step S104 further includes: XOR the x key sequence and the y key sequence to obtain a two-dimensional matrix; Reading pixel coordinates in the first row and column quantum image and the second row and column quantum image, and determining the parity of the pixel coordinates; If the horizontal and vertical coordinates of the pixel coordinate are both odd or even, the pixel coordinate is permuted with the matrix element of the corresponding coordinate in the two-dimensional matrix to obtain the target encrypted image group; the matrix element is the pixel value of any coordinate of the two-dimensional pixel matrix, and the target encrypted image group includes the permuted first row and column quantum image and the permuted second row and column quantum image.
[0038] In one implementation, the one-dimensional x key sequence and y key sequence are converted into a two-dimensional matrix whose size matches the size of the encrypted image, that is, satisfying the above × The pixel value can be any integer between 0 and 255, and within this range, there are both odd and even numbers. For example, 0, 2, 4...254 are even numbers, while 1, 3, 5...255 are odd numbers. Convert the one-dimensional x key sequence and y key sequence into a two-dimensional matrix, where the x key sequence is defined as the x-axis of the two-dimensional array, and the y key sequence is defined as the y-axis of the two-dimensional array. The lengths of the two one-dimensional arrays will determine the number of rows and columns of the generated two-dimensional matrix. The lengths of the x key sequence and the y key sequence are the same as the length and width of the image, so the size of the generated two-dimensional matrix is equal to the size of the encrypted image. Perform bit-by-bit operations on the binary arrays of the x-axis and the y-axis, such as XOR operations (exclusive OR operations). The XOR operation is common knowledge and will not be described in detail, and the operation results are used as the values of the corresponding positions in the two-dimensional matrix.
[0039] In one implementation, the pixel coordinates in the first row and column quantum image and the second row and column quantum image are read, that is, any one of the pixel coordinates in the first row and column quantum image and the second row and column quantum image is odd or even, for example: the pixel coordinates in the first row and column quantum image are (10, 22), then the horizontal coordinate and the vertical coordinate of the pixel coordinate are both even, and the pixel coordinates in the second row and column quantum image are (13, 67), then the horizontal coordinate and the vertical coordinate of the pixel coordinate are both odd; the pixel coordinates are replaced with the matrix elements of the corresponding coordinates in the two-dimensional matrix, that is, the matrix elements of the corresponding coordinates in the two-dimensional matrix are the pixel values in the two-dimensional pixel matrix, the horizontal coordinates and the vertical coordinates of the two-dimensional pixel matrix are from the pixel value to the pixel value range (0-255), and the matrix elements in the two-dimensional pixel matrix, , where P is the matrix element, that is, the pixel value, i is the horizontal coordinate, and j is the vertical coordinate. Representatives Round down; when the pixel coordinates exceed the coordinates of the two-dimensional pixel matrix, they are scaled. If the scaled value is less than 1, the value is considered to be 1. If the scaled value has a decimal, it is rounded down, for example: 2.33 is rounded to 2.
[0040] In one embodiment, step S105 includes: Encrypting the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; Encrypting the symmetric key generated by the symmetric encryption algorithm by the asymmetric encryption algorithm to obtain the second transmission data; The first transmission data and the second transmission data are sent to a receiving end.
[0041] In one implementation, a symmetric encryption algorithm is, for example, Blowfish, RC2, RC4, RC5, etc.; the non-sensitive information in the first data also includes the scaled coordinate binary code, which is used for restoration and decryption. Although operations such as rounding improve security, they will result in a large gap with the original image. Therefore, the coordinate binary code can be restored by performing an inverse operation, thereby ensuring security while ensuring the accuracy of information transmission.
[0042] In one implementation, the decoding process is predetermined, and decoding is the inverse process of encryption, that is, the pixels corresponding to the pixel coordinates in the first row and the second row of the quantum image are restored according to the coordinate binary code, and then the column pixels in the first row and the second row of the quantum image are restored, and the corresponding row pixels are restored to obtain the decrypted quantum image. The process of restoring the quantum image to the original image usually involves the measurement of the quantum state and the application of the decryption algorithm. The receiver first needs to measure the quantum state in the quantum image to obtain the quantum bit sequence containing the image information. Subsequently, the decryption algorithm corresponding to the encryption process is used to gradually restore the original image data through inverse transformation or inverse operation. The receiver uses a specific steganography extraction tool or algorithm, which can identify and parse the binary data hidden in the image. During the extraction process, according to the specific implementation of the steganography (such as the LSB least significant bit method, the DCT coefficient modification method, etc.), the tool will analyze the pixel value, color channel or other features of the image to restore the original binary code, and convert the extracted binary code back to the original text or other information form.
[0043] Based on the same inventive concept, the present invention also provides a data security transmission device for medical use. Figure 2 , Figure 2 A schematic diagram of the structure of a data security transmission device for medical use provided by an embodiment of the present invention includes: a data acquisition module, a data embedding module, an image conversion module, an image encryption module and a data transmission module: A data acquisition module is used to acquire medical data, identify text data and image data in the medical data to obtain a text data set and an image data set; A data embedding module is used to extract sensitive information from a text data set, and embed the sensitive data into a pixel value of a first target image to obtain a preprocessed image set; the first target image is an image in the image data set; An image conversion module, used for mapping the grayscale value of the second target image in the preprocessed image set to the quantum bit to obtain a quantum image set; An image encryption module is used to select a quantum image group from a quantum image set, perform pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and perform an XOR operation on the target quantum image group to obtain a target encrypted image group; the quantum image group includes any two quantum images; The data transmission module is used to send the target encrypted image group and non-sensitive information as encrypted ciphertext to the receiving end.
[0044] A data security transmission device for medical use provided by an embodiment of the present invention can use images as carriers to covertly carry text information by embedding text data into image pixels, which not only reduces bandwidth occupancy and improves transmission efficiency, but also enhances data security through encryption means to prevent tampering and leakage. The pixel value rows and columns of the quantum image group are transformed to ensure the security of the image during transmission, improve encryption efficiency, and enhance anti-interference and anti-attack capabilities.
[0045] In one embodiment, the image encryption module further includes: a pseudo-random number generation module and a key sequence determination module: The pseudo-random number generation module is used to initialize the chaotic system, and the initial value and control parameters are used as the input of the chaotic system for iterative training. The chaotic system generates pseudo-random numbers by iterative calculation according to the preset chaotic system formula; A key sequence determination module, used for obtaining a key sequence group by using the pseudo-random number as a key sequence when the length of the pseudo-random number meets a preset encryption condition; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula:
[0046] Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
[0047] In one embodiment, the key sequence determination module further includes: a row pixel mapping module, a row pixel exchange module, a column pixel mapping module and a column pixel exchange module: A row pixel mapping module, used to map the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and to map the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; A row pixel exchange module is used to compare the sequence characteristic values on the row pixels in the first quantum image and the second quantum image. When the sequence characteristic values of the first quantum image and the second quantum image are the same, the row pixel exchange is performed to obtain the first row quantum image and the second row quantum image. A column pixel mapping module, used to map the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and to map the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The column pixel exchange module is used to judge the sequence characteristic values on the column pixels in the first row quantum image and the second row quantum image. When the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, the column pixel exchange is performed to obtain the first row column quantum image and the second row column quantum image.
[0048] In one embodiment, the column pixel exchange module further includes: a two-dimensional matrix generation module, an odd-even judgment module and a pixel replacement module: A two-dimensional matrix generation module, used for obtaining a two-dimensional matrix by performing an XOR operation on the x key sequence and the y key sequence; A parity judgment module, used for reading pixel coordinates in the first row and column quantum image and the second row and column quantum image, and judging the parity of the pixel coordinates; The pixel replacement module is used to replace the pixel coordinates with the matrix elements of the corresponding coordinates in the two-dimensional matrix to obtain a target encrypted image group if the horizontal and vertical coordinates of the pixel coordinates are both odd or even; the matrix elements are the pixel values of any coordinates of the two-dimensional pixel matrix, and the target encrypted image group includes the replaced first row and column quantum images and the replaced second row and column quantum images.
[0049] In one embodiment, the data transmission module includes: a symmetric encryption module, an asymmetric encryption module and a data sending module: A symmetric encryption module, used for encrypting the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; An asymmetric encryption module, used for encrypting a symmetric key generated by a symmetric encryption algorithm using an asymmetric encryption algorithm to obtain second transmission data; The data sending module is used to send the first transmission data and the second transmission data to the receiving end.
[0050] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A method for secure data transmission for medical treatment, characterized in that: The method comprises: Acquire medical data, identify text data and image data in the medical data to obtain a text data set and an image data set; Extracting sensitive information from the text data set, and embedding the sensitive data into pixel values of a first target image to obtain a preprocessed image set; The first target image is an image in the image dataset; Mapping the grayscale value of the second target image in the preprocessed image set to quantum bits to obtain a quantum image set; Selecting a quantum image group from the quantum image set, performing pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and performing an XOR operation on the target quantum image group to obtain a target encrypted image group; the quantum image group includes any two quantum images; The target encrypted image group and non-sensitive information are sent to a receiving end as encrypted ciphertext.
2. A method for secure transmission of medical data according to claim 1, characterized in that: Before selecting the quantum image group in the quantum image set, the method includes: Initializing the chaotic system, taking the initial value and the control parameter as the input of the chaotic system for iterative training, wherein the chaotic system performs iterative calculation according to a preset chaotic system formula to generate pseudo-random numbers; When the length of the pseudo-random number meets the preset encryption condition, the pseudo-random number is used as a key sequence to obtain a key sequence group; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula: Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
3. A method for secure transmission of medical data according to claim 2, characterized in that: The quantum image group includes a first quantum image and a second quantum image, and performing pixel value row-column transformation on the quantum image group to obtain a target quantum image group includes: Mapping the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and mapping the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; Comparing sequence characteristic values on row pixels in the first quantum image and the second quantum image, and when the sequence characteristic values of the first quantum image and the second quantum image are the same, performing row pixel exchange to obtain a first row quantum image and a second row quantum image; Mapping the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and mapping the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The sequence characteristic values on the column pixels in the first row quantum image and the second row quantum image are judged, and when the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, the column pixels are exchanged to obtain the first row column quantum image and the second row column quantum image.
4. A method for secure data transmission for medical use according to claim 3, characterized in that: Performing an XOR operation on the target quantum image group to obtain a target encrypted image group includes: Performing an XOR operation on the x key sequence and the y key sequence to obtain a two-dimensional matrix; Reading pixel coordinates in the first row and column quantum image and the second row and column quantum image, and determining parity of the pixel coordinates; If the horizontal coordinate and the vertical coordinate of the pixel coordinate are both odd or even, the pixel coordinate is permuted with the matrix element of the corresponding coordinate in the two-dimensional matrix to obtain a target encrypted image group; the matrix element is the pixel value of any coordinate of the two-dimensional pixel matrix, and the target encrypted image group includes a permuted first row and column quantum image and a permuted second row and column quantum image.
5. A method for secure data transmission for medical use according to claim 1, characterized in that: Sending the target encrypted image group and non-sensitive information as encrypted ciphertext to a receiving end includes: Encrypting the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; Encrypting the symmetric key generated by the symmetric encryption algorithm by an asymmetric encryption algorithm to obtain second transmission data; The first transmission data and the second transmission data are sent to a receiving end.
6. A data security transmission device for medical use, characterized in that: The device comprises: a data acquisition module, a data embedding module, an image conversion module, an image encryption module and a data transmission module: The data acquisition module is used to acquire medical data, identify text data and image data in the medical data to obtain a text data set and an image data set; The data embedding module is used to extract sensitive information from the text data set, and embed the sensitive data into the pixel values of a first target image to obtain a preprocessed image set; the first target image is an image in the image data set; The image conversion module is used to map the grayscale value of the second target image in the preprocessed image set to the quantum bit to obtain a quantum image set; The image encryption module is used to select a quantum image group from the quantum image set, perform pixel value row-column transformation on the quantum image group to obtain a target quantum image group, and perform an XOR operation on the target quantum image group to obtain a target encrypted image group; the quantum image group includes any two quantum images; The data transmission module is used to send the target encrypted image group and non-sensitive information as encrypted ciphertext to a receiving end.
7. A data security transmission device for medical use according to claim 6, characterized in that: The image encryption module also includes: a pseudo-random number generation module and a key sequence determination module: The pseudo-random number generation module is used to initialize the chaotic system, and use the initial value and the control parameter as the input of the chaotic system for iterative training. The chaotic system generates pseudo-random numbers by iterative calculation according to a preset chaotic system formula; The key sequence determination module is used to obtain a key sequence group by using the pseudo-random number as a key sequence when the length of the pseudo-random number meets a preset encryption condition; the key sequence group includes an x key sequence and a y key sequence; Preset chaotic system formula: Among them, x and y represent the state variables of the chaotic system, and represents the values of the state variables x and y at a specific number of iterations n, and α and β represent the control parameters of the system, which determine the dynamic characteristics of the system and the degree of chaotic behavior.
8. The device for secure data transmission for medical use according to claim 7, characterized in that: The key sequence determination module further includes: a row pixel mapping module, a row pixel exchange module, a column pixel mapping module and a column pixel exchange module: The row pixel mapping module is used to map the sequence characteristic values of the x key sequence to the row pixels of the first quantum image, and to map the sequence characteristic values of the y key sequence to the row pixels of the second quantum image; The row pixel exchange module is used to compare the sequence characteristic values on the row pixels in the first quantum image and the second quantum image, and when the sequence characteristic values of the first quantum image and the second quantum image are the same, perform row pixel exchange to obtain the first row quantum image and the second row quantum image; The column pixel mapping module is used to map the sequence characteristic values of the x key sequence to the column pixels of the first row of quantum images, and to map the sequence characteristic values of the y key sequence to the column pixels of the second row of quantum images; The column pixel exchange module is used to judge the sequence characteristic values on the column pixels in the first row quantum image and the second row quantum image, and when the sum of the sequence characteristic values of the first column quantum image and the second column quantum image is an even number, perform column pixel exchange to obtain the first row column quantum image and the second row column quantum image.
9. A data security transmission device for medical use according to claim 8, characterized in that: The column pixel exchange module also includes: a two-dimensional matrix generation module, an odd-even judgment module and a pixel replacement module: The two-dimensional matrix generation module is used to obtain a two-dimensional matrix by performing an XOR operation on the x key sequence and the y key sequence; The parity determination module is used to read the pixel coordinates in the first row and column quantum image and the second row and column quantum image, and determine the parity of the pixel coordinates; The pixel replacement module is used to replace the pixel coordinates with the matrix elements of the corresponding coordinates in the two-dimensional matrix to obtain a target encrypted image group if the horizontal coordinate and the vertical coordinate of the pixel coordinate are both odd or even; the matrix elements are the pixel values of any coordinate of the two-dimensional pixel matrix, and the target encrypted image group includes the replaced first row and column quantum image and the replaced second row and column quantum image.
10. The device for secure data transmission for medical use according to claim 6, characterized in that: The data transmission module includes: a symmetric encryption module, an asymmetric encryption module and a data sending module: The symmetric encryption module is used to encrypt the target encrypted image group and non-sensitive information by a symmetric encryption algorithm to obtain first transmission data; The asymmetric encryption module is used to encrypt the symmetric key generated by the symmetric encryption algorithm by using the asymmetric encryption algorithm to obtain the second transmission data; The data sending module is used to send the first transmission data and the second transmission data to a receiving end.
Citation Information
Patent Citations
Medical data secure storage and transmission method and system based on block chain
CN117688606A