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.

Highlights

  • There is an unprecedented deluge of text data due to increased internet use, resulting in generation of text data from various sources such as social media and websites

  • The Bi-long-term short memory (LSTM) neural network is composed of LSTM units that operate in both directions to incorporate past and future context information

  • We leverage the unique advantages of LSTM and convolution neural network (CNN), and we propose a hybrid model that uses for textfor feature extraction and a Bi-LSTM

Read more

Summary

Introduction

There is an unprecedented deluge of text data due to increased internet use, resulting in generation of text data from various sources such as social media and websites. Text data are unstructured and contain natural-language constructs, making it difficult to infer an intended message from the data This has led to increased research into the use of deep learning for natural-language-based sentiment classification and natural-language inference. LSTM is an improved recurring neural network (RNN) architecture that uses a gating mechanism consisting of an input gate, forget gate, and output gate [4]. The second set of results were obtained with variable data size and the proposed model was superior in terms of accuracy and F1 score.

Word2vec
Bi-LSTM
Structure
Attention Mechanism
Related Research
The Proposed Model
Sequence Embedding Layer
Bi-LSTM Attention Layer
Experiment
Dataset
Performance Evaluation Metrics
Results
Analysis
Future Works
Conclusions

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.