Live broadcast thermal field bullet screen generation method and device based on large language model

Using a large language model to generate highly relevant warm-up barrages solves the time-consuming and labor-intensive problem of manual warm-ups during the "cold break" of the live broadcast room, and improves the management efficiency and audience experience of live barrages.

CN118828044APending Publication Date: 2024-10-22XIAMEN CHANJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410801995.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When a "cold scene" occurs in the live broadcast room before the start of the broadcast or during the live broadcast, manually warming up the barrage area is time-consuming and laborious, and it is difficult to ensure the relevance and quality of the barrage.

Method used

The live broadcast warm-up barrage generation method based on the large language model is used to obtain live broadcast product information, perform classification label matching, screen out the barrage raw materials with high similarity and quality, and combine with the large language model to generate highly relevant warm-up barrages. screen.

Benefits of technology

It improves the efficiency of live broadcast barrage management, ensures that the generated barrage is relevant to the product, avoids abrupt barrage, and improves the audience experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828044A_ABST
    Figure CN118828044A_ABST
Patent Text Reader

Abstract

The invention provides a live broadcast thermal field bullet screen generation method and device based on a large language model, and relates to the technical field of artificial intelligence. According to the generation method, the current live broadcast commodity information is obtained, and after the live broadcast commodity information is classified by a plurality of levels, similarity matching calculation is performed on the live broadcast commodity information and a commodity bullet screen library constructed in advance; according to the calculated similarity and the quality score of the corresponding bullet screen, selecting the first N bullet screens in the commodity bullet screen library as candidate bullet screen raw materials; performing secondary filtering on the candidate bullet screen raw materials through the large model to obtain bullet screen raw materials; and selecting a plurality of barrages as a barrage set according to the barrage raw materials, and inputting the barrages, the live broadcast commodity information and the context of the current barrage area into the large language model to generate the warm field barrage. According to the invention, the related bullet screen of the commodity can be quickly matched and selected, the high correlation between the generated bullet screen and the target commodity and the current bullet screen context is ensured, and the quality and management efficiency of live broadcast bullet screens are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for generating live warm-up barrage based on a large language model. Background Art

[0002] In the live streaming sales scenario, the popularity of the live broadcast room is related to many factors such as the number of viewers and the interaction of the audience barrage, and the barrage interaction is an important means to maintain the popularity of the live broadcast room and the rhythm of the live broadcast. In the early stage of the broadcast, it is often easy for the live broadcast room barrage atmosphere to be cold, resulting in a poor audience experience, and the audience's perception will also change with the live broadcast rhythm of the anchor. Sometimes there will be an occasional "cold scene" in the barrage area. At this time, the anchor or assistant usually needs to guide the audience to actively discuss in the barrage area to mobilize the atmosphere of the live broadcast room.

[0003] Whether it is the initial stage of the broadcast or the "cold" situation during the live broadcast, if you rely solely on manual warm-up of the barrage area, you need to first conceive the topic, then organize the words, and also need to keep an eye on the topics discussed in the barrage area. For some live broadcast rooms with a large number of people, even a dedicated person is needed to manage the barrage area, which is time-consuming and labor-intensive.

[0004] In view of this, the applicant filed this application after studying the existing technology. Summary of the invention

[0005] The present invention aims to provide a method and device for generating live warm-up barrage based on a large language model, so as to solve the problem of time-consuming and labor-intensive manual processing when the existing live broadcast room is "cold".

[0006] In order to solve the above technical problems, the present invention is implemented through the following technical solutions:

[0007] A method for generating live broadcast warm-up bullet screen based on a large language model, comprising:

[0008] S1, obtain the current live broadcast product information;

[0009] S2, classifying the live broadcast commodity information into several levels to obtain a hierarchical classification label for each commodity;

[0010] S3, performing similarity matching calculation on the hierarchical classification label of each commodity and the commodity barrage library, obtaining the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage;

[0011] S4, selecting the first N bullet comments in the product bullet comment library as candidate bullet comment materials according to the similarity and the quality score of the bullet comment;

[0012] S5, inputting the candidate barrage materials and the live broadcast product information into the large language model for secondary relevance filtering, determining whether each barrage in the candidate barrage materials is relevant to the live broadcast product information, removing irrelevant barrages, and obtaining the barrage materials for each product;

[0013] S6, selecting a number of barrages as a barrage set according to the barrage material;

[0014] S7, input the barrage set, the live broadcast product information and the context of the current barrage area into the large language model to generate warm-up barrage.

[0015] Preferably, the commodity bullet screen library is constructed by the following steps:

[0016] Get the historical live broadcast bullet screen dataset;

[0017] Performing data cleaning on the historical live broadcast bullet screen data set; wherein the data cleaning includes correcting typos and removing stop words;

[0018] The historical live broadcast bullet comment data set after data cleaning is classified into several levels to obtain a hierarchical classification label for each product; wherein the last level label contains the product name and the corresponding bullet comment information;

[0019] Each barrage information of the last level label is subjected to rule filtering, semantic screening and quality scoring until all barrages are completed to obtain a product barrage library; wherein each barrage in the last level label of the product barrage library contains a corresponding quality score.

[0020] Preferably, the rule filtering is:

[0021] If the length of the current barrage data is greater than threshold a, the proportion of characters other than Chinese and English characters in the current barrage data is less than threshold b, and the proportion of the highest frequency character in the current barrage data is less than threshold c, then retain the current barrage data; otherwise, delete the current barrage data.

[0022] Preferably, the semantic screening is to input the current barrage data and the corresponding class target signature into the large language model for label judgment. If the judgment is the same, the current barrage data is retained; otherwise, the current barrage data is deleted.

[0023] Preferably, the quality scoring is to input the current barrage data into a trained classification neural network model for prediction, and obtain the probability that the current barrage data is predicted to be positive, which is the quality score of the current barrage data; wherein the classification neural network model includes a recurrent neural network, a long short-term memory network and a convolutional neural network.

[0024] Preferably, when selecting the first N barrages in the product barrage library as candidate barrage materials based on the similarity and the quality score of the barrage, weights are set for the similarity and the quality score of the barrage respectively, and then the comprehensive score of each barrage is calculated, and the first N barrages are selected as candidate barrage materials based on the comprehensive score.

[0025] Preferably, when selecting several barrages as a barrage set, it is determined whether the barrage heat value obtained in real time is lower than a set threshold. If so, it is automatically triggered to select several barrages as a barrage set to perform a barrage generation operation; wherein the barrage heat value is the number of barrages per minute.

[0026] Preferably, when selecting a plurality of bullet comments as a bullet comment set, random selection or manual selection is included.

[0027] The present invention also provides a live broadcast warm-up barrage generation device based on a large language model, comprising:

[0028] Input unit, used to obtain the current live broadcast product information;

[0029] A grading and classification unit, used to classify the live broadcast commodity information into several levels to obtain a grading and classification label for each commodity;

[0030] A barrage matching unit is used to perform similarity matching calculation between the hierarchical classification label of each commodity and the commodity barrage library, so as to obtain the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage;

[0031] A candidate barrage material unit, used to select the first N barrages in the product barrage library as candidate barrage materials according to the similarity and the quality score of the barrage;

[0032] A secondary screening unit for barrage materials is used to input the candidate barrage materials and the live product information into a large language model for secondary relevance filtering, determine whether each barrage in the candidate barrage materials is relevant to the live product information, remove irrelevant barrages, and obtain the barrage materials for each product;

[0033] A barrage collection unit, used for selecting a number of barrages as a barrage collection according to the barrage raw materials;

[0034] The barrage generation unit is used to input the barrage set, the live broadcast product information and the context of the current barrage area into a large language model to generate a warm-up barrage.

[0035] In summary, compared with the prior art, the present invention has the following beneficial effects:

[0036] (1) The present invention constructs an offline bullet comment library, adopts a product classification label system to classify bullet comments into product labels, and combines a large language model to screen the bullet comments in the bullet comment library; the product classification structure can quickly match and select relevant bullet comments of products in the bullet comment material construction stage, and then combines the secondary screening of the large language model to further ensure the relevance of the bullet comments in the bullet comment material and the target product.

[0037] (2) The present invention ensures the relevance of the barrage materials to the current product while ensuring the quality of the warm-up barrage through a fusion sorting and screening method of the barrage quality score and the product similarity.

[0038] (3) The present invention combines the barrage collection, product information and barrage context, and uses a large language model to generate barrage, thereby improving the management efficiency of live broadcast barrage, ensuring the relevance of the generated barrage and the product, and combining the warm-up barrage generated by the context of the barrage to be more in line with the actual situation of the current live broadcast, avoiding the abruptness of the generated barrage. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A schematic diagram of a method for generating live warm-up barrage based on a large language model provided in Example 1 of the present invention.

[0041] Figure 2 A flowchart of a method for generating live warm-up barrage based on a large language model provided in Example 1 of the present invention.

[0042] Figure 3 This is a flow chart of the rule filtering method provided in Example 1 of the present invention.

[0043] Figure 4 A schematic diagram of the structure of a live warm-up barrage generation device based on a large language model provided in Embodiment 2 of the present invention.

[0044] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0046] Embodiment 1

[0047] Embodiment 1 of the present invention provides a method for generating live broadcast warm-up barrage based on a large language model, which can be implemented by a live broadcast warm-up barrage generation device based on a large language model (hereinafter referred to as a barrage generation device), and in particular, executed by one or more processors in the barrage generation device.

[0048] In an embodiment of the present invention, the barrage generation device may be an electronic device equipped with a processor, the processor having a computer program of the live question-and-answer construction method and the computer program can be executed, such as a computer, a smart phone, a smart tablet, etc.

[0049] like Figure 1 As shown, a method for generating live warm-up bullet screen based on a large language model includes steps S1-S7.

[0050] S1, obtain the current live broadcast product information;

[0051] S2, classifying the live broadcast commodity information into several levels to obtain a hierarchical classification label for each commodity;

[0052] S3, performing similarity matching calculation on the hierarchical classification label of each commodity and the commodity barrage library, obtaining the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage;

[0053] S4, selecting the first N bullet comments in the product bullet comment library as candidate bullet comment materials according to the similarity and the quality score of the bullet comment;

[0054] S5, inputting the candidate barrage materials and the live broadcast product information into the large language model for secondary relevance filtering, determining whether each barrage in the candidate barrage materials is relevant to the live broadcast product information, removing irrelevant barrages, and obtaining the barrage materials for each product;

[0055] S6, selecting a number of barrages as a barrage set according to the barrage material;

[0056] S7, input the barrage set, the live broadcast product information and the context of the current barrage area into the large language model to generate warm-up barrage.

[0057] like Figure 2 The flowchart of the live broadcast warm-up barrage generation method based on the large language model is shown. The present invention can automatically monitor the status of the live broadcast room, and combined with the offline constructed popular barrage library of commodity categories and the powerful generation capability of the large language model (Large language model l, LLM), it can automatically perform the barrage area warm-up behavior without human intervention, and can also guide the designated topic with simple human intervention.

[0058] The arrows in the figure indicate the data flow of the entire system, the rectangular part indicates the processing steps, and the hexagon is the input data or processing results.

[0059] The entire system is divided into three parts: offline barrage library construction, online barrage material screening, and online real-time barrage generation. Among them, the offline barrage library construction part is relatively time-consuming, using offline construction methods to analyze and construct from massive historical live barrage data; online barrage material screening is pre-processed before each live broadcast; online real-time barrage generation is a barrage generation process, which can be repeated many times during the live broadcast.

[0060] The first part is the construction of offline bullet screen library. The specific steps are as follows:

[0061] Step 1: Obtain the historical live broadcast bullet screen dataset and construct a bullet screen library from the historical live broadcast bullet screen database.

[0062] Step 2: Clean all historical live broadcast bullet comment data sets; data cleaning includes operations such as correcting typos and removing stop words;

[0063] Step 3: In order to ensure the high relevance between the subsequent bullet screen materials and the explained products, we classify all the products. In this embodiment, we use five levels of classification, such as "daily necessities - storage and organization - household storage tools - storage boxes - stationery storage boxes", and other levels of classification can also be used according to actual needs.

[0064] The classification method can adopt the existing mature classification method, such as the cluster analysis method, which will not be described here. After the classification is completed, a five-level category system of goods is obtained, and each product has a number of product information and corresponding bullet message information under the fifth-level label.

[0065] Step 4: The "warm-up comments" should be meaningful, guiding, and positive and compliant data. The quality of different data is also different, so the data under each fifth-level label is subjected to "rule filtering", "semantic screening" and "quality scoring".

[0066] In actual live broadcast scenarios, there are many meaningless barrage messages, which may be caused by user error, or barrages without clear meaning, or a large number of meaningless characters in the barrage, or a single word appears repeatedly in the barrage.

[0067] like Figure 3 As shown, the present invention performs "rule filtering" on each bullet comment data, and the rules are as follows:

[0068] If the length of the current barrage data is greater than threshold a, the proportion of characters other than Chinese and English characters in the current barrage data is less than threshold b, and the proportion of the highest frequency character in the current barrage data is less than threshold c, then retain the current barrage data; otherwise, delete the current barrage data.

[0069] Among them, the thresholds a\b\c involved can be dynamically adjusted according to the number of bullet comments under the current category, or the same threshold can be uniformly set for all categories.

[0070] Step 5. Then, combine the big model to perform semantic screening on each piece of data. This step will use the current barrage data and the current class target signature as the input of the big language model for judgment. If the output judgment label is the same, the current barrage data will be retained; otherwise, the current barrage data will be deleted.

[0071] Step six, finally, use the scoring model to score the quality of each barrage data. In this embodiment, the score range is [0, 1]. The scoring standard is to judge whether the current barrage is suitable as a "warm-up barrage", where 0 means it is not suitable as a warm-up barrage, and 1 means it is suitable as a warm-up barrage. The scoring model is implemented by using a classification neural network model. In the training stage, the {0, 1} label is used as the supervision label, where 0 means it is not suitable as a warm-up barrage, and 1 means it is suitable as a warm-up barrage. The label is manually judged and marked by the training set; in the prediction stage, the probability of the model predicting 1 is taken as the quality score of the current data.

[0072] In this embodiment, the classification neural network can select a neural network architecture such as a recurrent neural network (RNN), a long short-term memory network (LSTM), a convolutional neural network (CNN), etc. The relevant training methods are relatively mature and will not be repeated here.

[0073] Through the above steps, a barrage library can be obtained. Each barrage under each fifth-level label in the barrage library has a corresponding quality score.

[0074] The above is offline processing, has nothing to do with a single live broadcast, and the barrage library can be updated regularly.

[0075] Part 2: Online barrage raw material screening part.

[0076] Before each live broadcast begins, the system automatically performs preprocessing. First, all products in the current live broadcast product list are classified into five levels to obtain the five-level classification label for each product;

[0077] Then, based on the product information, such as title, selling points, etc., similarity calculation is performed with the bullet comment library under the five-level tags of the product to obtain the similarity between the product and each bullet comment in the bullet comment library;

[0078] Then, the quality scores of each barrage are combined to sort them and the top N barrages are selected as candidate barrage materials. In this embodiment, the barrage quality scores and similarities can be weighted and then the comprehensive score of each barrage can be calculated. The weights can be adjusted by the user. The top N barrages are selected based on the calculated comprehensive scores, and generally each score is 0.5. Among them, N is a parameter and can be freely set according to needs.

[0079] Then, the candidate barrage materials and the current product information are used as input, and a large language model is used for secondary relevance filtering. The relevance of the barrage in the candidate barrage materials to the corresponding product is determined one by one, and irrelevant barrage information is eliminated to obtain the barrage materials for each product.

[0080] The third part is the online real-time barrage generation part.

[0081] The online real-time barrage generation part is the process of generating a barrage online, which can be manually triggered by the host or assistant, or automatically triggered by the set barrage heat threshold. The barrage heat threshold is the current number of barrages per minute. When it is lower than this value, it indicates that the live broadcast room may be in a "cold" state, and the topic guidance function is automatically triggered. The online real-time barrage generation function is scheduled to generate barrages, which are sent to the barrage area by the host or assistant to guide the audience discussion and improve the viewing experience.

[0082] During the online real-time barrage generation process, you can choose to manually or automatically select a barrage collection. In the manual selection, the host or assistant selects a number of barrages from the barrage raw materials as the barrage collection, while in the automatic selection, the system randomly selects a number of barrages from the barrage raw materials as the barrage collection. Then, the barrage collection, current product information, and the context of the current barrage area, that is, the most recent barrages, are used as input to generate barrages using a large language model.

[0083] If the online real-time barrage generation module adopts the method of automatic triggering and random sampling of barrage, warm-up behavior can be automatically performed according to the barrage area information of the live broadcast room without human intervention; if it is manually triggered or the set of words is manually selected, warm-up behavior can be quickly performed with simple human participation.

[0084] In summary, compared with the prior art, the present invention has the following beneficial effects:

[0085] (1) The present invention constructs an offline barrage library, adopts a product classification label system to classify barrages into product labels, and combines a large language model to screen the barrages in the barrage library. The product classification structure can quickly match product-related barrages in the barrage raw material construction stage; combined with the secondary screening of the large language model, the relevance of the barrage in the barrage raw material and the target product is further guaranteed.

[0086] (2) The online barrage material generation part of the present invention adopts a barrage quality score and product similarity fusion sorting and screening method to ensure the relevance of the barrage material to the current product while ensuring the quality of the warm-up barrage.

[0087] (3) The online real-time barrage generation part of the present invention combines the barrage set, product information and barrage context, and uses a large language model to generate barrage, thereby ensuring the relevance of the generated barrage to the product, and combining the warm-up barrage generated in the context of the barrage to better conform to the actual situation of the current live broadcast and avoid the abruptness of the barrage.

[0088] Embodiment 2

[0089] like Figure 4 As shown, the second embodiment of the present invention further provides a live broadcast warm-up barrage generation device based on a large language model, comprising:

[0090] Input unit, used to obtain the current live broadcast product information;

[0091] A grading and classification unit, used to classify the live broadcast commodity information into several levels to obtain a grading and classification label for each commodity;

[0092] A barrage matching unit is used to perform similarity matching calculation between the hierarchical classification label of each commodity and the commodity barrage library, so as to obtain the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage;

[0093] A candidate barrage material unit, used to select the first N barrages in the product barrage library as candidate barrage materials according to the similarity and the quality score of the barrage;

[0094] A secondary screening unit for barrage materials is used to input the candidate barrage materials and the live product information into a large language model for secondary relevance filtering, determine whether each barrage in the candidate barrage materials is relevant to the live product information, remove irrelevant barrages, and obtain the barrage materials for each product;

[0095] A barrage collection unit, used for selecting a number of barrages as a barrage collection according to the barrage raw materials;

[0096] The barrage generation unit is used to input the barrage set, the live broadcast product information and the context of the current barrage area into a large language model to generate a warm-up barrage.

[0097] Embodiment 3

[0098] The third embodiment of the present invention also provides a live broadcast warm-up barrage generation device based on a large language model, including a processor and a memory, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement a live broadcast warm-up barrage generation method based on a large language model as described above.

[0099] Embodiment 4

[0100] The fourth embodiment of the present invention also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a device where the computer-readable storage medium is located, a method for generating live warm-up barrage based on a large language model as described above is implemented.

[0101] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0103] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk. It should be noted that, in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0104] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0105] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0106] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0107] The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for generating live warm-up bullet screen based on a large language model, characterized in that: include: S1, obtain the current live broadcast product information; S2, classifying the live broadcast commodity information into several levels to obtain a hierarchical classification label for each commodity; S3, performing similarity matching calculation on the hierarchical classification label of each commodity and the commodity barrage library, obtaining the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage; S4, selecting the first N bullet comments in the product bullet comment library as candidate bullet comment materials according to the similarity and the quality score of the bullet comment; S5, inputting the candidate barrage materials and the live broadcast product information into the large language model for secondary relevance filtering, determining whether each barrage in the candidate barrage materials is relevant to the live broadcast product information, removing irrelevant barrages, and obtaining the barrage materials for each product; S6, selecting a number of barrages as a barrage set according to the barrage material; S7, input the barrage set, the live broadcast product information and the context of the current barrage area into the large language model to generate warm-up barrage.

2. According to claim 1, a method for generating live warm-up bullet screen based on a large language model is characterized in that ,The commodity barrage library is constructed through the following steps: Get the historical live broadcast bullet screen dataset; Performing data cleaning on the historical live broadcast bullet screen data set; wherein the data cleaning includes correcting typos and removing stop words; The historical live broadcast bullet comment data set after data cleaning is classified into several levels to obtain a hierarchical classification label for each product; wherein the last level label contains the product name and the corresponding bullet comment information; Each barrage information of the last level label is subjected to rule filtering, semantic screening and quality scoring until all barrages are completed to obtain a product barrage library; wherein each barrage in the last level label of the product barrage library contains a corresponding quality score.

3. A method for generating live warm-up bullet screen based on a large language model according to claim 2, characterized in that , the rule filtering is: If the length of the current barrage data is greater than threshold a, the proportion of characters other than Chinese and English characters in the current barrage data is less than threshold b, and the proportion of the highest frequency character in the current barrage data is less than threshold c, then retain the current barrage data; Otherwise, delete the current bullet comment data.

4. According to claim 3, a method for generating live warm-up bullet screen based on a large language model is characterized in that ,The semantic screening is to input the current barrage data and the corresponding class target signature name into the large language model for label judgment. If the judgment is the same, the current barrage data is retained; Otherwise, delete the current bullet comment data.

5. A method for generating live warm-up bullet screen based on a large language model according to claim 4, characterized in that The quality scoring is to input the current barrage data into a trained classification neural network model for prediction, and obtain the probability that the current barrage data is predicted to be positive, which is the quality score of the current barrage data; wherein the classification neural network model includes a recurrent neural network, a long short-term memory network and a convolutional neural network.

6. A method for generating live warm-up bullet screen based on a large language model according to claim 5, characterized in that , when selecting the first N barrages in the product barrage library as candidate barrage materials according to the similarity and the quality score of the barrage, weights are set for the similarity and the quality score of the barrage respectively, and then the comprehensive score of each barrage is calculated, and the first N barrages are selected as candidate barrage materials according to the comprehensive score.

7. A method for generating live warm-up bullet screen based on a large language model according to claim 6, characterized in that When selecting several barrages as a barrage set, it is determined whether the barrage heat value obtained in real time is lower than the set threshold. If so, it is automatically triggered to select several barrages as a barrage set to perform a barrage generation operation; wherein, the barrage heat value is the number of barrages per minute.

8. A method for generating live warm-up bullet screen based on a large language model according to claim 7, characterized in that ,When selecting several bullet comments as a bullet comment set, it includes random ,selection or manual selection.

9. A device for generating live warm-up bullet screen based on a large language model, characterized in that: include: Input unit, used to obtain the current live broadcast product information; A grading and classification unit, used to classify the live broadcast commodity information into several levels to obtain a grading and classification label for each commodity; A barrage matching unit is used to perform similarity matching calculation between the hierarchical classification label of each commodity and the commodity barrage library, so as to obtain the similarity between each commodity and each barrage in the commodity barrage library and the quality score of the corresponding barrage; wherein the commodity hierarchical classification of the commodity barrage library is the same as the live commodity information, and the last level label of the commodity barrage library contains the barrage information and the quality score of the corresponding barrage; A candidate barrage material unit, used to select the first N barrages in the product barrage library as candidate barrage materials according to the similarity and the quality score of the barrage; A secondary screening unit for barrage materials is used to input the candidate barrage materials and the live product information into a large language model for secondary relevance filtering, determine whether each barrage in the candidate barrage materials is relevant to the live product information, remove irrelevant barrages, and obtain the barrage materials for each product; A barrage collection unit, used for selecting a number of barrages as a barrage collection according to the barrage raw materials; The barrage generation unit is used to input the barrage set, the live broadcast product information and the context of the current barrage area into a large language model to generate a warm-up barrage.