In-vehicle video face image desensitization method and device based on generative adversarial network

By combining YOLO v8 and DeepGlint models, face detection and attribute labeling of in-car videos are performed to generate alternative images, which solves the information loss and image distortion problems in the face image protection of in-car videos, and realizes the realization of in-car videos. Efficient privacy protection and security improvement.

CN118247824BActive Publication Date: 2024-11-05BEIJING INFORMATION SCI & TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410439092.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-11-05
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

The existing in-car video face image protection technology is difficult to effectively prevent hackers from stealing car owner privacy when facing complex scenes and high-resolution videos, and there are problems of information loss and image distortion.

Method used

Using a method based on a generative adversarial network, combined with YOLO v8 object detection algorithm and DeepGlint deep learning model, face detection and attribute labeling of in-car videos are performed, and alternative images are generated by generating an adversarial network to change the expression, gender, age of the face, etc. Attributes to ensure the authenticity and confidentiality of the desensitization effect.

Benefits of technology

It realizes accurate detection, multi-attribute labeling and privacy protection of face images of videos in the car, improves the security and detection accuracy of videos in the car, avoids personal information leakage, and the generated image is as close as possible to the original image. Maintain the consistency and information value of the video.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247824B_ABST
    Figure CN118247824B_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for desensitizing in-vehicle video face images based on a generative adversarial network, including using a YOLO v8 target detection algorithm to realize real-time detection and positioning of in-vehicle faces, and using CSPDarknet53 as a backbone network to extract advanced features; adapting to target faces of different sizes through a multi-scale prediction mechanism to ensure accurate detection of all visible faces; using a DeepGlint deep learning model to accurately locate and annotate face images with multiple attributes to provide a more comprehensive feature description for the image; in the face of video abuse risks, an innovative desensitization method based on GAN is proposed, using a residual network perceptual encoder to convert the original face image to a feature space, and adjusting the attributes of the real face image in the generator by learning a virtual face data set; introducing a discriminator to evaluate image similarity, adjusting the generated image through feedback, and finally generating a continuous video stream to complete the desensitization process. The invention can improve the detection accuracy and robustness of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile data security technology, and in particular to a method and device for desensitizing in-vehicle video face images based on a generative adversarial network. Background Art

[0002] As the degree of networking deepens, the number of interaction scenarios and frequencies between people, vehicles, roads, and the cloud increases. The data generated by intelligent connected vehicles is growing rapidly and in huge volumes. Data security issues have become the core challenge for the security of intelligent connected vehicles. Global data security threats continue to escalate, and the data security of intelligent connected vehicles faces an increasingly severe situation. The development of digital images has made facial recognition technology increasingly sophisticated, and it has now been widely used in many aspects of daily life, such as face unlocking, face payment, and permission verification. This allows some malicious users to obtain the biometric features of the face through shared data and use facial recognition technology to steal the user's privacy.

[0003] In order to prevent hackers from maliciously using the owner's in-car video, facial image desensitization is an indispensable technical processing operation. As an active data security protection measure, facial image desensitization mainly protects personal identity information and ensures data security on the vehicle side through face editing, face anonymization, and face desensitization methods based on deep learning. The continuous improvement of the ability of in-car cameras to record videos and the complexity of facial angles have led to increasing threats to in-vehicle data security and the difficulty of image protection processing. Existing security protection technologies are not suitable for facial image protection in in-car videos and complex scenes in the car.

[0004] As a deep learning structure, the generative adversarial network consists of a generator and a discriminator, and generates highly realistic images through adversarial learning. In the image desensitization task, GAN simulates the distribution of real images through the generator network to generate realistic substitute images. This method not only retains the information of the original image, but also makes the desensitization effect adjustable through a fine-grained control mechanism. In view of the problems of information loss and image distortion in traditional desensitization methods, the present invention proposes a desensitization method for in-vehicle video face images based on a generative adversarial network. Summary of the invention

[0005] The present invention proposes a method, device and storage medium for desensitizing in-vehicle video facial images based on a generative adversarial network, which can at least solve one of the technical problems in the background technology.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] A method for desensitizing in-vehicle video face images based on a generative adversarial network is implemented by the following steps:

[0008] Step 1: In order to build a reliable and accurate in-car video face image desensitization model and ensure the accurate detection of in-car facial behavior by the car facial recognition system, the present invention uses YOLO v8 to detect faces in the video obtained by the in-car camera. First, the video is processed by frame extraction, and video frames are extracted at fixed time intervals. Then CSPDarknet53 is used as the backbone network to extract high-level feature representations of the input image. Multi-scale prediction is introduced, and feature maps at different levels are used to perform multi-scale detection of targets to improve the sensitivity to large targets of the front driver and co-driver face images and small targets of the rear passenger face images. The model achieves accurate positioning and classification of facial targets by regressing the center coordinates, width and height, and target category of the frame.

[0009] Step 2: Use the DeepGlint deep learning model to accurately locate and label facial images with multiple attributes. By building a facial image dataset containing multiple attribute labels and performing multiple rounds of iterative model training, the DeepGlint model classifies facial images with multiple attributes, such as gender, age, expression, whether wearing glasses, goatee, beard, etc. The output results generate corresponding practical attribute labels for each face. Finally, a dataset classified by facial attributes is constructed.

[0010] Step 3: In response to the problem that in-car videos may be stolen and leaked, and others may use them maliciously, this patent proposes a method for desensitizing in-car facial images based on a generative adversarial network, and inputs a dataset of real facial images with attribute annotations into the generative adversarial network as a training dataset. The present invention constructs a perceptual encoder based on a residual network, maps the original AI facial image to the feature space, and obtains an initial latent vector. In order to change the identity of the original image visually, the generator of the generative adversarial network uses a facial dataset completely generated by AI to change the expression, gender, age and other attributes of the real facial image. A discriminant value is set in the discriminator, the generated image is compared with the original image, and then the iteratively generated image is updated. The closer the result is to the original image, the more real it is. Finally, the generated facial image is decoded to generate a video to complete the desensitization of the in-car video facial image.

[0011] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0012] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0013] It can be seen from the above technical scheme that the in-vehicle video face image desensitization method and system based on the generative adversarial network of the present invention first realizes real-time face detection of in-vehicle video images through the YOLO v8 target detection algorithm, and marks the detected face area, and adds attribute labels to these face areas through face attribute recognition technology. Then, the labeled face area is image preprocessed to ensure that high-quality face attributes are extracted. The attribute factors of the original face image are extracted through a deep learning model, including facial features and expressions. Finally, a replacement face image is generated using a generative adversarial network, and the attribute factors of the generated image are replaced with the attribute factors of the original face image, thereby realizing the desensitization processing of the in-vehicle video face image.

[0014] Specifically, the method of the present invention realizes the three-step processing of accurate positioning, multi-attribute labeling and privacy protection of facial images in videos collected by in-car cameras by combining the YOLO v8 target detection algorithm and the DeepGlint deep learning model. First, the YOLO v8 target detection algorithm is used to perform frame extraction and multi-scale prediction on the in-car video to improve the sensitivity to different targets and accurately detect the faces of car owners and passengers. Secondly, through the DeepGlint deep learning model, multi-attribute labeling of facial images, including gender, age, expression, etc., is realized, corresponding practical attribute labels are generated and a classification data set is constructed. Finally, the real face images that have been labeled are desensitized by generating adversarial networks, and the attribute factors are replaced to generate blurred face images to ensure the privacy protection of in-car face images.

[0015] The beneficial effects of the present invention are:

[0016] (1) This paper proposes an efficient in-vehicle video face detection method based on YOLO v8, which accurately detects and classifies faces in videos captured by in-vehicle cameras. The model introduces multi-scale prediction and can use feature maps at different levels to perform multi-scale detection of targets, thereby improving the sensitivity to large targets in the front driver and co-driver's face images and small targets in the rear passenger's face images. This technology can improve the detection accuracy and robustness of the model, thereby providing a safer and more reliable facial recognition solution for the automotive industry.

[0017] (2) The present invention proposes a facial image positioning and multi-attribute labeling method based on the DeepGlint deep learning model. The method can accurately locate facial images and label multi-attributes, such as gender, age, expression, whether wearing glasses, goatee, beard, etc. By constructing a facial image dataset containing multiple attribute labels and performing multiple rounds of iterative model training, practical attribute labels corresponding to each face can be generated. Ultimately, the method can construct a dataset classified by facial attributes, providing accurate data support for subsequent facial recognition and analysis.

[0018] (3) The present invention proposes a method for desensitizing in-car video facial images based on a generative adversarial network, which can effectively protect personal privacy and prevent in-car videos from being stolen and leaked and maliciously used by others. The method uses a facial dataset completely generated by AI to change the expression, gender, age and other attributes of real facial images, thereby achieving desensitization of in-car video facial images. By setting a discriminant value, the generated image is compared with the original image, and then the generated image is updated and iterated. The closer the result is to the original image, the more realistic it is. This method can not only protect personal privacy, but also improve the security and reliability of in-car videos. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of the desensitization process of the in-vehicle face image of the present invention;

[0020] Figure 2 This is a schematic diagram of the YOLOv8 target detection framework of the present invention;

[0021] Figure 3 This is a schematic diagram of the framework for desensitizing facial images using a generative adversarial network in the present invention;

[0022] Table 1 is the quality requirements table for face image screening;

[0023] Table 2 is the face image resolution requirement table. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0025] like Figure 1As shown, the in-vehicle video face image desensitization method based on the generative adversarial network described in this embodiment, first, the YOLO v8 target detection algorithm is used to perform real-time face detection on the in-vehicle video image, and the detected face area is marked, and attribute labels are added to these areas through face attribute recognition technology. Then the labeled face area is image preprocessed to ensure high-quality face attribute extraction. The attribute factors of the original face image are extracted through a deep learning model, including facial features and expressions. Finally, a generative adversarial network is used to generate a replacement face image, and the attribute factors of the generated image are replaced with the attribute factors of the original face image, thereby realizing the desensitization processing of the in-vehicle video face image. This method provides a comprehensive and effective face desensitization solution for the in-vehicle monitoring system by combining target detection, attribute labeling and generative adversarial networks.

[0026] When carrying out the present invention, the specific implementation steps are as follows:

[0027] 1) To ensure that the car facial recognition system can accurately detect the behavior of the face in the car, the present invention uses the YOLO v8 target detection algorithm to detect the face in the video captured by the camera in the car in real time, and selects frames from the video for positioning analysis at preset time intervals. The images after video frame extraction are screened according to the requirements of face integrity, clarity, posture and image resolution. The quality requirements are shown in Tables 1 and 2. Then CSPDarknet53 is used as the backbone network to extract high-level feature representation of the input image, capture the key features of the input image, accelerate the training process and enhance the generalization ability of the model, such as Figure 2 shown.

[0028] In order to improve the model's ability to detect target faces of different sizes, a multi-scale prediction mechanism is introduced. Using feature maps at different levels to detect targets at multiple scales can not only effectively locate larger faces in the front driver and co-pilot areas, but also accurately identify small faces in the rear passenger area. In this way, the model can better adapt to the complex in-car environment and ensure accurate detection of all visible faces. Finally, the model accurately locates and classifies facial targets by regressing the center coordinates, width and height of the box, as well as the target category. This process not only improves the speed and accuracy of detection, but also ensures that during the desensitization process, the generated image can maintain consistency and coherence with the original video content, thereby maintaining the full functionality of the in-car monitoring system while protecting personal privacy.

[0029] Table 1 Face image quality requirements

[0030]

[0031] Table 2 Face image resolution requirements

[0032]

[0033] 2) Using the deep learning model DeepGlint, we achieved accurate positioning and multi-attribute labeling of facial images. First, we built a facial image dataset containing multiple attribute labels, and iterated optimization through multiple rounds of model training. The DeepGlint model generates corresponding practical attribute labels for each face by performing detailed multi-attribute classification of facial images, including gender, age, expression, whether wearing glasses, goatee, beard, etc. The output of this model with multi-attribute classification capability provides a more comprehensive feature description for facial images. In the model output, each facial image is labeled with the corresponding practical attribute label.

[0034] 3) Faced with the situation where in-car videos may be illegally obtained and abused, the present invention proposes an innovative solution - a desensitization method for in-car facial images based on a generative adversarial network (GAN). The perceptual encoder based on the residual network can convert the original facial image into a feature space and extract an initial latent vector from it. This latent vector is an abstract expression of the image features and provides a basis for subsequent changes in image attributes. In the generator part of the generative adversarial network, the present invention uses a virtual face dataset generated entirely by artificial intelligence. By learning from these virtual faces, the generator can make subtle but effective adjustments to the attributes of real facial images in terms of expression, gender, age, etc. Figure 3 This adjustment aims to preserve the visual authenticity of the image while ensuring that the identity of the original people is not directly identifiable.

[0035] GAN consists of a generator G (generator) and a discriminator D (discriminator). In this patent, its loss function is:

[0036]

[0037] in, represents the input noise variable, Indicates that the generator is in the data The distribution on Indicates that the discriminator is in the data The mapping to the data space is represented as ,in is a parameter The differential function represented by the multi-layer perceptron. express The probability of coming from the real sample data.

[0038] In order to further improve the quality of desensitized images, a discrimination threshold is set in the discriminator. The face image generated by the generator will be compared with the original image, and the discriminator will evaluate the similarity between the two and give a discrimination value. The generator will continuously adjust the generated image based on the feedback from the discriminator in order to achieve an effect as close as possible to the original image. Finally, the generated face image is reassembled into a continuous video stream through the decoding process, completing the desensitization of the face image in the entire in-car video. The processed video retains the original information value and effectively prevents the leakage of personal information.

[0039] The above steps introduce the specific implementation steps of the patent of this invention in detail. The present invention proposes a method for desensitizing in-vehicle video face images based on a generative adversarial network, in which the specific implementation steps include using the YOLO v8 target detection algorithm to achieve real-time detection and positioning of in-vehicle faces, and using CSPDarknet53 as the backbone network to extract advanced features. The multi-scale prediction mechanism is used to adapt to target faces of different sizes to ensure accurate detection of all visible faces. Then, the DeepGlint deep learning model is used to accurately locate and annotate the face image with multiple attributes to provide a more comprehensive feature description for the image. In the face of the risk of video abuse, an innovative desensitization method based on GAN is proposed, which uses a residual network perceptual encoder to convert the original face image to the feature space, and adjusts the attributes of the real face image in the generator by learning a virtual face data set. The discriminator is introduced to evaluate the image similarity, and the generated image is adjusted through feedback, and finally a continuous video stream is generated to complete the desensitization process.

[0040] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0041] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0042] In another embodiment provided in the present application, a computer program product comprising instructions is also provided. When the computer is run on a computer, the computer executes any of the in-vehicle video facial image desensitization methods based on a generative adversarial network in the above-mentioned embodiments.

[0043] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

[0044] The embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus.

[0045] Memory, used to store computer programs;

[0046] The processor is used to implement the above-mentioned in-vehicle video face image desensitization method based on the generative adversarial network when executing the program stored in the memory.

[0047] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0048] The communication interface is used for communication between the above electronic device and other devices.

[0049] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0050] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0051] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0053] Each embodiment in this specification is described in a related 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 system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0054] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for desensitizing facial images in in-vehicle videos based on a generative adversarial network, characterized in that: The following steps are included: S1. Use YOLO v8 target detection algorithm to achieve real-time detection and positioning of faces in the car, and use CSPDarknet53 as the backbone network to extract advanced features; S2, adapts to target faces of different sizes through a multi-scale prediction mechanism to ensure accurate detection of all visible faces; S3. Then, the DeepGlint deep learning model is used to accurately locate and annotate facial images with multiple attributes, providing a more comprehensive feature description for the image. S4. In the face of the risk of video abuse, a GAN-based desensitization method is proposed. The residual network perceptual encoder is used to transform the original face image into the feature space, and the attributes of the real face image are adjusted in the generator by learning the virtual face dataset; S5, introduce a discriminator to evaluate image similarity, adjust the generated image through feedback, and finally generate a continuous video stream to complete the desensitization process; The S4 specifically includes: The perceptual encoder based on the residual network transforms the original face image into the feature space and extracts an initial latent vector from it; this latent vector is an abstract expression of the image features and provides a basis for subsequent changes in the image attributes; in the generator part of the generative adversarial network, a virtual face dataset completely generated by artificial intelligence is used. By learning from these virtual faces, the generator can make subtle but effective adjustments to the expression, gender, and age attributes of real face images; Among them, GAN consists of a generator G and a discriminator D, and its loss function is: in, represents the input noise variable, Indicates that the discriminator is in the data The distribution on ; the mapping to the data space is expressed as ,in is a parameter The differential function represented by the multi-layer perceptron; express The probability of coming from the real sample data.

2. The method for desensitizing in-vehicle video face images based on a generative adversarial network according to claim 1, characterized in that: Step S1 specifically includes: The YOLO v8 target detection algorithm is used to detect faces in real time in the video captured by the in-car camera, and frames are selected from the video for positioning analysis at preset time intervals; After the video is frame-sampling processed, the images are screened according to the face sample quality index, and then CSPDarknet53 is used as the backbone network to extract the high-level feature representation of the input image, capture the key features of the input image, accelerate the training process and enhance the generalization ability of the model.

3. The method for desensitizing in-vehicle video face images based on a generative adversarial network according to claim 1, characterized in that: Step S2 also includes, in order to improve the detection capability of target faces of different sizes, introducing a multi-scale prediction mechanism; using feature maps of different levels to perform multi-scale detection on the target; Finally, the center coordinates, width, height, and target category of the regression box are used to accurately locate and classify the face target.

4. The method for desensitizing in-vehicle video face images based on a generative adversarial network according to claim 1, characterized in that: Step S3 specifically includes: Using the deep learning model DeepGlint, we achieved accurate positioning and multi-attribute labeling of facial images. We first built a facial image dataset containing multiple attribute labels, and iterated and optimized it through multiple rounds of model training. The DeepGlint model classifies facial images in detail by multiple attributes, including gender, age, expression, whether wearing glasses, goatee, and beard, and generates corresponding practical attribute labels for each face. In the model output, each face image is annotated with corresponding practical attribute labels.

5. The method for desensitizing in-vehicle video face images based on a generative adversarial network according to claim 4, characterized in that: It also includes setting a discrimination threshold in the discriminator; the face image generated by the generator is compared with the original image, and the discriminator evaluates the similarity between the two and gives a discrimination value; The generator will continuously adjust the generated image based on the feedback from the discriminator in order to achieve an effect as close as possible to the original image; Finally, the generated face images are reassembled into a continuous video stream through the decoding process, completing the desensitization processing of the entire in-car video face image.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 5.