Hot event discovery method under hybrid new media
By using the neural topic model and BERT pre-training representation in a mixed new media environment, combined with the variational autoencoder framework, the problem of difficulty in extracting and judging document topic information in the existing technology is solved, and accurate identification of hot social events is achieved. and understanding, improving the support capabilities of network event monitoring and public opinion analysis.
Patent Information
- Application Number
- CN202110444596.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-04-23
AI Technical Summary
It is difficult to effectively extract the potential topic information in the document and determine whether it is a hot event with the existing technology, and there is a lack of effective models for judgment.
By building a hybrid new media environment, combining social new media and news portal data, using neural topic models for topic modeling, and vectorizing and merging topics through BERT pre-trained document representation and variational autoencoder frameworks , combined with social network attributes to determine hot events.
It achieves the accurate identification and understanding of social hot events, improves the support capabilities of network event retrieval, online public opinion monitoring and security decision-making, and improves the interpretability and consistency of topic modeling.
Smart Images

Figure CN113343118B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for discovering social hot events in a mixed media environment, and belongs to the technical field of Internet monitoring. Background Art
[0002] At present, social networks (such as Weibo and WeChat) are the new social media with the most active users, the richest content and the widest influence. Together with various online news portals, they have formed a hybrid online new media environment. Some social events are reported by news portals and become known to the public. They are then reposted and fermented through various social media, causing heated discussions among netizens, leading to the development of online public opinion games, and eventually forming Internet social hot events.
[0003] The present invention will comprehensively consider the functional roles and interactive relationships of social new media and news portals on the Internet to construct a hybrid new media environment. On this basis, by mining news portals to discover the topic of events, obtaining news corpus data and social media data for events, and determining social hot events, it helps people to have a deep understanding and grasp of the current status and future development trends of social hot events in the network environment. The research results of the present invention have an important supporting role in the practical application of network event retrieval, online public opinion monitoring, emergency detection, and related security decision-making. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a model that can effectively extract potential topic information in a document and determine whether it is a hot event.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is to pre-process the data, vectorize the document and hand it over to the neural topic model for modeling, and then merge the topics obtained by modeling.
[0006] In order to achieve the above-mentioned purpose, the technical scheme of the present invention is as follows: a method for discovering hot events under hybrid new media, comprehensively considering the functions and relationships of social new media and news portal websites in the Internet, constructing a hybrid new media environment, acquiring news corpus data and social media data for social hot events, discovering topics through hybrid media data, thereby helping people to have a deep understanding and grasp of the current status and future development trends of social hot events in the network environment, comprising the following steps:
[0007] Step 1) preprocessing the collected data, including removing hypertext links, stop words, punctuation marks and useless digital information, and performing word segmentation using the HanLP natural language processing tool;
[0008] Step 2) Discretize the documents into time slices in chronological order, with a time interval of 1 day, to facilitate subsequent evolution analysis and processing. All events are examined within 30 days of the event, that is, 30 time slices;
[0009] Step 3) Text vectorization, using BERT pre-trained document representation to improve topic coherence;
[0010] Step 4) Topic Modeling: Topic modeling is performed using a neural topic model, where we replace the input bag-of-words representation with context embeddings;
[0011] Step 5) After modeling the topics obtained in step 4), the topics need to be merged.
[0012] Step 6) After completing the event detection of the news portal website, it is necessary to associate the microblog content of each event in the social network and its user social relationship;
[0013] Step 7) According to certain judgment criteria, when a certain threshold is exceeded, it is judged as a hot event.
[0014] Among them, the division of time slices in the step 2) has an important influence on the evolution of processing time over a period of time and the law of its popularity change. In the invention, it is fixed at 30 days, and can also be set adaptively according to the length of time for crawling news content.
[0015] In step 3), the text vectorization replaces the bag-of-words representation of the input topic model with context embedding, that is, before the topic modeling process, a neural encoding layer of document representation pre-trained from the BERT language model is introduced. First, the dictionary of the topic corpus is built by calling the bert_serving package and the BERT word vector model is trained. Each document obtains a matrix composed of word vectors, and the matched data is saved for subsequent topic modeling task processing.
[0016] In the step 4), when modeling the topic, the text data vectorized in step 3) is used as a context embedding model. The neural topic model used in the invention is a generative model based on a neural variational reasoning framework, which is inspired by a variational autoencoder and uses Gaussian distribution to generate parameters, wherein the Gaussian parameters can be obtained by linear calculation.
[0017] After the topic is modeled in step 5), the topics need to be merged. A threshold ζ is set to measure the distance between two topics. If the distance between the two topics is greater than the threshold, the two topics are judged to be the same topic and need to be merged; otherwise, the two topics are different topics and do not need to be merged.
[0018] In the steps 6) and 7), the Weibo platform provides rich topic classification and content tag information, and the time, named entity and keyword information obtained during the event detection process are integrated to search for Weibo content related to the key information of the event from Weibo, and then calculate the cosine distance between the key information of the event and the content, classification and tag of the search results to detect the similarity between the event and the Weibo, and establish the association relationship between event-news-Weibo. For the identification of hot events, the invention combines the social network attributes of the event and uses formula (1) to calculate the heat value of the topic in step 5):
[0019]
[0020] Among them, N e , S e and C e They represent the number of news reports, user reposts and comments on event e respectively. N, S and C represent the total number of corresponding indicators respectively. α, β, γ represent the proportional coefficients set according to the importance of the above factors (for example, 0.6, 0.2, 0.2). When the comprehensive heat value (range is [0,1]) exceeds 0.4 (that is, the proportion of reports and discussions on event e exceeds 40%), event e is judged to be a hot event.
[0021] Compared with the prior art, the present invention has the following advantages:
[0022] 1. The present invention improves the modeling method of topics under hybrid media, comprehensively considers the functions and relationships of new social media and news portals on the Internet, obtains news corpus data and social media data for social hot events, and discovers current hot topics through hybrid media data.
[0023] 2. The present invention proposes an NTM neural topic model based on the variational autoencoder framework. Since the encoder and decoder in the variational autoencoder can be jointly trained through back propagation, the mathematical derivation process during NTM model training is less complex and easier to expand than traditional probability models.
[0024] 3. The NTM model used in the present invention receives the document representation trained by BERT as input. The topic modeling part consists of an encoder and a decoder. The process of NTM generating topics is similar to the data reconstruction process, and the bag-of-words representation of the input topic model is replaced with context embedding, that is, before the topic modeling process, the neural encoding layer of the document representation pre-trained by the BERT language model is introduced, which improves the interpretability and consistency of the topic.
[0025] 4. The present invention crawls news report data of mainstream news media within a period of time with a certain keyword, so as to track the evolution of news within a period of time, adaptively divide the time slices of news evolution, and judge the phased changes of hot events by merging or not. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a hot event determination flow chart of the present invention.
[0027] Figure 2 This is the topic model diagram of the present invention. DETAILED DESCRIPTION
[0028] The present invention is further explained below in conjunction with specific implementation steps. It should be understood that these implementation steps are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent changes of the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.
[0029] Example 1: See Figure 1 , Figure 2 , a hot event discovery method under hybrid new media, comprising the following steps:
[0030] Step 1) preprocessing the collected data, including removing hypertext links, stop words, punctuation marks and useless digital information, and performing word segmentation using the HanLP natural language processing tool;
[0031] Step 2) Discretize the documents into time slices in chronological order, with a time interval of 1 day, to facilitate subsequent evolution analysis and processing. All events are examined within 30 days of the event, that is, 30 time slices;
[0032] Step 3) Text vectorization, using BERT pre-trained document representation to improve topic coherence;
[0033] Step 4) Topic Modeling: Topic modeling is performed using a neural topic model, where we replace the input bag-of-words representation with context embeddings;
[0034] Step 5) After modeling the topics obtained in step 4), the topics need to be merged.
[0035] Step 6) After completing the event detection of the news portal website, it is necessary to associate the microblog content of each event in the social network and its user social relationship;
[0036] Step 7) According to certain judgment criteria, when a certain threshold is exceeded, it is judged as a hot event.
[0037] The division of time slices in the step 2) has an important influence on the evolution of processing time over a period of time and the law of its popularity change. In the invention, it is fixed at 30 days, and can also be set adaptively according to the length of time for crawling news content.
[0038] In step 3), the text vectorization replaces the bag-of-words representation of the input topic model with context embedding, that is, before the topic modeling process, a neural encoding layer of document representation pre-trained from the BERT language model is introduced. First, the dictionary of the topic corpus is built by calling the bert_serving package and the BERT word vector model is trained. Each document obtains a matrix composed of word vectors, and the matched data is saved for subsequent topic modeling task processing.
[0039] In the step 4), when modeling the topic, the text data vectorized in step 3) is used as a context embedding model. The neural topic model used in the invention is a generative model based on a neural variational reasoning framework, which is inspired by a variational autoencoder and uses Gaussian distribution to generate parameters, wherein the Gaussian parameters can be obtained by linear calculation.
[0040] After the topic is modeled in step 5), the topics need to be merged. A threshold ζ is set to measure the distance between two topics. If the distance between the two topics is greater than the threshold, the two topics are judged to be the same topic and need to be merged; otherwise, the two topics are different topics and do not need to be merged.
[0041] In the steps 6) and 7), the Weibo platform provides rich topic classification and content tag information, and the time, named entity and keyword information obtained during the event detection process are integrated to search for Weibo content related to the key information of the event from Weibo, and then calculate the cosine distance between the key information of the event and the content, classification and tag of the search results to detect the similarity between the event and the Weibo, and establish the association relationship between event-news-Weibo. For the identification of hot events, the invention combines the social network attributes of the event and uses formula (1) to calculate the heat value of the topic in step 5):
[0042]
[0043] Among them, N e , S e and C e where α, β, γ represent the number of news reports, user reposts and comments on event e respectively. N, S and C represent the total number of corresponding indicators respectively. α, β, γ represent the proportional coefficients set according to the importance of the above factors (for example, 0.6, 0.2, 0.2). When the comprehensive heat value (range is [0, 1]) exceeds 0.4 (that is, the proportion of reports and discussions on event e exceeds 40%), event e is judged to be a hot event.
[0044] Application Example 1: See Figure 2 As shown, the method for topic modeling of documents based on a neural topic model according to the present invention comprises the following steps:
[0045] Step 1. Encoding process
[0046] Use the encoder to generate a Gaussian prior distribution θ for document d:
[0047] 1) Obtain the document representation s after BERT processing.
[0048] s=BERT(d) (1)
[0049] 2) The document representation s is projected to the hidden layer, which is concatenated with the bag-of-words representation BoW of document d.
[0050] h=[s,BoW] (2)
[0051] 3) Obtain μ and logσ by two independent multi-layer feedforward neural networks, where μ and logσ are hyperparameters set by the present invention for calculating Gaussian unit variance. Wherein, f(·) represents a neural perceptron with a ReLU activation function, and weights W1, W2 and biases b1, b2 are learnable parameters shared between different inputs.
[0052] μ=W1f(h)+b1 (3)
[0053] logσ=W2f(h)+b2 (4)
[0054] 4) Select hidden variables z~N(μ,σ 2 ), where N(μ,σ 2 ) is a multidimensional Gaussian distribution, and the components of z are independent Gaussian distribution random variables. The latent variable z can be expressed as:
[0055]
[0056] Among them, ε can be regarded as an auxiliary noise variable. ε can be sampled from the normal distribution N(0, I).
[0057] Step 2. Decoding process
[0058] Assume that there are K topics in a given corpus C, and each topic k is represented by the topic vocabulary distribution (k) represents that each document d in C corresponds to a topic set represented by the variable θ, which is a K-dimensional distribution vector constructed by Gaussian softmax. Therefore, the decoder takes the following steps to simulate the generation of each document d:
[0059] 1) Gaussian prior distribution θ is obtained from the latent variable z, where w θ is a trainable variable.
[0060] θ=softmax(w θ z) (6)
[0061] 2) Infer each word w in document d from variable θ, where f φ is the topic vocabulary distribution The weight matrix of (k)
[0062]
[0063] In summary, based on the variational lower bound, the objective function of the NTM model is defined as:
[0064] L NTM =E q(z|d) [p(d|z)]-D KL [q(z|d)||p(z|μ,σ)] (8)
[0065] The first term in formula (8) is the reconstruction loss, the second term is the Kullback-Leibler divergence loss, and p(z|μ,σ) represents the standard normal prior. q(z|d) and p(z|μ,σ) represent the encoding process and the decoding process, respectively.
[0066] In order to achieve back propagation during model training, a reparameterization technique is used, as shown in formula (5), by sampling noise ε from the normal distribution N(0, I), θ is obtained. In order to calculate L NTM The gradient of this model uses the Adam algorithm.
[0067] Step 3. Merge the same topics
[0068] The method of calculating distribution distance is usually used to identify the same topic. This is because the topics obtained after modeling are distributed on the same dimension. Also, the distribution distance between different topics is certain and has nothing to do with the order of the topics. Therefore, the symmetric Kullback-Leibler distance can be used to measure the similarity between topics.
[0069] Assume w i is the probability distribution of the i-th word in a topic, is the topic vocabulary distribution of the kth topic, then the KL distance between topics k1 and k2 can be calculated by formula (10):
[0070]
[0071] The symmetric KL distance can be further calculated using the KL distance:
[0072]
[0073] From formulas (9) and (10), we can see that if the KL distance between two topics is smaller and closer to 0, it means that the two probability distributions are closer, indicating that the similarity between the two topics is higher. If the KL distance between two topics is larger, the difference in the probability distribution of the two topics is larger. Set a threshold ζ. If the KL distance between two topics is greater than the threshold, the two topics are judged to be the same topic and need to be merged. Otherwise, the two topics are different and do not need to be merged.
[0074] It should be noted that the above embodiments are merely preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Equivalent replacements or substitutions made on the basis of the above technical solutions all fall within the protection scope of the present invention.
Claims
1. A method for discovering hot events in hybrid new media, characterized in that: The steps include: Step 1) preprocessing the collected data, including removing hypertext links, stop words, punctuation marks and useless digital information, and performing word segmentation using the HanLP natural language processing tool; Step 2) Discretize the documents into time slices in chronological order, with a time interval of 1 day, to facilitate subsequent evolution analysis and processing. All events are examined within 30 days of the event, that is, 30 time slices; Step 3) Text vectorization, using BERT pre-trained document representation to improve topic coherence; Step 4) Topic modeling, using a neural topic model to perform topic modeling, where the input bag-of-words representation is replaced with context embedding; Step 5) After modeling the topics obtained in step 4), the topics need to be merged; Step 6) After completing the event detection of the news portal website, associate the microblog content of each event in the social network and its user social relationship; Step 7) Calculate the popularity value of the topic, and when the popularity value exceeds a certain threshold, it is determined to be a hot event; Among them, the text vectorization in step 3) replaces the bag-of-words representation of the input topic model with context embedding, that is, before the topic modeling process, a neural encoding layer of document representation pre-trained from the BERT language model is introduced. First, by calling the bert_serving package to build a dictionary of the topic corpus and train the BERT word vector model, each document obtains a matrix composed of word vectors, and the matched data is saved for subsequent topic modeling task processing. In the step 4), when modeling the topic, the text data vectorized in step 3) is used as a context embedding model. The neural topic model used in the invention is a generative model based on a neural variational reasoning framework, which is inspired by a variational autoencoder and uses Gaussian distribution to generate parameters, wherein the Gaussian parameters can be obtained by linear calculation.
2. The method for discovering hot events under hybrid new media according to claim 1, characterized in that: The division of time slices in the step 2) has an important impact on the evolution of processing time over a period of time and the law of its popularity change. It is fixed at 30 days, or can be set adaptively according to the length of time for crawling news content.
3. The method for discovering hot events under hybrid new media according to claim 1, characterized in that: After the topic is modeled in step 5), the topics need to be merged. A threshold ζ is set to measure the distance between two topics. If the distance between the two topics is greater than the threshold, the two topics are judged to be the same topic and need to be merged; otherwise, the two topics are different topics and do not need to be merged.
4. The method for discovering hot events under hybrid new media according to claim 1, characterized in that: In the steps 6) and 7), the Weibo platform provides a wealth of topic classification and content tag information. The time, named entity and keyword information obtained during the event detection process are integrated to search for Weibo content related to the key information of the event. Then, the cosine distance between the key information of the event and the content, classification and tag of the search results is calculated to detect the similarity between the event and the Weibo, and establish the association relationship between event-news-Weibo. For the identification of hot events, the social network attributes of the event are combined, and the heat value of the topic is calculated in step 5) using formula (1): Among them, N e , S e and C e They represent the number of news reports, user reposts and comments on event e respectively. N, S and C represent the total number of corresponding indicators respectively. α, β, γ represent the proportional coefficients 0.6, 0.2 and 0.2 set according to the importance of social network attributes respectively. When the comprehensive heat value range is [0,1] and exceeds 0.4, that is, when the proportion of reports and discussions on event e exceeds 40%, event e is judged to be a hot event.
