A multimodal privacy-sensitive data detection and encryption method

By constructing a multi-modal neural network model and combining it with deep learning models such as LSTM and ResNet, the problem of difficulty in detecting privacy-sensitive content in multi-modal data with existing technology is solved, and accurate detection and encryption of multi-modal data are achieved. , providing strong privacy protection.

CN114817951BActive Publication Date: 2024-08-27DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210349108.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-01
Publication Date
2024-08-27
Estimated Expiration
2042-04-01

AI Technical Summary

Technical Problem

Existing privacy detection technology mainly targets single-modal data and is difficult to effectively detect and process privacy-sensitive content in multi-modal data. Moreover, existing methods have limitations in artificially defined features and are difficult to adapt to multiple data types.

Method used

Construct a multi-modal neural network model, including a feature extractor and a weight generator. Through preprocessing and training of different modalities, combined with deep learning models such as LSTM and ResNet, features are extracted and weighted predictions are performed to achieve multi-modal data Privacy zone detection and encryption.

Benefits of technology

It achieves accurate detection and encryption of privacy-sensitive content in multi-modal data, provides stronger personal privacy protection, simplifies the detection process, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114817951B
    Figure CN114817951B
Patent Text Reader

Abstract

The present invention discloses a multimodal privacy-sensitive data detection and encryption method, comprising: constructing a group of feature extractors and weight generators suitable for text, image, and speech respectively, and constructing a group of corresponding prediction modules to obtain an overall neural network model; generating a supporting data set based on an original data set, preprocessing different modal data in the original data set and the supporting data set using methods corresponding to different modalities, and inputting the preprocessed data into the neural network model; combining the constructed feature extractors and prediction modules, and training them on the privacy-sensitive data set to obtain a first-stage neural network model; connecting the constructed weight generator to the trained first-stage neural network model for joint training to obtain a final overall neural network model, inputting the sample to be detected into the trained neural network model for privacy area detection, and performing encryption operations on the detected area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of privacy data security, and in particular to a multimodal privacy-sensitive data detection and encryption method. Background Art

[0002] With the rapid development of online social applications, social platforms such as Weibo and Moments have become channels for most people to share their daily lives. However, various personal privacy leaks have followed. Notes, pictures, voices or videos that are inadvertently shared may become tools for criminals to make money. Most of the current privacy detection technologies use traditional RMM word segmentation algorithms, Bayesian classification algorithms, etc. These methods use artificial methods to define privacy features. For example, the Green Dam Youth Escort System simply defines flesh-colored content as pornographic content. In addition, most existing methods are aimed at single-modal data, while in real life, we often need to face data in multiple modalities. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention discloses a multimodal privacy-sensitive data detection and encryption method, which specifically includes the following steps:

[0004] Construct a set of feature extractors and weight generators suitable for text, image, and speech respectively, and construct a set of corresponding prediction modules to obtain the overall neural network model;

[0005] Generate a supporting data set based on the original data set, pre-process the different modal data in the original data set and the supporting data set using methods corresponding to different modalities, and input the pre-processed data into the neural network model;

[0006] The constructed feature extractor and prediction module are combined and trained on the privacy-sensitive dataset to obtain the first-stage neural network model;

[0007] The constructed weight generator is connected to the trained first-stage neural network model for joint training to obtain the final overall neural network model. The weight generator extracts the weight vectors of each category of the corresponding modality from the data set, and uses the vector to weight the feature map of the detection sample, so as to predict the weighted feature map;

[0008] The sample to be detected is input into the trained neural network model for privacy area detection, and the detected area is encrypted.

[0009] Furthermore, an LSTM-based RNN model is constructed as a text feature extractor, and the output of the text feature extractor at each time sequence is used to form a feature graph. The RNN model is trained on the sentiment prediction task on a public dataset, and the trained feature extractor is used for text feature extraction. At the same time, a similar RNN model is constructed as a text weight generator, and the output of the last time sequence is used as the output of the weight generator.

[0010] A privacy region prediction module in text is constructed using one-dimensional convolution to predict the two-dimensional feature map output by the RNN model.

[0011] Construct a ResNet model and use it as an image feature extractor. Train the image feature extractor for image classification tasks to obtain a trained image feature extractor. Construct a similar ResNet model and change its output layer to a global average pooling layer as an image weight generator.

[0012] The privacy area prediction module in the image is constructed using two-dimensional convolution to predict the three-dimensional feature map output by ResNet.

[0013] Furthermore, the privacy areas in the original data are intercepted and classified according to the annotation information, and all the privacy areas are intercepted separately as supporting data to form a supporting data set;

[0014] The Skip-gram algorithm is used to map text data into a new multidimensional space to obtain text embedding vectors;

[0015] Convert the image to an RGB image, scale and fill the image to obtain an image of fixed size, and normalize the pixel values ​​of the cropped image;

[0016] A Hamming window is constructed and used to frame and window the audio data. Then, a fast Fourier transform is performed on the processed data to convert the time domain signal into a frequency domain signal, thereby obtaining a spectrogram of the audio data.

[0017] Furthermore, the video data is read frame by frame to obtain a plurality of image data, and then a preprocessing operation is performed on the plurality of image data.

[0018] Furthermore, a certain modality data is sampled in the original data set as a sample to be detected, and the sample to be detected is preprocessed;

[0019] Input the preprocessed data into the feature extractor corresponding to the modality to obtain a feature map;

[0020] Each point on the feature map is set as an anchor point and multiple prior boxes of different sizes are generated. The feature map is input into the prediction module corresponding to the modality to obtain the prediction result, and the prediction box is non-maximum suppressed to obtain the final prediction box and its classification result.

[0021] Select the loss function corresponding to the class confidence and prior box adjustment parameters and perform backpropagation and model parameter update;

[0022] Repeat the above process to train the first stage neural network.

[0023] Furthermore, a certain modality data is randomly sampled in the original data set as the sample to be detected, and a sample is randomly sampled for each category under the modality in the support data set as the support sample, and the sampled data is processed using the corresponding modality preprocessing method;

[0024] Input the sample to be detected and the supporting sample into the feature extractor and weight generator corresponding to the modality respectively to obtain the feature map and the weight vector of each category;

[0025] The feature map is weighted using the weight vectors of each category. For the text feature map, row-by-row multiplication is adopted, and for the image feature map and the audio feature map, channel-by-channel multiplication is adopted to obtain the weighted feature map of each category.

[0026] Each point on the weighted feature map of each category is set as an anchor point and multiple prior boxes of different sizes are generated. The output dimension of the last layer of category prediction of the prediction module is changed to one. The weighted feature map of each category is predicted using the changed prediction module to obtain the prediction results of each category. The prediction box is non-maximum suppressed to obtain the final prediction box and its classification result.

[0027] Select the loss function corresponding to the class confidence and prior box adjustment parameters and perform backpropagation and model parameter update;

[0028] Repeat the above process to train the entire neural network.

[0029] Furthermore, the data sample to be detected is input, its modality type is determined, a sample is randomly sampled for each category under the modality in the supporting data set as a supporting sample, and a corresponding data preprocessing method is selected according to the modality type to preprocess the data sample and the supporting sample, and the preprocessed data is input into the trained neural network model, and the neural network model selects the corresponding module according to the modality type for prediction to obtain the prediction box and its classification result;

[0030] The prediction box area of ​​the detection sample is encrypted according to the modality type, and the prediction box area of ​​the detection sample is locally encrypted using the encryption method corresponding to the modality.

[0031] Due to the adoption of the above-mentioned technical scheme, the present invention provides a multimodal privacy-sensitive data detection and encryption method, which can effectively solve the detection of privacy-sensitive content in data under different modalities, so that the privacy area can be further encrypted; the algorithm proposed in the present invention is simple and efficient, and by utilizing a deep learning model, it can accurately identify privacy-sensitive areas and their categories under multiple modalities, thereby providing strong protection for personal privacy. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 is a flow chart of the method of the present invention;

[0034] Figure 2 It is the principle diagram of the weighting process in the present invention;

[0035] Figure 3 This is a schematic diagram of the prior frame setting method in the present invention;

[0036] Figure 4 It is a schematic diagram of the image encryption and decryption results in the present invention. DETAILED DESCRIPTION

[0037] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:

[0038] like Figure 1 A multimodal privacy-sensitive data detection and encryption method is shown, which specifically includes the following steps:

[0039] S1: Model initialization stage: construct a set of feature extractors and weight generators suitable for text, image, and speech, and construct a set of corresponding prediction modules. The specific method is as follows:

[0040] S11: Construct an LSTM-based RNN model as a feature extractor, use the output of each time series to form a feature graph, and train the two models on the sentiment prediction task on the IMDB dataset to obtain the trained feature extractor for text feature extraction. At the same time, construct a similar RNN model as a weight generator, and use the output of the last time series as the output of the model;

[0041] S12: Use one-dimensional convolution to construct a text privacy region prediction module to predict the two-dimensional feature map output by RNN;

[0042] S13: Construct a ResNet model as a feature extractor and train it on the ImageNet image classification task to obtain a trained feature extractor for image feature extraction. At the same time, construct a similar ResNet model and change its output layer to a global average pooling layer as a weight generator;

[0043] S14: Use two-dimensional convolution to construct a privacy region prediction module in the image and predict the three-dimensional feature map output by ResNet;

[0044] S15: Construct a DFCNN model as a feature extractor and train the speech recognition task on THCHS30 to obtain the trained feature extractor for audio feature extraction. At the same time, construct a similar DFCNN model and change its output layer to a global average pooling layer as a weight generator;

[0045] S16: Use two-dimensional convolution to construct a privacy area prediction module in the image and predict the one-dimensional multi-channel feature map output by DFCNN.

[0046] S2: Data preprocessing stage: Generate a supporting data set based on the original data set. Then, use corresponding methods to preprocess the different modal data in the original data set and the supporting data set so that they can be directly input into the neural network model. The specific methods are as follows:

[0047] S21: intercepting and classifying the privacy areas in the original data according to the annotation information, and extracting all the privacy areas separately as supporting data to form a supporting data set;

[0048] S22: Use Skip-gram algorithm to map text data into a new multidimensional space and obtain its embedding vector;

[0049] S22: convert the image into an RGB image, scale and pad the image to obtain an image of a fixed size, and normalize the pixel values ​​of the cropped image;

[0050] S23: construct a Hamming window using the following formula, use the Hamming window to frame and window the audio data, and then perform fast Fourier transform on the processed data to convert the time domain signal to the frequency domain;

[0051]

[0052] S24: Read the video data into multiple image data by frame division and convert them into image processing methods.

[0053] S3: The first stage of training: Combine the constructed feature extractor and prediction module and train them on the privacy-sensitive dataset. The specific method is as follows:

[0054] S31: sampling a certain modality data in the original data set as a sample to be detected, and preprocessing is performed using a corresponding method according to the modality;

[0055] S32: input the preprocessed data into a feature extractor corresponding to the modality to obtain a feature map;

[0056] S33: Set each point on the feature map as an anchor point and generate three prior boxes of different sizes, then input the feature map into the prediction module corresponding to the modality to obtain the prediction result [prior box, two prior box adjustment parameters, classification confidence], where the prior box adjustment parameters are left and right border adjustment values ​​for text and audio data, and width and height adjustment values ​​for image data. Then perform non-maximum suppression on the prediction box to obtain a reasonable prediction box and its classification;

[0057] S34: Use Focal Loss and IOU Loss as the loss functions of classification confidence and prior box adjustment parameters respectively to perform back propagation to update model parameters;

[0058] S35: Repeat S31-S34 to perform training.

[0059] S4: Second stage of training: Connect the constructed weight generator to the trained first stage model for joint training. The weight generator extracts the weight vectors of each category of the corresponding modality from the data set, and uses the vector to weight the feature map of the detection sample, and then predicts the weighted feature map. The specific method is as follows:

[0060] S41: Randomly sample a modal data in the original data set as the sample to be detected, and randomly sample a sample for each category under the modality in the supporting data set as the supporting sample. Use the corresponding modal preprocessing method to process the sampled data;

[0061] S42: Input the sample to be detected and the supporting sample into the feature extractor and weight generator corresponding to the modality respectively to obtain a feature map and a weight vector of each category;

[0062] S43: Use the weight vectors of each category to perform weighted operations on the feature map. For the text feature map, row-by-row multiplication is used, and for the image feature map and the audio feature map, channel-by-channel multiplication is used to obtain the weighted feature map of each category. Figure 2 As shown;

[0063] S44: Set each point on the weighted feature map of each category as an anchor point and generate three prior boxes of different sizes. The prior boxes are set as follows: Figure 3 As shown. Change the output dimension of the last layer of the prediction module to 1, and then use the changed prediction module to predict the weighted feature map of each category to obtain the prediction results of each category [prior box, two prior box adjustment parameters, confidence of belonging to the category], and perform Softmax on the confidence dimension of all prediction results belonging to the category. Then perform non-maximum suppression on the prediction box to obtain a reasonable prediction box and its classification;

[0064] S45: Use Focal Loss and IOU Loss as loss functions to perform back propagation to update model parameters;

[0065] S46: Repeat S41-S45 for training.

[0066] S5: Online detection and encryption stage: Input the sample to be detected into the model for privacy area detection, and encrypt the detected area. The specific method is as follows:

[0067] S51: input the data sample to be detected, determine its modality type, randomly sample a sample for each category under the modality in the support set as a support sample, and select a corresponding data preprocessing method according to the modality type to preprocess the data sample and the support sample;

[0068] S52: input the preprocessed data into the trained neural network model, and the neural network model selects a corresponding module for prediction according to the modality type to obtain a prediction box and its classification result;

[0069] S53: Encrypt the prediction box area of ​​the detection sample according to the modality type. Use the DES encryption algorithm to encrypt the text data; use the chaotic Logistic encryption algorithm to encrypt the image data. The image encryption result is as follows: Figure 4 As shown; the audio is muted.

[0070] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A multimodal privacy-sensitive data detection and encryption method, characterized in that include: Construct a set of feature extractors and weight generators suitable for text, image, and speech respectively, and construct a set of corresponding prediction modules to obtain the overall neural network model; Generate a supporting data set based on the original data set, pre-process the different modal data in the original data set and the supporting data set using methods corresponding to different modalities, and input the pre-processed data into the neural network model; The constructed feature extractor and prediction module are combined and trained on the privacy-sensitive dataset to obtain the first-stage neural network model; The constructed weight generator is connected to the trained first-stage neural network model for joint training to obtain the final overall neural network model. The weight generator extracts the weight vectors of each category of the corresponding modality from the data set, and uses the vector to weight the feature map of the detection sample, so as to predict the weighted feature map; The sample to be detected is input into the trained neural network model for privacy area detection, and the detected area is encrypted.

2. The method according to claim 1, characterized in that: Construct an LSTM-based RNN model as a text feature extractor, and use the output of the text feature extractor at each time sequence to form a feature graph. Train the RNN model for sentiment prediction tasks on a public dataset, use the trained feature extractor for text feature extraction, and construct a similar RNN model as a text weight generator, using the output of the last time sequence as the output of the weight generator. A privacy region prediction module in text is constructed using one-dimensional convolution to predict the two-dimensional feature map output by the RNN model. Construct a ResNet model and use it as an image feature extractor. Train the image feature extractor for image classification tasks to obtain a trained image feature extractor. Construct a similar ResNet model and change its output layer to a global average pooling layer as an image weight generator. The privacy area prediction module in the image is constructed using two-dimensional convolution to predict the three-dimensional feature map output by ResNet.

3. The method according to claim 1, characterized in that: According to the annotation information, the privacy areas in the original data are intercepted and classified, and all the privacy areas are intercepted separately as supporting data to form a supporting data set; The Skip-gram algorithm is used to map text data into a new multidimensional space to obtain text embedding vectors; Convert the image to an RGB image, scale and fill the image to obtain an image of fixed size, and normalize the pixel values ​​of the cropped image; A Hamming window is constructed and used to frame and window the audio data. Then, a fast Fourier transform is performed on the processed data to convert the time domain signal into a frequency domain signal, thereby obtaining a spectrogram of the audio data.

4. The method according to claim 3, characterized in that: The video data is read frame by frame to obtain multiple image data, and then the multiple image data are preprocessed.

5. The method according to claim 1, characterized in that: Sample a certain modality data in the original data set as the sample to be detected, and preprocess the sample to be detected; Input the preprocessed data into the feature extractor corresponding to the modality to obtain a feature map; Each point on the feature map is set as an anchor point and multiple prior boxes of different sizes are generated. The feature map is input into the prediction module corresponding to the modality to obtain the prediction result, and the prediction box is non-maximum suppressed to obtain the final prediction box and its classification result. Select the loss function corresponding to the class confidence and prior box adjustment parameters and perform backpropagation and model parameter update; Repeat the above process to train the first stage neural network.

6. The method according to claim 1, characterized in that: Randomly sample a certain modality data in the original data set as the sample to be detected, randomly sample a sample for each category under the modality in the support data set as the support sample, and use the corresponding modality preprocessing method to process the sampled data; Input the sample to be detected and the supporting sample into the feature extractor and weight generator corresponding to the modality respectively to obtain the feature map and the weight vector of each category; The feature map is weighted using the weight vectors of each category. For the text feature map, row-by-row multiplication is adopted, and for the image feature map and the audio feature map, channel-by-channel multiplication is adopted to obtain the weighted feature map of each category. Each point on the weighted feature map of each category is set as an anchor point and multiple prior boxes of different sizes are generated. The output dimension of the last layer of category prediction of the prediction module is changed to one. The weighted feature map of each category is predicted using the changed prediction module to obtain the prediction results of each category. The prediction box is non-maximum suppressed to obtain the final prediction box and its classification result. Select the loss function corresponding to the class confidence and prior box adjustment parameters and perform backpropagation and model parameter update; Repeat the above process to train the entire neural network.

7. The method according to claim 1, characterized in that: Input the data sample to be detected, determine its modality type, randomly sample a sample for each category under the modality in the supporting data set as a supporting sample, select the corresponding data preprocessing method according to the modality type to preprocess the data sample and the supporting sample, input the preprocessed data into the trained neural network model, and the neural network model selects the corresponding module according to the modality type for prediction to obtain the prediction box and its classification result; The prediction box area of ​​the detection sample is encrypted according to the modality type, and the prediction box area of ​​the detection sample is locally encrypted using the encryption method corresponding to the modality.