Forged video portrait detection method based on inter-frame quantization parameter intensity value
Through a detection method based on the intensity value of inter-frame quantization parameters, the video compression coding algorithm is used to analyze the video frame sequence, which solves the problem of poor cross-database inspection effect in the existing technology, realizes the rapid identification of deep fake portrait videos, and improves the detection efficiency. and accuracy.
Patent Information
- Application Number
- CN202210811764.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-07-08
AI Technical Summary
Existing deepfake portrait detection technology does not perform well in cross-database inspections, cannot achieve rapid on-site inspection, and requires high time costs.
A counterfeit video portrait detection method based on inter-frame quantization parameter intensity values is adopted. Video stream detection tools are used to analyze the video frame sequence, inter-frame quantization parameter intensity values and fluctuation coefficients are calculated, and the algorithm of quantization parameters in video compression coding is used for detection.
It achieves the preliminary identification of deep fake portrait videos in on-site rapid inspection, provides a new idea, and improves the efficiency and accuracy of detection.
Smart Images

Figure CN115035459B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to forged video detection, in particular to a forged video portrait detection method based on inter-frame quantization parameter intensity values. Background Art
[0002] Most of the existing deep fake portrait detection technologies need to combine the detection video with the classifier trained by the fake face database to obtain the detection result. Most of them use a variety of composite model neural networks for training to achieve the effect of binary classification. Since the test set and training set of this method use the same fake face video library, the detection effect under the same library will be ideal, but the cross-library inspection effect is not good, and the generalization effect cannot be achieved. Moreover, it requires a certain amount of time cost and cannot achieve rapid on-site inspection and comparison.
[0003] Ding Xiangling et al. proposed in the section "Digital Video Forgery Forensic Technology" in "A Review of Passive Forensic Technology Research on Digital Video Forgery" that passive forensics can be obtained from the video source, including compression encoders and other directions, starting from the parameters selected for video encoding, such as motion vectors, quantization parameters, etc.
[0004] Bao Yuxuan et al. described a series of algorithmic principles for fake face video synthesis in "A Review of Deep Fake Video Detection Technology", such as: Autoencoder: The source face image and the target image share a set of weights in the image encoding stage, and a decoder with different weights is used to output the video image in the decoding process. Therefore, the generated fake face video will have a certain degree of difference from the real face video taken by a normal mobile phone in some compression coding neighborhoods. In addition, the above article also mentioned that the DeepFake-like deep fake video is also frame by frame in the process of synthesizing the video, and the correlation between frames is not as significant as that of real face video, so it is feasible to extract data between video frames to compare the authenticity of portrait videos. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a forged video portrait detection method based on inter-frame quantization parameter intensity values, which can be used for on-site rapid inspection and play a role in preliminary identification.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] The forged video portrait detection method based on inter-frame quantization parameter intensity value is characterized by comprising the following steps:
[0008] Step 1: Use the video code stream detection tool to analyze the video frame sequence related information of the detection video;
[0009] Step 2: Select a video frame sequence of n frames from the detection video, and use the video code stream reference tool to count the average value of all macroblock quantization parameters in each frame image;
[0010] Step 3: Calculate the inter-frame quantization parameter strength value Qs(n):
[0011]
[0012] Where Qp(n) is the average value of all macroblock quantization parameters in the nth frame of the video frame playback sequence;
[0013] Step 4: Calculate the inter-frame quantization parameter intensity value fluctuation coefficient A:
[0014]
[0015]
[0016] In formula (2), Qsavg represents the average value of the inter-frame quantization parameter strength value of the selected video frame sequence of the detected video, and Qsi represents the inter-frame quantization parameter strength value of the i-th frame;
[0017] Step 5: Compare and calculate the inter-frame quantization parameter intensity value fluctuation coefficient A with the threshold to determine whether it is a deep fake portrait video.
[0018] As a preferred technical solution, in step 2, a video frame sequence of 25 frames is selected for the detection video.
[0019] As a preferred technical solution, in step 5, the threshold is set to 1. If A<1 is satisfied, it can be preliminarily determined that the detected video is a deep fake portrait video.
[0020] Compared with the prior art, the forged video portrait detection method based on the inter-frame quantization parameter intensity value provided by the present invention provides a new idea for detecting Deepfake-type fake face videos. It uses the algorithm of quantization parameters in video compression encoding combined with the deep fake video synthesis principle to detect portrait videos, which can be used for on-site rapid inspection and play a role in preliminary identification.
[0021] The concept, working process and effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, features and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 4 is a flow chart of a method for detecting a forged video portrait based on an inter-frame quantization parameter intensity value in an embodiment. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.
[0024] like Figure 1 As shown, the forged video portrait detection method based on the inter-frame quantization parameter intensity value includes the following steps:
[0025] Step 1: Use the video code stream detection tool to analyze the video frame sequence related information of the detection video.
[0026] Step 2: Select a 25-frame video frame sequence from the detection video, and use the video code stream reference tool to calculate the average value of all macroblock quantization parameters in each frame image.
[0027] Step 3: Calculate the inter-frame quantization parameter strength value Qs(n):
[0028]
[0029] Where Qp(n) is the average value of the quantization parameters of all macroblocks in the nth frame of the video frame playback sequence. The inter-frame quantization parameter strength value Qs(n) of the nth video frame is calculated and plotted into a corresponding line graph to obtain the relationship between the video frame sequence selected by the detection video and the quantization parameter strength value.
[0030] Step 4: Calculate the inter-frame quantization parameter intensity value fluctuation coefficient. Since there are subjective factors such as the degree of fluctuation of the inter-frame quantization parameter intensity value of the video on the selected video sequence, in order to scientifically and objectively solve the problem, the present invention defines the video frame inter-frame quantization parameter intensity value fluctuation coefficient A as follows:
[0031]
[0032]
[0033] In formula (2), Qsavg represents the average value of the inter-frame quantization parameter strength value of the selected video frame sequence of the detected video, and Qsi represents the inter-frame quantization parameter strength value of the i-th frame.
[0034] Step 5: Compare and calculate the inter-frame quantization parameter intensity value fluctuation coefficient A with the threshold to determine whether it is a deep fake portrait video. According to this invention, if you want to detect whether the video to be inspected is a deep fake portrait video, you can calculate whether the fluctuation coefficient A of the inspected video is less than 1. If A<1 is satisfied, it can be preliminarily determined that the detected video is a deep fake portrait video.
[0035] Compared with the prior art, the forged video portrait detection method based on the inter-frame quantization parameter intensity value provided by the present invention provides a new idea for detecting Deepfake-type fake face videos. It uses the algorithm of quantization parameters in video compression encoding combined with the deep fake video synthesis principle to detect portrait videos, which can be used for on-site rapid inspection and play a role in preliminary identification.
[0036] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
Claims
1. A forged video portrait detection method based on inter-frame quantization parameter intensity value, characterized in that: The steps include: Step 1: Use the video code stream detection tool to analyze the video frame sequence related information of the detection video; Step 2: Select a video frame sequence of n frames from the detection video, and use the video code stream reference tool to count the average value of all macroblock quantization parameters in each frame image; Step 3: Calculate the inter-frame quantization parameter strength value Qs(n): Where Qp(n) is the average value of all macroblock quantization parameters in the nth frame of the video frame playback sequence; Step 4: Calculate the inter-frame quantization parameter intensity value fluctuation coefficient A: In formula (2), Qsavg represents the average value of the inter-frame quantization parameter strength value of the selected video frame sequence of the detected video, and Qsi represents the inter-frame quantization parameter strength value of the i-th frame; Step 5: Compare and calculate the inter-frame quantization parameter intensity value fluctuation coefficient A with the threshold to determine whether it is a deep fake portrait video.
2. The forged video portrait detection method based on inter-frame quantization parameter intensity value according to claim 1, characterized in that: In step 2, a video frame sequence of 25 frames is selected from the detection video.
3. The forged video portrait detection method based on inter-frame quantization parameter intensity value according to claim 1, characterized in that: In step 5, the threshold is set to 1. If A<1 is satisfied, it can be preliminarily determined that the detected video is a deep fake portrait video.
