A method, apparatus, electronic device, and readable storage medium for subject monitoring.
Pre-trained language models and graph convolutional neural networks are used to process scientific research texts, generate keyword embedding vectors and probability distribution representation vectors, dynamically monitor time series changes in scientific research topics, and solve the problem of difficulty in displaying changes in scientific research topics with existing technology. Realized dynamic monitoring and analysis of scientific research topics.
Patent Information
- Application Number
- CN202410217200.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-02-27
AI Technical Summary
Existing topic identification methods are difficult to dynamically display changes in scientific research topics over time and cannot meet the needs of subject analysis.
Pre-trained language models and graph convolutional neural networks are used to jointly process scientific research text collections to generate keyword embedding vectors containing text semantics and graph structures. Through topic clustering and probability distribution representation vector calculations, the time series changes of topics are dynamically displayed. .
It realizes the dynamic monitoring of scientific research topics, can clearly reveal the change process of topics over time, and meets the needs of subject analysis.
Smart Images

Figure CN118070786B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a subject monitoring method, device, electronic device and readable storage medium. Background Art
[0002] Scientific research topic identification and evolution analysis are important means to understand the current status and development trends of scientific research fields. At present, the mainstream methods of topic identification are based on the traditional LDA model and the bag-of-words model based on complex neural networks. With the changes in massive data and user needs, the results of macro-static topic identification are gradually unable to meet the needs of subject analysis. Summary of the invention
[0003] The present invention provides a subject monitoring method, device, electronic device and readable storage medium, which can dynamically display the state of subject changes over time and more vividly reveal the changes of scientific research subjects over time.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A topic monitoring method provided according to a specific embodiment of the present invention includes:
[0006] Based on the pre-trained language model and graph convolutional neural network, the scientific research text collection is jointly processed to obtain the keyword embedding vector containing text semantics and graph structure;
[0007] Performing topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text set;
[0008] Calculating the scientific research text set within each preset time interval based on the pre-trained language model to obtain a semantic vector representing each scientific research text within each preset time interval;
[0009] Based on the semantic vector of each scientific research text and each keyword cluster center vector, a probability distribution representation vector of each scientific research text is obtained;
[0010] Cluster the probability distribution representation vectors of all scientific research texts within each preset interval to obtain text scientific research topic clusters;
[0011] Extracting corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each text scientific research topic cluster;
[0012] Based on the similarity of the probability distribution vectors of the center of the scientific research text topic clusters at adjacent preset time intervals and the keyword overlap ratio, the evolutionary relationship between the scientific research text topics is obtained.
[0013] Furthermore, the scientific research text collection is jointly processed based on the pre-trained language model and the graph convolutional neural network to obtain a keyword embedding vector containing text semantics and graph structure, including:
[0014] Processing the pre-extracted keyword set based on the pre-trained language model to obtain a first keyword embedding vector representing a global context;
[0015] Processing the pre-generated graph structure data of the keywords based on the graph convolutional neural network to obtain a second keyword embedding vector representing the graph node;
[0016] The first keyword embedding vector and the second keyword embedding vector are weightedly fused based on a preset objective function to obtain the keyword embedding vector.
[0017] Furthermore, the process of acquiring the keyword set includes:
[0018] After combining the keyword set obtained based on the preset statistical model with the keyword set obtained based on the graph theory method, a new keyword set is obtained;
[0019] The new keyword set is filtered for noise words and uncommon words to obtain the keyword set.
[0020] Furthermore, the process of acquiring the graph structure data includes:
[0021] Using the keywords in the scientific research text as links, a co-occurrence network and a collaboration network are sequentially constructed to obtain the graph structure data.
[0022] Furthermore, the probability distribution representation vector of each scientific research text is obtained based on the semantic vector of each scientific research text and the center vector of each keyword cluster, including:
[0023] The cosine similarity between the semantic vector of each scientific research text and the center vector of each keyword cluster within each preset interval is calculated, and the probability distribution representation vector of each scientific research text is obtained after regularization.
[0024] Furthermore, extracting corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each text scientific research topic cluster includes:
[0025] Calculate the central probability distribution vector of each text scientific research theme cluster respectively, and filter out the noise keyword semantic theme clusters based on the threshold;
[0026] Extract the corresponding keywords from the retained keyword semantic topic clusters.
[0027] Furthermore, the similarity of the probability distribution vectors of the scientific research text theme cluster centers at adjacent preset time intervals and the keyword overlap ratio are used to obtain the evolutionary relationship between the scientific research text themes, including:
[0028] If the similarity of the central probability distribution vectors of the scientific research text topic clusters at adjacent preset time intervals is greater than 0.8, it is determined that there is an evolutionary relationship between the topics at adjacent preset time intervals.
[0029] A subject monitoring device provided according to a specific embodiment of the present invention includes:
[0030] The keyword embedding vector generation module is used to jointly process the scientific research text collection based on the pre-trained language model and the graph convolutional neural network to obtain the keyword embedding vector containing the text semantics and graph structure;
[0031] A first text topic clustering module is used to perform topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text set;
[0032] A semantic vector generation module, used to calculate the scientific research text set within each preset time interval based on the pre-trained language model to obtain a semantic vector representing each scientific research text within each preset time interval;
[0033] A representation vector generation module, used to obtain a probability distribution representation vector of each scientific research text based on the semantic vector of each scientific research text and each keyword cluster center vector;
[0034] The second text topic clustering module is used to cluster the probability distribution representation vectors of all scientific research texts within each preset interval to obtain text scientific research topic clusters;
[0035] A text scientific research theme cluster description module, used to extract corresponding keywords from the keyword semantic theme cluster based on the central probability distribution vector of each text scientific research theme cluster; and
[0036] The text topic evolution determination module obtains the evolutionary relationship between scientific research text topics based on the similarity of the probability distribution vectors of the center of scientific research text topic clusters at adjacent preset intervals and the keyword overlap ratio.
[0037] An electronic device provided according to a specific embodiment of the present invention includes: a memory and a processor;
[0038] The memory is used to store programs;
[0039] The processor is used to execute the program to implement the various steps of the subject monitoring method as described above.
[0040] According to a specific embodiment of the present invention, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, each step of the subject monitoring method described above is implemented.
[0041] It can be seen from the above technical scheme that the present invention discloses a topic monitoring method, which uses a pre-trained language model to calculate a keyword embedding vector containing text semantics and graph structure, and clusters it to form a semantic topic cluster on this basis to complete topic discovery. Then use the pre-trained language model to calculate the semantic vector representing the text, calculate the cosine similarity of the semantic vector of each text and the central vector of the keyword semantic cluster under each time slice, and obtain the probability distribution representation vector of each text after regularization, cluster this probability distribution vector, and obtain the text scientific research topic cluster. Select the TOP5 keyword descriptions and represent different text topic clusters from high to low according to the TF-IDF value. Then calculate the topic similarity and keyword overlap ratio of adjacent time slices in units of interval time, reveal the evolution path between the topics of different time series, and clearly and dynamically display the change process of the topic over time, which is more in line with the needs of current subject analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A flowchart of a subject monitoring method provided by an embodiment of the present invention;
[0044] Figure 2 A diagram of the subject evolution process provided by an embodiment of the present invention;
[0045] Figure 3 Another flow chart of the subject monitoring method provided by an embodiment of the present invention;
[0046] Figure 4 A structural diagram of a subject monitoring device provided by an embodiment of the present invention;
[0047] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Reference Figure 1 As shown, an embodiment of the present invention provides a topic monitoring method, which may include the following steps:
[0050] 101. Based on the pre-trained language model and graph convolutional neural network, the scientific research text collection is jointly processed to obtain the keyword embedding vector containing text semantics and graph structure.
[0051] Specifically, the keywords of the text can be extracted and filtered first. The keywords of each scientific research text can be extracted by using the statistical model YAKE and the TopicRank extraction method based on the graph theory method. Then, the keywords obtained by the two keyword extraction methods are merged to obtain the keywords of each scientific research text. Noise words are then filtered through the filtering word list, such as some meaningless function words, prepositions or some adjectives such as: many, such, contain, first, suitable, abstract, new, thereof, important, etc. And the words that appear too rarely and too often in the keyword combination can be filtered out according to the minimum word frequency or TF-IDF index calculated from the entire context of the scientific research text to form the final text keyword set.
[0052] Based on the above text keyword set, various data networks such as keyword-keyword network (co-occurrence network) and cooperation network are constructed in sequence with keywords as links. This can be used for the subsequent construction, learning and prediction of topic models based on graph clustering. Each point of the keyword-keyword network corresponds to each keyword, and the edge corresponds to the co-occurrence relationship between two keywords. An undirected graph is used to express the co-occurrence relationship between two keywords using a binary weight mechanism.
[0053] Through the selected pre-trained language model all-mpnet-base-v2, assuming that for a certain keyword w, the local embedding vector of keyword w is generated under each article d containing w Then take the average to get the keyword embedding vector of the global context (i.e., the first keyword embedding vector). The formula is as follows, where Dw represents the set of all texts containing keyword w, is the local context embedding vector of keyword w under article d, and It is the global context embedding vector obtained by averaging these local embedding vectors.
[0054]
[0055] According to the various graph structures and corresponding data obtained above, the representation learning effect is enhanced through the Ego local network structure. After extracting the Ego network corresponding to each keyword, GCN (Graph Convolutional Network) can be used to learn the embedding vector of each node, and the embedding vectors of these nodes are designed to be composed of keyword embedding vectors, thereby finally realizing the learning of keyword embedding vectors in the graph structure (i.e., the second keyword embedding vector).
[0056] After obtaining the above two keyword embedding vectors, they are merged by weighted addition of two objective functions to achieve the purpose of joint training. The new objective function obtained after weighted addition is as follows:
[0057] L final =α1L text +(1-α1)L graph
[0058] where α1 is L text The weight value of L graph The weight value of .
[0059] L text is the objective function of the pre-trained language model. For a certain keyword, we further learn and fine-tune its pre-trained global context semantic vector. The fine-tuning training process needs to minimize the following objective function:
[0060]
[0061] Where C(w) represents the set of all keywords in a (symmetrical) fixed-length window around keyword w. Represents the embedding vector based on w The conditional probability of each neighbor keyword w' in the window is calculated by a multi-layer perceptron.
[0062] L graph is the objective function of the graph convolutional neural network. For a keyword co-occurrence relationship network (i.e., the nodes in the network are keywords, and the edges between nodes represent co-occurrence relationships), the Ego local network centered on each node in the network is used as the input unit, and GCN is used to calculate the embedding vector of each node in the local network after each hidden layer. For example, node a is
[0063]
[0064] After the last hidden layer of the GCN network is output, the corresponding output embedding vector will be used for edge prediction. This task is achieved by inputting the output embedding vector of the GCN into the corresponding multi-layer perceptron to predict a binary 0 / 1 value (representing whether there is an edge from the target node to any other neighboring node in the Ego network). Specifically, in the edge prediction task, assuming that the output vector of any node a in the Ego network exists is an H-dimensional vector, merging the output embedding vectors of any pair of nodes in the network (e.g. Merge into ), and input the merged new vector into the multilayer perceptron to predict the probability of the existence of an edge between this pair of nodes. The probability can be expressed as:
[0065]
[0066] in, represents the prediction of whether there is an edge between nodes a and c (i.e., 0 represents the prediction of no edge, 1 represents the prediction of yes edge), and MLP represents multi-layer perceptron. Finally, the objective function L graph The following are expressed:
[0067]
[0068] In the new objective function L final In the above example, the variables and parameters that need to be learned may include:
[0069] 1) Embedding vector of each keyword w
[0070] 2) Calculate conditional probability All parameters in the multilayer perceptron of ;
[0071] The structure of the multilayer perceptron is fixed. In this example, the specific parameters are configured as follows:
[0072] (a) The weight matrix between the input layer (Input) and the hidden layer (Hidden), whose size is M times N, where M is the dimension of the input layer (set to 200), which is equal to the dimension of the embedding vector of keyword w (under each article); N is the number of neurons in the hidden layer, which is set to 1 / 2 of the embedding vector dimension (i.e. 100);
[0073] (b) Activation function from input layer to hidden layer: ReLU function is used;
[0074] (c) The weight matrix between the hidden layer (Hidden) and the output layer (Output), whose size is N times K, where N is the number of neurons in the hidden layer, set as above, and K is the dimension of the output vector, which is equal to the size of the symmetric window C(w) centered on the keyword w, that is, the window contains K / 2 adjacent keyword positions on both sides of w;
[0075] (d) Activation function from hidden layer to output layer: Softmax function is used;
[0076] (e) The learning rate is set to 0.005;
[0077] (f) The decay factors (i.e., regularization coefficients) of all weight matrices are 0.01.
[0078] 3) All parameters of GCN and all parameters of multilayer perceptron when using Ego local network structure.
[0079] In this example, the specific parameters of GCN are set as follows:
[0080] (a) The weight matrix from the input layer to the hidden layer is of size M times L, where M is the dimension of the input layer (set to 200), which is equal to the dimension of the embedding vector of keyword w; L is the number of neurons in the hidden layer, which is set to the same dimension as the embedding vector (i.e., 200); and the weight matrix acts on all first-order neighboring nodes of each node in the graph; for example, when the graph is a keyword co-occurrence matrix, the node is each keyword, and its first-order neighboring nodes are other keywords that co-appear in the same article with it);
[0081] (b) Activation function from input layer to hidden layer: ReLU;
[0082] (c) The weight matrix between hidden layers, whose size is L times L; L is the number of neurons in the hidden layer, which is set to 200 and remains unchanged;
[0083] (d) Activation function between hidden layers: ReLU;
[0084] (e) The number of hidden layers is set to 2;
[0085] (f) The weight matrix between the hidden layer and the output layer is L times 1; that is, the output layer is a binary 0 / 1, representing the edge prediction of the graph as existing or not existing;
[0086] (g) Activation function from hidden layer to output layer: Sigmoid;
[0087] (h) The learning rate is set to 0.005;
[0088] (i) The decay factors (i.e., regularization coefficients) of all weight matrices are 0.01.
[0089] It is understandable that those skilled in the art may also use other methods to extract keyword embedding vectors, which are not limited here.
[0090] 102. Perform topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text collection.
[0091] Specifically, after completing the above-mentioned representation learning and training of keyword embedding vectors, keyword embedding vectors that combine text semantic information and various graph structure information will be obtained. You can select thematic clustering based on Xmeans to obtain keyword semantic topic clusters of the scientific research text collection.
[0092] 103. Based on the pre-trained language model, the scientific research text set within each preset time interval is calculated to obtain the semantic vector representing each scientific research text within each preset time interval.
[0093] 104. Based on the semantic vector of each scientific research text and the central vector of each keyword cluster, the probability distribution representation vector of each scientific research text is obtained.
[0094] Specifically, the semantic vector representing each scientific research text in each preset interval is calculated by using the pre-trained language model all-mpnet-base-v2. Then, the cosine similarity between the semantic vector of each scientific research text and the center vector of each keyword cluster is calculated in each preset interval, and the probability distribution representation vector of each scientific research text is obtained after regularization (specifically implemented by the Softmax equation). The formula of the Softmax equation is as follows:
[0095]
[0096] Among them, z i is the probability value of the i-th dimension of the probability distribution vector; cos i is the cosine similarity between the text semantic vector and the central semantic vector of the i-th keyword cluster; e represents the Euler number, cos i Then it is its index; I represents the dimension of the probability distribution vector, where i=1,...,I.
[0097] 105. Cluster the probability distribution representation vectors of all scientific research texts within each preset time interval to obtain text scientific research topic clusters.
[0098] 106. Extract corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each text scientific research topic cluster.
[0099] Specifically, the central probability distribution vector of each text scientific research theme cluster can be calculated in units of years, and the proportion or probability threshold of the keyword semantic cluster corresponding to each dimension in the probability distribution vector is set to 0.1, and the unimportant noise keyword semantic theme clusters (probability threshold < 0.1) are filtered out. Through TF-IDF technology, the corresponding keywords are extracted from the retained keyword semantic theme clusters, and sorted from high to low according to the TF-IDF value, and finally the Top-5 keywords are selected as the keywords representing and describing the text scientific research theme cluster.
[0100] 107. Based on the similarity of the probability distribution vectors of the center of the scientific research text theme clusters at adjacent preset intervals and the keyword overlap ratio, the evolutionary relationship between the scientific research text themes is obtained.
[0101] Specifically, after the above steps, the vector clusters and corresponding center vectors of scientific research texts at different preset time intervals have been obtained. By calculating the similarity of the center vectors of each pair of text scientific research theme clusters at adjacent preset time intervals, that is, the similarity of the t-1 cluster center and the t time cluster center vector, the threshold is set to 0.8. If the similarity is greater than the threshold, it is considered that the theme at time t-1 evolved from the theme at time t. Thus, the evolution path between themes of different time series is formed, which can clearly and dynamically show the change process of the theme over time, which is more in line with the needs of current subject analysis.
[0102] On this basis, the correlation between two text scientific research theme clusters is further determined by calculating the total ratio of keywords in the text scientific research theme clusters within adjacent preset time intervals.
[0103] Specifically, in the i-th layer at the preset time intervals of t and t-1, there are and Two clusters, their respective keyword overlap and for:
[0104]
[0105]
[0106] At the same time, two coincidence thresholds ∈ and ∈1 (∈1<<∈) are set to judge the association relationship between two clusters, ∈ is the coincidence threshold of normal association, and ∈1 is the coincidence threshold of noise association. Figure 2 Shows when and When taking different values, and The association between two clusters. Figure 2 As shown, the emergence, differentiation, merger, weakening and extinction process of existing themes at different preset time intervals can be visualized.
[0107] As a specific application of the above embodiment, refer to Figure 3 As shown, the subject monitoring method can slice the article collection (which may include structured data such as funds, patents, and papers) in years to obtain article subsets in different years. For each article subset in each year (for example, there are 5,000 articles in each year), extract keywords and calculate the semantic embedding vector of each keyword in the article subset. After that, cluster the keyword semantic vectors to obtain keyword semantic clusters (for example, 30 keyword semantic theme clusters are formed). For each article in the article subset of the year, calculate the cosine similarity between its semantic vector and the center vector of each keyword semantic theme cluster (a total of 5000x30).
[0108] For each article, all the calculated cosine similarities are regularized to obtain the probability distribution representation vector of the article (assuming that the dimension is 30 and each dimension corresponds to a keyword cluster). The probability distribution vectors of all articles in each year are clustered to obtain text scientific research theme clusters. The central probability distribution vector of each text scientific research theme cluster is calculated, and the unimportant noise keyword semantic theme clusters are filtered out by a preset threshold (set to 0.1). The corresponding keywords are extracted from the retained keyword semantic theme clusters through the TF-IDF value (these keywords are the keywords that appear in the articles under the article cluster), and after sorting from high to low by TF-IDF, the TOP5 keywords are selected as the keywords that describe and represent the text scientific research theme cluster. By calculating the text theme similarity and keyword overlap ratio under adjacent time slices, the evolution law of the theme is formed.
[0109] Reference Figure 4 As shown, an embodiment of the present invention further provides a subject monitoring device, which can implement each step of the subject monitoring method when running, and the device may include:
[0110] The keyword embedding vector generation module 401 is used to jointly process the scientific research text collection based on the pre-trained language model and the graph convolutional neural network to obtain a keyword embedding vector containing text semantics and graph structure.
[0111] The first text topic clustering module 402 is used to perform topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text set.
[0112] The semantic vector generation module 403 is used to calculate the scientific research text set within each preset time interval based on the pre-trained language model to obtain the semantic vector representing each scientific research text within each preset time interval.
[0113] The representation vector generation module 404 is used to obtain the probability distribution representation vector of each scientific research text based on the semantic vector of each scientific research text and the center vector of each keyword cluster.
[0114] The second text topic clustering module 405 is used to cluster the probability distribution representation vectors of all scientific research texts within each preset time interval to obtain text scientific research topic clusters.
[0115] The text scientific research theme cluster description module 406 is used to extract corresponding keywords from the keyword semantic theme cluster based on the central probability distribution vector of each text scientific research theme cluster. And
[0116] The text theme evolution determination module 407 obtains the evolution relationship between scientific research text themes based on the similarity of the probability distribution vectors of the center of scientific research text theme clusters at adjacent preset intervals and the keyword overlap ratio.
[0117] Furthermore, the keyword embedding vector generation module 401 is specifically used for:
[0118] The pre-extracted keyword set is processed based on the pre-trained language model to obtain a first keyword embedding vector representing the global context.
[0119] The graph structure data of the pre-generated keywords is processed based on the graph convolutional neural network to obtain a second keyword embedding vector representing the graph node.
[0120] The first keyword embedding vector and the second keyword embedding vector are weightedly fused based on a preset objective function to obtain a keyword embedding vector.
[0121] Furthermore, the keyword embedding vector generating module 401 is also specifically used for:
[0122] After merging the keyword set obtained based on the preset statistical model with the keyword set obtained based on the graph theory method, a new keyword set is obtained.
[0123] After filtering out noise words and uncommon words from the new keyword set, a keyword set is obtained.
[0124] Furthermore, the keyword embedding vector generating module 401 is also specifically used for:
[0125] Using the keywords in the scientific research text as links, we construct co-occurrence networks and collaboration networks in turn to obtain graph structured data.
[0126] Furthermore, the characterization vector generation module 404 is specifically used for:
[0127] The cosine similarity between the semantic vector of each scientific research text and the center vector of each keyword cluster within each preset interval is calculated, and the probability distribution representation vector of each scientific research text is obtained after regularization.
[0128] Furthermore, the text research theme cluster description module 406 is specifically used for:
[0129] The central probability distribution vector of each text scientific research topic cluster is calculated separately, and the noise keyword semantic topic clusters are filtered out based on the threshold.
[0130] Extract the corresponding keywords from the retained keyword semantic topic clusters.
[0131] Furthermore, the text topic evolution determination module 407 is specifically used for:
[0132] If the similarity of the probability distribution vectors of the center of the scientific research text topic clusters at adjacent preset time intervals is greater than 0.8, it is determined that there is an evolutionary relationship between the topics at adjacent preset time intervals.
[0133] Reference Figure 5 As shown, an embodiment of the present invention further provides an electronic device, which may include: a memory 501 and a processor 502 .
[0134] The memory 501 is used to store programs.
[0135] The processor 502 is used to execute the program to implement the various steps of the subject monitoring method described in the above embodiment.
[0136] An embodiment of the present invention further provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various steps of the subject monitoring method described in the above embodiment are implemented.
[0137] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0138] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0139] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted according to actual needs, and the technical features recorded in the embodiments may be replaced or combined.
[0140] The modules and sub-modules in the devices and terminals of the various embodiments of the present invention may be combined, divided, or deleted according to actual needs.
[0141] In the several embodiments provided by the present invention, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, such as multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0142] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0143] In addition, each functional module or submodule in each embodiment of the present invention may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0144] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0145] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0146] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0147] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A topic monitoring method, It is characterized in that include: Based on the pre-trained language model and graph convolutional neural network, the scientific research text collection is jointly processed to obtain the keyword embedding vector containing text semantics and graph structure; Performing topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text set; Calculating the scientific research text set within each preset time interval based on the pre-trained language model to obtain a semantic vector representing each scientific research text within each preset time interval; Based on the semantic vector of each scientific research text and the center vector of each keyword cluster, the probability distribution representation vector of each scientific research text is obtained: the cosine similarity of the semantic vector of each scientific research text and the center vector of each keyword cluster in each preset interval is calculated, and the probability distribution representation vector of each scientific research text is obtained after regularization processing of the Softmax equation. The formula of the Softmax equation is as follows: Among them, z i is the probability value of the i-th dimension of the probability distribution vector; cos i is the cosine similarity between the text semantic vector and the central semantic vector of the i-th keyword cluster; e represents the Euler number, cos i Then it is its index; I represents the dimension of the probability distribution vector, where i = 1, ..., I; Cluster the probability distribution representation vectors of all scientific research texts within each preset time interval to obtain the scientific research text topic clusters; Extracting corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each scientific research text topic cluster; Based on the similarity of the probability distribution vectors of the center of the scientific research text topic clusters at adjacent preset time intervals and the keyword overlap ratio, the evolutionary relationship between the scientific research text topics is obtained.
2. The subject monitoring method according to claim 1, It is characterized in that The scientific research text collection is jointly processed based on the pre-trained language model and the graph convolutional neural network to obtain a keyword embedding vector containing text semantics and graph structure, including: Processing the pre-extracted keyword set based on the pre-trained language model to obtain a first keyword embedding vector representing a global context; Processing the pre-generated graph structure data of the keywords based on the graph convolutional neural network to obtain a second keyword embedding vector representing the graph node; The first keyword embedding vector and the second keyword embedding vector are weightedly fused based on a preset objective function to obtain the keyword embedding vector.
3. The subject monitoring method according to claim 2, It is characterized in that The process of obtaining the keyword set includes: After combining the keyword set obtained based on the preset statistical model with the keyword set obtained based on the graph theory method, a new keyword set is obtained; The new keyword set is filtered for noise words and uncommon words to obtain the keyword set.
4. The subject monitoring method according to claim 3, It is characterized in that The process of obtaining the graph structure data includes: Using the keywords in the scientific research text as links, a co-occurrence network and a collaboration network are sequentially constructed to obtain the graph structure data.
5. The subject monitoring method according to claim 1, It is characterized in that The extracting corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each scientific research text topic cluster includes: Calculate the central probability distribution vector of each scientific research text topic cluster respectively, and filter out the noise keyword semantic topic clusters based on the threshold; Extract the corresponding keywords from the retained keyword semantic topic clusters.
6. The subject monitoring method according to claim 1, It is characterized in that The similarity of the probability distribution vectors of the center of the scientific research text theme clusters at adjacent preset intervals and the keyword overlap ratio are used to obtain the evolutionary relationship between the scientific research text themes, including: If the similarity of the central probability distribution vectors of the scientific research text topic clusters at adjacent preset time intervals is greater than 0.8, it is determined that there is an evolutionary relationship between the topics at adjacent preset time intervals.
7. A subject monitoring device, It is characterized in that include: The keyword embedding vector generation module is used to jointly process the scientific research text collection based on the pre-trained language model and the graph convolutional neural network to obtain the keyword embedding vector containing the text semantics and graph structure; A first text topic clustering module is used to perform topic clustering on the keyword embedding vectors to obtain keyword semantic topic clusters of the scientific research text set; A semantic vector generation module, used to calculate the scientific research text set within each preset time interval based on the pre-trained language model to obtain a semantic vector representing each scientific research text within each preset time interval; The representation vector generation module is used to obtain the probability distribution representation vector of each scientific research text based on the semantic vector of each scientific research text and the center vector of each keyword cluster: the cosine similarity between the semantic vector of each scientific research text and the center vector of each keyword cluster in each preset interval is calculated, and the probability distribution representation vector of each scientific research text is obtained after regularization processing by the Softmax equation. The formula of the Softmax equation is as follows: Among them, z i is the probability value of the i-th dimension of the probability distribution vector; cos i is the cosine similarity between the text semantic vector and the central semantic vector of the i-th keyword cluster; e represents the Euler number, cos i Then it is its index; I represents the dimension of the probability distribution vector, where i = 1, ..., I; The second text topic clustering module is used to cluster the probability distribution representation vectors of all scientific research texts within each preset time interval to obtain scientific research text topic clusters; A scientific research text topic cluster description module, used to extract corresponding keywords from the keyword semantic topic cluster based on the central probability distribution vector of each scientific research text topic cluster; and The text topic evolution determination module obtains the evolutionary relationship between scientific research text topics based on the similarity of the probability distribution vectors of the center of scientific research text topic clusters at adjacent preset intervals and the keyword overlap ratio.
8. An electronic device, It is characterized in that include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the subject monitoring method as described in any one of claims 1 to 6.
9. A readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, each step of the subject monitoring method as described in any one of claims 1 to 6 is implemented.
