Intelligent content analysis method and device based on large language model and medium

The intelligent content analysis method based on large language models solves the problem of low detection efficiency of illegal and inappropriate content in the existing technology, achieves efficient capture and analysis of subtle meanings and emotional colors in network information, and improves detection accuracy and automation capabilities. .

CN118586388APending Publication Date: 2024-09-03SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410810627.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing content analysis technology is difficult to efficiently detect illegal and harmful content in network information. In particular, the subtle meaning and emotional color behind the language are difficult to capture, resulting in low detection efficiency.

Method used

It uses an intelligent content analysis method based on a large language model to collect network hot events in real time, correlate and analyze user input content and event comment content, and use the pre-trained large language analysis model to extract content that does not meet the preset rules and neutral emotional content. And monitor emotional trends and generate content analysis reports.

Benefits of technology

It improves the detection efficiency of illegal and harmful content, reduces the problem of false positives and false positives, can track hot public opinion trends in real time, and enhances the accuracy and automation capabilities of content analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586388A
    Figure CN118586388A
Patent Text Reader

Abstract

The invention relates to the technical field of data analysis, and provides an intelligent content analysis method and device based on a large language model.The method comprises the steps that network hotspot events are collected in real time, and user input content under the network hotspot events is extracted from each information interaction platform; performing association analysis on the user input content and event comment content in the network hotspot event; when the incidence relation does not exist between the user input content and the event comment content, extracting content which does not conform to a preset rule in the user input content by utilizing a pre-trained large language analysis model; when the user input content and the event comment content have an association relationship, extracting neutral emotion content in the user input content, and monitoring an emotion trend trend of the comment content input by the user and corresponding to the neutral emotion content; and generating a content analysis report corresponding to the content input by the user according to the content which does not accord with the preset rule and the emotion change trend. According to the invention, the detection efficiency of illegal and bad contents can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data analysis technology, and in particular to an intelligent content analysis method, device and medium based on a large language model. Background Art

[0002] Internet information content service platforms should establish an Internet information content ecological governance mechanism and formulate detailed rules for the governance of Internet information content service platforms. In order to improve the efficiency of detecting harmful information in Internet information content, it is necessary to create an AI detection model based on human intelligence to meet more complex content understanding.

[0003] Existing content analysis technology is based on natural language recognition technology to detect some obviously illegal and bad information, which can be directly filtered out. However, the "creativity" of human beings in using language to harm others is very large. Many languages ​​that appear neutral to machines may also deviate from the language direction, and the actual, subtle meanings and emotional colors behind the language are difficult to capture. Manual review intervention is still required, resulting in low efficiency in detecting illegal and bad content. Summary of the invention

[0004] The present invention provides an intelligent content analysis method, device and medium based on a large language model, the main purpose of which is to solve the problem of low efficiency in detecting illegal and bad content.

[0005] To achieve the above object, the present invention provides an intelligent content analysis method based on a large language model, comprising:

[0006] Collect network hot events in real time, extract user input content under the network hot events in each information interaction platform, and perform correlation analysis between the user input content and the event comment content in the network hot events;

[0007] When there is no correlation between the user input content and the event comment content, using a pre-trained large language analysis model to extract content in the user input content that does not conform to preset rules;

[0008] When there is an association relationship between the user input content and the event comment content, extracting the neutral emotional content in the user input content, and monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content;

[0009] A content analysis report corresponding to the user input content is generated according to the content that does not conform to the preset rules and the sentiment trend.

[0010] Optionally, the correlating analysis of the user input content with the event comment content in the network hot event includes:

[0011] Performing word segmentation processing on the user input content and the event comment content in the network hot event;

[0012] The user input content after word segmentation is converted into the first word vector, and the event comment content after word segmentation is converted into the second word vector;

[0013] Calculate the similarity between the first word vector and the second word vector;

[0014] It is determined whether there is a correlation between the user input content and the event comment content in the network hot event based on the similarity.

[0015] Optionally, the extracting the content that does not conform to a preset rule from the user input content by using a pre-trained large language analysis model includes:

[0016] Analyze the user input content using a pre-trained large language analysis model, and output sentiment category data corresponding to the user input content;

[0017] When there is negative emotion data in the emotion category data, extracting the occurrence position and information type of the content that does not conform to the preset rules in the negative emotion data according to the probability distribution of the negative emotion data;

[0018] Counting the number of occurrences of the content that does not conform to the preset rule according to the occurrence position;

[0019] Collecting the occurrence positions, the occurrence times and the information types into a content statistics report corresponding to the content that does not conform to the preset rules;

[0020] Determine the content in the user input that does not conform to the preset rules according to the content statistics report.

[0021] Optionally, extracting neutral emotional content from the user input content includes:

[0022] Analyzing the content context relationship of the user input content using a pre-trained large language analysis model to obtain contextual semantic information;

[0023] Outputting neutral sentiment category data in the user input content according to the contextual semantic information;

[0024] Detecting whether there are neutral emotion words in the neutral emotion category data according to preset emotion color category data;

[0025] When the neutral emotion words exist, the content corresponding to the neutral emotion words in the neutral emotion category data is extracted as the neutral emotion content.

[0026] Optionally, monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content includes:

[0027] The comment content input by the user corresponding to the neutral emotional content is updated in real time, and the comment content input by the user corresponding to the neutral emotional content after real-time update is analyzed by using a pre-trained large language analysis model to obtain the emotional probability distribution corresponding to the comment content input by the user corresponding to the neutral emotional content;

[0028] Select the emotional color corresponding to the highest probability in the emotional probability distribution as the target emotional color;

[0029] When the target emotional color is a positive emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a positive emotional trend;

[0030] When the target emotional color is a negative emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a negative emotional trend;

[0031] When the target emotional color is a neutral emotional color, the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content is determined as a neutral emotional stable trend.

[0032] Optionally, generating a content analysis report corresponding to the user input content according to the content that does not conform to the preset rule and the sentiment trend includes:

[0033] When the emotional trend is a positive emotional trend, the positive emotional content corresponding to the positive emotional trend is stored in a database of the network information content service platform;

[0034] generating a normal content analysis record based on the positive emotional content in the database;

[0035] When the sentiment trend is a non-positive sentiment trend, generating a bad content analysis record corresponding to the content that does not conform to the preset rules;

[0036] The normal content analysis records and the bad content analysis records are collected to form a content analysis report corresponding to the user input content.

[0037] Optionally, before using the pre-trained large language analysis model to extract the content that does not conform to the preset rules from the user input content, the method further includes:

[0038] Use the preset neural network to perform sentiment category analysis on the preset sentiment category samples to obtain the sentiment output label;

[0039] Calculating the loss value between the emotion output label and the preset true emotion label;

[0040] Calculating the weight gradient of the loss value to the neuron nodes in the neural network;

[0041] The weights of the neuron nodes are updated according to the weight gradient until the loss value is less than a preset loss threshold, and the neural network is output as a large language analysis model.

[0042] Optionally, generating the bad content analysis record corresponding to the content that does not comply with the preset rule includes:

[0043] Extracting the inappropriate content type of the content that does not conform to the preset rules;

[0044] Generating a processing method for the content that does not conform to the preset rules according to the type of the inappropriate content;

[0045] Generating a correspondence between the type of inappropriate content and the processing method;

[0046] An analysis record of inappropriate content is generated according to the corresponding relationship and the sentiment category corresponding to the content that does not conform to the preset rule.

[0047] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0048] at least one processor; and,

[0049] a memory communicatively connected to the at least one processor; wherein,

[0050] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned intelligent content analysis method based on the large language model.

[0051] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned intelligent content analysis method based on a large language model.

[0052] The embodiment of the present invention can solve the problem of underreporting and false alarm in the field of traditional content recognition by classifying and grading bad network information, modeling, guiding the big language model to refine network information content, and analyzing the emotional color of network information content; training the big language model to obtain a trained big language analysis model, and then using the pre-trained big language analysis model to analyze the problem of over-long content in content analysis; and real-time hot news events provide the big language analysis model with an over-long context, so that the big language analysis model has the ability to track the direction of real-time hot public opinion. Therefore, the intelligent content analysis method, device and medium based on the big language model proposed in the present invention can solve the problem of low efficiency in detecting illegal and bad content. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a flow chart of an intelligent content analysis method based on a large language model provided by an embodiment of the present invention;

[0054] Figure 2 A schematic diagram of a process for intelligent analysis of user input content provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of the structure of an electronic device for implementing the intelligent content analysis method based on a large language model provided by an embodiment of the present invention.

[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0058] The embodiment of the present application provides an intelligent content analysis method based on a large language model. The execution subject of the intelligent content analysis method based on the large language model includes but is not limited to at least one of the electronic devices that can be configured to execute the method provided by the embodiment of the present application, such as a server, a terminal, etc. In other words, the intelligent content analysis method based on a large language model can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0059] Reference Figure 1 FIG. 1 is a flow chart of an intelligent content analysis method based on a large language model provided by an embodiment of the present invention. In this embodiment, the intelligent content analysis method based on a large language model includes:

[0060] S1. Collect network hot events in real time, extract user input content under the network hot events in each information interaction platform, and perform correlation analysis between the user input content and the event comment content in the network hot events.

[0061] In an embodiment of the present invention, the network hot events refer to events or topics that have attracted widespread attention and discussion on the Internet. They can be spread on network platforms such as social media, news websites, and forums, triggering a large number of users to participate in discussions and comments, and becoming the focus of public opinion. They include but are not limited to social events, entertainment gossip, technological innovation, etc., and have a high speed of dissemination and influence.

[0062] In detail, the web crawler technology can be used to crawl the content published on the data source under the network hot events in real time, that is, first determine the target website or data source whose content needs to be crawled, such as news websites, social media platforms, forums, etc., and write a web crawler program according to the structure and content characteristics of the target website, and use the relevant libraries (such as requests, Scrapy, etc.) in the programming language (such as Python) to implement the content crawling function, use the crawler program to send a request to the target website, obtain the HTML data of the web page, parse the obtained web page content, and extract the text, pictures, videos and other data of interest.

[0063] Furthermore, by correlating and analyzing user input and event comments, we can discover potential hot topics or related events, help capture new topic trends in a timely manner, monitor public opinion trends, promptly detect and deal with negative public opinion, and effectively prevent potential crises.

[0064] In an embodiment of the present invention, a user as a content producer interactively inputs information in a network information content service application, which may be any auditable and auditable content such as articles, files, comments, signatures, conversation records, etc. When a user inputs content on a network platform, it is necessary to associate the user input content with real-time hot spots to enhance content analysis efficiency, and hot spot tracking can provide hot spot corpus sources to the large model in real time.

[0065] In the embodiment of the present invention, the step of performing correlation analysis on the user input content and the event comment content in the network hot event includes:

[0066] Performing word segmentation processing on the user input content and the event comment content in the network hot event;

[0067] The user input content after word segmentation is converted into the first word vector, and the event comment content after word segmentation is converted into the second word vector;

[0068] Calculate the similarity between the first word vector and the second word vector;

[0069] It is determined whether there is a correlation between the user input content and the event comment content in the network hot event based on the similarity.

[0070] In detail, word segmentation is performed on the user input content and event comment content to decompose the text into independent words. Chinese word segmentation tools such as jieba can be used to perform word segmentation on Chinese text, and then the user input content and event comment content after word segmentation are converted into word vector representation, and the first word vector and the second word vector can be generated through models such as Word2Vec or BERT; the similarity between the user's first word vector and the second word vector can be calculated through a similarity algorithm, where the similarity algorithm includes but is not limited to cosine similarity and Euclidean distance. The closer the result of the similarity calculation is to 1, the more similar the two are, and the closer it is to 0, the more dissimilar the two are. Then, based on the calculated similarity, correlation analysis is performed to identify the connection and correlation degree between the user input content and the event comment content. Content with high similarity can be considered to be related, so that public opinion monitoring can be performed on the user input content based on its correlation degree to timely grasp the direction of public opinion.

[0071] S2. When there is no correlation between the user input content and the event comment content, use a pre-trained large language analysis model to extract content in the user input content that does not comply with preset rules.

[0072] In one of the practical application scenarios of the present invention, the traditional content analysis technology is based on keywords and regular expressions for matching. Although these two methods are simple, they also lead to many false positives and missed negatives due to the inability to understand the contextual intent, which makes enterprises exhausted for a long time. Later, NLP (natural language recognition) detection technology was applied. Some obviously illegal and bad information, such as some language that is not recognized or accepted by some users, can be directly filtered, but the "creativity" of human beings using language to hurt people is very large. Many languages ​​that are neutral or hidden in the eyes of machines may also gradually deviate from the language direction. The current NLP model still has relatively large limitations. The actual, subtle meanings and emotional colors behind the language are difficult to capture, and still require manual review intervention. The emergence of large language models has brought more powerful automatic detection capabilities. Based on the general model, the network information service platform can train a large industry model with higher accuracy and stronger recognition ability. The large model corpus uses human professional knowledge to enhance the model effect and create an AI detection model with human intelligence, thereby supporting more complex content understanding and improving the detection efficiency of illegal and bad content. Therefore, the content information that does not conform to the preset rules in the user input content can be extracted through the large language model.

[0073] In an embodiment of the present invention, when there is no correlation between the user input content and the event comment content, it is only necessary to review the user input content for bad content and normal content, and review whether there is bad network information in the user input content, that is, to classify and grade the bad network information, and model it, guide the large language model to refine the network information content, and analyze the emotional color of the network information content, which can solve the problems of missed reports and false alarms in the traditional content recognition field, and thus it is necessary to send the user input content to the queue to be processed established by the network information content service platform, and then refine the network information content through the large language model, that is, the large model content analysis acts as a content consumer to extract the content to be analyzed from the content queue.

[0074] Furthermore, before using the large language model to analyze user input content, it is necessary to adjust the parameters of the large language model to obtain the large language analysis model. The large language analysis model can then refine network information content and analyze the emotional color of network information content, solving the problems of underreporting and false positives in the field of traditional content recognition. The large language analysis model is based on the Transformer neural network architecture, which solves the problem that traditional NLP cannot audit very long content in content analysis.

[0075] In the embodiment of the present invention, before using the pre-trained large language analysis model to extract the content that does not conform to the preset rules in the user input content, the method further includes:

[0076] Use the preset neural network to perform sentiment category analysis on the preset sentiment category samples to obtain the sentiment output label;

[0077] Calculating the loss value between the emotion output label and the preset true emotion label;

[0078] Calculating the weight gradient of the loss value to the neuron nodes in the neural network;

[0079] The weights of the neuron nodes are updated according to the weight gradient until the loss value is less than a preset loss threshold, and the neural network is output as a large language analysis model.

[0080] In detail, the preset neural network is used to train the emotion category samples to obtain the emotion output labels, such as positive, negative or neutral emotion labels, that is, the emotion category sample data is input, and the output result of the model is obtained by forward propagation calculation. Forward propagation refers to the process of signal propagation from the input layer through the hidden layer to the output layer, and the prediction result of the model, that is, the probability value corresponding to the emotion output label, is obtained. Then, the true emotion label output by the model is compared with the true emotion label, and the loss function is calculated. That is, the loss function measures the difference between the model prediction result and the true label, which is the goal of model optimization, and then the parameters of the model are adjusted according to the loss value to obtain the best optimization parameters.

[0081] Specifically, the gradient of the loss function to the model parameters (weights and biases) is calculated through the back-propagation algorithm. The back-propagation algorithm updates the weights of the neuron nodes, which can enable the neural network model to gradually learn the features and patterns in the training data and improve the performance of the model on the task. Back-propagation refers to the back-propagation of the error signal from the output layer to the input layer according to the gradient information of the loss function, and updating the gradient of each parameter; using the optimization algorithm (such as stochastic gradient descent SGD, Adam, etc.) to update the weights of the neuron nodes according to the gradient information of the parameters, the optimization algorithm will adjust the value of the parameters according to the direction and size of the gradient, so that the loss function gradually decreases; and iterate the model for multiple times until the loss function converges or reaches a certain stopping condition. Each iteration will update the weights of the neuron nodes, gradually optimize the performance of the model, and output the trained neural network as a large language analysis model.

[0082] Furthermore, the large language analysis model can quickly and accurately identify and extract the bad content input by users, help the platform automatically conduct content review, reduce the possibility of the spread of bad content, and solve the problems of underreporting and false alarms in the traditional content recognition field and the inability to audit extremely long content in content analysis.

[0083] In an embodiment of the present invention, the content that does not comply with the preset rules refers to content that is harmful, inappropriate, or violates regulations. The large language analysis model can output the content that does not comply with the preset rules in the user input content and the type of illegal and bad information corresponding to the content that does not comply with the preset rules, the number of times the illegal and bad information appears, and the content location where the illegal and bad information appears.

[0084] In the embodiment of the present invention, the extracting the content that does not conform to the preset rules from the user input content by using the pre-trained large language analysis model includes:

[0085] Analyze the user input content using a pre-trained large language analysis model, and output sentiment category data corresponding to the user input content;

[0086] When there is negative emotion data in the emotion category data, extracting the occurrence position and information type of the content that does not conform to the preset rules in the negative emotion data according to the probability distribution of the negative emotion data;

[0087] Counting the number of occurrences of the content that does not conform to the preset rule according to the occurrence position;

[0088] Collecting the occurrence positions, the occurrence times and the information types into a content statistics report corresponding to the content that does not conform to the preset rules;

[0089] Determine the content in the user input that does not conform to the preset rules according to the content statistics report.

[0090] In detail, a pre-trained large language analysis model is used to perform sentiment classification on the user input content to obtain sentiment category data for each text paragraph or sentence, such as positive, negative or neutral category data. That is, the word embedding algorithm is first used to convert each word in the user input content into a word vector. Then all encoders in the Transformer will receive a list of vectors containing multiple vectors of size 512. The embedding only occurs in the encoder at the bottom layer, and other encoders receive the output of the previous encoder. The size of this list can be customized by setting parameters, such as the length of the longest sentence in the training data set. After the embedding operation is completed on the input sequence, each word will flow through the two layers in the encoder, and then be passed up one by one by the encoder, and then decoded by the decoder, so as to obtain the sentiment category data corresponding to the user input content output by the model.

[0091] Specifically, when negative emotions exist in the emotion category data, based on the probability distribution of the negative emotion data, parts of the data that may contain content that does not comply with the preset rules, such as sentences or phrases involving illegal information, are extracted, and their appearance positions and illegal information types are determined. After determining the appearance positions of the content that does not comply with the preset rules, the number of appearances of these positions can be counted in order to understand the frequency of the content that does not comply with the preset rules, and the appearance positions, number of appearances and specific information types of the content that does not comply with the preset rules are summarized to form a detailed statistical report on the content that does not comply with the preset rules. Based on the detailed information in the content report that does not comply with the preset rules, it is determined which content does not comply with the preset rules, that is, it contains harmful, inappropriate or illegal content, where the content information types that do not comply with the preset rules include unauthorized advertisements and spam, etc.

[0092] Furthermore, the content is analyzed according to the settings of the large language analysis model, and the analysis result information includes: whether there is content that does not comply with the preset rules, the type of content that does not comply with the preset rules, the number of occurrences of content that does not comply with the preset rules, and the content location where the content that does not comply with the preset rules appears. At the same time, the large language model analyzes the emotional color of the content in combination with the content context, identifies content with different language emotional colors, emotional values, etc. and displays them in the analysis results. Therefore, for user input content that is identified by the large language analysis model as having emotional colors and user input content related to online hot events, it is necessary to add public opinion tracking to monitor the trend of hot spots in real time, so that the large language analysis model has the ability to track the real-time hot public opinion direction.

[0093] S3. When there is a correlation between the user input content and the event comment content, extract the neutral emotional content in the user input content, and monitor the emotional trend of the comment content input by the user corresponding to the neutral emotional content.

[0094] In an embodiment of the present invention, when the user input content is associated with the event comment content, it is necessary to have the ability to track the real-time hot public opinion trends. That is, for neutral emotional content, if it involves current hot topics, abnormal emotions and other information, it is necessary to add public opinion tracking to monitor the hot spot trends in real time.

[0095] In the embodiment of the present invention, the step of extracting the neutral emotional content from the user input content includes:

[0096] Analyzing the content context relationship of the user input content using a pre-trained large language analysis model to obtain contextual semantic information;

[0097] Outputting neutral sentiment category data in the user input content according to the contextual semantic information;

[0098] Detecting whether there are neutral emotion words in the neutral emotion category data according to preset emotion color category data;

[0099] When the neutral emotion words exist, the content corresponding to the neutral emotion words in the neutral emotion category data is extracted as the neutral emotion content.

[0100] In detail, the real-time hot spots provide a super-long context for the big language analysis model, so that the big language analysis model has the ability to track the direction of public opinion on real-time hot spots, that is, the big language analysis model can analyze the emotional color of the content according to the big language analysis model combined with the context of the user input content, and identify the content and emotional values ​​of different language emotional colors. That is, first use the pre-trained big language analysis model to combine the semantic relationship and contextual information in the context of the user input content, and focus on the influence of the context on the emotional color. The big language analysis model can analyze the emotional conversion in the context, so as to infer the emotional color corresponding to the contextual semantic information corresponding to the user input content, and then output the neutral emotional category data in the user input content based on the contextual semantic information. The neutral emotional category data includes the data corresponding to the content and emotional values ​​of different language emotional colors.

[0101] Specifically, based on the results of classification prediction, further emotional color recognition is performed, that is, the data in the neutral emotional content is reclassified to classify the content with different language emotional colors and user input content corresponding to the emotional values. For example, judgment can be made based on the accusatory words in the text; judgment can be made based on the contradictory emotions or trends expressed in the text. If the text expresses contradictory emotions or obvious emotional transfers in different sentences or paragraphs, such as being positive and optimistic at one moment and negative and pessimistic at another, then it can be determined that a neutral emotion exists; or neutral emotional content can be judged by analyzing whether there is language that makes moral judgments on others and restrains emotions. In this case, when the neutral emotional vocabulary does not exist, the neutral emotional category data is used as positive emotional content; when the neutral emotional vocabulary exists, the data in the neutral emotional category data is used as neutral emotional content.

[0102] Furthermore, the emotional trend of neutral emotional content may affect the direction of the entire public opinion. Therefore, it is necessary to monitor the emotional trend of neutral emotional content in real time, promptly discover and analyze the trend of users' emotional attitudes, promptly deal with negative emotions, and avoid public opinion crises.

[0103] In an embodiment of the present invention, the emotional trend refers to the trend and direction of the user's emotional attitude towards neutral emotional content within an event. By monitoring and analyzing the emotional color expressed by the user in the real-time updated data, it is possible to understand whether the user's emotional inclination towards the topic or content is positive, negative or neutral, as well as the trend of the emotional inclination over time.

[0104] In the embodiment of the present invention, monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content includes:

[0105] The comment content input by the user corresponding to the neutral emotional content is updated in real time, and the comment content input by the user corresponding to the neutral emotional content after real-time update is analyzed by using a pre-trained large language analysis model to obtain the emotional probability distribution corresponding to the comment content input by the user corresponding to the neutral emotional content;

[0106] Select the emotional color corresponding to the highest probability in the emotional probability distribution as the target emotional color;

[0107] When the target emotional color is a positive emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a positive emotional trend;

[0108] When the target emotional color is a negative emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a negative emotional trend;

[0109] When the target emotional color is a neutral emotional color, the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content is determined as a neutral emotional stable trend.

[0110] In detail, the neutral emotional content input by the user is monitored and collected, and based on the input content with neutral emotion input by the user for the first time as a benchmark, the user input content is updated in real time. For example, the input content of different users for the network hot event R is A, B, and C. After the large language analysis model analyzes that the user input content A, B, and C are neutral emotional content, the user input content for the network hot event R is continuously paid attention to, that is, the neutral emotional content for the network hot event R is updated in real time, and the neutral emotional content after real-time update is input into the pre-trained large language analysis model, and the probability distribution of emotional color is output. The probability distribution of emotional color refers to whether the emotional content after real-time update is positive emotion, negative emotion, or neutral emotion, and the emotional category corresponding to the highest probability in the emotional probability distribution is selected as the target emotional color. If the probability of positive emotion is 0.4, the probability of negative emotion is 0.7, and the probability of neutral emotion is 0.6, then the emotional content after real-time update is negative emotion, and the target emotional color is determined to be negative emotion, and then the emotional trend is determined according to the emotional tendency of the selected target emotional color.

[0111] Specifically, a large language analysis model is used to perform semantic analysis, and the content of neutral emotions is updated and tracked in real time. The large language analysis model can understand semantics and context, and can help identify the content of neutral emotions and analyze its implicit emotional tendencies. It combines the emotional expressions of the previous, next and current texts, analyzes the conversion of contextual information and emotional expressions, identifies emotional shifts or conversions in neutral emotional content, and tracks emotional trends through analysis of contextual emotions. That is, when the target emotional color is positive, the emotional trend corresponding to the neutral emotional content is a positive emotional trend; when the target emotional color is negative, the emotional trend corresponding to the neutral emotional content is a negative emotional trend; when the target emotional color is neutral, the emotional trend corresponding to the neutral emotional content is a stable trend, that is, the trend remains unchanged.

[0112] Furthermore, in order to timely discover the sentiment trend of user input content and filter out inappropriate content in user input content, it is necessary to perform a visual analysis of the content and sentiment trend that do not conform to preset rules.

[0113] S4. Generate a content analysis report corresponding to the user input content according to the content that does not meet the preset rules and the sentiment trend.

[0114] In the embodiment of the present invention, the content analysis report refers to a report generated after reviewing and evaluating specific content, that is, a report generated based on the content in the user input that does not conform to preset rules and the emotional trend in the neutral emotional content.

[0115] In the embodiment of the present invention, generating a content analysis report corresponding to the user input content according to the content that does not conform to the preset rules and the sentiment trend includes:

[0116] When the emotional trend is a positive emotional trend, the positive emotional content corresponding to the positive emotional trend is stored in a database of the network information content service platform;

[0117] generating a normal content analysis record based on the positive emotional content in the database;

[0118] When the sentiment trend is a non-positive sentiment trend, generating a bad content analysis record corresponding to the content that does not conform to the preset rules;

[0119] The normal content analysis records and the bad content analysis records are collected to form a content analysis report corresponding to the user input content.

[0120] In detail, when the emotional trend is a positive emotional trend, that is, the content without illegal and bad information can be stored in the database of the network information content service platform, and normal content is allowed to be accessed by authorized Internet users, and a normal content analysis record of positive emotional content is generated, including the normal content, emotional trend and time interval input by the user. For example, the normal content input by the user is D, and its emotional trend is positive. The time interval is 10 minutes, that is, the emotional trend of the normal content input by the user is monitored every 10 minutes, and the emotional trend monitored at each moment is positive, then a normal content analysis record is generated based on the positive emotional content; and when the emotional trend is a non-positive emotional trend, that is, a negative emotional trend or a neutral emotional trend, a bad content analysis record can be generated for the attributes of the content that does not meet the preset rules, and then all normal content analysis records and bad content analysis records are collected to form a complete content analysis report, and the positive emotional content and bad content are stored and recorded separately, and finally a complete content analysis report is generated, which can help organizations better manage and optimize user content.

[0121] Furthermore, through analysis records, it is possible to record and manage negative content that appears on the platform, which helps to filter out negative information in a timely manner, thereby generating negative content analysis records corresponding to content that does not conform to preset rules. Through analysis reports, it is possible to evaluate negative information and negative emotional trends in user input content, monitor users' emotional attitudes towards specific topics or content, and promptly discover and analyze user feedback and opinions to avoid the occurrence of public opinion crises.

[0122] In the embodiment of the present invention, the unhealthy content analysis record refers to a record generated after analyzing unhealthy content in user input content, including information such as the type, quantity, processing method, and related emotional trend of the unhealthy content.

[0123] In the embodiment of the present invention, generating the bad content analysis record corresponding to the content that does not conform to the preset rule includes:

[0124] Extracting the inappropriate content type of the content that does not conform to the preset rules;

[0125] Generating a processing method for the content that does not conform to the preset rules according to the type of the inappropriate content;

[0126] Generating a correspondence between the type of inappropriate content and the processing method;

[0127] An analysis record of inappropriate content is generated according to the corresponding relationship and the sentiment category corresponding to the content that does not conform to the preset rule.

[0128] In detail, content analysis and classification are carried out on content that does not comply with preset rules, and specific types of negative content, such as false information, are identified. According to the type of negative content, corresponding violation handling measures are determined, including deletion, warning, ban, etc., and specific handling methods taken for each type of negative content are recorded, that is, each content part in the content report is compared with the established rules or standards, and it is classified as content that does not comply with preset rules or compliant content. For the part of the content determined to be non-compliant with the preset rules, it can be marked or classified, such as removal, blocking or reporting to the administrator. If necessary, a notification is sent to the relevant users to explain that their content is determined to be non-compliant with the preset rules, and corresponding measures are taken according to the platform regulations.

[0129] Specifically, a correspondence between the type of bad content and the handling method is established to ensure that there are clear handling standards and processes for different types of bad content. Combined with the emotional category of the content that does not conform to the preset rules, the emotional category includes the emotional trend of the content that does not conform to the preset rules, namely the positive emotional trend, the negative emotional trend and the neutral emotional stable trend. Then, the bad content type, handling method and emotional trend are integrated together to form a complete bad content analysis record, which can systematically classify, process and record the content that does not conform to the preset rules, ensure that the handling method for bad content is clear and feasible, and provide a reference for subsequent content management and optimization.

[0130] For example, Figure 2 As shown in the figure, it is a flowchart of intelligent analysis of user input content. First, any pending and auditable content such as articles, files, comments, signatures, and conversation records in the user input content are sent to the processing queue built by the network information content service platform. The large model content analysis, as a content consumer, takes the content to be analyzed from the content queue and analyzes the content according to the model settings. The analysis result information includes: whether the content contains illegal and bad information, the type of illegal and bad information, the number of occurrences of illegal and bad information, and the content location where the illegal and bad information appears. At the same time, the large model analyzes the emotional color of the content in combination with the content context, identifies the content and emotional values ​​of different language emotional colors, and displays them in the analysis results. At the same time, in order to associate with network hot spots and enhance the efficiency of content analysis, hot spot tracking provides hot spot corpus sources to the large model in real time. Content without illegal and bad information can be stored in the database of the network information content service platform. Normal content allows authorized Internet users to access. For neutral content, if it involves current hot spots, abnormal emotions, moral kidnapping and other information, it is necessary to join public opinion tracking to monitor the trend of hot spots in real time. For illegal and bad information identified by the large prediction model, the platform will not display it and record illegal and bad behavior.

[0131] The embodiment of the present invention can solve the problem of underreporting and false alarm in the field of traditional content recognition by classifying and grading bad network information, modeling, guiding the big language model to refine network information content, and analyzing the emotional color of network information content, and train the big language model to obtain a trained big language analysis model, and then use the pre-trained big language analysis model to analyze the problem of over-long content in content analysis; and real-time hot news events provide the big language analysis model with an over-long context, so that the big language analysis model has the ability to track the direction of real-time hot public opinion. Therefore, the intelligent content analysis method, device and medium based on the big language model proposed in the present invention can solve the problem of low efficiency in detecting illegal and bad content.

[0132] like Figure 3 , which is a schematic diagram of the structure of an electronic device for implementing an intelligent content analysis method based on a large language model provided by an embodiment of the present invention.

[0133] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an intelligent content analysis program based on a large language model.

[0134] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing intelligent content analysis programs based on large language models, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.

[0135] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of an intelligent content analysis program based on a large language model, but also can be used to temporarily store data that has been output or is to be output.

[0136] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0137] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0138] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0139] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0140] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0141] The intelligent content analysis program based on the large language model stored in the memory 11 of the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0142] Collect network hot events in real time, extract user input content under the network hot events in each information interaction platform, and perform correlation analysis between the user input content and the event comment content in the network hot events;

[0143] When there is no correlation between the user input content and the event comment content, using a pre-trained large language analysis model to extract content in the user input content that does not conform to preset rules;

[0144] When there is an association relationship between the user input content and the event comment content, extracting the neutral emotional content in the user input content, and monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content;

[0145] The content that does not conform to the preset rules and the sentiment trend are used to generate a content analysis report corresponding to the user input content.

[0146] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0147] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0148] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0149] Collect network hot events in real time, extract user input content under the network hot events in each information interaction platform, and perform correlation analysis between the user input content and the event comment content in the network hot events;

[0150] When there is no correlation between the user input content and the event comment content, using a pre-trained large language analysis model to extract content in the user input content that does not conform to preset rules;

[0151] When there is an association relationship between the user input content and the event comment content, extracting the neutral emotional content in the user input content, and monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content;

[0152] The content that does not conform to the preset rules and the sentiment trend are used to generate a content analysis report corresponding to the user input content.

[0153] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, media and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0154] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0156] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0157] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.

[0158] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0159] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. An intelligent content analysis method based on a large language model, characterized in that: The method comprises: Collect network hot events in real time, extract user input content under the network hot events in each information interaction platform, and perform correlation analysis between the user input content and the event comment content in the network hot events; When there is no correlation between the user input content and the event comment content, using a pre-trained large language analysis model to extract content in the user input content that does not conform to preset rules; When there is an association relationship between the user input content and the event comment content, extracting the neutral emotional content in the user input content, and monitoring the emotional trend of the comment content input by the user corresponding to the neutral emotional content; A content analysis report corresponding to the user input content is generated according to the content that does not conform to the preset rules and the sentiment trend.

2. The intelligent content analysis method based on a large language model according to claim 1, characterized in that: The correlating analysis of the user input content with the event comment content in the network hot event includes: Performing word segmentation processing on the user input content and the event comment content in the network hot event; Convert the user input content after word segmentation processing into the first word vector, and convert the event comment content after word segmentation processing into the second word vector; Calculate the similarity between the first word vector and the second word vector; It is determined whether there is a correlation between the user input content and the event comment content in the network hot event based on the similarity.

3. The intelligent content analysis method based on a large language model as claimed in claim 1, characterized in that: The extracting the content that does not conform to the preset rules from the user input content by using the pre-trained large language analysis model includes: Analyze the user input content using a pre-trained large language analysis model, and output sentiment category data corresponding to the user input content; When there is negative emotion data in the emotion category data, extracting the occurrence position and information type of the content that does not conform to the preset rules in the negative emotion data according to the probability distribution of the negative emotion data; Counting the number of occurrences of the content that does not conform to the preset rule according to the occurrence position; Collecting the occurrence positions, the occurrence times and the information types into a content statistics report corresponding to the content that does not conform to the preset rules; Determine the content in the user input that does not conform to the preset rules according to the content statistics report.

4. The intelligent content analysis method based on a large language model according to claim 1, characterized in that: The extracting of neutral emotional content from the user input content includes: Analyzing the content context relationship of the user input content using a pre-trained large language analysis model to obtain contextual semantic information; Outputting neutral sentiment category data in the user input content according to the contextual semantic information; Detecting whether there are neutral emotion words in the neutral emotion category data according to preset emotion color category data; When the neutral emotion words exist, the content corresponding to the neutral emotion words in the neutral emotion category data is extracted as the neutral emotion content.

5. The intelligent content analysis method based on a large language model according to claim 1, characterized in that: The monitoring of the emotional trend of the comment content input by the user corresponding to the neutral emotional content includes: The comment content input by the user corresponding to the neutral emotional content is updated in real time, and the comment content input by the user corresponding to the neutral emotional content after real-time update is analyzed by using a pre-trained large language analysis model to obtain the emotional probability distribution corresponding to the comment content input by the user corresponding to the neutral emotional content; Select the emotional color corresponding to the highest probability in the emotional probability distribution as the target emotional color; When the target emotional color is a positive emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a positive emotional trend; When the target emotional color is a negative emotional color, determining the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content as a negative emotional trend; When the target emotional color is a neutral emotional color, the emotional trend corresponding to the comment content input by the user corresponding to the neutral emotional content is determined as a neutral emotional stable trend.

6. The intelligent content analysis method based on a large language model according to claim 1, characterized in that: Generating a content analysis report corresponding to the user input content according to the content that does not conform to the preset rules and the sentiment trend includes: When the emotional trend is a positive emotional trend, the positive emotional content corresponding to the positive emotional trend is stored in a database of the network information content service platform; generating a normal content analysis record based on the positive emotional content in the database; When the sentiment trend is a non-positive sentiment trend, generating a bad content analysis record corresponding to the content that does not conform to the preset rules; The normal content analysis records and the bad content analysis records are collected to form a content analysis report corresponding to the user input content.

7. The intelligent content analysis method based on a large language model as claimed in claim 2, characterized in that: Before extracting the content that does not conform to the preset rules from the user input content using the pre-trained large language analysis model, the method further includes: Use the preset neural network to perform sentiment category analysis on the preset sentiment category samples to obtain the sentiment output label; Calculating the loss value between the emotion output label and the preset true emotion label; Calculating the weight gradient of the loss value to the neuron nodes in the neural network; The weights of the neuron nodes are updated according to the weight gradient until the loss value is less than a preset loss threshold, and the neural network is output as a large language analysis model.

8. The intelligent content analysis method based on a large language model as claimed in claim 6, characterized in that: The generating of the bad content analysis record corresponding to the content not meeting the preset rule comprises: Extracting the inappropriate content type of the content that does not conform to the preset rules; Determine, according to the type of inappropriate content, how to handle the content that does not comply with the preset rules; Generating a correspondence between the type of inappropriate content and the processing method; An analysis record of inappropriate content is generated according to the corresponding relationship and the sentiment category corresponding to the content that does not conform to the preset rule.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the intelligent content analysis method based on a large language model as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the intelligent content analysis method based on a large language model as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Method, apparatus, medium and program product for annotating data

    CN119272729A

  • Comprehensive analysis method for social media hot events

    CN119760112A

  • Operating method of electronic apparatus for providing review information and electronic apparatus supporting thereof

    TWI920957B