Data processing method and device and storage medium
By performing scene recognition and feature extraction of picture frames on video data in the video review system, and combining the deep learning model for abnormal information detection, the problem of inaccurate detection caused by sampling randomness in the existing technology is solved, and the accuracy of abnormal information detection is improved. accuracy and system efficiency.
Patent Information
- Application Number
- CN202310179914.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
In the process of detecting abnormal information in video data, the existing technology cannot accurately represent all frames in the video due to the randomness of sampling some frames, which affects the accuracy of detection.
By obtaining the video data to be processed of the target business, the scene recognition of picture frames is performed, the sequence features and statistical features are extracted, and the deep learning model is used to classify the data categories and detect abnormal information in the video.
It improves the accuracy of video data feature representation and abnormal information detection, reduces the cost and time of manual review, and improves the efficiency of the video review system.
Smart Images

Figure CN118537764A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device and storage medium. Background Art
[0002] With the rapid development of Internet technology, people have higher and higher requirements for entertainment forms. Games are an important form of entertainment, and abnormal information in games may affect the user's interaction process, such as cheating plug-ins, etc. How to identify abnormalities through videos has become a difficult problem.
[0003] Generally, the sampled video frames can be identified based on the detection rules, that is, firstly some frames are sampled based on the video, then recognition and detection based on the image content are performed, and finally the abnormality of the video is judged based on the image scene information obtained by image recognition.
[0004] However, there is randomness in the detection process of sampling some frames, and the sampled frames cannot accurately represent all frames in the video, which affects the accuracy of processing abnormal information in the video data.
[0005] Embodiment Content
[0006] In view of this, the present application provides a data processing method that can effectively improve the accuracy of abnormal information processing in video data.
[0007] The first aspect of the present application provides a data processing method, which can be applied to a system or program including a data processing function in a terminal device, and specifically includes:
[0008] Obtain the video data to be processed corresponding to the target business;
[0009] Performing scene recognition on the picture frames in the to-be-processed video data to obtain scene recognition information corresponding to each picture frame, wherein the scene recognition information is determined based on a plurality of object states corresponding to the target service;
[0010] Extracting features of the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0011] Based on the trigger information of the key event, the number of suspicious frames and normal frames of the sequence feature is counted to obtain the statistical features corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state;
[0012] The sequence feature and the statistical feature are respectively used to perform data classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature;
[0013] The first prediction information and the second prediction information are weighted to obtain target prediction information, and abnormal information in the video data to be processed is detected according to the target prediction information.
[0014] Optionally, in some possible implementations of the present application, performing scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame includes:
[0015] Calling a video operation function to perform a cut operation on the video data to be processed to obtain a frame sequence;
[0016] Obtaining a target detection model corresponding to the target business;
[0017] Inputting the picture frames in the frame sequence into the target detection model for scene recognition to determine the target objects and scene elements in the picture frames;
[0018] Determining transparency information corresponding to the target object, and determining state information corresponding to the scene element;
[0019] The object state in the picture frame is determined based on the transparency information and the state information, so as to determine the scene recognition information corresponding to each picture frame according to the object state.
[0020] Optionally, in some possible implementations of the present application, the extracting features of the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed includes:
[0021] Acquiring transparency information and status information of the object status indication;
[0022] Combining the transparency information and the state information to obtain a plurality of the preset dimensions;
[0023] Extracting features of the scene recognition information according to the preset dimension to obtain feature identifiers corresponding to each picture frame;
[0024] The sequence feature corresponding to the video data to be processed is determined based on the feature identifier.
[0025] Optionally, in some possible implementations of the present application, the number of suspicious frames and normal frames of the sequence feature is counted based on the trigger information of the key event to obtain the statistical features corresponding to the video data to be processed, including:
[0026] Marking the picture frames based on the sequence features to obtain the suspicious frames and the normal frames;
[0027] Determine trigger information corresponding to the key events, and determine trigger time points corresponding to each of the key events according to the trigger information;
[0028] Taking each of the trigger time points as a reference frame, counting the number of the suspicious frames and the normal frames for the picture frames around the reference frame according to a first range, so as to obtain year-on-year statistical information;
[0029] Calculations are performed based on the year-on-year statistical information according to statistical items to obtain statistical features corresponding to the video data to be processed.
[0030] Optionally, in some possible implementations of the present application, the calculation is performed according to statistical items based on the year-on-year statistical information to obtain statistical features corresponding to the video data to be processed, including:
[0031] Determining a magnification parameter of a magnified component in a scene element according to the state information indicated in the sequence feature;
[0032] Determine the distance information corresponding to the triggering of the key event based on the sequence feature;
[0033] Converting the distance information according to the magnification parameter to obtain a standard distance;
[0034] Calculating according to statistical items based on the year-on-year statistical information to obtain year-on-year features corresponding to the video data to be processed;
[0035] The standard distance is associated with the year-on-year feature to obtain the statistical feature.
[0036] Optionally, in some possible implementations of the present application, the method further includes:
[0037] Determine the target frame corresponding to the trigger time point;
[0038] Taking the target frame as a base point, respectively counting the number of the suspicious frames and the normal frames for the picture frames in different second ranges to obtain year-on-year statistical information;
[0039] Calculation is performed according to statistical items based on the month-on-month statistical information to obtain statistical features corresponding to the video data to be processed.
[0040] Optionally, in some possible implementations of the present application, the method further includes:
[0041] Obtain preset items for target business configuration;
[0042] Perform feature calculations based on the preset items respectively to obtain information values corresponding to the preset items;
[0043] determining key features from the preset items based on the information value;
[0044] The statistical items are updated according to the key features.
[0045] Optionally, in some possible implementations of the present application, updating the statistical items according to the key features includes:
[0046] Determining statistical parameters corresponding to the key features;
[0047] Acquiring scenario parameters used by the target service during the interaction process;
[0048] Based on the matching of the statistical parameters and the scene parameters, if the statistical parameters are within the range of the scene parameters, the statistical items are updated according to the key features.
[0049] Optionally, in some possible implementations of the present application, before respectively using the sequence feature and the statistical feature to perform data category classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature, the method further includes:
[0050] Get training video data;
[0051] Performing scene recognition on the training frames in the training video data to obtain training recognition information corresponding to each training frame, wherein the training recognition information is determined based on a plurality of object states corresponding to the target business;
[0052] Extracting features of the training identification information according to the preset dimension to obtain training sequence features corresponding to the training video data, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0053] Based on the trigger information of the key event, the number of suspicious frames and normal frames of the training sequence feature is counted to obtain the statistical features corresponding to the training video data, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the training frames based on the object state;
[0054] The training sequence feature and the training statistical feature are respectively used to perform data category classification to obtain first training prediction information corresponding to the training sequence feature and second training prediction information corresponding to the statistical feature;
[0055] configuring a first loss function based on the first training prediction information and the classification label corresponding to the training sequence feature;
[0056] configuring a second loss function based on the second training prediction information and the classification label corresponding to the training statistical feature;
[0057] combining the first training prediction information and the second training prediction information to configure a third loss function;
[0058] Performing weighted configuration on the first loss function, the second loss function, and the third loss function to obtain a target loss function;
[0059] The deep learning model is trained based on the target loss function, and the trained deep learning model is used to classify the sequence features and the statistical features into data categories.
[0060] Optionally, in some possible implementations of the present application, the method includes:
[0061] Obtaining the data scale corresponding to the training statistical feature;
[0062] If the data scale does not reach a preset scale, regularization is performed on the features in the second loss function and the third loss function to update the target loss function.
[0063] Optionally, in some possible implementations of the present application, the data processing method is applied to a video review system for a gaming service, and the method further includes:
[0064] Get the data stream to be processed of the game business;
[0065] Inputting the data stream to be processed into a master server, so as to distribute the distribution video data in the data stream to be processed to a plurality of different slave servers respectively;
[0066] Performing frame processing on the distributed video data based on the slave server to obtain a distributed picture frame;
[0067] Sending each of the distributed picture frames from the server to a prediction module to determine target prediction information;
[0068] The target prediction information is forwarded to the main server to review the video in the data stream to be processed to obtain abnormal information in the game business.
[0069] Optionally, in some possible implementations of the present application, the performing frame processing on the distributed video data based on the slave server to obtain a distributed picture frame includes:
[0070] Obtaining an interaction period corresponding to the game service;
[0071] Performing frame processing on the distributed video data based on the slave server to obtain a distributed frame sequence;
[0072] Extracting picture frames from the distribution frame sequence according to the interaction period to obtain the distribution picture frames.
[0073] A second aspect of the present application provides a data processing device, including:
[0074] An acquisition unit, used to acquire the to-be-processed video data corresponding to the target service;
[0075] an identification unit, configured to perform scene identification on the picture frames in the video data to be processed to obtain scene identification information corresponding to each picture frame, wherein the scene identification information is determined based on a plurality of object states corresponding to the target service;
[0076] The recognition unit is further used to extract features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0077] A processing unit, configured to count the number of suspicious frames and normal frames on the sequence feature based on trigger information of a key event, so as to obtain statistical features corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state;
[0078] The processing unit is further used to respectively use the sequence feature and the statistical feature to perform data category classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature;
[0079] The processing unit is further configured to weight the first prediction information and the second prediction information to obtain target prediction information, and detect abnormal information in the video data to be processed according to the target prediction information.
[0080] Optionally, in some possible implementations of the present application, the identification unit is specifically used to call a video operation function to perform a picture cutting operation on the video data to be processed to obtain a frame picture sequence;
[0081] The identification unit is specifically used to obtain a target detection model corresponding to the target service;
[0082] The recognition unit is specifically used to input the picture frames in the frame sequence into the target detection model for scene recognition to determine the target objects and scene elements in the picture frames;
[0083] The recognition unit is specifically used to determine the transparency information corresponding to the target object and determine the state information corresponding to the scene element;
[0084] The recognition unit is specifically configured to determine the state of an object in a picture frame based on the transparency information and the state information, so as to determine the scene recognition information corresponding to each picture frame according to the object state.
[0085] Optionally, in some possible implementations of the present application, the identification unit is specifically used to obtain transparency information and status information of the object status indication;
[0086] The identification unit is specifically configured to combine the transparency information and the state information to obtain the plurality of preset dimensions;
[0087] The recognition unit is specifically used to extract features from the scene recognition information according to the preset dimension to obtain feature identifiers corresponding to each picture frame;
[0088] The identification unit is specifically configured to determine the sequence feature corresponding to the video data to be processed based on the feature identifier.
[0089] Optionally, in some possible implementations of the present application, the processing unit is specifically configured to mark the picture frames based on the sequence features to obtain the suspicious frames and the normal frames;
[0090] The processing unit is specifically used to determine the trigger information corresponding to the key event, so as to determine the trigger time point corresponding to each key event according to the trigger information;
[0091] The processing unit is specifically configured to use each of the trigger time points as a reference frame, and perform quantity statistics of the suspicious frames and the normal frames on picture frames around the reference frame according to a first range, so as to obtain year-on-year statistical information;
[0092] The processing unit is specifically used to perform calculations according to statistical items based on the year-on-year statistical information to obtain statistical features corresponding to the video data to be processed.
[0093] Optionally, in some possible implementations of the present application, the processing unit is specifically configured to determine a magnification parameter of a magnified component in a scene element according to the state information indicated in the sequence feature;
[0094] The processing unit is specifically configured to determine the distance information corresponding to when the key event is triggered based on the sequence feature;
[0095] The processing unit is specifically configured to convert the distance information according to the magnification parameter to obtain a standard distance;
[0096] The processing unit is specifically configured to perform calculations according to statistical items based on the year-on-year statistical information to obtain year-on-year features corresponding to the video data to be processed;
[0097] The processing unit is specifically used to associate the standard distance with the year-on-year feature to obtain the statistical feature.
[0098] Optionally, in some possible implementations of the present application, the processing unit is specifically used to determine a target frame corresponding to the trigger time point;
[0099] The processing unit is specifically configured to perform quantity statistics of the suspicious frames and the normal frames on the picture frames in different second ranges respectively, taking the target frame as a base point, so as to obtain the year-on-year statistical information;
[0100] The processing unit is specifically used to perform calculations according to statistical items based on the month-on-month statistical information to obtain statistical features corresponding to the video data to be processed.
[0101] Optionally, in some possible implementations of the present application, the processing unit is specifically used to obtain a preset item for the target business configuration;
[0102] The processing unit is specifically used to perform feature calculations based on the preset items respectively to obtain information values corresponding to each of the preset items;
[0103] The processing unit is specifically configured to determine key features from the preset items based on the information value;
[0104] The processing unit is specifically used to update the statistical items according to the key features.
[0105] Optionally, in some possible implementations of the present application, the processing unit is specifically used to determine the statistical parameters corresponding to the key features;
[0106] The processing unit is specifically used to obtain the scenario parameters used by the target service during the interaction process;
[0107] The processing unit is specifically configured to match the statistical parameter with the scene parameter, and if the statistical parameter is within a range of the scene parameter, update the statistical item according to the key feature.
[0108] Optionally, in some possible implementations of the present application, the processing unit is specifically used to obtain training video data;
[0109] The processing unit is specifically used to perform scene recognition on the training frames in the training video data to obtain training recognition information corresponding to each training frame, wherein the training recognition information is determined based on multiple object states corresponding to the target business;
[0110] The processing unit is specifically configured to extract features from the training identification information according to the preset dimension to obtain training sequence features corresponding to the training video data, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0111] The processing unit is specifically used to count the number of suspicious frames and normal frames of the training sequence features based on the trigger information of the key event to obtain the statistical features corresponding to the training video data, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the training frames based on the object state;
[0112] The processing unit is specifically used to respectively use the training sequence feature and the training statistical feature to perform data category classification to obtain first training prediction information corresponding to the training sequence feature and second training prediction information corresponding to the statistical feature;
[0113] The processing unit is specifically configured to configure a first loss function based on the first training prediction information and the classification label corresponding to the training sequence feature;
[0114] The processing unit is specifically configured to configure a second loss function based on the second training prediction information and the classification label corresponding to the training statistical feature;
[0115] The processing unit is specifically configured to combine the first training prediction information and the second training prediction information to configure a third loss function;
[0116] The processing unit is specifically used to perform weighted configuration on the first loss function, the second loss function and the third loss function to obtain a target loss function;
[0117] The processing unit is specifically used to train the deep learning model based on the target loss function, and the trained deep learning model is used to classify the sequence features and the statistical features into data categories.
[0118] Optionally, in some possible implementations of the present application, the processing unit is specifically used to obtain the data scale corresponding to the training statistical feature;
[0119] The processing unit is specifically used to regularize the features in the second loss function and the third loss function if the data scale does not reach a preset scale, so as to update the target loss function.
[0120] Optionally, in some possible implementations of the present application, the processing unit is specifically used to obtain a data stream to be processed of a game service;
[0121] The processing unit is specifically used to input the data stream to be processed into the master server, so as to distribute the distribution video data in the data stream to be processed to a plurality of different slave servers respectively;
[0122] The processing unit is specifically configured to perform frame processing on the distributed video data based on the slave server to obtain a distributed picture frame;
[0123] The processing unit is specifically configured to send each of the distributed picture frames from the server to the prediction module to determine target prediction information;
[0124] The processing unit is specifically used to forward the target prediction information to the main server to review the video in the data stream to be processed to obtain abnormal information in the game business.
[0125] Optionally, in some possible implementations of the present application, the processing unit is specifically used to obtain an interaction period corresponding to the game service;
[0126] The processing unit is specifically configured to perform frame processing on the distributed video data based on the slave server to obtain a distributed frame sequence;
[0127] The processing unit is specifically configured to extract picture frames from the distribution frame sequence according to the interaction period to obtain the distribution picture frames.
[0128] The third aspect of the present application provides a computer device, including: a memory, a processor and a bus system; the memory is used to store program code; the processor is used to execute the data processing method described in the first aspect or any one of the first aspects according to the instructions in the program code.
[0129] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enables the computer to execute the data processing method described in the first aspect or any one of the first aspects.
[0130] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data processing method provided in the first aspect or various optional implementations of the first aspect.
[0131] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0132] By obtaining the video data to be processed corresponding to the target business; then performing scene recognition on the picture frames in the video data to be processed to obtain the scene recognition information corresponding to each picture frame, the scene recognition information is determined based on multiple object states corresponding to the target business; and extracting features from the scene recognition information according to a preset dimension to obtain the sequence features corresponding to the video data to be processed, the preset dimension is obtained based on at least one object state configuration; then performing a number count of suspicious frames and normal frames on the sequence features based on the trigger information of a key event to obtain the statistical features corresponding to the video data to be processed, the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and using the sequence features and statistical features to classify the data categories respectively to obtain the first prediction information corresponding to the sequence features and the second prediction information corresponding to the statistical features; and then weighting the first prediction information and the second prediction information to obtain the target prediction information, and detecting the abnormal information in the video data to be processed according to the target prediction information. Thus, the video detection process based on scene information is realized, and the accuracy of the representation of the video data features is improved by using the sequence features indicating the time sequence of the video data and combining the statistical features with the abnormal characterization capability to detect at the same time, and the accuracy of detecting and processing the abnormal information in the video data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0133] 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0134] Figure 1 A diagram of the network architecture that runs the data processing system;
[0135] Figure 2 A flow chart of data processing provided in an embodiment of the present application;
[0136] Figure 3A flowchart of a data processing method provided in an embodiment of the present application;
[0137] Figure 4 A schematic diagram of a scenario of a data processing method provided in an embodiment of the present application;
[0138] Figure 5 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0139] Figure 6 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0140] Figure 7 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0141] Figure 8 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0142] Fig. 9 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0143] Fig.10 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0144] Fig.11 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0145] Fig.12 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0146] Fig.13 A flowchart of another data processing method provided in an embodiment of the present application;
[0147] Fig.14 A schematic diagram of another data processing method provided in an embodiment of the present application;
[0148] Fig.15 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0149] Fig.16 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0150] Fig.17 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0151] The embodiment of the present application provides a data processing method and related devices, which can be applied to a system or program containing a data processing function in a terminal device, by obtaining the video data to be processed corresponding to the target business; then performing scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame, and the scene recognition information is determined based on multiple object states corresponding to the target business; and extracting features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, and the preset dimension is obtained based on at least one object state configuration; then counting the number of suspicious frames and normal frames on the sequence features based on trigger information of a key event to obtain statistical features corresponding to the video data to be processed, the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and classifying the data categories using the sequence features and the statistical features respectively to obtain first prediction information corresponding to the sequence features and second prediction information corresponding to the statistical features; then weighting the first prediction information and the second prediction information to obtain target prediction information, and detecting abnormal information in the video data to be processed based on the target prediction information. Thereby, a video detection process based on scene information is realized. Since sequence features indicating the timing of video data are used and statistical features with abnormal characterization capabilities are combined for simultaneous detection, the accuracy of video data feature representation is improved, and the accuracy of abnormal information detection and processing in video data is improved.
[0152] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0153] It should be understood that the data processing method provided in the present application can be applied to a system or program in a terminal device that includes a data processing function, such as a video review application. Specifically, the data processing system can be run on a system such as Figure 1 In the network architecture shown in Figure 1As shown in FIG. 1 , it is a network architecture diagram of the operation of the data processing system. As can be seen from the figure, the data processing system can provide a data processing process with multiple information sources, that is, generate corresponding interactive videos through interactive operations on the terminal side, and send the interactive videos to the server for review; it can be understood that Figure 1 A variety of terminal devices are shown in FIG. 1 . The terminal devices may be computer devices. In actual scenarios, more or fewer types of terminal devices may participate in the data processing process. The specific number and type depend on the actual scenario and are not limited here. In addition, Figure 1 One server is shown in the figure, but in an actual scenario, multiple servers may be involved, and the specific number of servers depends on the actual scenario.
[0154] In this embodiment, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, smart voice interaction device, smart home appliance, car terminal and VR / AR and other virtual reality devices, but is not limited to this. The terminal and the server can be directly or indirectly connected by wired or wireless communication, and the terminal and the server can be connected to form a blockchain network, which is not limited in this application.
[0155] It can be understood that the data processing system can run on a personal mobile terminal, for example, as an application such as a video review application, or it can run on a server, or it can run on a third-party device to provide data processing to obtain the processing results of the data of the information source; the specific data processing system can be run in the above-mentioned device in the form of a program, or it can be run as a system component in the above-mentioned device, or it can be used as a cloud service program. This embodiment can be applied to cloud technology, autonomous driving and other scenarios. The specific operation mode depends on the actual scenario and is not limited here.
[0156] With the rapid development of Internet technology, people have higher and higher requirements for entertainment forms. Games are an important form of entertainment, and abnormal information in games may affect the user's interaction process, such as cheating plug-ins, etc. How to identify abnormalities through videos has become a difficult problem.
[0157] Generally, the sampled video frames can be identified based on the detection rules, that is, firstly some frames are sampled based on the video, then recognition and detection based on the image content are performed, and finally the abnormality of the video is judged based on the image scene information obtained by image recognition.
[0158] However, there is randomness in the detection process of sampling some frames, and the sampled frames cannot accurately represent all frames in the video, which affects the accuracy of processing abnormal information in the video data.
[0159] In order to solve the above problems, this application proposes a data processing method, which is applied to Figure 2 In the process framework of data processing shown in Figure 2 As shown, it is a flow chart of data processing provided by an embodiment of the present application. Users interact with services through terminals to obtain video data, and then construct a multidimensional vector sequence based on the scene information of multiple frames in the video data; at the same time, statistical features are constructed based on the characteristics of player cheating. Then, the multivariate and statistical features of the sequence are fully utilized to design an end-to-end model for video cheating detection, which can give the degree of video abnormality and provide it to the reviewers for reference, thereby improving the efficiency of the trial.
[0160] It can be understood that the method provided by the present application can be written as a program to serve as a processing logic in a hardware system, or as a data processing device to implement the above processing logic in an integrated or external manner. As an implementation method, the data processing device obtains the video data to be processed corresponding to the target business; then performs scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame, and the scene recognition information is determined based on multiple object states corresponding to the target business; and extracts features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, and the preset dimension is obtained based on at least one object state configuration; then, based on the trigger information of the key event, the number of suspicious frames and normal frames is counted on the sequence features to obtain statistical features corresponding to the video data to be processed, and the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and the sequence features and statistical features are used to classify the data categories respectively to obtain the first prediction information corresponding to the sequence features and the second prediction information corresponding to the statistical features; and then the first prediction information and the second prediction information are weighted to obtain the target prediction information, and the abnormal information in the video data to be processed is detected according to the target prediction information. Thereby, a video detection process based on scene information is realized. Since sequence features indicating the timing of video data are used and statistical features with abnormal characterization capabilities are combined for simultaneous detection, the accuracy of video data feature representation is improved, and the accuracy of abnormal information detection and processing in video data is improved.
[0161] The solution provided in the embodiments of the present application involves the deep learning technology of artificial intelligence, which is specifically described by the following embodiments:
[0162] Combined with the above process architecture, the following will introduce the data processing method in this application. Please refer to Figure 3 , Figure 3 A flowchart of a data processing method provided in an embodiment of the present application. The management method can be executed by a terminal or a server. The embodiment of the present application at least includes the following steps:
[0163] 301. Obtain to-be-processed video data corresponding to a target service.
[0164] In this embodiment, the target service may be a game or other rule-based interactive service, such as identifying abnormal behaviors in a game (including cheating, malicious behaviors, etc.). The specific game types may be shooting games, fighting games, etc. Here, the first-person shooting game (FPS) game among shooting games is used as an example for explanation, but it is not limited.
[0165] It is understandable that the video data to be processed is the video generated when the user uses the target service. The video records the user's interaction process. By identifying the video data, it can be determined whether the user has cheated.
[0166] 302. Perform scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame.
[0167] In this embodiment, the scene identification information is determined based on multiple object states corresponding to the target business, and the object state includes the state of the interactive object and the state of the scene element. For example, the interactive object can be a targeted target, and the scene element can be a sight. It can be understood that in the cheating scene of FPS games, the interactive object and the scene element are associated. For example, when the interactive object is in state 1, the scene element has a state 2 with an associated relationship. If the scene element is in other states 3 without an associated relationship at this time, this indicates that the object state at this time is suspicious. For example, when the interactive object is a targeted game object and the scene element is a sight, it can be judged by whether the game object is defeated and the state of the game object in the sight. Since the state of the game object in the sight corresponding to the defeat of the game object is normally displayed; and the state of the game object in the sight (i.e., the enemy) is in a perspective state, and the game object is defeated by shooting at the same time, this state is a highly suspicious cheating behavior.
[0168] Specifically, the scene recognition information is used to indicate the sequence features corresponding to the picture frames arranged in time sequence. For the extraction of the picture frames, the video operation function can be first called to perform a cutting operation on the video data to be processed to obtain a frame sequence; then the target detection model corresponding to the target business is obtained. For example, the target detection model used for scene recognition in shooting games is YoloV4; then the picture frames in the frame sequence are input into the target detection model for scene recognition to determine the target objects (such as shooting objects) and scene elements (such as sights) in the picture frames; and determine the transparency information (whether it is perspective) corresponding to the target object, and determine the status information corresponding to the scene elements; and then determine the object status in the picture frame based on the transparency information and the status information, so as to determine the scene recognition information corresponding to each picture frame according to the object status.
[0169] In the above process, the scene recognition information is used to extract the temporal sequence features in the video, and further extract the statistical features. That is, this embodiment uses the recognition of the fusion of sequence features and statistical features. The specific recognition process is as follows: Figure 4 As shown, Figure 4 A scene diagram of a data processing method provided in an embodiment of the present application; that is, firstly, a video operation function based on computer vision (such as cv2.VideoCapture in OpenCV) is used to perform a cut operation on the FPS video, and the video stream data is converted into a frame sequence to obtain multiple RGB picture frame data. Then, a target detection model is used to identify scene state information useful for target classification (the target detection model is an object recognition model, such as YoloV4), and corresponding statistical features are designed and state sequence vectors (i.e., sequence features) are constructed, and then a model integrating statistical features and sequence features is constructed for joint modeling to predict abnormal information and obtain recognition results.
[0170] It is understandable that for the selection of target detection models, a one-stage detection model such as YoloV3, YoloV4 or YoloV5 can be used, that is, only one network is used to simultaneously generate candidate regions and predict the category and position of the object; a two-stage detection model such as Faster RCNN, Cascade RCNN, MaskRCNN can also be used, that is, the objects in the image are first roughly output, and then the output is fine-tuned. The scene changes rapidly in the FPS video used in this embodiment, and the efficiency requirements of the target detection model are high. Therefore, a one-stage model, namely YoloV4, can be used to improve the efficiency of target detection under the premise that the object recognition results are credible.
[0171] In addition, the state of the target object (e.g., shooting object) and the state of the scene element (e.g., sight) contained in the object state also need to be combined with transparency information, that is, whether the state is perspective, indicating whether there is a suspicion of cheating; in a possible scenario, the object state is as follows Figure 5 As shown, Figure 5 A scene schematic diagram of another data processing method provided in an embodiment of the present application; the figure shows that the perspective information of the target object in the object state includes perspective, semi-perspective and normal, and the scene elements include a zoom lens, a crosshair, a smoke screen and a segmented scene. This is because for cheating scenes in FPS games, it can be judged by whether it is a sniper kill and the state of the character. For example, the enemy is in a perspective state, and at the same time the enemy is defeated by shooting, there is suspicion of cheating.
[0172] 303. Perform feature extraction on the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed.
[0173] In this embodiment, the preset dimension is obtained based on at least one object state configuration, and the preset dimension is used to indicate the state of the shooting object in the picture frame, the state of the virtual element in the scene, and the combination of multiple states, so as to comprehensively describe the representation information contained in the picture frame. Therefore, the sequence feature is the integration of the representation information of the picture frames in the picture frame sequence, reflecting the changes of the human objects and scenes in the video data.
[0174] Specifically, for determining the sequence feature, the transparency information and state information of the object state indication may be first obtained; then, the transparency information and the state information are combined to obtain multiple preset dimensions, such as Figure 6 In the scene shown, each frame can describe the information of this frame from multiple dimensions, and multiple frames can form a multivariate sequence, such as a feature combination of whether to aim, whether to snipe, and whether to open the scope; then the scene recognition information is feature extracted according to the preset dimensions to obtain the feature identifiers corresponding to each picture frame, that is, the identifiers corresponding to different states or state combinations, to facilitate comparison during the recognition process; and then determine the sequence features corresponding to the video data to be processed based on the feature identifiers.
[0175] 304. Count the number of suspicious frames and normal frames of the sequence features based on the trigger information of the key event to obtain statistical features corresponding to the video data to be processed.
[0176] In this embodiment, the key event is an event associated with abnormal behaviors such as cheating. For example, in the cheating scenario of FPS games, whether to snipe is the key to judging cheating, so the key event is the sniping event. In addition, the key event corresponds to the target business, that is, other events can also be used as key events in other types of games, such as the change of the resources of the object in the operation game, that is, the time used to reach a certain amount of resources.
[0177] The division of suspicious frames and normal frames is associated with key events. A suspicious frame is a frame in which the object state does not conform to the preset object state in the key event, and a normal frame is a frame in which the object state conforms to the preset object state in the key event.
[0178] In a possible scenario, when the key event is the event of defeating a game object in the game, the preset object state is that when the game object is defeated, the scope is in a normal display state (that is, the scene elements will not undergo changes in the penetration effect). Therefore, the suspicious frame is that when the game object is defeated, the scope is in a state with a penetration display effect such as perspective or semi-perspective; the normal frame is that when the game object is defeated, the scope is in a normal display state.
[0179] In the above example, the preset object state includes interactive objects and scene elements. In another possible scenario, the preset object state can also be determined based on any one of the interactive objects and scene elements. For example, if the preset object state is that the height of the interactive object from the ground is less than 1 meter, then the frame can be that the height of the interactive object from the ground in the frame is greater than 1 meter, and the normal frame can be that the height of the interactive object from the ground in the frame is less than or equal to 1 meter. This is only an example, and the specific preset object state and the corresponding division of suspicious frames and normal frames are determined by the elements contained in the game scene.
[0180] It is understandable that in order to perform feature characterization based on key events, statistics of suspicious frames and normal frames can be performed through the time points indicated by the trigger information of the key events, that is, feature statistics can be performed from the dimension of frame changes in the video, thereby reflecting the changes in key events from an overall perspective and avoiding interference from a single abnormal situation; specifically, suspicious frames and normal frames can be obtained by dividing image frames based on the state of the object, for example, if the state of the object is sniping + perspective, it is divided into suspicious frames, thereby realizing the further conversion of multi-variable sequence features in the video frame sequence into statistical features according to the key features indicating that the player is cheating.
[0181] Specifically, the process of obtaining statistical features based on the number of suspicious frames and normal frames can be determined based on the changes triggered by key events. Since the video data is composed of multiple sniping clips and multiple sniping points, year-on-year features and month-on-month features can be constructed based on the sniping points (key event triggers) to obtain statistical features. Among them, the year-on-year features and month-on-month features are used to indicate the direction and degree of development and change of suspicious frames during the comparison period; the year-on-year features use different trigger time points to compare the parameters of statistical items, and the year-on-year features are conducive to showing the change relationship between multiple sniping; while the month-on-month features compare the parameters of statistical items within the frame range divided at the same trigger time point, which is conducive to showing the game scene when the interactive operations are sparse, that is, the statistical ranges of the two are different, and the statistical features of different ranges are used to improve the representation ability of the statistical features for video frames.
[0182] In a possible scenario, for a scenario where sniping is a key event, the statistical features include: Figure 7 The dimensions shown, Figure 7 A schematic diagram of a scenario of another data processing method provided in an embodiment of the present application; for year-on-year features, year-on-year statistics of different frames before sniping, such as year-on-year features obtained from different frame ranges such as 10 and 20 frames before sniping, including the sum of the good and bad ratios (the ratio of suspicious frames (black frames) to normal frames (white and gray frames)) of 10 frames before or after sniping, the average of the aiming distances before multiple sniping (the standardized distance between the perspective figure and the scope / front sight), and the average of the good and bad ratios of multiple sniping; wherein the division of the above black frames and white frames can refer to Figure 6 Configure the corresponding relationship of the state combination in the scene shown.
[0183] Specifically, for the process of performing year-on-year feature extraction on a set frame number range, the picture frames can be first marked based on the sequence features to obtain suspicious frames and normal frames; then the trigger information corresponding to the key event is determined to determine the trigger time point corresponding to each key event according to the trigger information; and each trigger time point is used as a reference frame, and the number of suspicious frames and normal frames of the picture frames around the reference frame is counted according to the first range to obtain year-on-year statistical information, wherein the statistical information can be the ratio of suspicious frames (black frames) to normal frames (white frames or gray frames) in the 10 frames before the sniper kill, such as Figure 8 As shown, Figure 8 A scene diagram of another data processing method provided for an embodiment of the present application, wherein the first 10 frames before a sniper kill are divided into two sections, the number of black frames and white frames therein are counted, and the black-white ratio is obtained as a year-on-year feature; the statistical information can also mark the order of suspicious frames and normal frames, and the statistical information can also be the average distance of sniper kills in the first 20 frames of multiple sniper kills; then, calculations are performed according to the statistical items based on the year-on-year statistical information to obtain the year-on-year features corresponding to the video data to be processed.
[0184] In addition, the year-on-year feature can also be the sum of multiple black-white ratios in the above example, such as Fig. 9 As shown, Fig. 9 A scene schematic diagram of another data processing method provided in an embodiment of the present application shows that the black-white ratio is calculated for multiple sniping according to the above-mentioned black frame and white frame quantity statistics method, and the year-on-year feature is further obtained by summing up, thereby integrating the overall features between multiple sniping and improving the characterization ability of the year-on-year feature.
[0185] Optionally, for scenes using aiming distance as a statistical feature, since there are different observation perspectives in shooting games, namely, scene perspective and aiming perspective, the distances displayed in different perspectives may be different. In this case, the distances need to be standardized to facilitate the comparison of distances in different perspectives; namely, first, according to the status information indicated in the sequence feature, the magnification parameters of the magnifying components (such as sights, telescopes, and other components with magnifying functions) in the scene elements are determined, such as the magnification of the aiming mirror; then, based on the sequence feature, the distance information corresponding to the triggering of the key event is determined; and the distance information is converted according to the magnification parameter to obtain the standard distance, namely, the aiming distance is converted into the distance under the scene perspective according to the magnification parameter; and then, based on the year-on-year statistical information, calculations are performed according to the statistical items to obtain the year-on-year features corresponding to the video data to be processed; and the standard distance is associated with the year-on-year features to obtain the statistical features, thereby improving the accuracy of the distance as a statistical feature.
[0186] In another possible scenario, for the month-on-month feature, that is, the parameters of the statistical items are compared within the frame range divided at the same trigger time point (sniper kill point), including the 80 frames before the sniper kill, taking the sniper kill as the base point, dividing it into half before and after, taking the maximum good and bad ratio, and then summing up the multiple sniper kills; each segment is divided into half before and after, and the good and bad ratio (good: white, gray, bad: black frames) is used as the standard deviation, and then the statistical average of multiple sniper kills is calculated; or based on the same sniper kill, the difference between the rear segment and the front segment is used to obtain a first-order difference sequence, the standard deviation of the difference sequence is calculated, and then the average of multiple sniper kills is calculated.
[0187] Specifically, the month-on-month feature can be obtained by performing month-on-month statistics on the previous frames of the same sniping point, that is, first determine the target frame corresponding to the trigger time point; then take the target frame as the base point, respectively count the number of suspicious frames and normal frames of the picture frames in different second ranges to obtain month-on-month statistical information, for example, respectively count the 10 or 80 frames before the same sniping, take the sniping frame as the base point for sampling, and then perform month-on-month statistics; and calculate according to the statistical items based on the month-on-month statistical information to obtain the statistical features corresponding to the video data to be processed. In addition, in the month-on-month statistical process, in order to show the fluctuation of the data, the standard deviation of the proportion of black frames and white frames can also be calculated, so as to obtain the statistical features based on the standard deviation statistics.
[0188] Optionally, the statistical range of the year-on-year feature and the quarter-on-quarter feature may also be the frames before and after different sniping kills, such as the year-on-year statistics of frames before and after different sniping kills in the range of 10 or 20 frames before different sniping kills; the statistical range may also be based on time settings, such as the quarter-on-quarter statistics of the average segmented frames in the video frames of the first 4 seconds of the same sniping kill, that is, based on the 4 seconds before the sniping kill, divided into 8 segments on average, and the statistical value of the good-bad ratio; the above statistical ranges are all obtained based on the sniping kill point, and the value of the frame number depends on the actual scene, which is not limited here.
[0189] In addition, the statistical process of the above-mentioned year-on-year and month-on-month features can also be described by an automatic script, so as to convert the sequence features in the video frame into statistical features, and then make a selection based on the information value and feature relevance to obtain important key features. Among them, the information value (IV) is used to indicate the contribution of the feature to the target prediction, that is, the predictive ability of the feature. The higher the IV value, the stronger the predictive ability of the feature and the higher the information contribution. Therefore, it can be seen that the information value of each statistical item is calculated to perform targeted statistics, that is, first obtain the preset items configured for the target business; then perform feature calculations based on the preset items to obtain the information value corresponding to each preset item; and determine the key features from the preset items based on the information value; and then update the statistical items according to the key features. For example, the black and white frame ratio of each sniper kill can be summed, and the sum value can be used as the IV value to select representative sniper kill events.
[0190] Furthermore, since the data in the sniping scene may change due to the development of the battle, the statistical items can also be dynamically updated, for example, the sniping situation during the battle period is different from the sniping situation during the opening period. That is, first determine the statistical parameters corresponding to the key features; then obtain the scene parameters used by the target business during the interaction process, such as setting the number of sniping during the battle period to be greater than 5; then match based on the statistical parameters and the scene parameters, if the statistical parameters are within the range of the scene parameters, then update the statistical items according to the key features, thereby improving the adaptability of the statistical items to the current scene and improving the representation effect of the statistical features.
[0191] 305. Use the sequence feature and the statistical feature to classify the data categories respectively, so as to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature.
[0192] In this embodiment, sequence features and statistical features are used to classify data categories, that is, classification scores of abnormal data and normal data are calculated based on sequence features and statistical features, that is, first prediction information corresponding to sequence features and second prediction information corresponding to statistical features.
[0193] Specifically, the process of calculating the classification scores of abnormal data and normal data based on sequence characteristics and statistical characteristics is performed using a deep learning model, such as Fig.10 As shown, Fig.10 A schematic diagram of another data processing method provided in the embodiment of the present application; the statistics and sequences obtained through the above embodiment can be used to construct a fused end-to-end model, which is different from the traditional separate modeling method. Among them, in terms of structure, the statistical features and sequence features are equal, and a fully connected layer is made for the final prediction scores of the two features. The final weight ratio of each feature should be learned, that is, when calculating the loss, multiple losses are weighted to assist in optimization, while weighing the importance of the two parts of the features.
[0194] 306. Weight the first prediction information and the second prediction information to obtain target prediction information, and detect abnormal information in the video data to be processed according to the target prediction information.
[0195] In this embodiment, the process of obtaining target prediction information by weighting the first prediction information and the second prediction information based on the deep learning model is as follows: Fig.11 As shown, Fig.11 A scene diagram of another data processing method provided for an embodiment of the present application; the deep learning model includes an input layer, a representation layer, a hidden layer and a joint optimization layer, wherein the input layer is used to input the scene information recognized in each frame, mainly based on the target detection model to identify each frame of the image that is useful for video cheating. Object information, including character status, whether it is a sniper, zoom, etc., is identified, and features are combined and discretized, and then constructed into a data form of an M-dimensional vector with a sequence length of L.
[0196] In addition, the embedding layer is used to perform category embedding for different object categories, and then perform element-wise addition to represent them into vectors with a dimension of M, that is, the output data dimension is (L, M). In the vector calculation process, if there are numerical features in the scene information, the fully connected layer is used to convert the feature vector into a dense vector.
[0197] For the hidden layer, it includes the gated recurrent unit (GRU) and the multi-head attention mechanism layer. Specifically, the sequence information composed of the video frame scene information is converted into a global vector of fixed dimension through GRU and the multi-head attention mechanism, which represents the global feature vector of the player's behavior that changes with time and scene based on the original sequence scene. Specifically, firstly, the behavior information is modeled by GRU combined with the time dimension, using the following formula:
[0198] H=[h1,h2,…,hn]=GRU([x1,X2,…,Xn])
[0199] Among them, x represents the time series and h represents the time-labeled action sequence.
[0200] Then the attention mechanism is used to mark the key abnormal frames. The specific principle of the attention mechanism is as follows:
[0201] a i =softmax(V i tanh(W i H T ))
[0202] P2=aH T
[0203] Among them, H is the output of GRU, W and V are learnable parameters, which can learn the weight a of each frame scene information in the sequence. After marking the abnormal frame, the weighted sum is performed to obtain the global feature vector of the behavior sequence. At the same time, a multi-head attention mechanism is adopted, that is, repeated attention is performed multiple times, and multiple attentions focus on various cheating situations of the fragment features. Then, the global feature vector of the player frame scene information is passed through a fully connected binary classification layer to obtain the first prediction information, namely the scores time_score0 and time_score1; and input into the joint optimization layer to add an auxiliary loss function based on Softmax binary cross entropy to optimize the sequence feature information separately.
[0204] The hidden layer processes the statistical features, that is, normalizes the continuous statistical features obtained by aggregation, and then obtains the global feature vector of the statistical variable through the fully connected layer. Finally, the second prediction information, namely the scores H_feature_score0 and H_feature_score1, is obtained through the fully connected classification layer; and input into the joint optimization layer to add an auxiliary loss function based on the Softmax binary cross entropy to optimize the information of the sequence features separately.
[0205] For the joint optimization layer, the scores obtained by the manually designed statistical features and the scores of the sequence features of the original frame scene information are weighted through the fully connected layer to output the final classification result. In terms of structure, the entire model treats statistical and sequence features equally, and the final prediction scores of the two features are fully connected. The final weight ratio of each feature can be adaptively learned. In terms of loss information, multiple losses are weighted to help optimize the parameters of the network, avoid overfitting, and balance the importance of the two parts of the features.
[0206] Specifically, for the training process involving loss calculation, a Softmax-based binary cross entropy objective function is used for optimization, and the Adam algorithm is used to optimize the parameters of each layer of the model, and the learning rate is set to 0.0001. That is, first obtain the training video data; then perform scene recognition on the training frames in the training video data to obtain training recognition information corresponding to each training frame, and the training recognition information is determined based on multiple object states corresponding to the target business; and perform feature extraction on the training recognition information according to a preset dimension to obtain a training sequence feature corresponding to the training video data, and the preset dimension is obtained based on at least one object state configuration; then, based on the trigger information of the key event, the number of suspicious frames and normal frames of the training sequence features is counted to obtain the statistical features corresponding to the training video data, and the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the training frames based on the object state; and the training sequence features and training statistical features are respectively used for Data categories are classified to obtain first training prediction information corresponding to training sequence features and second training prediction information corresponding to statistical features; further, a first loss function is configured based on the first training prediction information and the classification labels corresponding to the training sequence features; then a second loss function is configured based on the second training prediction information and the classification labels corresponding to the training statistical features; and the first training prediction information and the second training prediction information are combined to configure a third loss function; then the first loss function, the second loss function and the third loss function are weighted to obtain a target loss function; and then a deep learning model is trained based on the target loss function, and the trained deep learning model is used to classify sequence features and statistical features into data categories.
[0207] Optionally, in order to avoid overfitting during training, L1 and L2 regularization are added to the weight parameters of the fully connected layer used for weighting in the joint optimization layer. Specifically, L1 regularization is achieved by adding the sum of the absolute values of all feature coefficients to the original objective function, while L2 regularization is achieved by adding the sum of the squares of all feature coefficients to the original objective function. In addition, regularization can also be triggered when the data scale does not reach the preset scale. This is because overfitting is prone to occur when the data scale is too small, that is, the data scale corresponding to the training statistical features is first obtained; if the data scale does not reach the preset scale, the features in the second loss function and the third loss function are regularized to update the target loss function.
[0208] It is understandable that regularization is a behavior that is intended to reduce test error (sometimes increasing training error). When constructing a machine learning model, its purpose is to make the model perform well when faced with new data. When a complex model (such as a neural network) is used to fit the data, overfitting is prone to occur, that is, the training set performs well while the test set performs poorly, which will lead to a decrease in the generalization ability of the model; therefore, regularization is needed to reduce the complexity of the model.
[0209] In one possible scenario, using the above trained deep learning model, we can get Fig.12 The test results shown are Fig.12 A schematic diagram of another data processing method provided in an embodiment of the present application; that is, in an offline video test set where the pure black-white ratio is 522:5673 after manual confirmation, the black-white ratio at 90% recall is evaluated, and the prediction effects of each model are shown in (1) and (2) below, where the statistics + sequence in (1) is represented as follows Fig.13 The structure shown. For (2), two methods based on probability and score integration were tested, and it was found that the method based on score integration was the best.
[0210] This embodiment first identifies the scene information, then constructs a multi-dimensional vector and statistical features, and finally makes a classification scheme based on the score integration model. On this test set, if you guess randomly, the accuracy is about 0.085, while the model proposed in this embodiment has an accuracy of 0.645 and a recall of 0.233. Compared with random, when covering 50% at the same time, the accuracy is improved by about 6 times. Therefore, this embodiment can sort the abnormal suspiciousness of the video, give priority to reviewing highly suspicious videos, and improve the efficiency of handling abnormal game behaviors. At the same time, it alleviates the problem of insufficient manpower, and discovers as many abnormal videos as possible with limited manpower.
[0211] In combination with the above embodiments, it can be known that by obtaining the video data to be processed corresponding to the target business; then performing scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame, and the scene recognition information is determined based on multiple object states corresponding to the target business; and extracting features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, and the preset dimension is obtained based on at least one object state configuration; then based on the trigger information of the key event, the number of suspicious frames and normal frames is counted on the sequence features to obtain statistical features corresponding to the video data to be processed, the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and using the sequence features and statistical features to classify the data categories respectively to obtain the first prediction information corresponding to the sequence features and the second prediction information corresponding to the statistical features; and then weighting the first prediction information and the second prediction information to obtain the target prediction information, and detecting abnormal information in the video data to be processed according to the target prediction information. Thereby, a video detection process based on scene information is realized. Since sequence features indicating the timing of video data are used and statistical features with abnormal characterization capabilities are combined for simultaneous detection, the accuracy of video data feature representation is improved, and the accuracy of abnormal information detection and processing in video data is improved.
[0212] The above embodiment introduces the process of detecting anomalies in video data. Therefore, the data processing has been applied to the video review system of the gaming business. The following is an explanation of this scenario. Fig.13 , Fig.13 A flowchart of another data processing method provided in an embodiment of the present application, the embodiment of the present application at least includes the following steps:
[0213] 1301. Obtain a data stream to be processed of a game service.
[0214] In this embodiment, the acquisition of the data stream to be processed can be single-threaded traffic access, that is, directly accessing the target game to obtain real-time game data; the data stream to be processed can also be distributed to the data platform and then allocated, so that the review process of multiple games can be carried out.
[0215] In the game video review scenario, after receiving the video to be confirmed from the feedback channel, the customer service staff generally needs to watch each video in full before confirming whether the game process corresponding to the video is cheating. However, a large part of the feedback videos are normal, and it requires too much manpower cost for customer service to fully review all videos. In addition, in some game scenarios, the number of users is large, and more videos to be confirmed may be generated accordingly, that is, the number of feedback on abnormal game situations is also very large; at this time, if it depends entirely on manual viewing and confirmation, the review process is inefficient and cannot provide users with timely feedback, affecting the experience.
[0216] By using the video data processing method of this embodiment, the suspicious probability of video anomalies can be obtained, and then highly suspicious videos are recommended to customer service for review, thereby improving the review efficiency of customer service. The effect is to more than double the manpower and save the cost of manual confirmation.
[0217] At the same time, the video classification scheme can also be used as an auxiliary confirmation method, and then combined with other strategies to make further judgments on abnormal game behavior.
[0218] 1302. Input the data stream to be processed into the master server, so as to distribute the distribution video data in the data stream to be processed to a plurality of different slave servers respectively.
[0219] In this embodiment, the master server and the slave server are distributed terminals associated through a wired or wireless network, and the specific terminal form depends on the actual scenario.
[0220] Specifically, the process of distributing the distributed video data in the data stream to be processed to a plurality of different slave servers may be an even distribution, that is, the data stream to be processed is evenly divided according to the number of slave servers.
[0221] Optionally, the process of distributing to multiple different slave servers can also be dynamically distributed based on the load status of the slave servers, for example, the distribution volume is large when the slave servers are idle, and the distribution volume is small when the slave servers are busy, so as to make full use of the processing resources of each slave server.
[0222] 1303. Perform frame processing on the distributed video data from the server to obtain a distributed picture frame.
[0223] In this embodiment, for the extraction of the distribution picture frame, a video operation function may be called to perform a cut operation on the distribution video data to obtain the distribution picture frame, that is, a frame sequence.
[0224] Optionally, considering that shooting games may have periods of intensive interaction, such as the final round period, the efficiency of anomaly detection is highest at this time, so the interaction period corresponding to the game business can be obtained; then, frame processing is performed on the distributed video data from the server to obtain a distributed frame sequence; and then, picture frames are extracted from the distributed frame sequence according to the interaction period to obtain distributed picture frames, so as to perform targeted anomaly detection and improve audit efficiency.
[0225] 1304. Send each distributed picture frame from the server to the prediction module to determine target prediction information.
[0226] In this embodiment, the prediction module is configured Figure 3The deep learning model in the illustrated embodiment first forms a multidimensional vector sequence based on the scene information of multiple frames in the video data; and constructs statistical features based on the characteristics of player cheating. Then, the multivariate and statistical features of the sequence are fully utilized and input into the deep learning model to detect video cheating and obtain target prediction information. That is, scene recognition is performed on the distributed picture frames to obtain scene recognition information corresponding to each distributed picture frame, and the scene recognition information is determined based on multiple object states corresponding to the target business; and the scene recognition information is feature extracted according to a preset dimension to obtain sequence features corresponding to the video data to be processed, and the preset dimension is obtained based on at least one object state configuration; then, based on the trigger information of the key event, the number of suspicious frames and normal frames is counted on the sequence features to obtain statistical features corresponding to the video data to be processed, and the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and the sequence features and statistical features are respectively used to classify the data categories to obtain the first prediction information corresponding to the sequence features and the second prediction information corresponding to the statistical features; and then the first prediction information and the second prediction information are weighted to obtain the target prediction information.
[0227] Specifically, the target prediction information includes the suspicious degree of the data stream to be processed, that is, the score of the suspicious classification, and the corresponding label is configured based on the suspicious degree to facilitate the subsequent distribution of manual confirmation.
[0228] In one possible scenario, the deep information model configured in the prediction module can perform model updates based on the feedback recognition results, including but not limited to updating statistical items of statistical features, updating learnable parameters of the deep model, etc.
[0229] 1305. Forward the target prediction information to the main server to review the video in the data stream to be processed to obtain abnormal information in the game business.
[0230] In this embodiment, the target prediction information is identified on the main server to obtain the anomaly label of the data stream to be processed. If further verification is required, it can also be uploaded to the review platform for manual confirmation to improve the accuracy of anomaly detection.
[0231] Based on the characteristics of FPS games, this embodiment will first identify the scene information of each frame of the video, and then construct a multi-dimensional vector sequence based on the scene information of multiple frames; at the same time, statistical features are constructed based on the characteristics of player cheating. Then, the multivariate and statistical features of the sequence are fully utilized to design an end-to-end model. The model can take into account the characteristics of the business and the time series features that are difficult to mine from the original data to achieve better results. Finally, this embodiment provides a more general multi-stage FPS game video cheating detection solution, which can give the degree of video abnormality and provide it to auditors for reference to improve trial efficiency.
[0232] In a possible scenario, for the distributed configuration of the master server and the slave server in the above embodiment, Fig.14 The review process shown, Fig.14 A schematic diagram of a scenario of another data processing method provided for an embodiment of the present application; the figure shows a process of video data distribution by a master server (Master) and a slave server (Slaver1 to N), wherein the master server is responsible for data distribution and result collection, and by distributing links of videos to be confirmed to multiple slave servers, so that the slave server performs data preprocessing, the slave server is responsible for pulling video data and cutting and cutting dry work, so that each slave server uploads the preprocessed video data to an interface server, the interface server is used to associate a prediction server (prediction module) configured with a prediction model, the prediction server is an online prediction module responsible for prediction work involving prediction models, including predictions of positioning points and classification predictions of videos, and the prediction module can be composed of a GPU cluster or a Docker machine. The prediction result is obtained through the prediction server, and the result is returned according to the acquisition path; in addition, the data source of the master server is a data platform, which can be a data platform for videos to be confirmed that integrate multiple games, and the data platform can upload the results uploaded by the master server (i.e., suspicious videos or suspicious video IDs) to the video review platform for manual confirmation, that is, display to the customer service for manual confirmation.
[0233] Through the above data distribution architecture, the processing flow of the entire video review system is carried out asynchronously, separating the data preprocessing and model prediction. This is conducive to improving prediction efficiency and processing larger amounts of video data.
[0234] In order to better implement the above solution of the embodiment of the present application, the following also provides related devices for implementing the above solution. Fig.15 , Fig.15 This is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 1500 includes:
[0235] An acquisition unit 1501 is used to acquire the to-be-processed video data corresponding to the target service;
[0236] The recognition unit 1502 is used to perform scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame, wherein the scene recognition information is determined based on multiple object states corresponding to the target service;
[0237] The recognition unit 1502 is further configured to extract features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0238] The processing unit 1503 is used to count the number of suspicious frames and normal frames on the sequence feature based on the trigger information of the key event to obtain the statistical features corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state;
[0239] The processing unit 1503 is further configured to respectively use the sequence feature and the statistical feature to perform data classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature;
[0240] The processing unit 1503 is further configured to weight the first prediction information and the second prediction information to obtain target prediction information, and detect abnormal information in the video data to be processed according to the target prediction information.
[0241] Optionally, in some possible implementations of the present application, the identification unit 1502 is specifically configured to call a video operation function to perform a picture cutting operation on the video data to be processed to obtain a frame picture sequence;
[0242] The identification unit 1502 is specifically used to obtain a target detection model corresponding to the target service;
[0243] The recognition unit 1502 is specifically configured to input the picture frames in the frame sequence into the target detection model for scene recognition, so as to determine the target objects and scene elements in the picture frames;
[0244] The identification unit 1502 is specifically used to determine the transparency information corresponding to the target object and determine the state information corresponding to the scene element;
[0245] The identification unit 1502 is specifically configured to determine the state of an object in a picture frame based on the transparency information and the state information, so as to determine the scene identification information corresponding to each picture frame according to the object state.
[0246] Optionally, in some possible implementations of the present application, the identification unit 1502 is specifically used to obtain transparency information and state information of the object state indication;
[0247] The identification unit 1502 is specifically configured to combine the transparency information and the state information to obtain the plurality of preset dimensions;
[0248] The recognition unit 1502 is specifically configured to extract features from the scene recognition information according to the preset dimension to obtain feature identifiers corresponding to each picture frame;
[0249] The identification unit 1502 is specifically configured to determine the sequence feature corresponding to the to-be-processed video data based on the feature identifier.
[0250] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to mark the picture frames based on the sequence features to obtain the suspicious frames and the normal frames;
[0251] The processing unit 1503 is specifically configured to determine trigger information corresponding to the key event, so as to determine a trigger time point corresponding to each key event according to the trigger information;
[0252] The processing unit 1503 is specifically configured to use each of the trigger time points as a reference frame, and perform quantity statistics of the suspicious frames and the normal frames on the picture frames around the reference frame according to a first range to obtain year-on-year statistical information;
[0253] The processing unit 1503 is specifically configured to perform calculations according to statistical items based on the year-on-year statistical information to obtain statistical features corresponding to the video data to be processed.
[0254] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to determine a magnification parameter of a magnified component in a scene element according to the state information indicated in the sequence feature;
[0255] The processing unit 1503 is specifically configured to determine the distance information corresponding to the key event being triggered based on the sequence feature;
[0256] The processing unit 1503 is specifically configured to convert the distance information according to the magnification parameter to obtain a standard distance;
[0257] The processing unit 1503 is specifically configured to perform calculations according to statistical items based on the year-on-year statistical information to obtain year-on-year features corresponding to the video data to be processed;
[0258] The processing unit 1503 is specifically configured to associate the standard distance with the year-on-year feature to obtain the statistical feature.
[0259] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to determine a target frame corresponding to the trigger time point;
[0260] The processing unit 1503 is specifically configured to perform quantity statistics of the suspicious frames and the normal frames on the picture frames in different second ranges respectively, taking the target frame as a base point, so as to obtain the year-on-year statistical information;
[0261] The processing unit 1503 is specifically configured to perform calculations according to statistical items based on the month-on-month statistical information to obtain statistical features corresponding to the video data to be processed.
[0262] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to obtain a preset item for the target service configuration;
[0263] The processing unit 1503 is specifically configured to perform feature calculations based on the preset items respectively to obtain information values corresponding to the preset items;
[0264] The processing unit 1503 is specifically configured to determine key features from the preset items based on the information value;
[0265] The processing unit 1503 is specifically configured to update the statistical items according to the key features.
[0266] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to determine a statistical parameter corresponding to the key feature;
[0267] The processing unit 1503 is specifically configured to obtain the scenario parameters used by the target service during the interaction process;
[0268] The processing unit 1503 is specifically configured to match the statistical parameter with the scene parameter based on the statistical parameter, and if the statistical parameter is within the range of the scene parameter, update the statistical item according to the key feature.
[0269] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically used to obtain training video data;
[0270] The processing unit 1503 is specifically configured to perform scene recognition on the training frames in the training video data to obtain training recognition information corresponding to each training frame, wherein the training recognition information is determined based on a plurality of object states corresponding to the target service;
[0271] The processing unit 1503 is specifically configured to extract features from the training identification information according to the preset dimension to obtain training sequence features corresponding to the training video data, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0272] The processing unit 1503 is specifically used to perform a number count of suspicious frames and normal frames on the training sequence features based on the trigger information of the key event to obtain a statistical feature corresponding to the training video data, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the training frames based on the object state;
[0273] The processing unit 1503 is specifically used to respectively use the training sequence feature and the training statistical feature to perform data category classification to obtain first training prediction information corresponding to the training sequence feature and second training prediction information corresponding to the statistical feature;
[0274] The processing unit 1503 is specifically configured to configure a first loss function based on the first training prediction information and the classification label corresponding to the training sequence feature;
[0275] The processing unit 1503 is specifically configured to configure a second loss function based on the second training prediction information and the classification label corresponding to the training statistical feature;
[0276] The processing unit 1503 is specifically configured to combine the first training prediction information and the second training prediction information to configure a third loss function;
[0277] The processing unit 1503 is specifically configured to perform weighted configuration on the first loss function, the second loss function and the third loss function to obtain a target loss function;
[0278] The processing unit 1503 is specifically used to train the deep learning model based on the target loss function, and the trained deep learning model is used to classify the sequence features and the statistical features into data categories.
[0279] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically used to obtain the data scale corresponding to the training statistical feature;
[0280] The processing unit 1503 is specifically used to regularize the features in the second loss function and the third loss function if the data scale does not reach a preset scale, so as to update the target loss function.
[0281] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically used to obtain a data stream to be processed of a game service;
[0282] The processing unit 1503 is specifically used to input the data stream to be processed into the master server, so as to distribute the distribution video data in the data stream to be processed to a plurality of different slave servers respectively;
[0283] The processing unit 1503 is specifically configured to perform frame processing on the distributed video data based on the slave server to obtain a distributed picture frame;
[0284] The processing unit 1503 is specifically configured to send each distributed picture frame from the server to the prediction module to determine target prediction information;
[0285] The processing unit 1503 is specifically configured to forward the target prediction information to the main server so as to review the video in the data stream to be processed to obtain abnormal information in the game service.
[0286] Optionally, in some possible implementations of the present application, the processing unit 1503 is specifically configured to obtain an interaction period corresponding to the game service;
[0287] The processing unit 1503 is specifically configured to perform frame processing on the distributed video data based on the slave server to obtain a distributed frame sequence;
[0288] The processing unit 1503 is specifically configured to extract picture frames from the distribution frame sequence according to the interaction period to obtain the distribution picture frames.
[0289] By obtaining the video data to be processed corresponding to the target business; then performing scene recognition on the picture frames in the video data to be processed to obtain the scene recognition information corresponding to each picture frame, the scene recognition information is determined based on multiple object states corresponding to the target business; and extracting features from the scene recognition information according to a preset dimension to obtain the sequence features corresponding to the video data to be processed, the preset dimension is obtained based on at least one object state configuration; then performing a number count of suspicious frames and normal frames on the sequence features based on the trigger information of a key event to obtain the statistical features corresponding to the video data to be processed, the key event corresponds to the target business, and the suspicious frames and normal frames are obtained by dividing the picture frames based on the object state; and using the sequence features and statistical features to classify the data categories respectively to obtain the first prediction information corresponding to the sequence features and the second prediction information corresponding to the statistical features; and then weighting the first prediction information and the second prediction information to obtain the target prediction information, and detecting the abnormal information in the video data to be processed according to the target prediction information. Thus, the video detection process based on scene information is realized, and the accuracy of the representation of the video data features is improved by using the sequence features indicating the time sequence of the video data and combining the statistical features with the abnormal characterization capability to detect at the same time, and the accuracy of detecting and processing the abnormal information in the video data is improved.
[0290] The present application also provides a terminal device, such as Fig.16The figure is a schematic diagram of the structure of another terminal device provided by the embodiment of the present application. For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, etc., taking the mobile phone as an example:
[0291] Fig.16 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Fig.16 The mobile phone includes: a radio frequency (RF) circuit 1610, a memory 1620, an input unit 1630, a display unit 1640, a sensor 1650, an audio circuit 1660, a wireless fidelity (WiFi) module 1670, a processor 1680, and a power supply 1690. Those skilled in the art will appreciate that Fig.16 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0292] Combine the following Fig.16 A detailed introduction to the various components of the mobile phone:
[0293] The RF circuit 1610 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1680 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 1610 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0294] The memory 1620 can be used to store software programs and modules. The processor 1680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1620. The memory 1620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0295] The input unit 1630 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1630 may include a touch panel 1631 and other input devices 1632. The touch panel 1631, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1631 or near the touch panel 1631 using any suitable object or accessory such as a finger, stylus, etc., and the air touch operation within a certain range on the touch panel 1631), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact point coordinates, and then sends it to the processor 1680, and can receive and execute commands sent by the processor 1680. In addition, the touch panel 1631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1631, the input unit 1630 can also include other input devices 1632. Specifically, the other input devices 1632 can include but are not limited to one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc.
[0296] The display unit 1640 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1640 may include a display panel 1641. Optionally, the display panel 1641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1631 may cover the display panel 1641. When the touch panel 1631 detects a touch operation on or near it, it is transmitted to the processor 1680 to determine the type of touch event. Subsequently, the processor 1680 provides a corresponding visual output on the display panel 1641 according to the type of touch event. Although in Fig.16 In the embodiment, the touch panel 1631 and the display panel 1641 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1631 and the display panel 1641 can be integrated to realize the input and output functions of the mobile phone.
[0297] The mobile phone may also include at least one sensor 1650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1641 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0298] The audio circuit 1660, the speaker 1661, and the microphone 1662 can provide an audio interface between the user and the mobile phone. The audio circuit 1660 can transmit the received audio data to the speaker 1661 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1660 and converted into audio data, and then the audio data is output to the processor 1680 for processing, and then sent to another mobile phone through the RF circuit 1610, or the audio data is output to the memory 1620 for further processing.
[0299] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1670. It provides users with wireless broadband Internet access. Fig.16 A WiFi module 1670 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the embodiment.
[0300] The processor 1680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1620, and calling data stored in the memory 1620, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 1680 may include one or more processing units; optionally, the processor 1680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1680.
[0301] The mobile phone also includes a power supply 1690 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 1680 through a power management system, thereby managing functions such as charging, discharging, and power consumption management through the power management system.
[0302] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0303] In the embodiment of the present application, the processor 1680 included in the terminal also has the function of executing each step of the above-mentioned page processing method.
[0304] The present application also provides a server. Fig.17 , Fig.17 17 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1722 (for example, one or more processors) and memory 1732, and one or more storage media 1730 (for example, one or more mass storage devices) storing application programs 1742 or data 1744. Among them, the memory 1732 and the storage medium 1730 may be short-term storage or permanent storage. The program stored in the storage medium 1730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1722 may be configured to communicate with the storage medium 1730 to execute a series of instruction operations in the storage medium 1730 on the server 1700.
[0305] Specifically, the central processor 1722 is used to execute the acquisition of to-be-processed video data corresponding to the target service;
[0306] Performing scene recognition on the picture frames in the to-be-processed video data to obtain scene recognition information corresponding to each picture frame, wherein the scene recognition information is determined based on a plurality of object states corresponding to the target service;
[0307] Extracting features of the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations;
[0308] Based on the trigger information of the key event, the number of suspicious frames and normal frames of the sequence feature is counted to obtain the statistical features corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state;
[0309] The sequence feature and the statistical feature are respectively used to perform data classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature;
[0310] The first prediction information and the second prediction information are weighted to obtain target prediction information, and abnormal information in the video data to be processed is detected according to the target prediction information.
[0311] In some possible scenarios, the central processor 1722 is further used to call a video operation function to perform a picture cutting operation on the video data to be processed to obtain a frame sequence;
[0312] Obtaining a target detection model corresponding to the target business;
[0313] Inputting the picture frames in the frame sequence into the target detection model for scene recognition to determine the target objects and scene elements in the picture frames;
[0314] Determining transparency information corresponding to the target object, and determining state information corresponding to the scene element;
[0315] The object state in the picture frame is determined based on the transparency information and the state information, so as to determine the scene recognition information corresponding to each picture frame according to the object state.
[0316] In some possible scenarios, the central processor 1722 is further used to obtain transparency information and status information of the object status indication;
[0317] Combining the transparency information and the state information to obtain a plurality of the preset dimensions;
[0318] Extracting features of the scene recognition information according to the preset dimension to obtain feature identifiers corresponding to each picture frame;
[0319] The sequence feature corresponding to the video data to be processed is determined based on the feature identifier.
[0320] In some possible scenarios, the central processor 1722 is further used to mark the picture frames based on the sequence features to obtain the suspicious frames and the normal frames;
[0321] Determine trigger information corresponding to the key events, and determine trigger time points corresponding to each of the key events according to the trigger information;
[0322] Taking each of the trigger time points as a reference frame, counting the number of the suspicious frames and the normal frames for the picture frames around the reference frame according to a first range, so as to obtain year-on-year statistical information;
[0323] Calculations are performed based on the year-on-year statistical information according to statistical items to obtain statistical features corresponding to the video data to be processed.
[0324] In some possible scenarios, the central processor 1722 is further configured to determine a magnification parameter of a magnified component in a scene element according to the state information indicated in the sequence feature;
[0325] Determine the distance information corresponding to the triggering of the key event based on the sequence feature;
[0326] Converting the distance information according to the magnification parameter to obtain a standard distance;
[0327] Calculating according to statistical items based on the year-on-year statistical information to obtain year-on-year features corresponding to the video data to be processed;
[0328] The standard distance is associated with the year-on-year feature to obtain the statistical feature.
[0329] In some possible scenarios, the central processor 1722 is further used to determine the target frame corresponding to the trigger time point;
[0330] Taking the target frame as a base point, respectively counting the number of the suspicious frames and the normal frames for the picture frames in different second ranges to obtain year-on-year statistical information;
[0331] Calculation is performed according to statistical items based on the month-on-month statistical information to obtain statistical features corresponding to the video data to be processed.
[0332] In some possible scenarios, the central processor 1722 is also used to obtain preset items for target business configuration;
[0333] Perform feature calculations based on the preset items respectively to obtain information values corresponding to the preset items;
[0334] determining key features from the preset items based on the information value;
[0335] The statistical items are updated according to the key features.
[0336] In some possible scenarios, the central processor 1722 is further used to determine statistical parameters corresponding to the key features;
[0337] Acquiring scenario parameters used by the target service during the interaction process;
[0338] Based on the matching of the statistical parameters and the scene parameters, if the statistical parameters are within the range of the scene parameters, the statistical items are updated according to the key features.
[0339] The server 1700 may also include one or more power supplies 1726, one or more wired or wireless network interfaces 1750, one or more input and output interfaces 1758, and / or one or more operating systems 1741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0340] The steps performed by the management device in the above embodiment can be based on the Fig.17 The server structure shown.
[0341] The present application also provides a computer-readable storage medium in which data processing instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned Figures 3 to 14 The illustrated embodiment describes the steps executed by the data processing device in the method.
[0342] The present application also provides a computer program product including data processing instructions, which, when executed on a computer, enables the computer to execute the above Figures 3 to 14 The illustrated embodiment describes the steps executed by the data processing device in the method.
[0343] The present application also provides a data processing system, which may include: Fig.15 The data processing device in the described embodiments, or Fig.16 The terminal device in the described embodiment, or Fig.17 The server being described.
[0344] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0345] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0346] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0347] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0348] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a data processing device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0349] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data processing method, characterized in that: include: Obtain the video data to be processed corresponding to the target business; Performing scene recognition on the picture frames in the to-be-processed video data to obtain scene recognition information corresponding to each picture frame, wherein the scene recognition information is determined based on a plurality of object states corresponding to the target service; Extracting features of the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations; Based on the trigger information of the key event, the number of suspicious frames and normal frames of the sequence feature is counted to obtain the statistical features corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state; The sequence feature and the statistical feature are respectively used to perform data classification to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature; The first prediction information and the second prediction information are weighted to obtain target prediction information, and abnormal information in the video data to be processed is detected according to the target prediction information.
2. The method according to claim 1, characterized in that The performing scene recognition on the picture frames in the video data to be processed to obtain scene recognition information corresponding to each picture frame includes: Calling a video operation function to perform a cut operation on the video data to be processed to obtain a frame sequence; Obtaining a target detection model corresponding to the target business; Inputting the picture frames in the frame sequence into the target detection model for scene recognition to determine the target objects and scene elements in the picture frames; Determining transparency information corresponding to the target object, and determining state information corresponding to the scene element; The object state in the picture frame is determined based on the transparency information and the state information, so as to determine the scene recognition information corresponding to each picture frame according to the object state.
3. The method according to claim 1, characterized in that The extracting features of the scene recognition information according to the preset dimension to obtain sequence features corresponding to the video data to be processed includes: Obtaining transparency information and status information of the object status indication; Combining the transparency information and the state information to obtain a plurality of the preset dimensions; Extracting features of the scene recognition information according to the preset dimension to obtain feature identifiers corresponding to each picture frame; The sequence feature corresponding to the video data to be processed is determined based on the feature identifier.
4. The method according to claim 1, characterized in that: The method of performing statistics on the number of suspicious frames and normal frames on the sequence features based on the trigger information of the key event to obtain statistical features corresponding to the video data to be processed includes: Marking the picture frames based on the sequence features to obtain the suspicious frames and the normal frames; Determine trigger information corresponding to the key events, and determine trigger time points corresponding to each of the key events according to the trigger information; Taking each of the trigger time points as a reference frame, counting the number of the suspicious frames and the normal frames for the picture frames around the reference frame according to a first range, so as to obtain year-on-year statistical information; Calculations are performed based on the year-on-year statistical information according to statistical items to obtain statistical features corresponding to the video data to be processed.
5. The method according to claim 4, characterized in that The calculating according to the statistical items based on the year-on-year statistical information to obtain the statistical features corresponding to the video data to be processed includes: Determining a magnification parameter of a magnified component in a scene element according to the state information indicated in the sequence feature; Determine the distance information corresponding to the triggering of the key event based on the sequence feature; Converting the distance information according to the magnification parameter to obtain a standard distance; Calculating according to statistical items based on the year-on-year statistical information to obtain year-on-year features corresponding to the video data to be processed; The standard distance is associated with the year-on-year feature to obtain the statistical feature.
6. The method according to claim 4, characterized in that The method further comprises: Determine the target frame corresponding to the trigger time point; Taking the target frame as a base point, respectively counting the number of the suspicious frames and the normal frames for the picture frames in different second ranges to obtain year-on-year statistical information; Calculation is performed according to statistical items based on the month-on-month statistical information to obtain statistical features corresponding to the video data to be processed.
7. The method according to claim 4, characterized in that The method further comprises: Obtain preset items for target business configuration; Perform feature calculations based on the preset items respectively to obtain information values corresponding to the preset items; determining key features from the preset items based on the information value; The statistical items are updated according to the key features.
8. The method according to claim 7, characterized in that The updating of the statistical items according to the key features includes: Determining statistical parameters corresponding to the key features; Acquiring scenario parameters used by the target service during the interaction process; Based on the matching of the statistical parameters and the scene parameters, if the statistical parameters are within the range of the scene parameters, the statistical items are updated according to the key features.
9. The method according to claim 1, characterized in that: Before respectively using the sequence feature and the statistical feature to classify the data categories to obtain the first prediction information corresponding to the sequence feature and the second prediction information corresponding to the statistical feature, the method further includes: Get training video data; Performing scene recognition on the training frames in the training video data to obtain training recognition information corresponding to each training frame, wherein the training recognition information is determined based on a plurality of object states corresponding to the target business; Extracting features of the training identification information according to the preset dimension to obtain training sequence features corresponding to the training video data, wherein the preset dimension is obtained based on at least one of the object state configurations; Based on the trigger information of the key event, the number of suspicious frames and normal frames of the training sequence feature is counted to obtain the statistical features corresponding to the training video data, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the training frames based on the object state; The training sequence feature and the training statistical feature are respectively used to perform data category classification to obtain first training prediction information corresponding to the training sequence feature and second training prediction information corresponding to the statistical feature; configuring a first loss function based on the first training prediction information and the classification label corresponding to the training sequence feature; configuring a second loss function based on the second training prediction information and the classification label corresponding to the training statistical feature; combining the first training prediction information and the second training prediction information to configure a third loss function; Performing weighted configuration on the first loss function, the second loss function, and the third loss function to obtain a target loss function; The deep learning model is trained based on the target loss function, and the trained deep learning model is used to classify the sequence features and the statistical features into data categories.
10. The method according to claim 9, characterized in that The method may include: Obtaining the data scale corresponding to the training statistical feature; If the data scale does not reach a preset scale, regularization is performed on the features in the second loss function and the third loss function to update the target loss function.
11. The method according to any one of claims 1 to 10, characterized in that: The data processing method is applied to a video review system for gaming services, and the method further includes: Get the data stream to be processed of the game business; Inputting the data stream to be processed into a master server, so as to distribute the distribution video data in the data stream to be processed to a plurality of different slave servers respectively; Performing frame processing on the distributed video data based on the slave server to obtain a distributed picture frame; Sending each of the distributed picture frames from the server to a prediction module to determine target prediction information; The target prediction information is forwarded to the main server to review the video in the data stream to be processed to obtain abnormal information in the game business.
12. The method according to claim 11, characterized in that The performing frame processing on the distributed video data based on the slave server to obtain a distributed picture frame includes: Obtaining an interaction period corresponding to the game service; Performing frame processing on the distributed video data based on the slave server to obtain a distributed frame sequence; Extracting picture frames from the distribution frame sequence according to the interaction period to obtain the distribution picture frames.
13. A data processing device, characterized in that: include: An acquisition unit, used to acquire the to-be-processed video data corresponding to the target service; an identification unit, configured to perform scene identification on the picture frames in the video data to be processed to obtain scene identification information corresponding to each picture frame, wherein the scene identification information is determined based on a plurality of object states corresponding to the target service; The recognition unit is further used to extract features from the scene recognition information according to a preset dimension to obtain sequence features corresponding to the video data to be processed, wherein the preset dimension is obtained based on at least one of the object state configurations; a processing unit, configured to perform a number count of suspicious frames and normal frames on the sequence feature based on trigger information of a key event to obtain a statistical feature corresponding to the video data to be processed, wherein the key event corresponds to the target service, and the suspicious frames and the normal frames are obtained by dividing the picture frames based on the object state; The processing unit is further used to classify data categories using the sequence feature and the statistical feature respectively, so as to obtain first prediction information corresponding to the sequence feature and second prediction information corresponding to the statistical feature; The processing unit is further configured to weight the first prediction information and the second prediction information to obtain target prediction information, and detect abnormal information in the video data to be processed according to the target prediction information.
14. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store program codes; the processor is used to execute the data processing method according to any one of claims 1 to 12 according to instructions in the program codes.
15. A computer program product, comprising a computer program / instructions, wherein the computer program / instructions are stored in a computer-readable storage medium, characterized in that: When the computer program / instructions in the computer-readable storage medium are executed by a processor, the steps of the data processing method according to any one of claims 1 to 12 are implemented.
