A privacy protection method, device and equipment based on attribute desensitization
Through the GAN-based attribute desensitization method, privacy attributes in face images are removed, which solves the problem of insufficient privacy protection in face recognition systems in the existing technology, achieves efficient privacy protection and applicability, and ensures the security of user information. performance and availability.
Patent Information
- Application Number
- CN202011406814.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-04
AI Technical Summary
Existing face recognition systems lack effective privacy protection solutions, which can easily lead to the leakage of users' face images and endanger users' interests and security.
The attribute desensitization method based on Generative Adversarial Network (GAN) is used to train the image generation model to obtain the user's biological living image, generate a desensitized image, remove the privacy attribute content, while retaining the non-privacy attribute content, and support designated services.
It achieves reliable protection of user privacy and improves privacy security. At the same time, it makes the processed biological images easy to understand and applied to more business scenarios. It has good applicability and avoids the problem of difficult to understand images after irreversible processing.
Smart Images

Figure CN112417414B
Abstract
Description
Technical Field
[0001] This specification relates to the field of privacy security technology, and in particular to a privacy protection method, device and equipment based on attribute desensitization. Background Art
[0002] In recent years, with the popularization of face recognition systems, users can conveniently authenticate their identities by scanning their faces, and then conduct subsequent business. Face recognition systems often include steps such as face image acquisition, face image processing, face image transmission, and face image storage. In these steps, there is a risk of privacy leakage. Once a user's face image is leaked, it may be used maliciously, endangering the interests and safety of the user.
[0003] Existing face recognition systems rarely have face image privacy protection schemes. The few that are equipped with privacy protection capabilities use relatively simple and crude schemes, such as reversible image encryption schemes that use simple random transformations of rows and columns to produce face images that are indistinguishable to the naked eye.
[0004] Based on this, a more reliable and applicable privacy protection solution is needed for facial images. Summary of the invention
[0005] One or more embodiments of the present specification provide a privacy protection method, apparatus, device, and storage medium based on attribute desensitization to solve the following technical problem: a more reliable and better applicable privacy protection solution is needed for facial images.
[0006] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
[0007] One or more embodiments of this specification provide a privacy protection method based on attribute desensitization, including:
[0008] Determine an image generation model based on a Generative Adversarial Network (GAN) trained based on samples containing privacy attributes and non-privacy attributes;
[0009] Acquire a user's biological living image;
[0010] Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0011] The desensitized image of the living organism is processed according to a predetermined strategy to support a designated business.
[0012] One or more embodiments of this specification provide a privacy protection device based on attribute desensitization, including:
[0013] A determination module, determining a GAN-based image generation model obtained by training samples including privacy attributes and non-privacy attributes;
[0014] An acquisition module, for acquiring a user's biological living image;
[0015] A generation module, which generates a desensitized image of a living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0016] The processing module processes the desensitized image of the living organism according to a predetermined strategy to support a designated business.
[0017] One or more embodiments of this specification provide a privacy protection device based on attribute desensitization, including:
[0018] at least one processor; and,
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0021] Determine a GAN-based image generation model trained on samples containing privacy attributes and non-privacy attributes;
[0022] Acquire a user's biological living image;
[0023] Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0024] The desensitized image of the living organism is processed according to a predetermined strategy to support a designated business.
[0025] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0026] Determine a GAN-based image generation model trained on samples containing privacy attributes and non-privacy attributes;
[0027] Acquire a user's biological living image;
[0028] Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0029] The desensitized image of the living organism is processed according to a predetermined strategy to support a designated business.
[0030] At least one of the above-mentioned technical solutions adopted in one or more embodiments of the present specification can achieve the following beneficial effects: through attribute-based desensitization processing, it helps to remove the privacy attribute content in biological living images (for example, facial images, etc.) and retain the non-privacy attribute content, which can not only improve privacy security, but also make the processed biological living images still easy to view and understand, which helps to be applied to more business scenarios and has good reliability and applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of this specification 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 this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 A flowchart of a privacy protection method based on attribute desensitization provided for one or more embodiments of this specification;
[0033] Figure 2 In an application scenario provided by one or more embodiments of this specification, Figure 1 A schematic diagram of an implementation scheme of the method;
[0034] Figure 3 A schematic diagram of a comparison of a face image before and after privacy protection provided by one or more embodiments of this specification;
[0035] Figure 4 A schematic diagram of the structure of a privacy protection device based on attribute desensitization provided for one or more embodiments of this specification;
[0036] Figure 5 A schematic diagram of the structure of a privacy protection device based on attribute desensitization provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0037] The embodiments of this specification provide a privacy protection method, apparatus, device and storage medium based on attribute desensitization.
[0038] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0039] In one or more embodiments of the present specification, the content of biological living images is decoupled into several attributes, and attributes related to privacy (predefined as privacy attributes) are desensitized, while attributes that are irrelevant or weakly related to privacy but useful for some businesses (predefined as non-privacy attributes) can be retained. The scheme performs attribute desensitization and attribute retention based on GAN to generate corresponding new images, which can achieve irreversible privacy protection, take into account both security and applicability, so that the processed biological living images effectively retain some use value that is not related to privacy.
[0040] Taking facial images as an example, privacy attributes include attributes that can reflect the user's identity, and non-privacy attributes include common attributes of different users. It is difficult to determine the user's identity based solely on these common attributes, such as facial expressions, eye opening and closing status, etc.
[0041] Based on this idea, the following is a detailed explanation.
[0042] Figure 1 A flowchart of a privacy protection method based on attribute desensitization provided for one or more embodiments of this specification. The process can be executed by a terminal or a server. The terminal has image acquisition capability. The terminal stores the acquired image or the processed image locally and can also upload it to the server if necessary.
[0043] Figure 1 The process in may include the following steps:
[0044] S102: Determine a GAN-based image generation model obtained by training samples containing privacy attributes and non-privacy attributes.
[0045] In one or more embodiments of this specification, privacy attributes and non-privacy attributes are predefined according to business scenarios. In the above example, a face image is used as an example. The privacy attributes of the face image are predefined as user identity, and the non-privacy attributes are defined as expression, eye opening and closing state, face posture, facial lighting, facial features position and other attributes.
[0046] It should be noted that a non-privacy attribute in one business scenario may be suitable to be defined as a privacy attribute in another business scenario, and vice versa.
[0047] Still taking the face image as an example. For ordinary people, user identity (mainly appearance here) is relatively private, so it is predefined as a private attribute, while expression is not very important and generally not considered private, so it is predefined as a non-private attribute. However, for some well-known people, their appearance is usually not considered private because it is well known to the public, so it can be predefined as a non-private attribute. As for the attribute of expression, such people often need to maintain their image well and need to have appropriate expressions in different occasions. In this case, expression is often considered private for such people. These people do not want their inappropriate expressions to be exposed to the public, so it can be predefined as a private attribute.
[0048] In one or more embodiments of the present specification, the image generation model includes at least GAN, and the sample includes a real biological living image. For the biological living image, the generator of GAN generates a modified biological living image that is not real. The purpose of training is to make the modified biological living image remove the privacy attribute content in the original image as much as possible and retain the non-privacy attribute content in the image as much as possible. The image generation model can also include more sub-models, such as a model for target detection in biological living images, etc., to cooperate with GAN work.
[0049] S104: Acquire a living body image of the user.
[0050] In one or more embodiments of the present specification, a biological living image includes an image of at least a partial area of a user's body, such as a face image, a walking video, a chest X-ray, a CT image, a human body thermal imaging image, a palm image, etc.
[0051] Privacy attributes can be defined differently based on the user characteristics reflected by different types of images. For example, for a chest X-ray, the abnormal area (most likely the lesion area) is defined as a privacy attribute, but the user identity does not necessarily have to be defined as a privacy attribute.
[0052] For the same privacy attribute, different types of images may reflect different features. For example, assume that user identity is also defined as a privacy attribute. A face image reflects the user's appearance, while a walking video may reflect the user's gait. The user's identity may be identified based on either the appearance or the gait. When building and training an image generation model, the model structure and training strategy can be adjusted based on the differences mentioned above to improve the model effect.
[0053] S106: Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model.
[0054] In one or more embodiments of the present specification, the image generation model processes the biological live image and desensitizes the privacy attribute content therein, so that the corresponding generated biological live desensitized image no longer reflects privacy. At the same time, the biological live desensitized image is still an image that is easy for people to understand. For example, for a user's face image, it is still a face image after desensitization, and some features such as angle and expression remain basically unchanged, but the user can no longer be identified from the face image, thereby protecting the user's privacy. Moreover, to the naked eye, the face in the face image still looks like a real face to the audience.
[0055] S108: Processing the desensitized image of the living organism according to a predetermined strategy to support a designated service.
[0056] In one or more embodiments of the present specification, a desensitized image of a living organism is generated and stored locally or uploaded to a server so as to respond and support when a designated business has a need.
[0057] In one or more embodiments of the present specification, although the privacy attribute content of the desensitized image of the living organism has been removed, it is still applicable to some business scenarios.
[0058] For example, in the beauty business scenario, a user holds a smartphone with a beauty application installed and takes a selfie through the front camera. The smartphone collects the user's facial image. It is assumed that the facial image needs to be beautified on the server of the beauty application. The beauty application can desensitize the privacy attributes of the facial image and upload it to the server for beauty processing. The server can generate a corresponding beauty layer based on the non-privacy attributes such as facial expressions, facial contours, and facial features retained in the desensitized facial image, and then return it to the local computer for synthesis with the user's facial image.
[0059] For another example, the user's identity can be desensitized from the user's full-body image while retaining the user's gestures, so as to achieve the effect of automatically identifying gesture instructions without revealing the user's identity, and so on.
[0060] pass Figure 1 The method, through attribute-based desensitization processing, helps to remove the privacy attribute content in biological living images (such as face images, etc.) and retain the non-privacy attribute content, which can not only improve privacy security, but also make the processed biological living images still easy to view and understand, which helps to be applied to more business scenarios and has good reliability and applicability.
[0061] This method can effectively improve or replace other solutions and solve the problems existing in these solutions. For example, the reversible image encryption scheme mentioned in the background technology is easy to be cracked by brute force to restore the original image, while this method can achieve irreversible processing and is difficult to crack. Moreover, since the non-privacy attribute is retained, it can be directly used in some business scenarios, so there is no need for reverse changes, and the security is better. For example, in another scheme, irreversible processing is also used for the image, but the processed image is often a relatively abstract and chaotic image, which can only be understood by the face recognition model, but people cannot understand it intuitively, and the ease of use is poor, which limits the subsequent application scenarios (for example, when the machine recognizes the face, when there is public opinion that the user is dissatisfied with the recognition result, manual intervention is required for verification. Since the processed image cannot be understood by the naked eye, the verification personnel cannot directly verify whether the machine recognition is wrong based on the processed image, thereby affecting the subsequent business based on the recognition result such as payment business, ticket verification, etc.). This method also solves the problems in this scheme, at least allowing the verification personnel to obtain some more intuitive and easy-to-understand identifiable features to assist in judgment.
[0062] based on Figure 1 This specification also provides some specific implementation plans and extension plans of the method, which will be described below.
[0063] In one or more embodiments of this specification, in order to accurately desensitize, it is necessary to accurately identify the attributes. The identification of attributes is achieved using a machine learning model. In order to improve the accuracy of attribute identification, different attribute identification models are specifically constructed for different attributes according to the characteristics of the attributes for identification.
[0064] For example, for a face image, it is assumed that the privacy attribute is the user identity, and the non-privacy attributes are expression, eye opening and closing status, face posture, and face lighting.
[0065] For user identity, a face recognition sub-model is constructed and trained as the corresponding attribute recognition model.
[0066] For each non-privacy attribute, a classification sub-model or a regression sub-model is constructed and trained respectively, wherein the attributes represented by specific numerical values are generally suitable for identification using a regression sub-model, otherwise, they are suitable for identification using a classification sub-model.
[0067] For facial expressions, they are divided into five categories: {happy, calm, angry, sad, surprised}, and the multi-classification sub-model is used for recognition. For the eyes-opening and eyes-closing state, they are divided into two categories: {eyes open, eyes closed}, and the binary classification sub-model is used for recognition. For facial posture, the angle values of the three angles of pitch, yaw and roll of the face can be identified, and the regression sub-model is used for recognition. For facial illumination, the light intensity value on the face can be identified, and the regression sub-model is used for recognition.
[0068] In one or more embodiments of the present specification, after training an attribute recognition model based on samples containing predefined privacy attributes and non-privacy attributes, the attribute recognition model is jointly trained with a GAN model to obtain a GAN-based image generation model.
[0069] In practical applications, GAN models are often used to actively generate more samples when training samples are insufficient. By correctly and fully training the GAN model, the generator of the GAN model can generate more realistic samples to deceive the judge of the GAN model. Based on this principle, the real samples are defined as samples that contain no privacy attribute content as much as possible but can contain non-privacy attribute content, and are trained in conjunction with the attribute recognition model. In this case, the attribute recognition model can work relatively independently from the GAN model, or the attribute recognition model can be integrated into the hidden layer of the neural network of the GAN model. In the latter case, the attribute recognition model and the GAN model can be regarded as an integrated model, which helps to train more efficiently and consistently.
[0070] In one or more embodiments of the present specification, the GAN model outputs a desensitized intermediate image, and the intermediate image is processed more finely (for example, image enhancement, adding filters, local area edge fusion, etc.) through other post-models to output a desensitized image of a living organism. This helps to obtain a more realistic and friendly desensitized image effect. In this case, the other models and the GAN model are both components of the image generation model.
[0071] In one or more embodiments of the present specification, in actual applications, the specific ways in which users cooperate with image acquisition vary, such as different distances from the lens, different backgrounds, different numbers of people actually participating in the acquisition in the lens, and different attire (such as hats, makeup, scarves, clothing, rings, tattoos, nail art, etc.). These factors may affect the recognition of biological organisms in the image. In order to reduce this influence, after acquiring the user's source image, the biological organism area can be detected in the user's source image first, and then, based on the detection result, a regional image containing at least part of the biological organism area is obtained from the source image as the user's biological organism image. For example, the image part of the face area in the source image is cut out as the above-mentioned biological organism image. Of course, if necessary, more complex processing can be performed, such as even the original glasses part on the face can be processed, and the pixels of the glasses part can be replaced with pixels of nearby skin.
[0072] Furthermore, after generating a desensitized image of a living organism, the corresponding regional image can be replaced in the source image according to the desensitized image of the living organism to obtain a desensitized global image, so as to support a specified service according to the desensitized image of the living organism or the desensitized global image. In this way, the source image is restored to a certain extent, and unnecessary modifications to the source image are reduced, which is easier for users to accept. If the source image needs to be verified later, it may also be executed more efficiently and intuitively.
[0073] According to the above description, one or more embodiments of this specification provide an application scenario. Figure 1 An embodiment of the method, such as Figure 2 In this application scenario, the biological living body image includes at least a portion of a human face image.
[0074] Figure 2 The solution in this paper includes the following processing steps:
[0075] Attribute recognition model training. For example, according to the previous example, for the privacy attributes and several non-privacy attributes of facial images, appropriate attribute recognition models are constructed for training. In order to mine attributes more efficiently, in addition to manually defining attributes, an attribute definition model can also be constructed to mine information that may be defined as new attributes (for example, freckles, high altitude redness, age spots and other common facial appearances) from samples and automatically define them. For each attribute recognition model, training sample data is collected and labeled to obtain image-label pairs, and the model is supervised for training.
[0076] GAN-based image generation model training. The attribute recognition model and the GAN model are jointly trained to obtain an image generation model for desensitizing privacy attributes and retaining non-privacy attributes. In an optional scheme, for the image generation model, the input data is a face image containing at least part of the face area, and the output is a face image with desensitized privacy attributes and retained non-privacy attributes. Before training, more than 100,000 faces are collected as training data. The backbone architecture (Backbone) of the image generation model, for example, uses EfficientNet-B4. The image generation model includes loss functions corresponding to privacy attributes, non-privacy attributes, and the generator of the GAN model. In order to achieve the effect of desensitizing or retaining the above attributes, each loss function has a corresponding training goal, such as maximizing the loss function corresponding to the privacy attribute (the input has privacy attribute content, and the output removes the privacy attribute content as much as possible, so this part of the loss tends to be maximized), minimizing the loss function corresponding to the non-privacy attribute (the input has non-privacy attribute content, and the output keeps the original non-privacy attribute content as much as possible, so this part of the loss tends to be minimized), and minimizing the loss functions corresponding to the generator of the GAN model (making the newly generated face image as similar as possible to the real face image). The attribute recognition model and the GAN model are jointly trained to obtain an image generation model with converged training.
[0077] Facial image collection and preprocessing. This is when the image generation model is trained and the use phase begins. When the current user starts to scan their face, image data is collected to obtain the user's facial image. During the preprocessing process, the face detection model is used to detect a more accurate facial area in the facial image.
[0078] Face privacy protection based on image generation model. The image of the detected face area is input into the image generation model for processing, and a new image of the face area with privacy protection is output. The new image is replaced and spliced in the face area of the face image to obtain a complete face image with privacy protection.
[0079] Data upload and storage: After processing, the face image is uploaded to the server or stored locally with privacy protection, waiting to be applied to some required business.
[0080] In one or more embodiments of the present specification, a biological live image of a first user and a biological live image of a second user (the second user may include multiple different users) are obtained, and the two parties are processed simultaneously using an image generation model, such as replacing at least part of the privacy attribute content in the two parties with each other, to obtain biological live desensitized images corresponding to the two parties. In this case, the biological live desensitized image corresponding to the first user contains part of the privacy attribute content of the second user, but this does not lead to the exposure of the privacy attribute content of the first user, and can make the generated biological live desensitized image more natural, which helps to improve the user experience. It should be noted that under such a concept, how much privacy attribute content of other users is suitable to be displayed in a biological live desensitized image of a certain user can be determined according to actual needs, and generally cannot exceed a certain threshold to prevent risks to other users.
[0081] More intuitively, one or more embodiments of this specification also provide a comparison diagram of face image privacy protection before and after, such as Figure 3 shown.
[0082] exist Figure 3 In the figure, the right side is the face image before privacy protection, and the left side is the face image after privacy protection. It can be seen that it is difficult to identify the two faces of the same user simply by the naked eye. Even if the machine learning model of face recognition is used, it is usually not determined that the two faces are of the same user, thus achieving the purpose of protecting the user's identity. On the other hand, it can be seen that the image on the left faithfully retains some non-privacy attribute content, such as expression, face shape, hairstyle, and facial features. Face posture, etc. In this example, the user identity is predefined as a privacy attribute. Assuming that the hairstyle is predefined as a privacy attribute, after privacy protection, the short hair in the left image may become long hair to protect the privacy of the short hair in the right image.
[0083] Based on the same idea, one or more embodiments of this specification also provide devices and apparatuses corresponding to the above methods, such as Figure 4 , Figure 5 shown.
[0084] Figure 4 A schematic diagram of the structure of a privacy protection device based on attribute desensitization provided in one or more embodiments of this specification, wherein the dotted boxes in the figure represent optional modules, and the device includes:
[0085] A determination module 402 determines a GAN-based image generation model obtained by training samples containing privacy attributes and non-privacy attributes;
[0086] An acquisition module 404 is used to acquire a biological living image of a user;
[0087] A generating module 406, generating a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0088] The processing module 408 processes the desensitized image of the living organism according to a predetermined strategy to support a designated service.
[0089] Optionally, the privacy attribute reflects the identity of the user, and the non-privacy attribute does not reflect the identity of the user.
[0090] Optionally, the living body image includes a face image, and the attribute recognition model includes a face recognition sub-model corresponding to the privacy attribute.
[0091] Optionally, the non-privacy attribute includes at least one of the following: facial expression, eye opening or closing state, facial posture, and facial lighting;
[0092] The attribute recognition model includes at least one classification sub-model or regression sub-model corresponding to the non-privacy attribute.
[0093] Optionally, the device further comprises:
[0094] A training module 410 is configured to train an attribute recognition model based on samples containing predefined privacy attributes and non-privacy attributes;
[0095] The attribute recognition model is jointly trained with the GAN model to obtain a GAN-based image generation model.
[0096] Optionally, the training module 410 determines loss functions corresponding to the privacy attribute, the non-privacy attribute, and the generator of the GAN model, respectively, according to the attribute recognition model and the GAN model;
[0097] With the goal of maximizing the loss function corresponding to the privacy attribute and minimizing the loss functions corresponding to the non-privacy attribute and the generator of the GAN model, the attribute recognition model and the GAN model are jointly trained to obtain a GAN-based image generation model.
[0098] Optionally, the acquisition module 404 detects a living body area in a source image of a user;
[0099] According to the detection result, a regional image including at least a part of the biological living body region is acquired from the source image as the biological living body image of the user.
[0100] Optionally, the processing module 408 replaces the corresponding regional image in the source image according to the biological living body desensitized image to obtain a desensitized global image, so as to support a specified service according to the biological living body desensitized image or the desensitized global image.
[0101] Figure 5 A schematic diagram of a privacy protection device based on attribute desensitization provided in one or more embodiments of this specification, the device comprising:
[0102] at least one processor; and,
[0103] a memory communicatively connected to the at least one processor; wherein,
[0104] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0105] Determine a GAN-based image generation model trained on samples containing privacy attributes and non-privacy attributes;
[0106] Acquire a user's biological living image;
[0107] Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0108] The desensitized image of the living organism is processed according to a predetermined strategy to support a designated business.
[0109] The processor and the memory may communicate with each other via a bus, and the device may further include an input / output interface for communicating with other devices.
[0110] Based on the same idea, one or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0111] Determine a GAN-based image generation model trained on samples containing privacy attributes and non-privacy attributes;
[0112] Acquire a user's biological living image;
[0113] Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model;
[0114] The desensitized image of the living organism is processed according to a predetermined strategy to support a designated business.
[0115] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0116] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0117] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0118] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0119] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0120] This specification 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 this specification. 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 produce 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 provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.
[0122] 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.
[0123] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0124] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0125] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0126] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0127] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0128] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0129] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0130] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A privacy protection method based on attribute desensitization, comprising: Determine an image generation model based on a generative adversarial network (GAN) obtained by training samples including privacy attributes and non-privacy attributes, wherein the privacy attributes reflect the identity of the user and the non-privacy attributes do not reflect the identity of the user; Acquire a user's biological living image; Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model; Processing the desensitized biological living body image according to a predetermined strategy to support a designated business; The training of the GAN-based image generation model based on samples containing privacy attributes and non-privacy attributes specifically includes: training an attribute recognition model based on samples containing predefined privacy attributes and non-privacy attributes; and jointly training the attribute recognition model with the GAN model to obtain the GAN-based image generation model; The living biological image includes a face image, and the attribute recognition model includes a face recognition sub-model corresponding to the privacy attribute; the non-privacy attribute includes at least one of the following: expression, eye open or closed state, face posture, and facial lighting; the attribute recognition model includes at least one classification sub-model or regression sub-model corresponding to the non-privacy attribute.
2. The method according to claim 1, wherein the attribute recognition model is jointly trained with the GAN model to obtain a GAN-based image generation model, specifically comprising: Determine, according to the attribute recognition model and the GAN model, loss functions corresponding to the privacy attribute, the non-privacy attribute, and the generator of the GAN model, respectively; With the goal of maximizing the loss function corresponding to the privacy attribute and minimizing the loss functions corresponding to the non-privacy attribute and the generator of the GAN model, the attribute recognition model and the GAN model are jointly trained to obtain a GAN-based image generation model.
3. The method according to claim 1, wherein obtaining a living body image of a user comprises: Detecting a living body area in a source image of a user; According to the detection result, a regional image including at least a part of the biological living body region is acquired from the source image as the biological living body image of the user.
4. The method according to claim 3, wherein processing the desensitized image of the living organism according to a predetermined strategy to support a specified service specifically comprises: In the source image, the corresponding regional image is replaced according to the biological living body desensitized image to obtain a desensitized global image, so as to support a designated service according to the biological living body desensitized image or the desensitized global image.
5. A privacy protection device based on attribute desensitization, comprising: A determination module, determining an image generation model based on a generative adversarial network (GAN) obtained by training samples including privacy attributes and non-privacy attributes, wherein the privacy attributes reflect the identity of the user, and the non-privacy attributes do not reflect the identity of the user; An acquisition module, for acquiring a user's biological living image; A generation module, which generates a desensitized image of a living organism with respect to privacy attributes according to the living organism image and the image generation model; A processing module, processing the desensitized biological living body image according to a predetermined strategy to support a designated business; It also includes: a training module, which trains an attribute recognition model based on samples containing predefined privacy attributes and non-privacy attributes; The attribute recognition model is jointly trained with the GAN model to obtain a GAN-based image generation model; The living biological image includes a face image, and the attribute recognition model includes a face recognition sub-model corresponding to the privacy attribute; the non-privacy attribute includes at least one of the following: expression, eye open or closed state, face posture, and facial lighting; the attribute recognition model includes at least one classification sub-model or regression sub-model corresponding to the non-privacy attribute.
6. The apparatus of claim 5, wherein the training module determines the loss functions corresponding to the privacy attribute, the non-privacy attribute, and the generator of the GAN model, respectively, according to the attribute recognition model and the GAN model; With the goal of maximizing the loss function corresponding to the privacy attribute and minimizing the loss functions corresponding to the non-privacy attribute and the generator of the GAN model, the attribute recognition model and the GAN model are jointly trained to obtain a GAN-based image generation model.
7. The device according to claim 5, wherein the acquisition module detects a living body area in a source image of a user; According to the detection result, a regional image including at least a part of the biological living body region is acquired from the source image as the biological living body image of the user.
8. In the device as claimed in claim 7, the processing module replaces the corresponding regional image in the source image according to the biological living body desensitized image to obtain a desensitized global image, so as to support a specified business according to the biological living body desensitized image or the desensitized global image.
9. A privacy protection device based on attribute desensitization, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Determine an image generation model based on a generative adversarial network (GAN) obtained by training samples including privacy attributes and non-privacy attributes, wherein the privacy attributes reflect the identity of the user and the non-privacy attributes do not reflect the identity of the user; Acquire a user's biological living image; Generate a desensitized image of the living organism with respect to privacy attributes according to the living organism image and the image generation model; Processing the desensitized biological living body image according to a predetermined strategy to support a designated business; The training of the GAN-based image generation model based on samples containing privacy attributes and non-privacy attributes specifically includes: training an attribute recognition model based on samples containing predefined privacy attributes and non-privacy attributes; and jointly training the attribute recognition model with the GAN model to obtain the GAN-based image generation model; The living biological image includes a face image, and the attribute recognition model includes a face recognition sub-model corresponding to the privacy attribute; the non-privacy attribute includes at least one of the following: expression, eye open or closed state, face posture, and facial lighting; the attribute recognition model includes at least one classification sub-model or regression sub-model corresponding to the non-privacy attribute.
