A method for predicting the number of likes for short videos based on sentiment analysis

The short video likes estimation method that combines sentiment analysis and gradient boosting decision tree algorithm solves the problems of low accuracy and high calculation cost in the existing technology, and achieves more efficient and accurate likes estimation, which is applicable Real-time estimated demand for short video platforms.

CN114647785BActive Publication Date: 2024-09-24BEIJING UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210317169.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-09-24
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

Existing methods for estimating the number of likes for short videos have low accuracy and high computational costs, making it difficult to improve real-time performance and efficiency.

Method used

A method for estimating the number of likes for a short video based on sentiment analysis is adopted. By understanding the characteristics of the short video cover image, copywriting, and blogger name, combined with the gradient boosting decision tree machine learning algorithm, a parameter matrix for the number of likes is constructed, and a regression tree is used to simulate the number of likes. Combine and optimize the model to improve the prediction accuracy and reduce the amount of calculation.

Benefits of technology

It improves the accuracy and efficiency of short video likes estimation, reduces calculation costs, and achieves more efficient likes estimation, which is suitable for the real-time estimation needs of short video platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114647785B
    Figure CN114647785B
Patent Text Reader

Abstract

The method for predicting the number of likes for short videos based on sentiment analysis belongs to the field of information prediction. In the content of the present invention, two core components, data model and calculation and reasoning model, are deployed in the likes estimation device. The short video platform server is accessed through the database interface component to obtain data. The likes estimation result is stored in the likes data server. The remote access computer obtains data by accessing the likes data server. The understanding of the short video cover picture and the short video text is completed, and the results are used as the understanding of the feature vector or feature set. At the same time, the gradient boosting decision tree machine learning algorithm is used to reduce the amount of calculation, thereby improving the efficiency of the likes estimation. The video blogger name and short video tag data are embedded in the feature set for training the model, thereby improving the accuracy of the likes estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information prediction, especially the field of estimating methods for the number of likes of short videos and estimating the number of likes of short videos that have not been released. Background Art

[0002] Short videos are one of the business models of the Internet. They play an important role in promoting the development of rural tourism, live streaming of agricultural products, rapid transmission of social hot spots, public welfare education, advertising creativity, and commercial promotion. The number of likes on a short video reflects the quality and popularity of the video. If video creators can predict the number of likes on a short video in advance, it can help them continuously improve their videos and create better quality videos, thereby attracting more traffic. On the other hand, if advertisers on short video platforms can estimate in advance the number of likes that video creators will receive, it will help advertisers reduce risks, save costs, and improve economic benefits. Therefore, the number of likes is a hot topic in the fields of information prediction and machine learning.

[0003] The number of likes for a video is usually estimated by clicking likes after the video is played or while it is being watched. In theory, the administrator of the video platform needs to watch all short videos, or have the video content read by a machine. This task is arduous and very costly. There are two existing methods for estimating the number of likes for short videos. One method is to use a more traditional video understanding neural network model, such as YOLO. This video understanding technology is very computationally intensive and time-consuming. Another method is to use expensive hardware such as GPU and FPGA to complete the real-time calculation of the deep neural network of the likes estimation model, but this method is very costly and has a low cost-effectiveness. Summary of the invention

[0004] In order to overcome the problems of low accuracy and poor real-time performance in the estimation of the number of likes in the related art, the present application discloses a method for estimating the number of likes for short videos, which completes the understanding of the short video cover image and the short video text, and uses the results as the understanding of the feature vector or feature set. At the same time, the gradient boosting decision tree machine learning algorithm is used to reduce the amount of calculation, thereby improving the efficiency of the estimation of the number of likes. The video blogger name and short video tag data are embedded in the feature set for training the model, thereby improving the accuracy of the estimation of the number of likes.

[0005] This application proposes a method and system for predicting the number of likes for a short video based on sentiment analysis. Figure 1 As shown, it includes three parts: data model, calculation and reasoning model, and hardware device for estimating the number of likes.

[0006] 1) Data Model

[0007] Generally, a short video contains not only the video itself, but also the text, cover image, number of likes, and the name of the video blogger. Here, we extract and build a historical feature set of short videos, including cover image, text, number of likes, the name of the video blogger, and tags. We extract the above features to build a data model. Figure 2 As shown:

[0008] Furthermore, an emotional feedback matrix of users after watching short videos is established, and the historical feature set is used as input to calculate the corresponding "positive-negative" vector of the user after watching the video using sentiment analysis technology, which is called the like attitude vector V1.

[0009] Furthermore, a vector of the "excitement-calmness" dimension of the cover image of the domain short video is established, and a large number of unknown images are classified through the Softmax network classifier. The classification results are processed by Softmax to obtain a probability matrix, which is called the like emotion vector V2.

[0010] Next, we extract the representative tags (including blogger names) in the text for processing. To facilitate encoding, we use tags in the same language and perform one-hot encoding to convert different tags containing blogger names into different column vectors as the representative tag vector V3.

[0011] Furthermore, the above three matrices or vectors, namely the like attitude vector V1, the like emotion vector V2, and the representative label vector V3, are linearly arranged and synthesized into a like quantity parameter matrix V.

[0012] V={V1|V2|V3}={v1,v2,……,vm} T

[0013] (V is a like parameter matrix composed of V1, V2, and V3 matrices)

[0014] Next, the continuous likes values ​​are classified into two categories according to formula (1) to complete the binarization, as shown below:

[0015]

[0016] (k is the selected likes threshold. The k value is obtained based on actual experience. The default value is the average number of likes of the available samples, rounded up)

[0017] Finally, combined with the binary numerical matrix Y, we obtain the likes data model R, as shown in Formula 2:

[0018] R={(V,Y)}={(v1,y1), (v2,y2),……,(vm,ym)} T ,vi∈V,yi∈Y (2)

[0019] 2) Computation and reasoning model

[0020] like Figure 3 As shown in , after obtaining large-scale like-related data, it is processed by the data model R and used as the input data of the calculation model. According to the characteristics of the like data, the like amount is obtained by building a calculation model. Figure 4 As shown, it is divided into the following steps:

[0021] Step 1 (S1): Initialization of classification and regression tree. Set the main parameters of the model, namely the learning rate, number of iterations, and tree depth, and initialize the classification and regression tree. According to the empirical method, the learning rate is set to 0.02, the number of iterations is set to 370, the tree depth is set to 8, and the number of leaves is set to 164.

[0022] Step 2 (S2): Regression tree fitting. The negative gradient is calculated according to the logistic regression logarithmic loss function, and a regression tree is fitted using the negative gradient value of the loss function and the negative gradient approximation in the regression boosting tree algorithm according to the gradient boosting algorithm.

[0023] Step 3 (S3), regression tree acquisition. The negative gradient is used as a label, that is, the like parameter matrix V and the binary numerical matrix Y are combined as causal variables to train the initialized regression tree.

[0024] Step 4 (S4): Regression tree optimization. Find the best partition node of the regression tree, that is, traverse each possible value of each feature, calculate the square loss of the two groups of data after splitting, and find the partition node that minimizes the sum of square losses, which is the best partition node.

[0025] According to the growth conditions of the growth tree, multiple divisions are continued until the preset growth tree depth is reached. At the same time, a parameter is assigned to each leaf node of each tree to fit the negative gradient.

[0026] Finally, update the regression tree classifier to avoid overfitting. Repeat the above steps to obtain all the spanning trees and then obtain the user likes estimation model.

[0027] 3) The above figure shows a block diagram of an estimation device for the above-mentioned method for estimating the number of likes of short videos according to an embodiment. Figure 5 As shown, the apparatus includes one or more of the following parts: a processing component, a memory, and a communication component.

[0028] The communication components are configured to facilitate computing of the device and other processing components generally as internal and external operations of the device. The processing components may include one or more processors to calculate and execute instructions.

[0029] The components communicate with each other by wired or wireless means, for example, the device can access a wide area network based on a standard communication protocol, such as HTTP, an operator network, such as a 5G network, or a combination thereof. In an exemplary embodiment, the communication component accesses the short video platform server via HTTP and obtains data through crawler technology.

[0030] Memory is defined as storage of various types of data and operations that support storage behavior. Memory can be composed of any type of volatile or non-volatile storage unit or a combination thereof. In an exemplary embodiment, the memory stores data obtained by crawling open video servers (open data interfaces) and their corresponding tables, databases, and training models. Figure 6 As shown, in the content of the present invention, two core components, data model and calculation and reasoning model, are deployed in the likes estimation device, and the short video platform server is accessed through the database interface component to obtain data. The likes estimation results are stored in the likes data server, and the remote access computer obtains data by accessing the likes data server. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0032] Figure 1 The present invention is a schematic diagram of a method and device for predicting the number of likes.

[0033] Figure 2 The data model diagram of the system represented by the present invention.

[0034] Figure 3 A data flow diagram representing the system model for the present invention.

[0035] Figure 4 The present invention represents a flow chart of a calculation and reasoning model based on the method of the present invention.

[0036] Figure 5 A diagram showing an exemplary hardware device for estimating the number of likes according to the present invention.

[0037] Figure 6 The present invention shows a deployment diagram of a short video likes estimation system. DETAILED DESCRIPTION

[0038] 1) Data model establishment. The relevant data information of short videos in the medical field on the Douyin web version was crawled by crawling technology. A total of 8,000 items were crawled. The value range of the like attitude vector was set to 0-1, and the data greater than or equal to 0.5 was marked as a "positive" vector, and the data less than 0.5 was marked as a "negative" vector, and the like attitude vector V1 was obtained. According to the main content of the picture, the neural network was used to divide the pictures into 4 categories, namely people, pictures, and others, and each category corresponds to a different like emotion vector. The probability of each picture corresponding to these four categories was obtained, and the sum was 1, and the like emotion vector V2 was obtained. The label and blogger name were one-hot encoded, and different labels containing blogger names were converted into different column vectors to obtain the representative label vector V3. Set k to 10,000, and perform binary classification on the continuous like value values ​​according to formula (1), that is, the data with a like value greater than 10,000 was marked as 1, and the rest were marked as 0, completing the binarization and obtaining Y. Next, the above three matrices or vectors, namely the like attitude vector V1, the like emotion vector V2, and the representative label vector V3, are linearly arranged and synthesized into a like quantity parameter matrix V. Finally, combined with the binary numerical matrix Y, the like quantity data model R is obtained according to formula (2).

[0039] 2) Establishment of calculation and inference model. After obtaining likes-related data on a large scale, it is processed by the data model R and used as the input data of the calculation model. According to the characteristics of the likes data, the number of likes is obtained by building a calculation model. First, according to the empirical method, the learning rate is set to 0.02, the number of iterations is set to 370, the depth of the tree is set to 8, and the number of leaves is set to 164. Furthermore, the negative gradient value of the loss function is used to fit a regression tree using the negative gradient approximation in the regression boosting tree algorithm. Then the negative gradient is used as a label, that is, the likes parameter matrix V and the binary numerical matrix Y are combined as causal variables to train the initialized regression tree. Next, traverse each possible value of each feature, calculate the square loss of the two groups of data after the split, and find the partition node that minimizes the sum of the square losses as the best partition node. Finally, repeat the above steps to obtain the classification of user likes results.

[0040] 3) Evaluation of the prediction results of the number of likes. The cover image, text, and tags (including the blogger name) of the video to be predicted are used according to the method in the data model to obtain the number of likes parameter matrix V and the binary numerical matrix Y, and then the number of likes data model R is obtained. By adjusting the input data sample type, multiple data models R can be obtained. For example, the data model R1 of all data types is put in. The input data sample type is adjusted in the likes estimation device, and the prediction results show that the average accuracy rate reaches more than 70%.

[0041] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims of the present application.

[0042] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0043] In order to more clearly illustrate the present invention, the present invention is further described below in conjunction with preferred embodiments and accompanying drawings. Similar components in the accompanying drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present invention.

[0044] Furthermore, the technical concept of the technical solution disclosed by the present invention is explained.

[0045] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0046] Table 1 is a sample model containing some data in an embodiment of the present invention.

[0047]

Claims

1. A method for predicting the number of likes for short videos based on sentiment analysis, characterized in that: The following steps are involved: 1) Get the likes data model In addition to the video itself, a short video also contains text, cover image, number of likes, and the name of the video blogger related to the short video. Here, a short video historical feature set is extracted and established, including cover image, text, number of likes, the name of the video blogger, and tags. Establish the emotional feedback matrix after users watch short videos, take the historical feature set as input, and use sentiment analysis technology to calculate the "positive-negative" vector corresponding to the user's viewing, which is called the like attitude vector V1; Establish a vector of the "excitement-calmness" dimension of the cover image of the domain short video, classify a large number of unknown images through the Softmax network classifier, perform Softmax processing on the classification results, and obtain a probability matrix, which is called the like emotion vector V2; Extract representative tags from the copy for processing; For the convenience of encoding, we use the same language tags and perform one-hot encoding to convert different tags containing blogger names into different column vectors as the representative tag vector V3; Linearly arrange the like attitude vector V1, the like emotion vector V2, and the representative label vector V3 and synthesize them into a like quantity parameter matrix V; V={V1|V2|V3}={v1,v2,……,vm} T V is a like parameter matrix composed of V1, V2, and V3 matrices; The continuous likes values ​​are classified into two categories according to formula (1) to complete the binarization, as shown below: k is the selected likes threshold, and k is the average number of likes of the available samples rounded up; Finally, combined with the binary numerical matrix Y, we obtain the likes data model R, as shown in Formula 2: <h2 style=";text-align:left;direction:ltr">R = {(V, Y)} = {(v1, y1) = (v2, y2),……, (vm, ym)}<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> vi∈V,yi∈Y (2) 2) Calculation and Reasoning After obtaining the likes-related data, it is processed by the data model R and used as the input data of the calculation model; according to the characteristics of the likes data, the number of likes is obtained by building a calculation model; it is divided into the following steps: Step 1 (S1): Initialize the classification and regression tree; set the main parameters of the model, namely, the learning rate, the number of iterations and the depth of the tree, and initialize the classification and regression tree; according to the empirical method, the learning rate is set to 0.02, the number of iterations is set to 370, the depth of the tree is set to 8, and the number of leaves is set to 164; Step 2 (S2): regression tree fitting: calculating the negative gradient according to the logistic regression logarithmic loss function, and fitting a regression tree according to the gradient boosting algorithm using the negative gradient value of the loss function and the negative gradient approximation in the regression boosting tree algorithm; Step 3 (S3), regression tree acquisition; Use negative gradients as labels, that is, combine the like parameter matrix V and the binary numerical matrix Y as causal variables to train the initialized regression tree; Step 4 (S4): regression tree optimization; Find the best partition node of the regression tree, that is, traverse each possible value of each feature, calculate the square loss of the two groups of data after splitting, and find the partition node that minimizes the sum of square losses, which is the best partition node; According to the growth conditions of the growth tree, multiple divisions are continued until the preset growth tree depth is reached; at the same time, a parameter is assigned to each leaf node of each tree to fit the negative gradient; Update the regression tree classifier to avoid overfitting. Repeat the above steps to obtain all the spanning trees and then obtain the user likes estimation model.