An anti-counterfeiting method, system, device and storage medium based on video AI

By combining the deep residual network and the LSTM network, the feature information of the video frame is extracted and combined with adaptive weights, which solves the problem of insufficient accuracy in video AI forgery detection and improves the accuracy and security of video detection.

CN115834965BActive Publication Date: 2024-09-06GUANGXI COMM GUIHUA DESIGN CONSULTATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211347120.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2024-09-06
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

At this stage, there are more and more problems with videos being forged by AI. In particular, the video forgery technology implemented using Deepfake technology achieves the effect of being 'fake' and confusing the real thing, resulting in negative effects, affecting the development of the video business, and the accuracy of existing detection methods. insufficient.

Method used

An anti-counterfeiting method based on video AI is used to construct a combination of deep residual network and LSTM network to extract high-resolution information of low-level features and strong semantic information of high-level features of video frames, combined with adaptive weights, to achieve video forgery detection.

Benefits of technology

It improves the accuracy of video detection, can mine image information more comprehensively, enhances the security of video viewing, and effectively identifies AI fake videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834965B
    Figure CN115834965B
Patent Text Reader

Abstract

The present invention discloses an anti-counterfeiting method, system, device and storage medium based on video AI. The method includes: obtaining a target video, and dividing multiple frames of target images from the target video; inputting each frame of the target image into a deep residual network respectively, extracting the low-level feature high-resolution information and the strong semantic information of the high-level features of each frame of the target image, and outputting the final feature representation vector of each frame of the target image; inputting the final feature representation vectors of all target images into an LSTM network together to obtain a forgery detection result. The present invention fully extracts the features of each frame of the image through a deep residual network, and outputs a forgery detection result of whether the target video is forged by outputting the features of the fully extracted image through the LSTM network; a deep residual network is also provided, which can extract the low-level feature high-resolution information and the strong semantic information of the high-level features in the image, and fully mine more comprehensive image information to improve the accuracy of detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video anti-counterfeiting technology, and in particular to an anti-counterfeiting method, system, device and storage medium based on video AI. Background Art

[0002] At present, there are more and more problems of videos being forged by AI (Artificial Intelligence), especially the video forgery (tampering) technology realized by Deepfake technology at this stage, which has achieved the effect of making the "fake" look real. This will lead to many negative effects and is not conducive to the development of video business. Summary of the invention

[0003] The present invention aims to at least solve the technical problems existing in the prior art. To this end, the present invention proposes an anti-counterfeiting method, system, device and storage medium based on video AI, which can accurately detect whether a video is AI-forged, thereby improving the security of video viewing.

[0004] A first aspect of the present invention provides an anti-counterfeiting method based on video AI, the anti-counterfeiting method based on video AI comprising:

[0005] Acquire a target video to be detected, and divide a plurality of continuous frames of target images from the target video;

[0006] Constructing a deep residual network, inputting each frame of target image into the deep residual network respectively, using the deep residual network to extract the high-resolution information of low-level features and the strong semantic information of high-level features of each frame of target image, and obtaining the final feature representation vector of each frame of target image output by the deep residual network; wherein the deep residual network is composed of a plurality of feature extraction subnetworks cascaded from bottom to top;

[0007] An LSTM network is constructed, and the final feature representation vectors of all target images are input into the LSTM network together to obtain a forgery detection result of whether the target video is forged output by the LSTM network.

[0008] According to the embodiments of the present invention, there are at least the following technical effects:

[0009] (1) This method utilizes the combination of a convolutional neural network (deep residual network) and a recurrent neural network (LSTM network). In the first part, the deep residual network is used to fully extract the features of each frame of the image. In the second part, the fully extracted image features are applied to the video detection process, and the LSTM network outputs a forgery detection result to determine whether the target video is forged.

[0010] (2) This method sets up a deep residual network, which can extract high-resolution information of low-level features in the image, as well as strong semantic information of high-level features, and fully mine more comprehensive image information to improve the accuracy of detection.

[0011] According to some embodiments of the present invention, the construction of the deep residual network, inputting each frame of the target image into the deep residual network respectively, using the deep residual network to extract the high-resolution information of the low-level features and the strong semantic information of the high-level features of each frame of the target image, and obtaining the final feature representation vector of each frame of the target image output by the deep residual network, includes:

[0012] Construct a deep residual network consisting of multiple feature extraction sub-networks cascaded from bottom to top;

[0013] Input the target image into the first feature extraction subnetwork in the deep residual network to obtain a first feature representation vector output by the first feature extraction subnetwork; input the first feature representation vector into the second feature extraction subnetwork to obtain a second feature representation vector output by the second feature extraction subnetwork; and so on, until the penultimate feature representation vector output by the penultimate feature extraction subnetwork is obtained;

[0014] The penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate feature representation vector of the penultimate feature extraction subnetwork are merged element by element to obtain a merged feature representation vector of the penultimate feature extraction subnetwork; the penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate third feature representation vector of the penultimate feature extraction subnetwork are merged element by element to obtain a merged feature representation vector of the penultimate feature extraction subnetwork; and so on and so forth until a merged feature representation vector of the second feature extraction subnetwork is obtained by merging the third feature representation vector of the third feature extraction subnetwork and the second feature representation vector of the second feature extraction subnetwork element by element; and the merged feature representation vector of the second feature extraction subnetwork is used as the final feature representation vector of the target image.

[0015] According to some embodiments of the present invention, the first feature extraction subnetwork performs a convolution and down-sampling on the input target image to obtain a first feature representation vector of the target image; the second feature extraction subnetwork to the penultimate feature extraction subnetwork respectively perform convolution and jump connection on their respective input feature representation vectors to obtain their respective output feature representation vectors.

[0016] According to some embodiments of the present invention, the LSTM network includes a cascaded bidirectional superimposed recurrent network and a unidirectional hidden layer.

[0017] According to some embodiments of the present invention, before constructing the LSTM network, the video AI-based anti-counterfeiting method also includes: adding an adaptive weight to the final feature representation vector of each frame of the target image; inputting the final feature representation vectors of all target images into the LSTM network together, including: inputting the final feature representation vectors of all target images with added adaptive weights into the LSTM network together.

[0018] According to some embodiments of the present invention, the adaptive weights are generated by initializing random parameters and are adaptively adjusted by the LSTM network.

[0019] According to some embodiments of the present invention, the second feature extraction subnetwork to the penultimate feature extraction subnetwork all include: multiple convolutional layers and identity mappings for serial network connections.

[0020] A second aspect of the present invention provides an anti-counterfeiting system based on video AI, the anti-counterfeiting system based on video AI comprising:

[0021] A video acquisition unit, used to acquire a target video to be detected;

[0022] An image division unit, used for dividing a plurality of continuous frames of target images from the target video;

[0023] A feature vector extraction unit is used to construct a deep residual network, input each frame of the target image into the deep residual network, extract the low-level feature high-resolution information and the strong semantic information of the high-level features of each frame of the target image by using the deep residual network, and obtain the final feature representation vector of each frame of the target image output by the deep residual network; wherein the deep residual network is composed of a plurality of feature extraction sub-networks cascaded from the bottom to the top;

[0024] The video forgery detection unit is used to construct an LSTM network, input the final feature representation vectors of all target images into the LSTM network, and obtain a forgery detection result of whether the target video is forged output by the LSTM network.

[0025] Since the video AI-based anti-counterfeiting system adopts all the technical solutions of the video AI-based anti-counterfeiting method of the above-mentioned embodiment, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiment.

[0026] The third aspect of the present invention provides an anti-counterfeiting electronic device based on video AI, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the above-mentioned anti-counterfeiting method based on video AI. Since the anti-counterfeiting electronic device based on video AI adopts all the technical solutions of the anti-counterfeiting method based on video AI of the above-mentioned embodiment, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiment.

[0027] In a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to cause a computer to execute the above-mentioned anti-counterfeiting method based on video AI. Since the readable storage medium adopts all the technical solutions of the anti-counterfeiting method based on video AI of the above-mentioned embodiment, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiment.

[0028] It should be noted that the beneficial effects between the second to fourth aspects of the present invention and the prior art are the same as the beneficial effects between the above-mentioned video AI-based anti-counterfeiting method and the prior art, and will not be described in detail here.

[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0031] Figure 1 It is a flowchart of an anti-counterfeiting method based on video AI provided by an embodiment of the present invention;

[0032] Figure 2 yes Figure 1 Schematic diagram of the process of step S103;

[0033] Figure 3 is a schematic diagram of the structure of a deep residual network provided by an embodiment of the present invention;

[0034] Figure 4 is a schematic diagram of the structure of a feature extraction subnetwork provided by an embodiment of the present invention;

[0035] Figure 5 It is a schematic diagram of the structure of an LSTM network provided by an embodiment of the present invention;

[0036] Figure 6 It is a structural schematic diagram of a video AI-based anti-counterfeiting system provided by an embodiment of the present invention;

[0037] Figure 7 It is a structural schematic diagram of an anti-counterfeiting device based on video AI provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0039] In the description of the present invention, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0040] In the description of the present invention, it should be understood that descriptions involving orientation, such as orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0041] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0042] It should be understood that, in the description of the present invention, unless otherwise specified, “plurality” means two or more.

[0043] At present, there are more and more problems of videos being forged by AI, especially the video forgery technology realized by Deepfake technology, which has achieved the effect of making the "fake" look real. This will lead to many negative effects, such as forging short videos to attract attention and forging facial videos to defraud personal information and property, etc.; it is not conducive to the development of video business.

[0044] Videos forged by AI usually differ from normal videos in pixel energy. This is because the image size will be scaled after the video is forged by AI, which will cause the energy distribution of the image to change.

[0045] Taking advantage of this, existing detection methods using deep learning extract features to describe the relationship between adjacent pixels and finally detect whether there is forgery. However, existing detection methods using deep learning still have the technical defect of insufficient detection accuracy.

[0046] Reference Figure 1 In order to solve this technical defect, the present application proposes an anti-counterfeiting method based on video AI. The anti-counterfeiting method based on video AI includes the following steps S101 to S105, specifically:

[0047] Step S101, obtain the target video to be detected, and divide the target image into multiple frames. In this step S101, the target video is the video to be detected for forgery, and its specific source is not limited here. After obtaining the target video, multiple frames of continuous images (herein referred to as target images) are divided from the target video. It should be noted that extracting images from videos is common knowledge in the art and will not be described in detail here.

[0048] Step S103, construct a deep residual network, input each frame of the target image into the deep residual network respectively, use the deep residual network to extract the high-resolution information of the low-level features and the strong semantic information of the high-level features of each frame of the target image, and obtain the final feature representation vector of each frame of the target image output by the deep residual network; wherein the deep residual network is composed of multiple feature extraction sub-networks cascaded from bottom to top.

[0049] The purpose of step S103 is to utilize the high-resolution low-level features and high-level semantic information of the fused image to improve the detection effect by fusing features of different layers. Figure 2 To achieve this purpose, in some embodiments of the present invention, step S103 includes the following steps:

[0050] Step S1031: construct a deep residual network consisting of multiple feature extraction sub-networks cascaded from the bottom to the top.

[0051] Step S1032: input the target image into the first feature extraction subnetwork in the deep residual network to obtain the first feature representation vector output by the first feature extraction subnetwork; input the first feature representation vector into the second feature extraction subnetwork to obtain the second feature representation vector output by the second feature extraction subnetwork; and so on, until the penultimate feature representation vector output by the penultimate feature extraction subnetwork is obtained.

[0052] Step S1033, the penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate feature representation vector of the penultimate feature extraction subnetwork are merged element by element to obtain a merged feature representation vector of the penultimate feature extraction subnetwork; the penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate feature representation vector of the third-to-last feature extraction subnetwork are merged element by element to obtain a merged feature representation vector of the penultimate feature extraction subnetwork; and so on, until the merged feature representation vector of the second feature extraction subnetwork is obtained by merging the third feature representation vector of the third feature extraction subnetwork and the second feature representation vector of the second feature extraction subnetwork element by element; the merged feature representation vector of the second feature extraction subnetwork is used as the final feature representation vector of the target image.

[0053] In steps S1031 to S1033, first, a deep residual network is constructed, which includes several feature extraction subnetworks. From bottom to top, the output data of the previous feature extraction subnetwork is used as the output data of the next feature extraction subnetwork (wherein the input data of the first feature extraction subnetwork is the target image). In this way, the vector representation extracted by each feature extraction subnetwork can be obtained, and the features extracted at the bottom layer will gradually act on the feature extraction process of the next feature extraction subnetwork. Then, from top to bottom, the feature representation vector extracted by the upper feature extraction subnetwork will be merged element by element with the feature representation vector extracted by the lower feature extraction subnetwork to obtain a merged feature representation vector, and so on, similar to the pyramid network structure, and the strong semantic features of the high level will be gradually captured. After such processing, the feature representation vector output by the deep residual network can not only capture the high-resolution information of the low-level features of the image, but also capture the strong semantic information of the high-level features, so that when the subsequent feature representation vector is used for subsequent detection, the accuracy of the detection can be improved.

[0054] It should be noted that the present application inputs multiple frames of images sequentially and obtains a feature representation vector corresponding to each frame of image.

[0055] Step S105: construct an LSTM network, input the final feature representation vectors of all target images into the LSTM network, and obtain a forgery detection result of whether the target video is forged output by the LSTM network.

[0056] In this step S105, LSTM is a type of recurrent network that can perform authenticity classification at the video level while learning features. In this step, the feature representation vectors output by all target images in step S103 are input into the LSTM network by using the LSTM network, and the video forgery discrimination is realized through the LSTM network.

[0057] The video AI-based anti-counterfeiting method provided in this embodiment has at least the following beneficial effects:

[0058] (1) This method utilizes the combination of a convolutional neural network (deep residual network) and a recurrent neural network (LSTM network). In the first part, the deep residual network is used to fully extract the features of each frame of the image. In the second part, the fully extracted image features are applied to the video detection process, and the LSTM network outputs a forgery detection result to determine whether the target video is forged.

[0059] (2) This method sets up a deep residual network, which can extract high-resolution information of low-level features in the image, as well as strong semantic information of high-level features, and fully mine more comprehensive image information to improve the accuracy of detection.

[0060] In some embodiments of the present application, the LSTM network includes a bidirectional superimposed loop network and a unidirectional hidden layer cascaded in sequence. In some embodiments of the present application, before constructing the LSTM network, the anti-counterfeiting method based on video AI also includes: adding an adaptive weight to the final feature representation vector of each frame of the target image; inputting the final feature representation vectors of all target images into the LSTM network together, including: inputting the final feature representation vectors of all target images with the added adaptive weights into the LSTM network together.

[0061] In this embodiment, the main purpose of the LSTM network is to perform feature loop learning on the feature representation vector extracted by the deep residual network, and finally detect whether the target video is forged. Since each frame image of the target video is input into the LSTM network, the LSTM network will average the feature learning of the frame image, but this will result in a low degree of confidence in the detection result. Therefore, in order to further improve the accuracy of the detection, this embodiment adds an adaptive weight to the final feature representation vector of the target image of each frame. After adding this adaptive weight, the LSTM network can adaptively adjust the impact of any target image on the detection of forgery of the target video. For example: v i It refers to the feature representation vector (a multi-dimensional vector) of the target image of the i-th frame output by the deep residual network, which is v i Set an adaptive weight w i (dimension size is 1), then after merging, the final feature representation vector X with added adaptive weights is obtained i =w i +v i ,X1,X2,…,X i ,…X n The image is input into the LSTM network, where n refers to the number of target images divided from the target video.

[0062] It should be noted that w i Using random parameter initialization and end-to-end training, the LSTM network will give each w involved in feature fusion i Adaptively adjust its size, that is, it can adjust the influence of different target images on the detection weight of whether the target video is forged. In the LSTM network, because the LSTM network will learn a feature between multiple frames of images, after setting an adaptive weight for each frame of the target image, then w i With v i If there is a certain relationship, the LSTM network will automatically adjust the proportion (weight) of the frame target image with richer features, and will automatically extract useful features for detecting whether the final target video is forged.

[0063] Reference Figures 3 to 5 One embodiment of the present application provides an anti-counterfeiting method based on video AI, and the method comprises the following steps:

[0064] Step S201: Divide the video to be detected into multiple frames of images.

[0065] Step S202: construct a deep residual network, input each frame of image into the deep residual network, and obtain the final feature representation vector of each frame output by the deep residual network. The structure of the deep residual network is as follows: Figure 3 As shown, the deep residual network consists of five feature extraction sub-networks.

[0066] First, the first frame image (length and width: 224X 224) is input into the first feature extraction subnetwork of the deep residual network. The first feature extraction subnetwork performs a convolution and downsampling on the input image to obtain the first feature representation vector; the second feature extraction subnetwork performs a convolution and jump connection on the input feature representation vector to obtain the second feature representation vector, and so on. The structures of the second feature extraction subnetwork to the fifth feature extraction subnetwork are as follows: Figure 3 As shown in the figure, we will not go into detail here. The identity mapping does not need to be convolved, and it is directly added to the result of the convolution layer. The structure of the second feature extraction subnetwork is as follows: Figure 4 As shown in Figure 1, a normalization is added after the convolution layer to reduce overfitting, using the ReLU function.

[0067] Then, let the fifth feature representation vector obtained by the fifth feature extraction sub-network be v 15 , v 15 First perform 1x1 dimensionality reduction and then merge it element-wise with the upsampled feature representation vector of the fourth feature representation vector to obtain v 14 , and so on, the final feature representation vector v1 of the first frame image is obtained.

[0068] Finally, other frame images are also processed as described above to obtain their respective final feature representation vectors v2 to v5.

[0069] Step S203: Let the final feature representation vector obtained in step S202 be v i , the final feature representation vector is v i Set an adaptive weight w i , calculate the X of each frame image i =w i +v i .

[0070] Step S204: construct an LSTM network to transform X i ,X2,...,X i ,…,X n Input into the LSTM network, and obtain the forgery detection result of whether the target video is forged or not output by the LSTM network. Figure 5 As shown, the LSTM network includes bidirectional superimposed recurrent networks and unidirectional hidden layers that are cascaded in sequence. For example, from left to right, it includes three bidirectional superimposed recurrent networks and one unidirectional hidden layer.

[0071] The video AI-based anti-counterfeiting method provided in this embodiment has at least the following beneficial effects:

[0072] (1) This method utilizes the combination of a convolutional neural network (deep residual network) and a recurrent neural network (LSTM network). In the first part, the deep residual network is used to fully extract the features of each frame of the image. In the second part, the fully extracted image features are applied to the video detection process, and the LSTM network outputs a forgery detection result to determine whether the target video is forged.

[0073] (2) This method sets up a deep residual network, which can extract high-resolution information of low-level features in the image, as well as strong semantic information of high-level features, and fully mine more comprehensive image information to improve the accuracy of detection.

[0074] (3) This method adds an adaptive weight to the final feature representation vector of the target image of each frame. After adding this adaptive weight, the LSTM network automatically adjusts the proportion of the frame target image with richer features, and automatically extracts useful features for the final detection of whether the target video is forged.

[0075] Reference Figure 6An embodiment of the present invention provides an anti-counterfeiting system based on video AI. The anti-counterfeiting system based on video AI includes a video acquisition unit 1100, an image division unit 1200, a feature vector extraction unit 1300 and a video forgery detection unit 1400, wherein specifically:

[0076] The video acquisition unit 1100 is used to acquire a target video to be detected.

[0077] The image dividing unit 1200 is used to divide a target video into multiple frames of continuous target images.

[0078] The feature vector extraction unit 1300 is used to construct a deep residual network, input each frame of the target image into the deep residual network respectively, and use the deep residual network to extract the high-resolution information of the low-level features and the strong semantic information of the high-level features of each frame of the target image, so as to obtain the final feature representation vector of each frame of the target image output by the deep residual network; wherein the deep residual network is composed of multiple feature extraction sub-networks cascaded from the bottom to the top.

[0079] The video forgery detection unit 1400 is used to construct an LSTM network, and input the final feature representation vectors of all target images into the LSTM network to obtain a forgery detection result of whether the target video output by the LSTM network is forged.

[0080] The video AI-based anti-counterfeiting system provided in this embodiment has at least the following beneficial effects:

[0081] (1) This system uses a combination of convolutional neural networks (deep residual networks) and recurrent neural networks (LSTM networks). In the first part, the deep residual network is used to fully extract the features of each frame of the image. In the second part, the fully extracted image features are applied to the video detection process, and the LSTM network outputs the forgery detection result of whether the target video is forged.

[0082] (2) This system sets up a deep residual network, which can extract high-resolution information of low-level features in the image, as well as strong semantic information of high-level features, and fully mine more comprehensive image information to improve detection accuracy.

[0083] It should be noted that the present video AI-based anti-counterfeiting system embodiment and the above-mentioned method embodiment are based on the same inventive concept, so the relevant contents of the above-mentioned method embodiment are also applicable to the present system embodiment and will not be repeated here.

[0084] Reference Figure 7The present application also provides an anti-counterfeiting electronic device based on video AI, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements: the anti-counterfeiting method based on video AI as described above.

[0085] The processor and the memory may be connected via a bus or other means.

[0086] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0087] The non-transient software program and instructions required to implement the video AI-based anti-counterfeiting method of the above embodiment are stored in the memory. When executed by the processor, the video AI-based anti-counterfeiting method of the above embodiment is executed, for example, the above-described Figure 1 Steps S101 to S105 of the method, or Figure 2 Method steps S1031 to S1033.

[0088] The present application also provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute: the anti-counterfeiting method based on video AI as described above.

[0089] The computer-readable storage medium stores computer-executable instructions, which are executed by a processor or a controller, for example, by a processor in the above-mentioned electronic device embodiment, so that the above-mentioned processor can execute the video AI-based anti-counterfeiting method in the above-mentioned embodiment, for example, execute the above-mentioned Figure 1 Steps S101 to S105 of the method, or Figure 2 Method steps S1031 to S1033.

[0090] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing data (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired data and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any data delivery media.

[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0092] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. An anti-counterfeiting method based on video AI, characterized in that: The video AI-based anti-counterfeiting method includes: Acquire a target video to be detected, and divide a continuous plurality of target frames from the target video; Constructing a deep residual network, inputting each frame of target image into the deep residual network respectively, and using the deep residual network to extract low-level feature high-resolution information and strong semantic information of high-level features of each frame of target image, to obtain a final feature representation vector of each frame of target image output by the deep residual network; wherein the deep residual network is composed of multiple feature extraction subnetworks cascaded from bottom to top; constructing a deep residual network, inputting each frame of target image into the deep residual network respectively, and using the deep residual network to extract low-level feature high-resolution information and strong semantic information of high-level features of each frame of target image, to obtain a final feature representation vector of each frame of target image output by the deep residual network, including: Construct a deep residual network consisting of multiple feature extraction sub-networks cascaded from the bottom up; Input the target image into the first feature extraction subnetwork in the deep residual network to obtain a first feature representation vector output by the first feature extraction subnetwork; input the first feature representation vector into the second feature extraction subnetwork to obtain a second feature representation vector output by the second feature extraction subnetwork; and so on, until the penultimate feature representation vector output by the penultimate feature extraction subnetwork is obtained; The penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate feature representation vector of the penultimate feature extraction subnetwork are merged element by element to obtain the merged feature representation vector of the penultimate feature extraction subnetwork; the penultimate feature representation vector of the penultimate feature extraction subnetwork and the penultimate third feature representation vector of the penultimate feature extraction subnetwork are merged element by element to obtain the merged feature representation vector of the penultimate feature extraction subnetwork; and so on, until the merged feature representation vector of the second feature extraction subnetwork generated by merging the third feature representation vector of the third feature extraction subnetwork and the second feature representation vector of the second feature extraction subnetwork is obtained; the merged feature representation vector of the second feature extraction subnetwork is used as the final feature representation vector of the target image; the first feature extraction subnetwork performs a convolution and downsampling on the input target image to obtain the first feature representation vector of the target image; the second feature extraction subnetwork to the penultimate feature extraction subnetwork respectively perform convolution and jump connection on the respective input feature representation vectors to obtain the respective output feature representation vectors; Construct an LSTM network, input the final feature representation vectors of all target images into the LSTM network, and obtain a forgery detection result of whether the target video is forged output by the LSTM network; the LSTM network includes a cascaded bidirectional superimposed loop network and a unidirectional hidden layer; before constructing the LSTM network, the video AI-based anti-counterfeiting method also includes: adding an adaptive weight to the final feature representation vector of each frame of the target image; inputting the final feature representation vectors of all target images into the LSTM network includes: inputting the final feature representation vectors of all target images with added adaptive weights into the LSTM network.

2. The anti-counterfeiting method based on video AI according to claim 1, characterized in that: The adaptive weights are generated by random parameter initialization and are adaptively adjusted by the LSTM network.

3. The anti-counterfeiting method based on video AI according to claim 1, characterized in that: The second feature extraction subnetwork to the penultimate feature extraction subnetwork all include: multiple convolutional layers and identity mappings for serial network connections.

4. An anti-counterfeiting system based on video AI, characterized in that: The video AI-based anti-counterfeiting system is used to execute the video AI-based anti-counterfeiting method according to any one of claims 1 to 3; the video AI-based anti-counterfeiting system includes: A video acquisition unit, used to acquire a target video to be detected; An image division unit, configured to divide the target video into a plurality of continuous target image frames; A feature vector extraction unit is used to construct a deep residual network, input each frame of target image into the deep residual network, use the deep residual network to extract high-resolution information of low-level features and strong semantic information of high-level features of each frame of target image, and obtain the final feature representation vector of each frame of target image output by the deep residual network; wherein the deep residual network is composed of multiple feature extraction sub-networks cascaded from bottom to top; The video forgery detection unit is used to construct an LSTM network, input the final feature representation vectors of all target images into the LSTM network, and obtain a forgery detection result output by the LSTM network to determine whether the target video is forged.

5. An anti-counterfeiting electronic device based on video AI, characterized by: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the video AI-based anti-counterfeiting method described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the video AI-based anti-counterfeiting method according to any one of claims 1 to 3.