Data privacy protection method and system based on cloud service platform
By classifying and encrypting data under the cloud service platform, combined with noise and compression distortion control, the problem of not considering the degree of data connection and reducing image quality in the existing technology is solved, achieving more efficient data privacy protection and Image availability.
Patent Information
- Application Number
- CN202410947109.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing data privacy protection methods under cloud service platforms fail to fully consider the degree of connection between data when processing data. As a result, some sensitive data can be deduced from related data, and image blur processing reduces the visualization quality and affects the data. availability.
By distinguishing types of cloud service data, we identify and encrypt sensitive information in text data, calculate and control the noise distortion of images, perform image encryption processing based on compression distortion, and generate encrypted data to improve data protection effects.
It improves the data privacy protection effect under the cloud service platform, ensures data security and availability, avoids leakage of sensitive data and improves the visualization quality of images.
Smart Images

Figure CN118509433B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data encryption technology, and in particular to a data privacy protection method and system based on a cloud service platform. Background Art
[0002] The cloud service platform is a computing service model based on the Internet. It provides computing resources, storage space, applications and other services to users through the network. Users can flexibly choose and use these services according to their needs. Therefore, the cloud service platform has become an important choice for enterprises and individuals to store and process data. In order to ensure the security of data, it is necessary to protect the privacy of data under the cloud service platform.
[0003] The existing data privacy protection under the cloud service platform adopts the method of data desensitization and data blurring. The sensitive data in the data is identified and deleted, and the image data is blurred to achieve the purpose of data privacy protection. However, this method does not consider the degree of connection between the data during the processing process. It only considers deleting sensitive data and does not consider processing data associated with sensitive data. Some sensitive data can be deduced from the associated data, and the image data is blurred, which leads to a decrease in the visualization quality of the image and a decrease in the usability of the image. Therefore, a method is needed to improve the data privacy protection effect under the cloud service platform. Summary of the invention
[0004] The present invention provides a data privacy protection method and system based on a cloud service platform, the main purpose of which is to improve the data privacy protection effect under the cloud service platform.
[0005] To achieve the above purpose, the present invention provides a data privacy protection method based on a cloud service platform, comprising:
[0006] Acquire cloud service data under the cloud service platform, perform type differentiation processing on the cloud service data, and obtain cloud text data and cloud image data;
[0007] Identify plaintext characters in the cloud text data, mark plaintext sensitive data in the cloud text data according to the plaintext characters, analyze sensitive attributes corresponding to the plaintext sensitive data, determine private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, and encrypt the private text data to obtain encrypted text data;
[0008] Calculating the image sensitivity corresponding to each image in the cloud image data, setting the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculating the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor;
[0009] Perform compression processing on each image in the cloud image data to obtain a cloud compressed image, calculate the compression distortion between the cloud compressed image and each image in the cloud image data, combine the compression distortion and the noise distortion, perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, combine the encryption factor data and the encrypted visible image, and generate encrypted data corresponding to the cloud service data.
[0010] Optionally, marking the plaintext sensitive data in the cloud text data according to the plaintext characters includes:
[0011] Performing part-of-speech tagging on the plaintext characters to obtain character parts-of-speech;
[0012] According to the character part of speech, the plaintext characters are segmented to obtain plaintext segmented words;
[0013] Extracting key participles from the plaintext participles;
[0014] According to a preset sensitive word list, sensitive words in the key word segmentation are screened out;
[0015] According to the sensitive words, plaintext sensitive data in the cloud text data is marked.
[0016] Optionally, determining the private text data to be encrypted in the cloud text data according to the sensitive attribute and the plaintext sensitive data includes:
[0017] According to the plaintext sensitive data, regular plaintext data in the cloud text data is filtered out;
[0018] Analyze the data attributes corresponding to the conventional plaintext data, and calculate the attribute matching degree between the data attributes and the sensitive attributes;
[0019] Determining the associated sensitive data in the conventional plaintext data according to the attribute matching degree;
[0020] Based on the associated sensitive data and the plaintext sensitive data, the private text data to be encrypted in the cloud text data is generated.
[0021] Optionally, the calculating the attribute matching degree between the data attribute and the sensitive attribute includes:
[0022] Calculate the attribute Gini value corresponding to the data attribute;
[0023] According to the attribute Gini value, the data attribute is screened to obtain the target data attribute;
[0024] Calculating the attribute similarity between the target data attribute and the sensitive attribute;
[0025] According to the attribute similarity, the attribute matching degree between the data attribute and the sensitive attribute is calculated.
[0026] Optionally, calculating the image sensitivity corresponding to each image in the cloud image data includes:
[0027] Performing noise reduction processing on each image in the cloud image data to obtain a noise-reduced cloud image;
[0028] Performing image enhancement processing on the denoised cloud image to obtain a target cloud image;
[0029] Identify image elements in the target cloud image, and extract element labels corresponding to the image elements;
[0030] Determining sensitive elements in the image elements according to the element labels;
[0031] Calculate the sensitive element ratio of the sensitive element in the target cloud image;
[0032] According to the proportion of the sensitive elements, the image sensitivity corresponding to each image in the cloud image data is obtained.
[0033] Optionally, the calculating the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor includes:
[0034] Calculating the encryption sensitivity of pixels of each image in the cloud image data;
[0035] Combining the encryption sensitivity and the privacy control factor, the noise variance corresponding to each image in the cloud image data is calculated by the following formula:
[0036]
[0037] Where D represents the noise variance corresponding to each image in the cloud image data, represents the privacy control factor, Indicates encryption sensitivity;
[0038] Extracting image features corresponding to each image in the cloud image data;
[0039] Determining a noise pattern corresponding to each image in the cloud image data according to the image features;
[0040] Combining the noise pattern and the noise variance, generating an injected noise for each image in the cloud image data;
[0041] Injecting the injected noise into each image in the cloud image data to obtain a noisy image;
[0042] Respectively read the image pixel values corresponding to each image in the noise image and the cloud image data to obtain the noise pixel values and the original pixel values;
[0043] The noise pixel value and the original pixel value are combined to calculate the noise distortion corresponding to each image in the cloud image data.
[0044] Optionally, combining the noise pixel value and the original pixel value to calculate the noise distortion corresponding to each image in the cloud image data includes:
[0045] Counting the number of pixels corresponding to each image in the cloud image data;
[0046] Combining the number of pixels, the noise pixel value and the original pixel value, the noise distortion corresponding to each image in the cloud image data is calculated by the following formula:
[0047]
[0048] Among them, F represents the noise distortion corresponding to each image in the cloud image data, E represents the number of pixels, Represents the original pixel value corresponding to the b-th pixel point of the image in the cloud image data, It represents the noise pixel value corresponding to the b-th pixel of the noise image, and b represents the pixel serial number of each image in the cloud image data.
[0049] Optionally, compressing each image in the cloud image data to obtain a cloud compressed image includes:
[0050] Performing grayscale processing on each image in the cloud image data to obtain a cloud grayscale image;
[0051] Calculate the image cosine coefficient corresponding to each image in the cloud grayscale image;
[0052] The cloud grayscale image is compressed according to the image cosine coefficient to obtain a cloud compressed image.
[0053] Optionally, calculating the image cosine coefficient corresponding to each image in the cloud grayscale image includes:
[0054] Determine the spatial coordinate value corresponding to each image in the cloud grayscale image;
[0055] Calculate the frequency domain coordinate value corresponding to each image in the cloud grayscale image;
[0056] Combining the spatial coordinate value and the frequency domain coordinate value, the image cosine coefficient corresponding to each image in the cloud grayscale image is calculated by the following formula:
[0057]
[0058] Among them, H represents the image cosine coefficient corresponding to each image in the cloud grayscale image, Indicates the size of each image in the cloud grayscale image. Indicates that the image in the cloud grayscale image has a spatial coordinate of The spatial coordinate value at, x and y are the spatial coordinates of each image in the cloud grayscale image, u and v represent the spatial coordinates The frequency domain coordinate value at .
[0059] A data privacy protection system based on a cloud service platform, characterized in that the system comprises:
[0060] A data differentiation module is used to obtain cloud service data under the cloud service platform, perform type differentiation processing on the cloud service data, and obtain cloud text data and cloud image data;
[0061] A text data encryption module, used for identifying plaintext characters in the cloud text data, marking plaintext sensitive data in the cloud text data according to the plaintext characters, analyzing sensitive attributes corresponding to the plaintext sensitive data, determining private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, and encrypting the private text data to obtain encrypted text data;
[0062] A noise distortion calculation module, used to calculate the image sensitivity corresponding to each image in the cloud image data, set the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculate the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor;
[0063] The image encryption module is used to compress each image in the cloud image data to obtain a cloud compressed image, calculate the compression distortion between the cloud compressed image and each image in the cloud image data, combine the compression distortion and the noise distortion, perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, and combine the encryption factor data and the encrypted visible image to generate encrypted data corresponding to the cloud service data.
[0064] The present invention can classify the cloud service data into cloud text data and cloud image data according to the type by performing type differentiation processing on the cloud service data, so as to improve the subsequent data processing efficiency. The present invention can obtain the sensitive data in the cloud text data by marking the plaintext sensitive data in the cloud text data according to the plaintext characters, so as to facilitate the subsequent encryption processing. The present invention calculates the image sensitivity corresponding to each image in the cloud image data, and can understand the sensitivity corresponding to each image in the cloud image data through the image sensitivity, so as to facilitate the subsequent determination of the protection degree of the cloud image data. The present invention can compress the image to a certain proportion by compressing each image in the cloud image data, so as to facilitate the calculation of the compression distortion of the image, and provide a basis for the subsequent encryption processing of the image. The present invention combines the compression distortion and the noise distortion to perform noise encryption processing on each image in the cloud image data, so as to ensure the security and visualization quality of the image, and thus improve the availability of the image. Therefore, the data privacy protection method and system based on the cloud service platform provided by the embodiment of the present invention can improve the data privacy protection effect under the cloud service platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flowchart of a data privacy protection method based on a cloud service platform provided by an embodiment of the present invention;
[0066] Figure 2 A functional module diagram of a data privacy protection system based on a cloud service platform provided in one embodiment of the present invention.
[0067] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0068] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0069] The embodiment of the present application provides a data privacy protection method based on a cloud service platform. In the embodiment of the present application, the execution subject of the data privacy protection method based on the cloud service platform includes but is not limited to at least one of the electronic devices such as the server, the terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data privacy protection method based on the cloud service platform can be executed by software or hardware installed on the terminal device or the server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0070] Reference Figure 1 FIG. 1 is a flow chart of a data privacy protection method based on a cloud service platform provided by an embodiment of the present invention. In this embodiment, the data privacy protection method based on a cloud service platform includes steps S1-S4.
[0071] S1. Obtain cloud service data from a cloud service platform, perform type differentiation processing on the cloud service data, and obtain cloud text data and cloud image data.
[0072] The present invention can classify the cloud service data into cloud text data and cloud image data according to their types by performing type differentiation processing on the cloud service data, so as to improve the subsequent data processing efficiency, wherein the cloud service platform is a platform based on the computing service model of the Internet, which connects computing resources, storage space, application programs and other services through the network, and the cloud text data and the cloud image data are respectively the corresponding text type data and image type data in the cloud service data, and further, the type differentiation processing of the cloud service data can be implemented by a decision tree algorithm.
[0073] S2. Identify the plaintext characters in the cloud text data, mark the plaintext sensitive data in the cloud text data according to the plaintext characters, analyze the sensitive attributes corresponding to the plaintext sensitive data, determine the private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, encrypt the private text data, and obtain encrypted text data.
[0074] The present invention can obtain sensitive data in the cloud text data by marking the plaintext sensitive data in the cloud text data according to the plaintext characters, thereby facilitating subsequent encryption processing, wherein the plaintext characters are text characters in the cloud text data, and the plaintext sensitive data are sensitive data in the cloud text data, such as name, contact information, address, etc. Furthermore, the recognition of the plaintext characters in the cloud text data can be achieved through OCR recognition technology.
[0075] As an embodiment of the present invention, marking the plaintext sensitive data in the cloud text data according to the plaintext characters includes: performing part-of-speech tagging on the plaintext characters to obtain character parts of speech, performing word segmentation processing on the plaintext characters according to the character parts of speech to obtain plaintext word segments, extracting key word segments from the plaintext word segments, screening out sensitive words from the key word segments according to a preset sensitive word list, and marking the plaintext sensitive data in the cloud text data according to the sensitive words.
[0076] Among them, the character part of speech is the grammatical function corresponding to the plaintext character, such as verb, noun and adjective, the plaintext word segmentation is the word or phrase composed of the plaintext character, the key word segmentation is the representative word in the plaintext word segmentation, and the preset sensitive word table is a table constructed by collecting a large amount of sensitive type data in advance for analysis and extracting the data corresponding to the sensitive words.
[0077] Optionally, the part-of-speech tagging of the plaintext characters can be implemented through a machine learning algorithm, such as a hidden Markov model; the word segmentation processing of the plaintext characters can be implemented through an analysis tool, such as a stammering word segmentation; the extraction of key word segmentations in the plaintext word segmentations can be implemented through a TF-IDF algorithm; the screening of sensitive words in the key word segmentations can be implemented through a screening function, and the screening function is compiled by a scripting language, such as a JS scripting language; the marking of the plaintext sensitive data in the cloud text data can be implemented through a marking tool, such as a color marking tool.
[0078] The present invention determines the privacy text data to be encrypted in the cloud text data based on the sensitive attributes and the plaintext sensitive data, thereby improving the data protection scope corresponding to the cloud text data and avoiding the leakage of the plaintext sensitive data, wherein the sensitive attributes are the sensitive features corresponding to the plaintext sensitive data, and further, the analysis of the sensitive attributes corresponding to the plaintext sensitive data can be achieved through text mining methods.
[0079] As an embodiment of the present invention, determining the private text data to be encrypted in the cloud text data based on the sensitive attributes and the plaintext sensitive data includes: screening out regular plaintext data in the cloud text data based on the plaintext sensitive data, analyzing data attributes corresponding to the regular plaintext data, calculating the attribute matching degree between the data attributes and the sensitive attributes, determining the associated sensitive data in the regular plaintext data based on the attribute matching degree, and generating the private text data to be encrypted in the cloud text data based on the associated sensitive data and the plaintext sensitive data.
[0080] Among them, the conventional plaintext data is the non-sensitive data in the cloud text data, the data attribute is the data description feature corresponding to the conventional plaintext data, the attribute matching degree represents the matching degree between the data attribute and the sensitive attribute, and the associated sensitive data is the data in the conventional civilized data that has an associated relationship with the plaintext sensitive data.
[0081] Furthermore, the analysis of the data attributes corresponding to the conventional plaintext data can be achieved through the above-mentioned text mining method; the attribute matching degree is compared with the preset matching degree, and when the attribute matching degree is greater than the preset matching degree, the corresponding conventional plaintext data is used as associated sensitive data, wherein the preset matching degree is a pre-set threshold value, which can be 0.8, or can be set according to the actual business scenario.
[0082] Further, as an optional embodiment of the present invention, the calculating the attribute matching degree between the data attribute and the sensitive attribute includes: calculating the attribute Gini value corresponding to the data attribute, screening the data attribute according to the attribute Gini value to obtain the target data attribute, calculating the attribute similarity between the target data attribute and the sensitive attribute, and calculating the attribute matching degree between the data attribute and the sensitive attribute according to the attribute similarity.
[0083] Among them, the attribute Gini value represents the uncertainty corresponding to the data attribute. The lower the attribute Gini value, the higher the certainty of the corresponding data attribute, which in turn indicates that the importance of the data attribute is higher. The attribute similarity represents the similarity between the target data attribute and the sensitive attribute.
[0084] Furthermore, the attribute Gini value, the attributes with the attribute Gini value are selected from the attributes of the same category of the data attributes to be retained, so as to obtain the target data attribute; the attribute similarity between the target data attribute and the sensitive attribute can be realized by a cosine similarity algorithm; the attribute similarities corresponding to each attribute in the data attribute are summed and divided by the number of the sensitive attributes to obtain the attribute matching degree.
[0085] Further, as an optional embodiment of the present invention, the calculating the attribute Gini value corresponding to the data attribute includes: counting the attribute frequency corresponding to each attribute in the data attribute, and calculating the attribute Gini value corresponding to the data attribute according to the attribute frequency by the following formula:
[0086]
[0087] Among them, A represents the attribute Gini value corresponding to the data attribute, Indicates the attribute frequency corresponding to the ath attribute in the data attributes.
[0088] The present invention can improve the security of the private text data by encrypting the private text data. Furthermore, the encryption processing of the private text data can be implemented by an encryption algorithm, such as a symmetric encryption algorithm.
[0089] S3. Calculate the image sensitivity corresponding to each image in the cloud image data, set the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculate the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor.
[0090] The present invention calculates the image sensitivity corresponding to each image in the cloud image data, and can use the image sensitivity to understand the sensitivity level corresponding to each image in the cloud image data, thereby facilitating the subsequent determination of the protection level of the cloud image data, wherein the image sensitivity represents the sensitivity level corresponding to each image in the cloud image data.
[0091] As an embodiment of the present invention, the calculation of the image sensitivity corresponding to each image in the cloud image data includes: performing denoising processing on each image in the cloud image data to obtain a denoised cloud image, performing image enhancement processing on the denoised cloud image to obtain a target cloud image, identifying image elements in the target cloud image, extracting element labels corresponding to the image elements, determining sensitive elements in the image elements based on the element labels, calculating the sensitive element ratio of the sensitive elements in the target cloud image, and obtaining the image sensitivity corresponding to each image in the cloud image data based on the sensitive element ratio.
[0092] Among them, the denoised cloud image is an image obtained after removing the noise interference in each image in the cloud image data, the target cloud image is an image obtained after the image quality in the denoised cloud image is enhanced, the image element is a basic component in the target cloud image, the element label is an element identifier corresponding to the image element, the sensitive element is a privacy element in the image element, and the sensitive element ratio represents the proportion of the sensitive element in the target cloud image.
[0093] Optionally, the noise reduction processing of each image in the cloud image data can be implemented by a low-pass filter; the image enhancement processing of the noise-reduced cloud image can be implemented by a corresponding enhancement algorithm, such as a histogram equalization algorithm; the recognition of image elements in the target cloud image can be implemented by a deep learning algorithm, such as a convolutional neural network; the element labels corresponding to the image elements can be implemented by a label extraction tool, and the label extraction tool is compiled by JAVA language; the label content of the element label is retrieved, and based on the label content, the label content is analyzed to see whether there is sensitive content, such as face or work badge information, so as to determine the sensitive elements in the image elements; the ratio of the number of element pixels of the sensitive elements in the target cloud image and the number of image pixels corresponding to the target cloud image can be calculated to obtain the proportion of sensitive elements; the proportions of sensitive elements are summed to obtain the total proportion of sensitive elements, and the total proportion of sensitive elements is used as the image sensitivity corresponding to each image in the cloud image data.
[0094] The present invention sets a privacy control factor for each image in the cloud image data according to the image sensitivity, and can determine the degree of protection of each image in the cloud image data through the privacy control factor, thereby facilitating subsequent image encryption processing, wherein the privacy control factor is the degree of privacy protection corresponding to each image in the cloud image data. Furthermore, the decimal form corresponding to the image sensitivity can be used as the privacy control factor for each image in the cloud image data. For example, if the sensitivity is 60%, the privacy control factor is set to 0.6.
[0095] The present invention calculates the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor, and can obtain the image distortion degree of each image in the cloud image data under the added noise corresponding to the privacy control factor, wherein the noise distortion degree represents the degree of image distortion of each image in the cloud image data after the privacy control factor is added.
[0096] As an embodiment of the present invention, the step of calculating the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor includes: calculating the encryption sensitivity of pixels of each image in the cloud image data, and calculating the noise variance corresponding to each image in the cloud image data by combining the encryption sensitivity and the privacy control factor through the following formula:
[0097]
[0098] Where D represents the noise variance corresponding to each image in the cloud image data, represents the privacy control factor, Indicates encryption sensitivity;
[0099] Extract image features corresponding to each image in the cloud image data, determine a noise pattern corresponding to each image in the cloud image data according to the image features, generate injected noise for each image in the cloud image data by combining the noise pattern and the noise variance, inject the injected noise into each image in the cloud image data to obtain a noise image, read the image pixel values corresponding to the noise image and each image in the cloud image data respectively to obtain a noise pixel value and an original pixel value, and calculate a noise distortion corresponding to each image in the cloud image data by combining the noise pixel value and the original pixel value.
[0100] Among them, the encryption sensitivity represents the degree of influence of the change of pixels of each image in the cloud image data on encryption, the noise variance represents the noise energy that needs to be added to each image in the cloud image data, the image feature is the image representation corresponding to each image in the cloud image data, such as texture feature, the noise pattern is the type of added noise corresponding to each image in the cloud image data, such as Gaussian noise, and the noise image is the image obtained after the injected noise is injected into each image in the cloud image data.
[0101] Furthermore, the calculation process of the encryption sensitivity of the pixels of each image in the cloud image data is as follows: a conventional encryption algorithm is selected, and each image in the cloud image data is encrypted, some pixel values of the encrypted image are slightly modified, the modified image is decrypted using a corresponding decryption algorithm, and the decryption error is calculated by combining the decrypted image with the original plaintext image, which can be achieved by calculating the peak signal-to-noise ratio, and then the encryption sensitivity of the pixels of each image in the cloud image data is obtained; the image features corresponding to each image in the cloud image data can be realized by a feature extraction algorithm, such as a SIFT algorithm; the feature type corresponding to the image feature is determined, and according to the feature type, the noise pattern corresponding to each image in the cloud image data is determined, for example, salt and pepper noise is composed of random black and white pixels. In some cases, salt and pepper noise may have a certain similarity with texture features, so Gaussian noise or other types of noise can be selected; the generation of injected noise for each image in the cloud image data can be realized by a corresponding function, such as a Gaussian function, and the noise variance can be input into the Gaussian function to generate the corresponding Gaussian noise.
[0102] Optionally, as an optional embodiment of the present invention, the combining the noise pixel value and the original pixel value to calculate the noise distortion corresponding to each image in the cloud image data includes: counting the number of pixels corresponding to each image in the cloud image data, combining the number of pixels, the noise pixel value and the original pixel value, and calculating the noise distortion corresponding to each image in the cloud image data by the following formula:
[0103]
[0104] Among them, F represents the noise distortion corresponding to each image in the cloud image data, E represents the number of pixels, Represents the original pixel value corresponding to the b-th pixel point of the image in the cloud image data, It represents the noise pixel value corresponding to the b-th pixel of the noise image, and b represents the pixel serial number of each image in the cloud image data.
[0105] S4. Perform compression processing on each image in the cloud image data to obtain a cloud compressed image, calculate the compression distortion between the cloud compressed image and each image in the cloud image data, combine the compression distortion and the noise distortion, perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, combine the encryption factor data and the encrypted visible image, and generate encrypted data corresponding to the cloud service data.
[0106] The present invention compresses each image in the cloud image data to a certain ratio, thereby facilitating the calculation of the compression distortion of the image and providing a basis for subsequent encryption processing of the image.
[0107] As an embodiment of the present invention, the compressing process of each image in the cloud image data to obtain a cloud compressed image includes: performing grayscale processing on each image in the cloud image data to obtain a cloud grayscale image, calculating the image cosine coefficient corresponding to each image in the cloud grayscale image, and compressing the cloud grayscale image according to the image cosine coefficient to obtain a cloud compressed image.
[0108] Among them, the cloud grayscale image is an image in which each image in the cloud image data has only brightness information, and the image cosine coefficient is the energy distribution of different frequency components in each image in the cloud grayscale image. Furthermore, the grayscale processing of each image in the cloud image data can be achieved through the average method, and the pixel values of the three channels of each image in the cloud image data are averaged to obtain the grayscale value, and the grayscale value is used to alternately process the pixels of each image to obtain the cloud grayscale image.
[0109] Further, as an optional embodiment of the present invention, the calculating of the image cosine coefficient corresponding to each image in the cloud grayscale image includes: determining the spatial coordinate value corresponding to each image in the cloud grayscale image, and calculating the frequency domain coordinate value corresponding to each image in the cloud grayscale image, and combining the spatial coordinate value and the frequency domain coordinate value to calculate the image cosine coefficient corresponding to each image in the cloud grayscale image by the following formula:
[0110]
[0111] Among them, H represents the image cosine coefficient corresponding to each image in the cloud grayscale image, Indicates the size of each image in the cloud grayscale image. Indicates that the image in the cloud grayscale image has a spatial coordinate of The spatial coordinate value at, x and y are the spatial coordinates of each image in the cloud grayscale image, u and v represent the spatial coordinates The frequency domain coordinate value at .
[0112] Among them, the frequency domain coordinate value is the numerical value representing the frequency of each image in the cloud grayscale image in the frequency domain. Furthermore, the spatial coordinate value corresponding to each image in the cloud grayscale image can be determined according to the pixel position; the calculation of the frequency domain coordinate value corresponding to each image in the cloud grayscale image can be achieved by Fourier algorithm.
[0113] Further, as an optional embodiment of the present invention, the cloud grayscale image is compressed according to the image cosine coefficient to obtain a cloud compressed image, including: coefficient screening of the image cosine coefficient to obtain a target cosine coefficient, quantization of the target cosine coefficient to obtain a quantized cosine coefficient, encoding of the quantized cosine coefficient to obtain an encoded cosine coefficient, decoding of the encoded cosine coefficient to obtain a decoded cosine coefficient, inverse cosine transform of the decoded cosine coefficient to obtain a reconstructed cloud image, and using the reconstructed cloud image as a compressed image corresponding to the cloud grayscale image to obtain a cloud compressed image.
[0114] Among them, the target cosine coefficient is a coefficient obtained by removing some coefficients in the image cosine coefficient, the quantized cosine coefficient is a coefficient obtained by reducing the number of bits in the target cosine coefficient, and the target cosine coefficient is represented by fewer bits, the encoded cosine coefficient is a coefficient converted from the quantized cosine coefficient to a more compact form of expression, the decoded cosine coefficient is a cosine coefficient value obtained after decoding the encoded cosine coefficient, and is used to restore the encoded cosine coefficient to its original form of representation, and the reconstructed cloud image is an image obtained by performing an inverse cosine transform on the decoded cosine coefficient.
[0115] Furthermore, the coefficient screening of the image cosine coefficients can be achieved in combination with the coefficient threshold, and the coefficient threshold can be obtained by averaging the image cosine coefficients; the quantization processing of the target cosine coefficients can be achieved by an equidistant quantization method; the encoding processing of the quantized cosine coefficients can be achieved by an encoding function, such as one-hot encoding; the decoding processing of the encoded cosine coefficients can be achieved by a Huffman decoding algorithm; and the inverse cosine transform of the decoded cosine coefficients can be achieved by an inverse DCT algorithm.
[0116] The present invention combines the compression distortion and the noise distortion to perform noise encryption processing on each image in the cloud image data, which can ensure the security and visualization quality of the image, thereby improving the availability of the image. Furthermore, the minimum distortion corresponding to the compression distortion and the noise distortion is identified, and the optimal compression coefficient and the optimal noise energy are determined according to the minimum distortion. The optimal compression coefficient is used to compress each image in the cloud image data to obtain a compressed image, and the optimal noise energy is injected into the compressed image to complete the noise encryption processing of each image in the cloud image data to obtain an encrypted visualized image. Finally, the original data is updated in combination with the encryption factor data and the encrypted visible image to obtain encrypted data corresponding to the cloud service data.
[0117] The present invention can classify the cloud service data into cloud text data and cloud image data according to the type by performing type differentiation processing on the cloud service data, so as to improve the subsequent data processing efficiency. The present invention can obtain the sensitive data in the cloud text data by marking the plaintext sensitive data in the cloud text data according to the plaintext characters, so as to facilitate the subsequent encryption processing. The present invention calculates the image sensitivity corresponding to each image in the cloud image data, and can understand the sensitivity corresponding to each image in the cloud image data through the image sensitivity, so as to facilitate the subsequent determination of the protection degree of the cloud image data. The present invention can compress the image to a certain proportion by compressing each image in the cloud image data, so as to facilitate the calculation of the compression distortion of the image, and provide a basis for the subsequent encryption processing of the image. The present invention combines the compression distortion and the noise distortion to perform noise encryption processing on each image in the cloud image data, so as to ensure the security and visualization quality of the image, and thus improve the availability of the image. Therefore, the data privacy protection method based on the cloud service platform provided in the embodiment of the present invention can improve the data privacy protection effect under the cloud service platform.
[0118] like Figure 2 , which is a functional module diagram of a data privacy protection system based on a cloud service platform provided by an embodiment of the present invention.
[0119] The data privacy protection system 100 based on the cloud service platform described in the present invention can be installed in an electronic device. According to the functions implemented, the data privacy protection system 100 based on the cloud service platform can include a data differentiation module 101, a text data encryption module 102, a noise distortion calculation module 103 and an image encryption module 104. The module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0120] In this embodiment, the functions of each module / unit are as follows:
[0121] The data distinguishing module 101 is used to obtain cloud service data under the cloud service platform, perform type distinguishing processing on the cloud service data, and obtain cloud text data and cloud image data;
[0122] The text data encryption module 102 is used to identify plaintext characters in the cloud text data, mark the plaintext sensitive data in the cloud text data according to the plaintext characters, analyze the sensitive attributes corresponding to the plaintext sensitive data, determine the private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, and encrypt the private text data to obtain encrypted text data;
[0123] The noise distortion calculation module 103 is used to calculate the image sensitivity corresponding to each image in the cloud image data, set the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculate the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor;
[0124] The image encryption module 104 is used to compress each image in the cloud image data to obtain a cloud compressed image, calculate the compression distortion between the cloud compressed image and each image in the cloud image data, combine the compression distortion and the noise distortion, perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, and combine the encryption factor data and the encrypted visible image to generate encrypted data corresponding to the cloud service data.
[0125] In detail, each module described in the data privacy protection system 100 based on the cloud service platform described in the embodiment of the present application adopts the same Figure 1 The data privacy protection method based on the cloud service platform is a technical means similar to that described in the text and can produce the same technical effect, which will not be repeated here.
[0126] In the several embodiments provided by the present invention, it should be understood that the provided methods and systems can be implemented in other ways. For example, the method embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data privacy protection method based on a cloud service platform, characterized in that: The method comprises: Acquire cloud service data under the cloud service platform, perform type differentiation processing on the cloud service data, and obtain cloud text data and cloud image data; Identify plaintext characters in the cloud text data, mark plaintext sensitive data in the cloud text data according to the plaintext characters, analyze sensitive attributes corresponding to the plaintext sensitive data, determine private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, and encrypt the private text data to obtain encrypted text data; Calculating the image sensitivity corresponding to each image in the cloud image data, setting the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculating the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor, wherein calculating the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor includes: Calculating the encryption sensitivity of pixels of each image in the cloud image data; Combining the encryption sensitivity and the privacy control factor, the noise variance corresponding to each image in the cloud image data is calculated by the following formula: Where D represents the noise variance corresponding to each image in the cloud image data, represents the privacy control factor, Indicates encryption sensitivity; Extracting image features corresponding to each image in the cloud image data; Determining a noise pattern corresponding to each image in the cloud image data according to the image features; Combining the noise pattern and the noise variance, generating an injected noise for each image in the cloud image data; Injecting the injected noise into each image in the cloud image data to obtain a noisy image; Respectively read the image pixel values corresponding to each image in the noise image and the cloud image data to obtain the noise pixel values and the original pixel values; Calculate the noise distortion corresponding to each image in the cloud image data by combining the noise pixel value and the original pixel value; Each image in the cloud image data is compressed to obtain a cloud compressed image, a compression distortion between the cloud compressed image and each image in the cloud image data is calculated, the compression distortion and the noise distortion are combined to perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, and the encrypted text data and the encrypted visible image are combined to generate encrypted data corresponding to the cloud service data.
2. A data privacy protection method based on a cloud service platform as claimed in claim 1, characterized in that: The step of marking the plaintext sensitive data in the cloud text data according to the plaintext characters includes: Performing part-of-speech tagging on the plaintext characters to obtain character parts-of-speech; According to the character part of speech, the plaintext characters are segmented to obtain plaintext segmented words; Extracting key participles from the plaintext participles; According to a preset sensitive word list, sensitive words in the key word segmentation are screened out; According to the sensitive words, plaintext sensitive data in the cloud text data is marked.
3. A data privacy protection method based on a cloud service platform as claimed in claim 1, characterized in that: The step of determining the private text data to be encrypted in the cloud text data according to the sensitive attribute and the plaintext sensitive data includes: According to the plaintext sensitive data, regular plaintext data in the cloud text data is filtered out; Analyze the data attributes corresponding to the conventional plaintext data, and calculate the attribute matching degree between the data attributes and the sensitive attributes; Determining the associated sensitive data in the conventional plaintext data according to the attribute matching degree; Based on the associated sensitive data and the plaintext sensitive data, the private text data to be encrypted in the cloud text data is generated.
4. A data privacy protection method based on a cloud service platform as claimed in claim 3, characterized in that: The calculating the attribute matching degree between the data attribute and the sensitive attribute includes: Calculate the attribute Gini value corresponding to the data attribute; According to the attribute Gini value, the data attribute is screened to obtain the target data attribute; Calculating the attribute similarity between the target data attribute and the sensitive attribute; According to the attribute similarity, the attribute matching degree between the data attribute and the sensitive attribute is calculated.
5. A data privacy protection method based on a cloud service platform as claimed in claim 1, characterized in that: The calculating the image sensitivity corresponding to each image in the cloud image data includes: Performing noise reduction processing on each image in the cloud image data to obtain a noise-reduced cloud image; Performing image enhancement processing on the denoised cloud image to obtain a target cloud image; Identify image elements in the target cloud image, and extract element labels corresponding to the image elements; Determining sensitive elements in the image elements according to the element labels; Calculate the sensitive element ratio of the sensitive element in the target cloud image; According to the proportion of the sensitive elements, the image sensitivity corresponding to each image in the cloud image data is obtained.
6. A data privacy protection method based on a cloud service platform as claimed in claim 1, characterized in that: The combining the noise pixel value and the original pixel value to calculate the noise distortion corresponding to each image in the cloud image data includes: Counting the number of pixels corresponding to each image in the cloud image data; Combining the number of pixels, the noise pixel value and the original pixel value, the noise distortion corresponding to each image in the cloud image data is calculated by the following formula: Among them, F represents the noise distortion corresponding to each image in the cloud image data, E represents the number of pixels, Represents the original pixel value corresponding to the b-th pixel point of the image in the cloud image data, It represents the noise pixel value corresponding to the b-th pixel of the noise image, and b represents the pixel serial number of each image in the cloud image data.
7. A data privacy protection method based on a cloud service platform as claimed in claim 1, characterized in that: The compressing each image in the cloud image data to obtain a cloud compressed image includes: Performing grayscale processing on each image in the cloud image data to obtain a cloud grayscale image; Calculate the image cosine coefficient corresponding to each image in the cloud grayscale image; The cloud grayscale image is compressed according to the image cosine coefficient to obtain a cloud compressed image.
8. A data privacy protection method based on a cloud service platform as claimed in claim 7, characterized in that: The calculating the image cosine coefficient corresponding to each image in the cloud grayscale image includes: Determine the spatial coordinate value corresponding to each image in the cloud grayscale image; Calculate the frequency domain coordinate value corresponding to each image in the cloud grayscale image; Combining the spatial coordinate value and the frequency domain coordinate value, the image cosine coefficient corresponding to each image in the cloud grayscale image is calculated by the following formula: Among them, H represents the image cosine coefficient corresponding to each image in the cloud grayscale image, Indicates the size of each image in the cloud grayscale image. Indicates that the image in the cloud grayscale image has a spatial coordinate of The spatial coordinate value at, x and y are the spatial coordinates of each image in the cloud grayscale image, u and v represent the spatial coordinates The frequency domain coordinate value at .
9. A data privacy protection system based on a cloud service platform, characterized in that: The system comprises: A data differentiation module is used to obtain cloud service data under the cloud service platform, perform type differentiation processing on the cloud service data, and obtain cloud text data and cloud image data; A text data encryption module, used for identifying plaintext characters in the cloud text data, marking plaintext sensitive data in the cloud text data according to the plaintext characters, analyzing sensitive attributes corresponding to the plaintext sensitive data, determining private text data to be encrypted in the cloud text data according to the sensitive attributes and the plaintext sensitive data, and encrypting the private text data to obtain encrypted text data; A noise distortion calculation module is used to calculate the image sensitivity corresponding to each image in the cloud image data, set the privacy control factor of each image in the cloud image data according to the image sensitivity, and calculate the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor, wherein the calculation of the noise distortion corresponding to each image in the cloud image data in combination with the privacy control factor includes: Calculating the encryption sensitivity of pixels of each image in the cloud image data; Combining the encryption sensitivity and the privacy control factor, the noise variance corresponding to each image in the cloud image data is calculated by the following formula: Where D represents the noise variance corresponding to each image in the cloud image data, represents the privacy control factor, Indicates encryption sensitivity; Extracting image features corresponding to each image in the cloud image data; Determining a noise pattern corresponding to each image in the cloud image data according to the image features; Combining the noise pattern and the noise variance, generating an injected noise for each image in the cloud image data; Injecting the injected noise into each image in the cloud image data to obtain a noisy image; Respectively read the image pixel values corresponding to each image in the noise image and the cloud image data to obtain the noise pixel values and the original pixel values; Calculate the noise distortion corresponding to each image in the cloud image data by combining the noise pixel value and the original pixel value; The image encryption module is used to compress each image in the cloud image data to obtain a cloud compressed image, calculate the compression distortion between the cloud compressed image and each image in the cloud image data, combine the compression distortion and the noise distortion, perform noise encryption processing on each image in the cloud image data to obtain an encrypted visible image, and combine the encrypted text data and the encrypted visible image to generate encrypted data corresponding to the cloud service data.
