Deep learning training data augmentation method and device for generating adversarial sample in real time, electronic equipment and medium

A technology against samples and training data, applied in the field of deep learning training, can solve the problems of inability to meet the requirements of accuracy, decreased accuracy, limited application scope, etc., to avoid unexplainable misjudgment phenomenon, improve precision and recall, improve The effect of robustness

Active Publication Date: 2021-10-22
广州杰纳医药科技发展有限公司 +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is also one of the reasons for the over-fitting phenomenon. The so-called over-fitting phenomenon means that the model can achieve high training accuracy on the training set, but the accuracy cannot meet the requirements in actual use.
For example, if a model only uses Gaussian noise and salt-and-pepper noise as data augmentation methods in training, when it encounters image distortion caused by video encoding and decoding in the application, it will have a serious decrease in accuracy.
[0005] Second, due to the black-box characteristics of the deep learning model, the model trainer cannot fully understand the features learned by the model
But its disadvantage is that the adversarial samples generated by this method are aimed at an already trained network, and its algorithm complexity is high, it cannot be combined with the model training process, and it cannot be dynamically adjusted according to the changing network during training. Parameters, constantly targeted to generate adversarial samples, so the scope of application is limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Deep learning training data augmentation method and device for generating adversarial sample in real time, electronic equipment and medium
  • Deep learning training data augmentation method and device for generating adversarial sample in real time, electronic equipment and medium
  • Deep learning training data augmentation method and device for generating adversarial sample in real time, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] This embodiment provides a deep learning training data augmentation method for generating adversarial samples in real time, such as figure 1 and figure 2 shown, including the following steps:

[0064] S1: input the image sample and random noise to the adversarial sample training network, and the adversarial sample training network generates an adversarial sample;

[0065] S2: Input the adversarial sample into the deep learning network trained through the normal training process;

[0066] S3: Calculate the first loss function according to the output of the deep learning network and the label, and calculate the second loss function according to the output of the deep learning network and the label confused by the label;

[0067] S4: Use the adversarial optimizer to perform gradient return and adversarial sample training network parameter update operations on the second loss function, and at the same time perform a gradient return operation on the first loss function an...

Embodiment 2

[0095] This embodiment provides a deep learning training data augmentation device that generates adversarial samples in real time, such as Figure 5 As shown, the device applies the deep learning training data augmentation method for real-time generation of adversarial samples described in Embodiment 1, including:

[0096] An adversarial sample generation module, the input module is used to input image samples and random noise to the adversarial sample training network, and the adversarial sample training network generates adversarial samples;

[0097] An input module, the input module is used to input the confrontation sample into the deep learning network trained through the normal training process;

[0098] A loss function calculation module, the loss function calculation module calculates the first loss function according to the output of the deep learning network and the label, and calculates the second loss function according to the output of the deep learning network an...

Embodiment 3

[0105] This embodiment provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor runs the computer program, it executes to implement the The method described in Example 1.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a deep learning training data augmentation method and device for generating an adversarial sample in real time, electronic equipment and a medium, and the method comprises the steps: modifying an input picture through network gradient return, generating the adversarial sample, and training a deep learning network through the generated adversarial sample in real time; using two optimizers, optimizing parameters of an adversarial sample training network and parameters of a deep learning network in training, so that the effect that adversarial parameters and network parameters can be optimized at the same time in one-time loop iteration is achieved, adversarial and training are accelerated, and only one adversarial parameter layer,one loss function and one optimizer needs to be added on the basis of an original network structure ; the robustness of the trained deep learning model is effectively improved, the precision and recall of the model in practical application are improved, and the uninterpretable misjudgment phenomenon of the model on unknown data can be effectively avoided.

Description

technical field [0001] The present invention relates to the technical field of deep learning training methods, and more specifically, to a deep learning training data augmentation, device, electronic equipment and medium for real-time generation of confrontation samples. Background technique [0002] In deep learning model training, because it is not easy to obtain labeled training data, the common practice is to scale, rotate, crop, add noise, projective transformation, superposition, etc. to the training data, and enrich it into the training set. These common operations to enrich the training set are called data augmentation. Data augmentation is to use limited training data to allow the model to learn as much as possible the visual features of the objects in the picture that are independent of position, angle, and noise. [0003] Although the above-mentioned common data augmentation methods can generate a large amount of training data using limited labeled images, they h...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06N3/04G06N3/08G06K9/62
CPCG06N3/08G06N3/045G06F18/214
Inventor 邓亮刁艺琦
Owner 广州杰纳医药科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products