Cargando…

Application of an emotional classification model in e-commerce text based on an improved transformer model

With the rapid development of the mobile internet, people are becoming more dependent on the internet to express their comments on products or stores; meanwhile, text sentiment classification of these comments has become a research hotspot. In existing methods, it is fairly popular to apply a deep l...

Descripción completa

Detalles Bibliográficos
Autores principales: Wang, Xuyang, Tong, Yixuan
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7935313/
https://www.ncbi.nlm.nih.gov/pubmed/33667262
http://dx.doi.org/10.1371/journal.pone.0247984
_version_ 1783660983321886720
author Wang, Xuyang
Tong, Yixuan
author_facet Wang, Xuyang
Tong, Yixuan
author_sort Wang, Xuyang
collection PubMed
description With the rapid development of the mobile internet, people are becoming more dependent on the internet to express their comments on products or stores; meanwhile, text sentiment classification of these comments has become a research hotspot. In existing methods, it is fairly popular to apply a deep learning method to the text classification task. Aiming at solving information loss, weak context and other problems, this paper makes an improvement based on the transformer model to reduce the difficulty of model training and training time cost and achieve higher overall model recall and accuracy in text sentiment classification. The transformer model replaces the traditional convolutional neural network (CNN) and the recurrent neural network (RNN) and is fully based on the attention mechanism; therefore, the transformer model effectively improves the training speed and reduces training difficulty. This paper selects e-commerce reviews as research objects and applies deep learning theory. First, the text is preprocessed by word vectorization. Then the IN standardized method and the GELUs activation function are applied based on the original model to analyze the emotional tendencies of online users towards stores or products. The experimental results show that our method improves by 9.71%, 6.05%, 5.58% and 5.12% in terms of recall and approaches the peak level of the F1 value in the test model by comparing BiLSTM, Naive Bayesian Model, the serial BiLSTM_CNN model and BiLSTM with an attention mechanism model. Therefore, this finding proves that our method can be used to improve the text sentiment classification accuracy and effectively apply the method to text classification.
format Online
Article
Text
id pubmed-7935313
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-79353132021-03-15 Application of an emotional classification model in e-commerce text based on an improved transformer model Wang, Xuyang Tong, Yixuan PLoS One Research Article With the rapid development of the mobile internet, people are becoming more dependent on the internet to express their comments on products or stores; meanwhile, text sentiment classification of these comments has become a research hotspot. In existing methods, it is fairly popular to apply a deep learning method to the text classification task. Aiming at solving information loss, weak context and other problems, this paper makes an improvement based on the transformer model to reduce the difficulty of model training and training time cost and achieve higher overall model recall and accuracy in text sentiment classification. The transformer model replaces the traditional convolutional neural network (CNN) and the recurrent neural network (RNN) and is fully based on the attention mechanism; therefore, the transformer model effectively improves the training speed and reduces training difficulty. This paper selects e-commerce reviews as research objects and applies deep learning theory. First, the text is preprocessed by word vectorization. Then the IN standardized method and the GELUs activation function are applied based on the original model to analyze the emotional tendencies of online users towards stores or products. The experimental results show that our method improves by 9.71%, 6.05%, 5.58% and 5.12% in terms of recall and approaches the peak level of the F1 value in the test model by comparing BiLSTM, Naive Bayesian Model, the serial BiLSTM_CNN model and BiLSTM with an attention mechanism model. Therefore, this finding proves that our method can be used to improve the text sentiment classification accuracy and effectively apply the method to text classification. Public Library of Science 2021-03-05 /pmc/articles/PMC7935313/ /pubmed/33667262 http://dx.doi.org/10.1371/journal.pone.0247984 Text en © 2021 Wang, Tong http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Wang, Xuyang
Tong, Yixuan
Application of an emotional classification model in e-commerce text based on an improved transformer model
title Application of an emotional classification model in e-commerce text based on an improved transformer model
title_full Application of an emotional classification model in e-commerce text based on an improved transformer model
title_fullStr Application of an emotional classification model in e-commerce text based on an improved transformer model
title_full_unstemmed Application of an emotional classification model in e-commerce text based on an improved transformer model
title_short Application of an emotional classification model in e-commerce text based on an improved transformer model
title_sort application of an emotional classification model in e-commerce text based on an improved transformer model
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7935313/
https://www.ncbi.nlm.nih.gov/pubmed/33667262
http://dx.doi.org/10.1371/journal.pone.0247984
work_keys_str_mv AT wangxuyang applicationofanemotionalclassificationmodelinecommercetextbasedonanimprovedtransformermodel
AT tongyixuan applicationofanemotionalclassificationmodelinecommercetextbasedonanimprovedtransformermodel