Video content push method, device and related equipment
Through similarity analysis and threshold recognition processing of video text information and description text, accurate matching of videos related to hot events is achieved, which solves the problem of low accuracy of video content push in the existing technology and improves user experience.
Patent Information
- Application Number
- CN202210336380.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-03-30
AI Technical Summary
Existing video content push methods cannot accurately meet user needs, have low accuracy, and cannot effectively match users' video content related to hot events.
By obtaining the user's video content push request, we use the similarity between the video text information and the description text to conduct time concentration analysis to determine the target time period, perform threshold recognition processing on the candidate videos, and set personalized similarity thresholds to accurately Matches videos that match the description text.
It improves the accuracy of video content push, can more accurately match users' video content related to hot events, and enhances the pertinence and effectiveness of the push.
Smart Images

Figure CN114707018B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a video content pushing method, a video content pushing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] In an era of rapid development in information technology, people are increasingly interested in obtaining information through watching videos, such as short videos. Currently, when recommending video content to people, operators can manually screen and select videos to be pushed, or filter videos based on video playback volume, forwarding volume, or likes. These push methods fail to meet people's actual needs and have low accuracy. Summary of the Invention
[0003] The embodiments of the present application provide a video content push method, apparatus, and related equipment, which can improve the accuracy of video content push.
[0004] In one aspect, an embodiment of the present application provides a method for pushing video content, the method comprising:
[0005] Obtaining a video content push request for a target object, wherein the video content push request includes a description text related to a hot event;
[0006] Recalling N candidate videos from the M to-be-matched videos based on the similarity between the description text and the video text information of the M to-be-matched videos, where M and N are positive integers;
[0007] Performing a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos to determine a target time period;
[0008] Performing threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period to determine a similarity threshold for each candidate video;
[0009] Threshold comparison processing is performed on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object.
[0010] In one aspect, an embodiment of the present application provides a video content push device, the device comprising:
[0011] An acquiring unit, configured to acquire a video content push request for a target object, wherein the video content push request includes a description text related to a hot event;
[0012] a processing unit, configured to recall N candidate videos from the M to-be-matched videos based on similarities between the description text and video text information of the M to-be-matched videos, where M and N are positive integers;
[0013] The processing unit is further configured to perform a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos, and determine a target time period;
[0014] The processing unit is further configured to perform threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period, and determine a similarity threshold for each candidate video;
[0015] The processing unit is further used to perform threshold comparison processing on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object.
[0016] On the one hand, an embodiment of the present application provides a computer device, which includes a processor, a communication interface and a memory, wherein the processor, communication interface and memory are interconnected, wherein the memory stores a computer program, and the processor is used to call the computer program to execute the video content push method of any possible implementation method described above.
[0017] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the video content push method of any possible implementation manner.
[0018] Accordingly, an embodiment of the present application further 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 steps of the video content pushing method provided in the embodiment of the present application.
[0019] Correspondingly, an embodiment of the present application also provides a computer program, which includes computer instructions. The computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the video content push method provided in the embodiment of the present application.
[0020] By adopting the method of the present application, a video content push request for a target object can be obtained, where the video content push request includes a descriptive text related to a hot event, and a time concentration analysis is performed using the similarity between the video text information of the candidate video and the descriptive text, so as to mine the video text information of the candidate video within the target time period, and perform threshold recognition processing using the video text information of the candidate video within the target time period, and set a personalized similarity threshold for each candidate video to accurately match the candidate video that matches the descriptive text, thereby improving the accuracy of video content push. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical methods of the embodiments of the present application, the following will briefly introduce the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 A schematic diagram of the system architecture of a video content push system provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 1 ;
[0024] Figure 3 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 2 ;
[0025] Figure 4 A schematic diagram of a time-concentration curve provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 3 ;
[0027] Figure 6 A schematic diagram of the structure of a video content push device provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical methods in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0030] It should be noted that the terms "first," "second," and so on, used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, technical features designated as "first," "second," and so on may explicitly or implicitly include at least one such feature.
[0031] This application proposes a video content push method that can improve the accuracy of video content push and can be applied to various fields or scenarios such as cloud technology, artificial intelligence, blockchain, Internet of Vehicles, smart transportation, smart home, etc. In one embodiment, the video content push method can be implemented based on machine learning technology in artificial intelligence technology. Machine Learning (ML) is a multi-disciplinary interdisciplinary subject involving multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their own performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all fields of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learning by formula.
[0032] In a feasible embodiment, the video content push method can also be implemented based on cloud technology and / or blockchain technology. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand with flexibility and convenience. Cloud computing technology will become a key support. The backend services of technical network systems, such as video websites, image websites, and more portals, require a large amount of computing and storage resources. With the rapid development and application of the internet industry, every item may have its own unique identification mark in the future, and all of them will need to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system support, which can only be achieved through cloud computing. Blockchain (blockchain) is a series of text records (also called blocks) that are linked and protected by cryptography. Each block contains a cryptographic hash of the previous block, a corresponding timestamp, and transaction data (usually represented by a hash value calculated using the Merkle tree algorithm). This design makes the block content difficult to tamper with. Distributed ledgers connected by blockchain technology allow two parties to effectively record transactions and permanently verify the transactions.
[0033] The video content push method provided in the embodiments of the present application may specifically involve one or more of cloud storage, cloud database, and big data in cloud technology. For example, the data required to execute the video content push method (such as candidate videos, video text information, etc.) is obtained from the cloud database. For another example, the data required to execute the video content push method may be stored in the form of blocks on a blockchain; in addition, the computer device executing the video content push method may be a node device in a blockchain network.
[0034] See Figure 1 , Figure 1 A schematic diagram of the system architecture of a video content push system provided in an embodiment of the present application; Figure 1 The system architecture shown can be used to implement the video content push method proposed in the embodiment of this application. Figure 1 As shown, the network architecture includes: a computer device 10 and multiple terminals 11 (three are used as an example in the figure).
[0035] The computer device 10 may be a server or terminal with data processing capabilities. The server may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal may be a smartphone, tablet computer, laptop computer, desktop computer, intelligent voice interaction device, smart home appliance, in-vehicle terminal, etc., but is not limited thereto. Figure 1 The terminal 11 and the computer device 10 are connected via a network.
[0036] Figure 1 The system architecture shown can implement the video content push method provided by the embodiment of the present application. Taking the computer device 10 executing this method as an example, its implementation process generally includes: ① Obtain a video content push request for the target object, and the video content push request includes a description text related to the hot event; ② Based on the similarity between the description text and the video text information of M videos to be matched, recall N candidate videos from the M videos to be matched, where M and N are positive integers; ③ Based on the release time of the N candidate videos, perform a time concentration analysis on the similarity between the video text information and the description text of the N candidate videos to determine the target time period; ④ Extract a set of candidate keywords for the video text information of the candidate videos within the target time period; ⑤ Perform threshold recognition processing on the video text information of each candidate video according to the candidate keyword set to determine the similarity threshold of each candidate video; ⑥ Perform threshold comparison processing on the similarity between the video text information and the description text of each candidate video, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object. By adopting the method of the present application, a personalized similarity threshold can be set for each candidate video to accurately match the candidate video that matches the description text, thereby improving the accuracy of video content push.
[0037] It can be understood that the system architecture diagram described in the embodiment of the present application is intended 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. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
[0038] The specific implementation of the video content push method is described in detail below.
[0039] See also Figure 2 , Figure 2 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 1 The video content push method described in the embodiment of the present application can be implemented by Figure 1 The computer device 10 in the embodiment of the present invention is executed, and the video content pushing method includes but is not limited to the following steps:
[0040] S201: Obtain a video content push request for a target object, where the video content push request includes a description text related to a hot event.
[0041] Video content push requests are used to push videos. The target object is the person to whom the video is being pushed. A hot topic refers to news or information that is of general public interest or popularity, or a person, place, or issue that attracts significant attention during a particular period. Typically, after an emergency, a hot figure, or a hot topic, reports will first appear in the media and online. People will then search for it using various search terms. Depending on the development of the event and the number of clicks, coverage of the event will continue for a period of time, during which time the event can be considered a hot topic.
[0042] In one embodiment, the video content push request may be sent by a terminal or an application. The description text included in the video content push request may be text entered in the terminal or application, or may be text obtained by performing keyword extraction or synonym conversion on the input text. When the input text is a spoken text, the description text may also be text obtained by performing written processing on the input text.
[0043] In a feasible embodiment, the video content push request can be initiated by the video content recommendation background, and the description text can be the hot event entry captured by the video content recommendation background. For example, the operator can set the video content recommendation background to initiate a video content push request every preset period. When the preset time arrives, the video content recommendation background uses the captured hot event entry to generate a video content push request. The computer device responds to the video content push request to determine the video to be pushed, and pushes the video to the target object, which can be an application.
[0044] S202. Recall N candidate videos from the M videos to be matched based on similarities between the description text and video text information of the M videos to be matched, where M and N are positive integers.
[0045] Video text information can be a video title, video description information, text information corresponding to the video voice, subtitles in the video image, etc. The video to be matched is any video, and N candidate videos can be selected from the M videos to be matched based on the similarity between the description text and the video text information of the M videos to be matched, where N is less than or equal to M.
[0046] In one embodiment, a computer device may obtain a first feature describing a text and a second feature of video text information of M videos to be matched. The first feature and the second feature are text features, which may be obtained by a text feature extraction algorithm, such as a Word2Vec model, a CountVectorize text feature extraction function, a Bidirectional Encoder Representations from Transformers (BERT) model, etc. Then, the similarity between the first feature and the M second features is determined. The similarity may be a cosine similarity, a Chebyshev distance, a Jaccard similarity coefficient, etc. The similarity between the first feature and the M second features is used as the similarity between the description text and the video text information of the M videos to be matched. Based on the size of the similarity and the set recall number and the first threshold, N candidate videos are determined from the M videos to be matched. For example, N videos to be matched whose similarity ranks at the top and is greater than the first threshold are selected from the M videos to be matched as N candidate videos.
[0047] It is understandable that the similarity between the video text information of the N candidate videos and the description text is greater than the first threshold, so the N candidate videos are videos initially recalled based on the description text, and the N candidate videos are further purified.
[0048] S203: Based on the release time of the N candidate videos, perform a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text to determine a target time period.
[0049] In one embodiment, a computer device can use the release time of N candidate videos to determine the time span of the release time, and obtain multiple time periods based on the time span and a uniform division method. For example, if the time span of the release time is from January 1st to January 28th, and the time interval of each time period is 1 day, then 28 time periods can be obtained, or multiple time periods can be obtained based on the time span and a non-uniform division method. This application is not limited to this. The mean, maximum, and minimum values of the similarity between the video text information and the description text of the candidate video in each time period, as well as the sum of the similarities between the video text information and the description text of the candidate video in each time period can be counted, and any one of the mean, maximum, and minimum values of the similarity between the video text information and the description text of the candidate video in each time period, as well as the sum of the similarities between the video text information and the description text of the candidate video in each time period is used as the target similarity corresponding to each time period, and then the time period corresponding to the maximum target similarity, or the time period with a target similarity greater than a preset threshold, is used as the target time period.
[0050] In a specific implementation, the release time of N candidate videos can be used to obtain multiple time periods in a uniformly divided manner, and the sum of the similarities between the video text information of the candidate videos and the description text in each time period is counted. Since the time periods are evenly divided, the larger the sum of the similarities, the more candidate videos there are in the time period, and / or the similarity between the video text information of the candidate videos and the description text in the time period is higher; when the sum of the similarities is smaller, the smaller the number of candidate videos in the time period, and / or the similarity between the video text information of the candidate videos and the description text in the time period is lower. Because hot events are sudden events, they will show a trend of a surge in the number of posts within a period of time. Therefore, the time period with a larger sum of similarities is more likely to be a time period related to the hot event corresponding to the description text. The time period with a sum of similarities greater than a preset threshold (which can be set manually) can be used as the target time period.
[0051] S204: Perform threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period to determine a similarity threshold for each candidate video.
[0052] In one embodiment, the computer device can extract keywords from the video text information of the candidate video within the target time period as keywords in the candidate keyword set, and the keywords in the candidate keyword set can represent the hot events corresponding to the description text. The keywords extracted from the video text information of the candidate video within the target time period can be entities included in the video text information of the candidate video within the target time period, and the entities include names of people, places, organizations, proper nouns, etc., as well as one or more of time, quantity, and proportion values; or the video text information of the candidate video within the target time period can be segmented to obtain multiple phrases, and then the term frequency-inverse document frequency (TF-IDF) value of each phrase is calculated. The TF-IDF value can evaluate the importance of the phrase to the video text information. Specifically, if video text information A includes phrase A, the TF (Term Frequency) of phrase A can be the frequency of occurrence of phrase A in video text information A / the total number of phrases in video text information A, and the IDF (Inverse Document Frequency) of phrase A can be log[the number of text information in the text information library / (the number of text information containing phrase A + 1)]. The text information library may include video text information of M videos to be matched, or other acquired video text information, and the TF-IDF value of phrase A is the TF of phrase A × the IDF of phrase A. After obtaining the TF-IDF values of multiple phrases, a specified number of phrases with the highest TF-IDF values among the multiple phrases can be used as keywords in the candidate keyword set of the candidate video set.
[0053] The target candidate video is any video from the N candidate videos. Furthermore, a threshold recognition process is performed on the video text information of the target candidate video using a candidate keyword set. Specifically, a degree of match between the video text information of the target candidate video and keywords in the candidate keyword set can be determined. This degree of match can be determined based on the number of keywords in the candidate keyword set hit by the video text information of the target candidate video. The more keywords in the candidate keyword set hit by the video text information of the target candidate video, the higher the degree of match between the video text information of the target candidate video and the keywords in the candidate keyword set. The fewer keywords in the candidate keyword set hit by the video text information of the target candidate video, the lower the degree of match between the video text information of the target candidate video and the keywords in the candidate keyword set. A higher degree of match indicates a higher relevance between the target candidate video and the hot event corresponding to the description text, and a relatively lower similarity threshold for the target candidate video. A lower degree of match indicates a lower relevance between the target candidate video and the hot event corresponding to the description text, and a relatively higher similarity threshold for the target candidate video.
[0054] S205. Perform threshold comparison processing on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object.
[0055] In one embodiment, if the similarity between the target candidate video's video text information and the description text is greater than or equal to the target candidate video's similarity threshold, the target candidate video is determined to be a candidate video that matches the description text, and the target candidate video can be pushed to the target object; if the similarity between the target candidate video's video text information and the description text is less than the target candidate video's similarity threshold, the target candidate video is determined not to be a candidate video that matches the description text, and the target candidate video is not pushed to the target object. It can be seen that the lower the target candidate video's similarity threshold, the more likely the target candidate video is to match the description text, that is, the higher the degree of match between the target candidate video's video text information and the keywords in the candidate keyword set, the more likely the target candidate video is to match the description text.
[0056] It should be noted that the keywords in the candidate keyword set can represent the hot events corresponding to the descriptive text. The higher the degree of match between the video text information of the candidate video and the keywords in the candidate keyword set, the higher the correlation between the candidate video and the hot events corresponding to the descriptive text. The similarity threshold of the candidate video can be made lower, making it more likely that the candidate video will match the descriptive text. The lower the degree of match between the video text information of the candidate video and the keywords in the candidate keyword set, the lower the correlation between the candidate video and the hot events corresponding to the descriptive text. The similarity threshold of the candidate video can be made higher, making it less likely that the candidate video will match the descriptive text. This will allow videos related to the hot events corresponding to the descriptive text to be recalled more accurately, thereby improving the accuracy of video content push for hot events.
[0057] By adopting the method of the present application, a video content push request for a target object can be obtained, where the video content push request includes a descriptive text related to a hot event, and then a time concentration analysis is performed using the similarity between the video text information of the candidate video and the descriptive text to mine the video text information of the candidate video within the target time period, and threshold recognition processing is performed using the video text information of the candidate video within the target time period, and a personalized similarity threshold is set for each candidate video to accurately match the candidate video that matches the descriptive text, thereby improving the accuracy of video content push.
[0058] See also Figure 3 , Figure 3 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 2 The video content push method described in the embodiment of the present application can be implemented by Figure 1 The computer device 10 in the embodiment of the present invention is executed, and the video content pushing method includes but is not limited to the following steps:
[0059] S301: Obtain a video content push request for a target object, where the video content push request includes a description text related to a hot event.
[0060] The detailed implementation process of S301 can be found in S201 and will not be repeated in this embodiment.
[0061] S302 . Recall N candidate videos from the M videos to be matched based on similarities between the description text and video text information of the M videos to be matched, where M and N are positive integers.
[0062] In one embodiment, a BERT model can be trained using a text training set to obtain a similarity prediction model, wherein the text training set includes multiple published texts and a topic tag corresponding to each published text. The published texts and the topic tags corresponding to the published texts are constructed by recognizing text in a target format. The target format text generally refers to text containing "#topic tags". Because "#topic tags" are generally used on the Internet to identify keywords or topics in a sentence, they have the property of high-order semantic induction of text. Therefore, the "topic tags" in "#topic tags" can be used as the topic tags corresponding to the published text, thereby reducing the cost of annotating the text training set. In addition, when the BERT model is trained using a text training set, each published text included in the text training set is used as the input of the BERT model to obtain the output of the BERT model. The output of the BERT model and the topic tags corresponding to each published text are substituted into a loss function (e.g., a cross entropy loss function) to obtain a loss value. When the loss value reaches the training stop condition, the BERT model at the time of stopping training is used as a similarity prediction model. The training stop condition can be that the loss value is less than a loss threshold (which can be set manually) or the number of training times reaches a specified number of training times (which can be set manually). The similarity prediction model finally trained can make the text descriptions of the same event closer and the text descriptions of different events farther apart.
[0063] In a feasible embodiment, the computer device can determine the first feature of the description text and the second feature of the video text information of M videos to be matched by calling a similarity prediction model, that is, the description text is input into the similarity prediction model to obtain the first feature of the description text, and the video text information of the M videos to be matched are respectively input into the similarity prediction model to obtain M second features, and then the similarity between the first feature and the M second features is calculated. The similarity can specifically be cosine similarity, Chebyshev distance, Jaccard similarity coefficient, etc. The similarity between the first feature and the M second features is used as the similarity between the description text and the video text information of the M videos to be matched. Finally, N videos to be matched whose similarity ranks at the top and is greater than a first threshold can be selected from the M videos to be matched as N candidate videos.
[0064] S303 , dividing the N candidate videos into multiple time periods according to their release time, performing statistics on the similarity between the video text information of the candidate videos and the description text in each time period, and determining a target similarity corresponding to each time period.
[0065] In one embodiment, a computer device can use the release time of N candidate videos to determine the time span of the release time, and obtain multiple time periods based on the time span and a uniform division method. For example, if the time span of the release time is from January 1st to January 28th, and the time interval between each time period is 1 day, 28 time periods can be obtained. Alternatively, multiple time periods can be obtained based on the time span and a non-uniform division method. Further, statistics are performed on the similarity between the video text information of the candidate videos and the description text in each time period. Any one of the mean, maximum, and minimum values of the similarity between the video text information of the candidate videos and the description text in each time period, and the sum of the similarities between the video text information of the candidate videos and the description text in each time period can be counted. Any one of the mean, maximum, and minimum values of the similarity between the video text information of the candidate videos and the description text in each time period, and the sum of the similarities between the video text information of the candidate videos and the description text in each time period is used as the target similarity corresponding to each time period, and the time period corresponding to the maximum target similarity or the time period corresponding to the target similarity greater than a preset threshold is used as the target time period.
[0066] When the sum of the similarities between the candidate videos and the description text in each time period is taken as the target similarity corresponding to each time period, the size of the target similarity in each time period can indicate two aspects: one is whether there are many candidate videos in each time period, and the other is whether the similarity between the candidate videos and the description text in each time period is high.
[0067] S304: Draw a time-density curve using the target similarity corresponding to each time period, and determine the target time period according to the time-density curve.
[0068] In one embodiment, a time concentration curve can be drawn using the target similarity corresponding to each time period, that is, the horizontal axis of the time concentration curve is multiple time periods, and the vertical axis is the target similarity corresponding to each time period. For example, Figure 4 is an example of a time-density curve. Then, a target peak that reaches a preset threshold (which can be set manually) is obtained from the time-density curve. It is understandable that the target peak can be one or more, so that the smaller peaks in the time-density curve can be filtered out. Then, the time period from the first trough before the target peak to the second trough after the target peak in the time-density curve is determined as the target time period. The first trough before the target peak refers to the first trough before the target peak and closest to the target peak, and the second trough after the target peak refers to the first trough after the target peak and closest to the target peak. For example, Figure 4 The peak indicated by 41 is a target peak greater than a preset threshold, then Figure 4 The number 42 indicates the first trough. Figure 4 The number 43 indicates the second trough, and the time period from 42 to 43 is the target time period.
[0069] In a feasible embodiment, after obtaining the time-density curve, multiple peaks included in the time-density curve can be obtained, and the sizes of the target similarities corresponding to the multiple peaks can be obtained. A specified number of peaks with corresponding target similarities ranked in front are selected from the multiple peaks as target peaks, and then the time period between the first trough before the target peak and the second trough after the target peak is determined as the target time period.
[0070] S305: Extract a set of candidate keywords from the video text information of the candidate videos within the target time period.
[0071] In one embodiment, entities in the video text information of the candidate videos within the target time period can be obtained, the entities including names of people, places, organizations, proper nouns, etc., as well as one or more of time, quantity, and ratio values, and the entities in the video text information of the candidate videos within the target time period can be determined as keywords included in the candidate keyword set. Furthermore, the video text information of the candidate videos within the target time period can be segmented to obtain multiple phrases in the video text information of the candidate videos within the target time period, and the term frequency-inverse document frequency (TF-IDF) value of each phrase is calculated according to the term frequency-inverse document frequency algorithm. Keywords included in the candidate keyword set can be extracted from the multiple phrases according to the TF-IDF value. Specifically, a specified number of phrases with the highest TF-IDF value can be selected as keywords included in the candidate keyword set, or phrases with a TF-IDF value greater than a preset TF-IDF value can be selected as keywords included in the candidate keyword set.
[0072] In one embodiment, the term frequency-inverse document frequency (TF-IDF) value of each phrase is calculated according to a term frequency-inverse document frequency algorithm, including: if the video text information of the candidate video within the target time period includes phrase A, then the TF (term frequency) of phrase A can be the frequency of occurrence of phrase A in the video text information of the candidate video within the target time period / the total number of phrases in the video text information of the candidate video within the target time period, and the IDF (inverse document frequency) of phrase A can be log[the number of text information in the text information library / (the number of text information containing phrase A+1)]. The text information library can include the video text information of M videos to be matched, or other acquired video text information, and the TF-IDF value of phrase A is the TF of phrase A × the IDF of phrase A. This method can obtain phrases that are relatively important within the target time period, and the target time period is related to the hot event corresponding to the target text. Therefore, the keyword can represent the hot event corresponding to the target text.
[0073] The target time period will include one or more time periods, e.g. Figure 4 The target time periods indicated by 42 to 43 include five time periods: 6-25, 6-26, 6-27, 6-28, and 6-29, and the time interval of each time period is one day. In another embodiment, the term frequency-inverse document frequency (TF-IDF) value of each phrase is calculated according to the term frequency-inverse document frequency algorithm, including: if the video text information of the candidate video in any time period included in the target time period includes phrase A, then the TF of phrase A can be the frequency of occurrence of phrase A in the video text information of the candidate video in the any time period / the total number of phrases in the video text information of the candidate video in the any time period, and the IDF of phrase A can be log [the number of text information in the text information library / (the number of text information containing phrase A+1)], then the TF-IDF value of phrase A is the TF of phrase A × the IDF of phrase A. For example, the following Table 1 is for Figure 4The keywords determined for the five time periods 6-25, 6-26, 6-27, 6-28, and 6-29, which are included in the target time period between 42 and 43, are calculated. The TF-IDF values of the phrases included in each of the five time periods are then ranked first, and / or phrases with a TF-IDF value greater than a preset TF-IDF value are used as keywords for each time period. This method can be used to obtain phrases that are relatively important within the target time period. The target time period is also related to the hot events corresponding to the target text, so the keywords can represent the hot events corresponding to the target text.
[0074] Table 1
[0075]
[0076]
[0077] It is understandable that since the trend of hot events in the time dimension is usually that the number of posts will first surge and then decrease, the trend of hot events on the time concentration curve is also to first rise and then fall. The candidate keyword set determined based on the video text information of the candidate videos included in the target time period determined based on the target peak can represent the hot event corresponding to the descriptive text.
[0078] S306 : Perform threshold recognition processing on the video text information of each candidate video according to the candidate keyword set to determine a similarity threshold of each candidate video.
[0079] The target candidate video is any candidate video from the N candidate videos. In one embodiment, if the video text information of the target candidate video does not hit any keyword in the candidate keyword set, the similarity threshold of the target candidate video can be set to a high threshold parameter, for example, the high threshold parameter can be infinite. If the video text information of the target candidate video hits at least one keyword in the candidate keyword set, threshold recognition processing is performed on the video text information of each candidate video based on the candidate keyword set to determine the similarity threshold of each candidate video.
[0080] In another embodiment, determining a confidence keyword set includes: determining multiple reference videos from the M videos to be matched based on the similarity between the video text information and the description text of the M videos to be matched, the similarity between the video text information and the description text of the multiple reference videos being greater than a second threshold value, performing a time concentration analysis on the similarity between the video text information and the description text of the multiple reference videos based on the release time of the multiple reference videos, and determining a reference time period. This is consistent with the aforementioned processing logic of performing a time concentration analysis on the similarity between the video text information and the description text of the N candidate videos based on the release time to determine the target time period, and will not be repeated in this embodiment. The entities included in the video text information of the reference video within the reference time period are determined as keywords in the confidence keyword set, or multiple phrases in the video text information of the reference video within the reference time period are obtained, the word frequency-inverse file frequency value of each phrase is calculated according to the word frequency-inverse file frequency algorithm, and the keywords included in the confidence keyword set are extracted from the multiple phrases based on the word frequency-inverse file frequency value.
[0081] It should be noted that the similarity between the video text information of the N candidate videos and the description text is greater than the first threshold, and the second threshold is greater than the first threshold. Therefore, the video text information of the reference video is closer to the description text than the video text information of the candidate video, and the confidence of the reference video is higher (that is, it is more matched with the description text). Then the confidence of the keywords in the confidence keyword set is also higher than that of the keywords in the candidate keyword set.
[0082] Furthermore, keyword screening is performed using the frequency of occurrence of keywords in the confidence keyword set and the candidate keyword set in the video text information set, as well as one or more of the specified keyword types, to obtain a necessary keyword set. The higher the frequency of occurrence of keywords in the candidate keyword set in the video text information set, the more representative they are of the hot events corresponding to the description text, and the higher the frequency of occurrence, the more likely they are to become keywords in the necessary keywords. The specified keyword type can be one or more of time, place, event subject object, data, and event content, and can be manually specified or determined based on the proportion of the keyword type in the video text information set. For example, the higher the proportion, the more likely it is to become a specified keyword type, or a type with a proportion greater than a preset proportion is a specified keyword type. In one implementation, the confidence keyword set can be used as the necessary keyword set, or keywords in the candidate keyword set with a higher frequency of occurrence in the video text information set can be used as keywords in the necessary keyword set, or keywords of a specified keyword type (such as time) in the necessary keyword set or the candidate keyword set can be used as keywords in the necessary keyword set, or keywords in the confidence keyword set with a higher frequency of occurrence in the video text information set and of a specified keyword type can be used as keywords in the necessary keyword set. If the video text information of the target candidate video does not match any keyword in the required keyword set, the similarity threshold of the target candidate video is set to a high threshold parameter, for example, the high threshold parameter can be infinite. If the video text information of the target candidate video matches at least one keyword in the required keyword set, the video text information of each candidate video is subjected to threshold recognition processing based on the candidate keyword set to determine the similarity threshold of each candidate video.
[0083] In general, the necessary keyword set is calculated here to filter out (or delete) a part of the candidate videos. For the filtered candidate videos, there is no need to calculate the corresponding similarity threshold, which can improve the accuracy of video content push while improving the efficiency of video content push.
[0084] As can be seen from the foregoing, a portion of the candidate videos can be filtered out by determining whether the video text information of the candidate video hits a keyword in the candidate keyword set or the necessary keyword set. Since the confidence keyword set is a subset of the candidate keyword set, the necessary keyword set is also a subset of the candidate keyword set. If it is determined that the video text information of the target candidate video hits a keyword in the necessary keyword set, there is no need to detect whether the video text information of the target candidate video hits a keyword in the candidate keyword set. In a feasible embodiment, if the video text information of the target candidate video does not hit any keyword in the candidate keyword set, the similarity threshold of the target candidate video can be set to a high threshold parameter, for example, the high threshold parameter can be infinite. If the video text information of the target candidate video hits at least one keyword in the candidate keyword set, it can be further determined whether the video text information of the target candidate video hits any keyword in the necessary keyword set. If the video text information of the target candidate video does not hit any keyword in the necessary keyword set, the similarity threshold of the target candidate video is set to a high threshold parameter. If the video text information of the target candidate video hits at least one keyword in the necessary keyword set, threshold recognition processing is performed on the video text information of each candidate video according to the candidate keyword set to determine a similarity threshold for each candidate video.
[0085] In one embodiment, threshold recognition processing is performed on the video text information of each candidate video based on the candidate keyword set to determine the similarity threshold of each candidate video, including: P keywords that are hit by the video text information of the target candidate video can be extracted from the candidate keyword set, and the extracted P keywords are used as P video keywords, where P is a positive integer. Then, the proportion of the type of each video keyword in the video text information set is determined. The type may include: time, location, event subject object, data, event content, and the video text information set includes the video text information of N candidate videos. The proportion of each type of keyword in the candidate keyword set = the frequency of occurrence of each type of keyword in the video text information set / the frequency of occurrence of all types of keywords in the video text information set. When the type of each video keyword is determined, the proportion of each type of video keyword in the video text information set can be obtained. Furthermore, the frequency of occurrence of each video keyword in the video text information of the target candidate video is obtained, and the product of the proportion of the type of each video keyword in the video text information set and the frequency of occurrence of each video keyword in the video text information of the target candidate video can be used as the weight of each video keyword. For example, for the description text "The delivery boy scored 623 points in the college entrance examination 8 months after returning to school, and wants to be a teacher in the future", there is a video keyword "delivery boy" with an appearance frequency of 1. Assuming that the corresponding proportion of the event subject object (including "delivery boy") is 1 / 7, the weight of the video keyword "delivery boy" is 1×1 / 7.
[0086] In a feasible embodiment, the weight of each type of keyword can be determined based on the proportion of each type of keyword in the video text information set. For example, the greater the proportion, the greater the weight of the corresponding type. When the proportion of each video keyword type is obtained, the weight of each video keyword type can be further determined, and then the weight of each video keyword type is multiplied by the frequency of occurrence of each video keyword in the video text information of the target candidate video as the weight of each video keyword. For example, for the description text "The delivery boy scored 623 points in the college entrance examination 8 months after returning to school, and wants to be a teacher in the future", there is a video keyword "delivery boy" and the frequency of occurrence is 1. Assuming that the corresponding proportion of the event subject object (including "delivery boy") is 1 / 7, and the corresponding weight is set to 0.2, the weight of the video keyword "delivery boy" is 1×0.2.
[0087] It is understandable that the greater the proportion of each video keyword type in the video text information set, and / or the higher the frequency of each video keyword's appearance in the video text information of the target candidate video, the greater the weight of each video keyword. Therefore, the weight of each video keyword is positively correlated with the proportion of each video keyword type in the video text information set, and with the higher frequency of each video keyword's appearance in the video text information of the target candidate video. In one implementation, the weight of each video keyword can also be calculated by taking the sum of the weight of each video keyword type and the frequency of each video keyword's appearance in the video text information of the target candidate video as the weight of each video keyword.
[0088] Furthermore, the weights of the P video keywords are processed according to the threshold recognition rule to obtain the similarity threshold of the target candidate video, including: calculating the sum of the weights of the P video keywords according to the threshold recognition rule, and using the sum of the weights of the P video keywords as the first adjustment parameter. For example, for the description text "The delivery boy returned to school 8 months later and scored 623 points in the college entrance examination. He wants to be a teacher in the future", there are video keywords "delivery boy", "college entrance examination", and "623" points, and the frequency of occurrence of the video keywords is 1. Assuming that the corresponding proportion of the event subject object (including "delivery boy") is 1 / 7, the corresponding proportion of the event content (including "college entrance examination") is 3 / 7, and the corresponding proportion of the data (including "623") is 2 / 7, then the sum of the weights of the P video keywords can be 1×1 / 7+1×3 / 7+1×2 / 7. Furthermore, according to the threshold recognition rule, the sum of the occurrence frequencies of P video keywords in the video text information set is calculated, and the sum of the occurrence frequencies of the P video keywords in the video text information set is used as the second adjustment parameter. Finally, according to the threshold recognition rule, the first adjustment parameter and the second adjustment parameter are processed to obtain the similarity threshold of the target candidate video, that is, the first adjustment parameter and the second adjustment parameter are input into the threshold recognition rule to obtain the similarity threshold of the target candidate video.
[0089] In a feasible embodiment, the threshold identification rule is as shown in the following formula (1):
[0090] t=T(high)–(T(high)–T(low))×w×n×a (1)
[0091] Where t represents the similarity threshold of the target candidate video, T(low) represents the minimum similarity threshold, T(high) represents the maximum similarity threshold, w represents the first adjustment parameter, n represents the second adjustment parameter, and a represents the weight adjustment parameter. T(low), T(high), and a are adjustable parameters.
[0092] It can be understood that the first adjustment parameter and the second adjustment parameter are inversely proportional to the similarity threshold, that is, the greater the sum of the weights of the P video keywords, and / or, the higher the sum of the occurrence frequencies of the P video keywords in the video text information set, the more the video keywords in the video text information of the target candidate video can express the keywords of the hot events corresponding to the description text, and the lower the similarity threshold of the target candidate video will be, and the more likely the target candidate video is to match the description text.
[0093] S307. Perform threshold comparison processing on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object.
[0094] The target candidate video is any video among N candidate videos. In one embodiment, if the similarity between the video text information of the target candidate video and the description text is greater than or equal to the similarity threshold of the target candidate video, the target candidate video is determined to be a candidate video that matches the description text, and the target candidate video can be pushed to the target object; if the similarity between the video text information of the target candidate video and the description text is less than the similarity threshold of the target candidate video, the target candidate video is determined not to be a candidate video that matches the description text, and the target candidate video is not pushed to the target object. It can be seen that when the degree of match between the video text information of the target candidate video and the keywords in the candidate keyword set is higher, the target candidate video is more likely to match the description text due to the lower similarity threshold of the target candidate video. When the degree of match between the video text information of the target candidate video and the keywords in the candidate keyword set is lower, the target candidate video is less likely to match the description text due to the higher similarity threshold of the target candidate video. In addition, when the similarity threshold of the target candidate video is a high threshold parameter, since the similarity between the video text information of the target candidate video and the description text is less than the high threshold parameter, it can be determined that the target candidate video does not match the description text.
[0095] In one embodiment, there are multiple candidate videos matching the description text. The multiple candidate videos matching the description text can be sorted according to the release time of the multiple candidate videos matching the description text and the similarity between the video text information of the multiple candidate videos matching the description text and the description text to obtain a recommended order of the multiple candidate videos matching the description text. For example, candidate videos belonging to the same date are sorted according to the degree of similarity, and candidate videos belonging to different dates are sorted according to the order of the dates, so as to obtain a recommended order of the multiple candidate videos matching the description text. Then, a recommendation list is generated based on the recommendation order and the multiple candidate videos matching the description text. The recommendation list contains multiple candidate videos matching the description text and is arranged in the recommendation order. The recommendation list can be pushed to the target object.
[0096] In an embodiment of the present application, the similarity between the video text information and the descriptive text of the candidate videos within the divided time period can be used to obtain the target peak that reaches the preset threshold in the time concentration curve, and the candidate videos included in the target time period are obtained based on the target peak. Then, based on the candidate videos included in the target time period, a set of candidate keywords that can represent the hot events corresponding to the descriptive text is mined, and a personalized similarity threshold is set for each candidate video through the video text information of the candidate video and the keywords in the candidate keyword set, thereby improving the accuracy of video content push.
[0097] See also Figure 5 , Figure 5 A schematic diagram of a video content push method provided in an embodiment of the present application Figure 3 The video content push method described in the embodiment of the present application can be implemented by Figure 1 The computer device 10 is executed, and the video content pushing method includes:
[0098] In one embodiment, a computer device can access a hot event collection platform, which can output hot event entries. The computer device can use the hot event entries as descriptive text related to the hot event. For example, the hot event entry can be "The delivery boy scored 623 points in the college entrance examination 8 months after returning to school, and wants to be a teacher in the future."
[0099] In one embodiment, a computer device can use a text training set to train an initial BERT model to obtain a trained BERT model. The text training set includes multiple published texts and topic tags corresponding to each published text. The published texts and the topic tags corresponding to the published texts are constructed by recognizing text in a target format. The text in the target format generally refers to text containing "#hashtag".
[0100] Furthermore, the trained BERT model is used to extract features from the description text to obtain a first feature of the description text, and video text information of M texts to be matched is obtained, and the trained BERT model is used to extract features from the video text information of the M texts to be matched to obtain M second features. A dense vector retrieval engine (such as Faiss) is used to store the M second features. The dense vector retrieval engine can construct an index of the M second features and support multiple vector retrieval methods, such as inner product, Euclidean distance, etc. The dense vector retrieval engine can use the first feature and the supported vector retrieval methods, and select N second features from the M second features according to a preset maximum recall number and a first threshold, and use the to-be-matched videos corresponding to the N second features as the N candidate videos to be recalled. The computer device can then perform a time concentration analysis on the similarity between the video text information and the description text of the N candidate videos to determine the target time period, that is, divide the N candidate videos into multiple time periods according to their release time, perform statistics on the similarity between the video text information and the description text of the candidate videos in each time period, determine the target similarity corresponding to each time period, draw a time concentration curve using the target similarity corresponding to each time period, and obtain the target peak that reaches a preset threshold from the time concentration curve. The time period between the first trough before the target peak and the second trough after the target peak in the time concentration curve is determined as the target time period. The video text information of the candidate videos in the target time period is obtained. The video text information of the candidate videos in the target time period is then subjected to word segmentation processing and entity extraction. The extracted entities are used as a candidate keyword set, and the TF-IDF values of the multiple phrases obtained from the word segmentation processing are calculated. The specified number of phrases with the highest TF-IDF values are used as keywords in the candidate keyword set.
[0101] In a feasible embodiment, a high threshold value can also be used to recall reference videos. That is, the dense vector search engine can use the first feature and the supported vector search method, and select multiple second features from the M second features according to the preset maximum recall number and the second threshold (the second threshold is greater than the first threshold), and use the videos to be matched corresponding to the multiple second features as the multiple reference videos to be recalled. Then, a time concentration analysis can be performed based on the similarity between the video text information of the multiple reference videos and the description text to determine the reference time period. The processing logic is the same as the above-mentioned time concentration analysis of the similarity between the video text information of the N candidate videos and the description text to determine the target time period. The video text information of the candidate videos within the reference time period is obtained, and then the video text information of the candidate videos within the reference time period is used to determine the confidence keyword set. For example, the video text information of the reference videos within the reference time period is subjected to word segmentation processing and entity extraction, and the extracted entities are used as the confidence keyword set. The TF-IDF values of multiple phrases obtained by the word segmentation processing are calculated, and a specified number of phrases with the highest TF-IDF values are used as keywords in the confidence keyword set.
[0102] The target candidate video is any candidate video among N candidate videos. In one embodiment, it is possible to detect whether the video text information of the target candidate video hits a keyword in the confidence keyword set. If the video text information of the target candidate video does not hit any keyword in the confidence keyword set, the target candidate video is deleted. If the video text information of the target candidate video hits at least one keyword in the confidence keyword set, a similarity threshold of the target candidate video is obtained. Based on the similarity between the video text information of the target candidate video and the description text, and the similarity threshold of the target candidate video, it is determined whether the target candidate video matches the description text. When multiple candidate videos matching the description text are obtained, the multiple candidate videos matching the description text can be sorted according to the release time of the multiple candidate videos matching the description text and the similarity between the video text information of the multiple candidate videos matching the description text and the description text to obtain a recommendation order of the multiple candidate videos matching the description text. Then, based on the recommendation order, a recommendation list containing the multiple candidate videos matching the description text can be generated, and the recommendation list is output to the target object, which can be a video client. For example, the video titles of multiple candidate videos matching the description text in the recommendation list are: "The delivery guy scored 623 points in the college entrance examination and is still calmly delivering food. He earns enough tuition for a year" and "The inspirational delivery guy scored 623 points in the college entrance examination for the second time".
[0103] In an embodiment of the present application, a dense vector retrieval engine can be used to recall candidate videos and reference videos, and a candidate keyword set can be determined based on the candidate video, and a confident keyword set can be determined based on the reference video. Using keyword matching technology, candidate videos that do not hit the confident keyword set can be deleted, and the degree of matching between the video text information of the candidate video and the keywords in the candidate keyword set can be determined. Through this matching degree, candidate videos with high relevance to the hot events corresponding to the descriptive text can be recalled, thereby improving the accuracy of video content push. Moreover, the computational complexity of the keyword extraction and matching process is controllable, so it takes less time, which can improve the efficiency of video content push.
[0104] It is understandable that in the specific implementation of this application, related data such as video text information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0105] The above describes the method of the embodiment of the present application in detail. To facilitate better implementation of the above method of the embodiment of the present application, the following provides a device of the embodiment of the present application. Figure 6 , Figure 6 : is a structural diagram of a video content push device provided in an embodiment of the present application. In one embodiment, the video content push device 60 may include:
[0106] An acquiring unit 601 is configured to acquire a video content push request for a target object, wherein the video content push request includes a description text related to a hot event;
[0107] A processing unit 602 is configured to recall N candidate videos from the M videos to be matched based on similarities between the description text and video text information of the M videos to be matched, where M and N are positive integers;
[0108] The processing unit 602 is further configured to perform a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos, and determine a target time period;
[0109] The processing unit 602 is further configured to perform threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period, and determine a similarity threshold for each candidate video;
[0110] The processing unit 602 is further configured to perform threshold comparison processing on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and to push the candidate video that matches the description text to the target object.
[0111] In one embodiment, the processing unit 602 is specifically used to: perform statistics on the similarity between the video text information of the candidate video and the description text in each time period to determine the target similarity corresponding to each time period; draw a time concentration curve using the target similarity corresponding to each time period, and obtain a target peak that reaches a preset threshold from the time concentration curve; determine the time period between the first trough before the target peak and the second trough after the target peak in the time concentration curve as the target time period.
[0112] In one embodiment, the target candidate video is any candidate video of the N candidate videos, and the processing unit 602 is specifically used to: extract a candidate keyword set of the video text information of the candidate video within the target time period; extract P keywords hit by the video text information of the target candidate video from the candidate keyword set, and use the extracted P keywords as P video keywords, where P is a positive integer; use the proportion of the type of each video keyword in the video text information set and the product of the frequency of occurrence of each video keyword in the video text information of the target candidate video as the weight of each video keyword, and the video text information set includes the video text information of the N candidate videos; process the weights of the P video keywords according to the threshold recognition rule to obtain the similarity threshold of the target candidate video.
[0113] In one embodiment, the processing unit 602 is specifically used to: according to the threshold recognition rule, use the sum of the weights of the P video keywords as the first adjustment parameter, and use the sum of the occurrence frequencies of the P video keywords in the video text information set as the second adjustment parameter; according to the threshold recognition rule, process the first adjustment parameter and the second adjustment parameter to obtain the similarity threshold of the target candidate video, and the first adjustment parameter and the second adjustment parameter are inversely proportional to the similarity threshold.
[0114] In one embodiment, the processing unit 602 is specifically used to: determine entities in the video text information of the candidate video within the target time period as keywords included in the candidate keyword set; and / or, obtain multiple phrases in the video text information of the candidate video within the target time period, calculate the word frequency-inverse file frequency value of each phrase according to the word frequency-inverse file frequency algorithm, and extract the keywords included in the candidate keyword set from the multiple phrases according to the word frequency-inverse file frequency values.
[0115] In one embodiment, the processing unit 602 is specifically used to: if the video text information of the target candidate video does not hit any keyword in the candidate keyword set, then set the similarity threshold of the target candidate video to a high threshold parameter; if the video text information of the target candidate video hits at least one keyword in the candidate keyword set, then execute the step of extracting P keywords hit by the video text information of the target candidate video from the candidate keyword set.
[0116] In one embodiment, the similarity between the video text information of the N candidate videos and the description text is greater than a first threshold, and the processing unit 602 is specifically used to: use the confidence keyword set, the frequency of occurrence of the keywords in the candidate keyword set in the video text information set, and one or more specified keyword types to perform keyword screening processing to obtain a necessary keyword set, where the keywords in the confidence keyword set are determined based on the video text information of the to-be-matched video whose similarity with the description text is greater than a second threshold, and the second threshold is greater than the first threshold; if the video text information of the target candidate video does not hit any keyword in the necessary keyword set, the similarity threshold of the target candidate video is set to a high threshold parameter; if the video text information of the target candidate video hits at least one keyword in the necessary keyword set, the step of extracting P keywords hit by the video text information of the target candidate video from the candidate keyword set is executed.
[0117] In one embodiment, there are multiple candidate videos matching the description text, and the processing unit 602 is specifically used to: sort the multiple candidate videos matching the description text according to the release time of the multiple candidate videos matching the description text and the similarity between the video text information of the multiple candidate videos matching the description text and the description text, and obtain a recommendation order of the multiple candidate videos matching the description text; generate a recommendation list containing the multiple candidate videos matching the description text according to the recommendation order, and push the recommendation list to the target object.
[0118] In one embodiment, the similarity between the video text information of the candidate video and the description text is determined by calling a similarity prediction model, wherein the similarity prediction model is trained based on a text training set, wherein the text training set includes multiple published texts and topic tags corresponding to each published text, and the published texts and the topic tags corresponding to the published texts are constructed by recognizing text in a target format.
[0119] It can be understood that the functions of each functional unit of the video content pushing device described 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 and will not be repeated here.
[0120] By adopting the method of the present application, a video content push request for a target object can be obtained, where the video content push request includes a descriptive text related to a hot event, and then a time concentration analysis is performed using the similarity between the video text information of the candidate video and the descriptive text to mine the video text information of the candidate video within the target time period, and threshold recognition processing is performed using the video text information of the candidate video within the target time period, and a personalized similarity threshold is set for each candidate video to accurately match the candidate video that matches the descriptive text, thereby improving the accuracy of video content push.
[0121] like Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The internal structure of the computer device 70 is as follows: Figure 7 As shown, it includes: one or more processors 701, memory 702, and communication interface 703. The processor 701, memory 702, and communication interface 703 can be connected via a bus 704 or other means. The embodiment of the present application takes the connection via the bus 704 as an example.
[0122] Processor 701 (also known as the CPU (Central Processing Unit)) is the computing and control core of computer device 70. It can interpret various instructions within computer device 70 and process various data within computer device 70. For example, the CPU can interpret power on / off commands sent by the user to computer device 70 and control the power on / off operation of computer device 70. Another example is that the CPU can transmit various interactive data between the internal components of computer device 70, etc. Communication interface 703 can optionally include a standard wired interface or a wireless interface (such as Wi-Fi or mobile communication interface), which is controlled by processor 701 to send and receive data. Memory 702 (Memory) is a storage device within computer device 70 for storing computer programs and data. It is understood that memory 702 here can include both the built-in memory of computer device 70 and the extended memory supported by computer device 70. Memory 702 provides storage space for the operating system of computer device 70, which may include but is not limited to Windows, Linux, Android, iOS, etc., although this application is not limited to this. The processor 701 executes the following operations by running the computer program stored in the memory 702:
[0123] Obtaining a video content push request for a target object, wherein the video content push request includes a description text related to a hot event;
[0124] Recalling N candidate videos from the M to-be-matched videos based on the similarity between the description text and the video text information of the M to-be-matched videos, where M and N are positive integers;
[0125] Performing a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos to determine a target time period;
[0126] Performing threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period to determine a similarity threshold for each candidate video;
[0127] Threshold comparison processing is performed on the similarity between the video text information of each candidate video and the description text, as well as the similarity threshold of each candidate video, to determine the candidate video that matches the description text, and push the candidate video that matches the description text to the target object.
[0128] In one embodiment, the processor 701 is specifically used to: perform statistics on the similarity between the video text information of the candidate video and the description text in each time period to determine the target similarity corresponding to each time period; draw a time concentration curve using the target similarity corresponding to each time period, and obtain a target peak that reaches a preset threshold from the time concentration curve; determine the time period between the first trough before the target peak and the second trough after the target peak in the time concentration curve as the target time period.
[0129] In one embodiment, the target candidate video is any candidate video of the N candidate videos, and the processor 701 is specifically used to: extract a candidate keyword set of the video text information of the candidate video within the target time period; extract P keywords hit by the video text information of the target candidate video from the candidate keyword set, and use the extracted P keywords as P video keywords, where P is a positive integer; use the proportion of the type of each video keyword in the video text information set and the product of the frequency of occurrence of each video keyword in the video text information of the target candidate video as the weight of each video keyword, and the video text information set includes the video text information of the N candidate videos; process the weights of the P video keywords according to the threshold recognition rule to obtain the similarity threshold of the target candidate video.
[0130] In one embodiment, the processor 701 is specifically used to: according to the threshold recognition rule, use the sum of the weights of the P video keywords as the first adjustment parameter, and use the sum of the occurrence frequencies of the P video keywords in the video text information set as the second adjustment parameter; according to the threshold recognition rule, process the first adjustment parameter and the second adjustment parameter to obtain the similarity threshold of the target candidate video, and the first adjustment parameter and the second adjustment parameter are inversely proportional to the similarity threshold.
[0131] In one embodiment, the processor 701 is specifically used to: determine entities in the video text information of the candidate video within the target time period as keywords included in the candidate keyword set; and / or, obtain multiple phrases in the video text information of the candidate video within the target time period, calculate the word frequency-inverse file frequency value of each phrase according to the word frequency-inverse file frequency algorithm, and extract the keywords included in the candidate keyword set from the multiple phrases according to the word frequency-inverse file frequency values.
[0132] In one embodiment, the processor 701 is specifically used to: if the video text information of the target candidate video does not hit any keyword in the candidate keyword set, then set the similarity threshold of the target candidate video to a high threshold parameter; if the video text information of the target candidate video hits at least one keyword in the candidate keyword set, then execute the step of extracting P keywords hit by the video text information of the target candidate video from the candidate keyword set.
[0133] In one embodiment, the similarity between the video text information of the N candidate videos and the description text is greater than a first threshold, and the processor 701 is specifically used to: use the confidence keyword set, the frequency of occurrence of keywords in the candidate keyword set in the video text information set, and one or more specified keyword types to perform keyword screening processing to obtain a necessary keyword set, where the keywords in the confidence keyword set are determined based on the video text information of the to-be-matched video whose similarity with the description text is greater than a second threshold, and the second threshold is greater than the first threshold; if the video text information of the target candidate video does not hit any keyword in the necessary keyword set, the similarity threshold of the target candidate video is set to a high threshold parameter; if the video text information of the target candidate video hits at least one keyword in the necessary keyword set, the step of extracting P keywords hit by the video text information of the target candidate video from the candidate keyword set is executed.
[0134] In one embodiment, there are multiple candidate videos matching the description text, and the processor 701 is specifically used to: sort the multiple candidate videos matching the description text according to the release time of the multiple candidate videos matching the description text and the similarity between the video text information of the multiple candidate videos matching the description text and the description text, and obtain a recommendation order of the multiple candidate videos matching the description text; generate a recommendation list containing the multiple candidate videos matching the description text according to the recommendation order, and push the recommendation list to the target object.
[0135] In one embodiment, the similarity between the video text information of the candidate video and the description text is determined by calling a similarity prediction model, wherein the similarity prediction model is trained based on a text training set, wherein the text training set includes multiple published texts and topic tags corresponding to each published text, and the published texts and the topic tags corresponding to the published texts are constructed by recognizing text in a target format.
[0136] In a specific implementation, the processor 701, memory 702, and communication interface 703 described in the embodiment of the present application can execute the implementation method described in a video content push method provided in the embodiment of the present application, and can also execute the implementation method described in a video content push device provided in the embodiment of the present application, which will not be repeated here.
[0137] By adopting the method of the present application, a video content push request for a target object can be obtained, where the video content push request includes a descriptive text related to a hot event, and then a time concentration analysis is performed using the similarity between the video text information of the candidate video and the descriptive text to mine the video text information of the candidate video within the target time period, and threshold recognition processing is performed using the video text information of the candidate video within the target time period, and a personalized similarity threshold is set for each candidate video to accurately match the candidate video that matches the descriptive text, thereby improving the accuracy of video content push.
[0138] The present application also provides a computer-readable storage medium that stores a computer program that, when executed on a computer device, causes the computer device to execute the video content push method of any of the above-described possible implementations. The specific implementation method can be found in the previous description and will not be repeated here.
[0139] The present application also provides a computer program product, comprising a computer program or computer instructions that, when executed by a processor, implement the steps of the video content push method provided in the present application. The specific implementation thereof can be found in the preceding description and will not be further elaborated here.
[0140] The present application also provides a computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the video content push method provided in the present application. The specific implementation method is described above and will not be repeated here.
[0141] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0142] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0143] The above disclosure is only part of the embodiments of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A video content pushing method, characterized in that: The method comprises: Obtaining a video content push request for a target object, wherein the video content push request includes a description text related to a hot event; Recalling N candidate videos from the M videos to be matched according to the similarity between the description text and the video text information of the M videos to be matched, where M and N are positive integers; According to the release time of the N candidate videos, a time concentration analysis is performed on the similarity between the video text information of the N candidate videos and the description text to determine a target time period; Performing threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period to determine a similarity threshold of each candidate video; Performing threshold comparison processing on the similarity between the video text information of each candidate video and the description text, and the similarity threshold of each candidate video, respectively, determining a candidate video matching the description text, and pushing the candidate video matching the description text to the target object; The target candidate video is any candidate video of the N candidate videos, and the process of performing threshold recognition processing on the target candidate video according to the video text information of the candidate video within the target time period to determine the similarity threshold of the target candidate video includes: Extracting a set of candidate keywords from video text information of candidate videos within the target time period; If the video text information of the target candidate video does not hit any keyword in the candidate keyword set, setting the similarity threshold of the target candidate video to a high threshold parameter; If the video text information of the target candidate video hits at least one keyword in the candidate keyword set, P keywords hit by the video text information of the target candidate video are extracted from the candidate keyword set, and the extracted P keywords are used as P video keywords, where P is a positive integer; The product of the proportion of the type of each video keyword in the video text information set and the appearance frequency of each video keyword in the video text information of the target candidate video is used as the weight of each video keyword, and the video text information set includes the video text information of the N candidate videos; The weights of the P video keywords are processed according to a threshold recognition rule to obtain a similarity threshold of the target candidate video.
2. The method according to claim 1, characterized in that The step of performing time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos to determine the target time period includes: Divide the N candidate videos into multiple time periods according to their release time; Counting the similarity between the video text information of the candidate video and the description text in each time period to determine the target similarity corresponding to each time period; Draw a time-density curve using the target similarity corresponding to each time period, and obtain a target peak reaching a preset threshold from the time-density curve; A time period from a first trough before the target peak to a second trough after the target peak in the time-density curve is determined as a target time period.
3. The method according to claim 1, characterized in that The weights of the P video keywords are processed according to the threshold recognition rule to obtain the similarity threshold of the target candidate video, including: According to the threshold recognition rule, the sum of the weights of the P video keywords is used as a first adjustment parameter, and the sum of the occurrence frequencies of the P video keywords in the video text information set is used as a second adjustment parameter; According to the threshold recognition rule, the first adjustment parameter and the second adjustment parameter are processed to obtain a similarity threshold of the target candidate video, and the first adjustment parameter and the second adjustment parameter are inversely proportional to the similarity threshold.
4. The method according to claim 1, characterized in that The extracting of the candidate keyword set of the video text information of the candidate video within the target time period includes: Determine entities in the video text information of the candidate videos within the target time period as keywords included in the candidate keyword set; and / or, Acquire multiple phrases in the video text information of the candidate videos within the target time period, calculate the word frequency-inverse file frequency value of each phrase according to the word frequency-inverse file frequency algorithm, and extract the keywords included in the candidate keyword set from the multiple phrases according to the word frequency-inverse file frequency values.
5. The method according to claim 1, characterized in that: The similarity between the video text information of the N candidate videos and the description text is greater than a first threshold; the method further includes: Perform keyword screening processing using a confident keyword set, the frequencies of occurrence of keywords in the candidate keyword set in the video text information set, and one or more of the specified keyword types to obtain a necessary keyword set, wherein the keywords in the confident keyword set are determined based on video text information of a to-be-matched video whose similarity with the description text is greater than a second threshold, and the second threshold is greater than the first threshold; If the video text information of the target candidate video does not hit any keyword in the necessary keyword set, setting the similarity threshold of the target candidate video to a high threshold parameter; If the video text information of the target candidate video hits at least one keyword in the necessary keyword set, the step of extracting P keywords hit by the video text information of the target candidate video from the candidate keyword set is performed.
6. The method according to claim 1, characterized in that The number of candidate videos matching the description text is multiple, and the step of pushing the candidate videos matching the description text to the target object includes: Using the release time of the multiple candidate videos matching the description text and the similarity between the video text information of the multiple candidate videos matching the description text and the description text, the multiple candidate videos matching the description text are sorted to obtain a recommended order of the multiple candidate videos matching the description text; According to the recommendation order, a recommendation list including a plurality of candidate videos matching the description text is generated, and the recommendation list is pushed to the target object.
7. The method according to any one of claims 1 to 6, characterized in that The similarity between the video text information of the candidate video and the description text is determined by calling a similarity prediction model, wherein the similarity prediction model is trained based on a text training set, wherein the text training set includes multiple published texts and a topic tag corresponding to each published text, and the published texts and the topic tags corresponding to the published texts are constructed after identifying text in a target format.
8. A video content push device, characterized in that: The device comprises: An acquisition unit, configured to acquire a video content push request for a target object, wherein the video content push request includes a description text related to a hot event; A processing unit, configured to recall N candidate videos from the M videos to be matched according to the similarity between the description text and the video text information of the M videos to be matched, where M and N are positive integers; The processing unit is further used to perform a time concentration analysis on the similarity between the video text information of the N candidate videos and the description text according to the release time of the N candidate videos, and determine the target time period; The processing unit is further configured to perform threshold recognition processing on each candidate video according to the video text information of the candidate video within the target time period, and determine a similarity threshold of each candidate video; The processing unit is further configured to perform threshold comparison processing on the similarity between the video text information of each candidate video and the description text, and the similarity threshold of each candidate video, determine the candidate video matching the description text, and push the candidate video matching the description text to the target object; The target candidate video is any candidate video of the N candidate videos, and the process of performing threshold recognition processing on the target candidate video according to the video text information of the candidate video within the target time period to determine the similarity threshold of the target candidate video includes: Extracting a set of candidate keywords from video text information of candidate videos within the target time period; If the video text information of the target candidate video does not hit any keyword in the candidate keyword set, setting the similarity threshold of the target candidate video to a high threshold parameter; If the video text information of the target candidate video hits at least one keyword in the candidate keyword set, P keywords hit by the video text information of the target candidate video are extracted from the candidate keyword set, and the extracted P keywords are used as P video keywords, where P is a positive integer; The product of the proportion of the type of each video keyword in the video text information set and the appearance frequency of each video keyword in the video text information of the target candidate video is used as the weight of each video keyword, and the video text information set includes the video text information of the N candidate videos; The weights of the P video keywords are processed according to a threshold recognition rule to obtain a similarity threshold of the target candidate video.
9. A computer device, characterized in that: The computer device includes a memory, a communication interface and a processor, wherein the memory, the communication interface and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to implement the video content pushing method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the video content pushing method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that The computer program product includes a computer program or a computer instruction, and when the computer program or the computer instruction is executed by a processor, the video content pushing method according to any one of claims 1 to 7 is implemented.
