Data mining method and device based on LDA topic model, equipment and medium

Through time slicing processing of text information in the academic resource field and adaptive LDA topic model training, combined with the topic reduction algorithm, the problem of the LDA topic model's insufficient topic analysis capabilities in the academic resource field is solved, and the cutting-edge topic technical information is realized. Accurate mining and improvement of data mining results.

CN118535722APending Publication Date: 2024-08-23TONGFANG KNOWLEDGE NETWORK DIGITAL PUBLISHING TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410490889.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing LDA topic model lacks the ability to analyze related topics in the field of academic resources, is difficult to directly apply to the field of academic resources, and cannot effectively mine cutting-edge topic technical information.

Method used

By performing time slicing processing on text information in the academic resource field, an adaptive LDA topic model is trained, a topic-keyword distribution matrix is ​​generated, and a topic reduction algorithm is used to generate a topic connected graph to determine the topic keywords for each topic.

Benefits of technology

It realizes the accurate mining of cutting-edge subject technical information in the field of academic resources, improves the accuracy of data mining results, and can effectively match the data mining needs in the field of academic resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535722A
    Figure CN118535722A
Patent Text Reader

Abstract

The invention discloses a data mining method, device and equipment based on an LDA topic model and a medium, and relates to the technical field of data analysis, and the method comprises the following steps: carrying out time slicing processing on collected text information to obtain a text set based on a time sequence label; determining a topic-keyword distribution matrix of the text set by utilizing a self-adaptive LDA topic model obtained by training; according to the topic-keyword distribution matrix, generating a topic connected graph for each topic by using a topic reduction algorithm; and according to the topic connected graph of each topic, determining a topic keyword of each topic. The method and the device are suitable for accurately mining the leading-edge theme technology information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data analysis technology, and in particular to a data mining method, device, equipment and medium based on an LDA topic model. Background Art

[0002] The discovery of cutting-edge topics in academic resources is of great reference significance for universities, scholars, and research institutions to quickly and comprehensively grasp the hot spots of cutting-edge technology research and technological innovation development decisions. At present, a relatively mature method system has been formed for literature mining research topics and evolution analysis, which can be roughly divided into word frequency analysis, co-word analysis, citation analysis, and text mining, but most of the existing methods are difficult to directly apply to the field of academic resources.

[0003] The existing LDA topic model (LDA: Latent Dirichlet Allocation) is widely used in many fields such as text clustering, personalized recommendation and bibliometrics. In order to optimize the modeling effect and improve the accuracy of topic analysis, scholars have improved the LDA topic model from many aspects such as model algorithm and theoretical basis. In terms of the application of the LDA topic model, it mainly targets texts such as Weibo hot spots, patent technologies, book reviews, etc., and lacks analysis methods for academic resource-related topics. Most of these methods are difficult to directly apply to the field of academic resources. In the field of academic resources, existing quantitative research mostly uses bibliometric methods such as publication volume, citations and citation rates, which cannot accurately mine cutting-edge subject technology information. Summary of the invention

[0004] In view of this, the present application provides a data mining method, device, equipment and medium based on the LDA topic model, the main purpose of which is to solve the technical problems that the existing LDA topic model lacks the ability to analyze topics related to academic resources and the ability to mine cutting-edge topic technology information.

[0005] According to one aspect of the present application, a data mining method based on an LDA topic model is provided, the method comprising:

[0006] By performing time slicing processing on the collected text information, a text set based on time series labels is obtained;

[0007] Determine the topic-keyword distribution matrix of the text set by using the trained adaptive LDA topic model;

[0008] According to the topic-keyword distribution matrix, a topic connection graph for each topic is generated using a topic reduction algorithm;

[0009] According to the topic connectivity graph of each topic, topic keywords of each topic are determined.

[0010] According to another aspect of the present application, a data mining device based on an LDA topic model is provided, the device comprising:

[0011] A preprocessing module is used to obtain a text set based on time series labels by performing time slicing processing on the collected text information;

[0012] A first determination module is used to determine the topic-keyword distribution matrix of the text set by using the trained adaptive LDA topic model;

[0013] A generation module, used to generate a topic connectivity graph for each topic using a topic reduction algorithm according to the topic-keyword distribution matrix;

[0014] The second determination module is used to determine the topic keywords of each topic according to the topic connectivity graph of each topic.

[0015] According to another aspect of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned data mining method based on the LDA topic model is implemented.

[0016] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned data mining method based on the LDA topic model when executing the program.

[0017] By means of the above technical scheme, the data mining method, device, equipment and medium based on the LDA topic model provided by the present application are compared with the existing technical schemes that are difficult to be directly applied to the academic resource field. The present application obtains a text set based on time series labels by time slicing the collected text information; determines the topic-keyword distribution matrix of the text set by using the target adaptive LDA topic model obtained by training; generates a topic connectivity graph for each topic by using the topic reduction algorithm according to the topic-keyword distribution matrix; determines the topic keywords of each topic according to the topic connectivity graph of each topic. It can be seen that, combined with the timeliness characteristics of the academic resource field, the unsupervised adaptive LDA topic model is trained to obtain the topic-keyword distribution matrix of the determined text set, which can effectively match the data mining needs in the academic resource field, and further optimizes and determines the topic keywords of each topic based on the topic reduction algorithm by the topic-keyword distribution matrix of the text set output by the adaptive LDA topic model, thereby improving the accuracy of the data mining results, so that the final determined topic keywords can accurately mine the cutting-edge topic technology information in the academic resource field.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 A schematic diagram of a data mining method based on an LDA topic model provided in an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of a process of another data mining method based on an LDA topic model provided in an embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram of a process of a model training method based on an LDA topic model provided in an embodiment of the present application is shown;

[0023] Figure 4 A schematic diagram of a process of a topic reduction method based on an LDA topic model provided in an embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of the structure of a data mining device based on an LDA topic model provided in an embodiment of the present application is shown;

[0025] Figure 6 A structural schematic diagram of another data mining device based on the LDA topic model provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0027] The application of existing LDA topic models is mainly aimed at texts such as microblog hot spots, patent technologies, book reviews, etc., lacks analysis methods for academic resource-related topics, and is difficult to directly apply to technical problems in the field of academic resources. This embodiment provides a data mining method based on the LDA topic model, which can combine the timeliness characteristics of the academic resource field, train an unsupervised adaptive LDA topic model, and further optimize and determine the topic keywords of each topic based on the topic reduction algorithm, so as to accurately mine cutting-edge topic technology information. Figure 1As shown, the method is applied to a computer device such as a server as an example for explanation, wherein the server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN: Content Delivery Network), and big data and artificial intelligence platforms. The above method includes the following steps:

[0028] Step 101: obtain a text set based on time series labels by performing time slicing processing on the collected text information.

[0029] In this embodiment, text information in the field of academic resources is collected, for example, relevant text information is obtained from different sources of academic resources such as funds, projects, and conferences. According to the needs of actual application scenarios and taking into account the timeliness characteristics of the academic resource field, text information in the field of academic resources within a certain time period is collected, that is, by adding time series tags to the text information, a text set within a certain time range is constructed. The text information here is the keywords in each text and the TF-IDF value of each keyword. The TF-IDF value here is the initial weight obtained based on the position information of each keyword in the text.

[0030] Step 102: Using the trained target adaptive LDA topic model, determine the topic-keyword distribution matrix of the text set.

[0031] In this embodiment, based on the characteristics of the scientific research field, an adaptive LDA topic model is trained based on a text set based on time series labels, and combined with Gibbs sampling to train an adaptive LDA topic model to achieve the recognition of cutting-edge field topics. It should be noted that when applying LDA topic modeling, the number of iterations of model training and the selection of the number of topics K have a direct impact on the effectiveness of model training. Therefore, this embodiment sets the convergence condition of the model based on the norm, and evaluates whether the adaptive LDA topic model is optimal based on the ratio of the text set perplexity to the topic variance, thereby determining the topic-keyword distribution matrix of the text set based on the time series label based on the optimal adaptive LDA topic model.

[0032] Step 103: Generate a topic connectivity graph for each topic using a topic reduction algorithm based on the topic-keyword distribution matrix.

[0033] In this embodiment, the subject-keyword distribution matrix of the scientific research field is obtained through the training of the adaptive LDA topic model, and the keywords are used as nodes, and the co-occurrence relationship between keywords in academic research data is used as edges to form a term graph for each topic. The term graph of each topic is processed using the topic reduction algorithm to generate a topic connectivity graph for each topic.

[0034] Step 104: Determine the topic keywords of each topic according to the topic connectivity graph of each topic.

[0035] In this embodiment, for the topic connectivity graph of each topic, it is determined whether the number of terms in the topic connectivity graph is less than a threshold value. If the number of terms in the topic connectivity graph is less than or equal to the threshold value, the algorithm is terminated and all terms in the current topic connectivity graph are used as topic terms. If the number of terms in the topic connectivity graph is greater than the threshold value, the topic connectivity graph is regenerated through the cut points, and all terms in the regenerated topic connectivity graph are used as topic terms.

[0036] For this embodiment, the above scheme can be followed to obtain a text set based on time series labels by time slicing the collected text information; the target adaptive LDA topic model obtained by training is used to determine the topic-keyword distribution matrix of the text set; based on the topic-keyword distribution matrix, a topic connectivity graph for each topic is generated using a topic reduction algorithm; based on the topic connectivity graph of each topic, the topic keywords of each topic are determined. Compared with the existing technical schemes that are difficult to be directly applied to the academic resource field, this embodiment can combine the timeliness characteristics of the academic resource field to train an unsupervised adaptive LDA topic model so that the topic-keyword distribution matrix of the determined text set can effectively match the data mining needs in the academic resource field, and the topic-keyword distribution matrix of the text set output by the adaptive LDA topic model is further optimized based on the topic reduction algorithm to determine the topic keywords of each topic, thereby improving the accuracy of the data mining results, so that the finally determined topic keywords can accurately mine the cutting-edge topic technology information in the academic resource field.

[0037] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another data mining method based on the LDA topic model is provided. This embodiment can be applied in the field of frontier subject technology information mining. This embodiment trains an adaptive LDA topic model based on a text set with time series labels, which can improve the accuracy of frontier subject technology information mining in terms of timeliness. Figure 2 As shown, the method includes:

[0038] Step 201 : By performing time slicing processing on the collected text information, keywords in each text based on time series tags and TF-IDF values ​​of the keywords are obtained.

[0039] In implementation, the input text set of the existing LDA topic model is composed of paragraph text, which is used to realize keyword mining of paragraph text. Different from the existing LDA topic model, the text information of this embodiment includes the keywords in each text and the TF-IDF value of each keyword. The input text set of the adaptive LDA topic model is the keywords and the TF-IDF value of each keyword, that is, by time slicing the previous academic resources in the library, the academic resources here are preprocessed, and the academic resources are keywords and the TF-IDF value of each keyword. Therefore, while ensuring the timeliness of academic resources, the training accuracy of the adaptive LDA topic model is improved by preprocessing the text set, and the matching degree of the adaptive LDA topic model to match the data mining needs in the academic resource field is improved, and then in the case of unsupervised, the automatic mining of the frontier fields of the academic research data in the library is realized, and then the intelligent screening of the model output results is realized by using the topic reduction algorithm.

[0040] Step 202: perform disambiguation processing on the keywords and weight normalization processing on the TF-IDF values ​​of the keywords to obtain a text set based on time series labels.

[0041] In implementation, text information with time series labels can reflect the temporality of cutting-edge hotspots. Therefore, in order to ensure the accuracy of modeling of the adaptive LDA topic model, this embodiment obtains relevant text information from different sources such as funds, projects, conferences, etc. in the academic resources in the library. The text information is the keywords in each text and the TF-IDF value of the keywords. After time slicing, the text set is preprocessed to form a text set based on time series labels. Specifically, each text in the text set (academic research data set) is a set of keywords and TF-IDF of the text, and the keywords are disambiguated and weighted normalized to improve the efficiency and accuracy of frontier field topic identification. Weight normalization formula:

[0042] W * =log 10 (W)+2

[0043] Among them, W* is the keyword weight after standardization, W is the initial weight of the keyword (TF-IDF value), and the initial weight is the initial weight obtained based on the position information of each keyword in the text.

[0044] Step 203: Determine the topic-keyword distribution matrix of the text set using the trained target adaptive LDA topic model.

[0045] During implementation, the training steps of the target adaptive LDA topic model include: setting the starting number of topics and the maximum number of topics, and initializing the adaptive LDA topic model according to the set step size; based on the ratio of the text set perplexity to the topic variance, evaluating the adaptive LDA topic model after training convergence, and obtaining the target adaptive LDA topic model.

[0046] In order to illustrate the specific implementation methods of the steps in the above implementation, as a preferred embodiment, the step of evaluating the adaptive LDA topic model after training convergence based on the ratio of text set perplexity to topic variance to obtain the target adaptive LDA topic model includes: calculating the ratio of text set perplexity to topic variance of the adaptive LDA topic model after training convergence; continuing to perform model training on the adaptive LDA topic model after training convergence until the ratio of text set perplexity to topic variance of the adaptive LDA topic model after training convergence is minimized, thereby obtaining the target adaptive LDA topic model.

[0047] Furthermore, before the step of continuing to train the adaptive LDA topic model after the training convergence until the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after the training convergence is minimized, it also includes: determining the current number of topics of the adaptive LDA topic model after the training convergence; resetting the starting number of topics and the maximum number of topics according to the current number of topics, and re-initializing the adaptive LDA topic model after the training convergence according to the reset step size. Wherein, the topic variance refers to the topic variance of the adaptive LDA topic model calculated based on the divergence between each topic and its topic-keyword probability distribution mean.

[0048] In practice, the adaptive LDA topic model based on Gibbs sampling does not have an obvious termination condition for ending model training. As the number of iterations increases, the topic-word distribution matrix will gradually stabilize. More iterations will not improve the training results but will increase the time cost of model training. Therefore, in order to train the adaptive LDA topic model, the change trend of the topic-word distribution matrix is ​​used to measure whether to terminate the training of the adaptive LDA topic model, that is, the termination condition of the model training is set, specifically: the F-norm is used to calculate the change range △f of the topic-word distribution matrix output by two adjacent model trainings, and it is set that when the change range △f is less than the threshold, the current topic model training ends.

[0049] In implementation, the Frobenius norm, or F-norm for short, is a matrix norm, denoted by ||·|| FThe F-norm of matrix A (topic-word distribution matrix) is defined as the root sum of the squares of the absolute values ​​of the elements of matrix A. The calculation formula is as follows:

[0050]

[0051] After each training is completed, the topic-word distribution matrix is ​​evaluated by the F-norm to determine the change amplitude △f of the topic-word distribution matrix after the current training iteration. If the value of △f is less than the threshold for n consecutive times, the termination condition of the model training is met and the current topic model training is completed.

[0052] like Figure 3 As shown in the figure, the training process of the adaptive LDA topic model is:

[0053] Step 301: Obtain a text set, which is a collection of keywords and TF-IDF of scientific research data.

[0054] Step 302: Select the initial number of topics K start , K maximum value K max , step size change array S = {S max ,S max / 2,…,1} and the initial step size. For example, select the initial K value K start , K maximum value K max , step size change array S = {S max ,S max / 2,…,1}, and select the initial step size S = S max , and according to {K start ,K start +S,…,K max} to conduct model training.

[0055] Step 303: Initialize the adaptive LDA topic model. Based on the text vector space I=

[0056] {I 1 ,I 2 ,I 3 ,…,I n Initialize the adaptive LDA topic model parameters: document-topic distribution, topic distribution, topic-keyword distribution.

[0057] Step 304: training the adaptive LDA topic model. For each keyword w in each document in the text set, a topic number z is randomly assigned, and the model parameters (α, β, κ, η, i) are trained; the text set is rescanned, and the Gibbs sampling formula is used to update the topic of each keyword w, and the keywords in the text set are updated.

[0058] Step 305: F-norm determines whether the adaptive LDA topic model has converged. Use the F-norm to evaluate the difference between the variational distribution and the posterior distribution until the adaptive LDA topic model meets the convergence condition. If the adaptive LDA topic model evaluated by the F-norm meets the convergence condition, proceed to step 306, otherwise continue to step 305.

[0059] Step 306: Use P-Var to evaluate the topic-keyword distribution of the adaptive LDA topic model and reset the initial topic number K value K best . Evaluate the topic-keyword distribution after model training convergence, and select the number of topics K with the smallest P-Var value best ; Set K start =K best -S max , K max =K best +S max , S=S max / 2, continue training the model until S=1, select the topic-keyword distribution matrix corresponding to the output when the P-Var value is minimum, and determine the number of topics as the target number of topics for the current model.

[0060] Among them, determining the number of target topics: The topic extraction effect of the adaptive LDA topic model is directly related to the potential topic number K value. The topic extraction result is sensitive to the K value, so the selection of the K value is very important. This embodiment uses perplexity and topic similarity (topic variance) to determine the number of target topics.

[0061] Perplexity: Generally used to evaluate the quality of language models. For the adaptive LDA topic model, the lower the perplexity, the better the clustering effect, so the perplexity generally decreases as the number of potential topics increases. In the adaptive LDA topic model, the perplexity calculation formula is as follows:

[0062]

[0063] Where D represents the text set, M is the number of documents in the text set, and N d represents the number of keywords in the dth document, w d represents the keywords in the dth document, p(w d ) represents the keyword w in the dth document d The probability of occurrence.

[0064] Topic similarity: JS divergence measures the similarity of two probability distributions. It is a variant of KL divergence and solves the asymmetric problem of KL divergence. JS divergence is used to measure the difference between a topic and its mean, and to calculate the topic variance. The topic variance is used to measure the degree of deviation between a topic and its mean, that is, the average of the sum of the squares of the distances between each topic and its mean, expressed as Var, which can measure the overall difference and stability between potential topics. The topic variance calculation formula is as follows:

[0065]

[0066] Among them, Var is the topic variance, T represents the topic extracted by the adaptive LDA topic model, K represents the number of topics, and D js represents the JS divergence, Represents the mean of topic-keyword probability distribution φ.

[0067] The perplexity reflects the predictive ability of the model, but blindly pursuing the predictive ability of the model will inevitably lead to the problem of too many extracted topics. The larger the value of the topic variance, the greater the difference between topics, the better the distinction between topics, and the more stable the topic structure. Therefore, the combination of the two can effectively solve the problem of low topic recognition.

[0068] The calculation formula of Perplexity-Var indicator is as follows:

[0069]

[0070] Where D is the text set, Perplexity(D) is the perplexity of the text set, and Var(T) is the topic variance of the text set.

[0071] The meaning of the Perplexity-Var (P-Var) indicator: Considering the generalization ability of the model, the smaller the Perplexity, the better the generalization ability of LDA; considering the topic extraction effect of the adaptive LDA topic model, when the average similarity of the topic structure is the smallest, the corresponding adaptive LDA topic model is optimal, and the smaller the average similarity of the topic structure, the greater the difference between topics, and the greater the topic variance. Therefore, when the P-Var indicator is the smallest, the corresponding adaptive LDA topic model is optimal.

[0072] Step 204: Based on the ranking results of the topic keyword distribution matrix, a certain number of keywords are extracted for each topic as nodes, and the co-occurrence relationship between keywords is used as an edge to obtain a term graph for each topic, wherein the term graph includes multiple connected graphs.

[0073] Step 205: For each connected graph, a topic reduction algorithm is used to obtain a topic connected graph for each topic.

[0074] To illustrate the specific implementation of step 205, as a preferred embodiment, step 205 specifically includes: obtaining a score for each connected graph based on the number of terms in each connected graph, the number of high-weight nodes and the total weight of the connected graph; and evaluating and obtaining a topic connected graph for representing the semantics of the term graph of each topic based on the score of each connected graph.

[0075] Step 206: Determine the topic keywords of each topic according to the topic connectivity graph of each topic.

[0076] like Figure 4 As shown in Figure 2, the specific process of generating a term graph using topic reduction is as follows:

[0077] Step 401: Based on the trained adaptive LDA topic model, a topic-keyword distribution matrix in the scientific research field is obtained.

[0078] Step 402: Generate a term graph through word co-occurrence information. Sort the keyword distribution of each topic, select the first 20 keywords as nodes, and use the co-occurrence relationship between keywords in academic research data as edges based on the TF-IDF of the keywords in the text set to form a term graph for each topic, so as to finally obtain the scientific research field theme through the term graph and the topic reduction algorithm.

[0079] Step 403, evaluate the connectivity graph, and select the connectivity graph that meets the requirements as the topic connectivity graph. For each topic's term graph, it may contain multiple connectivity graphs, and the keywords in each connectivity graph are semantically related, while the semantics between connectivity graphs may be different. Therefore, removing some scattered and small connectivity graphs in the term graph can make the semantics of the topic more concentrated and clear. When a topic's term graph contains multiple connectivity graphs, it is evaluated by three aspects: the number of terms, the number of high-weight nodes, and the total weight of the connectivity graph. The number of terms is the total number of terms in the connectivity graph, the number of high-weight nodes is the number of terms within a certain range of weights (within 10) in the connectivity graph, and the total weight of the connectivity graph is the sum of the weights of all terms in the connectivity graph. When the connectivity Figure 3 The higher the total score of each aspect, the more the connectivity graph can represent the semantics of the entire term graph, and it is used as the topic connectivity graph of the topic.

[0080] Step 404: Generate a term set. Determine whether the number of terms in the connected graph is less than a threshold. If so, terminate the algorithm to obtain a term set. All terms in the term set are used as subject words and enter step 405. If the number of terms in the connected graph is greater than the threshold, generate a term set through a cut point. All terms in the generated term set are used as subject words and enter step 405.

[0081] Step 405: Obtain topic keywords according to the target topic connectivity graph.

[0082] By applying the technical solution of the present embodiment, the unsupervised target adaptive LDA topic model is used to automatically mine the frontier fields of the academic research data in the library, and the word graph and the theme reduction algorithm are used. In the frontier field analysis process, no manual supervision is required, and the scheduled task can be automatically completed. In addition, the target adaptive LDA topic model can realize the intelligent screening of the target theme results, rather than a fixed number or manual setting, so as to effectively solve the frontier theme mining in the academic research field. Compared with the existing technical solutions that are difficult to be directly applied to the academic resource field, combined with the characteristics of the timeliness of the academic resource field, the training is based on the unsupervised adaptive LDA topic model, so that the theme of the determined text set-keyword distribution matrix can effectively match the data mining needs in the academic resource field, and by the theme of the text set output by the adaptive LDA topic model-keyword distribution matrix, the theme keywords of each theme are further optimized based on the theme reduction algorithm, so as to improve the accuracy of the data mining results, so that the theme keywords finally determined can accurately mine the frontier theme technology information in the academic resource field.

[0083] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a data mining device based on the LDA topic model, such as Figure 5 As shown, the device includes: a preprocessing module 51, a first determining module 53, a generating module 54, and a second determining module 55.

[0084] The preprocessing module 51 is used to obtain a text set based on time series labels by performing time slicing processing on the collected text information.

[0085] The first determination module 53 is used to determine the topic-keyword distribution matrix of the text set by using the trained target adaptive LDA topic model.

[0086] The generating module 54 is used to generate a topic connectivity graph for each topic using a topic reduction algorithm according to the topic-keyword distribution matrix.

[0087] The second determining module 55 is used to determine the topic keywords of each topic according to the topic connectivity graph of each topic.

[0088] In specific application scenarios, such as Figure 6 As shown, the data mining device also includes: a training module 32.

[0089] In a specific application scenario, the text information includes keywords in each text and the TF-IDF values ​​of the keywords, and the preprocessing module 51 includes a slicing unit 511 and a disambiguation unit 512 .

[0090] The slicing unit 511 is used to obtain keywords and TF-IDF values ​​of the keywords in each text based on the time series tags by performing time slicing processing on the collected text information.

[0091] The disambiguation unit 512 is used to perform disambiguation processing on the keywords and weight normalization processing on the TF-IDF values ​​of the keywords to obtain a text set based on time series labels.

[0092] In a specific application scenario, the training module 52 corresponds to the training steps of the target adaptive LDA topic model, and the training module 52 includes: a setting unit 521 and an evaluation unit 522 .

[0093] The setting unit 521 is used to set the starting number of topics and the maximum number of topics, and initialize the adaptive LDA topic model according to the set step size.

[0094] The evaluation unit 522 is used to evaluate the adaptive LDA topic model after training convergence based on the ratio of the text set perplexity to the topic variance, so as to obtain a target adaptive LDA topic model.

[0095] In a specific application scenario, the evaluation unit 522 is specifically used to calculate the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after training convergence; and to continue model training for the adaptive LDA topic model after training convergence until the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after training convergence is minimized, thereby obtaining the target adaptive LDA topic model.

[0096] In a specific application scenario, before the step of continuing to perform model training on the adaptive LDA topic model after training convergence until the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after training convergence is minimized, it also includes: determining the current number of topics of the adaptive LDA topic model after training convergence; resetting the starting number of topics and the maximum number of topics according to the current number of topics, and re-initializing the adaptive LDA topic model after training convergence according to the reset step size.

[0097] In a specific application scenario, the generating module 54 includes: an extracting unit 541 and a reducing unit 542 .

[0098] The extraction unit 541 is used to extract a certain number of keywords as nodes for each topic based on the sorting results of the topic-keyword distribution matrix, and use the co-occurrence relationship between the keywords as edges to obtain a term graph for each topic, wherein the term graph includes multiple connected graphs.

[0099] The reduction unit 542 is used to obtain a topic connected graph for each topic using a topic reduction algorithm for each connected graph.

[0100] In a specific application scenario, the reduction unit 542 is specifically used to obtain a score for each connected graph based on the number of terms, the number of high-weight nodes and the total weight of the connected graph in each connected graph; and, based on the score of each connected graph, evaluate and obtain a topic connected graph for representing the semantics of the term graph of each topic.

[0101] It should be noted that for other corresponding descriptions of the functional units involved in the data mining device based on the LDA topic model provided in the embodiment of the present application, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.

[0102] Based on the above Figure 1 and Figure 2 The method shown in the embodiment of the present application accordingly provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The data mining method based on LDA topic model is shown.

[0103] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0104] Based on the above Figure 1 , Figure 2 The method shown, and Figure 5 , Figure 6 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a computer device, which can be a personal computer, a server, a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The data mining method based on LDA topic model is shown.

[0105] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0106] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0107] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of a computer device and supports the operation of information processing programs and other software and / or programs. The network communication module is used to achieve communication between components within the storage medium and with other hardware and software in the physical device.

[0108] By the description of the above implementation mode, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, and can also be implemented by hardware. By applying the technical solution of the present application, compared with the existing fixed question group mode, the technical solution of not combining customer portraits and answering situations to realize targeted questioning is compared, the present embodiment can utilize unsupervised target adaptive LDA topic model, automatically mine its frontier field to the academic research data in the library, and utilize term graph and theme reduction algorithm, do not need manual supervision in the frontier field analysis process, can automatically complete the scheduled task. In addition, the target adaptive LDA topic model can realize the intelligent screening of target topic results, rather than fixed number or manual setting, so as to effectively solve the frontier topic mining in the academic research field.

[0109] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0110] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A data mining method based on LDA topic model, characterized in that: include: By performing time slicing processing on the collected text information, a text set based on time series labels is obtained; Determine the topic-keyword distribution matrix of the text set by using the trained target adaptive LDA topic model; According to the topic-keyword distribution matrix, a topic connection graph for each topic is generated using a topic reduction algorithm; According to the topic connectivity graph of each topic, topic keywords of each topic are determined.

2. The method according to claim 1, characterized in that The text information includes keywords in each text and the TF-IDF value of the keywords. The step of performing time slicing processing on the collected text information to obtain a text set based on time series labels includes: By performing time slicing processing on the collected text information, the keywords in each text based on the time series label and the TF-IDF value of the keywords are obtained; The keywords are subjected to disambiguation processing, and the TF-IDF values ​​of the keywords are subjected to weight normalization processing to obtain a text set based on time series labels.

3. The method according to claim 1, characterized in that The training steps of the target adaptive LDA topic model include: Set the starting number of topics and the maximum number of topics, and initialize the adaptive LDA topic model according to the set step size; Based on the ratio of the text set perplexity to the topic variance, the adaptive LDA topic model after training convergence is evaluated to obtain the target adaptive LDA topic model.

4. The method according to claim 3, characterized in that The step of evaluating the adaptive LDA topic model after training convergence based on the ratio of the text set perplexity to the topic variance to obtain the target adaptive LDA topic model includes: Calculate the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after training convergence; Continue to perform model training on the adaptive LDA topic model after the training convergence until the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after the training convergence is minimized, thereby obtaining a target adaptive LDA topic model.

5. The method according to claim 3, characterized in that: Before the step of continuing to perform model training on the adaptive LDA topic model after the training convergence until the ratio of the text set perplexity to the topic variance of the adaptive LDA topic model after the training convergence is minimized, the step further includes: Determining the current number of topics of the adaptive LDA topic model after the training converges; The starting number of topics and the maximum number of topics are reset according to the current number of topics, and the adaptive LDA topic model after the training convergence is initialized again according to the reset step size.

6. The method according to claim 1, characterized in that The step of generating a topic connectivity graph for each topic using a topic reduction algorithm according to the topic-keyword distribution matrix includes: Based on the ranking result of the topic-keyword distribution matrix, a certain number of keywords are extracted as nodes for each topic, and the co-occurrence relationship between the keywords is used as an edge to obtain a term graph for each topic, wherein the term graph includes multiple connected graphs; For each connected graph, a topic reduction algorithm is used to obtain a topic connected graph for each topic.

7. The method according to claim 6, characterized in that The step of obtaining a topic connectivity graph for each topic using a topic reduction algorithm for each connectivity graph includes: According to the number of terms, the number of high-weight nodes and the total weight of each connected graph, the score of each connected graph is obtained; According to each connectivity graph score, a topic connectivity graph is evaluated to represent the semantics of the term graph of each topic.

8. A data mining device based on LDA topic model, characterized in that: include: A preprocessing module is used to obtain a text set based on time series labels by performing time slicing processing on the collected text information; A first determination module is used to determine the topic-keyword distribution matrix of the text set by using the trained target adaptive LDA topic model; A generation module, used to generate a topic connectivity graph for each topic using a topic reduction algorithm according to the topic-keyword distribution matrix; The second determination module is used to determine the topic keywords of each topic according to the topic connectivity graph of each topic.

9. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data mining method based on the LDA topic model described in any one of claims 1 to 7 is implemented.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the program, the data mining method based on the LDA topic model described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Domain literature keyword extracting method based on phrase network diagram sorting

    CN104298746A

  • Inter-topic minimum average similarity-based optimal LDA model automatic selection method

    CN107656919A

  • Theme word vector and network structure-based theme keyword extraction method

    CN108052593A

Cited By

  • Theme labeling method and system based on dynamic LDA

    CN119494340A

  • A topic labeling method and system based on dynamic LDA

    CN119494340B