WO2020258667A1 - 图像识别方法及装置、非易失性可读存储介质、计算机设备 - Google Patents
图像识别方法及装置、非易失性可读存储介质、计算机设备 Download PDFInfo
- Publication number
- WO2020258667A1 WO2020258667A1 PCT/CN2019/118187 CN2019118187W WO2020258667A1 WO 2020258667 A1 WO2020258667 A1 WO 2020258667A1 CN 2019118187 W CN2019118187 W CN 2019118187W WO 2020258667 A1 WO2020258667 A1 WO 2020258667A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network model
- image
- discriminant
- images
- trained
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Definitions
- This application relates to the field of image recognition technology, in particular to image recognition methods and devices, non-volatile readable storage media and computer equipment.
- the active forensics technology needs to add verification information to the image in advance, and the images obtained for most application scenarios do not contain a priori information, so the active forensics technology has great limitations; the existing The passive blind forensics technology mainly relies on image statistical characteristics or shallow feature information, such as gray value, gray change, etc.
- the existing passive blind forensics technology is very dependent on the selection of shallow features, and the quality of shallow features affects the image The accuracy of the recognition result has a great influence.
- the passive blind forensics technology requires a large number of forged samples, the establishment of the forged sample set generally needs to be completed manually, which consumes a lot of time and energy, and the labor cost is high.
- this application provides an image recognition method and device, a non-volatile readable storage medium, and computer equipment.
- the main purpose is to solve the existing passive blind forensics technology that relies too much on image statistical characteristics or shallow feature information, and the result of image recognition
- an image recognition method which includes:
- the final discriminant network model is used to identify the target image, and it is determined that the target image is a fake image or a real image.
- an image recognition device which includes:
- the generation module is used to use the generated network model trained in the deep convolution against the generated network model to generate fake images according to the tampered data;
- the training module is used to train the discriminant network model trained in the deep convolutional confrontation generation network model by using the image discrimination sample set composed of the generated fake image and the preset real image to obtain the final discriminant network model;
- the recognition module is used to recognize the target image using the final discriminant network model, and determine whether the target image is a fake image or a real image.
- a non-volatile readable storage medium having computer readable instructions stored thereon, and the program is executed by a processor to realize the above-mentioned image recognition method.
- a computer device including a non-volatile readable storage medium, a processor, and computer readable instructions stored on the non-volatile readable storage medium and running on the processor , When the processor executes the program, the foregoing image recognition method is implemented.
- the image recognition method and device, non-volatile readable storage medium, and computer equipment provided in this application are compared with the existing technical solutions based on active forensics technology and passive blind forensics technology to identify the authenticity of images.
- This application uses the trained generative network model in the deep convolution against the generative network model to generate forged images based on the tampered data, and uses the image discriminant sample set composed of the generated forged images and preset real images to generate deep convolution against The trained discriminant network model in the network model is trained to obtain the final discriminant network model, so that the final discriminant network model can be used to identify the target image and determine whether the target image is a fake image or a real image.
- the trained generation network model is used to generate forged images that conform to the distribution of image discrimination samples, so that a large number of forged images can be generated from a small number of forged images, which can better solve the technical problem of high labor costs for establishing a forged sample set; in addition, use
- the final discriminative network model in the deep convolutional confrontation generation network model recognizes the target image, which can better solve the technical problems of passive blind forensics technology, such as excessive reliance on the shallow feature information of the image and the poor robustness of the network model, and effectively ensure the final The accuracy of the discriminant network model to identify the authenticity of the image and the robustness of the final discriminant network model.
- FIG. 1 shows a schematic flowchart of an image recognition method provided by an embodiment of the present application
- FIG. 2 shows a schematic flowchart of another image recognition method provided by an embodiment of the present application
- Fig. 3 shows a schematic structural diagram of an image recognition device provided by an embodiment of the present application.
- the active forensics technology has the limitation that the acquired images do not contain prior information, and the passive blind forensics technology relies too much on image statistical characteristics or shallow Layer feature information has a greater impact on the accuracy of the image recognition result, and the technical problem of high labor cost for constructing the corresponding forged sample set.
- This embodiment provides an image recognition method, which can effectively avoid the technical problems of low accuracy of image recognition results caused by the existing passive blind forensics technology in the process of recognizing images, and the high labor cost of constructing a corresponding forged sample set. , Thereby effectively improving the accuracy of image recognition.
- the method includes:
- Deep Convolutional Generative Adversarial Networks includes generative network model and discriminative network model, and training the generative network model and discriminant network model at the same time.
- the generative network model generates fake and real images through training The gap between them is as small as possible to deceive the discriminative network model; on the other hand, the discriminant network model is trained to make it as accurate as possible to determine the authenticity of the input target image.
- the generation network model in the deep convolutional confrontation generation network DCGAN is a reverse convolutional neural network model, which has 5 layers, specifically:
- the first layer is the input layer, in order to obey the normal distribution, the number of input layer nodes is consistent with the input data dimension.
- the input data is 100-dimensional data, and the number of input layer nodes is also 100.
- the second layer is the deconvolution layer, and its input data is the output result of the first layer.
- the activation function is the ReLU function.
- the third layer is the deconvolution layer, and the input data is the output result of the second layer.
- the fourth layer is the deconvolution layer, and its input data is the output result of the third layer.
- the fifth layer is the deconvolution layer.
- the output result is used to construct the image discriminant sample set of the discriminant network model.
- the discriminant network model in the deep convolutional confrontation generation network DCGAN is a convolutional neural network model, with a total of 5 layers, specifically:
- the first layer is the input layer, and the matrix specification of the input data vector is set to 64*64*3, the size of the convolution kernel is 4*4, and the activation function is LeakyReLU.
- the calculation formula of the activation function LeakyReLU is specifically:
- x i is the input data vector
- y i is the processed data vector obtained after the activation function is calculated and output
- a i is a fixed parameter in the interval (1, + ⁇ ).
- the second layer is a convolutional layer, and its input data is the output result of the first layer.
- the activation function is LeakyReLU.
- the third layer is a convolutional layer, and its input data is the output result of the second layer.
- the fourth layer is a convolutional layer, and its input data is the output result of the third layer.
- the fifth layer is a convolutional layer, and the size of the convolution kernel is set to 4*4, and the filter is one, and the output result is obtained after smoothing operation.
- the target image is input into the final discriminant network model. If the output result is infinitely close to 0, the target image is determined to be a fake image; if the output result is infinitely close to 1, the target image is determined to be a real image. In the actual application scenario, set the forgery discrimination value to a. If the output result is in the range of (0, a], the target image is determined to be a forged image; if the output result is in the range of [b, 1), then the target image is determined The target image is a real image, and the forgery discriminant value and the true discriminant value are not specifically limited here.
- the deep convolution against the generative network model trained in the generative network model can be used to generate a forged image based on the tampered data, and an image discrimination sample composed of the generated forged image and a preset real image can be used Set to train the discriminant network model trained in the deep convolutional confrontation generation network model to obtain the final discriminant network model, so that the final discriminant network model can be used to identify the target image and determine whether the target image is a fake image or a real image
- this embodiment enables the discriminant network model to have better discriminative ability through the early learning and training, and the generation of the network model remains unchanged
- the discriminant network model can still be trained separately, so that the discriminant network model can adaptively learn its internal statistical laws from the image discriminant sample set, thereby improving the generalization ability of the final discriminant network model.
- the method includes:
- the initial discriminant network model is trained to obtain the first discriminant network model, which specifically includes: using noise variables and real images as the input data of the initial discriminant network model, and using the obtained output result as the logistic regression output function Further, use the first loss function to obtain the loss value d_loss_real of the real image, and use the gradient ascent algorithm to train the initial network parameters ⁇ d so that the output result is infinitely close to 1, thereby obtaining the first discriminant network model.
- the first loss function is:
- x i and z i are the real image and the noise variance
- m is the number of samples of the first judgment
- D (x i) is the initial network model is determined
- D (G (z i) ) to generate an initial network model.
- the optimized initial network parameter is used as the first network parameter.
- the initialization of the discriminant network model is trained to obtain the first discriminant network model, which specifically includes: using noise variables and fake images as the input data of the first discriminant network model, and using the output result as the logistic regression output function Input data; further, use the second loss function to obtain the loss value d_loss_fake of the fake image, and use the gradient descent algorithm to train the first network parameter ⁇ d so that the output result is infinitely close to 0, thereby determining the second discriminant network model The second network parameter ⁇ d , and the second discriminant network model.
- the second loss function is:
- y i forged image m is the number of samples of the second judgment
- D (x i) is determined as a first network model, D (G (z i) ) to generate an initial network model.
- the calculation formula for training the first network parameter ⁇ d using the gradient descent algorithm is:
- the obtained second discriminant network model can be used as a trained discriminant network model, so as to use the fake image generated by the trained generation network model and the preset real image to form an image discriminant sample set for this training
- the good discriminant network model is further trained to obtain the final discriminant network model to realize the recognition of fake images and real images.
- the third discriminant sample set can be the same as the first discriminant sample set, or it can be adjusted accordingly according to actual application needs; accordingly, the fourth discriminant sample set and the second discriminant sample set can be the same, or Adjust accordingly according to actual application needs, and the number of first discriminant samples, the number of second discriminant samples, the number of third discriminant samples, and the number of fourth discriminant samples can also be adjusted according to the needs of actual applications.
- the discriminant sample set and the first discriminant sample set, and the fourth discriminant sample set and the second discriminant sample set, and the number of the first discriminant sample, the second discriminant sample number, the third discriminant sample number, and the fourth discriminant sample number are specifically limited .
- training the initial generation network model to obtain a trained network model specifically includes: using the noise variable used for training the generation network model as the input data of the initial generation network model, for example, the noise variable is 100 Dimensional data, and use the output result as the input data of the logistic regression output function; further, use the loss function of the generated network model to obtain the forged image loss value d_loss, and use the gradient descent algorithm to minimize the loss of the initial generated network model Value g_loss, the network parameters ⁇ g of the trained generative network model are trained, so that the output fake image is input to the trained discriminant network model, and the output result is infinitely close to 1, so that the trained generative network model is obtained. To reduce the discriminative ability of the trained discriminant network model.
- the loss function of the generated network model is:
- the trained generative network model can be further optimized. For example, use tampering data to further optimize the training of the trained generative network model to obtain an optimized generative network model, so as to further generate fake images based on the tampered data, and construct image discriminant sample sets to realize the deep convolutional confrontation generation network Further optimization of the discriminative network model trained in the model.
- the fake image generated by the trained generation network model or the optimized generation network model and the acquired real image are used to construct an image discrimination sample set.
- the network parameter ⁇ d of the final discriminant network model is obtained, thereby obtaining the final discriminant network model.
- the acquired image to be recognized is preprocessed, specifically, the target feature in the image to be recognized is recognized, the recognized target feature is intercepted, and the intercepted image is sized according to a certain ratio Adjust to obtain the target image used to characterize the target feature.
- the deep image features of the target image can be contour, texture, brightness, color, and combinations thereof, as well as corresponding high-level semantics and combinations thereof.
- the target image Recognize the target image according to the acquired deep image features, and determine that the target image is a forged image or a real image.
- step 210 may specifically include: if the tampering data is copy-and-paste type image data, fuzzy retouch type image data, or computer-generated type image data, correspondingly,
- the final discriminant network model is used to identify the target image, and it is determined that the target image is a forged image, and the corresponding forged image types are copy and paste type images, fuzzy retouch type images, or computer-generated type images.
- the noise variable used to train the discriminant network model does not set the data type
- only the trained generation network model or the tampered data input by the optimized generation network model is set to the copy and paste type, Either the fuzzy retouching type or the computer-generated type
- the final discriminant network model is used to determine the target image is a fake image or a real image
- the image types used to determine the target image to be a forged image are copy and paste type image and fuzzy retouch type respectively Image, or computer-generated type image.
- the data type of the noise variable used to train the discriminant network model can also be set to copy and paste type, or fuzzy retouch type, or computer-generated type, so as to make the final discriminant network model more stable , Quickly determine the authenticity of the target image, and provide higher reliability for the image collection of public security, courts and other departments.
- copy-and-paste type images, fuzzy retouch type images, or computer-generated type images have common deep image features, they are used to train and discriminate the type of noise variable of the network model, and the trained generation network model or the optimized generation The tampered data input by the network model does not need to set the data type.
- the final discriminating network model can also be used to determine whether the target image is a forged image or a real image, and the image types used to determine the target image as a forged image are copy and paste types. Image, blur retouch type image, or computer generated type image. There is no specific limitation here.
- this embodiment Compared with the existing technical solutions based on active forensics technology and passive blind forensics technology to identify the authenticity of images, this embodiment generates a large number of forged images through a small amount of forged images, which better solves the high labor cost of establishing a forged sample set.
- an embodiment of the present application provides an image recognition device.
- the device includes: a generation module 35, a training module 36, and a recognition module 37.
- the generation module 35 can be used to use the generated network model trained in the deep convolution against the generation network model to generate fake images based on the tampered data; the generation module 35 is a basic module for the device to recognize whether the image to be recognized is a fake image or a real image .
- the training module 36 can be used to train the discriminant network model trained in the deep convolutional confrontation generation network model by using the image discrimination sample set composed of the generated fake image and the preset real image to obtain the final discriminant network model
- the training module 36 is the main functional module for the device to recognize that the image to be recognized is a fake image or a real image, and is also a core functional module of the device.
- the recognition module 37 can be used to recognize the target image using the final discriminant network model, and determine that the target image is a forged image or a real image; the recognition module 37 is the main part of the device to recognize that the image to be recognized is a forged image or a real image.
- the functional module is also the core functional module of the device.
- the first discriminant training module 31 can be used to use the first discriminant sample set composed of noise variables and real images to convolve the depth Training against the initial discriminant network model in the generative network model to obtain a first discriminant network model; and, using a second discriminant sample set composed of noise variables and fake images to train the first discriminant network model, and obtain the training The discriminative network model.
- the second discriminant training module 32 can be used to train the initial discriminant network model in the deep convolutional confrontation generation network model by using the first discriminant sample set composed of noise variables and real images to obtain the first discriminant network model; and, Use the second discriminant sample set composed of noise variables and fake images to train the first discriminant network model to obtain the second discriminant network model; and use the third discriminant sample set composed of noise variables and real images to compare the results
- the second discriminant network model is trained to obtain a third discriminant network model; and the third discriminant network model is trained using a fourth discriminant sample set composed of noise variables and fake images to obtain a trained discriminant network model .
- it also includes a first generation training module 33, which can be used to train the initial generation network model in the deep convolutional confrontation generation network model by using the first generation sample set composed of noise variables, and get well trained The generative network model.
- a preprocessing module 34 is also included, which can be used to identify and intercept the target feature in the acquired image to be recognized, to obtain a target image corresponding to the target feature.
- the final discriminant network model is used to identify the target image to determine the target image.
- the target image is a forged image
- the corresponding forged image types are copy and paste type images, fuzzy retouch type images, or computer-generated type images.
- the recognition module 37 can be specifically used to obtain the deep image features of the target image; recognize the target image according to the acquired deep image features, and determine whether the target image is a fake image or a real image. image.
- an embodiment of the present application also provides a non-volatile readable storage medium on which computer readable instructions are stored, and the program is executed when the processor is executed.
- the technical solution of the present application can be embodied in the form of a software product, and the software product can be stored in a non-volatile non-volatile readable storage medium (can be CD-ROM, U disk, mobile hard disk) Etc.), including several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in each implementation scenario of this application.
- a computer device which may be a personal computer, a server, or a network device, etc.
- the embodiments of the present application also provide a computer device, which can be a personal computer, a server, or a network.
- the physical device includes a non-volatile readable storage medium and a processor; the non-volatile readable storage medium is used to store computer readable instructions; and the processor is used to execute computer readable instructions to achieve the above Figure 1 and Figure 2 show the image recognition method.
- the computer device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and so on.
- the user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, and the like.
- the network interface can optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.
- a computer device does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or arrange different components.
- the non-volatile readable storage medium may also include an operating system and a network communication module.
- the operating system is a program that manages the hardware and software resources of computer equipment, and supports the operation of information processing programs and other software and/or programs.
- the network communication module is used to implement communication between various components in the non-volatile readable storage medium and communication with other hardware and software in the physical device.
- this application can be implemented by means of software plus a necessary general hardware platform, or by hardware.
- this embodiment can generate a large number of forged images from a small amount of forged images; and, use depth volume
- the final discriminant network model in the product confrontation generation network model recognizes the target image, which can effectively ensure the accuracy of the final discriminant network model to recognize the authenticity of the image and the robustness of the final discriminant network model.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioethics (AREA)
- Computer Hardware Design (AREA)
- Image Analysis (AREA)
Abstract
本申请公开了图像识别方法及装置、非易失性可读存储介质、计算机设备,涉及图像识别技术领域,可以提升图像识别准确度。其中方法包括:利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。本申请适用于为公安,法庭等部门的图像取证提供更高的可靠性。
Description
本申请要求与2019年6月26日提交中国专利局、申请号为2019105590703、申请名称为“文本数据类别的识别方法及装置、存储介质及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
本申请涉及图像识别技术领域,尤其是涉及到图像识别方法及装置、非易失性可读存储介质及计算机设备。
随着计算机技术的快速发展,计算机软件可以制作或拼接出细节栩栩如生、层次分明的伪造图像,其与数码相机拍摄得到的真实图像极其相似,肉眼很难分辨出来。而伪造图像逐渐出现在社会的政治、军事、新闻等各个领域,给社会带来极大的危害。因此,对图像的真伪取证研究十分重要。
在传统的图像取证技术中,主动取证技术需要事先在图像中加入验证信息,而对于大多数应用场景获取到的图像均不含有先验信息,因此主动取证技术具有较大的局限性;现有的被动盲取证技术,主要依赖图像统计特性或浅层特征信息,如灰度值、灰度变化等,现有的被动盲取证技术十分依赖于浅层特征的选取,浅层特征的质量对图像识别结果的准确度影响较大,此外由于被动盲取证技术需要大量的伪造样本,而伪造样本集的建立一般需要人工完成,耗费大量的时间与精力,人工成本较高。
发明内容
有鉴于此,本申请提供了图像识别方法及装置、非易失性可读存储介质、计算机设备,主要目的在于解决现有被动盲取证技术过于依赖图像统计特性或浅层特征信息,图像识别结果的准确度较低,且构建相应的伪造样本集的人工成本较高的技术问题。
根据本申请的一个方面,提供了一种图像识别方法,该方法包括:
利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;
利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;
利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
根据本申请的另一方面,提供了一种图像识别装置,该装置包括:
生成模块,用于利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;
训练模块,用于利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;
识别模块,用于利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真 实图像。
依据本申请又一个方面,提供了一种非易失性可读存储介质,其上存储有计算机可读指令,所述程序被处理器执行时实现上述图像识别方法。
依据本申请再一个方面,提供了一种计算机设备,包括非易失性可读存储介质、处理器及存储在非易失性可读存储介质上并可在处理器上运行的计算机可读指令,所述处理器执行所述程序时实现上述图像识别方法。
借由上述技术方案,本申请提供的图像识别方法及装置、非易失性可读存储介质、计算机设备,与现有基于主动取证技术、被动盲取证技术识别图像真伪的技术方案相比,本申请利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像,利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型,以便利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。可见,通过训练好的生成网络模型生成符合图像判别样本分布的伪造图像,以便通过少量的伪造图像生成大量的伪造图像,更好地解决建立伪造样本集人工成本较高的技术问题;此外,利用深度卷积对抗生成网络模型中最终的判别网络模型识别目标图像,能够更好地解决被动盲取证技术过于依赖图像浅层特征信息以及网络模型的鲁棒性较差等技术问题,有效保证最终的判别网络模型识别图像真伪的准确性以及最终的判别网络模型的鲁棒性。
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1示出了本申请实施例提供的一种图像识别方法的流程示意图;
图2示出了本申请实施例提供的另一种图像识别方法的流程示意图;
图3示出了本申请实施例提供的一种图像识别装置的结构示意图。
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
针对现有基于主动取证技术、被动盲取证技术识别图像真伪的过程中,主动取证技术存在获取到的图像不含有先验信息的局限性,以及被动盲取证技术,过于依赖图像统计特性或浅层特征信息,对图像识别结果的准确度影响较大,且构建相应的伪造样本集的人工成本较高的技术问题。本实施例提供了一种图像 识别方法,能够有效避免现有被动盲取证技术识别图像的过程中造成图像识别结果的准确度较低,且构建相应的伪造样本集的人工成本较高的技术问题,从而有效提升图像识别真伪的准确度,如图1所示,该方法包括:
101、利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像。
深度卷积对抗生成网络(DCGAN:Deep Convolutional Generative Adversarial Networks)包括生成网络模型和判别网络模型,同时训练生成网络模型和判别网络模型,一方面生成网络模型通过训练使其生成的伪造图像与真实图像之间的差距尽可能小,从而欺骗判别网络模型;另一方面,判别网络模型通过训练使其尽可能地精确判别输入的目标图像的真伪。
在本实施例中,深度卷积对抗生成网络DCGAN中生成网络模型为反向的卷积神经网络模型,共5层,具体为:
1)第一层为输入层,为服从正态分布,输入层节点数量与输入的数据维度保持一致。例如,输入数据为100维数据,输入层节点数量也为100个。
2)第二层为反卷积层,其输入数据为第一层的输出结果,设定其卷积核大小为4*4,滤波器为64*8个,进行批量正则化后输入到激活函数中,激活函数为ReLU函数。
3)第三层为反卷积层,其输入数据为第二层的输出结果,设定其卷积核大小为4*4,步长为2*2,滤波器为64*4个,进行批量正则化后输入到激活函数中,激活函数为ReLU函数。
4)第四层为反卷积层,其输入数据为第三层的输出结果,设定其卷积核大小为4*4,步长为2*2,滤波器为64个,进行批量正则化后输入到激活函数中,激活函数为ReLU函数。
5)第五层为反卷积层,其输出结果用于构建判别网络模型的图像判别样本集,设定其卷积核大小为4*4,步长为2*2,滤波器为64个,输入到激活函数中,激活函数为Tanh函数。
102、利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型。
在本实施例中,深度卷积对抗生成网络DCGAN中判别网络模型为卷积神经网络模型,共5层,具体为:
1)第一层为输入层,设定其输入的数据向量的矩阵规格为64*64*3,卷积核大小为4*4,激活函数为LeakyReLU。其中,激活函数LeakyReLU的计算公式具体为:
其中,x
i为输入的数据向量,y
i为经由激活函数计算后输出得到的处理后的数据向量,a
i是(1,+∞)区间内的固定参数。
2)第二层为卷积层,其输入数据为第一层的输出结果,设定其卷积核大小为4*4,滤波器为64*2个,进行批量标准化后输入到激活函数中,激活函数为LeakyReLU。
3)第三层为卷积层,其输入数据为第二层的输出结果,设定其卷积核大小为4*4,步长为2*2,滤波器为64*4个,进行批量标准化后输入到激活函数中,激活函数为LeakyReLU。
4)第四层为卷积层,其输入数据为第三层的输出结果,设定其卷积核大小为4*4,步长为2*2,滤波器为64*8个,进行批量标准化后输入到激活函数中,激活函数为LeakyReLU。
5)第五层为卷积层,设定其卷积核大小为4*4,滤波器为1个,进行平滑操作后得到输出结果。
103、利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
在本实施例中,将目标图像输入最终的判别网络模型,若输出结果无限接近于0,则判别该目标图像为伪造图像;若输出结果无限接近于1,则判别该目标图像为真实图像。在实际应用的场景中,设定伪造判别值为a,若输出结果在(0,a]范围内,则判别该目标图像为伪造图像;若输出结果在[b,1)范围内,则判别该目标图像为真实图像,此处不对伪造判别值和真实判别值的进行具体限定。
对于本实施例可以按照上述方案,利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像,利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型,以便利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像,与现有的基于主动取证技术、被动盲取证技术识别图像真伪的技术方案相比,本实施例通过前期的学习训练使得判别网络模型具有较好的判别能力,在生成网络模型保持不变的情况下,仍然可以单独对判别网络模型进行训练,以便判别网络模型自适应地从图像判别样本集中学习其内部统计规律,从而提高最终的判别网络模型的泛化能力。
进一步的,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种图像识别方法,如图2所示,该方法包括:
201、利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型。
在本实施例中,对初始判别网络模型进行训练,得到第一判别网络模型,具体包括:将噪声变量和真实图像作为初始判别网络模型的输入数据,并将得到的输出结果作为逻辑回归输出函数的输入数据;进一步地,利用第一损失函数得到真实图像的损失值d_loss_real,并利用梯度上升算法训练初始网络参数θ
d,以使输出结果无限接近于1,从而得到第一判别网络模型。
其中,第一损失函数为:
其中,x
i和z
i分别为真实图像和噪声变量,m为第一判别样本数量,D(x
i)为初始判别网络模型,D(G(z
i))为初始生成网络模型。
利用梯度上升算法训练初始网络参数θ
d的计算公式为:
当输出结果无限接近于1时,将优化后的初始网络参数作为第一网络参数。
202、利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型。
在本实施例中,对初始化判别网络模型进行训练,得到第一判别网络模型,具体包括:将噪声变量和伪造图像作为第一判别网络模型的输入数据,并将输出结果作为逻辑回归输出函数的输入数据;进一步地,利用第二损失函数得到伪造图像的损失值d_loss_fake,并利用梯度下降算法训练第一网络参数θ
d,以使输出结果无限接近于0,从而确定第二判别网络模型的第二网络参数θ
d,以及第二判别网络模型。
其中,第二损失函数为:
其中,y
i为伪造图像,m为第二判别样本数量,D(x
i)为第一判别网络模型,D(G(z
i))为初始生成网络模型。
利用梯度下降算法训练第一网络参数θ
d的计算公式为:
在实际应用的场景中,得到的第二判别网络模型可以作为训练好的判别网络模型,以便利用训练好的生成网络模型生成的伪造图像和预设的真实图像构成的图像判别样本集对该训练好的判别网络模型进行进一步地训练,从而得到最终的判别网络模型,以实现对伪造图像和真实图像的识别。
203、利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型。
204、利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
在本实施例中,第三判别样本集与第一判别样本集可以相同,也可以根据实际应用的需要进行相应调整;相应地,第四判别样本集与第二判别样本集可以相同,也可以根据实际应用的需要进行相应调整,以及,第一判别样本数量、第二判别样本数量、第三判别样本数量、第四判别样本数量也可以根据实际应用的需要进行相应调整,此处不对第三判别样本集与第一判别样本集,以及第四判别样本集与第二判别样本集,以及第一判别样本数量、第二判别样本数量、第三判别样本数量、第四判别样本数量进行具体限定。
205、利用由噪声变量构成的第一生成样本集对深度卷积对抗生成网络模型中的初始生成网络模型进行训练,得到训练好的生成网络模型。
在本实施例中,对初始生成网络模型进行训练,得到训练好的成网络模型,具体包括:将用于训练生成网络模型的噪声变量作为初始生成网络模型的输入数据,例如,噪声变量为100维数据,并将得到的输出结果作为逻辑回归输出函数的输入数据;进一步地,利用生成网络模型的损失函数得到伪造图像损失值d_loss,并利用梯度下降算法,通过最小化初始生成网络模型的损失值g_loss,训练得到训练好的生成网络模型的网络参数θ
g,以便输出的伪造图像输入到训练好的判别网络模型,得到的输出结果无限接近于1,从而得到训练好的生成网络模型,用于降低训练好的判别网络模型的判别能力。
其中,生成网络模型的损失函数为:
利用梯度下降算法训练网络参数θ
g的公式为:
206、利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像。
在实际应用的场景中,为了使判别网络模型的判别能力达到更好的效果,可以对训练好的生成网络模型进行进一步地优化。例如,利用篡改数据对训练好的生成网络模型进行进一步地优化训练,得到优化好的生成网络模型,从而进一步根据篡改数据生成伪造图像,构建图像判别样本集,以实现对深度卷积对抗生成网络模型中训练好的判别网络模型的进一步优化。
207、利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型。
在本实施例中,利用训练好的生成网络模型或者优化好的生成网络模型生成的伪造图像,以及获取到的真实图像,构建图像判别样本集。利用所构建的图像判别样本集对训练好的判别网络模型进行训练,通过最小化训练好的判别网络模型的损失值d_loss,得到最终的判别网络模型的网络参数θ
d,从而得到最终的判别网络模型。
208、对获取到的待识别图像中的目标特征进行识别并截取,得到对应所述目标特征的目标图像。
209、获取所述目标图像的图像深层特征。
在本实施例中,对获取到的待识别图像进行预处理,具体为,对待识别图像中的目标特征进行识别,对识别到的目标特征进行截取,并对截取到的图像按照一定比例进行尺寸调整,得到用于表征目标特征的目标图像。其中,根据实际应用场景的需要,目标图像的图像深层特征可以为轮廓、纹理、明暗、色彩及其组合,以及所对应的高层语义及其组合。
210、根据获取到的深层图像特征对所述目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
为了说明步骤210的具体实施方式,作为一种优选实施例,步骤210具体可以包括:若所述篡改数据为复制粘贴类型图像数据、模糊润饰类型图像数据、或者计算机生成类型图像数据,相应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
在本实施例中,若用于训练判别网络模型的噪声变量不设定数据类型,仅对训练好的生成网络模型或者优化好的生成网络模型输入的篡改数据设定数据类型为复制粘贴类型、或者模糊润饰类型、或者计算机 生成类型,则最终的判别网络模型用于确定目标图像为伪造图像或者真实图像,以及用于确定目标图像为伪造图像的图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
根据实际应用场景的需要,也可以将用于训练判别网络模型的噪声变量的数据类型设定为复制粘贴类型、或者模糊润饰类型、或者计算机生成类型,从而使得到的最终的判别网络模型更加稳定、快速地对目标图像进行真伪判别,为公安,法庭等部门的图像取证提供更高的可靠性。
此外,由于复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像存在共有的深层图像特征,因此,用于训练判别网络模型的噪声变量类型,以及训练好的生成网络模型或者优化好的生成网络模型输入的篡改数据也可以不设定数据类型,最终的判别网络模型也能够用于确定目标图像为伪造图像或者真实图像,以及用于确定目标图像为伪造图像的图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。此处不进行具体限定。
通过应用本实施例的技术方案,利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像,利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型,以便利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。与现有基于主动取证技术、被动盲取证技术识别图像真伪的技术方案相比,本实施例通过少量的伪造图像生成大量的伪造图像,更好地解决建立伪造样本集人工成本较高的技术问题,以及利用深度卷积对抗生成网络模型中最终的判别网络模型识别目标图像,能够有效保证最终的判别网络模型识别图像真伪的准确性以及最终的判别网络模型的鲁棒性。
进一步的,作为图1方法的具体实现,本申请实施例提供了一种图像识别装置,如图3所示,该装置包括:生成模块35、训练模块36、识别模块37。
生成模块35,可以用于利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;该生成模块35为本装置识别待识别图像是伪造图像或者真实图像的基础模块。
训练模块36,可以用于利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;该训练模块36为本装置识别待识别图像是伪造图像或者真实图像的主要功能模块,也是本装置的核心功能模块。
识别模块37,可以用于利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像;该识别模块37为本装置识别待识别图像是伪造图像或者真实图像的主要功能模块,也是本装置的核心功能模块。
在具体的应用场景中,还包括第一判别训练模块31或者第二判别训练模块32,第一判别训练模块31 可以用于利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;以及,利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到训练好的判别网络模型。
第二判别训练模块32,可以用于利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;以及,利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型;以及,利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型;以及,利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
在具体的应用场景中,还包括第一生成训练模块33,可以用于利用由噪声变量构成的第一生成样本集对深度卷积对抗生成网络模型中的初始生成网络模型进行训练,得到训练好的生成网络模型。
在具体的应用场景中,还包括预处理模块34,可以用于对获取到的待识别图像中的目标特征进行识别并截取,得到对应所述目标特征的目标图像。
在具体的应用场景中,若所述篡改数据为复制粘贴类型图像数据、模糊润饰类型图像数据、或者计算机生成类型图像数据,对应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
在具体的应用场景中,识别模块37,具体可以用于获取所述目标图像的图像深层特征;根据获取到的深层图像特征对所述目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
需要说明的是,本申请实施例提供的一种图像识别装置所涉及各功能单元的其他相应描述,可以参考图1和图2中的对应描述,在此不再赘述。
基于上述如图1和图2所示方法,相应的,本申请实施例还提供了一种非易失性可读存储介质,其上存储有计算机可读指令,该程序被处理器执行时实现上述如图1和图2所示的图像识别方法。
基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性非易失性可读存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。
基于上述如图1、图2所示的方法,以及图3所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种计算机设备,具体可以为个人计算机、服务器、网络设备等,该实体设备包括非易失性 可读存储介质和处理器;非易失性可读存储介质,用于存储计算机可读指令;处理器,用于执行计算机可读指令以实现上述如图1和图2所示的图像识别方法。
可选的,该计算机设备还可以包括用户接口、网络接口、摄像头、射频(Radio Frequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如蓝牙接口、WI-FI接口)等。
本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该实体设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。
非易失性可读存储介质中还可以包括操作系统、网络通信模块。操作系统是管理计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现非易失性可读存储介质内部各组件之间的通信,以及与该实体设备中其它硬件和软件之间通信。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。通过应用本申请的技术方案,与现有基于主动取证技术、被动盲取证技术识别图像真伪的技术方案相比,本实施例能够通过少量的伪造图像生成大量的伪造图像;以及,利用深度卷积对抗生成网络模型中最终的判别网络模型识别目标图像,能够有效保证最终的判别网络模型识别图像真伪的准确性以及最终的判别网络模型的鲁棒性。
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。
Claims (20)
- 一种图像识别方法,其特征在于,包括:利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 根据权利要求1所述的方法,其特征在于,所述利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像之前,所述方法具体还包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求1所述的方法,其特征在于,所述利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像之前,所述方法具体还包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型;利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型;利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求1所述的方法,其特征在于,所述利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像之前,所述方法具体还包括:利用由噪声变量构成的第一生成样本集对深度卷积对抗生成网络模型中的初始生成网络模型进行训练,得到训练好的生成网络模型。
- 根据权利要求1所述的方法,其特征在于,所述利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像之前,具体还包括:对获取到的待识别图像中的目标特征进行识别并截取,得到对应所述目标特征的目标图像。
- 根据权利要求1所述的方法,其特征在于,若所述篡改数据为复制粘贴类型图像数据、模糊润 饰类型图像数据、或者计算机生成类型图像数据,对应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
- 根据权利要求1-6任一所述的方法,其特征在于,所述利用最终的判别网络模型,对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像,具体包括:获取所述目标图像的图像深层特征;根据获取到的深层图像特征对所述目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 一种图像识别装置,其特征在于,包括:生成模块,用于利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;训练模块,用于利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;识别模块,用于利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 根据权利要求8所述的装置,其特征在于,还包括第一判别训练模块,具体包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求8所述的装置,其特征在于,还包括第二判别训练模块,具体包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型;利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型;利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求8所述的装置,其特征在于,还包括第一生成训练模块,具体包括:利用由噪声变量构成的第一生成样本集对深度卷积对抗生成网络模型中的初始生成网络模型进行训练,得到训练好的生成网络模型。
- 根据权利要求8所述的装置,其特征在于,还包括预处理模块,具体包括:对获取到的待识别图像中的目标特征进行识别并截取,得到对应所述目标特征的目标图像。
- 根据权利要求8所述的装置,其特征在于,若所述篡改数据为复制粘贴类型图像数据、模糊润饰类型图像数据、或者计算机生成类型图像数据,对应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
- 根据权利要求8-13任一所述的装置,其特征在于,所述识别模块,具体包括:获取所述目标图像的图像深层特征;根据获取到的深层图像特征对所述目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 一种非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述程序被处理器执行时实现图像识别方法,包括:利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型中训练好的判别网络模型进行训练,得到最终的判别网络模型;利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 根据权利要求15所述的非易失性可读存储介质,其特征在于,所述利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像之前,具体还包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型;利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型;利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求15所述的非易失性可读存储介质,其特征在于,若所述篡改数据为复制粘贴类型图像数据、模糊润饰类型图像数据、或者计算机生成类型图像数据,对应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
- 一种计算机设备,包括非易失性可读存储介质、处理器及存储在非易失性可读存储介质上并可在处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述程序时实现图像识别方法,包括:利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像;利用由所生成的伪造图像和预设的真实图像构成的图像判别样本集对深度卷积对抗生成网络模型 中训练好的判别网络模型进行训练,得到最终的判别网络模型;利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像或者真实图像。
- 根据权利要求18所述的计算机设备,其特征在于,所述利用深度卷积对抗生成网络模型中训练好的生成网络模型,根据篡改数据生成伪造图像之前,具体还包括:利用由噪声变量和真实图像构成的第一判别样本集对深度卷积对抗生成网络模型中的初始判别网络模型进行训练,得到第一判别网络模型;利用由噪声变量和伪造图像构成的第二判别样本集对所述第一判别网络模型进行训练,得到第二判别网络模型;利用由噪声变量和真实图像构成的第三判别样本集对所述第二判别网络模型进行训练,得到第三判别网络模型;利用由噪声变量和伪造图像构成的第四判别样本集对所述第三判别网络模型进行训练,得到训练好的判别网络模型。
- 根据权利要求18所述的计算机设备,其特征在于,若所述篡改数据为复制粘贴类型图像数据、模糊润饰类型图像数据、或者计算机生成类型图像数据,对应地,利用最终的判别网络模型对目标图像进行识别,确定所述目标图像是伪造图像,则对应的伪造图像类型分别为复制粘贴类型图像、模糊润饰类型图像、或者计算机生成类型图像。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910559070.3 | 2019-06-26 | ||
| CN201910559070.3A CN110458185A (zh) | 2019-06-26 | 2019-06-26 | 图像识别方法及装置、存储介质、计算机设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020258667A1 true WO2020258667A1 (zh) | 2020-12-30 |
Family
ID=68481088
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/118187 Ceased WO2020258667A1 (zh) | 2019-06-26 | 2019-11-13 | 图像识别方法及装置、非易失性可读存储介质、计算机设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110458185A (zh) |
| WO (1) | WO2020258667A1 (zh) |
Cited By (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112686331A (zh) * | 2021-01-11 | 2021-04-20 | 中国科学技术大学 | 伪造图像识别模型训练方法及伪造图像识别方法 |
| CN113052203A (zh) * | 2021-02-09 | 2021-06-29 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | 一种面向多种类数据的异常检测方法及装置 |
| CN113379600A (zh) * | 2021-05-26 | 2021-09-10 | 北京邮电大学 | 基于深度学习的短视频超分辨率转换方法、装置及介质 |
| CN113822160A (zh) * | 2021-08-20 | 2021-12-21 | 西安交通大学 | 深度伪造检测模型的评测方法、系统及设备 |
| CN114140339A (zh) * | 2021-10-21 | 2022-03-04 | 深圳大学 | 一种基于对抗网络的图像亮度提升方法、终端及存储介质 |
| CN114298137A (zh) * | 2021-11-12 | 2022-04-08 | 广州辰创科技发展有限公司 | 基于对抗生成网络的微小目标检测系统 |
| CN114841236A (zh) * | 2022-03-28 | 2022-08-02 | 中国科学院宁波材料技术与工程研究所 | 一种基于深度学习的柔性压力传感阵列图的识别方法 |
| CN115270614A (zh) * | 2022-07-18 | 2022-11-01 | 郑州轻工业大学 | 一种泥水循环系统多物理场数字孪生体可视化生成方法 |
| CN115308799A (zh) * | 2022-09-05 | 2022-11-08 | 中国地质科学院地质力学研究所 | 一种地震成像游离气构造识别方法及系统 |
| CN115410118A (zh) * | 2022-08-11 | 2022-11-29 | 中国人民解放军战略支援部队信息工程大学 | 对抗条件下的深度伪造视频检测方法及系统 |
| CN115482315A (zh) * | 2022-08-23 | 2022-12-16 | 西安电子科技大学 | 基于多源遥感干扰目标智能伪造的图像识别系统防御方法 |
| CN115546791A (zh) * | 2022-10-18 | 2022-12-30 | 读书郎教育科技有限公司 | 一种基于目标检测的框题识别方法、存储介质及设备 |
| CN116824211A (zh) * | 2023-05-08 | 2023-09-29 | 中国银联股份有限公司 | 一种图像处理方法、装置、设备及存储介质 |
| CN117593311A (zh) * | 2024-01-19 | 2024-02-23 | 浙江大学 | 基于对抗生成网络的深度合成图像检测增强方法及装置 |
| CN117676555A (zh) * | 2023-11-30 | 2024-03-08 | 中国人民解放军国防科技大学 | 一种多智能体自主协同隐蔽通信方法及装置 |
| CN118865987A (zh) * | 2024-07-01 | 2024-10-29 | 西华大学 | 音频复制移动深度伪造检测方法 |
| CN118917255A (zh) * | 2024-10-10 | 2024-11-08 | 浙江海洋大学 | 一种基于深度卷积-对抗神经网络的连通性裂隙网络结构智能生成算法 |
| CN119274024A (zh) * | 2024-12-10 | 2025-01-07 | 国网数字科技控股有限公司 | 图像真伪检测模型训练方法和图像真伪检测方法 |
| CN119888312A (zh) * | 2024-12-18 | 2025-04-25 | 江苏驭道数据科技有限公司 | 一种针对危险驾驶行为检测识别率的对抗样本检测方法 |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111160093B (zh) * | 2019-11-25 | 2026-01-23 | 京东科技控股股份有限公司 | 识别证件中证件照伪装的方法、装置、设备及存储介质 |
| CN111581671B (zh) * | 2020-05-11 | 2021-05-25 | 笵成科技南京有限公司 | 一种深度神经网络与区块链相结合的数字护照保护方法 |
| CN112132133B (zh) * | 2020-06-16 | 2023-11-17 | 中国科学院计算技术研究所数字经济产业研究院 | 标识图像数据增强方法及真伪智能鉴定方法 |
| CN111753919A (zh) * | 2020-06-30 | 2020-10-09 | 江南大学 | 一种基于对抗网络的图像设计作品抄袭检测方法 |
| CN112001785A (zh) * | 2020-07-21 | 2020-11-27 | 小花网络科技(深圳)有限公司 | 一种基于图像识别的网贷欺诈识别方法及系统 |
| CN112149608B (zh) | 2020-10-09 | 2024-10-18 | 腾讯科技(深圳)有限公司 | 图像识别方法、装置和存储介质 |
| CN112116592B (zh) * | 2020-11-19 | 2021-04-02 | 北京瑞莱智慧科技有限公司 | 图像检测方法、图像检测模型的训练方法、装置和介质 |
| CN112818767B (zh) * | 2021-01-18 | 2023-07-25 | 深圳市商汤科技有限公司 | 数据集生成、伪造检测方法、装置、电子设备及存储介质 |
| CN112766189B (zh) * | 2021-01-25 | 2023-08-08 | 北京有竹居网络技术有限公司 | 深度伪造检测方法、装置、存储介质及电子设备 |
| CN112801281A (zh) * | 2021-03-22 | 2021-05-14 | 东南大学 | 基于量子化生成模型和神经网络的对抗生成网络构建方法 |
| CN113542221B (zh) * | 2021-06-15 | 2023-11-03 | 四川英得赛克科技有限公司 | 智能变电站的传感器数据被篡改的判断方法、系统、电子设备及存储介质 |
| CN113392835A (zh) * | 2021-06-17 | 2021-09-14 | 中国工商银行股份有限公司 | 票据识别模型的训练方法、票据识别方法及装置 |
| CN113887560A (zh) * | 2021-08-31 | 2022-01-04 | 际络科技(上海)有限公司 | 图像数据处理方法、装置、存储介质及计算机程序产品 |
| CN116616827B (zh) * | 2023-05-31 | 2026-04-03 | 武汉大学人民医院(湖北省人民医院) | 具有磁控功能的空腔脏器细胞采集装置及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180107858A1 (en) * | 2014-08-26 | 2018-04-19 | Gingy Technology Inc. | Fingerprint identification method and fingerprint identification device |
| CN108197700A (zh) * | 2018-01-12 | 2018-06-22 | 广州视声智能科技有限公司 | 一种生成式对抗网络建模方法及装置 |
| CN109033940A (zh) * | 2018-06-04 | 2018-12-18 | 上海依图网络科技有限公司 | 一种图像识别方法、装置、计算设备及存储介质 |
| CN109543740A (zh) * | 2018-11-14 | 2019-03-29 | 哈尔滨工程大学 | 一种基于生成对抗网络的目标检测方法 |
| CN109784384A (zh) * | 2018-12-28 | 2019-05-21 | 佛山科学技术学院 | 一种自动辨别商标真伪的方法及装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107016406A (zh) * | 2017-02-24 | 2017-08-04 | 中国科学院合肥物质科学研究院 | 基于生成式对抗网络的病虫害图像生成方法 |
| CN107491771A (zh) * | 2017-09-21 | 2017-12-19 | 百度在线网络技术(北京)有限公司 | 人脸检测方法和装置 |
| CN108921220A (zh) * | 2018-06-29 | 2018-11-30 | 国信优易数据有限公司 | 图像复原模型训练方法、装置及图像复原方法和装置 |
-
2019
- 2019-06-26 CN CN201910559070.3A patent/CN110458185A/zh active Pending
- 2019-11-13 WO PCT/CN2019/118187 patent/WO2020258667A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180107858A1 (en) * | 2014-08-26 | 2018-04-19 | Gingy Technology Inc. | Fingerprint identification method and fingerprint identification device |
| CN108197700A (zh) * | 2018-01-12 | 2018-06-22 | 广州视声智能科技有限公司 | 一种生成式对抗网络建模方法及装置 |
| CN109033940A (zh) * | 2018-06-04 | 2018-12-18 | 上海依图网络科技有限公司 | 一种图像识别方法、装置、计算设备及存储介质 |
| CN109543740A (zh) * | 2018-11-14 | 2019-03-29 | 哈尔滨工程大学 | 一种基于生成对抗网络的目标检测方法 |
| CN109784384A (zh) * | 2018-12-28 | 2019-05-21 | 佛山科学技术学院 | 一种自动辨别商标真伪的方法及装置 |
Cited By (24)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112686331B (zh) * | 2021-01-11 | 2022-09-09 | 中国科学技术大学 | 伪造图像识别模型训练方法及伪造图像识别方法 |
| CN112686331A (zh) * | 2021-01-11 | 2021-04-20 | 中国科学技术大学 | 伪造图像识别模型训练方法及伪造图像识别方法 |
| CN113052203A (zh) * | 2021-02-09 | 2021-06-29 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | 一种面向多种类数据的异常检测方法及装置 |
| CN113379600A (zh) * | 2021-05-26 | 2021-09-10 | 北京邮电大学 | 基于深度学习的短视频超分辨率转换方法、装置及介质 |
| CN113822160B (zh) * | 2021-08-20 | 2023-09-19 | 西安交通大学 | 深度伪造检测模型的评测方法、系统及设备 |
| CN113822160A (zh) * | 2021-08-20 | 2021-12-21 | 西安交通大学 | 深度伪造检测模型的评测方法、系统及设备 |
| CN114140339A (zh) * | 2021-10-21 | 2022-03-04 | 深圳大学 | 一种基于对抗网络的图像亮度提升方法、终端及存储介质 |
| CN114140339B (zh) * | 2021-10-21 | 2025-07-29 | 深圳大学 | 一种基于对抗网络的图像亮度提升方法、终端及存储介质 |
| CN114298137A (zh) * | 2021-11-12 | 2022-04-08 | 广州辰创科技发展有限公司 | 基于对抗生成网络的微小目标检测系统 |
| CN114841236A (zh) * | 2022-03-28 | 2022-08-02 | 中国科学院宁波材料技术与工程研究所 | 一种基于深度学习的柔性压力传感阵列图的识别方法 |
| CN114841236B (zh) * | 2022-03-28 | 2024-04-23 | 中国科学院宁波材料技术与工程研究所 | 一种基于深度学习的柔性压力传感阵列图的识别方法 |
| CN115270614B (zh) * | 2022-07-18 | 2024-05-28 | 郑州轻工业大学 | 一种泥水循环系统多物理场数字孪生体可视化生成方法 |
| CN115270614A (zh) * | 2022-07-18 | 2022-11-01 | 郑州轻工业大学 | 一种泥水循环系统多物理场数字孪生体可视化生成方法 |
| CN115410118A (zh) * | 2022-08-11 | 2022-11-29 | 中国人民解放军战略支援部队信息工程大学 | 对抗条件下的深度伪造视频检测方法及系统 |
| CN115482315A (zh) * | 2022-08-23 | 2022-12-16 | 西安电子科技大学 | 基于多源遥感干扰目标智能伪造的图像识别系统防御方法 |
| CN115308799A (zh) * | 2022-09-05 | 2022-11-08 | 中国地质科学院地质力学研究所 | 一种地震成像游离气构造识别方法及系统 |
| CN115546791A (zh) * | 2022-10-18 | 2022-12-30 | 读书郎教育科技有限公司 | 一种基于目标检测的框题识别方法、存储介质及设备 |
| CN116824211A (zh) * | 2023-05-08 | 2023-09-29 | 中国银联股份有限公司 | 一种图像处理方法、装置、设备及存储介质 |
| CN117676555A (zh) * | 2023-11-30 | 2024-03-08 | 中国人民解放军国防科技大学 | 一种多智能体自主协同隐蔽通信方法及装置 |
| CN117593311A (zh) * | 2024-01-19 | 2024-02-23 | 浙江大学 | 基于对抗生成网络的深度合成图像检测增强方法及装置 |
| CN118865987A (zh) * | 2024-07-01 | 2024-10-29 | 西华大学 | 音频复制移动深度伪造检测方法 |
| CN118917255A (zh) * | 2024-10-10 | 2024-11-08 | 浙江海洋大学 | 一种基于深度卷积-对抗神经网络的连通性裂隙网络结构智能生成算法 |
| CN119274024A (zh) * | 2024-12-10 | 2025-01-07 | 国网数字科技控股有限公司 | 图像真伪检测模型训练方法和图像真伪检测方法 |
| CN119888312A (zh) * | 2024-12-18 | 2025-04-25 | 江苏驭道数据科技有限公司 | 一种针对危险驾驶行为检测识别率的对抗样本检测方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110458185A (zh) | 2019-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020258667A1 (zh) | 图像识别方法及装置、非易失性可读存储介质、计算机设备 | |
| US12387527B2 (en) | Detecting forged facial images using frequency domain information and local correlation | |
| US11354797B2 (en) | Method, device, and system for testing an image | |
| US11830230B2 (en) | Living body detection method based on facial recognition, and electronic device and storage medium | |
| Ferrara et al. | Face morphing detection in the presence of printing/scanning and heterogeneous image sources | |
| Fourati et al. | Anti-spoofing in face recognition-based biometric authentication using image quality assessment | |
| CN112183449B (zh) | 一种驾驶员身份验证方法、装置、电子设备及存储介质 | |
| WO2020000908A1 (zh) | 一种人脸活体检测方法及装置 | |
| DE112019000334T5 (de) | Validieren der identität eines fernen benutzers durch vergleichen auf der grundlage von schwellenwerten | |
| CN109948566B (zh) | 一种基于权重融合与特征选择的双流人脸反欺诈检测方法 | |
| WO2019134536A1 (zh) | 基于神经网络模型的人脸活体检测 | |
| JP2021531571A (ja) | 証明書画像抽出方法及び端末機器 | |
| CN113723310B (zh) | 基于神经网络的图像识别方法及相关装置 | |
| CN110427972A (zh) | 证件视频特征提取方法、装置、计算机设备和存储介质 | |
| WO2023071180A1 (zh) | 真伪识别方法、装置、电子设备以及存储介质 | |
| CN112818774A (zh) | 一种活体检测方法及装置 | |
| CN118334731B (zh) | 一种抗逆光人脸识别系统及方法 | |
| CN116383791A (zh) | 一种客户身份认证方法、装置、电子设备及介质 | |
| Liu et al. | Learning Discriminative Palmprint Anti‐Spoofing Features via High‐Frequency Spoofing Regions Adaptation | |
| CN111160093B (zh) | 识别证件中证件照伪装的方法、装置、设备及存储介质 | |
| Kaur et al. | Improved facial biometric authentication using MobileNetV2 | |
| CN116824419B (zh) | 一种着装特征识别方法、识别模型的训练方法及装置 | |
| CN115147895A (zh) | 人脸鉴伪方法、装置及计算机程序产品 | |
| CN111985483B (zh) | 一种拍屏文件图片检测方法、装置及存储介质 | |
| CN116824664B (zh) | 一种针对图像演示攻击的人脸活体检测方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19935496 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19935496 Country of ref document: EP Kind code of ref document: A1 |






