journal article·2021-01-19Open access

Towards Improved Classification Accuracy on Highly Imbalanced Text Dataset Using Deep Neural Language Models

Sarang Shaikh, Sher Muhammad Daudpota, Ali Shariq Imran, Zenun Kastrati

Applied Sciences· Volume 11· Issue 2

Abstract

Data imbalance is a frequently occurring problem in classification tasks where the number of samples in one category exceeds the amount in others. Quite often, the minority class data is of great importance representing concepts of interest and is often challenging to obtain in real-life scenarios and applications. Imagine a customers’ dataset for bank loans-majority of the instances belong to non-defaulter class, only a small number of customers would be labeled as defaulters, however, the performance accuracy is more important on defaulters labels than non-defaulter in such highly imbalance datasets. Lack of enough data samples across all the class labels results in data imbalance causing poor classification performance while training the model. Synthetic data generation and oversampling techniques such as SMOTE, AdaSyn can address this issue for statistical data, yet such methods suffer from overfitting and substantial noise. While such techniques have proved useful for synthetic numerical and image data generation using GANs, the effectiveness of approaches proposed for textual data, which can retain grammatical structure, context, and semantic information, has yet to be evaluated. In this paper, we address this issue by assessing text sequence generation algorithms coupled with grammatical validation on domain-specific highly imbalanced datasets for text classification. We exploit recently proposed GPT-2 and LSTM-based text generation models to introduce balance in highly imbalanced text datasets. The experiments presented in this paper on three highly imbalanced datasets from different domains show that the performance of same deep neural network models improve up to 17% when datasets are balanced using generated text.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Text and Document Classification Technologies · Topic Modeling · Imbalanced Data Classification Techniques

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

Affiliations

Department of Computer Science, Sukkur IBA University, Sukkur 65200, Pakistan

Department of Computer Science (IDI), Norwegian University of Science and Technology (NTNU), 2815 Gjøvik, Norway

Department of Informatics, Linnaeus University, 351 95 Växjö, Sweden

References (32)

Show source-provided references
1. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
2. He, H., Bai, Y., Garcia, E.A., and Li, S. (2008, January 1–8). ADASYN: Adaptive synthetic sampling approach for imbalanced learning. Proceedings of the IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China.
3. Almahairi, A., Rajeswar, S., Sordoni, A., Bachman, P., and Courville, A. (2018). Augmented cyclegan: Learning many-to-many mappings from unpaired data. arXiv.
4. Papineni, K., Roukos, S., Ward, T., and Zhu, W.J. (2002, January 7–12). BLEU: A method for automatic evaluation of machine translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, Philadelphia, PA, USA.10.3115/1073083.1073135 ↗
5. Lin, C.Y. (2004). Rouge: A package for automatic evaluation of summaries. Text Summarization Branches Out, Association for Computational Linguistics.
6. Patent claim generation by fine-tuning OpenAI GPT-210.1016/j.wpi.2020.101983 ↗
7. Qu, Y., Liu, P., Song, W., Liu, L., and Cheng, M. (2020, January 17–19). A Text Generation and Prediction System: Pre-training on New Corpora Using BERT and GPT-2. Proceedings of the IEEE 10th International Conference on Electronics Information and Emergency Communication (ICEIEC), Beijing, China.10.1109/ICEIEC49280.2020.9152352 ↗
8. Sequence-to-sequence Bangla Sentence Generation with LSTM Recurrent Neural Networks10.1016/j.procs.2019.05.026 ↗
9. Santhanam, S. (2020). Context based Text-generation using LSTM networks. arXiv.
10. Mangal, S., Joshi, P., and Modak, R. (2019). LSTM vs. GRU vs. Bidirectional RNN for script generation. arXiv.
11. Customizable text generation via conditional text generative adversarial network10.1016/j.neucom.2018.12.092 ↗
12. Zhang, R., Chen, C., Gan, Z., Wang, W., Shen, D., Wang, G., Wen, Z., and Carin, L. (2020). Improving Adversarial Text Generation by Modeling the Distant Future. arXiv.10.18653/v1/2020.acl-main.227 ↗
13. A Generative Model for category text generation10.1016/j.ins.2018.03.050 ↗
14. Akkaradamrongrat, S., Kachamas, P., and Sinthupinyo, S. (2019, January 10–12). Text Generation for Imbalanced Text Classification. Proceedings of the 16th International Joint Conference on Computer Science and Software Engineering (JCSSE), Pataya, Thailand.10.1109/JCSSE.2019.8864181 ↗
15. Aspect-based opinion mining on student’s feedback for faculty teaching performance evaluation10.1109/ACCESS.2019.2928872 ↗
16. Mohammad, S.M., and Bravo-Marquez, F. (2017, January 7–11). WASSA-2017 Shared Task on Emotion Intensity. Proceedings of the Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis (WASSA), Copenhagen, Denmark.10.18653/v1/W17-5205 ↗
17. WET: Word embedding-topic distribution vectors for MOOC video lectures dataset10.1016/j.dib.2019.105090 ↗
18. Story scrambler-automatic text generation using word level rnn-lstm
19. Chakraborty, S., Banik, J., Addhya, S., and Chatterjee, D. (2020, January 19–20). Study of Dependency on number of LSTM units for Character based Text Generation models. Proceedings of the International Conference on Computer Science, Engineering and Applications (ICCSEA), Sydney, Australia.10.1109/ICCSEA49143.2020.9132839 ↗
20. Park, D., and Ahn, C.W. (2018). LSTM encoder-decoder with adversarial network for text generation from keyword. Theories and Applications, Proceedings of the International Conference on Bio-Inspired Computing, Qingdao, China, 23–25 October 2018, Springer.10.1007/978-981-13-2829-9_35 ↗
21. Long short-term memory10.1162/neco.1997.9.8.1735 ↗
22. Language models are unsupervised multitask learners
23. State-of-the-art augmented NLP transformer models for direct and single-step retrosynthesis10.1038/s41467-020-19266-y ↗
24. Bostrom, K., and Durrett, G. (2020). Byte pair encoding is suboptimal for language model pretraining. arXiv.10.18653/v1/2020.findings-emnlp.414 ↗
25. Imran, A.S., Daudpota, S.M., Kastrati, Z., and Bhatra, R. (2020). Cross-Cultural Polarity and Emotion Detection Using Sentiment Analysis and Deep Learning on COVID-19 Related Tweets. IEEE Access.10.1109/ACCESS.2020.3027350 ↗
26. Integrating word embeddings and document topics with deep learning in a video classification framework10.1016/j.patrec.2019.08.019 ↗
27. Sharma, S., Asri, L.E., Schulz, H., and Zumer, J. (2017). Relevance of unsupervised metrics in task-oriented dialogue for evaluating natural language generation. arXiv.
28. Banerjee, S., and Lavie, A. (, January June). METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. Proceedings of the Acl Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, Ann Arbor, MI, USA.
29. Huang, A. (2008, January 28–29). Similarity measures for text document clustering. Proceedings of the Sixth New Zealand Computer Science Research Student Conference (NZCSRSC2008), Christchurch, New Zealand.
30. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global vectors for word representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
31. Kiros, R., Zhu, Y., Salakhutdinov, R.R., Zemel, R., Urtasun, R., Torralba, A., and Fidler, S. (2015). Skip-thought vectors. Advances in Neural Information Processing Systems, Bradford Books.
32. Fagni, T., Falchi, F., Gambini, M., Martella, A., and Tesconi, M. (2020). TweepFake: About Detecting Deepfake Tweets. arXiv.10.1371/journal.pone.0251415 ↗