Data quality detection method and device, equipment, medium and program product
The multi-modal data of short video accounts are fused and processed through the data classification model to generate feature vectors, which solves the subjectivity and accuracy problems of account quality assessment in the existing technology, and improves the accuracy of quality assessment and resource push effect.
Patent Information
- Application Number
- CN202310260423.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
When the existing technology evaluates the quality of short video accounts, the distance calculation method based on video feature vectors has problems of subjectivity and low accuracy, making it difficult to effectively measure the consistency and quality of the account content.
Through the data classification model, the text information and video information of multiple videos to be detected on the account are fused to generate the first feature vector, and combined with multi-task training to improve the model's generalization ability and output accuracy, thereby evaluating the account quality.
It improves the accuracy of data quality evaluation, avoids subjective policy settings, enhances the representation of the relevance of account content, and improves the effect of resource push and user experience.
Smart Images

Figure CN118628949A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data quality detection method, a data quality detection device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the continuous development of artificial intelligence technology, various short video products have emerged one after another, catering to the current fragmented reading scene needs. Resource push is a common function in short video products. By recommending videos from high-quality accounts to users, it can improve resource conversion effects and user browsing experience.
[0003] Quality evaluation data such as verticality can be used to determine whether the content posted by an account is consistent, thereby measuring whether the account is high-quality. Currently, quality evaluation data is calculated based on the vector distance between the feature vectors of each video posted by the account, but the above method is subjective when setting strategies to measure quality evaluation data, and it is necessary to weigh various extreme situations, resulting in low accuracy of quality evaluation data. Therefore, how to improve the accuracy of data quality evaluation is an urgent problem to be solved. Summary of the invention
[0004] The present application provides a data quality detection method, apparatus, device, medium and program product, which can improve the accuracy of data quality evaluation.
[0005] In a first aspect, the present application provides a data quality detection method, the method comprising:
[0006] Obtain text information and video information of multiple videos to be detected corresponding to the target account;
[0007] Determine, by using a data classification model, text feature vectors corresponding to the text information of the plurality of videos to be detected, and video feature vectors corresponding to the video information of the plurality of videos to be detected;
[0008] Using the data classification model, the text feature vector and the video feature vector are fused to obtain a first feature vector of the target account;
[0009] Determining quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate the relevance between the categories of the plurality of videos to be detected;
[0010] Among them, the above-mentioned data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the above-mentioned sample account, and then using the above-mentioned prediction data and the first reference category and the second reference category of each sample video to train the above-mentioned initial classification model. The above-mentioned prediction data includes the first prediction category, the second prediction category of the above-mentioned sample account, the target text feature vector and the prediction text feature vector of the text information of the above-mentioned multiple sample videos; the above-mentioned second reference category is a subcategory of the above-mentioned first reference category, and the above-mentioned second prediction category is a subcategory of the above-mentioned first prediction category.
[0011] In a second aspect, the present application provides a data quality detection device, the device comprising:
[0012] An acquisition module, used to acquire text information and video information of multiple videos to be detected corresponding to a target account;
[0013] A processing module, used to determine the text feature vectors corresponding to the text information of the plurality of videos to be detected, and the video feature vectors corresponding to the video information of the plurality of videos to be detected, by using a data classification model;
[0014] The processing module is further used to use the data classification model to perform fusion processing on the text feature vector and the video feature vector to obtain the first feature vector of the target account;
[0015] An evaluation module, used to determine quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate the correlation between the categories of the plurality of videos to be detected;
[0016] Among them, the above-mentioned data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the above-mentioned sample account, and then using the above-mentioned prediction data and the first reference category and the second reference category of each sample video to train the above-mentioned initial classification model. The above-mentioned prediction data includes the first prediction category, the second prediction category of the above-mentioned sample account, the target text feature vector and the prediction text feature vector of the text information of the above-mentioned multiple sample videos; the above-mentioned second reference category is a subcategory of the above-mentioned first reference category, and the above-mentioned second prediction category is a subcategory of the above-mentioned first prediction category.
[0017] In a third aspect, the present application provides a computer device comprising: a processor, a storage device and a communication interface, wherein the processor, the communication interface and the storage device are interconnected, wherein the storage device stores executable program code, and the processor is used to call the executable program code to implement the data quality detection method.
[0018] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions are executed by a processor to implement the data quality detection method as described above.
[0019] In a fifth aspect, the present application provides a computer program product, which includes a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement the above-mentioned data quality detection method.
[0020] The present application proposes to process the text information and video information of multiple videos to be detected corresponding to the account through a data classification model to obtain the first feature vector corresponding to the account. Since the first feature vector is obtained based on the fusion of multimodal data of the account, it can better characterize the feature information of the overall content of the account, ensuring the richness of the characterization data of the first feature vector. The present application then calculates the quality evaluation data of the account based on the first feature vector, so that the quality evaluation data can characterize the correlation between the contents of multiple videos to be detected, thereby improving the accuracy of the quality evaluation of the data. In addition, the present application performs multi-task training of the data classification model based on the first predicted category, the second predicted category, the target text feature vector and the predicted text feature vector of the text information of multiple sample videos, and the first reference category and the second reference category of each sample video, which not only improves the model reasoning speed, but also improves the generalization ability of the model through sharing information between multiple tasks. Through the above-mentioned model training method, the accuracy of the model output results can be improved, and the accuracy of the quality evaluation of the data can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 It is a schematic diagram of the architecture of a data quality detection system provided by an exemplary embodiment of the present application;
[0023] Figure 2 It is a flowchart of a data quality detection method provided by an exemplary embodiment of the present application;
[0024] Figure 3 is a flowchart of another data quality detection method provided by an exemplary embodiment of the present application;
[0025] Figure 4Ais a schematic diagram of determining quality evaluation data provided by an exemplary embodiment of the present application;
[0026] Figure 4B It is a schematic diagram of a processing process of a data classification model provided by an exemplary embodiment of the present application;
[0027] Figure 5 is a flowchart of another data quality detection method provided by an exemplary embodiment of the present application;
[0028] Figure 6 is a schematic block diagram of a data quality detection device provided by an exemplary embodiment of the present application;
[0029] Figure 7 It is a schematic block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] It should be noted that the descriptions of "first", "second", etc. involved in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0032] In order to better understand the solutions of the embodiments of the present application, the relevant terms and concepts that may be involved in the embodiments of the present application are first introduced below.
[0033] Account verticality: Whether the content published by an account is consistent is an important indicator to measure whether an account is high-quality. For example, if the content of an account is all related to games, the verticality of the account is considered high; if the content of an account involves games, movies, scenery, daily life and other categories, the verticality of the account is considered low.
[0034] Vector distance: There are three main types of vector distances: Euclidean distance, cosine distance and Hamming distance.
[0035] Clustering: refers to dividing a data set into different classes (or clusters) according to a specific standard (such as distance), so that the similarity of data objects in the same class (or cluster) is as large as possible, and the difference of data objects in different classes (or clusters) is as large as possible. In other words, after clustering, data of the same class is gathered together as much as possible, and data of different classes is separated as much as possible.
[0036] Modulus: The size of a vector, that is, the length of the vector, or the modulus.
[0037] Ground Truth: is a relative concept, which refers to the measurement value obtained by an existing, reliable measurement method as a benchmark relative to the measurement value obtained by a new measurement method. People often use Ground Truth to calibrate the new measurement method to reduce the error of the new measurement method and improve the accuracy of the new measurement method.
[0038] The embodiments of the present invention can be applied to various fields or scenarios such as cloud computing, cloud Internet of Things, cloud games, artificial intelligence, in-vehicle scenarios, smart transportation, assisted driving, short video application software, etc. Several typical fields or scenarios are introduced below.
[0039] Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that involves a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes several major directions such as computer vision technology, machine learning / deep learning, etc. The solution provided in the embodiment of the present application involves technologies such as machine learning under artificial intelligence technology, which will be described below.
[0040] Machine Learning (ML) is a multi-disciplinary cross-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. Machine learning specifically studies how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning and other technologies. This application mainly relates to inductive learning technology in machine learning technology. Inductive learning technology aims to summarize and extract general judgment rules and patterns from a large amount of empirical data. It is a learning method that derives general rules from special cases. Specifically, this application pre-trains a data classification model through a large number of sample accounts. When any account to be detected is obtained, the account feature vector can be determined through the data classification model, and the quality evaluation data (such as verticality) of the account can be calculated based on the account feature vector. Finally, subsequent resource push processing is performed based on the quality evaluation data of the account.
[0041] Computer Vision Technology (CV) Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing to make computer processing into images that are more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, automatic driving, smart transportation and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition. Specifically, this application extracts text information from each video published by an account through computer vision technology, and then combines the feature vector corresponding to the text information with the video feature vector corresponding to the video information of the video, and applies it to the subsequent account quality detection stage to ensure the richness of the data.
[0042] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, Internet of Vehicles, automatic driving, 3D games, etc. With the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0043] Taking verticality as an example of quality evaluation data, when measuring the verticality of an account, it can be calculated based on the basic features of the videos released by the account. For example, the verticality can be determined based on the video category information, or based on the video vector features.
[0044] For the first method, in actual business scenarios, videos are classified by humans or machine models, and videos are labeled with category information such as games, movies, TV series, society, and travel. Therefore, judgment can be made based on the category information of the videos posted by the account. For example, if an account posts too many category information on videos, it is considered that its verticality is low; if the videos posted by an account all belong to the same category, it is considered that its verticality is high.
[0045] However, the above method has drawbacks. If the verticality is judged to be high because the account has too much category information, then this excessive quantitative definition is difficult. If the absolute value is used, there will be misjudgment in this case: suppose that account a has released 100 videos, including 1 video each in the four categories of movies, TV series, society, and travel, and the rest of the videos are in the game category. Then the number of categories corresponding to account a is 5, which is usually judged as low verticality, but the 100 videos include 96 videos in the game category, which should be an account with high verticality. If the proportion (number of categories / number of videos) is used, then account b has released 100 videos, including 20 videos each in the five categories of movies, TV series, society, travel, and games. According to the strategy, the verticality of account a and account b is the same, but in fact, the verticality of account a is higher than that of account b.
[0046] For the second method, in actual business, the upstream task can obtain the vector representation of each video through the machine model. Generally speaking, if the content styles of two videos are similar, their vector distance will be smaller; if the content styles of two videos are very different, their vector distance will be large, that is, the vector distance between two game-related videos will be closer than the vector distance between a game video and a movie video. Therefore, we can judge whether two videos are similar based on the video vector distance.
[0047] For example, the vector distance between any two videos published by an account can be calculated, and the verticality of the account can be measured by the multiple vector distances obtained: if the multiple vector distances are relatively small, it is determined that the videos of this account are very similar and the account verticality is high; if the multiple vector distances are relatively large, it is determined that the videos of this account are not very similar and the account verticality is low. For another example, based on the video vectors of all videos published by the account, they can be clustered into K cluster centers, and then the distances between these k cluster centers can be calculated. Similarly, if the distance between cluster centers is close, the account verticality is high; if the distance between cluster centers is far, the account verticality is low.
[0048] However, the above method also has its drawbacks and will encounter the same problem as the first method. The formulation of strategy rules is very troublesome. With data support, if a reasonable strategy is set to measure the verticality of an account, it is necessary to weigh many situations and take into account various extreme situations, resulting in a rough account verticality and low accuracy.
[0049] Based on this, the present application proposes to obtain an account feature vector (such as a first feature vector) by inputting account-related information (including text information and video information of multiple videos to be detected corresponding to the account) into a data classification model for processing, and then calculate the quality evaluation data of the account based on the account feature vector. At the same time, the present application innovatively proposes two methods for calculating quality evaluation data. The first is to determine the quality evaluation data through the deviation parameters of the outputs of multiple random sub-networks, that is, by randomly dropout the neurons of the fully connected layer of the data classification model, multiple random sub-networks are obtained, and the quality evaluation data of the account is determined by the deviation parameters (such as variance) of the outputs of each random sub-network. In the first way, the present application does not need to formulate a strategy, but reflects the quality evaluation data of the account through robustness, and finally can output a value ranging from 0-1 to measure the quality evaluation data of the account.
[0050] The second is an adaptive method for calculating the quality evaluation data of an account, which determines the verticality of an account by the modulus of the account feature vector. In addition, during the model training phase, the loss function can be adjusted based on the modulus of the sample account feature vector, thereby adding an adaptive mechanism to the training account vector to improve the training effect, and ultimately make the calculated account quality evaluation data more accurate.
[0051] It can be understood that in the specific implementation of the present application, the text information and video information of each video included in the account (including the target account, sample account, etc.), the first reference category, the second reference category and other related data of each sample video, when the above embodiments of the present application are applied to specific products or technologies, the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0052] This application will be specifically described by the following embodiments:
[0053] See also Figure 1 , which is a schematic diagram of the architecture of a data processing system provided by an exemplary embodiment of the present application. The data processing system may specifically include a database 101 and a server 102. The database 101 and the server 102 are connected via a network, such as a local area network, a wide area network, a mobile Internet, etc. The database 101 stores the published videos corresponding to each account, and the server 102 can provide various services related to account quality detection when receiving an account quality detection instruction.
[0054] In one embodiment, the server 102 obtains multiple videos to be detected corresponding to the target account from the database 101, and then obtains the text information and video information of each video to be detected; the server 102 uses the data classification model to determine the text feature vectors corresponding to the text information of the multiple videos to be detected, and the video feature vectors corresponding to the video information of the multiple videos to be detected; the server 102 uses the data classification model to fuse the text feature vector and the video feature vector to obtain the first feature vector of the target account; the server 102 uses the first feature vector to determine the quality evaluation data (such as verticality) of the target account. Based on this, the server 102 can recommend videos posted by accounts with higher verticality (for example, accounts whose posted videos are all in the game category) to other accounts, thereby improving the resource conversion effect and the user's browsing experience.
[0055] Database 101 can be used to store video data of each account, and can also be used to store data related to the data classification model, which can be recorded in the database through different database tables. For example, the database can be a database located in the server, that is, it can be a database built into or carried by the server; the database can also be a peripheral database connected to the server, such as a cloud database (i.e., a database deployed in the cloud), which can be specifically based on any one of private cloud, public cloud, hybrid cloud, edge cloud, etc., so that the cloud database focuses on different functions. For example, for a database deployed in a private cloud, the basic cloud hardware is the user's personal equipment, and it focuses more on serving a small number of users, while the database deployed in a public cloud is deployed based on a cloud platform provided by a third party, which allows the data stored in the database to be shared, and any user's data can be stored in the database, and any user can also use the data in the database.
[0056] Server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be 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, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0057] In one embodiment, the architecture of the data processing system proposed in the present application may also include a terminal device, which is also called a terminal (Terminal), user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device may be a smart home appliance, a handheld device with wireless communication function (such as a smart phone, a tablet computer), a computing device (such as a personal computer (PC), a vehicle terminal, an intelligent voice interaction device, a wearable device or other smart device, but is not limited thereto.
[0058] Exemplarily, the server 102 may also directly obtain multiple videos to be detected corresponding to the target account from the terminal device, and then obtain the text information and video information of each video to be detected, and then determine the quality evaluation data of the target account based on the text information and video information of each video to be detected according to the method provided above.
[0059] It is to be understood that the system architecture diagram described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. For example, the data quality detection method provided in the embodiment of the present application can be executed by the server 102, and can also be executed by other servers or server clusters that are different from the server 102 and can communicate with the terminal device and / or the server 102. It is known to those skilled in the art that Figure 1 The numbers of databases and servers in are merely illustrative. According to the business implementation needs, any number of databases, terminal devices, and servers can be configured. Moreover, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems. In subsequent embodiments, the database 101 will be referred to as a database, and the server will be referred to as a server 102, which will not be repeated in subsequent embodiments.
[0060] See also Figure 2 , which is a flow chart of a data quality detection method provided by an exemplary embodiment of the present application, in which the method is applied to a server (referring to Figure 1Taking the server 102 in the example as an example, the method may include the following steps:
[0061] S201. Obtain text information and video information of multiple videos to be detected corresponding to a target account.
[0062] In the embodiment of the present application, the server first obtains multiple videos to be detected corresponding to the target account. Since each video to be detected may include information of text mode (i.e., text information, such as text content) and information of visual mode (i.e., image information, such as image frames in the video), the server then obtains the text information and video information of each video to be detected. By obtaining the multi-dimensional and multi-modal information of the target account's video to be detected for subsequent account quality detection, the data richness can be guaranteed and the accuracy and credibility of the account's quality evaluation data can be improved.
[0063] In one embodiment, the above-mentioned acquisition of text information and video information of multiple videos to be detected corresponding to the target account can be implemented according to the following steps:
[0064] (a1) Obtain multiple videos to be detected corresponding to the target account.
[0065] In one embodiment, in a short video application scenario, the target account may refer to an account that needs to be tested for account quality, and the multiple videos to be tested may refer to part or all of the video content that has been published by the target account. The server may obtain the multiple videos to be tested published by the target account from the database.
[0066] (a2) Performing text information extraction processing on each video to be detected to obtain text information of each video to be detected, where the text information includes one or more of the title information of the video to be detected and the text extraction information of the image frame.
[0067] In one embodiment, for text information, the server can directly obtain the title information, topic information (a type of text information that includes the points of interest of a short video), etc. corresponding to each video to be detected as the text information of the video to be detected; it can also perform text recognition processing (optical character recognition, OCR) on the image frames (such as cover image frames) of each video to be detected to obtain text extraction information, and use the text extraction information as the text information of the video to be detected.
[0068] (a3) Performing video information extraction processing on each video to be detected to obtain video information of each video to be detected, wherein the video information includes image information of an image frame of the video to be detected.
[0069] In one embodiment, with respect to video information, the server may perform video information extraction processing (e.g., video frame extraction) on each video to be detected, obtain one or more image frames extracted from each video to be detected, and then use the image information of the extracted image frames of each video to be detected as the video information of the video to be detected.
[0070] S202: Determine, using a data classification model, text feature vectors corresponding to text information of multiple videos to be detected, and video feature vectors corresponding to video information of multiple videos to be detected.
[0071] In an embodiment of the present application, the server can use the first feature extraction network in the data classification model to perform feature extraction processing on the text information of multiple videos to be detected, and obtain text feature vectors corresponding to the text information of multiple videos to be detected. The server can use the second feature extraction network in the data classification model to perform feature extraction processing on the video information of multiple videos to be detected, and obtain video feature vectors corresponding to the video information of multiple videos to be detected. Among them, the first feature extraction network and the second feature extraction network can be the same feature extraction network or different feature extraction networks. The feature extraction network can be pre-trained based on sample data to improve the accuracy of the feature representation of the text feature vector and the video feature vector, and perform account quality detection based on accurate text feature vectors and video feature vectors, thereby ensuring the accuracy of the quality evaluation data.
[0072] In one embodiment, the server may use a data classification model to determine the feature vectors corresponding to the text information of each video to be detected, and then fuse (or splice) the feature vectors corresponding to the text information of each video to be detected to obtain a text feature vector corresponding to the overall text information of multiple videos to be detected. Similarly, the server may also use a data classification model to determine the feature vectors corresponding to the video information of each video to be detected, and then fuse (or splice) the feature vectors corresponding to the video information of each video to be detected to obtain a video feature vector corresponding to the overall video information of multiple videos to be detected.
[0073] S203. Use the data classification model to fuse the text feature vector and the video feature vector to obtain the first feature vector of the target account.
[0074] In the embodiment of the present application, the server inputs the text feature vector and the video feature vector into the data classification model for processing, and finally obtains the first feature vector of the target account. The first feature vector is used to characterize the feature information of the overall content of the target account. Since the first feature vector is obtained by multimodal data fusion based on the text information and video information of the account, the first feature vector can characterize the feature information of the text content corresponding to the multiple videos to be detected of the target account, and can also characterize the feature information of the video content corresponding to the multiple videos to be detected of the target account, thereby ensuring the richness of the characterization data of the first feature vector.
[0075] S204. Determine quality evaluation data of the target account using the first feature vector, where the quality evaluation data is used to indicate the correlation between categories of multiple videos to be detected.
[0076] In the embodiment of the present application, since the first feature vector is obtained based on the text information and video information of multiple videos to be detected corresponding to the target account, the quality evaluation data of the target account determined by the first feature vector can characterize the relevance between the contents of multiple videos to be detected to a certain extent. Compared with calculating the quality evaluation data by the vector distance between the feature vectors of each video published by the account, the above method can avoid measuring the quality evaluation data by subjectively setting the strategy (for example, setting the correspondence between the vector distance between the feature vectors of each video and the quality evaluation data), but fully combines the first feature vector of the target account to determine the quality evaluation data, thereby improving the accuracy of the quality evaluation of the data, and even improving the accuracy of the data quality evaluation data of the account.
[0077] In one embodiment, the server can perform subsequent resource push processing based on the quality evaluation data. Specifically, in the recommendation distribution scenario, the server can recommend more high-verticality accounts or videos posted by the accounts to other users based on the quality evaluation data (such as verticality) of each account, and reduce the exposure of low-verticality accounts and videos posted by the accounts. Through the above method, the resource conversion effect and the user's browsing experience can be improved.
[0078] In one embodiment, the data classification model is obtained by training the initial classification model using the predicted data and the first reference category and the second reference category of each sample video after processing the text information and the video information of multiple sample videos corresponding to the sample account using the initial classification model to obtain the predicted data of the sample account. The model training stage mainly includes three training tasks, namely the primary classification training task, the secondary classification training task and the language mask (MLM) training task. The data classification model in this application can predict the primary category (i.e. the first category, such as the game category) and the secondary category (i.e. the second category, such as the Candy Crush game subcategory under the game category). The second reference category is a subcategory of the first reference category, and the second predicted category is a subcategory of the first predicted category. The predicted data of the sample account includes the first predicted category, the second predicted category, the target text feature vector of the text information of multiple sample videos, and the predicted text feature vector. The first reference category and the first predicted category of each sample video are used for the primary classification training task; the second reference category and the second predicted category of each sample video are used for the secondary classification training task. The target text feature vectors of the text information of multiple sample videos can be processed by masking to obtain masked text feature vectors, and the masked text feature vectors can be processed by using the initial classification model to obtain predicted text feature vectors. The target text feature vectors and predicted text feature vectors are used for language mask training tasks. The training process of the data classification model will be detailed in subsequent embodiments, and will not be repeated in this embodiment.
[0079] Based on the above embodiments, the beneficial effects of the present application are as follows: the present application proposes to process the text information and video information of multiple videos to be detected corresponding to the account through a data classification model to obtain the first feature vector corresponding to the account. Since the first feature vector is obtained based on the multimodal data fusion of the account, it can better characterize the feature information of the overall content of the account, thereby ensuring the richness of the characterization data of the first feature vector. The present application then calculates the quality evaluation data of the account based on the first feature vector, so that the quality evaluation data can characterize the correlation between the contents of multiple videos to be detected. Compared to calculating the quality evaluation data by the vector distance between the feature vectors of each video, the present application can avoid measuring the quality evaluation data by subjectively setting a strategy (for example, setting the corresponding relationship between the vector distance between the feature vectors of each video and the quality evaluation data), but fully combines the first feature vector of the account to determine the quality evaluation data, thereby improving the accuracy of the quality evaluation of the data.
[0080] The server can perform subsequent resource push processing based on the quality evaluation data. Specifically, in the recommendation distribution scenario, the server can recommend more high-verticality accounts or videos posted by the accounts to other users based on the quality evaluation data of each account (such as verticality), and reduce the exposure of low-verticality accounts and videos posted by the accounts. Through the above method, the resource conversion effect and user browsing experience can be improved.
[0081] See also Figure 3 , which is a flow chart of a data quality detection method provided by an exemplary embodiment of the present application, in which the method is applied to a server (referring to Figure 1 Taking the server 102 in the example as an example, the method may include the following steps:
[0082] S301. Obtain text information and video information of multiple videos to be detected corresponding to a target account.
[0083] S302: Determine, using a data classification model, text feature vectors corresponding to text information of multiple videos to be detected, and video feature vectors corresponding to video information of multiple videos to be detected.
[0084] The specific implementation of steps S301-S302 refers to the relevant description of steps S201-S202 in the aforementioned embodiment, which will not be repeated here.
[0085] S303: Use the data classification model to fuse the text feature vector and the video feature vector to obtain the first feature vector of the target account.
[0086] In one embodiment, the server may first fuse the text feature vectors corresponding to the text information of multiple videos to be detected to obtain a fused text feature vector corresponding to the text information, and fuse the video feature vectors corresponding to the video information of multiple videos to be detected to obtain a fused video feature vector corresponding to the video information. Then, the fused text feature vector and the fused video feature vector are processed using a data classification model to obtain a first feature vector of the target account.
[0087] Exemplarily, for the text information of multiple videos to be detected, the server can concatenate the feature vectors of the text information of each video to be detected to obtain a fused text feature vector. For example, the feature vector of the text information of each video to be detected is a 64-dimensional feature vector (denoted as
[64] ), then by sequentially concatenating the feature vectors of the text information of each video to be detected, an M*64-dimensional feature vector is obtained as the fused text feature vector, where M is a positive integer.
[0088] For the video information of multiple videos to be detected, the server can group the feature vectors of the video information of each video to be detected based on the primary category (i.e., the first category) of each video to be detected, and then fuse the feature vectors in each group according to the grouping, and then splice the fused feature vectors of each group to obtain a fused video feature vector. For example, the feature vector of the video information of each video to be detected is a 64-dimensional feature vector (denoted as
[64] ), and the number of videos in the multiple videos to be detected whose first categories are game category, movie category, landscape category, and food category are 2, 2, 1, and 1 respectively. The server can fuse two videos whose first category is game category (for example, add the feature vectors corresponding to the two videos according to the dimensions, i.e., add the first dimension to the first dimension to obtain a new first dimension, and add the second dimension to the second dimension to obtain a new second dimension, until 64 dimensions are processed), and finally obtain the fused feature vector corresponding to the game category. The processing method for the videos to be detected in the movie category, scenery category and food category is similar. The server then splices the feature vectors corresponding to the game category, movie category, scenery category and food category to obtain a fused video feature vector (a 4*64-dimensional feature vector). It should be noted that, assuming that the preset first category includes 45 categories, the final fused video feature vector is a 45*64-dimensional feature vector. If the other 41 categories do not have corresponding videos to be detected, they can be filled with 0.
[0089] In one embodiment, the server may utilize a data classification model and a Transformer-based video understanding method (such as UNITER, Video BERT model, which may include a multi-layer Transformer mechanism, a multimodal attention mechanism, etc.) to process the fused text feature vector and the fused video feature vector, and finally obtain the first feature vector of the target account.
[0090] This application can obtain multiple random sub-networks by randomly dropout the neurons of the fully connected layer of the data classification model, and determine the quality evaluation data of the account through the deviation parameters (such as variance) of the output of each random sub-network. In the first way, this application does not need to formulate a strategy, but reflects the quality evaluation data of the account through robustness, and finally outputs a value ranging from 0 to 1 through normalization processing to measure the quality evaluation data of the account. The first implementation method of determining the quality evaluation data of the target account using the first feature vector will be described in detail below through steps S304-S305:
[0091] S304: Process the first feature vector using different neuron combinations in the first fully connected layer in the data classification model to obtain multiple output feature vectors.
[0092] In the embodiment of the present application, there are different neurons between any two neuron combinations, so that multiple output feature vectors are obtained based on multiple neuron combinations that are different from each other. The first fully connected layer in the data classification model is used to perform the classification task of the secondary category. Specifically, the first feature vector is randomly dropped out by the first fully connected layer when the classifier predicts the secondary classification. Each dropout corresponds to a neuron combination. By processing the first feature vector by the neuron combinations corresponding to each dropout multiple times, the output feature vector corresponding to each neuron combination can be obtained.
[0093] Among them, dropout can be regarded as a processing method for training deep neural networks. In each training batch, by ignoring part (for example, half) of the feature detectors (for example, setting half of the hidden layer node values to 0), the overfitting phenomenon can be significantly reduced. This method can reduce the interaction between feature detectors (hidden layer nodes) (detector interaction means that some detectors rely on other detectors to work). In other words, during forward propagation, the activation value of a neuron stops working with a certain probability, so that the model will not be overly dependent on certain local features, thereby improving the generalization of the model.
[0094] S305: Determine a deviation parameter between multiple output feature vectors, and determine quality evaluation data of the target account according to the deviation parameter.
[0095] In the embodiment of the present application, based on the idea of model perturbation, the server calculates the deviation parameter between multiple output feature vectors, and then determines the quality evaluation data of the target account according to the deviation parameter. The deviation parameter between multiple output feature vectors is used to indicate the degree of deviation between multiple output feature vectors, and the deviation parameter can be the variance of multiple output feature vectors.
[0096] In one embodiment, the above-mentioned determination of the deviation parameter between the multiple output feature vectors and determination of the quality evaluation data of the target account according to the deviation parameter can be implemented according to the following steps:
[0097] (b1) Calculate the variance of multiple output feature vectors to obtain deviation parameters of the multiple output feature vectors.
[0098] In one embodiment, the server obtains a deviation parameter by performing variance calculation on multiple output feature vectors, so that the deviation parameter can characterize the relevance of the contents of multiple videos to be detected of the account to a certain extent. If the deviation parameter is smaller, the quality evaluation data is smaller, indicating that the content relevance of multiple videos to be detected of the target account is high; if the deviation parameter is larger, the quality evaluation data is larger, indicating that the content relevance of multiple videos to be detected of the target account is low.
[0099] (b2) normalizing the deviation parameters and determining the normalized deviation parameters as the quality evaluation data of the target account.
[0100] In one embodiment, the server finally determines the deviation parameter after normalization as the quality evaluation data of the target account. Through normalization, the deviation parameter of the target account can be limited to a certain interval (for example, mapped to a value within the range of 0-1), which enhances the comparability of the data and makes the operation more convenient. Through the above method, the quality evaluation data of the account can be reflected through robustness. When comparing the quality evaluation data of multiple accounts, each quality evaluation data is at the same level and is suitable for comprehensive comparative evaluation. The server can directly regard accounts with smaller quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish.
[0101] The following will explain the processing flow of the data classification model with specific examples. Figure 4A , which is a schematic diagram of determining quality evaluation data provided by an embodiment of the present application. The input vector (I) in the figure can be the first feature vector of the target account. The first feature vector is processed by different neuron combinations (i.e., different random subnetworks) in the first fully connected layer in the data classification model to obtain the output feature vectors corresponding to each random subnetwork, denoted as X(I), and the expression of X(I) is as follows:
[0102] X(I) = {x s},s∈1,2,…,m
[0103] Among them, x s Represents the output feature vector corresponding to the s-th random sub-network.
[0104] Then the variance of multiple output feature vectors is calculated, denoted as σ. The server then normalizes the variance of multiple output feature vectors to obtain the quality evaluation data of the target account, denoted as q(X{I}). The expression of q(X{I}) is as follows:
[0105]
[0106] Where m represents the number of output feature vectors, d(x i ,x j ) represents x i With x j The distance between.
[0107] The following will introduce the training process of the data classification model in detail based on the model application scenario of steps S301-S305:
[0108] In one embodiment, before processing the target account using the data classification model, the following model training process may also be included:
[0109] (c1) obtaining text information, video information and annotation information of multiple sample videos corresponding to the sample account; the annotation information includes a first reference category and a second reference category of each sample video.
[0110] In an embodiment of the present application, a sample account refers to an account used to perform model training on an initial classification model, and multiple sample videos may refer to part or all of the video content that has been published by the sample account. The server can obtain multiple sample videos published by the sample account from a database. The server first obtains multiple sample videos corresponding to the sample account. Since each sample video may include information in text mode (i.e., text information, such as text content) and information in visual mode (i.e., image information, such as image frames in a video), the server then obtains the text information and video information of each sample video. By obtaining multi-dimensional and multi-modal information of the sample videos of the sample account for subsequent model training, the training effect can be improved.
[0111] Each sample video carries annotation information, namely the first reference category and the second reference category of the sample video, and the second reference category is a subcategory of the first reference category. For example, if the sample video is an explanation video of the Candy Crush game, then the first reference category may be "Game", and the second reference category may be the "Candy Crush" subcategory under the "Game" category. Among them, the first reference category and the second reference category of the sample video may be provided to the server or stored in the database by the publisher when the sample video is published (the first reference category and the second reference category and the sample video may be stored as a whole). The first reference category and the second reference category may also be obtained by processing by manual annotation or artificial intelligence annotation. This application does not limit it.
[0112] Among them, the specific process of the server obtaining the text information and video information of multiple sample videos corresponding to the sample account can be found in the description of steps (a1-a3) in the above embodiment, which will not be repeated in this embodiment.
[0113] (c2) Determine target text feature vectors of text information of multiple sample videos and video feature vectors of video information of multiple sample videos using the initial classification model.
[0114] In an embodiment of the present application, the server can use the first feature extraction network in the initial classification model to perform feature extraction processing on the text information of multiple sample videos to obtain text feature vectors corresponding to the text information of the multiple sample videos. The server can use the second feature extraction network in the initial classification model to perform feature extraction processing on the video information of multiple sample videos to obtain video feature vectors corresponding to the video information of the multiple sample videos. Among them, the first feature extraction network and the second feature extraction network can be the same feature extraction network or different feature extraction networks. The feature extraction network can be pre-trained based on sample data to improve the accuracy of feature representation of text feature vectors and video feature vectors.
[0115] (c3) Using the initial classification model, the target text feature vectors of the text information of the multiple sample videos and the video feature vectors of the video information of the multiple sample videos are processed to obtain the predicted data of the sample account.
[0116] In an embodiment of the present application, the prediction data includes a first prediction category, a second prediction category, a target text feature vector of text information of a plurality of sample videos, and a prediction text feature vector.
[0117] The following is an explanation of the processing flow of the data classification model. Figure 4B , which is a schematic diagram of the processing process of a data classification model provided in an embodiment of the present application. The model structure adopts a single-tower multi-modal Transformer (MMT) structure and an MLM pre-training task. The single-tower structure refers to processing the input of both visual and textual modalities in a unified manner, and using the Transformer structure as a common encoder to learn the information interaction between modalities, that is, multimodal fusion. This model is a pure content self-supervised account model that does not require additional labeled data. The language model (BERT) of the data classification model includes multiple Transformer layers (for example, 12 layers, i.e. Figure 4B L1-L12 in the figure represents 12 Transformer layers numbered from 1 to 12). The data classification model also includes a multimodal attention mechanism (Attention Features).
[0118] The rectangular box where the text feature vector is located in the figure is the processing module of the text mode, and the rectangular box where the video feature vector is located is the processing module of the video mode. In the text mode, the server can remove all the text information corresponding to multiple sample videos of the sample account and use it as the text information corresponding to multiple sample videos. This part is randomly masked for model training through the MLM training task. In the video mode, since the categories of the videos posted by the account are different and diverse, there is no limit on the maximum number of input videos. Instead, according to the number of primary categories of the video (for example, 45 primary categories), the feature vectors of the videos belonging to the same primary category are element-wise added, and finally the video features of different primary categories are concatenated together. Therefore, in the video mode, different positions correspond to different primary categories, and the output of the corresponding position is determined by a binary classifier to determine whether to output the primary category. For example, the server groups the feature vectors of the video information of each video to be detected according to the primary category of each video to be detected, and then fuses the feature vectors in each group according to the grouping, and then splices the fused feature vectors of each group to obtain a fused video feature vector (for example, the video feature vectors corresponding to the four categories in the figure). The model finally takes the text feature vector and the video feature vector as input. Through the multimodal attention mechanism, MMT can learn the joint feature vector. Finally, the secondary classification of the video is used as the secondary classification of the account.
[0119] The MLM training task will be explained below. During MLM training, the text feature vector input during training is partially masked (for example, randomly mask 15% of the text tokens, that is, replaced with [MASK]), and then the cloze prediction is performed through the softmax of the initial classification model to obtain the predicted text feature vector. In addition, the present application optimizes the masking method. For the randomly selected mask part (that is, 15% of the text token), it is not directly replaced with [MASK], but is randomly replaced again: 80% of it is replaced with [mask] token, 10% of it is randomly replaced, and 10% of it is not replaced. Consistent with the BERT model, MMT will restore the masked tokens through self-supervision. Based on this, the server can determine the difference data based on the predicted text feature vector (that is, the predicted text obtained by predicting the masked text) and the target text feature vector (that is, the original text) for adjusting the model parameters. Through the above method, the model can alleviate the performance loss caused by the deviation between the training text and the predicted text, and enable the model to learn to automatically correct errors based on contextual information, thereby improving the model training effect.
[0120] In one embodiment, the above step (c3) can be implemented according to the following steps:
[0121] (c31) Using the initial classification model, target text feature vectors of text information of multiple sample videos and video feature vectors of video information of multiple sample videos are processed to obtain predicted text feature vectors of text information of multiple sample videos and fused feature vectors of multiple sample videos, wherein the predicted text feature vector is generated based on the mask feature vector of the target text feature vector.
[0122] In the embodiment of the present application, the initial classification model mainly includes three training tasks, namely, the primary classification training task, the secondary classification training task and the MLM training task. The predicted text feature vector is used for the MLM training task, and the predicted text feature vector is generated based on the mask feature vector of the target text feature vector. Specifically, the initial classification model performs mask processing on the target text feature vector of the text information of multiple sample videos to obtain the mask text feature vector, and then uses the initial classification model to perform prediction processing on the mask text feature vector to obtain the predicted text feature vector.
[0123] For example, the overall text feature vector obtained through the text modality is a 45*64-dimensional feature vector (taking 4 first-level categories as an example), and the overall video feature vector obtained through the video modality is a 4*64-dimensional feature vector. The overall text feature vector and the video feature vector are concatenated to obtain an 8*64-dimensional feature vector. The 8*64-dimensional feature vector is input into 12 Transformer layers for processing, and finally the fused feature vector of multiple sample videos is output through the multimodal attention mechanism, that is, an 8*768-dimensional feature vector.
[0124] (c32) Use the initial classification model to split the fused feature vectors of multiple sample videos to obtain second feature vectors corresponding to the text information of the multiple sample videos and third feature vectors corresponding to the video information of the multiple sample videos, and determine the fourth feature vector of the sample account based on the second feature vector and the third feature vector.
[0125] In an embodiment of the present application, the server can use the initial classification model to split the fused feature vectors of multiple sample videos to obtain a second feature vector corresponding to the text information and a third feature vector corresponding to the video information, and then fuse the second feature vector and the third feature vector to obtain a fourth feature vector of the sample account.
[0126] Exemplarily, the server uses the initial classification model to split the 8*768-dimensional fused feature vector, and uses the fused feature vector corresponding to the first 4 dimensions (the first 4*768-dimensional feature vector, i.e., the second feature vector) as the feature vector corresponding to the text information, and uses the fused feature vector corresponding to the last 4 dimensions (the last 4*768-dimensional feature vector, i.e., the third feature vector) as the feature vector corresponding to the video information. The 4*768-dimensional feature vector corresponding to the text information is intersected and averaged to obtain a 1*768-dimensional feature vector. Similarly, the 4*768-dimensional feature vector corresponding to the video information is intersected and averaged to obtain a 1*768-dimensional feature vector. Then, the initial classification model is used to concatenate the 1*768-dimensional feature vector corresponding to the text information and the 1*768-dimensional feature vector corresponding to the video information to obtain a 1*1536-dimensional feature vector (i.e., the fourth feature vector).
[0127] (c33) Using the second fully connected layer in the initial classification model to process the third feature vector, obtain the first predicted category of the sample account, and using the first fully connected layer in the initial classification model to process the fourth feature vector, obtain the second predicted category of the sample account.
[0128] In an embodiment of the present application, the server can use different fully connected layers to process the intermediate data (including the third eigenvector and the fourth eigenvector) in the initial classification model processing process to obtain the first predicted category and the second predicted category of the sample account.
[0129] Exemplarily, the server uses the second fully connected layer in the initial classification model (e.g., a fully connected layer with a dimension of 768*1) to process the 4*768-dimensional third feature vector to obtain the first predicted category of the sample account (e.g., a 1*4-dimensional prediction vector, each prediction value is the prediction probability of the corresponding first-level category). The server uses the first fully connected layer in the initial classification model (e.g., a fully connected layer with a dimension of 1536*300) to process the 1*1536-dimensional fourth feature vector to obtain the second predicted category of the sample account (e.g., a 1*300-dimensional prediction vector, each prediction value is the prediction probability of the corresponding second-level category).
[0130] (c34) The first prediction category, the second prediction category, the target text feature vector and the prediction text feature vector are used as prediction data of the sample account.
[0131] In the embodiment of the present application, the prediction data includes the first prediction category and the second prediction category of the sample account, and the target text feature vector and the prediction text feature vector corresponding to the text information of multiple sample videos corresponding to the account. The model is trained by the above prediction data and the annotated data of each sample video (including the first reference category and the second reference category of each sample video).
[0132] (c4) The initial classification model is trained using the predicted data, the first reference category and the second reference category of each sample video to obtain a data classification model.
[0133] In one embodiment, the above step c4 can be implemented according to the following steps:
[0134] (c41) Determine first difference data using the first predicted category and the first reference category of each sample video.
[0135] In one embodiment, the server may determine the first difference data based on the difference data between the first predicted category of the sample account and the first reference category of each sample video (e.g., BCEloss loss), and then based on the difference data between the first predicted category of the sample account and the first reference category of each sample video (e.g., adding the difference data between the first predicted category of the sample account and the first reference category of each sample video as the first difference data).
[0136] (c42) Determine second difference data using the second predicted category and the second reference category of each sample video.
[0137] In one embodiment, the server may determine the second difference data based on the difference data between the second predicted category of the sample account and the second reference category of each sample video (e.g., BCEloss loss), and then based on the difference data between the second predicted category of the sample account and the second reference category of each sample video (e.g., adding the difference data between the second predicted category of the sample account and the second reference category of each sample video as the second difference data).
[0138] (c43) Determine third difference data using the target text feature vector and the predicted text feature vector.
[0139] In one embodiment, the target text feature vector can be regarded as self-supervision information of the predicted text feature vector (self-supervision information can be obtained without additional annotation), and the server can determine the difference data (such as CEloss loss) between the target text feature vector and the predicted text feature vector as the third difference data.
[0140] (c44) Using the first difference data, the second difference data and the third difference data, the model parameters of the initial classification model are adjusted to obtain a data classification model.
[0141] In one embodiment, the server may add the first difference data, the second difference data, and the third difference data as the total loss, and then adjust the model parameters of the initial classification model according to the total loss to obtain the data classification model.
[0142] Taking the second difference data (or the first difference data) as an example, the second difference data can use the BCEloss loss function. For a single sample, after passing through the classifier, x n (x n refers to the predicted data of the second classification), and the second difference data is recorded as l n 0 , then l n 0 The calculation formula is as follows:
[0143] l n 0 =-[x n ·logy n +(1-y n )·log(1-x n )]
[0144] Among them, x n is the second predicted category, y n For x n The corresponding labeled data is the second reference category.
[0145] Based on the above embodiments, the beneficial effect of the present application is that: the present application proposes that multiple random sub-networks can be obtained by randomly dropouting neurons in the fully connected layer of the data classification model, and the quality evaluation data of the account can be determined by the deviation parameters (such as variance) of the output of each random sub-network. In this way, there is no need to formulate a strategy, nor is there any need to manually annotate data, which saves costs and manpower. The quality evaluation data of the account is reflected by robustness, and a numerical value ranging from 0 to 1 can be output to measure the quality evaluation data of the account. Through the above method, when the quality evaluation data of multiple accounts are compared, each quality evaluation data is at the same level, which is suitable for comprehensive comparative evaluation. The quality evaluation data of the account is determined by the deviation parameter. If the deviation parameter is smaller, the quality evaluation data is smaller, indicating that the content relevance of multiple videos to be detected of the target account is higher; if the deviation parameter is larger, the quality evaluation data is larger, indicating that the content relevance of multiple videos to be detected of the target account is lower. In this case, the server can use accounts with smaller quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish.
[0146] See also Figure 5 , which is a flow chart of a data quality detection method provided by an exemplary embodiment of the present application, in which the method is applied to a server (referring to Figure 1 Taking the server 102 in the example as an example, the method may include the following steps:
[0147] S501: Obtain text information and video information of multiple videos to be detected corresponding to a target account.
[0148] S502: Determine, using a data classification model, text feature vectors corresponding to text information of multiple videos to be detected, and video feature vectors corresponding to video information of multiple videos to be detected.
[0149] S503: Use the data classification model to fuse the text feature vector and the video feature vector to obtain the first feature vector of the target account.
[0150] The specific implementation of steps S501-S503 refers to the relevant description of steps S301-S303 in the aforementioned embodiment, which will not be repeated here.
[0151] The present application can determine the quality evaluation data of an account by the modulus length of the account feature vector. Taking verticality as an example of quality evaluation data, the larger the modulus length, the higher the verticality, and the higher the account quality; the smaller the modulus length, the lower the verticality, and the lower the account quality. In the second way, the present application represents the verticality information of an account by an account feature vector, breaking the barriers between traditional account feature vectors and account verticality training models, and creatively integrating the two into one model. The second implementation method of determining the quality evaluation data of a target account using the first feature vector will be introduced in detail below through steps S504-S505:
[0152] S504: Calculate the modulus length of the first eigenvector to obtain the modulus length of the first eigenvector.
[0153] In the embodiment of the present application, since the first feature vector represents the feature information of the video content of the account, the server calculates the modulus length of the first feature vector to obtain the modulus length of the first feature vector, thereby representing the verticality information of the account.
[0154] In one embodiment, the first eigenvector is recorded as emb1, and the modulus of the first eigenvector can be recorded as |emb1|.
[0155] S505. Determine the quality evaluation data of the target account according to the modulus length of the first feature vector.
[0156] In an embodiment of the present application, the server may directly determine the modulus length of the first feature vector as the quality evaluation data of the target account; the server may also normalize the modulus length of the first feature vector to obtain a normalized result, and then determine the normalized result as the quality evaluation data of the target account. Through the above method, when the quality evaluation data of multiple accounts are compared, each quality evaluation data is at the same level, which is suitable for comprehensive comparative evaluation. The server can directly regard accounts with larger quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish.
[0157] The following will introduce the training process of the data classification model in detail based on the model application scenario of steps S501-S505:
[0158] In one embodiment, before processing the target account using the data classification model, the following model training process may also be included:
[0159] (d1) obtaining text information, video information and annotation information of multiple sample videos corresponding to the sample account; the annotation information includes a first reference category and a second reference category of each sample video.
[0160] (d2) Determine target text feature vectors of text information of multiple sample videos and video feature vectors of video information of multiple sample videos using the initial classification model.
[0161] (d3) Using the initial classification model, the target text feature vectors of the text information of the multiple sample videos and the video feature vectors of the video information of the multiple sample videos are processed to obtain the predicted data of the sample account.
[0162] In one embodiment, the above step (d3) can be implemented according to the following steps:
[0163] (d31) Using the initial classification model, the target text feature vectors of the text information of multiple sample videos and the video feature vectors of the video information of multiple sample videos are processed to obtain the predicted text feature vectors of the text information of the multiple sample videos and the fused feature vectors of the multiple sample videos, wherein the predicted text feature vector is generated based on the mask feature vector of the target text feature vector.
[0164] (d32) Use the initial classification model to split the fused feature vectors of multiple sample videos to obtain the second feature vectors corresponding to the text information of the multiple sample videos and the third feature vectors corresponding to the video information of the multiple sample videos, and determine the fourth feature vector of the sample account based on the second feature vector and the third feature vector.
[0165] (d33) Using the second fully connected layer in the initial classification model to process the third feature vector, obtain the first predicted category of the sample account, and using the first fully connected layer in the initial classification model to process the fourth feature vector, obtain the second predicted category of the sample account.
[0166] (d34) The first prediction category, the second prediction category, the target text feature vector and the prediction text feature vector are used as prediction data of the sample account.
[0167] (d4) The initial classification model is trained using the predicted data, the first reference category and the second reference category of each sample video to obtain a data classification model.
[0168] In the embodiment of the present application, the initial classification model mainly includes three training tasks, namely, the primary classification training task, the secondary classification training task and the MLM training task. The predicted text feature vector is used for the MLM training task, and the predicted text feature vector is generated based on the mask feature vector of the target text feature vector. Specifically, the initial classification model performs mask processing on the target text feature vector of the text information of multiple sample videos to obtain the mask text feature vector, and then uses the initial classification model to perform prediction processing on the mask text feature vector to obtain the predicted text feature vector.
[0169] In one embodiment, the above step d4 can be implemented according to the following steps:
[0170] (d41) Determine first difference data using the first predicted category and the first reference category of each sample video.
[0171] (d42) Determine second difference data using the second predicted category and the second reference category of each sample video.
[0172] (d43) Determine third difference data using the target text feature vector and the predicted text feature vector.
[0173] (d44) Using the first difference data, the second difference data and the third difference data, the model parameters of the initial classification model are adjusted to obtain a data classification model.
[0174] The specific implementation methods of the above steps (d1-d4), including steps (d31-d34) and (d41-d44), refer to the relevant description of steps (c1-c4) in the above embodiments, which will not be repeated here. The embodiment of the present application mainly introduces the difference in the processing process in step (d44) based on the difference in the calculation method of the quality evaluation data.
[0175] In one embodiment, the above step d44 can be implemented according to the following steps:
[0176] (e1) Calculate the modulus length of the fourth eigenvector to obtain the modulus length of the fourth eigenvector.
[0177] In the embodiment of the present application, since the fourth feature vector represents the characteristic information of the video content of the sample account, the server calculates the modulus length of the fourth feature vector to obtain the modulus length of the fourth feature vector, thereby representing the verticality information of the account. The present application encourages the modulus length of the account vector (corresponding to the verticality of the account), and encourages the loss of sample accounts with high verticality, that is, the loss function is a monotonically increasing function of the modulus length of the account.
[0178] In one embodiment, the fourth eigenvector is recorded as emb4, and the modulus of the fourth eigenvector can be recorded as |emb4|.
[0179] (e2) Determine the weight parameter using the modulus of the fourth eigenvector.
[0180] In the embodiment of the present application, the server can use the modulus length of the fourth eigenvector to determine the weight parameter of each difference data, and multiple difference data can have the same weight parameter or different weight parameters. By setting differentiated weight parameters for different difference data, the matching degree with the business data and the flexibility of processing are improved.
[0181] In one embodiment, taking the second difference data as an example, the original second difference data is recorded as l n 0 , the weight parameter of the second difference data is recorded as w, then the second difference data obtained by adjusting the weight parameter is recorded as l n 1 . w、l n 1 The calculation formula can be as follows:
[0182] w=sigmoid(|emb4|)
[0183] l n 1 =sigmoid(|emb4|)·l n 0
[0184] Among them, the sigmoid(x) function is an activation function, which maps the variable to the interval [0,1]. The calculation formula of sigmoid(x) is as follows:
[0185]
[0186] (e3) Determine target difference data using the weight parameter, the first difference data, the second difference data and the third difference data.
[0187] In the embodiment of the present application, the server may adjust one or more difference parameters among the first difference data, the second difference data and the third difference data through weight parameters and determine the target difference data based on the adjusted difference parameters.
[0188] In one embodiment, the original first difference data, the second difference data and the third difference data are denoted as l1, l2 and l3 respectively. The weight parameters corresponding to the first difference data, the second difference data and the third difference data are denoted as w1, w2 and w3 respectively. w1, w2 and w3 can be the same or different. w1, w2 and w3 can be calculated based on the modulus length |emb4| of the fourth eigenvector, or directly take the value of 1 (in this case, the corresponding difference data weight remains unchanged). The target difference data is denoted as l sum , l sum The calculation formula is as follows:
[0189] l sum =w1·l1+w2·l2+w3·l3
[0190] (e4) Using the target difference data, the model parameters of the initial classification model are adjusted to obtain a data classification model.
[0191] The data classification model is trained through the above-mentioned adaptive mechanism, so that the modulus length of the account vector output by the data classification model is finally used to represent the verticality of the account. The longer the modulus length, the higher the verticality of the account.
[0192] It should be noted that the idea of applying weights to difference data based on the modulus length of the fourth eigenvector proposed in this application can be applied to the processing flow of determining quality evaluation data through deviation parameters of the outputs of multiple random sub-networks, and can also be applied to the processing flow of determining the verticality of an account through the modulus length of an account eigenvector. In both of the above processing processes, the difference data can be adaptively adjusted through the modulus length of the fourth eigenvector, so that the difference data is increased when the modulus length is large and the difference data is reduced when the modulus length is small, thereby improving the speed and effect of model training.
[0193] Based on the above embodiments, the beneficial effect of the present application is that the present application provides an adaptive method for calculating the quality evaluation data of an account, and determines the verticality of the account by the modulus of the account feature vector. The larger the modulus, the better the account and the larger the quality evaluation data; the smaller the modulus, the worse the account quality and the smaller the quality evaluation data. The server can regard accounts with larger quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish. Moreover, in the model training stage, the loss function can be adjusted based on the modulus of the sample account feature vector, thereby adding an adaptive mechanism to the training account vector to improve the training effect, and ultimately make the calculated account quality evaluation data more accurate.
[0194] See also Figure 6 , which is a schematic block diagram of a data quality detection device provided in an embodiment of the present application. The data quality detection device may specifically include:
[0195] The acquisition module 601 is used to acquire text information and video information of multiple videos to be detected corresponding to the target account;
[0196] The processing module 602 is used to determine the text feature vectors corresponding to the text information of the plurality of videos to be detected and the video feature vectors corresponding to the video information of the plurality of videos to be detected by using the data classification model;
[0197] The processing module 602 is further configured to use the data classification model to perform fusion processing on the text feature vector and the video feature vector to obtain a first feature vector of the target account;
[0198] An evaluation module 603, configured to determine quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate the correlation between the categories of the plurality of videos to be detected;
[0199] Among them, the above-mentioned data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the above-mentioned sample account, and then using the above-mentioned prediction data and the first reference category and the second reference category of each sample video to train the above-mentioned initial classification model. The above-mentioned prediction data includes the first prediction category, the second prediction category of the above-mentioned sample account, the target text feature vector and the prediction text feature vector of the text information of the above-mentioned multiple sample videos; the above-mentioned second reference category is a subcategory of the above-mentioned first reference category, and the above-mentioned second prediction category is a subcategory of the above-mentioned first prediction category.
[0200] Optionally, when the evaluation module 603 is used to determine the quality evaluation data of the target account using the first feature vector, it is specifically used to:
[0201] The first feature vector is processed by using different neuron combinations in the first fully connected layer in the data classification model to obtain multiple output feature vectors; there are different neurons between any two neuron combinations;
[0202] Determine the deviation parameters between the above-mentioned multiple output feature vectors, and determine the quality evaluation data of the above-mentioned target account according to the above-mentioned deviation parameters.
[0203] Optionally, when the evaluation module 603 is used to determine the deviation parameter between the plurality of output feature vectors and determine the quality evaluation data of the target account according to the deviation parameter, it is specifically used to:
[0204] Performing variance calculation on the plurality of output feature vectors to obtain deviation parameters of the plurality of output feature vectors;
[0205] The deviation parameters are normalized, and the normalized deviation parameters are determined as the quality evaluation data of the target account.
[0206] Optionally, when the evaluation module 603 is used to determine the quality evaluation data of the target account using the first feature vector, it is specifically used to:
[0207] Calculating the modulus of the first eigenvector to obtain the modulus of the first eigenvector;
[0208] The quality evaluation data of the target account is determined according to the modulus of the first feature vector.
[0209] Optionally, the processing module 602 is specifically used for:
[0210] Obtaining text information, video information, and annotation information of multiple sample videos corresponding to the sample account; the annotation information includes a first reference category and a second reference category of each sample video;
[0211] Determine target text feature vectors of the text information of the plurality of sample videos and video feature vectors of the video information of the plurality of sample videos by using an initial classification model;
[0212] Using the initial classification model, the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos are processed to obtain prediction data of the sample account;
[0213] The initial classification model is trained using the prediction data, the first reference category and the second reference category of each sample video to obtain a data classification model.
[0214] Optionally, when the processing module 602 is used to process the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos using the initial classification model to obtain the prediction data of the sample account, it is specifically used to:
[0215] Using the initial classification model, the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos are processed to obtain predicted text feature vectors of the text information of the plurality of sample videos and fused feature vectors of the plurality of sample videos, wherein the predicted text feature vector is generated based on the mask feature vector of the target text feature vector;
[0216] Using the initial classification model, the fused feature vectors of the multiple sample videos are split to obtain second feature vectors corresponding to the text information of the multiple sample videos and third feature vectors corresponding to the video information of the multiple sample videos, and determining a fourth feature vector of the sample account according to the second feature vector and the third feature vector;
[0217] The third feature vector is processed by the second fully connected layer in the initial classification model to obtain a first predicted category of the sample account, and the fourth feature vector is processed by the first fully connected layer in the initial classification model to obtain a second predicted category of the sample account;
[0218] The first prediction category, the second prediction category, the target text feature vector and the prediction text feature vector are used as prediction data of the sample account.
[0219] Optionally, when the processing module 602 is used to train the initial classification model using the prediction data, the first reference category and the second reference category of each sample video to obtain a data classification model, it is specifically used to:
[0220] Determine first difference data using the first predicted category and the first reference category of each of the sample videos;
[0221] Determine second difference data using the second predicted category and the second reference category of each sample video;
[0222] Determine third difference data using the target text feature vector and the predicted text feature vector;
[0223] The model parameters of the initial classification model are adjusted using the first difference data, the second difference data and the third difference data to obtain a data classification model.
[0224] Optionally, when the processing module 602 is used to adjust the model parameters of the initial classification model using the first difference data, the second difference data and the third difference data to obtain the data classification model, it is specifically used to:
[0225] Calculating the modulus of the fourth eigenvector to obtain the modulus of the fourth eigenvector;
[0226] Determine the weight parameter using the modulus of the fourth eigenvector;
[0227] Determine target difference data using the weight parameter, the first difference data, the second difference data and the third difference data;
[0228] The target difference data is used to adjust the model parameters of the initial classification model to obtain a data classification model.
[0229] Optionally, when the acquisition module 601 is used to acquire the text information and video information of the multiple videos to be detected corresponding to the target account, it is specifically used to:
[0230] Obtain multiple videos to be detected corresponding to the target account;
[0231] Performing text information extraction processing on each of the above-mentioned videos to be detected to obtain text information of each of the above-mentioned videos to be detected, wherein the above-mentioned text information includes one or more of the title information of the above-mentioned videos to be detected and the text extraction information of the image frame;
[0232] Video information extraction processing is performed on each of the above-mentioned videos to be detected to obtain video information of each of the above-mentioned videos to be detected, and the above-mentioned video information includes image information of the image frame of the above-mentioned video to be detected.
[0233] Based on the above-mentioned data quality detection device, the present application processes the text information and video information of multiple videos to be detected corresponding to the account through a data classification model to obtain a first feature vector corresponding to the account.
[0234] Since the first feature vector is obtained based on the fusion of multimodal data of the account, it can better represent the feature information of the overall content of the account, thereby ensuring the richness of the representation data of the first feature vector.
[0235] The present application further calculates the quality evaluation data of the account based on the first feature vector, so that the quality evaluation data can represent the relevance between the contents of multiple videos to be detected.
[0236] Compared with calculating the quality evaluation data through the vector distance between the feature vectors of each video, the present application can avoid measuring the quality evaluation data through subjective setting strategies (for example, setting the correspondence between the vector distance between the feature vectors of each video and the quality evaluation data), but instead fully combines the first feature vector of the account to determine the quality evaluation data, thereby improving the accuracy of the quality evaluation data.
[0237] The server can perform subsequent resource push processing based on the quality evaluation data. Specifically, in the recommendation distribution scenario, the server can recommend more high-verticality accounts or videos posted by the accounts to other users based on the quality evaluation data of each account (such as verticality), and reduce the exposure of low-verticality accounts and videos posted by the accounts. Through the above method, the resource conversion effect and user browsing experience can be improved.
[0238] The present application proposes that multiple random sub-networks can be obtained by randomly dropout of neurons in the fully connected layer of the data classification model, and the quality evaluation data of the account can be determined by the deviation parameters (such as variance) of the output of each random sub-network.
[0239] In this way, this application does not need to formulate strategies or manually annotate data, saving costs and manpower. The quality evaluation data of the account is reflected by robustness, and finally a value between 0 and 1 can be output to measure the quality evaluation data of the account.
[0240] Based on this, the server can identify accounts with smaller quality evaluation data as high-quality accounts, thereby increasing the exposure of such accounts and the videos they publish.
[0241] The present application also provides an adaptive method for calculating account quality evaluation data, which determines the verticality of an account by the modulus of an account feature vector.
[0242] The larger the modulus length, the better the account and the larger the quality evaluation data; the smaller the modulus length, the worse the account and the smaller the quality evaluation data. The server can regard accounts with larger quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish.
[0243] Moreover, during the model training phase, the loss function can be adjusted based on the module length of the sample account feature vector, thereby adding an adaptive mechanism to the training account vector to improve the training effect, and ultimately make the calculated account quality evaluation data more accurate.
[0244] It should be noted that the functions of the various functional modules of the data quality detection device in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0245] See also Figure 7 , which is a schematic block diagram of a computer device provided in an embodiment of the present application. As shown in the figure, the intelligent terminal in this embodiment may include: a processor 701, a storage device 702, and a communication interface 703. The processor 701, the storage device 702, and the communication interface 703 may exchange data.
[0246] The above-mentioned storage device 702 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 702 may also include a non-volatile memory (non-volatile memory), such as a flash memory, a solid-state drive (SSD), etc.; the above-mentioned storage device 702 may also include a combination of the above-mentioned types of memory.
[0247] The processor 701 may be a central processing unit (CPU). In one embodiment, the processor 701 may also be a graphics processing unit (GPU). The processor 701 may also be a combination of a CPU and a GPU. In one embodiment, the storage device 702 is used to store program instructions, and the processor 701 may call the program instructions to perform the following operations:
[0248] Obtain text information and video information of multiple videos to be detected corresponding to the target account;
[0249] Determine, by using a data classification model, text feature vectors corresponding to the text information of the plurality of videos to be detected, and video feature vectors corresponding to the video information of the plurality of videos to be detected;
[0250] Using the data classification model, the text feature vector and the video feature vector are fused to obtain a first feature vector of the target account;
[0251] Determining quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate the relevance between the categories of the plurality of videos to be detected;
[0252] Among them, the above-mentioned data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the above-mentioned sample account, and then using the above-mentioned prediction data and the first reference category and the second reference category of each sample video to train the above-mentioned initial classification model. The above-mentioned prediction data includes the first prediction category, the second prediction category of the above-mentioned sample account, the target text feature vector and the prediction text feature vector of the text information of the above-mentioned multiple sample videos; the above-mentioned second reference category is a subcategory of the above-mentioned first reference category, and the above-mentioned second prediction category is a subcategory of the above-mentioned first prediction category.
[0253] Optionally, when the processor 701 is used to determine the quality evaluation data of the target account using the first feature vector, it is specifically used to:
[0254] The first feature vector is processed by using different neuron combinations in the first fully connected layer in the data classification model to obtain multiple output feature vectors; there are different neurons between any two neuron combinations;
[0255] Determine the deviation parameters between the above-mentioned multiple output feature vectors, and determine the quality evaluation data of the above-mentioned target account according to the above-mentioned deviation parameters.
[0256] Optionally, when the processor 701 is used to determine the deviation parameter between the plurality of output feature vectors and determine the quality evaluation data of the target account according to the deviation parameter, it is specifically used to:
[0257] Performing variance calculation on the plurality of output feature vectors to obtain deviation parameters of the plurality of output feature vectors;
[0258] The deviation parameters are normalized, and the normalized deviation parameters are determined as the quality evaluation data of the target account.
[0259] Optionally, when the processor 701 is used to determine the quality evaluation data of the target account using the first feature vector, it is specifically used to:
[0260] Calculating the modulus of the first eigenvector to obtain the modulus of the first eigenvector;
[0261] The quality evaluation data of the target account is determined according to the modulus of the first feature vector.
[0262] Optionally, the processor 701, when used for:
[0263] Obtaining text information, video information, and annotation information of multiple sample videos corresponding to the sample account; the annotation information includes a first reference category and a second reference category of each sample video;
[0264] Determine target text feature vectors of the text information of the plurality of sample videos and video feature vectors of the video information of the plurality of sample videos by using an initial classification model;
[0265] Using the initial classification model, the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos are processed to obtain prediction data of the sample account;
[0266] The initial classification model is trained using the prediction data, the first reference category and the second reference category of each sample video to obtain a data classification model.
[0267] Optionally, when the processor 701 is used to process the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos using the initial classification model to obtain the prediction data of the sample account, it is specifically used to:
[0268] Using the initial classification model, the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos are processed to obtain predicted text feature vectors of the text information of the plurality of sample videos and fused feature vectors of the plurality of sample videos, wherein the predicted text feature vector is generated based on the mask feature vector of the target text feature vector;
[0269] Using the initial classification model, the fused feature vectors of the multiple sample videos are split to obtain second feature vectors corresponding to the text information of the multiple sample videos and third feature vectors corresponding to the video information of the multiple sample videos, and determining a fourth feature vector of the sample account according to the second feature vector and the third feature vector;
[0270] The third feature vector is processed by the second fully connected layer in the initial classification model to obtain a first predicted category of the sample account, and the fourth feature vector is processed by the first fully connected layer in the initial classification model to obtain a second predicted category of the sample account;
[0271] The first prediction category, the second prediction category, the target text feature vector and the prediction text feature vector are used as prediction data of the sample account.
[0272] Optionally, when the processor 701 is used to train the initial classification model using the prediction data, the first reference category and the second reference category of each sample video to obtain a data classification model, it is specifically used to:
[0273] Determine first difference data using the first predicted category and the first reference category of each of the sample videos;
[0274] Determine second difference data using the second predicted category and the second reference category of each sample video;
[0275] Determine third difference data using the target text feature vector and the predicted text feature vector;
[0276] The model parameters of the initial classification model are adjusted using the first difference data, the second difference data and the third difference data to obtain a data classification model.
[0277] Optionally, when the processor 701 is used to adjust the model parameters of the initial classification model using the first difference data, the second difference data, and the third difference data to obtain the data classification model, it is specifically used to:
[0278] Calculating the modulus of the fourth eigenvector to obtain the modulus of the fourth eigenvector;
[0279] Determine the weight parameter using the modulus of the fourth eigenvector;
[0280] Determine target difference data using the weight parameter, the first difference data, the second difference data and the third difference data;
[0281] The target difference data is used to adjust the model parameters of the initial classification model to obtain a data classification model.
[0282] Optionally, when the processor 701 is used to obtain text information and video information of multiple videos to be detected corresponding to the target account, it is specifically used to:
[0283] Obtain multiple videos to be detected corresponding to the target account;
[0284] Performing text information extraction processing on each of the above-mentioned videos to be detected to obtain text information of each of the above-mentioned videos to be detected, wherein the above-mentioned text information includes one or more of the title information of the above-mentioned videos to be detected and the text extraction information of the image frame;
[0285] Video information extraction processing is performed on each of the above-mentioned videos to be detected to obtain video information of each of the above-mentioned videos to be detected, and the above-mentioned video information includes image information of the image frame of the above-mentioned video to be detected.
[0286] Based on the above-mentioned data quality detection device, the present application processes the text information and video information of multiple videos to be detected corresponding to the account through a data classification model to obtain a first feature vector corresponding to the account.
[0287] Since the first feature vector is obtained based on the fusion of multimodal data of the account, it can better represent the feature information of the overall content of the account, thereby ensuring the richness of the representation data of the first feature vector.
[0288] The present application further calculates the quality evaluation data of the account based on the first feature vector, so that the quality evaluation data can represent the relevance between the contents of multiple videos to be detected.
[0289] Compared with calculating the quality evaluation data through the vector distance between the feature vectors of each video, the present application can avoid measuring the quality evaluation data through subjective setting strategies (for example, setting the correspondence between the vector distance between the feature vectors of each video and the quality evaluation data), but instead fully combines the first feature vector of the account to determine the quality evaluation data, thereby improving the accuracy of the quality evaluation data.
[0290] The server can perform subsequent resource push processing based on the quality evaluation data. Specifically, in the recommendation distribution scenario, the server can recommend more high-verticality accounts or videos posted by the accounts to other users based on the quality evaluation data of each account (such as verticality), and reduce the exposure of low-verticality accounts and videos posted by the accounts. Through the above method, the resource conversion effect and user browsing experience can be improved.
[0291] The present application proposes that multiple random sub-networks can be obtained by randomly dropout of neurons in the fully connected layer of the data classification model, and the quality evaluation data of the account can be determined by the deviation parameters (such as variance) of the output of each random sub-network.
[0292] In this way, this application does not need to formulate strategies or manually annotate data, saving costs and manpower. The quality evaluation data of the account is reflected by robustness, and finally a value between 0 and 1 can be output to measure the quality evaluation data of the account.
[0293] Based on this, the server can identify accounts with smaller quality evaluation data as high-quality accounts, thereby increasing the exposure of such accounts and the videos they publish.
[0294] The present application also provides an adaptive method for calculating account quality evaluation data, which determines the verticality of an account by the modulus of an account feature vector.
[0295] The larger the modulus length, the better the account and the larger the quality evaluation data; the smaller the modulus length, the worse the account and the smaller the quality evaluation data. The server can regard accounts with larger quality evaluation data as high-quality accounts to increase the exposure of such accounts and the videos they publish.
[0296] Moreover, during the model training phase, the loss function can be adjusted based on the module length of the sample account feature vector, thereby adding an adaptive mechanism to the training account vector to improve the training effect, and ultimately make the calculated account quality evaluation data more accurate.
[0297] In a specific implementation, the processor 701, the storage device 702, and the communication interface 703 described in the embodiments of the present application can execute the embodiments of the present application. Figure 2 , Figure 3 or Figure 5The implementation method described in the relevant embodiments of the data quality detection method provided can also be implemented in the embodiments of this application Figure 6 The implementation methods described in the relevant embodiments of the provided data quality detection device will not be repeated here.
[0298] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0299] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data quality detection device mentioned above, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the above Figure 2 , Figure 3 or Figure 5 The method in the corresponding embodiment, therefore, will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one location, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network, and multiple computer devices distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.
[0300] 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 comprising 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 can perform the above Figure 2 , Figure 3 or Figure 5 The method in the corresponding embodiment will therefore not be described in detail here.
[0301] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0302] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of this application are still within the scope of the invention.
Claims
1. A data quality detection method, characterized in that: The method comprises: Obtain text information and video information of multiple videos to be detected corresponding to the target account; Determine, by using a data classification model, text feature vectors corresponding to the text information of the plurality of videos to be detected, and video feature vectors corresponding to the video information of the plurality of videos to be detected; Using the data classification model to fuse the text feature vector and the video feature vector, to obtain a first feature vector of the target account; Determining quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate the relevance between categories of the plurality of videos to be detected; Among them, the data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the sample account, and then using the prediction data and the first reference category and the second reference category of each sample video to train the initial classification model, the prediction data including the first prediction category, the second prediction category of the sample account, the target text feature vector and the prediction text feature vector of the text information of the multiple sample videos; the second reference category is a subcategory of the first reference category, and the second prediction category is a subcategory of the first prediction category.
2. The method according to claim 1, characterized in that The determining the quality evaluation data of the target account by using the first feature vector includes: Processing the first feature vector using different neuron combinations in the first fully connected layer in the data classification model to obtain multiple output feature vectors; there are different neurons between any two neuron combinations; Determine a deviation parameter between the multiple output feature vectors, and determine the quality evaluation data of the target account according to the deviation parameter.
3. The method according to claim 2, characterized in that The step of determining the deviation parameter between the plurality of output feature vectors and determining the quality evaluation data of the target account according to the deviation parameter includes: Performing variance calculation on the multiple output feature vectors to obtain deviation parameters of the multiple output feature vectors; The deviation parameter is normalized, and the normalized deviation parameter is determined as the quality evaluation data of the target account.
4. The method according to claim 1, characterized in that: The determining the quality evaluation data of the target account by using the first feature vector includes: Calculating the modulus of the first eigenvector to obtain the modulus of the first eigenvector; The quality evaluation data of the target account is determined according to the modulus of the first feature vector.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Acquire text information, video information, and annotation information of multiple sample videos corresponding to the sample account; the annotation information includes a first reference category and a second reference category of each sample video; Determining target text feature vectors of the text information of the plurality of sample videos and video feature vectors of the video information of the plurality of sample videos using an initial classification model; Using the initial classification model, the target text feature vectors of the text information of the plurality of sample videos and the video feature vectors of the video information of the plurality of sample videos are processed to obtain prediction data of the sample account; The initial classification model is trained using the predicted data, the first reference category and the second reference category of each sample video to obtain a data classification model.
6. The method according to claim 5, characterized in that The using the initial classification model to process the target text feature vectors of the text information of the multiple sample videos and the video feature vectors of the video information of the multiple sample videos to obtain the prediction data of the sample account includes: Using the initial classification model, the target text feature vectors of the text information of the multiple sample videos and the video feature vectors of the video information of the multiple sample videos are processed to obtain predicted text feature vectors of the text information of the multiple sample videos and fused feature vectors of the multiple sample videos, wherein the predicted text feature vector is generated based on the mask feature vector of the target text feature vector; Using the initial classification model to split the fused feature vectors of the multiple sample videos, obtain second feature vectors corresponding to the text information of the multiple sample videos and third feature vectors corresponding to the video information of the multiple sample videos, and determine a fourth feature vector of the sample account according to the second feature vector and the third feature vector; Processing the third feature vector using the second fully connected layer in the initial classification model to obtain a first predicted category of the sample account, and processing the fourth feature vector using the first fully connected layer in the initial classification model to obtain a second predicted category of the sample account; The first prediction category, the second prediction category, the target text feature vector, and the prediction text feature vector are used as prediction data for the sample account.
7. The method according to claim 6, characterized in that The method of training the initial classification model using the predicted data, the first reference category and the second reference category of each sample video to obtain a data classification model includes: Determine first difference data using the first predicted category and the first reference category of each sample video; Determine second difference data using the second predicted category and the second reference category of each sample video; Determine third difference data using the target text feature vector and the predicted text feature vector; The model parameters of the initial classification model are adjusted using the first difference data, the second difference data, and the third difference data to obtain a data classification model.
8. The method according to claim 7, characterized in that The method of adjusting the model parameters of the initial classification model by using the first difference data, the second difference data and the third difference data to obtain a data classification model includes: Performing modulus calculation on the fourth eigenvector to obtain the modulus of the fourth eigenvector; Determining a weight parameter using the modulus of the fourth eigenvector; Determine target difference data using the weight parameter, the first difference data, the second difference data and the third difference data; The target difference data is used to adjust the model parameters of the initial classification model to obtain a data classification model.
9. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining text information and video information of multiple videos to be detected corresponding to the target account includes: Obtain multiple videos to be detected corresponding to the target account; Performing text information extraction processing on each of the videos to be detected to obtain text information of each of the videos to be detected, wherein the text information includes one or more of title information of the video to be detected and text extraction information of the image frame; Perform video information extraction processing on each of the videos to be detected to obtain video information of each of the videos to be detected, wherein the video information includes image information of image frames of the videos to be detected.
10. A data quality detection device, characterized in that: The device comprises: An acquisition module, used to acquire text information and video information of multiple videos to be detected corresponding to a target account; A processing module, used for determining text feature vectors corresponding to the text information of the plurality of videos to be detected and video feature vectors corresponding to the video information of the plurality of videos to be detected by using a data classification model; The processing module is further used to use the data classification model to perform fusion processing on the text feature vector and the video feature vector to obtain a first feature vector of the target account; An evaluation module, configured to determine quality evaluation data of the target account using the first feature vector, wherein the quality evaluation data is used to indicate a correlation between categories of the plurality of videos to be detected; Among them, the data classification model is obtained by using the initial classification model to process the text information and video information of multiple sample videos corresponding to the sample account to obtain the prediction data of the sample account, and then using the prediction data and the first reference category and the second reference category of each sample video to train the initial classification model, the prediction data including the first prediction category, the second prediction category of the sample account, the target text feature vector and the prediction text feature vector of the text information of the multiple sample videos; the second reference category is a subcategory of the first reference category, and the second prediction category is a subcategory of the first prediction category.
11. A computer device, characterized in that: include: A processor, a storage device and a communication interface, wherein the processor, the communication interface and the storage device are interconnected, wherein the storage device stores an executable program code, and the processor is used to call the executable program code to implement the data quality detection method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions are executed by a processor to implement the data quality detection method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The computer program product comprises a computer program or a computer instruction, and when the computer program or the computer instruction is executed by a processor, it is used to implement the data quality detection method according to any one of claims 1 to 9.
Citation Information
Cited By
Process event response method based on large model
CN119313119A
Process event response method based on large model
CN119313119B
