Live broadcast illegal behavior detection method, device and equipment based on variant word recognition
Through the multi-level variant word recognition method combined with voice and optical character recognition models, the structure, sound shape and semantic variant words in live e-commerce are identified, which solves the problem of insufficient real-time and accuracy, and realizes efficient detection of live broadcast violations , prevent the spread of bad information.
Patent Information
- Application Number
- CN202410979366.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-22
AI Technical Summary
There are problems in live e-commerce with insufficient real-time and accuracy of variant word recognition, which makes it difficult to effectively detect violations.
The multi-level variant word recognition method is adopted, combining the speech recognition model and optical character recognition model, and the structure, pronunciation and semantic variant words are recognized through regular matching, statistical language model and large language model, and the time priority hierarchical filtering strategy is adopted. Achieve a balance between real-time and accuracy.
Effectively identify and detect variant words in the live broadcast room, ensure timely discovery of violations and prevent the spread of bad information and goods, and protect the interests of consumers.
Smart Images

Figure CN118967153A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of language data processing technology, and in particular to a live broadcast violation detection method, device, equipment and storage medium based on variant word recognition. Background Art
[0002] Due to its "high interactivity" and "entertainment", live streaming e-commerce has gradually become a shopping model that is popular among consumers. It plays an important role in expanding new consumer groups, creating new consumer scenarios, promoting consumption of new categories, developing new supply methods that adapt to consumption, and reducing transaction costs. It is of great significance to promoting the sustained recovery of consumption.
[0003] Due to the late start and rapid development of the live streaming e-commerce industry, the market regulatory authorities have relatively weak supervision over it, which has given rise to a series of live streaming chaos, such as false and exaggerated propaganda, price fraud, counterfeit and inferior goods, abuse of extreme vocabulary, inappropriate words and deeds of anchors, and sales of banned products. In the face of this phenomenon, major live streaming platforms have taken corresponding illegal behavior detection measures, which have effectively reduced the illegal behavior of live streaming e-commerce.
[0004] However, in order to circumvent the live broadcast platform's censorship of banned words, some live broadcast rooms have adopted a new language strategy: using variant words, that is, transforming some banned words into non-standard words that are auditorily or visually similar to the original words, thereby bypassing the automatic detection mechanism of most live broadcast platforms. Summary of the invention
[0005] The present invention provides a live broadcast violation detection method, device, equipment and storage medium based on variant word recognition, which solves the problem of insufficient real-time and accuracy of variant word recognition in live broadcast violation detection technology.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a method for detecting live broadcast violation behaviors based on variant word recognition is provided, comprising:
[0008] Based on the speech recognition model and optical character recognition model, the audio and visual text of the live broadcast room are obtained and converted into text data;
[0009] Extracting the text data and performing multi-level variant word recognition;
[0010] Based on the identified variant word, the original word of the variant word is obtained, and the original word is matched with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library;
[0011] If the original word exists in the sensitive word library, the video data of the set time before and after the variant word is retrieved and saved as violation evidence;
[0012] The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
[0013] In a first possible implementation manner of the first aspect, the variant word is used to circumvent automatic review, including:
[0014] Structural variants, which include variants that change the physical structure of the original word while maintaining its visual or auditory similarity;
[0015] Variant words, including variant words that replace characters with similar pronunciations or written forms;
[0016] Semantic variant words, including variant words with different structures but similar semantics or capable of referring to each other;
[0017] The variant word identification based on regular matching is used to identify the structural variant words;
[0018] The variant word recognition based on the statistical language model is used to recognize the variant words;
[0019] The variant word identification based on the large language model is used to identify the semantic variant words.
[0020] Based on the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the performing multi-level variant word recognition includes:
[0021] Based on text data, structural variant words are identified through preset regular expressions;
[0022] Analyze the language features of text data based on statistical language models, correct spelling errors and identify phonetic and morphological variants;
[0023] Based on the big model, the text data is semantically understood and contextually analyzed to identify semantic variant words.
[0024] Based on any possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, if the original word exists in the sensitive word library, the following steps are further performed:
[0025] The original word of the identified variant word is compared with the sensitive word library. If the original word exists in the sensitive word library, the variant word is stored in the variant word library.
[0026] Based on the first possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the multi-level variant word recognition is configured with a time priority hierarchical filtering strategy, namely:
[0027] In the real-time stream of live video content, the time priority of variant word recognition based on regular matching is greater than the time priority of variant word recognition based on a statistical language model, and the time priority of variant word recognition based on a statistical language model is greater than the time priority of variant word recognition based on a large language model.
[0028] Based on the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, after the multi-level variant word recognition is started, the variant word recognition based on regular matching performs feedback;
[0029] After each set first period of time, the variant word recognition based on the statistical language model recognizes and feeds back the data of the previous first period of time;
[0030] After each set second period of time, the variant word recognition based on the statistical language model recognizes and feeds back the data of the previous second period of time;
[0031] The duration of the first time period is shorter than the duration of the second time period.
[0032] In a second aspect, a live broadcast violation detection device based on variant word recognition is provided, comprising: a text data recognition and conversion module, which is used to obtain audio and visual text of the live broadcast room based on a speech recognition model and an optical character recognition model, and convert them into text data;
[0033] A multi-level variant word recognition module, used to extract the text data and perform multi-level variant word recognition;
[0034] A variant word and sensitive word matching module, used to obtain the original word of the variant word based on the identified variant word, and match the original word with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library;
[0035] The evidence-building module is used to retrieve the video data of a set time before and after the variant word if the original word exists in the sensitive word library, and save it as violation evidence;
[0036] The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
[0037] In a first possible implementation manner of the second aspect, the variant word is used to circumvent automatic review, including:
[0038] Structural variants, which include variants that change the physical structure of the original word while maintaining its visual or auditory similarity;
[0039] Variant words, including variant words that replace characters with similar pronunciations or written forms;
[0040] Semantic variant words, including variant words with different structures but similar semantics or capable of referring to each other;
[0041] The variant word identification based on regular matching is used to identify the structural variant words;
[0042] The variant word recognition based on the statistical language model is used to recognize the variant words;
[0043] The variant word identification based on the large language model is used to identify the semantic variant words.
[0044] According to a third aspect, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the live broadcast violation detection method based on variant word recognition as described in the first aspect are implemented.
[0045] In a fourth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the live broadcast violation detection method based on variant word recognition as described in the first aspect are implemented.
[0046] Beneficial effects:
[0047] This application adopts different identification and detection methods to deal with different types of variant words, and solves the problem of variant word detection in live broadcasts in a targeted manner; at the same time, based on the constructed multi-level variant word recognition system, variant word recognition methods with different degrees of sophistication are adopted at different time granularities, achieving a balance between real-time and accuracy; through efficient and accurate detection methods and systems, this application provides technical guarantees for regulating the market order of live broadcast sales and protecting the interests of consumers, and effectively preventing the spread of bad information and products. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A flowchart of a live broadcast violation detection method based on variant word recognition provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a process for performing multi-level variant word identification steps provided in an embodiment of the present application;
[0050] Figure 3A schematic diagram of another process for performing multi-level variant word identification steps provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of a Spark large model prompt provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the structure of a live broadcast violation detection device based on variant word recognition provided in an embodiment of the present application;
[0053] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose, the technical solutions in the embodiments of the present application are clearly described. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present application.
[0055] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0056] The description of the method flow in the specification of the present application and the steps of the flowchart in the drawings of the present specification do not have to be strictly executed according to the step numbers, and the method steps can be executed in a different order. Moreover, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0057] The following is a detailed description of the live broadcast violation detection method, device, equipment and storage medium based on variant word recognition provided in the embodiments of the present application in combination with the accompanying drawings and preferred embodiments.
[0058] First, the application scenarios of the live broadcast violation detection method, device, equipment and storage medium based on variant word recognition in the embodiments of the present application are described in detail.
[0059] In order to ensure that information can be smoothly transmitted to every viewer and avoid the filtering of certain sensitive or restrictive words by the platform's automatic review system, some anchors often convert some sensitive words into variant words. For example, Article 4 of the "Advertising Law of the People's Republic of China" stipulates that "advertisements shall not contain false or misleading content, and shall not deceive or mislead consumers." Therefore, overly absolute words such as "100%" will be considered as extreme sensitive words that should not appear in live sales on the platform. However, in order to fully express the superiority of the product and enhance the publicity effect, anchors may choose to use words with similar meanings but completely different structures from the original words, such as "99%+1", "One Zero Zero" and other variant words. This can not only avoid triggering platform review, but also arouse attention among consumers and stimulate their curiosity and desire to buy.
[0060] The platform's censorship system is supposed to protect the healthy development of live streaming and prevent the spread of bad information and goods. However, the use of variant words is actually evading this regulatory responsibility, which may lead to the proliferation of banned goods and false advertisements, disrupt market order, and harm consumer interests. In addition, this practice will not only erode the accuracy and seriousness of language, but also make the originally standard and clear business communication vague and casual.
[0061] In the context of live e-commerce, the recognition of variant words still has some shortcomings and defects in terms of real-time and accuracy.
[0062] One of the characteristics of live e-commerce is its strong real-time performance, which requires the system to respond quickly and process large amounts of data. However, the recognition of variant words usually requires complex natural language processing. In order to achieve high-precision variant word recognition, the system needs to run complex models, which has high requirements for computing resources and memory. In the live broadcast scenario, if each live broadcast room needs to run the processing model in real time, it will greatly increase the load on the server, affect the overall performance of the system, and may result in the inability to implement regulatory measures in a timely manner.
[0063] Variant words come in various forms, including homophones, near-phonetic words, misspellings, pinyin abbreviations, homophonic words, etc., and as online language continues to evolve, this diversity makes it extremely difficult to build a dictionary that comprehensively covers all variant words, thus affecting the accuracy of recognition. In addition, anchors may deliberately use vague and ambiguous words to circumvent censorship during live broadcasts, or use language features such as speech speed and intonation to cover up the true intention of variant words, which will also increase the difficulty of variant word recognition and reduce the accuracy of recognition.
[0064] Therefore, in response to the above-mentioned problems of live broadcast violation detection, especially the real-time and accuracy of variant word recognition, the embodiment of the present application provides a live broadcast violation detection method based on variant word recognition, which uses a multi-level variant word recognition method to detect variant words, including variant word recognition based on regular expressions, variant word recognition based on statistical language models, and variant word recognition based on large models. Three modules; adopt a time priority hierarchical filtering strategy, and adopt variant word recognition methods of different precision at different time nodes. In the specific implementation process, the live broadcast room audio is converted into text data and visual text is converted into text data through the pre-trained speech recognition model (Automatic Speech Re cognition, ASR) and optical character recognition model (Optical Character Recognition, OCR), and the extracted text is handed over to the three variant word recognition modules for parallel processing. When a variant word is detected, the original word of the variant word will be matched with the pre-constructed sensitive word library. If the original word exists in the sensitive word library, the system will save the video clips and variant words within three minutes before and after for solid evidence.
[0065] See also Figure 1 , the embodiment of the present application provides a method for automatically generating preference data for secure alignment of a large language model, such as Figure 1 As shown, the method for automatically generating preference data in an embodiment of the present application includes:
[0066] Step S1, based on the speech recognition model and the optical character recognition model, obtain the audio and visual text of the live broadcast room and convert them into text data.
[0067] The pre-trained Automatic Speech Recognition (ASR) and Optical Character Recognition (OCR) models are used to convert the live broadcast audio into text data and the visual text into text data. The converted text is cleaned to remove noise, punctuation marks, special characters, etc. to improve the accuracy of subsequent processing.
[0068] Step S2, extracting the text data and performing multi-level variant word recognition.
[0069] The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
[0070] This application has conducted a large amount of statistical analysis on the variant words commonly used by live-streaming anchors on different platforms. Based on the statistical analysis results of the variant words commonly used by live-streaming anchors on different platforms, the variant words are divided into structural variant words, phonetic variant words, and semantic variant words.
[0071] Structural variant words include variant words that change the physical structure of the original word while maintaining its visual or auditory similarity; they mainly circumvent censorship by changing the internal structure of the word, such as changing the original word by inserting, deleting, or replacing characters. They are visually or auditorily similar to the original word, but the structure has changed. This strategy maintains the visual or auditory similarity to the original word, so that people can understand its true intention, while circumventing the automatic recognition of the machine. For example, in the live broadcast of non-pharmaceuticals or medical devices, since Article 17 of the new "Advertising Law" stipulates: "Except for medical, pharmaceutical, and medical device advertisements, any other advertisements involving disease treatment functions are prohibited, and medical terms or terms that are likely to confuse the promoted products with drugs and medical devices shall not be used", the anchor will replace the banned word "clinical" with "Clinical Bed" and "enhance immunity" with "increase and strengthen resistance", thereby evading the platform's review. The following table lists some of the more frequently occurring structural variant words and the corresponding original words:
[0072] Original word Variants Hospital A certain hospital clinical Lin Mou Bed prevention Prevention Improves digestion Promote digestion
[0073] Words with phonetic and morphological variants include words that replace words with similar pronunciations or similar written forms; words that rely on Chinese homophones or similar-looking characters to avoid being recognized by automatic review systems by replacing them with words with similar pronunciations or similar forms. They are similar to the original words in pronunciation or written form, but the confusion is achieved through replacement. This type of variant word mainly exists in the background, title and other information of the live broadcast room. For example, in the live broadcast room of health products, when the anchor promotes the "anti-sugar" function of the product, he may use the similar-sounding "K sugar" as a variant in the background of the live broadcast room to circumvent review.
[0074] Semantic variant words include variant words with different structures but similar semantics or that can refer to other words. By changing the semantic context of a word or replacing the original word with a word with the same or similar meaning, the purpose is to evade detection while maintaining information transmission. This variant word may be completely different from the original word in structure, but can achieve the same expression purpose through semantic association. For example, some anchors will replace the banned word "doctor" with "white coat" and "pill" with "white tablets" to prevent the live broadcast room from being banned by the detection system. Specific examples of semantic variant words are shown in the following table:
[0075] Original word Variants doctor White coat pill White flakes Age spots Old age Blood vessel Red pipe
[0076] See also Figure 2-3 The multi-level variant word recognition described in this application, that is, for the above three categories of variant words, the extracted text is processed in parallel by three targeted variant word recognition modules, specifically, including:
[0077] Step S201: Based on the text data, identify structural variant words through a preset regular expression.
[0078] Exemplarily, through the data statistics of structural variant words on each live streaming platform, the vast majority of streamers adopt the form of inserting characters and follow specific rules. Here, for the four most frequent variant ways, regular expressions are set manually to extract variant words from the original text. The following respectively design targeted regular expressions for the four structural variants with the inserted words being "mou", "shenme", "xiao", and "he":
[0079] r‘([\u4e00-\u9fa5]+)mou([\u4e00-\u9fa5]+)’ is in the form of ‘*mou*’.
[0080] r‘([\u4e00-\u9fa5]+)shenme([\u4e00-\u9fa5]+)’ is in the form of ‘*shenme*’.
[0081] r‘([\u4e00-\u9fa5]+)xiao([\u4e00-\u9fa5]+)’ is in the form of ‘*xiao*’.
[0082] r‘([\u4e00-\u9fa5]+)he([\u4e00-\u9fa5]+)’ is in the form of ‘*he*’.
[0083] When the text detected by the OCR and ASR modules contains text with these four inserted words, the characters before and after the inserted words are combined and matched with the designed sensitive word library. If the combined word exists in the sensitive word library, the detected word is stored as a variant word of the sensitive word in the variant word library.
[0084] The following is an example of variant word recognition based on regular expressions in this application:
[0085] "The original input is: This product is the most shenme popular;
[0086] Sensitive word detected: the most popular;
[0087] Variant word saved: the most shenme popular;
[0088] The original input is: This has a therapeutic effect on our cardio-cerebral vascular diseases;
[0089] Sensitive word detected: cardio-cerebral vessel;
[0090] Variant word saved: cardio-cerebral small vessel;
[0091] The original input is: The effect of this has been verified in the linmou clinic;
[0092] Sensitive word detected: clinical;
[0093] Variant word saved: "clinical".
[0094] Based on this, the variant word recognition method based on regular expressions can quickly and accurately detect the structural variant words in the text according to the pre-set regular expressions.
[0095] Step S202: Analyze the language features of the text data based on the statistical language model, correct spelling mistakes and identify phonetic variant words.
[0096] Considering the recognition requirements of phonetic variant words, this application uses the Chinese N-gram language model trained by the KenLM statistical language model tool to implement the recognition. The Chinese NGram language model trained based on KenLM combines the rule method and the confusion set, which can not only correct Chinese spelling mistakes, but also identify homophones and near-homophone variants, effectively coping with the phonetic and morphological changes of variant words.
[0097] The statistical language model is good at realizing the recognition of variant words based on homophones and near-homophones. After combining with the variant word model based on regular expressions, it can handle more situations. The following are several examples of variant word recognition based on the statistical language model:
[0098] "{'source': 'The clinical effect of this drug is very good', 'target': 'The clinical effect of this drug is very good', 'errors': [('clinical', 'clinical', 5), ('effect', 'effect', 7)]}
[0099] {'source': 'All the doctors in our hospital are recommending it', 'target': 'All the doctors in our hospital are recommending it', 'errors': [('doctor', 'doctor', 6)]}
[0100] {'source': 'We can treat various diseases such as Xinnao and Xueguan', 'target': 'We can treat various diseases such as cardiovascular and cerebrovascular', 'errors': [('Xinnao', 'cardiovascular and cerebrovascular', 3), ('Xueguan', 'blood vessels', 5)]}".
[0101] It can be seen from the third example that the statistical language model can replace the phonetic variant word "Xinnao" in the text with the prohibited word "cardiovascular and cerebrovascular". It can be seen from the first two examples that in addition to detecting variant words, the statistical language model can also detect spelling mistakes in OCR and ASR texts. Therefore, combining the statistical language model with the variant word recognition of regular expressions can detect more variant words hidden in the text.
[0102] Step S203: perform semantic understanding and context analysis on the text data based on the large model to identify semantic variant words.
[0103] Although the first two methods can solve most variant words, it is difficult to detect and identify emerging semantic variant words. Moreover, as time goes by, more and more semantic variant words will appear, so it is necessary to use a large language model that can understand the deep semantics and continuously learn and update over time.
[0104] Large language models are particularly good at understanding the deeper meaning and context of language, and are able to take into account the contextual information around words. This means that even if the variant word is structurally very different from the original word, as long as they are semantically related, the large model will be able to recognize this connection. This is critical for identifying and understanding semantic variant words, which often avoid detection by replacing words with the same or similar meaning. And for application scenarios that need to deal with semantic variant words in multiple languages or dialects, large language models often have cross-lingual understanding capabilities, which allows them to work effectively in a wider range of cultural and geographical contexts. Most importantly, even if new semantic variant words continue to appear, large language models that are continuously learning and updating can adapt to such changes because they can learn new language patterns and vocabulary usage from large amounts of text.
[0105] Spark Big Model can understand complex language structures and deep semantic information, and can handle most situations where intentions are cleverly hidden in semantic variant words. More importantly, compared with other big models, Spark Big Model has a huge advantage in the accumulation of Chinese corpus, and can detect Chinese semantic variant words more accurately and efficiently. This application uses Spark Big Model as an important component of the variant word recognition module based on the big model.
[0106] By calling the Spark Big Model API interface and designing a reasonable prompt method, we can achieve semantic understanding of text data and identify words with deep semantic associations. For example, the prompt design can be found in Figure 4 .
[0107] The following is an example of how the Spark model processes semantic variant words:
[0108] "Me: It's very high, and I even have to go to the white coat to eat white pills, then you have to eat link number six.
[0109] spark:
[0110] The variant words in this passage are paired with their corresponding variant words as follows:
[0111] Variant word: Zidagua, original word: doctor
[0112] Variant word: "taking white tablets", original word: "taking medicine".
[0113] It can be seen that the Spark large model can detect semantic-level variant words such as "white coat" and "white tablets" and give the correct original words according to the semantics. Thanks to the powerful semantic understanding ability of the Spark large model and the accumulation of a large amount of Chinese language corpus, the Spark large model has proved its effectiveness in dealing with semantic variant words.
[0114] It should be noted that this application has proved the feasibility of variant word recognition from three modules: variant word recognition based on regular expressions, variant word recognition based on statistical language models, and variant word recognition based on large models. Among them, variant word recognition based on regular expressions consumes the least computing power, but requires manual setting of the rule library and has a high dependence on experience; variant word recognition based on statistical language models is executed locally and is good at recognizing variant words of homophonic and near-homophonic types; variant word recognition based on large models is achieved by calling a remote API interface and can achieve semantic-level understanding.
[0115] In order to coordinate the three recognition methods and form an overall variant word recognition process. When constructing a multi-level variant word recognition system, this application comprehensively uses the above three different technical strategies and adopts a time priority hierarchical filtering strategy, that is: the time priority of variant word recognition based on regular expressions > the time priority of variant word recognition based on statistical language models > the time priority of variant word recognition based on large models.
[0116] After the multi-level variant word recognition is started, the variant word recognition based on regular matching gives feedback; after each set first period, the variant word recognition based on the statistical language model recognizes and gives feedback on the data of the previous first period; after each set second period, the variant word recognition based on the statistical language model recognizes and gives feedback on the data of the previous second period; among them, the duration of the first period is less than the duration of the second period.
[0117] Specifically, in the real-time stream of live video content, the variant word recognition based on regular expressions quickly recognizes and filters out those obvious structural variant words according to the preset regular expressions; moreover, it can continuously update the variant word library and improve the update frequency to a certain extent; the low latency and high efficiency of the variant word recognition based on regular expressions make it an ideal choice for preliminary filtering and provide the first-level real-time variant word recognition for multi-level variant word recognition.
[0118] As live content accumulates, after a set period of time, the statistical language model identifies variant words, including homophones and near-phonetic variants. For example, the system will start the variant word recognition process based on the statistical language model after 1 minute, specifically for in-depth analysis of variants of homophones and near-phonetic variants. The statistical language model accurately identifies variant words that have changed in sound and shape through pre-trained language models and confusion matrices, making up for the lack of accuracy of regular expression-based recognition methods that are limited by the comprehensiveness and update frequency of the rule base; it provides multi-level variant word recognition with variant word recognition that takes into account accuracy at the intermediate delay level.
[0119] Furthermore, after a set period of time, the recognition based on the large model processes deep semantic variant words. For example, after 5 minutes of cumulative analysis, the system will start variant word recognition based on the large model, which is the most delicate link in the entire recognition process. By calling the large model through the remote API interface, the system can understand the deep semantics of the text and identify those complex variant words whose structure and pronunciation have been cleverly changed. This process provides strong support for identifying semantic variant words, especially for sensitive words that are neither structural variants nor pronunciation variants, providing the highest accuracy variant word recognition at the long-term cumulative level for multi-level variant word recognition.
[0120] The time priority hierarchical filtering strategy of multi-level identification in the present application ensures that variant word identification methods of different degrees of precision are adopted at different time nodes. Each method plays a unique role in the variant word identification process, aiming to take into account both real-time and accuracy. Such a design not only takes into account the need for real-time response, but also ensures in-depth analysis of long-term accumulated text, achieving a balance between efficiency and accuracy, and providing a content review solution that is both efficient and reliable for live streaming platforms.
[0121] In some possible implementations, after performing multi-level variant word identification, the following step S204 is further included:
[0122] The original word of the identified variant word is compared with the sensitive word library. If the original word exists in the sensitive word library, the variant word is stored in the variant word library.
[0123] Step S3, based on the identified variant word, the original word of the variant word is obtained, and the original word is matched with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library.
[0124] When a variant word is detected, the original word of the variant word will be matched with the pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library;
[0125] Step S4: If the original word exists in the sensitive word library, the video data of a set length before and after the variant word is retrieved and saved as violation evidence.
[0126] For example, when the system detects a violation, it will save the video clips and variant words within three minutes before and after the variant word as evidence. The relevant data of the automatically detected violation can be manually reviewed to ensure the accuracy of the detection. Based on the review results, the illegal content can be handled accordingly (such as warnings, bans, etc.), and feedback can be provided to relevant parties (such as anchors, platform administrators).
[0127] To summarize, the present application adopts different identification and detection methods to deal with different types of variant words, and solves the problem of variant word detection in live broadcasts in a targeted manner; at the same time, based on the constructed multi-level variant word recognition system, variant word recognition methods of different degrees of sophistication are adopted at different time granularities, thereby achieving a balance between real-time and accuracy; through an efficient and accurate detection system, the present application provides technical guarantees for regulating the market order of live broadcast sales and protecting the interests of consumers, and effectively preventing the spread of bad information and products.
[0128] See also Figure 5 Corresponding to the above-mentioned embodiment of the live broadcast violation detection method based on variant word recognition, the embodiment of the present application provides a live broadcast violation detection device based on variant word recognition, and the live broadcast violation detection device includes:
[0129] The text data recognition and conversion module 1001 is used to obtain the audio and visual text of the live broadcast room based on the speech recognition model and the optical character recognition model, and convert them into text data;
[0130] A multi-level variant word identification module 1002 is used to extract the text data and perform multi-level variant word identification;
[0131] The variant word and sensitive word matching module 1003 is used to obtain the original word of the variant word based on the identified variant word, and match the original word with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library;
[0132] The evidence-building module 1004 is used to retrieve the video data of a set time before and after the variant word if the original word exists in the sensitive word library, and save it as violation evidence;
[0133] The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
[0134] Furthermore, the variant words are used to circumvent automatic review, including:
[0135] Structural variants, which include variants that change the physical structure of the original word while maintaining its visual or auditory similarity;
[0136] Variant words, including variant words that replace characters with similar pronunciations or written forms;
[0137] Semantic variant words, including variant words with different structures but similar semantics or capable of referring to each other;
[0138] The variant word identification based on regular matching is used to identify the structural variant words;
[0139] The variant word recognition based on the statistical language model is used to recognize the variant words;
[0140] The variant word identification based on the large language model is used to identify the semantic variant words.
[0141] The above-mentioned live broadcast violation detection device based on variant word recognition implements the steps and various processes of the above-mentioned live broadcast violation detection method based on variant word recognition, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0142] See also Figure 6 Corresponding to the above-mentioned embodiment of the live broadcast violation detection method based on variant word recognition, the embodiment of the present application provides an electronic device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps and various processes of the above-mentioned embodiment of the live broadcast violation detection method based on variant word recognition are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0143] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0144] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0145] Corresponding to the above-mentioned embodiment of the live broadcast violation detection method based on variant word recognition, the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by the processor, the steps and various processes of the above-mentioned embodiment of the live broadcast violation detection method based on variant word recognition are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0146] The processor is the processor in the electronic device described in the above embodiment of the present application. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0147] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0149] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A live broadcast violation detection method based on variant word recognition, characterized in that: include: Based on the speech recognition model and optical character recognition model, the audio and visual text of the live broadcast room are obtained and converted into text data; Extracting the text data and performing multi-level variant word recognition; Based on the identified variant word, the original word of the variant word is obtained, and the original word is matched with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library; If the original word exists in the sensitive word library, the video data of the set time before and after the variant word is retrieved and saved as violation evidence; The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
2. The method for detecting live broadcast violations based on variant word recognition according to claim 1 is characterized in that: The variant words described are used to circumvent automated censorship and include: Structural variants, which include variants that change the physical structure of the original word while maintaining its visual or auditory similarity; Variant words, including variant words that replace characters with similar pronunciations or written forms; Semantic variant words, including variant words with different structures but similar semantics or capable of referring to each other; The variant word identification based on regular matching is used to identify the structural variant words; The variant word recognition based on the statistical language model is used to recognize the variant words; The variant word identification based on the large language model is used to identify the semantic variant words.
3. The method for detecting live broadcast violations based on variant word recognition according to claim 2 is characterized in that: The multi-level variant word identification includes: Based on text data, structural variant words are identified through preset regular expressions; Analyze the language features of text data based on statistical language models, correct spelling errors and identify phonetic and morphological variants; Based on the big model, the text data is semantically understood and contextually analyzed to identify semantic variant words.
4. The live broadcast violation detection method based on variant word recognition according to any one of claims 1 to 3 is characterized in that: If the original word exists in the sensitive word library, the following steps are further performed: The original word of the identified variant word is compared with the sensitive word library. If the original word exists in the sensitive word library, the variant word is stored in the variant word library.
5. The method for detecting live broadcast violations based on variant word recognition according to claim 2 is characterized in that: Multi-level variant word recognition is configured with a time priority hierarchical filtering strategy, namely: In the real-time stream of live video content, the time priority of variant word recognition based on regular matching is greater than the time priority of variant word recognition based on a statistical language model, and the time priority of variant word recognition based on a statistical language model is greater than the time priority of variant word recognition based on a large language model.
6. The method for detecting live broadcast violations based on variant word recognition according to claim 5 is characterized in that: After the multi-level variant word recognition is started, the variant word recognition based on regular matching is fed back; After each set first period of time, the variant word recognition based on the statistical language model recognizes and feeds back the data of the previous first period of time; After each set second period of time, the variant word recognition based on the statistical language model recognizes and feeds back the data of the previous second period of time; The duration of the first time period is shorter than the duration of the second time period.
7. A live broadcast violation detection device based on variant word recognition, characterized in that: include: The text data recognition and conversion module is used to obtain the audio and visual text of the live broadcast room based on the speech recognition model and the optical character recognition model, and convert them into text data; A multi-level variant word recognition module, used to extract the text data and perform multi-level variant word recognition; A variant word and sensitive word matching module, used to obtain the original word of the variant word based on the identified variant word, and match the original word with a pre-constructed sensitive word library to determine whether the original word exists in the sensitive word library; The evidence-building module is used to retrieve the video data of a set time before and after the variant word if the original word exists in the sensitive word library, and save it as violation evidence; The multi-level variant word recognition includes: variant word recognition based on regular matching, variant word recognition based on statistical language model and variant word recognition based on large language model.
8. The live broadcast violation detection device based on variant word recognition according to claim 7 is characterized in that: The variant words described are used to circumvent automated censorship and include: Structural variants, which include variants that change the physical structure of the original word while maintaining its visual or auditory similarity; Variant words, including variant words that replace characters with similar pronunciations or written forms; Semantic variant words, including variant words with different structures but similar semantics or capable of referring to each other; The variant word identification based on regular matching is used to identify the structural variant words; The variant word recognition based on the statistical language model is used to recognize the variant words; The variant word identification based on the large language model is used to identify the semantic variant words.
9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the live broadcast violation detection method based on variant word recognition as described in any one of claims 1 to 6.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the live broadcast violation detection method based on variant word recognition as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method for discovering sensitive data in text big data
CN108280130A
Multi-level natural language anti-junk text method and system
CN109977416A
Sensitive text detection method and system, electronic equipment and medium
CN111339768A
Corpus generation method and device
CN113486656A
Sensitive word auditing method based on large language model, storage medium and electronic equipment
CN116720515A
Cited By
Live broadcast scene variant word restoration method and device, equipment, medium and product
CN119962533A
Internet live broadcast illegal behavior monitoring method and system based on image and voice recognition
CN120302088A
Data analysis method and device
CN120410573A
Quick capturing method and device for video live broadcast violation and medium
CN120956942A
