WO2018218708A1 - 一种基于深度学习的舆情热点类别划分方法 - Google Patents

一种基于深度学习的舆情热点类别划分方法 Download PDF

Info

Publication number
WO2018218708A1
WO2018218708A1 PCT/CN2017/089139 CN2017089139W WO2018218708A1 WO 2018218708 A1 WO2018218708 A1 WO 2018218708A1 CN 2017089139 W CN2017089139 W CN 2017089139W WO 2018218708 A1 WO2018218708 A1 WO 2018218708A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
training
training data
deep learning
topic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/089139
Other languages
English (en)
French (fr)
Inventor
周勇
刘兵
刘敬学
王重秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Mining and Technology CUMT
China University of Mining and Technology Beijing CUMTB
Original Assignee
China University of Mining and Technology CUMT
China University of Mining and Technology Beijing CUMTB
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Mining and Technology CUMT, China University of Mining and Technology Beijing CUMTB filed Critical China University of Mining and Technology CUMT
Publication of WO2018218708A1 publication Critical patent/WO2018218708A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0499Feedforward networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/355Creation or modification of classes or clusters
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/09Supervised learning

Definitions

  • the invention relates to the field of deep learning and natural language processing technology, in particular to a method for classifying hotspot categories based on deep learning, and the method is a Chinese text classification method for the scientific type classification of public opinion hotspots which is specifically applied to public opinion analysis.
  • hot events can be divided into sudden natural disaster events, production safety accidents, mass incidents, public health events, public power image, judicial events, economic and livelihood events, social thoughts, and overseas China-related emergencies.
  • the correctness of the type definition, the analysis and comparison of subsequent events, and the formulation of policy responses are extremely critical.
  • Patent CN201310072137.3 discloses a network public opinion analysis method, which replaces word matching in simple public opinion analysis with topic matching, analyzes and judges whether the page belongs to public opinion, and belongs to a two-category problem.
  • Patent CN201410023154.2 relates to a method based on sentiment analysis and hidden Markov model fusion, which improves the accuracy of stock market forecasting by using sentiment orientation information.
  • the public opinion hotspot information is uncertain because of its particularity. If the traditional text representation method is used for longer texts, it is more difficult for data dimensionality reduction processing;
  • the present invention is directed to text data derived from public opinion hotspot events. To solve the problem of insufficient classification function and low accuracy in the prior art, a method for classifying hotspot categories based on deep learning is proposed.
  • a method for classifying hotspot categories based on deep learning comprises two phases, the first phase is During the training phase, the second phase is the classification phase;
  • the training phase includes the steps:
  • the deep learning model comprising a DBN neural network with multiple layers of hidden layers and a softmax layer, the output data of the last layer of the hidden layer of the DBN neural network as input data of the softmax layer, softmax layer As an output layer of the deep learning model, normalizing the output of the DBN neural network;
  • the classification phase includes the steps:
  • the prediction model, the prediction data classification label and the prediction data Chinese dictionary are input into the optimal model obtained in step (4), and the optimal model maps the input prediction data into a matrix of the input layer size according to the prediction data dictionary, and the optimal model
  • the result of the multi-category of the output layer prediction data is normalized and a category or a group of categories of the prediction data is selected according to a preset threshold.
  • training data and the prediction data are collected by directly acquiring from the network public news corpus and/or crawling from the network news through a web crawler.
  • TXT file acts as a news data.
  • the TXT file is named as a hotspot type tag; the total number of TXT files is the number of types of hotspots;
  • each Chinese word corresponds to an index number
  • each behavior of the Chinese dictionary one word + The index number of the word.
  • the steps of constructing the training data probability topic model include:
  • step 3 repeating the sampling process of the training data described in step 2) until the sampling result converges;
  • the topic vocabulary frequency matrix in the training data is statistically the subject-vocabulary distribution matrix.
  • the step of obtaining an optimal deep learning model includes:
  • (5-1) input the classification data of the training data, the training data Chinese dictionary, and the training data into the deep learning model, and map the input data into a matrix in the form of the input layer of the deep learning model according to the training data Chinese dictionary;
  • the data in the training data set is sent to the deep learning model in batches, and the loss function of each training is calculated, and the loss function is used to describe the error between the output of the deep learning model and the actual expected result;
  • the method of descent is to minimize the loss function, and the test data set is used to test the accuracy of the training data every N steps;
  • the step (5-5) is performed cyclically until the preset number of iterations or the accuracy of the training data reaches the preset expectation value, and the deep learning model at this time is the optimal depth learning model.
  • the invention is directed to the particularity of the public opinion hotspot data and the deficiencies of the prior art, and combines the LDA probability topic text representation method with the DBN neural network model to achieve the effect of high accuracy multi-classification.
  • the advantages of this algorithm can be divided into two aspects:
  • the DBN neural network is simpler than other complex network models.
  • the "unsupervised training + supervised fine-tuning" training method makes it less time-consuming in the training phase and lowers the training. the complexity.
  • the neural network output layer selects the Softmax regression model, normalizes the results of the multi-category, and selects a predicted category or a group of categories according to a preset threshold.
  • the automatic extraction of the deep features of the hotspot information is realized, which makes the classification of the hotspots more accurate.
  • FIG. 1 is a flowchart of a method for dividing a hotspot category based on deep learning according to the present invention
  • Figure 3 is a schematic diagram of a DBN neural network model.
  • the entire process of the present invention is divided into two phases, a pre-model training phase and a late prediction classification phase. These two stages are similar to the process of probabilistic representation of the data set, that is to say, the text representation we read into the neural network is the same in two stages, the difference is that the previous text is used for the training of the model, later The text is used to make a classification prediction of the results.
  • FIG. 1 is a flowchart of an implementation of the present invention, which can be divided into two stages in a specific implementation process.
  • the first phase includes the training dataset acquisition, the preprocessing process, the probabilistic topic text representation, and the training portion of the deep learning model.
  • the second stage includes the selection of prediction data and preprocessing and probabilistic topic text representation, reading the trained model of the first stage, and performing classification prediction. Specifically:
  • the collected xml file is stored in angle brackets and saved as TXT format.
  • the name of the xml file is the category label + file number of the hot spot;
  • Each type of file is saved as a TXT file, each of which acts as a news data; the file name of the TXT file is a category label of the hotspot hotspot, and the number of TXT files is the number of types of hotspot hotspots.
  • the text is represented as a doc-topic distribution and a topic-word distribution, and the artificial neural network classification label is performed according to a doc-topic.
  • the collection, topic-word matrix is the training matrix required for neural networks.
  • the deep learning training model selects the deep belief network (DBN), which is a directed graph connection model composed of two layers of restricted Boltzmann machines (RBM).
  • the first layer is the visible layer (v), also called the input layer. It consists of m visual nodes, and the second layer is the hidden layer (h), which is the feature extraction layer, which consists of n hidden nodes.
  • DBN deep belief network
  • the output layer selects the Softmax layer.
  • the deep learning model reads the input data, inputs the data tag and the input data Chinese dictionary, and maps the input data into a matrix of the input learning layer size of the deep learning model according to the input data Chinese dictionary.
  • the read training data is divided into a train set and a test set, and the data set size of each training is set, and the maximum number of iterations is calculated according to the data set size of each batch of iterations.
  • the text data to be analyzed is collected on the domestic mainstream website, and the same preprocessing process as the first stage is adopted.
  • the first stage is read, that is, the optimal model at the time of model training, the prediction data is read, the data label and the prediction data dictionary are predicted, and the input prediction data is mapped to a matrix of the input layer size according to the prediction data dictionary.
  • Classified output The layer Softmax regression model normalizes the results of the multi-category and selects a category or a group of categories based on the preset threshold.
  • the prediction model gives a corresponding category for the corresponding prediction.
  • the prediction model gives the name of a set of categories of input data and the corresponding probability.
  • Figure 2 shows the training details of the LDA model.
  • w (w 1 ,...,w D ).
  • w m represents the vocabulary in the mth document
  • z m represents the number of the subject corresponding to the words.
  • the LDA probability model has two main physical processes: The meaning of this physical process is: when generating the mth document, randomly generate a topic parameter about the document. Then use this parameter to generate the topic number z m,n corresponding to the nth word in the document.
  • This physical process means randomly generating a parameter about the topic - vocabulary
  • the DBN is a directed graph connection model consisting of two layers of RBM. During the pre-training process, the left x is the input and the right y is the output. When all layers are trained, fine-tuning is supervised from the top to the bottom. Train a DBN with three hidden layers as shown in Figure 3. Among them, W1, W2, and W3 are the weights obtained from the feature calculations learned from the features.
  • the DBN model is based on the Restricted Boltzmann Machine Model (RBM) as the basic modeling unit of the network.
  • the RBM network has two layers. The first layer is the visible layer (v), also called the input layer, which consists of m The visual node is composed, and the second layer is the hidden layer (h), that is, the feature extraction layer, which is composed of n hidden nodes.
  • the DBN model shown in the figure uses a directed graph connection in the part close to the visible layer and RBM in the part far from the visible layer.
  • the training of the DBN model includes unsupervised pre-training and supervised fine-tuning.
  • the visual vector values are first mapped to the hidden nodes, and then the visual nodes are reconstructed by the hidden nodes; these new visual nodes again calculate the hidden node values, reconstruct the activated hidden nodes, and thus obtain New hidden node.
  • the reconstruction error between the hidden layer and the visual layer input is used as the main calculation basis for the weight update.
  • the weights of the RBMs of other layers are divided into an upward cognitive weight and a downward generating weight.
  • the supervised fine-tuning process also includes the following two phases:
  • Wake phase In the cognitive process, the abstract representation of each layer is generated by the characteristics of the outside world and the upward weights (cognitive weights), and the descending weights (generating weights) between the layers are modified using gradient descent.
  • Sleep phase The generation process, through the top-level representation and the downward weight, generates the underlying state and modifies the weights between the layers.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Abstract

一种基于深度学习的舆情热点类别划分方法,包括:训练数据集的采集和预处理,建立概率主题表示模型,对文本数据集进行文档-主题和主题-词汇两个概率分布表示,并将获得的主体-词汇矩阵输入到预先搭建好的神经网络模型中训练学习文本特征,网络输出层选择Softmax归一化处理分类预测;所述方法解决了长文本舆情热点数据的降维问题,实现了舆情热点信息的深层特征的自动提取,使得舆情热点多种类划分更加准确。

Description

一种基于深度学习的舆情热点类别划分方法 技术领域
本发明涉及深度学习和自然语言处理技术领域,尤其是一种基于深度学习的舆情热点类别划分方法,方法是一种具体应用于舆情分析的舆情热点科学类型划分的中文文本分类方法。
背景技术
在如今信息技术高度发达的年代,社会上某个事件发生后,广大群众可以迅速通过各种途径了解到事情的来龙去脉,随之产生大量的评论。这就是舆情,对于民众舆情的分析对后续如何处理事件起着至关作用。在分析某一舆情热点之前应先对其进行科学的类型界定。比如热点事件一般可以分为突发自然灾害事件、生产安全事故、群体性事件、公共卫生事件、公权力形象、司法事件、经济民生事件、社会思潮、境外涉华突发事件等。类型界定的正确与否,对后续事件的分析比较,应对政策的制定都极为关键。
现有的相关技术有相近专利CN201310072137.3公开了一种网络舆情分析方法,以主题匹配代替简单舆情分析中的词语匹配,分析并判断页面是否属于舆情,属于一个二分类的问题。专利CN201410023154.2涉及一种基于情感分析和隐马尔科夫模型融合的方法,通过利用情感倾向性信息,提高了股市预测的准确性。
通过调查和分析发现,现有技术存在以下问题:
(1)舆情热点信息由于其特殊性,文本的长度不确定,对于较长的文本若采用传统的文本表示方法,对于数据降维处理而言难度较大;
(2)仅考虑数据的情感倾向性信息,对分类判断的特征提取单一,无法提取更深层次的特征,分类的效果不佳;
(3)现有舆情热点的分类技术,大部分是舆情的二分类,缺乏对舆情热点种类划分更细致的解决方案。
发明内容
发明目的:本发明针对来源于舆情热点事件的文本数据,为解决现有技术的分类功能不足,准确率不高的问题,提出一种基于深度学习的舆情热点类别划分方法。
技术方案:为实现上述技术效果,本发明的技术方案为:
一种基于深度学习的舆情热点类别划分方法,该方法包括两个阶段,第一个阶段为 训练阶段,第二个阶段为分类阶段;
训练阶段包括步骤:
(1)采集满足需求量的包含舆情热点的文本数据作为训练数据,并根据舆情热点的种类在训练数据中添加标签;对采集到的训练数据进行预处理,将训练数据保存为统一格式并构建训练数据中文词典;
(2)根据训练数据中文词典建立训练数据概率主题模型,并采用Gibbs抽样方法学习训练数据概率主题模型,得到训练数据的文档-主题分布矩阵和主题-词汇分布矩阵,并依据文档-主题分布矩阵采集训练数据的分类标签,将主题-词汇分布矩阵作为深度学习模型所需训练矩阵;
(3)建立深度学习模型,所述深度学习模型包括具有多层隐层的DBN神经网络和softmax层,所述DBN神经网络的最后一层隐层的输出数据作为softmax层的输入数据,softmax层作为所述深度学习模型的输出层,对DBN神经网络的输出结果进行归一化处理;
(4)将训练数据、训练数据中文词典、训练数据的分类标签输入深度学习模型进行循环训练,并保存满足预设指标的最优深度学习模型;
分类阶段包括步骤:
(5)采集预测数据,根据舆情热点的种类在预测数据中添加标签;对采集到的预测数据进行预处理,将预测数据保存为统一格式并构建预测数据中文词典;
(6)根据预测数据中文词典建立预测数据概率主题模型,并采用Gibbs抽样方法学习预测数据概率主题模型,得到预测数据的文档-主题分布矩阵和主题-词汇分布矩阵,并依据文档-主题分布矩阵采集预测数据的分类标签;
(7)将预测数据,预测数据分类标签和预测数据中文词典输入步骤(4)得到的最优模型,最优模型根据预测数据词典将输入的预测数据映射为输入层大小的矩阵,最优模型的输出层预测数据的多分类的结果进行归一化处理并根据预设阈值选择出预测数据的一种类别或一组类别。
进一步的,所述训练数据和预测数据的采集方法为:从网络公开新闻语料库中直接获取和/或通过网络爬虫从网络新闻中爬取。
进一步的,所述预处理的具体步骤包括:
a、统一数据的格式:将采集到的xml文件去掉尖括号,转存为TXT格式;将每个 xml文件命名为:舆情热点种类标签+文件编号;
b、将每类文件存为一个TXT文件,TXT文件中每一行为一条新闻数据,TXT文件名为舆情热点种类标签;TXT文件的总数目为舆情热点的种类数目;
c、采用中文分词工具对采集的文本数据进行分词表示和去除停用词处理,得到文本数据的中文词典;中文词典中,每个中文单词对应一个索引号,中文词典的每一行为:一个单词+该单词的索引号。
进一步的,所述构建训练数据概率主题模型的步骤包括:
1)对采集到的训练数据中的每篇文档中的每个词随机的赋值一个话题编号;
2)重新遍历训练数据,对每篇文档的每个词,按照Gibbs采样公式重新采样话题编号,然后对训练数据中的每个词所属的主题编号进行更新,更新即为重新对每个词进行随机赋值;
3)重复步骤2)所述的对训练数据的采样过程,直到采样结果收敛;
4)采样收敛后,统计训练数据中话题词汇频率矩阵,即为主题-词汇分布矩阵。
进一步的,所述得到最优深度学习模型的步骤包括:
(5-1)将训练数据、训练数据中文词典、训练数据的分类标签输入深度学习模型,并根据训练数据中文词典将输入数据映射为深度学习模型输入层形式的矩阵;
(5-2)将读取的训练数据划分为训练数据集和测试数据集,所述训练数据集参与深度学习模型的训练过程,测试数据集用于测试每次训练的准确率;
(5-3)设置每次训练的数据集大小和最大迭代次数,初始化深度学习模型;
(5-4)将训练数据集中的数据分批次送入深度学习模型,计算每次训练的损失函数,所述损失函数用于描述深度学习模型的输出结果与实际期望结果的误差;采用梯度下降的方法来最小化损失函数,每下降N步,就用测试数据集测试训练数据的准确率;
(5-5)循环执行步骤(5-4)直至满足预设的迭代次数或者训练数据的准确率达到预设期望值,此时的深度学习模型为最优深度学习模型。
有益效果:与现有技术相比,本发明具有以下优势:
本发明是针对舆情热点数据的特殊性和现有技术的不足之处,将LDA概率主题文本表示方法和DBN神经网络模型相结合,实现了高准确度多分类的效果。本算法的优点可以分为两个方面:
一是可以对不同长度的文本数据进行规格化表示和主题划分,实现了初步的数据降 维过程,提供了分类算法的效率。
二是DBN神经网络相较于其他复杂的网络模型简单,“无监督训练+有监督微调”的训练方式,使得在保证分类准确率的前提下,训练阶段的时间花费较少,也降低训练的复杂度。神经网络输出层选择Softmax回归模型,将多分类的结果进行归一化处理并根据预设阈值选择出预测的一种类别或一组类别。实现了舆情热点信息的深层特征的自动提取,使得舆情热点多种类划分更加准确。
附图说明
图1是本发明所述基于深度学习的舆情热点类别划分方法的流程图;
图2是LDA概率模型示意图;
图3是DBN神经网络模型示意图。
具体实施方式
下面结合附图对本发明作更进一步的说明。
本发明的整个流程划分为两个阶段,前期的模型训练阶段和后期的预测分类阶段。这两个阶段对于数据集的预处理过程和概率主题表示过程相似,也就是说我们读入神经网络中的文本表示在两个阶段是一样,不同的是前期的文本用于模型的训练,后期的文本用于进行结果分类预测。
下面根据附图来进一步的描述本发明的技术方案。
图1是本发明实施流程图,在具体实施的过程中可以分为两个阶段。第一阶段,包括训练数据集的采集、预处理过程、概率主题文本表示和深度学习模型的训练部分。第二阶段,包括预测数据的选取和预处理和概率主题文本表示,读取第一阶段的训练好的模型,进行分类预测。具体为:
(一)第一阶段:
1.训练数据的采集和预处理
(1)数据集采集:
训练数据集的来源有两种,一种是选用网上公布的新闻数据集主要有搜狗实验室的新闻语料和网易新闻语料,根据舆情热点的种类进行人工的划分添加标签。另一种方式采用爬虫程序按照种类从国内各大主流的媒体采集数据,添加标签。两种合一,构成大数据集合。
(2)预处理:
a、统一数据集的格式。将采集到的xml文件去尖括号,转存为TXT格式。xml文件文件的名字为舆情热点的种类标签+文件编号;
b、每类文件存为一个TXT文件,其中每一行为一条新闻数据;TXT文件的文件名为为舆情热点的种类标签,TXT文件的数目为舆情热点的种类数目。
c、采用中文分词工具对采集的中文文本数据进行分词表示,去停用词并构建中文词典。
2.概率主题模型的建立
依据经预处理建立的词典将文本表示成文档-主题(doc-topic)的分布和主题-词汇(topic-Word)的分布,并依据文档-主题(doc-topic)来进行人工神经网络分类标签采集,主题-词汇(topic-Word)矩阵则为神经网络所需训练矩阵。
3.深度学习模型的建立
深度学习训练模型选择深度置信网络(DBN),是由两层受限玻尔兹曼机(RBM)组成的有向图连接模型,其中第一层为可视层(v)也叫作输入层,它由m个可视节点组成,第二层为隐层(h),也就是特征提取层,由n个隐藏节点组成。建立具有三层隐层的DBN神经网络。输出层选择Softmax层。
4.输入数据,进行深度学习模型训练,保存最优模型
(1)深度学习模型读取输入数据,输入数据标签和输入数据中文词典,并根据输入数据中文词典将输入数据映射为深度学习模型输入层大小的矩阵。
(2)将读取的训练数据划分为train集和test集,并设置每次训练的数据集大小,按照每批次迭代的数据集大小计算最大迭代次数。
(3)初始化神经网络模型。
(4)将训练数据分批次输入模型,并计算损失,在一定的迭代次数用test数据集测试accuracy。
(5)在迭代次数内,循环训练。直到accuracy达到预期。保存最优模型。
(二)第二阶段:
1.预测数据的在线采集和预处理
利用爬虫程序,在国内主流的网站上采集待分析的文本数据,采取和第一阶段一样的预处理过程。
2.概率主题模型的建立。
3.读取第一阶段的最优模型,输入预测数据,做出预测
读取第一阶段也就是模型训练时的最优模型,读取预测数据,预测数据标签和预测数据词典,并根据预测数据词典将输入的预测数据映射为输入层大小的矩阵。分类输出 层Softmax回归模型,将多分类的结果进行归一化处理并根据预设阈值选择出预测的一种类别或一组类别。
4.分类结果的展示。
展示有两种选择:a.对输入数据,预测模型给出对应的预测所分某一种种类。b.设置类别数目的阈值,预测模型给出输入数据的一组类别的名称和相应的概率。
图2所示为LDA模型的训练细节。假设我们收集的待分类的原始文本数据集中有D篇文档,其中所有的词汇表示为:w=(w1,...,wD)。去词汇对应的主题表示为:z=(z1,...,zD)。其中wm表示的是第m篇文档中的词汇,zm表示为这些词对应的主题的编号。
如图2所示,LDA概率模型主要有两个物理过程:
Figure PCTCN2017089139-appb-000001
这个物理过程代表的含义是:在生成第m篇文档的时候,先随机生成一个有关文档话题参数
Figure PCTCN2017089139-appb-000002
然后通过这个参数生成文档中第n个词对应的话题编号zm,n
Figure PCTCN2017089139-appb-000003
这个物理过程表示,随机的生成一个有关话题-词汇的参数
Figure PCTCN2017089139-appb-000004
在生成的参数
Figure PCTCN2017089139-appb-000005
中,挑选话题k=zm,n的词汇生成第m篇文档中的第n个词汇。
最后根据图3介绍DBN模型的训练细节。
DBN是由两层RBM组成的有向图连接模型,在预训练过程中,左侧x是输入,右边y是输出。当所有层训练结束后,由最上层开始向下有监督的进行微调。如图3所示训练一个具有三个隐藏层的DBN。其中W1,W2,W3即为从特征中学习到的特征计算所得到的权值。
DBN模型是基于受限玻尔兹曼机模型(RBM)作为网络的基本建模单元,RBM网络共有两层,其中第一层为可视层(v)也叫作输入层,它由m个可视节点组成,第二层为隐层(h),也就是特征提取层,由n个隐藏节点组成。如图所示的DBN模型则是在靠近可视层的部分使用有向图连接,在远离可视层的部分使用RBM。
DBN模型的训练包括无监督的预训练和有监督的微调两部分。
在预训练过程中,首先将可视向量值映射给隐藏节点,然后可视节点由隐藏节点重构;这些新的可视节点再次计算隐藏节点的数值,重构激活的隐藏节点,这样就获取新的隐藏节点。隐层和可视层输入之间的重构误差作为权值更新的主要计算依据。
在有监督的微调过程中使用contrastive wake-sleep算法进行优化,除了顶层的RBM, 其他层的RBM的权重被分为向上的认知权重和向下的生成权重。
监督的微调过程还包括以下两个阶段:
Wake阶段:认知过程中,通过外界的特征和向上的权重(认知权重)产生每一层的抽象表示,并且使用梯度下降修改层间的下行权重(生成权重)。
Sleep阶段:生成过程,通过顶层表示和向下权重,生成底层的状态,同时修改层间向上的权重。
以上所述仅是本发明的优选实施方式,应当指出:对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (5)

  1. 一种基于深度学习的舆情热点类别划分方法,其特征在于,该方法包括两个阶段,第一个阶段为训练阶段,第二个阶段为分类阶段;
    训练阶段包括步骤:
    (1)采集满足需求量的包含舆情热点的文本数据作为训练数据,并根据舆情热点的种类在训练数据中添加标签;对采集到的训练数据进行预处理,将训练数据保存为统一格式并构建训练数据中文词典;
    (2)根据训练数据中文词典建立训练数据概率主题模型,并采用Gibbs抽样方法学习训练数据概率主题模型,得到训练数据的文档-主题分布矩阵和主题-词汇分布矩阵,并依据文档-主题分布矩阵采集训练数据的分类标签,将主题-词汇分布矩阵作为深度学习模型所需训练矩阵;
    (3)建立深度学习模型,所述深度学习模型包括具有多层隐层的DBN神经网络和softmax层,所述DBN神经网络的最后一层隐层的输出数据作为softmax层的输入数据,softmax层作为所述深度学习模型的输出层,对DBN神经网络的输出结果进行归一化处理;
    (4)将训练数据、训练数据中文词典、训练数据的分类标签输入深度学习模型进行循环训练,并保存满足预设指标的最优深度学习模型;
    分类阶段包括步骤:
    (5)采集预测数据,根据舆情热点的种类在预测数据中添加标签;对采集到的预测数据进行预处理,将预测数据保存为统一格式并构建预测数据中文词典;
    (6)根据预测数据中文词典建立预测数据概率主题模型,并采用Gibbs抽样方法学习预测数据概率主题模型,得到预测数据的文档-主题分布矩阵和主题-词汇分布矩阵,并依据文档-主题分布矩阵采集预测数据的分类标签;
    (7)将预测数据,预测数据分类标签和预测数据中文词典输入步骤(4)得到的最优模型,最优模型根据预测数据词典将输入的预测数据映射为输入层大小的矩阵,最优模型的输出层预测数据的多分类的结果进行归一化处理并根据预设阈值选择出预测数据的一种类别或一组类别。
  2. 根据权利要求1所述的一种基于深度学习的舆情热点类别划分方法,其特征在于,所述训练数据和预测数据的采集方法为:从网络公开新闻语料库中直接获取和/或通过网络爬虫从网络新闻中爬取。
  3. 根据权利要求1所述的一种基于深度学习的舆情热点类别划分方法,其特征在于,所述预处理的具体步骤包括:
    a、统一数据的格式:将采集到的xml文件去掉尖括号,转存为TXT格式;将每个xml文件命名为:舆情热点种类标签+文件编号;
    b、将每类文件存为一个TXT文件,TXT文件中每一行为一条新闻数据,TXT文件名为舆情热点种类标签;TXT文件的总数目为舆情热点的种类数目;
    c、采用中文分词工具对采集的文本数据进行分词表示和去除停用词处理,得到文本数据的中文词典;中文词典中,每个中文单词对应一个索引号,中文词典的每一行为:一个单词+该单词的索引号。
  4. 根据权利要求3所述的一种基于深度学习的舆情热点类别划分方法,其特征在于,所述构建训练数据概率主题模型的步骤包括:
    1)对采集到的训练数据中的每篇文档中的每个词随机的赋值一个话题编号;
    2)重新遍历训练数据,对每篇文档的每个词,按照Gibbs采样公式重新采样话题编号,然后对训练数据中的每个词所属的主题编号进行更新;
    3)重复步骤2)所述的对训练数据的采样过程,直到采样结果收敛;
    4)采样结果收敛后,统计训练数据中话题词汇频率矩阵,即为主题-词汇分布矩阵。
  5. 根据权利要求4所述的一种基于深度学习的舆情热点类别划分方法,其特征在于,所述得到最优深度学习模型的步骤包括:
    (5-1)将训练数据、训练数据中文词典、训练数据的分类标签输入深度学习模型,并根据训练数据中文词典将输入数据映射为深度学习模型输入层形式的矩阵;
    (5-2)将读取的训练数据划分为训练数据集和测试数据集,所述训练数据集参与深度学习模型的训练过程,测试数据集用于测试每次训练的准确率;
    (5-3)设置每次训练的数据集大小和最大迭代次数,初始化深度学习模型;
    (5-4)将训练数据集中的数据分批次送入深度学习模型,计算每次训练的损失函数,所述损失函数用于描述深度学习模型的输出结果与实际期望结果的误差;采用梯度下降的方法来最小化损失函数,每下降N步,就用测试数据集测试训练数据的准确率;
    (5-5)循环执行步骤(5-4)直至满足预设的迭代次数或者训练数据的准确率达到预设期望值,此时的深度学习模型为最优深度学习模型。
PCT/CN2017/089139 2017-05-27 2017-06-20 一种基于深度学习的舆情热点类别划分方法 Ceased WO2018218708A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710395849.7 2017-05-27
CN201710395849.7A CN107239529B (zh) 2017-05-27 2017-05-27 一种基于深度学习的舆情热点类别划分方法

Publications (1)

Publication Number Publication Date
WO2018218708A1 true WO2018218708A1 (zh) 2018-12-06

Family

ID=59984584

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089139 Ceased WO2018218708A1 (zh) 2017-05-27 2017-06-20 一种基于深度学习的舆情热点类别划分方法

Country Status (2)

Country Link
CN (1) CN107239529B (zh)
WO (1) WO2018218708A1 (zh)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914141A (zh) * 2020-07-30 2020-11-10 广州城市信息研究所有限公司 一种舆情知识库构建方法及舆情知识库
CN112799369A (zh) * 2021-01-15 2021-05-14 北京理工大学 一种产品装配过程管控方法和装置
CN114116991A (zh) * 2020-08-31 2022-03-01 华为技术有限公司 一种意图识别方法及相关装置、设备
CN115374778A (zh) * 2022-08-08 2022-11-22 北京工商大学 一种基于深度学习的化妆品舆情文本实体关系抽取方法
CN115438179A (zh) * 2022-07-11 2022-12-06 延安大学 一种基于信息向量空间模型的个人标识信息分类方法
CN115617993A (zh) * 2022-10-12 2023-01-17 北京市科学技术研究院 改进的灾害新闻三要素提取方法
CN115757773A (zh) * 2022-06-27 2023-03-07 浙江大学 一种多价值链问题文本分类方法和装置
CN115827989A (zh) * 2023-02-16 2023-03-21 杭州金诚信息安全科技有限公司 大数据环境下网络舆情人工智能预警系统及方法
CN116467639A (zh) * 2023-04-03 2023-07-21 电子科技大学长三角研究院(湖州) 一种用于智慧家庭画像构建中的新设备冷启动方法
CN116563361A (zh) * 2022-01-25 2023-08-08 中电建建筑集团有限公司 一种基于深度学习的门窗垂直度判别方法
CN116578697A (zh) * 2023-03-22 2023-08-11 中债金科信息技术有限公司 一种面向金融的语言情感分析和标注方法
CN119652553A (zh) * 2024-11-01 2025-03-18 暨南大学 一种基于文本语义的改进svm的网络安全检测方法

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808132A (zh) * 2017-10-23 2018-03-16 重庆邮电大学 一种融合主题模型的场景图像分类方法
CN109977393B (zh) * 2017-12-28 2021-09-03 中国科学院计算技术研究所 一种基于内容争议性的流行新闻预测方法和系统
CN108363478B (zh) * 2018-01-09 2019-07-12 北京大学 针对可穿戴设备深度学习应用模型分载系统及方法
CN110162766B (zh) * 2018-02-12 2023-03-24 深圳市腾讯计算机系统有限公司 词向量更新方法和装置
CN108416032B (zh) * 2018-03-12 2021-06-08 腾讯科技(深圳)有限公司 一种文本分类方法、装置及存储介质
CN108628974B (zh) * 2018-04-25 2023-04-18 平安科技(深圳)有限公司 舆情信息分类方法、装置、计算机设备和存储介质
CN109065110B (zh) * 2018-07-11 2021-10-19 哈尔滨工业大学 一种基于深度学习方法的自动生成医学影像诊断报告的方法
CN110941713B (zh) * 2018-09-21 2023-12-22 上海仪电(集团)有限公司中央研究院 基于主题模型的自优化金融资讯版块分类方法
CN109543084B (zh) * 2018-11-09 2021-01-19 西安交通大学 一种建立面向网络社交媒体的隐蔽敏感文本的检测模型的方法
CN110263166A (zh) * 2019-06-18 2019-09-20 北京海致星图科技有限公司 基于深度学习的舆情文本分类方法
CN111428492B (zh) * 2020-01-10 2023-07-07 深圳信息职业技术学院 一种情境感知的深度学习算法
CN113726686B (zh) * 2020-05-26 2025-01-24 中兴通讯股份有限公司 流量识别方法、装置、电子设备及存储介质
CN111666414B (zh) * 2020-06-12 2023-10-17 上海观安信息技术股份有限公司 一种敏感数据检测云服务的方法和云服务平台
CN111859074B (zh) * 2020-07-29 2023-12-29 东北大学 基于深度学习的网络舆情信息源影响力评估方法及系统
CN112163068B (zh) * 2020-09-25 2022-11-01 国网山东省电力公司电力科学研究院 一种基于自主进化学习器的信息预测方法及系统
CN112597141B (zh) * 2020-12-24 2022-07-15 国网山东省电力公司 一种基于舆情分析的网络流量检测方法
CN115935979B (zh) * 2022-12-12 2026-02-03 中国电信股份有限公司 评论信息中的情感信息确定方法及装置
CN115935245B (zh) * 2023-03-10 2023-05-26 吉奥时空信息技术股份有限公司 一种政务热线案件自动分类分拨方法
CN119047646B (zh) * 2024-08-29 2025-09-12 四川九洲软件有限公司 用于舆情热度预测的轻量集成模型系统及其训练方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070018953A1 (en) * 2004-03-03 2007-01-25 The Boeing Company System, method, and computer program product for anticipatory hypothesis-driven text retrieval and argumentation tools for strategic decision support
CN104881685A (zh) * 2015-05-27 2015-09-02 清华大学 基于捷径深度神经网络的视频分类方法
CN105975478A (zh) * 2016-04-09 2016-09-28 北京交通大学 一种基于词向量分析的网络文章所属事件的检测方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101676101B1 (ko) * 2014-09-29 2016-11-15 동명대학교산학협력단 동적보상퍼지신경네트워크(dcfnn)를 기반으로 한 얼굴인식 알고리즘
CN105335349A (zh) * 2015-08-26 2016-02-17 天津大学 一种基于时间窗口的lda微博主题趋势检测方法及装置
CN105760499A (zh) * 2016-02-22 2016-07-13 浪潮软件股份有限公司 一种基于lda主题模型来分析和预测网络舆情的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070018953A1 (en) * 2004-03-03 2007-01-25 The Boeing Company System, method, and computer program product for anticipatory hypothesis-driven text retrieval and argumentation tools for strategic decision support
CN104881685A (zh) * 2015-05-27 2015-09-02 清华大学 基于捷径深度神经网络的视频分类方法
CN105975478A (zh) * 2016-04-09 2016-09-28 北京交通大学 一种基于词向量分析的网络文章所属事件的检测方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HOU, SIYUN: "Research on Text Classificaion Method of Topic Modeling and Deep Brief Network", CHINESE MASTER'S THESES FULL-TEXT DATABASE (INFORMATION SCIENCE & TECHNOLOGY, 15 September 2015 (2015-09-15), pages 1138 - 1696, ISSN: 1674-0246 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914141A (zh) * 2020-07-30 2020-11-10 广州城市信息研究所有限公司 一种舆情知识库构建方法及舆情知识库
CN114116991A (zh) * 2020-08-31 2022-03-01 华为技术有限公司 一种意图识别方法及相关装置、设备
CN112799369A (zh) * 2021-01-15 2021-05-14 北京理工大学 一种产品装配过程管控方法和装置
CN116563361A (zh) * 2022-01-25 2023-08-08 中电建建筑集团有限公司 一种基于深度学习的门窗垂直度判别方法
CN115757773A (zh) * 2022-06-27 2023-03-07 浙江大学 一种多价值链问题文本分类方法和装置
CN115438179A (zh) * 2022-07-11 2022-12-06 延安大学 一种基于信息向量空间模型的个人标识信息分类方法
CN115374778A (zh) * 2022-08-08 2022-11-22 北京工商大学 一种基于深度学习的化妆品舆情文本实体关系抽取方法
CN115617993A (zh) * 2022-10-12 2023-01-17 北京市科学技术研究院 改进的灾害新闻三要素提取方法
CN115827989A (zh) * 2023-02-16 2023-03-21 杭州金诚信息安全科技有限公司 大数据环境下网络舆情人工智能预警系统及方法
CN116578697A (zh) * 2023-03-22 2023-08-11 中债金科信息技术有限公司 一种面向金融的语言情感分析和标注方法
CN116467639A (zh) * 2023-04-03 2023-07-21 电子科技大学长三角研究院(湖州) 一种用于智慧家庭画像构建中的新设备冷启动方法
CN116467639B (zh) * 2023-04-03 2026-05-08 电子科技大学长三角研究院(湖州) 一种用于智慧家庭画像构建中的新设备冷启动方法
CN119652553A (zh) * 2024-11-01 2025-03-18 暨南大学 一种基于文本语义的改进svm的网络安全检测方法

Also Published As

Publication number Publication date
CN107239529B (zh) 2020-06-09
CN107239529A (zh) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107239529B (zh) 一种基于深度学习的舆情热点类别划分方法
CN112836509B (zh) 一种专家系统知识库构建方法及系统
CN109376242B (zh) 基于循环神经网络变体和卷积神经网络的文本分类方法
CN114265935B (zh) 一种基于文本挖掘的科技项目立项管理辅助决策方法及系统
CN113177124A (zh) 一种垂直领域知识图谱构建方法及系统
CN107122375A (zh) 基于图像特征的图像主体的识别方法
CN116186268B (zh) 基于Capsule-BiGRU网络与事件自动分类的多文档摘要提取方法及系统
CN112052684A (zh) 电力计量的命名实体识别方法、装置、设备和存储介质
CN111597328B (zh) 一种新事件主题提取方法
CN112269874A (zh) 一种文本分类方法及系统
CN116842194B (zh) 一种电力语义知识图谱系统及方法
CN116955534B (zh) 投诉工单智能处理方法、装置、设备及存储介质
CN111951079A (zh) 一种基于知识图谱的信用评级方法、装置及电子设备
CN114065749A (zh) 一种面向文本的粤语识别模型及系统的训练、识别方法
CN118917294B (zh) 一种基于多角色智能体的智慧写作方法及系统
CN116756347A (zh) 一种基于大数据的语义信息检索方法
CN119179955A (zh) 一种多模态融合的数学试题多知识点分类方法
CN116451114A (zh) 基于企业多源实体特征信息的物联网企业分类系统及方法
JP2020098592A (ja) ウェブページ内容を抽出する方法、装置及び記憶媒体
CN118733860A (zh) 一种基于多维特征优化的媒体影响力评估模型构建方法
CN119830062A (zh) 一种数据分类分级方法及系统
CN118568568B (zh) 内容分类模型的训练方法以及相关设备
CN120067327A (zh) 基于图卷积神经网络的技术成熟度计算系统和方法
Pramono Sentiment analysis of political discourse on Platform X using graph neural network (GNN)
CN112835797A (zh) 一种基于程序中间结构特征的蜕变关系预测方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17911889

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17911889

Country of ref document: EP

Kind code of ref document: A1