Video file detection method and device and computing equipment

Features are extracted from video files through multiple convolutional neural network models with different convolutional layer numbers, which solves the problem of feature loss in the existing technology and improves the accuracy of video file detection and the multi-modal detection effect.

CN118587625APending Publication Date: 2024-09-03NEUSOFT CORP

Patent Information

Application Number
CN202410615431.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the prior art, in video file detection, the extraction of image features, audio features or text features usually uses a neural network model with a specific number of convolutional layers, resulting in the loss of part of the features, thereby reducing detection accuracy.

Method used

Multiple convolutional neural network models with different convolutional layer numbers are used to extract features from image data, audio data and text data. Through modal separation and feature fusion, image features, audio features and text features are obtained to improve the accuracy of detection results. accuracy.

Benefits of technology

It effectively avoids feature loss, improves the accuracy of video file detection, and improves the detection effect of multi-modal application scenarios by comprehensively detecting image, audio and text modalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587625A
    Figure CN118587625A
Patent Text Reader

Abstract

The invention discloses a video file detection method and apparatus, and a computing device. The method comprises the following steps: performing modal separation on a to-be-detected video file to obtain image data and audio data, and converting the audio data into corresponding text data; extracting image features of the image data, audio features of the audio data and text features of the text data; at least one of the image feature, the audio feature and the text feature is extracted through a plurality of convolutional neural network models with different convolutional layer numbers; respectively obtaining an image detection result, an audio detection result and a text detection result according to the image features, the audio features and the text features; and obtaining a detection result of the to-be-detected video file according to the image detection result, the audio detection result and the text detection result. The image features, the audio features of the audio data and the text data are extracted by adopting the neural network models with different convolution layer numbers, so that the corresponding feature loss can be avoided, and the detection efficiency of the video file is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and computing equipment for detecting video files. Background Art

[0002] With the popularity of smart phones and the increasing maturity of network technologies, such as wireless networks, more and more mobile users choose to access the Internet wirelessly through mobile user terminals. However, the existing wireless voice calls and text messaging communication methods can no longer meet people's needs, and video voice chat services are becoming more and more popular. However, the video files of video voice chats may contain forged information, so it is necessary to detect the video files.

[0003] The video files of video and voice chat include image data, audio data and text data. In the related art, the video files are usually detected for one of the image data, audio data or text data and the detection results are obtained. When extracting features, a neural network model with a specific number of convolutional layers is usually used to extract image features, audio features or text features, resulting in partial loss of image features, audio features or text features, which in turn reduces the detection accuracy of the video files. Summary of the invention

[0004] Based on the above problems, the present application provides a method, apparatus and computing device for detecting video files to improve the detection accuracy of video files.

[0005] The embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a method for detecting a video file, the method comprising:

[0007] Performing modal separation on the video file to be detected to obtain image data and audio data, and converting the audio data into corresponding text data;

[0008] Extracting image features of the image data, audio features of the audio data, and text features of the text data; at least one of the image features, the audio features, and the text features is extracted by using a convolutional neural network model with multiple different numbers of convolutional layers;

[0009] Obtaining an image detection result, an audio detection result, and a text detection result according to the image feature, the audio feature, and the text feature, respectively;

[0010] The detection result of the video file to be detected is obtained according to the image detection result, the audio detection result and the text detection result.

[0011] Optionally, the extracting the image features of the image data, the audio features of the audio data, and the text features of the text data includes:

[0012] Extract features from the image data using a plurality of convolutional neural network models with different numbers of convolutional layers, to obtain first image features corresponding to the image data; fuse the first image features in pairs to obtain second image features related to the image data; fuse the first image features and the second image features to obtain the image features related to the image data; and / or

[0013] Extract features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers, and obtain first audio features of the corresponding audio data; fuse the first audio features in pairs to obtain second audio features of the image data; and fuse the first audio features and the second audio features to obtain the audio features of the audio data; and / or

[0014] The text data is respectively subjected to feature extraction by convolutional neural network models with different numbers of convolutional layers to obtain corresponding first text features of the text data; the first text features are fused in pairs to obtain second text features about the text data; the first text features and the second text features are fused to obtain the text features about the text data.

[0015] Optionally, the number of convolutional layers includes one layer, two layers, and four layers, and the convolutional neural network models with multiple different numbers of convolutional layers respectively extract features from the image data to obtain the corresponding first audio features of the audio data, including:

[0016] When the number of the convolutional layers is one, feature extraction is performed on the image data by matrix decomposition to obtain the corresponding first image feature; when the number of the convolutional layers is multiple, feature extraction is performed on the image data by convolution to obtain the corresponding first image feature;

[0017] The method of extracting features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers to obtain corresponding first audio features of the audio data includes:

[0018] When the number of the convolutional layers is one, feature extraction is performed on the audio data by matrix decomposition to obtain the corresponding first audio feature; when the number of the convolutional layers is multiple, feature extraction is performed on the audio data by convolution to obtain the corresponding first audio feature;

[0019] The convolutional neural network models with multiple different numbers of convolutional layers respectively extract features from the text data to obtain the corresponding first text features of the text data, including:

[0020] When the number of convolutional layers is one, feature extraction is performed on the text data by matrix decomposition to obtain the corresponding first text feature; when the number of convolutional layers is multiple, feature extraction is performed on the text data by convolution to obtain the corresponding first text feature.

[0021] Optionally, the audio features and / or the text features are extracted by a convolutional neural network model with multiple different numbers of convolutional layers, and the image features are extracted by a face detection architecture of RetinaFace.

[0022] Optionally, the image features and / or the audio features are extracted by a convolutional neural network model with multiple different numbers of convolutional layers, and the audio features of the audio data are extracted by a Mel-cephalogram coefficient method.

[0023] Optionally, the image features and / or the audio features are extracted by a convolutional neural network model with multiple different numbers of convolutional layers, and the text features of the text data are extracted by a semantic analysis model.

[0024] Optionally, performing modality separation on the video file to be detected to obtain image data and audio data, and converting the audio data into corresponding text data, includes:

[0025] Screening out the video files to be detected whose forgery probability is greater than or equal to a preset threshold from the original video files by using a pre-trained classification model; wherein the classification model is trained using reference video file samples whose forgery probability is greater than or equal to the preset threshold;

[0026] The video file to be detected is subjected to modal separation to obtain image data and audio data, and the audio data is converted into corresponding text data.

[0027] Optionally, it also includes:

[0028] When the detection result of the video file to be detected indicates that the possibility of forgery of the video file to be detected is greater than or equal to a preset threshold, the video file to be detected is used as the reference video file to participate in the training of the classification model.

[0029] In a second aspect, an embodiment of the present application provides a video file detection device, the device comprising: a modality separation module, a feature extraction module, a first acquisition module and a second acquisition module;

[0030] The modality separation module is used to perform modality separation on the video file to be detected to obtain image data and audio data, and convert the audio data into corresponding text data;

[0031] The feature extraction module is used to extract image features of the image data, audio features of the audio data, and text features of the text data; at least one of the image features, the audio features, and the text features is extracted by a convolutional neural network model with multiple different numbers of convolutional layers;

[0032] The first obtaining module is used to obtain an image detection result, an audio detection result and a text detection result respectively according to the image feature, the audio feature and the text feature;

[0033] The second obtaining module is used to obtain the detection result of the video file to be detected according to the image detection result, the audio detection result and the text detection result.

[0034] Optionally, the feature extraction module is specifically used to extract features from the image data through a plurality of convolutional neural network models with different numbers of convolutional layers, respectively, to obtain first image features of the corresponding image data; each of the first image features is fused in pairs to obtain second image features of the image data; the first image features and the second image features are fused to obtain the image features of the image data; and / or

[0035] Extract features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers, and obtain first audio features of the corresponding audio data; fuse the first audio features in pairs to obtain second audio features of the image data; and fuse the first audio features and the second audio features to obtain the audio features of the audio data; and / or

[0036] The text data is respectively subjected to feature extraction by convolutional neural network models with different numbers of convolutional layers to obtain corresponding first text features of the text data; the first text features are fused in pairs to obtain second text features about the text data; the first text features and the second text features are fused to obtain the text features about the text data.

[0037] Optionally, the feature extraction module is used to:

[0038] When the number of the convolutional layers is one, feature extraction is performed on the image data by matrix decomposition to obtain the corresponding first image feature; when the number of the convolutional layers is multiple, feature extraction is performed on the image data by convolution to obtain the corresponding first image feature;

[0039] When the number of the convolutional layers is one, feature extraction is performed on the audio data by matrix decomposition to obtain the corresponding first audio feature; when the number of the convolutional layers is multiple, feature extraction is performed on the audio data by convolution to obtain the corresponding first audio feature;

[0040] When the number of convolutional layers is one, feature extraction is performed on the text data by matrix decomposition to obtain the corresponding first text feature; when the number of convolutional layers is multiple, feature extraction is performed on the text data by convolution to obtain the corresponding first text feature.

[0041] Optionally, the image features are extracted through a face detection architecture of RetinaFace.

[0042] Optionally, the audio features of the audio data are extracted by a Mel-cephalometric coefficient method.

[0043] Optionally, text features of the text data are extracted through a semantic analysis model.

[0044] Optionally, the modal separation module is specifically used to screen out video files to be detected whose possibility of forgery is greater than or equal to a preset threshold from original video files through a pre-trained classification model; wherein the classification model is trained using reference video file samples whose possibility of forgery is greater than or equal to the preset threshold; modal separation is performed on the video files to be detected to obtain image data and audio data, and the audio data is converted into corresponding text data.

[0045] Optionally, the device further comprises: a marking module;

[0046] The marking module is used to use the video file to be detected as the reference video file to participate in the training of the classification model when the detection result of the video file to be detected indicates that the possibility of forgery of the video file to be detected is greater than or equal to a preset threshold.

[0047] In a third aspect, an embodiment of the present application provides a computing device, including:

[0048] at least one memory for storing a program;

[0049] At least one processor is used to execute the program stored in the memory; wherein, when the program stored in the memory is executed, the processor is used to execute the video file detection method as described in the above embodiment.

[0050] Compared with the prior art, this application has the following beneficial effects:

[0051] First, perform modal separation on the video file to be detected to obtain image data and audio data, and convert the audio data into corresponding text data; secondly, extract image features of the image data, audio features of the audio data, and text features of the text data; at least one of the image features, audio features, and text features is extracted through a convolutional neural network model with multiple different numbers of convolutional layers; then, obtain image detection results, audio detection results, and text detection results respectively based on the image features, audio features, and text features; finally, obtain the detection result of the video file to be detected based on the image detection results, audio detection results, and text detection results. In the embodiment of the present application, extracting image features, audio features, or text features through convolutional neural networks with different numbers of convolutional layers has the following two advantages: first, using a neural network model with a smaller number of convolutional layers to extract image features, audio features, or text features can increase the number of image features, audio features, or text features; second, using a neural network model with a larger number of convolutional layers to extract image features, audio features, or text features can improve the quality of image features, audio features, or text features. Therefore, the method adopted in the embodiments of the present application can effectively avoid the loss of image features, audio features or text features, and improve the detection accuracy of video files.

[0052] In addition, the embodiment of the present application performs comprehensive detection on the three modes of video files, namely image mode, audio mode and text mode, to improve the detection accuracy of video files and is suitable for multi-modal application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0054] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0055] Figure 2 A flowchart of a method for detecting a video file provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of a context module in an SSH model provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of MFCC audio feature extraction provided in an embodiment of the present application;

[0058] Figure 5A schematic diagram of extracting image features provided in an embodiment of the present application;

[0059] Figure 6 A schematic diagram of a training classification model provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of detecting a video file provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of a video file detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] It should be noted that the embodiments described in this application are only part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0063] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order of objects. For example, first data and second data are used to distinguish different data rather than to describe a specific order of data.

[0064] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0065] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0066] At present, video files are usually detected for one of the image data, audio data or text data and the detection results are obtained. When extracting features, a neural network model with a specific number of convolutional layers is usually used to extract image features, audio features or text features. Since the extraction of features (image features, audio features and text features) usually involves a neural network model, but the number of convolutional layers in the neural network model is difficult to grasp, in order to pursue the quality of features (image features, audio features and text features), a neural network model with a large number of convolutional layers is often used to extract features, resulting in over-convolution and loss of a considerable part of the features (image features, audio features and text features), which in turn leads to a decrease in the accuracy of video file detection.

[0067] To this end, the embodiments of the present application propose to use convolutional neural network models with different numbers of layers to extract features (image features, audio features, and text features) of video files. By using neural network models with different numbers of convolutional layers to extract features (image features, audio features, and text features), the loss of features (image features, audio features, and text features) due to over-convolution is avoided, thereby improving the accuracy of video file detection.

[0068] To facilitate understanding of the technical solution of the present application, the application scenarios of the embodiments of the present application are introduced below.

[0069] For example, the image features are extracted by using a convolutional neural model with multiple convolutional layers. Figure 1 A schematic diagram of an application scenario of an embodiment of the present application is shown in the figure.

[0070] like Figure 1 As shown, a plurality of video files are stored in the server, namely, video file 1, video file 2, video file 3... video file n-2, video file n-1 and video file n. In response to the play request initiated by the computing device, the video file 1 to be detected is determined, and the video file 1 is detected respectively through the image mode, audio mode and text mode. When the detection result indicates that the video file 1 does not involve forged information, it is played on the computing device. Among them, the extraction of image features is performed by using multiple convolution layers with different numbers of layers to avoid the loss of image features caused by too many convolution layers, thereby improving the detection accuracy of video files.

[0071] It should be understood that the above solution can be implemented through a management device or a computing device of the server.

[0072] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0073] See also Figure 2 , which is a flow chart of a method for detecting a video file provided in an embodiment of the present application.

[0074] like Figure 2 As shown, the method includes:

[0075] S201: The computing device performs modal separation on the video file to be detected to obtain image data and audio data, and converts the audio data into corresponding text data.

[0076] The computing device can extract image data from the video file through video editing software, and extract audio data from the video file through audio extraction software.

[0077] Exemplarily, the video editing software may be software such as Adobe Premiere Pro and Final Cut Pro, and the audio extraction software may be software such as Audacity, Any Video Converter or VLC Media Player.

[0078] In an embodiment of the present application, the computing device can convert audio data into text data through software such as Dragon NaturallySpeaking, IBM Watson Speech to Text, Sonix, Rev, Speechmatics, etc.

[0079] S202: Extracting image features of image data, audio features of audio data, and text features of text data; at least one of the image features, audio features, and text features is extracted through a convolutional neural network model with multiple different numbers of convolutional layers.

[0080] For ease of understanding, in the embodiments of the present application, the convolutional neural network model with different numbers of convolutional layers is referred to as a stepped CNN model (SCM).

[0081] Next, the embodiment of the present application will explain step S202 through the extraction of image features, the extraction of audio features, and the extraction of text features respectively.

[0082] 1. The embodiment of the present application extracts image features of image data by means of the RetinaFace face recognition framework.

[0083] RetinaFace includes multiple key components such as Residual Network (ResNet), Feature Pyramid Network (FPN) and Single Stage Headless Face Detector (SSH). RetinaFace uses ResNet as the backbone network, performs FPN operation on the three effective feature layers of ResNet, uses 1x1 convolution to adjust the number of channels of the three effective feature layers, and uses Upsample and Add to perform up-sampled feature fusion after adjustment to improve the accuracy and robustness of face detection.

[0084] After FPN, three effective feature layers are obtained. In order to further enhance feature extraction, the context module in SSH is used to enhance the receptive field and improve the accuracy of smaller face detection by introducing context information. Figure 3 A schematic diagram of a context module in an SSH model provided in an embodiment of the present application. Figure 3 In the example, the receptive field is enlarged by using 5*5 and 7*7 convolutions. In order to reduce the number of model parameters, the depthwise separable convolution method is used, using 2 3*3 instead of 5*5 and 3 3*3 instead of 7*7.

[0085] Specifically, the following three steps are used to describe the way the RetinaFace face recognition framework extracts image features from image data:

[0086] (1) Predict whether the prior frame contains a face.

[0087] The prior boxes have different scales and aspect ratios to cover objects of different sizes and shapes. For each prior box, the model needs to predict whether it contains a face, and each predicted prior box is assigned a score to indicate the probability that the prior box contains a face.

[0088] In one possible implementation, prediction is performed using the Softmax function, which converts the raw scores of the output layer into a probability distribution such that the sum of the probabilities of all categories is 1.

[0089] In one possible implementation, a convolution operation is performed to reduce or increase the number of channels of a feature map for prediction.

[0090] Exemplarily, a 1*1 convolution is used to adjust the number of output channels of SSH to num_anchors*2, where num_anchors is the number of prior boxes at each position, and 2 represents two predicted values ​​for each prior box: one is used to indicate whether the prior box contains a face, and the other may be used to indicate the probability of the background or other situations.

[0091] In the object detection task, the prior box is usually pre-set based on the statistical information of the dataset to predict the potential object bounding box at each feature map location. However, these prior boxes usually do not exactly match the true object bounding box, so they need to be adjusted to obtain a more accurate prediction box.

[0092] (2) Adjust the prior frame to obtain the predicted frame.

[0093] In one possible implementation, in order to adjust the prior box, the model usually needs to predict four parameters. Two of the parameters are used to adjust the offset of the center of the prior box (usually relative to the ratio of the width and height of the prior box), and the other two are used to adjust the scaling factor of the width and height of the prior box. These four parameters are usually predicted through a convolutional layer, so that each prior box can get a set of dedicated adjustment parameters.

[0094] Exemplarily, the output feature map of the SSH module has dimensions of H*W*C, where H and W are the height and width of the feature map, and C is the number of channels. Through 1*1 convolution, the number of channels C can be adjusted to num_anchors*4, thus obtaining a new feature map with dimensions of H*W*(num_anchors*4). This feature map can be interpreted as four adjustment parameters for each prior box at each position.

[0095] It should be understood that by applying these adjustment parameters to the prior box, a target bounding box, i.e., a predicted box, which is closer to the actual target bounding box than the prior box can be obtained.

[0096] In face detection tasks, in addition to predicting the bounding box to locate the position of the face, it is usually necessary to predict the coordinates of the facial key points for more detailed face analysis and alignment.

[0097] (3) Face key point regression.

[0098] Facial key points usually refer to some points on the face with specific semantic information, such as the center of the eye, the tip of the nose and the corners of the mouth. These key points are very important for tasks such as face recognition, expression analysis and head posture estimation.

[0099] For each facial key point, two parameters are usually required to adjust the x and y coordinates of the center of the prior box to obtain a more accurate key point position. For example, if there are five facial key points, a total of ten parameters are required.

[0100] In one possible implementation, prediction is performed through a convolutional layer so that each prior box can obtain a set of dedicated key point adjustment parameters.

[0101] Exemplarily, the output feature map of the SSH module has dimensions of H*W*C, where H and W are the height and width of the feature map, and C is the number of channels. Through 1*1 convolution, the number of channels C can be adjusted to num_anchors*10, thus obtaining a new feature map with dimensions of H*W*(num_anchors*10). This feature map can be interpreted as the adjustment parameters of the five key points of each prior box at each position.

[0102] Through the above steps (1)-(3), the face in the image data can be extracted.

[0103] 2. The embodiment of the present application extracts audio features of audio data through the Mel-Frequency Cepstral Coefficients (MFCC) method.

[0104] The present application embodiment will extract the audio features of the audio data through the following two steps:

[0105] (1) Preprocess the audio data.

[0106] Among them, preprocessing includes audio format conversion and audio downsampling processing.

[0107] For audio format conversion, audio data may be encoded in different data formats. The system supports parsing and format conversion of mainstream audio formats such as WAV, MP3, AAC, etc., and converts them uniformly into WAV or PCM standard formats.

[0108] For downsampling, when the sampling rate of audio data is too high, downsampling can be used to reduce the data samples, thereby reducing the computing time. The downsampling can be implemented through special software or tools.

[0109] For example, in Matlab, downsampling processing can be implemented by programming.

[0110] (2) Extract audio features of audio data through MFCC.

[0111] See also Figure 4 , Figure 4 A schematic diagram of extracting audio features using MFCC is provided for an embodiment of the present application.

[0112] like Figure 4 As shown, the steps of extracting audio features of audio data by MFCC include: preprocessing, fast Fourier transform (FFT), Mel filter bank, logarithmic operation, discrete cosine transform (DCT) and dynamic feature extraction.

[0113] The following four steps will be described below:

[0114] The first step is to pre-process the audio data (framing and pre-emphasis).

[0115] According to the characteristics of rapid changes in audio data, the time length of each frame can be 10-30 milliseconds to ensure that there are enough cycles in a frame and the changes are not too drastic, which is suitable for analyzing the Fourier transform of stationary signals. It should be understood that due to the different sampling rates of digital audio, the dimensions of each frame vector obtained by framing are also different.

[0116] Since the sound signal is attenuated by 12dB / octave after being emitted from the human glottis, and by 6dB / octave after being radiated through the lips, there are fewer components in the high-frequency signal after the fast Fourier transform. Therefore, it is necessary to perform pre-emphasis on the audio data, the main purpose of which is to strengthen the high-frequency signals in each frame of the audio data to improve the resolution of its high-frequency signals.

[0117] Pre-emphasis is performed by a first-order high-pass filter using the following formula:

[0118] H(z)=1-α×z -1

[0119] S(n)=S(n)-α×S(n-1)

[0120] In the above formula, α is the pre-emphasis coefficient, and its value range can be 0.9<α<1.0, and is usually 0.97, and n indicates that the current processing is the nth frame. Among them, the first frame n=0 needs special processing.

[0121] In the second step, the preprocessed audio data is subjected to fast Fourier transform to convert it from the time domain to the frequency domain.

[0122] After preprocessing, the signal is still in the time domain, but the amount of audio information that can be directly obtained in the time domain is relatively small. When further extracting audio data features, it is also necessary to convert the time domain signal of each frame into its frequency domain signal.

[0123] Exemplarily, the time domain signal of the audio data is converted into a frequency domain signal by fast Fourier transform.

[0124] The third step is to obtain the Mel spectrum of the audio data through the Mel filter bank and take the logarithm of the Mel spectrum; then, the Mel spectrum after the logarithm operation is subjected to discrete cosine transform (DCT), and the Mel spectrum after DCT processing is converted to the cepstrum domain to obtain the MFCC coefficients.

[0125] The fourth step is to capture the dynamic changing characteristics of audio data.

[0126] The MFCC algorithm only reflects the static features of MFCC, and its dynamic features need to be represented by the difference of static features. By combining the dynamic features obtained with the static features obtained in the previous step, the recognition performance of this audio recognition system can be effectively improved. The calculation formula of the differential parameter is:

[0127]

[0128] Where dt is the tth first-order difference value, C t is the value of the tth cepstral coefficient, Q is the maximum order of the cepstral coefficient, and K is the time difference of the first-order difference, which can generally be 1 or 2.

[0129] It should be understood that the static features, the first-order and dynamic second-order difference values ​​of the dynamic features are combined in a feature splicing or stacking manner to obtain multi-dimensional features about the audio data.

[0130] 3. Extract text features of text data through the semantic analysis model DistilBERT.

[0131] DistilBERT compresses the large number of parameters in the BERT model into a smaller size through the distillation technology so that it can run more efficiently in resource-constrained environments.

[0132] 4. Extract at least one of the image features, audio features and text features based on the neural network model with different numbers of convolutional layers.

[0133] Next, we will use the following three steps to explain the extraction of image features by neural network models with different numbers of convolutional layers. The corresponding schematic diagram can be found in Figure 5 :

[0134] In the first step, feature extraction is performed on the image data through a plurality of convolutional neural network models with different numbers of convolutional layers to obtain the first image feature of the corresponding image data.

[0135] Exemplarily, the number of convolution layers of the neural network model is one, two, and four, respectively. When the number of convolution layers of the neural network model is one, the corresponding first image features are obtained by matrix decomposition and output from channel 1. When the number of convolution layers of the neural network model is two and four, the corresponding first image features are obtained by convolution and output from channels 3 and 5, respectively.

[0136] Specifically, the convolution operation of the neural network is as follows:

[0137] V=Activation(W*X a +b)

[0138] Where W is the filter, * is the convolution operator, and X a is the input value, b is the bias of W, and Activation is the nonlinear activation function.

[0139] Exemplarily, Activation may be an activation function such as ReLU and Sigmoid.

[0140] When multiple neural network models with different numbers of convolutional layers are included at the same time, the loss of data features caused by the neural network model with a large number of convolutional layers when extracting data features can be effectively avoided, thereby improving the accuracy of video file detection.

[0141] In the second step, the first image features are fused in pairs to obtain second image features related to the image data.

[0142] In order to make the model learn the corresponding features more efficiently, speed up the calculation speed and refine the convolution features, a pooling layer is set in the embodiment of the present application. The pooling operation is as follows:

[0143] V ip =Pooling(V i )

[0144] Among them, Pooling represents the pooling function, V i Represents the input value.

[0145] Set the first image feature of the first step output to C i , where i represents the subscript of the channel. The first image features output by channel 1 and channel 3 are fused to obtain the corresponding second image features, which are output from channel 2; the first image features output by channel 1 and channel 5 are fused to obtain the corresponding second image features, which are output from channel 4; the first image features output by channel 2 and channel 5 are fused to obtain the corresponding second image features, which are output from channel 6.

[0146] The first image features output by each channel are fused using the following formula:

[0147] C ij =F(C i ,C j |θ)

[0148] Among them, F represents the fusion function, C i and C j Represents the first image features of different channel outputs, C ij represents the second image feature, and θ is the fusion parameter.

[0149] The third step is to fuse the first image feature and the second image feature to obtain image features about the image data.

[0150] The first image feature and the second image feature are fused using the following formula:

[0151] V=γ(C i ,C j ,C ij |θ)

[0152] Among them, γ represents the fusion function, θ is the fusion parameter, C i and C j Represents the first image features of different channel outputs, C ij Represents the second image feature.

[0153] It should be understood that in the embodiments of the present application, the steps of obtaining image features of image data by using convolutional neural networks with different numbers of convolutional layers are taken as an example, and the steps of obtaining audio features of audio data by using convolutional neural networks with different numbers of convolutional layers, and obtaining text features of text data by using convolutional neural networks with different numbers of convolutional layers are no longer repeated.

[0154] In the embodiment of the present application, by using a convolutional neural network model with different numbers of convolutional layers for feature extraction, the loss of features caused by too many convolutional layers can be effectively avoided, thereby improving the accuracy of video file detection. In addition, the embodiment of the present application analyzes the features of the output of each convolutional layer, so that each channel runs in parallel without increasing the complexity of the model.

[0155] S203: Obtaining image detection results, audio detection results, and text detection results according to the image features, audio features, and text features, respectively.

[0156] It should be noted that in the embodiment of the present application, the image detection result is a binary classification value, that is, the image detection result indicates that the image data includes a forged face, and the image detection result indicates that the image data does not include a forged face; the audio detection result is a binary classification value, that is, the audio detection result indicates that the audio data includes forged sounds, and the audio detection result indicates that the audio data does not include forged sounds; the text detection result is a probability value, that is, the probability that the text data includes forged text.

[0157] S204: Obtaining a detection result of the video file to be detected according to the image detection result, the audio detection result and the text detection result.

[0158] Exemplarily, the detection result of the video file to be detected is obtained according to the following formula:

[0159]

[0160] Among them, y is the detection score. The lower the score, the higher the possibility of containing fake information. α represents the score of fake face recognition. If there is a fake face in the call, α is 0; β represents the score of fake voice recognition. If there is a fake voice in the call, β is 0; γ is the text analysis score. num(mod) is the number of models started. When the user initiates a video call, the three models of fake face recognition, fake voice recognition, and semantic analysis are started at the same time. At this time, num(mod) is 3. If it is a voice call, the two models of fake voice recognition and voice analysis are started. At this time, num(mod) is 2.

[0161] In the embodiment of the present application, the use of a neural network model with a small number of convolutional layers to extract image features, audio features or text features can increase the number of image features, audio features or text features; the use of a neural network model with a large number of convolutional layers to extract image features, audio features or text features can improve the quality of image features, audio features or text features. Therefore, the method used in the embodiment of the present application can effectively avoid the loss of image features, audio features or text features and improve the detection accuracy of video files.

[0162] In addition, the embodiment of the present application performs comprehensive detection on the three modes of video files, namely image mode, audio mode and text mode, to improve the detection accuracy of video files and is suitable for multi-modal application scenarios.

[0163] It should be understood that if all video files are detected, it will undoubtedly lead to low efficiency.

[0164] To this end, the embodiment of the present application provides an active learning classification model, through which video files can be divided into video files with a forgery probability greater than a preset threshold and video files with a forgery probability less than or equal to the preset threshold. Taking video files with a forgery probability greater than the preset threshold as the video files to be detected can greatly reduce the workload of detection, thereby improving detection efficiency.

[0165] See also Figure 6 , which is a schematic diagram of a training classification model provided in an embodiment of the present application.

[0166] like Figure 6 As shown in Figure 1, the training of the classification model mainly includes the following four steps:

[0167] In the first step, samples with higher values ​​are selected from the unlabeled dataset to obtain a partial unlabeled dataset.

[0168] Exemplarily, samples with higher value can be the following three samples:

[0169] Samples with high label uncertainty are samples whose true labels (or "ground truth" labels) are difficult to accurately determine. Active learning methods allow the model to select queries for the samples it is most uncertain about, thereby obtaining the true labels of these samples to gradually reduce the uncertainty of the samples in the dataset.

[0170] Samples that are close to the classification boundary, that is, samples that are near the decision boundary of different categories. By actively learning and selecting samples that are close to the classification boundary for labeling and retraining the classifier, the uncertainty in the data set can be gradually reduced and the performance of the classifier in the fuzzy area can be improved.

[0171] Samples with high model uncertainty are samples where the model's prediction results lack sufficient confidence or certainty. Select samples with high model uncertainty for manual annotation or expert verification, then add them to the training set to retrain the model. Through iterative selection, annotation, and training, the performance of the model on samples with high uncertainty will gradually improve.

[0172] In one possible implementation, model uncertainty can be measured by entropy or standard deviation.

[0173] The second step is to label some unlabeled samples to obtain a labeled data set.

[0174] The third step is to input the labeled dataset into the classifier for classification.

[0175] The fourth step is to determine whether the samples output by the classifier meet the precision standard or exceed the labeling cost; if the precision meets the precision standard or does not exceed the labeling cost, the sample is output; if the precision does not meet the precision standard or exceeds the labeling cost, it is added to the unlabeled data set.

[0176] It should be noted that the test set includes labeled samples and unlabeled samples to detect whether the classifier can accurately classify labeled samples and unlabeled samples.

[0177] It should be understood that the classification model obtained by the above training method can use video files that are more likely to contain forged information as video files to be detected, thereby reducing the workload of video file detection and improving the efficiency of video file detection.

[0178] The following will provide a comprehensive description of the video file detection method and classification model training described above. Figure 7 As shown, the figure is a schematic diagram of video file detection provided in an embodiment of the present application.

[0179] First, samples with higher value (samples with higher label uncertainty, samples close to the classification boundary, and samples with model uncertainty) are selected from the unlabeled dataset, and the selected samples are labeled by experts; the labeled samples are stored in the labeled dataset, and the labeled samples are input into the classifier (where the classifier is tested with the test set, that is, the classifier can accurately classify the samples in the test set); the classified data is output.

[0180] Secondly, the video files are classified through the classification model, and the videos that may contain forged information are output for further judgment.

[0181] Then, the video files output by the classification model are subjected to modal separation, that is, audio data and image data are extracted from the video files; the image data is converted into text data to obtain three modalities: image, audio, and text; for each modality of data, a neural network model with different numbers of convolutional layers is used to extract the corresponding features, and then the image, audio or text is analyzed through the extracted features to draw conclusions on whether it contains forged information.

[0182] Finally, if the video file is judged to contain forged information, the video file will be used as a labeled data set to participate in the training and optimization process of the classification model, so that the classification model can continuously self-learn to improve the classification accuracy of the classification model.

[0183] It can be seen that the training of the classification model and the identification of forged information are mutually reinforcing. When the accuracy of the classification model is improved, the possibility that the video file it outputs contains forged information is higher; when the video file containing forged information is used to train the classification model, the accuracy of the classification model can be improved. In this way, the accuracy of the classification model will gradually improve.

[0184] See also Figure 8, which is a schematic diagram of a video file detection device provided in an embodiment of the present application.

[0185] like Figure 8 As shown, the device includes: a modality separation module 801, a feature extraction module 802, a first acquisition module 803 and a second acquisition module 804;

[0186] A modality separation module 801 is used to perform modality separation on the video file to be detected to obtain image data and audio data, and convert the audio data into corresponding text data;

[0187] A feature extraction module 802 is used to extract image features of image data, audio features of audio data, and text features of text data; at least one of the image features, audio features, and text features is extracted by using a convolutional neural network model with multiple different numbers of convolutional layers;

[0188] A first obtaining module 803, used to obtain an image detection result, an audio detection result and a text detection result according to the image feature, the audio feature and the text feature respectively;

[0189] The second obtaining module 804 is used to obtain the detection result of the video file to be detected according to the image detection result, the audio detection result and the text detection result.

[0190] Optionally, the feature extraction module 802 is specifically used to extract features from the image data through a plurality of convolutional neural network models with different numbers of convolutional layers, respectively, to obtain first image features of the corresponding image data; to fuse the first image features in pairs to obtain second image features of the image data; to fuse the first image features and the second image features to obtain image features of the image data; and / or

[0191] Extract features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers to obtain first audio features of the corresponding audio data; fuse the first audio features in pairs to obtain second audio features related to the image data; fuse the first audio features and the second audio features to obtain audio features related to the audio data; and / or

[0192] Feature extraction is performed on text data through convolutional neural network models with multiple different numbers of convolutional layers to obtain first text features of the corresponding text data; the first text features are fused in pairs to obtain second text features about the text data; and the first text features and the second text features are fused to obtain text features about the text data.

[0193] Optionally, the feature extraction module 802 is used to:

[0194] When the number of convolutional layers is one, feature extraction is performed on the image data by matrix decomposition to obtain the corresponding first image feature; when the number of convolutional layers is multiple, feature extraction is performed on the image data by convolution to obtain the corresponding first image feature;

[0195] When the number of convolutional layers is one, feature extraction is performed on the audio data by matrix decomposition to obtain the corresponding first audio feature; when the number of convolutional layers is multiple, feature extraction is performed on the audio data by convolution to obtain the corresponding first audio feature;

[0196] When the number of convolutional layers is one, feature extraction is performed on the text data by matrix decomposition to obtain the corresponding first text feature; when the number of convolutional layers is multiple, feature extraction is performed on the text data by convolution to obtain the corresponding first text feature.

[0197] Optionally, image features are extracted using the face detection architecture of RetinaFace.

[0198] Optionally, audio features of the audio data are extracted by a Mel-cephalometric coefficient method.

[0199] Optionally, text features of the text data are extracted through a semantic analysis model.

[0200] Optionally, the modal separation module 801 is specifically used to filter out video files to be detected whose possibility of forgery is greater than or equal to a preset threshold from original video files through a pre-trained classification model; wherein the classification model is trained using reference video file samples whose possibility of forgery is greater than or equal to a preset threshold; modally separate the video files to be detected to obtain image data and audio data, and convert the audio data into corresponding text data.

[0201] Optionally, the device further comprises: a marking module;

[0202] The marking module is used to use the video file to be detected as a reference video file to participate in the training of the classification model when the detection result of the video file to be detected indicates that the possibility of forgery of the video file to be detected is greater than or equal to a preset threshold.

[0203] In addition, an embodiment of the present application provides a computing device, including:

[0204] at least one memory for storing a program;

[0205] At least one processor is used to execute the program stored in the memory; wherein, when the program stored in the memory is executed, the processor is used to execute the video file detection method as described in the aforementioned embodiment.

[0206] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device 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. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0207] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting a video file, characterized in that: The method comprises: Perform modal separation on the video file to be detected to obtain image data and audio data, and convert the audio data into corresponding text data; Extracting image features of the image data, audio features of the audio data, and text features of the text data; at least one of the image features, the audio features, and the text features is extracted by using a convolutional neural network model with multiple different numbers of convolutional layers; Obtaining an image detection result, an audio detection result, and a text detection result according to the image feature, the audio feature, and the text feature, respectively; The detection result of the video file to be detected is obtained according to the image detection result, the audio detection result and the text detection result.

2. The method according to claim 1, characterized in that: The extracting of the image features of the image data, the audio features of the audio data, and the text features of the text data includes: Extract features from the image data using a plurality of convolutional neural network models with different numbers of convolutional layers, to obtain first image features corresponding to the image data; fuse the first image features in pairs to obtain second image features related to the image data; fuse the first image features and the second image features to obtain the image features related to the image data; and / or Extract features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers, and obtain first audio features of the corresponding audio data; fuse the first audio features in pairs to obtain second audio features of the image data; and fuse the first audio features and the second audio features to obtain the audio features of the audio data; and / or The text data is respectively subjected to feature extraction by convolutional neural network models with different numbers of convolutional layers to obtain corresponding first text features of the text data; the first text features are fused in pairs to obtain second text features about the text data; the first text features and the second text features are fused to obtain the text features about the text data.

3. The method according to claim 2, characterized in that The number of layers of the convolutional layer includes one layer and multiple layers, and the convolutional neural network models with multiple different numbers of convolutional layers respectively extract features from the image data to obtain the corresponding first audio features of the audio data, including: When the number of the convolutional layers is one, feature extraction is performed on the image data by matrix decomposition to obtain the corresponding first image feature; when the number of the convolutional layers is multiple, feature extraction is performed on the image data by convolution to obtain the corresponding first image feature; The method of extracting features from the audio data using a plurality of convolutional neural network models with different numbers of convolutional layers to obtain corresponding first audio features of the audio data includes: When the number of the convolutional layers is one, feature extraction is performed on the audio data by matrix decomposition to obtain the corresponding first audio feature; when the number of the convolutional layers is multiple, feature extraction is performed on the audio data by convolution to obtain the corresponding first audio feature; The convolutional neural network models with multiple different numbers of convolutional layers respectively extract features from the text data to obtain the corresponding first text features of the text data, including: When the number of convolutional layers is one, feature extraction is performed on the text data by matrix decomposition to obtain the corresponding first text feature; when the number of convolutional layers is multiple, feature extraction is performed on the text data by convolution to obtain the corresponding first text feature.

4. The method according to any one of claims 1 to 3, characterized in that: The audio features and / or the text features are extracted through a convolutional neural network model with multiple different numbers of convolutional layers, and the image features of the image data are extracted through the RetinaFace face detection architecture.

5. The method according to any one of claims 1 to 3, characterized in that: The image features and / or the audio features are extracted through a convolutional neural network model with multiple different numbers of convolutional layers, and the audio features of the audio data are extracted through a Mel-cepstral coefficient method.

6. The method according to any one of claims 1 to 3, characterized in that: The image features and / or the audio features are extracted through a convolutional neural network model with multiple different numbers of convolutional layers, and the text features of the text data are extracted through a DistilBERT model.

7. The method according to claim 1, characterized in that The step of performing modal separation on the video file to be detected to obtain image data and audio data, and converting the audio data into corresponding text data, comprises: Screening out the video files to be detected whose forgery probability is greater than or equal to a preset threshold from the original video files by using a pre-trained classification model; wherein the classification model is trained using reference video file samples whose forgery probability is greater than or equal to the preset threshold; The video file to be detected is subjected to modal separation to obtain image data and audio data, and the audio data is converted into corresponding text data.

8. The method according to claim 7, characterized in that Also includes: When the detection result of the video file to be detected indicates that the possibility of forgery of the video file to be detected is greater than or equal to a preset threshold, the video file to be detected is used as the reference video file to participate in the training of the classification model.

9. A video file detection device, characterized in that: The device comprises: a modality separation module, a feature extraction module, a first acquisition module and a second acquisition module; The modality separation module is used to perform modality separation on the video file to be detected to obtain image data and audio data, and convert the audio data into corresponding text data; The feature extraction module is used to extract image features of the image data, audio features of the audio data, and text features of the text data; at least one of the image features, the audio features, and the text features is extracted by a convolutional neural network model with multiple different numbers of convolutional layers; The first obtaining module is used to obtain an image detection result, an audio detection result and a text detection result respectively according to the image feature, the audio feature and the text feature; The second obtaining module is used to obtain the detection result of the video file to be detected according to the image detection result, the audio detection result and the text detection result.

10. A computing device, characterized in that include: at least one memory for storing a program; At least one processor is used to execute the program stored in the memory; wherein, when the program stored in the memory is executed, the processor is used to execute the video file detection method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Video identification method and device, storage medium and equipment

    CN115100573A

  • Intelligent voice forgery attack detection method based on attention mechanism

    CN116416997A

  • Face forgery detection method based on frequency mask and attention consistency

    CN117373136A

  • Rivet position compensation system and method therefor

    KR102533058B1

  • Video data-based fraud detection method and apparatus, computer device, and storage medium

    WO2021051607A1

Cited By

  • False news detection inference method and system based on large model and pre-training

    CN119851078A

  • A fake news detection inference method and system based on large model and pre-training

    CN119851078B