A visual sensitive information detection model training method, device and equipment

Through the visual sensitive information detection model training method, feature difference and reverse residual processing technology are used to solve the problems of poor detection results and model parameter inference in the existing technology, and achieve high-precision sensitive information detection and user data protection. .

CN114627329BActive Publication Date: 2024-09-24HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210174086.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-09-24
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

Existing visual privacy recognition technology has limited detection effects in situations such as selfies and skin-colored areas, and methods based on neural features have problems such as excessive network model magnitude, easy misjudgment, and model parameter inference, making it difficult to effectively protect users. Sensitive data.

Method used

A visual sensitive information detection model training method is adopted. Features are extracted through two network models and feature differences are calculated. The visual sensitive information detection model is trained as a visual sensitive information detection model. Shallow and deep convolutional layers are used for feature extraction and reverse Residual processing to improve recognition accuracy.

Benefits of technology

It achieves high-precision sensitive information detection under lightweight networks, improves identification accuracy, avoids model parameter inference attacks, and ensures the protection of user sensitive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114627329B
    Figure CN114627329B
Patent Text Reader

Abstract

The present disclosure relates to a method, device and equipment for training a visual sensitive information detection model, the method comprising: obtaining a training sample set; inputting the pictures in the training sample set into a first network model and a second network model respectively, extracting features and predicting sensitivity, and training the first network model and the second network model to different degrees with the goal of outputting the label of the picture; inputting the pictures in the training sample set into the trained first network model and the second network model, and determining the difference of features extracted from the pictures by the first network model and the second network model; using the trained first network model or the second network model as a visual sensitive information detection model, inputting the difference of features corresponding to each picture into the visual sensitive information detection model, extracting features and predicting sensitivity, and training the visual sensitive information detection model with the goal of outputting the label of the picture. The present disclosure improves the recognition accuracy of visual sensitive information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of visual privacy protection technology, and in particular to a method, device and equipment for training a visual sensitive information detection model. Background Art

[0002] Traditional visual privacy identification technology is based on skin detection methods. It extracts skin areas and then performs binary classification on them based on trained classifiers or exposure levels to determine whether they are private content. This type of method is limited in detection when the face occupies a large part of the image, such as in selfies, or when the clothes or environment are similar to the skin color area. In order to overcome some of the limitations of skin detection, there is currently a method of using hand-crafted Bag of Visual Words (BoVW) to extract features for identifying private images. However, because the extraction target is based on hand-crafted features, it has weak generalization ability and performs poorly in different ambient lighting, ethnic skin colors, and other issues.

[0003] There are many methods based on Region of Interest (ROI) that use neural features to train classifiers. Such methods usually have a deeper neural network structure and can achieve good classification results, but there are problems such as the network model is too heavy, not suitable for deployment in smart home devices, poor classification results for some easily misjudged privacy data and natural noise (such as swimsuits, wrestling, and objects whose shapes and colors are similar to private parts of the human body due to shape, environment, and light), and it is easy to infer whether a certain sample to be tested exists in the training data set of the target model based on the parameters of the model, thereby obtaining the membership relationship information of the sample to be tested. Summary of the invention

[0004] The present invention provides a method, device and equipment for training a visual sensitive information detection model to improve the recognition accuracy of sensitive data and protect user sensitive data.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for training a visual sensitivity information detection model is provided, the method comprising:

[0006] Obtaining a training sample set, wherein the training sample set includes a plurality of images with labels, wherein the labels are used to identify the sensitivity of information in the images;

[0007] Inputting the pictures in the training sample set into the first network model and the second network model respectively, extracting features and predicting sensitivity, and training the first network model and the second network model to different degrees with the goal of outputting labels of the pictures;

[0008] Inputting the images in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the images;

[0009] The trained first network model or the second network model is used as a visual sensitivity information detection model, the difference of the features corresponding to each image is input into the visual sensitivity information detection model, feature extraction is performed and sensitivity prediction is performed, and the visual sensitivity information detection model is trained with the goal of outputting the label of the image.

[0010] In a possible implementation manner, after training the visual sensitivity information detection model, the method further includes:

[0011] Get the image to be tested;

[0012] The image to be tested is input into the visual sensitivity information detection model to obtain a classification label of the image to be tested output by the visual sensitivity information detection model.

[0013] In a possible implementation, the inputting the pictures in the training sample set into the first network model and the second network model respectively, extracting features and predicting sensitivity, and training the first network model and the second network model to different degrees with the goal of outputting labels of the pictures, includes:

[0014] For multiple sub-training sample sets in the training sample set, input the pictures in each sub-training sample set into the corresponding first network model according to the first batch, use the first feature extraction layer of the first network model to extract features and predict sensitivity, train the first network model with the goal of outputting labels of the batch of pictures, and obtain first network models corresponding to each sub-training sample set;

[0015] The images in each sub-training sample set are input into the corresponding second network model according to the second batch, and the second feature extraction layer of the second network model is used to extract features and predict sensitivity. The second network model is trained with the goal of outputting labels of the batch of images to obtain second network models corresponding to each sub-training sample set, and the first batch is larger than the second batch.

[0016] In a possible implementation, inputting the image in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the image, includes:

[0017] Randomly extract a set number of pictures from the training sample set, and input the first network model and the second network model corresponding to each sub-training sample set into the third batch, respectively, to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer;

[0018] Performing a difference operation on the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images;

[0019] In a possible implementation, the step of inputting the images in the training sample set into the first network model and the second network model for feature extraction respectively / inputting the difference of the features corresponding to each image into the visual sensitivity information detection model for feature extraction includes:

[0020] Using the shallow convolutional layer of the first network model / the second network model / the visual sensitive information detection model to extract features, randomly selecting a certain number of outputs of the shallow convolutional layers as shallow features, and standardizing the shallow features to obtain shallow features of the same size as the deep features;

[0021] The deep convolutional layer of the first network model / the second network model / the visually sensitive information detection model is used to extract the shallow features to obtain deep features.

[0022] In a possible implementation, the acquiring a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer includes:

[0023] Obtain shallow features obtained by performing feature extraction on a shallow convolutional layer of the first network model and deep features obtained by performing feature extraction on a deep convolutional layer to obtain the first feature set;

[0024] The shallow features obtained by feature extraction of the shallow convolution layer and the deep features obtained by feature extraction of the deep convolution layer of the second network model are obtained to obtain the second feature set.

[0025] In a possible implementation, the extracting features by using the shallow convolution layer and the deep convolution layer of the first network model / the second network model / the visual sensitive information detection model includes:

[0026] For each of the deep convolutional layers and the selected shallow convolutional layers, perform reverse residual processing; or

[0027] A first shallow convolutional layer for performing feature extraction for the first time in the randomly selected shallow convolutional layer is determined, and each convolutional layer for performing feature extraction thereafter is determined, and reverse residual processing is performed on each convolutional layer.

[0028] In a possible implementation, performing reverse residual processing on each convolutional layer includes:

[0029] Obtaining features of the output of the previous convolutional layer of the target convolutional layer as input features of the target convolutional layer;

[0030] Expand the input features by a certain multiple to obtain features after dimensionality increase;

[0031] Performing feature extraction on the dimension-upgraded features to obtain extracted features;

[0032] The extracted features are scaled to obtain features of the same size as the input features and output them.

[0033] According to a second aspect of an embodiment of the present disclosure, a visual sensitivity information detection model training device is provided, the device comprising:

[0034] A training sample set acquisition module, used to obtain a training sample set, wherein the training sample set includes a plurality of pictures with labels, wherein the labels are used to identify the sensitivity of information in the pictures;

[0035] A model training module, used to input the pictures in the training sample set into the first network model and the second network model respectively, extract features and predict sensitivity, and train the first network model and the second network model to different degrees with the goal of outputting labels of the pictures;

[0036] A feature difference determination module, used for inputting the image in the training sample set into the trained first network model and the second network model, and determining the difference of the features extracted by the first network model and the second network model from the image;

[0037] The detection model training module is used to use the trained first network model or the second network model as a visual sensitivity information detection model, input the difference of the features corresponding to each image into the visual sensitivity information detection model, extract features and predict sensitivity, and train the visual sensitivity information detection model with the goal of outputting the label of the image.

[0038] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing processor executable instructions; wherein the processor implements the steps of the above-mentioned visual sensitivity information detection model training method by running the executable instructions.

[0039] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the above-mentioned visual sensitivity information detection model training method are implemented.

[0040] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0041] The present invention can realize high-precision content detection of sensitive information under lightweight network, and has good effect on sensitive data and natural noise data that are easy to be misjudged, thereby improving recognition accuracy. It can solve the problem of inferring whether a certain sample to be tested exists in the training sample set of the target model based on the parameters of the model without affecting the efficiency and accuracy of face recognition, thereby obtaining the membership relationship information of the sample to be tested, thereby realizing the protection of user sensitive data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 is a schematic diagram of an application scenario according to an exemplary embodiment;

[0044] Figure 2 is a flow chart of a visual sensitivity information detection model training method according to an exemplary embodiment;

[0045] Figure 3 is a schematic diagram of the module structure of a first network model / a second network model / a visually sensitive information detection model according to an exemplary embodiment;

[0046] Figure 4 is a flowchart of reverse residual processing according to an exemplary embodiment;

[0047] Figure 5 is a schematic diagram showing how to obtain feature difference values ​​corresponding to each batch of images according to an exemplary embodiment;

[0048] Figure 6 is a flow chart of obtaining a first feature set / a second feature set according to an exemplary embodiment;

[0049] Figure 7 is a flow chart showing the use of feature difference to train a visual sensitive information detection model according to an exemplary embodiment;

[0050] Figure 8is a schematic diagram of a module structure of a visual sensitive information detection model training device according to an exemplary embodiment;

[0051] Fig. 9 is a schematic diagram of an electronic device showing a method for training a visual sensitive information detection model according to an exemplary embodiment;

[0052] Fig.10 It is a schematic diagram of a program product of a visual sensitive information detection model training method according to an exemplary embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0054] The following are explanations of some of the terms that appear in the text:

[0055] 1. In the embodiments of the present disclosure, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0056] 2. The terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.

[0057] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more.

[0058] The network model of the existing technology is too heavy, not suitable for deployment in smart home devices, and has poor classification effect on some privacy data and natural noise that are easy to misjudge. In addition, the existing model attack technology can infer whether a certain sample to be tested exists in the training sample set of the target model through the model parameters, thereby obtaining the membership relationship information of the sample to be tested, which poses challenges to the security of user privacy data.

[0059] Therefore, the present disclosure provides a method, device and equipment for training a visual sensitive information detection model to protect user privacy data and improve recognition accuracy.

[0060] First reference Figure 1 , which is a schematic diagram of an application scenario of an embodiment of the present disclosure, including a collector 11 and a server 12. The collector 11 can be a camera, a camera of a mobile phone / computer, a video recorder, etc., for collecting pictures; the server 12 is used to train a visual sensitivity information detection model according to the collected pictures and detect the sensitivity of the collected pictures according to the trained visual sensitivity information detection model.

[0061] It should be noted that Figure 1 The system architecture shown can be deployed according to different usage scenarios. For example, in a live broadcast scenario, the host sets up a collector of this system, transmits the collected pictures to the server, and uses the server to detect sensitive information appearing in the live broadcast. For example, in a video call scenario, the collector and the server are deployed at both ends to perform real-time monitoring of visual sensitive information.

[0062] In the disclosed embodiment, the server 12 obtains a training sample set collected by the collector 11, wherein the training sample set includes multiple pictures with labels, and the labels are used to identify the sensitivity of information in the pictures; the pictures in the training sample set are respectively input into the first network model and the second network model to extract features and predict sensitivity, and the first network model and the second network model are trained to different degrees with the goal of outputting the labels of the pictures; the pictures in the training sample set are input into the trained first network model and the second network model to determine the difference in features extracted from the pictures by the first network model and the second network model; the trained first network model or the second network model is used as a visual sensitivity information detection model, the difference in features corresponding to each picture is input into the visual sensitivity information detection model, feature extraction and sensitivity prediction are performed, and the visual sensitivity information detection model is trained with the goal of outputting the labels of the pictures.

[0063] In an embodiment of the present disclosure, a visual sensitive information detection model training method is provided. Based on the same concept, the present disclosure also provides a visual sensitive information detection model training device, an electronic device and a computer-readable storage medium.

[0064] In some embodiments, a visual sensitivity information detection model training method provided by the present disclosure is described below through specific embodiments, such as Figure 2 As shown, including:

[0065] Step 201, obtaining a training sample set, wherein the training sample set includes a plurality of pictures with labels, wherein the labels are used to identify the sensitivity of information in the pictures;

[0066] The above labels can be divided into three categories: one is security labels, that is, the pictures contain non-sensitive data; the second is sensitive labels, that is, the pictures contain sensitive data; the third is easily misjudged security labels, that is, the pictures contain non-sensitive data that are easy to misjudge, such as beaches, swimming, wrestling and other scenes with similar skin color textures, or objects whose shapes and colors are similar to private parts of the human body due to shape, environment and light.

[0067] Step 202, inputting the pictures in the training sample set into the first network model and the second network model respectively, extracting features and predicting sensitivity, and training the first network model and the second network model to different degrees with the goal of outputting labels of the pictures;

[0068] The above-mentioned inputting of the pictures in the training sample set into the first network model and the second network model can be performed in batches, and the first batch of the first network model and the second batch of the second network model are different, thereby achieving different degrees of training for the first network model and the second network model.

[0069] Step 203, inputting the images in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the images;

[0070] The images in the training sample set may be a set number of randomly selected images, and the images in the training sample set may be input into the trained first network model and the second network model in batches, which may be set according to actual conditions.

[0071] Step 204, using the trained first network model or the second network model as a visual sensitivity information detection model, inputting the difference of the features corresponding to each image into the visual sensitivity information detection model, performing feature extraction and predicting sensitivity, and training the visual sensitivity information detection model with the goal of outputting the label of the image.

[0072] According to the training degree of the first network model and the training degree of the second network model, the first network model or the second network model with a smaller training degree is used as a visual sensitive information detection model.

[0073] The present invention can realize high-precision content detection of visually sensitive data under lightweight networks; it has good effects on sensitive data and natural noise data that are easy to be misjudged, and improves recognition accuracy; it can protect user privacy data without affecting the efficiency and accuracy of face recognition.

[0074] The following is a detailed process of the visual sensitive information detection model training method:

[0075] First, a training sample set is obtained, where the training sample set includes a plurality of images with labels, where the labels are used to identify the sensitivity of information in the images.

[0076] In order to improve the accuracy of sensitive information detection, this disclosure has set up multiple classifications for the training sample set. The traditional sensitive information detection data set directly uses binary classification labeled data, provides all training sample sets to the model for training, and the model's classifier is binary, that is, directly determines whether the model belongs to sensitive information.

[0077] The training sample set constructed by the present disclosure can be divided into three sets of pictures with labels: one is a set of pictures with safety labels, which includes pictures containing selfies, group photos, home furnishings, home appliances, animals, cars, etc.; the second is a set of pictures with sensitive labels, which includes video screenshots or pictures containing sensitive information; the third is a set of safety labels that are easy to misjudge, which includes safety pictures including beaches, swimming, wrestling, and other contour shapes that may be misjudged as sensitive information. Using a training sample set containing pictures of different sensitivities can greatly reduce the false positive count.

[0078] When the size of the training sample set does not reach the set threshold, the size of the training sample set can be increased by rotation, random cropping, and random Gaussian blurring.

[0079] Secondly, the images in the training sample set are respectively input into the first network model and the second network model to extract features and predict sensitivity, and the first network model and the second network model are trained to different degrees with the goal of outputting labels of the images.

[0080] The above steps can be achieved through the following process:

[0081] For multiple sub-training sample sets in the training sample set, the images in each sub-training sample set are input into the corresponding first network model in batches, and the first feature extraction layer of the first network model is used to extract features and predict sensitivity. The first network model is trained with the goal of outputting labels of the batch of images to obtain first network models corresponding to each sub-training sample set.

[0082] The above batch uses a small portion of images in the sub-training sample set to perform a back-propagation parameter update on the model weights, and this small portion of images is the batch size. The above sub-training sample set includes images corresponding to various labels, and the number of images corresponding to various labels in any sub-training sample set is basically the same.

[0083] In the present disclosure, in the first network model, on the one hand, the features of the body parts are extracted through a shallow convolution layer, and the features are passed to a classifier to predict the sensitivity of the image. On the other hand, the highly private local image features in the image are extracted through a deep convolution layer, and the local image features are passed to a classifier to detect the sensitivity of the content of the part.

[0084] The task of identifying sensitive information in the image can be transformed into a target detection problem. Sensitive information may be large-area images such as edges, textures, and colors, which require convolutional neural networks to obtain features under the global receptive field. It may also be that some highly sensitive information appears in the image, and judgment can only be made based on the features of the local receptive field on features such as edges and shapes.

[0085] Therefore, the above-mentioned feature extraction using the first feature extraction layer of the first network model is to use the shallow convolution layer of the first network model to extract features, and randomly select a certain number of shallow convolution layer outputs as shallow features, and standardize the shallow features to obtain shallow features of the same size as the deep features; use the deep convolution layer of the first network model to extract features from the shallow features to obtain deep features.

[0086] like Figure 3 As shown, for the shallow convolution layer of the first network model, some features output by the shallow convolution layer, that is, the features output by the shallow convolution layers ci-cj are extracted as shallow features, and the shallow features output by the shallow convolution layers ci-cj pass through their respective convolution modules cs and are standardized into the input format of the softmax classifier, so that the classifier can unify the input of the shallow features and the deep features, and enter the classifier fc together with the deep features cn for sensitivity prediction.

[0087] The number of shallow convolutional layers for extracting shallow features can be set according to the convolution depth of the first network model. Generally, the number of shallow convolutional layers for extracting shallow features is 4 to 6. The method of selecting a certain number of shallow convolutional layers can be to select them at a certain interval or randomly.

[0088] Figure 3The classifier in the above example uses a convolutional neural network to replace the traditional classification method of fully connected layer + softmax to achieve classification. The purpose is to extract the features of multiple targets in the input image. If a fully connected layer is used, the input and output of the fully connected layer correspond to the features of the entire image, so only the feature classification results of the input image as a whole or a single target in the whole can be given; by using a convolutional layer, the input and output of each dimension of the convolution corresponds to the sliding window for sampling and extracting the entire image, rather than the entire image, but the overall dimension of the convolutional layer can still reflect all the features of the input image. The combined features are input to the classifier, and the content of the classifier is whether the content in the sliding window of the image contains sensitive information. The classifier uses softmax to convert the N-dimensional classification vector into sensitive confidence. If there are 3 labels, the N-dimensional classification vector is converted into 3 types of confidence, and the label corresponding to the confidence with the highest confidence / threshold is output. The coordinates of the target bounding box corresponding to the vector of this dimension can be output synchronously.

[0089] The reverse residual processing of the convolutional layer can be determined by the following method:

[0090] The first case is to perform reverse residual processing on each convolution layer in the deep convolution layer and the selected shallow convolution layer;

[0091] like Figure 4 As shown, the randomly selected shallow convolution layers are shallow convolution layers ci~cj, and assuming the deep convolution layers cm-cn, reverse residual processing is performed on the deep convolution layers cm-cn and the shallow convolution layers ci~cj.

[0092] The second case is that the first shallow convolution layer for the first feature extraction is randomly selected from the shallow convolution layers, and each convolution layer for feature extraction is subsequently performed, and reverse residual processing is performed on each convolution layer.

[0093] like Figure 4 As shown, the first shallow convolution layer for the first feature extraction in the randomly selected shallow convolution layer is the shallow convolution layer ci, which includes a reverse residual module. Then, the convolution layers for feature extraction after the shallow convolution layer ci each include a reverse residual module for reverse residual processing.

[0094] The above method for performing reverse residual processing on each layer is:

[0095] The features of the previous convolution layer output of the target convolution layer are obtained as the input features of the target convolution layer; the input features are expanded by a certain multiple to obtain the features after dimensionality increase; the features after dimensionality increase are extracted to obtain the extracted features; the extracted features are scaled to obtain the features of the same size as the input features and output.

[0096] like Figure 4 As shown in the figure, the output features of the previous convolutional layer of the target convolutional layer are obtained as the input features of the target convolutional layer; the input features are expanded by a multiple of p; a set of residual module convolutions are performed on the dimension-enhanced features, namely, 1x1 convolution + Relu activation, 3x3 convolution + Relu activation, and 1x1 convolution + linear activation in sequence; the obtained high-dimensional features are reduced in dimension by a multiple of p to restore them to the input feature size for output, where p ∈ [6,10] is usually used.

[0097] In a convolutional neural network without a reverse residual module that fuses deep and shallow features, shallow features can only reflect the overall features of the image, and their effective receptive field covers the entire image. The accuracy of the results of directly predicting the sensitivity of shallow features fluctuates greatly with the overall content of the image. After weighting and fusion prediction with the classification results of deep features, it may not necessarily achieve positive gains from the overall effect. Compared with deep features that have good usability after multi-layer extraction, shallow features also need further processing to strengthen the weight and influence of detail features while maintaining their overall characteristics. Therefore, after using the reverse residual module in the shallow features to perform dilated convolution on the input features, the dimension of the shallow features will expand p times. By expanding the feature dimension before the residual convolution, more feature dimensions are introduced, so that the shallow features pay more attention to local sensitive information, which can enhance the influence of detail features on the final result judgment.

[0098] After the training of the first network model is completed, the images in each sub-training sample set are input into the corresponding second network model according to the second batch, and the second feature extraction layer of the second network model is used to extract features and predict sensitivity. The second network model is trained with the goal of outputting labels of the batch of images to obtain second network models corresponding to each sub-training sample set, and the first batch is larger than the second batch.

[0099] The batch sizes of the first network model and the second network model in the above training are the same, but the batches of the two are different. For example, there are 300 pictures in the sub-training sample set, and the batch size is 30. When the first batch is larger than the second batch, the first batch is 10 and the second batch is 9, that is, 10 pictures are allocated to the first network model for training and 9 pictures are allocated to the second model for training; and when the first batch is smaller than the second batch, the first batch is 9 and the second batch is 10, that is, 9 pictures are allocated to the first network model for training and 10 pictures are allocated to the second model for training.

[0100] like Figure 3As shown, the structure of the first network model is the same as that of the second network model, and the method of extracting features using the second feature extraction layer of the second network model is the same as that of the first network model, which will not be repeated here, except that the batches in the training process of the two are different. By limiting the batches in the process of training the first network model or the second network model, the first network model or the second network model after training is kept in a state of not being fully fitted, so as to facilitate further training.

[0101] The training sample set D in the data preparation stage is divided into n parts, and the first network model and the second network model are trained respectively according to the pictures in the n training sample sets, such as Figure 5 As shown, the first network model corresponding to each sub-training sample set is denoted as Mi, and the second network model is denoted as Mi'.

[0102] Then, the pictures in the training sample set are input into the trained first network model and the second network model, and the difference between the features extracted by the first network model and the second network model for the pictures is determined.

[0103] The above steps can be achieved through the following process:

[0104] A set number of images are randomly selected from the training sample set, and the first network model and the second network model corresponding to each sub-training sample set are respectively input into the third batch to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer.

[0105] The third batch mentioned above can be set according to the extracted pictures.

[0106] like Figure 6 As shown, the first feature set obtained by feature extraction at the first feature extraction layer and the second feature set obtained by feature extraction at the second feature extraction layer can be obtained by the following method:

[0107] Obtain shallow features obtained by performing feature extraction on a shallow convolutional layer of the first network model and deep features obtained by performing feature extraction on a deep convolutional layer to obtain the first feature set;

[0108] The shallow features obtained by feature extraction of the shallow convolution layer and the deep features obtained by feature extraction of the deep convolution layer of the second network model are obtained to obtain the second feature set.

[0109] A set of pre-selected images is randomly selected from the training sample set D, denoted as PD. The images in PD are input into Figure 5From the first network model M1-Mn and the second network model M1'-Mn', a first feature set A1-An obtained by feature extraction at the first feature extraction layer and a second feature set A1'-An' obtained by feature extraction at the second feature extraction layer are obtained.

[0110] After obtaining the first feature set and the second feature set, a difference operation is performed between the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images.

[0111] like Figure 5 As shown, a batch of images in PD are input into Figure 5 In the first network model M1 and the second network model M1' shown, the feature set A1 obtained by feature extraction in the first feature extraction layer of the first network model M1 and the feature set A1' obtained by feature extraction in the second feature extraction layer of the second network model M1' are obtained, and the feature set A1 and the feature set A1' are differenced to obtain the feature difference e1 of the batch data between the first network model M1 and the second network model M1'. The above steps are the same as the case of inputting the batch of images in the PD into the first network model M2-Mn and the second network model M2'-Mn', and finally the feature difference E=[e1,e2,...,en] corresponding to the batch of images is obtained.

[0112] Finally, the trained first network model or the second network model is used as a visual sensitivity information detection model, and the difference of the features corresponding to each image is input into the visual sensitivity information detection model to extract features and predict sensitivity, and the visual sensitivity information detection model is trained with the goal of outputting the label of the image.

[0113] The above steps can be implemented according to the following process:

[0114] According to the trained first network model or the second network model, the visual sensitive information detection model can be determined according to the following steps, including:

[0115] If the first batch is larger than the second batch, the second network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model;

[0116] Alternatively, if the first batch is smaller than the second batch, the first network models corresponding to the sub-training sample sets are fused to obtain the visual sensitive information detection model. The above-mentioned model fusion can be to calculate the average value of the model parameters in the second network model corresponding to the sub-training sample sets, and obtain the visual sensitive information detection model according to the calculated average value.

[0117] After determining the visual sensitivity information detection model, the feature difference values ​​corresponding to each batch of images are input into the visual sensitivity information detection model, and the third feature extraction layer of the visual sensitivity information detection model is used to extract features and predict sensitivity, so as to train the visual sensitivity information detection model with the goal of outputting labels for the batch of images.

[0118] Because the membership inference attack in the current model attack technology is an easy-to-implement attack type. It means that the attacker will try to infer whether a certain sample to be tested exists in the training sample set of the target model, so as to obtain the membership relationship information of the sample to be tested. The essence of this type of attack is that there is a difference in the prediction vectors given by the target model for member data and non-member data, that is, the distribution of the output vector of member data is more concentrated, while the distribution of the output vector of non-member data is relatively flat. Therefore, the visual sensitive information detection model in the present disclosure is trained using feature differences, so that the visual sensitive information detection model has the ability to resist model attacks such as membership inference.

[0119] like Figure 7 As shown, the structure of the first network model is the same as that of the visual sensitive information detection model, and the method of performing feature extraction using the third feature extraction layer of the visual sensitive information detection model is the same as that in the first network model, which will not be repeated here.

[0120] For example, the feature difference E=[e1, e2,...,en] and the label set L corresponding to a batch of images are input into the visual sensitive information detection model, and the third feature extraction layer of the visual sensitive information detection model is used to extract features and predict sensitivity, and the labels of the batch of images are output as the target for training to obtain the final visual sensitive information detection model. The model can no longer be attacked by member reasoning through reverse analysis of gradients and distributions, and the privacy protection of model data is achieved.

[0121] After the above visual sensitive information detection model is trained, it can be used in the following ways:

[0122] Get the image to be tested;

[0123] The image to be tested is input into the visual sensitivity information detection model to obtain a classification label of the image to be tested output by the visual sensitivity information detection model.

[0124] The above-mentioned visual sensitive information detection model can detect sensitive information content by setting 3 categories, and has good classification performance on images of easily misjudged categories. Images of easily misjudged safety labels perform poorly in traditional sensitive information detection algorithms. The fundamental reason is that large areas of skin color texture and other features already exist in scenes such as beaches, swimming, and wrestling; or objects whose shapes and colors are similar to private parts of the human body due to modeling, environment, and light. For the former, through the fusion analysis of shallow features and deep reverse residual feature processing, the weight of semantic information that the background environment is safe and details such as clothing in the picture can be increased, providing the classifier with sufficient information to determine whether the image to be tested is a label that is easily misjudged; for the latter, through the feature processing of shallow reverse residual and deep reverse residual, the detailed information of color and texture that is safe can be increased, increasing the accuracy of sensitive information detection.

[0125] In some embodiments, based on the same inventive concept, the embodiments of the present disclosure also provide a visual sensitive information detection model training device. Since the device is the device in the method in the embodiments of the present disclosure, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0126] like Figure 8 As shown, the above device includes the following modules:

[0127] A training sample set acquisition module 801 is used to obtain a training sample set, wherein the training sample set includes a plurality of pictures with labels, wherein the labels are used to identify the sensitivity of information in the pictures;

[0128] A model training module 802 is used to input the pictures in the training sample set into the first network model and the second network model respectively, perform feature extraction and predict sensitivity, and train the first network model and the second network model to different degrees with the goal of outputting the label of the picture;

[0129] A feature difference determination module 803 is used to input the image in the training sample set into the trained first network model and the second network model, and determine the difference of the features extracted by the first network model and the second network model from the image;

[0130] The detection model training module 804 is used to use the trained first network model or the second network model as a visual sensitivity information detection model, input the difference of the features corresponding to each image into the visual sensitivity information detection model, extract features and predict sensitivity, and train the visual sensitivity information detection model with the goal of outputting the label of the image.

[0131] In an optional embodiment, the device further comprises:

[0132] Image acquisition module, used to obtain the image to be tested;

[0133] The visual sensitivity information detection module is used to input the image to be tested into the visual sensitivity information detection model to obtain the classification label of the image to be tested output by the visual sensitivity information detection model.

[0134] In an optional implementation, the model training module is used to input the images in the training sample set into the first network model and the second network model respectively, perform feature extraction and predict sensitivity, and train the first network model and the second network model to different degrees with the goal of outputting the label of the image, including:

[0135] For multiple sub-training sample sets in the training sample set, input the pictures in each sub-training sample set into the corresponding first network model according to the first batch, use the first feature extraction layer of the first network model to extract features and predict sensitivity, train the first network model with the goal of outputting labels of the batch of pictures, and obtain first network models corresponding to each sub-training sample set;

[0136] The images in each sub-training sample set are input into the corresponding second network model according to the second batch, and the second feature extraction layer of the second network model is used to extract features and predict sensitivity. The second network model is trained with the goal of outputting labels of the batch of images to obtain second network models corresponding to each sub-training sample set, and the first batch is larger than the second batch.

[0137] In an optional implementation, the feature difference determination module is used to input the image in the training sample set into the trained first network model and the second network model, and determine the difference between the features extracted by the first network model and the second network model for the image, including:

[0138] Randomly extract a set number of pictures from the training sample set, and input the first network model and the second network model corresponding to each sub-training sample set into the third batch, respectively, to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer;

[0139] Performing a difference operation on the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images;

[0140] The detection model training module is used to use the trained first network model or the second network model as a visual sensitive information detection model, including:

[0141] If the first batch is larger than the second batch, the second network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model; or

[0142] If the first batch is smaller than the second batch, the first network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model.

[0143] In an optional implementation, the model training module is used to input the images in the training sample set into the first network model and the second network model respectively for feature extraction / detection. The model training module is used to input the difference of the features corresponding to each image into the visual sensitivity information detection model for feature extraction, including:

[0144] Using the shallow convolutional layer of the first network model / the second network model / the visual sensitive information detection model to extract features, randomly selecting a certain number of outputs of the shallow convolutional layers as shallow features, and standardizing the shallow features to obtain shallow features of the same size as the deep features;

[0145] The deep convolutional layer of the first network model / the second network model / the visually sensitive information detection model is used to extract the shallow features to obtain deep features.

[0146] In an optional implementation, the feature difference determination module is used to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer, including:

[0147] Obtain shallow features obtained by performing feature extraction on a shallow convolutional layer of the first network model and deep features obtained by performing feature extraction on a deep convolutional layer to obtain the first feature set;

[0148] The shallow features obtained by feature extraction of the shallow convolution layer and the deep features obtained by feature extraction of the deep convolution layer of the second network model are obtained to obtain the second feature set.

[0149] In an optional embodiment, the device is used to extract features using the shallow convolution layer and the deep convolution layer of the first network model / the second network model / the visual sensitive information detection model, including:

[0150] For each of the deep convolutional layers and the selected shallow convolutional layers, perform reverse residual processing; or

[0151] A first shallow convolutional layer for performing feature extraction for the first time in the randomly selected shallow convolutional layer is determined, and each convolutional layer for performing feature extraction thereafter is determined, and reverse residual processing is performed on each convolutional layer.

[0152] In an optional implementation, the apparatus is used to perform reverse residual processing on each convolutional layer, including:

[0153] Obtaining features of the output of the previous convolutional layer of the target convolutional layer as input features of the target convolutional layer;

[0154] Expand the input features by a certain multiple to obtain features after dimensionality increase;

[0155] Performing feature extraction on the dimension-upgraded features to obtain extracted features;

[0156] The extracted features are scaled to obtain features of the same size as the input features and output them.

[0157] In some embodiments, based on the same inventive concept, a visually sensitive information detection electronic device is also provided in the embodiments of the present disclosure. Since the electronic device is the electronic device in the method in the embodiments of the present disclosure, and the principle of solving the problem by the electronic device is similar to that of the method, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0158] Refer to the following Fig. 9 An electronic device 90 according to this embodiment of the present disclosure will be described. Fig. 9 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0159] like Fig. 9 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a terminal device. The components of the electronic device 90 may include, but are not limited to: the at least one processor 91, the at least one memory 92 storing processor executable instructions, and a bus 93 connecting different system components (including the memory 92 and the processor 91).

[0160] The processor executes the executable instructions to implement the following steps:

[0161] Obtaining a training sample set, wherein the training sample set includes a plurality of images with labels, wherein the labels are used to identify the sensitivity of information in the images;

[0162] Inputting the pictures in the training sample set into the first network model and the second network model respectively, extracting features and predicting sensitivity, and training the first network model and the second network model to different degrees with the goal of outputting labels of the pictures;

[0163] Inputting the images in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the images;

[0164] The trained first network model or the second network model is used as a visual sensitivity information detection model, the difference of the features corresponding to each image is input into the visual sensitivity information detection model, feature extraction is performed and sensitivity prediction is performed, and the visual sensitivity information detection model is trained with the goal of outputting the label of the image.

[0165] In an optional implementation, after training the visual sensitivity information detection model, the processor is further configured to:

[0166] Get the image to be tested;

[0167] The image to be tested is input into the visual sensitivity information detection model to obtain a classification label of the image to be tested output by the visual sensitivity information detection model.

[0168] In an optional implementation, the processor is used to input the pictures in the training sample set into the first network model and the second network model respectively, perform feature extraction and predict sensitivity, and train the first network model and the second network model to different degrees with the goal of outputting the label of the picture, including:

[0169] For multiple sub-training sample sets in the training sample set, input the pictures in each sub-training sample set into the corresponding first network model according to the first batch, use the first feature extraction layer of the first network model to extract features and predict sensitivity, train the first network model with the goal of outputting labels of the batch of pictures, and obtain first network models corresponding to each sub-training sample set;

[0170] The images in each sub-training sample set are input into the corresponding second network model according to the second batch, and the second feature extraction layer of the second network model is used to extract features and predict sensitivity. The second network model is trained with the goal of outputting labels of the batch of images to obtain second network models corresponding to each sub-training sample set, and the first batch is larger than the second batch.

[0171] In an optional implementation, the processor is used to input the images in the training sample set into the trained first network model and the second network model, and determine the difference between the features extracted by the first network model and the second network model for the images, including: randomly extracting a set number of images from the training sample set, inputting the first network model and the second network model corresponding to each sub-training sample set respectively according to the third batch, and obtaining a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer;

[0172] Performing a difference operation on the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images;

[0173] The processor is used to use the trained first network model or the second network model as a visual sensitive information detection model, including:

[0174] If the first batch is larger than the second batch, the second network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model; or

[0175] If the first batch is smaller than the second batch, the first network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model.

[0176] In an optional implementation, the processor is used to input the images in the training sample set into the first network model and the second network model respectively for feature extraction / input the difference of the features corresponding to each image into the visual sensitivity information detection model for feature extraction, including:

[0177] Using the shallow convolutional layer of the first network model / the second network model / the visual sensitive information detection model to extract features, randomly selecting a certain number of outputs of the shallow convolutional layers as shallow features, and standardizing the shallow features to obtain shallow features of the same size as the deep features;

[0178] The deep convolutional layer of the first network model / the second network model / the visually sensitive information detection model is used to extract the shallow features to obtain deep features.

[0179] In an optional implementation, the processor is used to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer, including:

[0180] Obtain shallow features obtained by performing feature extraction on a shallow convolutional layer of the first network model and deep features obtained by performing feature extraction on a deep convolutional layer to obtain the first feature set;

[0181] The shallow features obtained by feature extraction of the shallow convolution layer and the deep features obtained by feature extraction of the deep convolution layer of the second network model are obtained to obtain the second feature set.

[0182] In an optional implementation, the processor is used to perform feature extraction using the shallow convolution layer and the deep convolution layer of the first network model / the second network model / the visual sensitive information detection model, including:

[0183] For each of the deep convolutional layers and the selected shallow convolutional layers, perform reverse residual processing; or

[0184] A first shallow convolutional layer for performing feature extraction for the first time in the randomly selected shallow convolutional layer is determined, and each convolutional layer for performing feature extraction thereafter is determined, and reverse residual processing is performed on each convolutional layer.

[0185] In an optional implementation, the processor is used to perform reverse residual processing on each convolutional layer, including:

[0186] Obtaining features of the output of the previous convolutional layer of the target convolutional layer as input features of the target convolutional layer;

[0187] Expand the input features by a certain multiple to obtain features after dimensionality increase;

[0188] Performing feature extraction on the dimension-upgraded features to obtain extracted features;

[0189] The extracted features are scaled to obtain features of the same size as the input features and output them.

[0190] Bus 93 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0191] The memory 92 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .

[0192] The memory 92 may also include a program / utility 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0193] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 90, and / or may communicate with any device that enables the electronic device 90 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with other modules of the electronic device 90 via a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0194] In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of each module in the visual sensitivity information detection model training device according to various exemplary implementations of the present disclosure described in the above "Exemplary Method" section of this specification. For example, the terminal device can be used to obtain a training sample set, wherein the training sample set includes multiple pictures with labels, and the labels are used to identify the sensitivity of information in the pictures; the pictures in the training sample set are respectively input into a first network model and a second network model to extract features and predict sensitivity, and the first network model and the second network model are trained to different degrees with the goal of outputting the labels of the pictures; the pictures in the training sample set are input into the trained first network model and the second network model to determine the difference in features extracted from the pictures by the first network model and the second network model; the trained first network model or the second network model is used as a visual sensitivity information detection model, the difference in features corresponding to each picture is input into the visual sensitivity information detection model, feature extraction and sensitivity prediction are performed, and the visual sensitivity information detection model is trained with the goal of outputting the labels of the pictures, and the like.

[0195] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0196] like Fig.10 As shown, a program product 100 for visual sensitive information detection model training according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, apparatus, or device.

[0197] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0198] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0199] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0200] It should be noted that although several modules or submodules of the system are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.

[0201] In addition, although the operations of the modules of the disclosed system are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some operations may be omitted, multiple operations may be combined into one operation, and / or one operation may be decomposed into multiple operations.

[0202] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0203] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that has the functions specified in one or more boxes.

[0204] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0206] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0207] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A visual sensitive information detection model training method, characterized in that: The method includes: A training sample set is obtained, wherein the training sample set includes a plurality of images with labels, wherein the labels are used to identify the sensitivity of information in the images; the images in the training sample set are respectively input into a first network model and a second network model, feature extraction is performed and sensitivity is predicted, and the first network model and the second network model are trained to different degrees with the goal of outputting the labels of the images; wherein the training sample set includes a plurality of sub-training sample sets, each sub-training sample set corresponds to a first network model and a second network model, and the first network model corresponding to each sub-training sample set is obtained by inputting the images in the sub-training sample set into the first network model in a first batch for training, and the second network model corresponding to each sub-training sample set is obtained by inputting the images in the sub-training sample set into the second network model in a second batch for training; Inputting the images in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the images; The trained first network model or the second network model is used as a visual sensitivity information detection model, the difference of the features corresponding to each image is input into the visual sensitivity information detection model, feature extraction is performed and sensitivity prediction is performed, and the visual sensitivity information detection model is trained with the goal of outputting the label of the image; The step of inputting the image in the training sample set into the trained first network model and the second network model, and determining the difference between the features extracted by the first network model and the second network model for the image, comprises: A set number of pictures are randomly selected from the training sample set, and the first network model and the second network model corresponding to each sub-training sample set are respectively input into the third batch to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer; Performing a difference operation on the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images; The method of using the trained first network model or the second network model as a visual sensitive information detection model includes: If the first batch is larger than the second batch, the second network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model; or If the first batch is smaller than the second batch, the first network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model.

2. The method according to claim 1, characterized in that After the training of the visual sensitivity information detection model, the method further includes: Get the image to be tested; The image to be tested is input into the visual sensitivity information detection model to obtain a classification label of the image to be tested output by the visual sensitivity information detection model.

3. The method according to claim 1, characterized in that The pictures in the training sample set are input into the first network model and the second network model respectively, feature extraction is performed and sensitivity is predicted, and the first network model and the second network model are trained to different degrees with the goal of outputting the label of the picture, including: For multiple sub-training sample sets in the training sample set, input the pictures in each sub-training sample set into the corresponding first network model according to the first batch, use the first feature extraction layer of the first network model to extract features and predict sensitivity, train the first network model with the goal of outputting labels of the batch of pictures, and obtain first network models corresponding to each sub-training sample set; The images in each sub-training sample set are input into the corresponding second network model according to the second batch, and the second feature extraction layer of the second network model is used to extract features and predict sensitivity. The second network model is trained with the goal of outputting labels of the batch of images to obtain second network models corresponding to each sub-training sample set, and the first batch is different from the second batch.

4. The method according to claim 1, characterized in that: The step of inputting the images in the training sample set into the first network model and the second network model respectively for feature extraction / inputting the difference of the features corresponding to each image into the visual sensitivity information detection model for feature extraction comprises: Using the shallow convolutional layer of the first network model / the second network model / the visual sensitive information detection model to extract features, randomly selecting a certain number of outputs of the shallow convolutional layers as shallow features, and standardizing the shallow features to obtain shallow features of the same size as the deep features; The deep convolutional layer of the first network model / the second network model / the visually sensitive information detection model is used to extract the shallow features to obtain deep features.

5. The method according to claim 1, characterized in that The obtaining of a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer includes: Obtain shallow features obtained by feature extraction of a shallow convolutional layer and deep features obtained by feature extraction of a deep convolutional layer of the first network model to obtain the first feature set; The shallow features obtained by feature extraction of the shallow convolution layer and the deep features obtained by feature extraction of the deep convolution layer of the second network model are obtained to obtain the second feature set.

6. The method according to claim 4, characterized in that The method of using the shallow convolution layer and the deep convolution layer of the first network model / the second network model / the visual sensitive information detection model to extract features includes: For each of the deep convolutional layers and the selected shallow convolutional layers, perform reverse residual processing; or A first shallow convolutional layer for performing feature extraction for the first time in the randomly selected shallow convolutional layer is determined, and each convolutional layer for performing feature extraction thereafter is determined, and reverse residual processing is performed on each convolutional layer.

7. The method according to claim 6, characterized in that The reverse residual processing is performed on each convolutional layer, including: Obtaining features of the output of the previous convolutional layer of the target convolutional layer as input features of the target convolutional layer; Expand the input features by a certain multiple to obtain features after dimensionality increase; Performing feature extraction on the dimension-upgraded features to obtain extracted features; The extracted features are scaled to obtain features of the same size as the input features and output them.

8. A visual sensitive information detection model training device, characterized in that: The device comprises: A training sample set acquisition module, used to obtain a training sample set, wherein the training sample set includes a plurality of pictures with labels, wherein the labels are used to identify the sensitivity of information in the pictures; A model training module, used to input the pictures in the training sample set into the first network model and the second network model respectively, perform feature extraction and predict sensitivity, and train the first network model and the second network model to different degrees with the goal of outputting the label of the picture; wherein the training sample set includes multiple sub-training sample sets, each sub-training sample set corresponds to the first network model and the second network model, the first network model corresponding to each sub-training sample set is obtained by inputting the pictures in the sub-training sample set into the first network model according to the first batch for training, and the second network model corresponding to each sub-training sample set is obtained by inputting the pictures in the sub-training sample set into the second network model according to the second batch for training; A feature difference determination module, used for inputting the image in the training sample set into the trained first network model and the second network model, and determining the difference of the features extracted by the first network model and the second network model from the image; A detection model training module, used to use the trained first network model or the second network model as a visual sensitivity information detection model, input the difference of the features corresponding to each image into the visual sensitivity information detection model, extract the features and predict the sensitivity, and train the visual sensitivity information detection model with the goal of outputting the label of the image; Wherein, the feature difference determination module is used to: A set number of pictures are randomly selected from the training sample set, and the first network model and the second network model corresponding to each sub-training sample set are respectively input into the third batch to obtain a first feature set obtained by feature extraction at the first feature extraction layer and a second feature set obtained by feature extraction at the second feature extraction layer; Performing a difference operation on the feature vectors corresponding to each batch of images in the first feature set and the feature vectors corresponding to the same batch of images in the second feature set to obtain feature differences corresponding to each batch of images; The detection model training module is used to: If the first batch is larger than the second batch, the second network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model; or If the first batch is smaller than the second batch, the first network models corresponding to the sub-training sample sets are fused to obtain a visual sensitive information detection model.

9. An electronic device, characterized in that: include: processor; A memory for storing processor-executable instructions; wherein the processor implements the steps of the method according to any one of claims 1 to 7 by running the executable instructions.