Research Article  Open Access
Yunlong Zhu, "Research on News Text Classification Based on Deep Learning Convolutional Neural Network", Wireless Communications and Mobile Computing, vol. 2021, Article ID 1508150, 6 pages, 2021. https://doi.org/10.1155/2021/1508150
Research on News Text Classification Based on Deep Learning Convolutional Neural Network
Abstract
Aiming at the problems of low classification accuracy and low efficiency of existing news text classification methods, a new method of news text classification based on deep learning convolutional neural network is proposed. Determine the weight of the news text data through the VSM (Viable System Model) vector space model, calculate the information gain of mutual information, and determine the characteristics of the news text data; on this basis, use the hash algorithm to encode the news text data to calculate any news. The spacing between the text data realizes the feature preprocessing of the news text data; this article analyzes the basic structure of the deep learning convolutional neural network, uses the convolutional layer in the convolutional neural network to determine the change value of the convolution kernel, trains the news text data, builds a news text classifier of deep learning convolutional neural network, and completes news text classification. The experimental results show that the deep learning convolutional neural network can improve the accuracy and speed of news text classification, which is feasible.
1. Introduction
With the rapid development of Internet technology, we are in the era of information explosion. While enjoying the convenience brought by rich online information, we are also facing the severe challenge of how to quickly and effectively extract data information from massive information. Therefore, people pay more and more attention to the research and analysis in the direction of information retrieval technology and data mining technology, which makes the research related to natural language processing develop rapidly. Among them, the main task of text classification technology, which plays a key role in massive text data processing, is to solve the problem of chaotic text information to a certain extent. The basic principle is to extract relevant text features from the original text content and finally judge the category label, which has attracted more and more attention from scholars. And then, there are many applications and research [1]. However, with the rise of big data, massive online Internet text information has a series of new features, such as more complex formats, more cumbersome types, faster update speed, and more difficult labeling. Especially after mobile phone users are popularized on a large scale, microblog, headline news, and other social life are enriched, and various short texts are also growing rapidly. All these changes will bring new challenges to text classification [2]. With the advent of the era of artificial intelligence, machine learning is one of the important disciplines in this field. In these decades of development, the research of machine learningrelated algorithms has been quite mature, and a series of breakthroughs have been made in practical application. 2006 was the first year of deep learning. After its concept was proposed again, it quickly became the core research field of scholars all over the world. Up to now, as the core research object in the field of machine learning, deep learning has attracted extensive attention from contemporary Internet big data and artificial intelligence [3]. Since Google, Microsoft, IBM, Baidu, and other large Internet technology companies began to focus on the research and development of deep learning technology, it has made great breakthroughs in the fields of image, speech recognition, and natural language processing. Deep learning establishes a multilayer neural network structure by simulating the hierarchical structure of human brain, extracts the distributed features of input data layer by layer from the bottom to the top, and finally establishes a good mapping function to describe the abstract relationship from the bottom signal to the high semantics [4]. Obviously, as an algorithm rising in the whole big data environment, deep learning will become one of the hot research directions in the future. Therefore, using artificial intelligence algorithm to classify news text has become a hot issue in this field.
Literature [5] proposed a short text classification method based on keyword similarity. Firstly, the word 2vec word vector model is obtained through a large number of corpus training. Then, the keywords of each type of text are obtained through textrank, and the de duplication operation is carried out in the keyword set as the feature set. For any feature, the similarity between each word in the short text and the feature is calculated through the word vector model. The maximum similarity is selected as the weight of the feature. Finally, knearest neighbor (KNN) and support vector machine (SVM) are selected as the classifier training algorithm. Based on the Chinese news title dataset, the classification effect is improved by about 6% on average compared with the traditional short text classification method, which verifies the effectiveness of the method. However, this method does not preprocess the text before text classification, resulting in more similar information, which affects the classification results. Reference [6] proposes an ACOWNB classification algorithm based on improved information gain. Firstly, according to the word frequency distribution of feature words in the dataset, an adjustment factor is added to enhance/suppress the contribution/interference of feature words, select features with strong discrimination to form feature subsets, and improve the accuracy of Ig processing unbalanced datasets. Then, the ant colony optimization algorithm (ACO) is combined with the weighted naive Bayesian model, and ACO is used to iterate and globally optimize the weights to generate ACOWNB classifier to improve the classification efficiency of text data. The improved algorithms are compared and analyzed with typical news datasets. The experiments show that Ig can effectively remove redundant highfrequency features and has better feature selection ability for unbalanced datasets. ACOWNB classifier has higher accuracy and better classification efficiency for actual text data. The classification process of this method is complex and has some limitations. Literature [7] proposed CRNN text classification algorithm based on attention mechanism. Taking the pretrained word vector as the input, the convolutional neural network (CNN) is used to extract the features of the text vector; Bi gating loop unit (BI Gru) is used to capture the word order information in the text, extract the context dependency of the text, and identify the importance of different features combined with the attention mechanism. The highway network is used for feature optimization. The model is tested on three English corpora: 20 newsgroups, sst1, and sst2. The experimental results show that the model effectively improves the accuracy of classification tasks. However, this method has the problem of high noise in classification.
In view of the shortcomings of the above methods, this paper proposes a research on news text classification based on deep learning convolutional neural network. The weight of news text data is determined by VSM vector space model, and the information gain of mutual information is calculated to determine the characteristics of news text data. On this basis, the hash algorithm is used to encode the news text data, calculate the spacing between any news text data, and realize the feature preprocessing of news text data. This paper analyzes the basic structure of deep learning convolution neural network, determines the change value of convolution kernel with the help of convolution layer in convolution neural network, trains news text data, constructs news text classifier of deep learning convolution neural network, and completes news text classification. The technical route of this paper is as follows:
Step 1: determine the weight of news text data through VSM vector space model, calculate the information gain of mutual information, and determine the characteristics of news text data.
Step 2: the hash algorithm is used to encode the news text data, calculate the spacing between any news text data, and realize the feature preprocessing of news text data.
Step 3: analyze the basic structure of deep learning convolution neural network, determine the change value of convolution kernel with the help of convolution layer in convolution neural network, train news text data, construct news text classifier of deep learning convolution neural network, and complete news text classification.
Step 4: experimental analysis
Step 5: conclusion
2. Classification of News Text Based on Deep Learning Convolutional Neural Networks
2.1. News Text Data Feature Extraction
Due to the complex format of news text data directly acquired by the Internet, computers cannot directly understand the text content, so the representation of news text characteristics is to transform the unstructured or structured news text of the Internet into structured text intelligible by the computer. In this paper, we first characterize its feature [8] with the help of the VSM vector space model. The model is based on the number of feature words appear statistics, mainly including three steps: first, calculate the word frequency, then calculate the inverse document frequency, and finally calculate the TFIDF. The model is based on the feature representation of the word vector, if the reference source is not found in error. In presenting the weight size of each feature item in each text set, each text can be measured by the reference source [9]. If a feature word corresponds to a word vector, all feature words in all text sets correspond to the corresponding dimension of the space. The weights are calculated here using the TFIDF method based on word frequency, the number of single appearances, giving a large weight [10] to persuasive features in each document. The TFIDF weights are calculated as follows:
Among them, represents feature terms, represents the number of news text appearances, represents the frequency of news text occurrence, represents the derivative of text occurrence, and represents the total number of news text.
After the feature weights of the calculated news text data, the entropy changes of the news text data. Information gain is an entropybased method. First, calculate the change of information entropy when the feature item appears, that is, the information gain, and then select the information gain according to the size value to measure the importance of the information of the final classification; feature importance is proportional to the amount of information, that is, the more the feature carries information represents the greater the word feature importance [11]. The following formula is the calculation method of the information gain:
where represents the proportion or probability of category documents in all sets of documents, represents the probability of having feature items in a document, and is the number of document categories.
Mutual information is a variable that reflects the correlation between two variables. It works as follows: mutual information size represents the degree of correlation between characteristics and category, and the larger the association, the closer the former. Mutual information metric method is as follows:
Among them, represents the feature term and represents the category.
According to the calculation of the mutual information of the above news text, the extraction of the data characteristics of the news text is completed, i.e.,
In the formula, represents the proportional coefficient of news text feature data characteristics and the key value of news text features [16].
2.2. News Text Data Feature Preprocessing
To realize the effective classification of news text, this paper introduces the deep hash algorithm to effectively preprocess the above news text features. The deep hash algorithm can effectively handle the characteristics of news text. When the characteristics of news text differ, the algorithm of [12] by removing Hamming distance has the advantage of simple operation and high outlet efficiency [17].
The basic idea of hash function is that in the original news text feature data, the feature points are relatively close, and the impact of these two points occurs more frequently, when setting the set of news text features to be processed as follows:
Set the distance metric function for two points in the news text feature to the following:
According to the distance between the two points obtained above, since the hash algorithm has certain unidirectional, it is irreversible, i.e.,
In the formula, represents the output after the hash and represents the original news text.
The deep hash algorithm is considered as a density function [13] when dealing with noise in features in news text, and each density function corresponds to features of multiple news text, i.e.,
According to the features of the corresponding news text, [14] is converted to obtain the following:
Finally, the preprocessing of the news text feature data based on the deep hashing algorithm is implemented, i.e.,
In the formula, represents the preprocessing results of news text feature data and represents the weight value of preprocessing [18].
2.3. Classification of News Text Based on Deep Learning Convolutional Neural Networks
Deep learning convolutional neural network is an AI learning algorithm based on the neural network topology and optimizes the convolutional layer in neural networks into a convolutional kernel and simultaneously completes the propagation [15] in different directions in signal processing. The technical core of the method is in the transformation of the convolutional wave, through which detailed information of the data can be obtained in any case. Its expansion structure is shown in Figure 1.
In the study of this paper, the change of convolutional kernels in the convolutional layer completes the classification of news text. The convolutional layer structure is shown in Figure 2.
In Figure 2, the represents the feature data that the structure needs to be entered, and is the number of feature data; represents the number of convolutional kernels, and represent different weight values of the structure, and represents the amount of the final output of this topology [19].
In a convolutional neural network, the news text feature data is input into it, and the processed data features are as follows:
In the formula, represents the translation factor of the convolutional kernel number, represents the scaling factor, represents the weight value after the feature data input, and represents the excitation function [19].
Calculate the output values obtained from the above feature data to obtain the final training sample data, i.e.,
In formula (12), the represents the weight value of the convolutional kernel.
In this network, because it is prone to certain errors in the forward propagation, the forward propagation in the neural network is corrected to achieve a more accurate classification of news text. Therefore, the error correction is accomplished by using the gradient descent method.
The error of the forward propagation of the first extracted convolutional neural network is as follows:
In formula (13), is the ideal output of the feature data and is the actual output value of the feature data.
In the error values obtained above, their weight values and scaling factors are corrected according to the gradient descent method, i.e.,
In the formula, represents the learning efficiency values [20].
From the above analysis, a convolutional neural network classifier constructs the data trained on news text, i.e.,
The classification is completed according to the news text classifier obtained by formula (15), and the classification process of the method is shown in Figure 3.
3. Experimental Analysis
3.1. Design of Experimental Scheme
Experimental environment of this paper: the operating system is Ubuntu14.04. The processor is the Intel Core i5. The dataset used by the development tool for Pycharm community edition 3.4 experiments was collected from recent hot news content from Sina Weibo and manually annotated. The four datasets were DBMC1, DBMC2, DBMC3, and DBMC4. Among them, represents the number of categories of comment content. Here is the positive and negativity of the comments’ content. The SN represents the number of sentences per news text. The average length of each sentence is 7. The represents the size of the dataset. The represents the size of the forming dictionary. Test represents the proportion of the test set to the dataset. Details are shown in Table 1.

The convolutional neural network structure used in this experiment mainly consists of 1 word embedding layer, 1 convolutional layer, and 1 pooling layer, the dimension of the word vector is set to 128, the size of the convolutional kernel window is set to , etc., and the number of convolutional nuclei is 128.
3.2. Design of Experimental Indicators
Verify the effectiveness and accuracy of the classification method. Among them, the classification accuracy is a percentage, the higher the value represents the higher the efficiency of classification, about low classification time consuming, the better the classification efficiency.
3.3. Analysis of Experimental Results
The proposed method, the literature [5] method, and the results are shown in Figure 4.
From the data in Figure 4, the proposed method, literature [5] method, and literature [6] method classified more than 90%, while the other two methods showed the rise, which is due to the spacing between any news text data; code any news text data, train the news text classifier of deep learning convolutional neural network, and complete the classification of news text.
To further verify the effectiveness of this method, the timeconsuming classification of the proposed method, the literature [5] method, and the literature [6] method are compared, and the results are shown in Table 2.
Analyzing the data of experimental results in Table 2, we can see that with the number of iterations, the timeconsuming method of sample news text classification is different with the proposed method, literature [5] method, and literature [6] method. When the number of iterations is 20, the proposed method has a timeconsuming . Text classification of sample news is about 2.4 s. The literature [5] method takes about 4.9 s, of sample news text classification. The literature [6] method takes about 3.7 s, for the classification of sample news text, When the number of iterations is 60, the proposed method takes about 2.5 s. The literature [5] method takes about 4.9 s, of sample news text classification. The literature [6] method takes about 3.6 s. As shown by the comparison of the experimental data, the classification of this paper is shorter and has faster speed. This is due to analyzing the basic structure of deep learning convolutional neural network, determining the change value of its convolutional layers in the convolutional neural network, training news text data, building a news text classifier of deep learning convolutional neural networks, and completing the classification of news text.
4. Conclusion
In order to improve the classification accuracy of news text, a new classification method based on deep learning convolutional neural network is proposed. Determine the weight of the news text data through the VSM vector space model, calculate the information gain of mutual information, determine the characteristic news text data of the news text data, calculate the distance between any news text data, and analyze the basic structure of the deep learning convolutional neural network. Determine the change value of the convolution kernel, train the news text data, and build a news text classifier. The experimental results show that the deep learning convolutional neural network can improve the accuracy of news text classification and increase the classification speed.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The author declares that he has no conflict of interest.
References
 R. Asgarnezhad, M. Soltanaghaei, and S. A. Monadjemi, “An application of MOGW optimization for feature selection in text classification,” The Journal of Supercomputing, vol. 16, no. 15, pp. 154–160, 2020. View at: Google Scholar
 A. Esuli, A. Moreo, and F. Sebastiani, “Funnelling: a new ensemble method for heterogeneous transfer learning and its application to crosslingual text classification,” ACM Transactions on Information Systems, vol. 37, no. 3, pp. 1–30, 2019. View at: Publisher Site  Google Scholar
 M. Oleynik, A. Kugic, Z. Kasáč, and M. Kreuzthaler, “Evaluating shallow and deep learning strategies for the 2018 n2c2 shared task on clinical text classification,” Journal of the American Medical Informatics Association, vol. 26, no. 11, pp. 1247–1254, 2019. View at: Publisher Site  Google Scholar
 M. A. Ibrahim, M. U. Ghani Khan, F. Mehmood, M. N. Asim, and W. Mahmood, “GHSNET a generic hybridized shallow neural network for multilabel biomedical text classification,” Journal of Biomedical Informatics, vol. 116, no. 1, article 103699, 2021. View at: Publisher Site  Google Scholar
 Z. Zhenhao, G. Yi, H. Meiqi, and W. Jixiang, “Research on short text classification based on keyword similarity,” Application Research of Computers, vol. 37, no. 1, pp. 26–29, 2020. View at: Google Scholar
 N.j. Qiu, P. Gao, P. Wang, and Y. Tao, “Research on ACOWNB classification algorithm based on improved information gain,” Computer Simulation, vol. 36, no. 1, pp. 295–299, 2019. View at: Google Scholar
 R. Chen, C.g. Ren, Z.y. Wang, Z.j. Qu, and H.p. Wang, “Attention based CRNN for text classification,” Computer Engineering and Design, vol. 40, no. 11, pp. 3151–3157, 2019. View at: Google Scholar
 Z. Chen and J. Ren, “Multilabel text classification with latent wordwise label information,” Applied Intelligence, vol. 14, no. 9, pp. 1–14, 2020. View at: Google Scholar
 A. Gcs and B. Ml, “Stacked DeBERT: all attention in incomplete data for text classification,” Neural Networks, vol. 136, no. 1, pp. 87–96, 2021. View at: Google Scholar
 J. Krishna, H. Purohit, and H. Rangwala, “Diversitybased generalization for neural unsupervised text classification under domain shift,” ECMLPKDD, vol. 15, no. 24, pp. 1145–1152, 2020. View at: Google Scholar
 B. Cowley, M. Filetti, and K. Lukander, “The psychophysiology primer: a guide to methods and a broad review with a focus on human–computer interaction,” Foundations and Trends in Human–Computer Interaction, vol. 9, no. 3, pp. 151–308, 2016. View at: Google Scholar
 I. Baldini, D. Wei, K. N. Ramamurthy, M. Yurochkin, and M. Singh, “Your fairness may vary: group fairness of pretrained language models in toxic text classification,” International Conference on Information Technology in Medicine & Education, vol. 45, no. 1, pp. 15–21, 2021. View at: Google Scholar
 J. Jang, Y. Kim, K. Choi, and S. Suh, “Sequential Targeting: an incremental learning approach for data imbalance in text classification,” International Conference on Information Technology in Medicine and Education, vol. 45, no. 1, pp. 147–154, 2020. View at: Google Scholar
 I. Chalkidis, M. Fergadiotis, S. Kotitsas, P. Malakasiotis, N. Aletras, and I. Androutsopoulos, “An empirical study on largescale multilabel text classification including few and zeroshot labels,” International Conference on Information Technology in Medicine and Education, vol. 45, no. 2, pp. 123–128, 2020. View at: Google Scholar
 T. Igamberdiev and I. Habernal, “Privacypreserving graph convolutional networks for text classification,” International Conference on Information Technology in Medicine and Education, vol. 7, no. 1, pp. 868–871, 2021. View at: Google Scholar
 Y. Xu, L. Gui, and T. Xie, “Intelligent recognition method of turning tool wear state based on information fusion technology and BP neural network,” Shock and Vibration, vol. 2021, no. 8, Article ID 7610884, p. 10, 2021. View at: Publisher Site  Google Scholar
 C. Y. Peng, U. Raihany, S. W. Kuo, and Y. Z. Chen, “Sound detection monitoring tool in CNC milling sounds by Kmeans clustering algorithm,” Sensors, vol. 21, no. 13, 2021. View at: Publisher Site  Google Scholar
 D. C. MackintoshFranklin, “An evaluation of formative feedback and its impact on undergraduate student nurse academic achievement,” Nurse Education in Practice, vol. 50, no. 4, article 102930, 2021. View at: Publisher Site  Google Scholar
 Y. Chen, X. Wang, and X. Du, “Diagnostic evaluation model of English learning based on machine learning,” Journal of Intelligent & Fuzzy Systems, vol. 40, no. 2, pp. 2169–2179, 2021. View at: Publisher Site  Google Scholar
 X. Liu, “Feature recognition of English based on deep belief neural network and big data analysis,” Computational Intelligence and Neuroscience, vol. 2021, no. 6, Article ID 5609885, p. 10, 2021. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2021 Yunlong Zhu. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.