journal article·2020-08-24Open access

Bi-LSTM Model to Increase Accuracy in Text Classification: Combining Word2vec CNN and Attention Mechanism

Beakcheol Jang, Myeonghwi Kim, Gaspard Harerimana, Sang-ug Kang, Jong Wook Kim

Applied Sciences· Volume 10· Issue 17

Abstract

There is a need to extract meaningful information from big data, classify it into different categories, and predict end-user behavior or emotions. Large amounts of data are generated from various sources such as social media and websites. Text classification is a representative research topic in the field of natural-language processing that categorizes unstructured text data into meaningful categorical classes. The long short-term memory (LSTM) model and the convolutional neural network for sentence classification produce accurate results and have been recently used in various natural-language processing (NLP) tasks. Convolutional neural network (CNN) models use convolutional layers and maximum pooling or max-overtime pooling layers to extract higher-level features, while LSTM models can capture long-term dependencies between word sequences hence are better used for text classification. However, even with the hybrid approach that leverages the powers of these two deep-learning models, the number of features to remember for classification remains huge, hence hindering the training process. In this study, we propose an attention-based Bi-LSTM+CNN hybrid model that capitalize on the advantages of LSTM and CNN with an additional attention mechanism. We trained the model using the Internet Movie Database (IMDB) movie review data to evaluate the performance of the proposed model, and the test results showed that the proposed hybrid attention Bi-LSTM+CNN model produces more accurate classification results, as well as higher recall and F1 scores, than individual multi-layer perceptron (MLP), CNN or LSTM models as well as the hybrid models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining · Topic Modeling · Text and Document Classification Technologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, Sangmyung University, Seoul 03016, Korea

Funding

National Research Foundation of Korea

References (42)

Show source-provided references
1. Deep learning for sentiment analysis: A survey10.1002/widm.1253 ↗
2. A survey on deep learning: Algorithms, techniques, and applications
3. Text Classification Using Machine Learning Techniques
4. Lai, S., Xu, L., Liu, K., and Zhao, J. (2015, January 25–30). Recurrent convolutional neural networks for text classification. Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, Austin, TX, USA.10.1609/aaai.v29i1.9513 ↗
5. A Text Sentiment Classification Modeling Method Based on Coordinated CNN-LSTM-Attention Model10.1049/cje.2018.11.004 ↗
6. Framewise phoneme classification with bidirectional LSTM and other neural network architectures10.1016/j.neunet.2005.06.042 ↗
7. Kim, Y. (2014, January 25–29). Convolutional Neural Networks for Sentence Classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1181 ↗
8. Bidirectional LSTM with attention mechanism and convolutional layer for text classification10.1016/j.neucom.2019.01.078 ↗
9. Liu, H. (2017). Sentiment analysis of citations using word2vec. arXiv.
10. Chinese comments sentiment classification based on word2vec and SVMperf10.1016/j.eswa.2014.09.011 ↗
11. Peng, H., Song, Y., and Roth, D. (2016, January 1–5). Event Detection and Co-reference with Minimal Supervision. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics (ACL), Austin, TX, USA.10.18653/v1/D16-1038 ↗
12. Severyn, A., and Moschitti, A. (2015, January 9–13). Twitter Sentiment Analysis with Deep Convolutional Neural Networks. Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval—SIGIR ’15, Association for Computing Machinery (ACM), Santiago, Chile.10.1145/2766462.2767830 ↗
13. Kalchbrenner, N., Grefenstette, E., and Blunsom, P. (2014). A convolutional neural network for modelling sentences. arXiv.10.3115/v1/P14-1062 ↗
14. Yin, W., Kann, K., Yu, M., and Schütze, H. (2017). Comparative study of CNN and RNN for natural language processing. arXiv.
15. Liang, D., and Zhang, Y. (2016). AC-BLSTM: Asymmetric convolutional bidirectional LSTM networks for text classification. arXiv.
16. Zhou, P., Qi, Z., Zheng, S., Xu, J., Bao, H., and Xu, B. (2016). Text classification improved by integrating bidirectional LSTM with two-dimensional max pooling. arXiv.
17. Huang, Z., Xu, W., and Yu, K. (2015). Bidirectional LSTM-CRF models for sequence tagging. arXiv.
18. Wang, S., Huang, M., and Deng, Z. (2018, January 13–19). Densely Connected CNN with Multi-scale Feature Attention for Text Classification. Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence {IJCAI-18}, International Joint Conferences on Artificial Intelligence, Stockholm, Sweden.10.24963/ijcai.2018/621 ↗
19. Text Classification Research with Attention-based Recurrent Neural Networks10.15837/ijccc.2018.1.3142 ↗
20. Gao, S., Ramanathan, A., and Tourassi, G. (2018, January 20). Hierarchical Convolutional Attention Networks for Text Classification. Proceedings of the Third Workshop on Representation Learning for NLP, Association for Computational Linguistics (ACL), Melbourne, Australia.10.18653/v1/W18-3002 ↗
21. Melamud, O., Goldberger, J., Dagan, I., Riezler, S., and Goldberg, Y. (2016, January 11–12). context2vec: Learning Generic Context Embedding with Bidirectional LSTM. Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning, Association for Computational Linguistics (ACL), Berlin, Germany.10.18653/v1/K16-1006 ↗
22. Ceraj, T., Kliman, I., and Kutnjak, M. (2019). Redefining Cancer Treatment: Comparison of Word2vec Embeddings Using Deep BiLSTM Classification Model, Faculty of Electrical Engineering and Computing, University of Zagreb. Text Analysis and Retrieval 2019 Course Project Reports.
23. Xiao, L., Wang, G., and Zuo, Y. (2018, January 8–9). Research on Patent Text Classification Based on Word2Vec and LSTM. Proceedings of the 2018 11th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China.10.1109/ISCID.2018.00023 ↗
24. A Hybrid CNN-LSTM Model for Improving Accuracy of Movie Reviews Sentiment Analysis10.1007/s11042-019-07788-7 ↗
25. Luan, Y., and Lin, S. (2019, January 29–31). Research on Text Classification Based on CNN and LSTM. Proceedings of the 2019 IEEE International Conference on Artificial Intelligence and Computer Applications (ICAICA), Institute of Electrical and Electronics Engineers (IEEE), Dalian, China.10.1109/ICAICA.2019.8873454 ↗
26. Tree-Structured Regional CNN-LSTM Model for Dimensional Sentiment Analysis10.1109/TASLP.2019.2959251 ↗
27. She, X., and Zhang, D. (2018, January 8–9). Text Classification Based on Hybrid CNN-LSTM Hybrid Model. Proceedings of the 2018 11th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China.10.1109/ISCID.2018.10144 ↗
28. A Novel Hybrid Deep Learning Model for Sentiment Classification10.1109/ACCESS.2020.2982538 ↗
29. Zhang, J., Li, Y., Tian, J., and Li, T. (2018, January 12–14). LSTM-CNN Hybrid Model for Text Classification. Proceedings of the 2018 IEEE 3rd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Institute of Electrical and Electronics Engineers (IEEE), Chongqing, China.10.1109/IAEAC.2018.8577620 ↗
30. A Fusion Model-Based Label Embedding and Self-Interaction Attention for Text Classification10.1109/ACCESS.2019.2954985 ↗
31. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv.
32. Joulin, A., Grave, E., Bojanowski, P., Mikolov, T., Lapata, M., Blunsom, P., and Koller, A. (2016). Bag of Tricks for Efficient Text Classification. arXiv.10.18653/v1/E17-2068 ↗
33. Jasmir, J., Nurmaini, S., Malik, R.F., and Abidin, D.Z. (2019, January 16). Text Classification of Cancer Clinical Trials Documents Using Deep Neural Network and Fine Grained Document Clustering. Proceedings of the Sriwijaya International Conference on Information Technology and Its Applications (SICONIAN 2019), Palembang, Indonesia.10.2991/aisr.k.200424.061 ↗
34. Schmaltz, A., and Beam, A. (2020). Exemplar Auditing for Multi-Label Biomedical Text Classification. arXiv.
35. Wang, Y.-B., You, Z.-H., Yang, S., Li, X., Jiang, T., and Zhou, X. (2019). A High Efficient Biological Language Model for Predicting Protein–Protein Interactions. Cells, 8.10.3390/cells8020122 ↗
36. Bergman, P., and Berman, S.J. (2016). Represent Yourself in Court: How to Prepare & Try a Winning Case, Nolo.
37. Li, P., Zhao, F., Li, Y., and Zhu, Z. (2018, January 9–11). Law text classification using semi-supervised convolutional neural networks. Proceedings of the 2018 Chinese Control and Decision Conference (CCDC), Institute of Electrical and Electronics Engineers (IEEE), Shenyang, China.10.1109/CCDC.2018.8407150 ↗
38. Patient2Vec: A Personalized Interpretable Deep Representation of the Longitudinal Electronic Health Record10.1109/ACCESS.2018.2875677 ↗
39. Srivastava, S.K., Singh, S.K., and Suri, J.S. (2020). A healthcare text classification system and its performance evaluation: A source of better intelligence by characterizing healthcare text. Cognitive Informatics, Computer Modelling, and Cognitive Science, Elsevier BV.10.1016/B978-0-12-819445-4.00016-3 ↗
40. Seguí, F.L., Aguilar, R.A.E., De Maeztu, G., García-Altés, A., Garcia-Cuyàs, F., Walsh, S., Castro, M.S., and Vidal-Alaball, J. (2020). Teleconsultations between Patients and Healthcare Professionals in Primary Care in Catalonia: The Evaluation of Text Classification Algorithms Using Supervised Machine Learning. Int. J. Environ. Res. Public Health, 17.10.3390/ijerph17031093 ↗
41. Opinion mining using ensemble text hidden Markov models for text classification10.1016/j.eswa.2017.07.019 ↗
42. Understanding the use of Virtual Reality in Marketing: A text mining-based review10.1016/j.jbusres.2018.10.055 ↗