Skip to main content

Comparison Analysis of LSTM and CNN Variants with Embedding Word Methods for Sentiment Analysis on Food Consumption Behavior

  • Conference paper
  • First Online:
Soft Computing in Data Science (SCDS 2023)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1771))

Included in the following conference series:

  • 292 Accesses

Abstract

Lockdowns, working from home, staying at home, and physical distance are expected to significantly impact consumer attitudes and behaviors during the COVID-19 pandemic. During the implementation of the Movement Control Order, Malaysians’ food preferences are already shifting away, influencing new consumption behavior. Since it has played a significant role in many areas of natural language, mainly using social media data from Twitter, there has been increased interest in sentiment analysis in recent years. However, research on the performance of various sentiment analysis methodologies such as n-gram ranges, lexicon techniques, deep learning, word embedding, and hybrid methods within this domain-specific sentiment is limited. This study evaluates several approaches to determine the best approach for tweets on food consumption behavior in Malaysia during the COVID-19 pandemic. This study combined unigram and bigram ranges with two lexicon-based techniques, TextBlob and VADER, and three deep learning classi-fiers, Long Short-Term Memory Network (LSTM), Convolutional Neural Networks (CNN), and their hybridization. Word2Vector and GloVe are two-word embedding approaches used by LSTM-CNN. The embedding GloVe on TextBlob approach with a combination of Unigram + Bigram [1,2] range produced the best results, with 85.79% accuracy and 85.30% F1-score. According to these findings, LSTM outperforms other classifiers because it achieves the highest scores for both performance metrics. The classification performance can be improved in future studies if the dataset is more evenly distributed across each positive and negative label.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  • Atalan, A.: Is the lockdown important to prevent the COVID-19 pandemic? Effects on psychology, environment and economy-perspective. Annals of medicine and surgery 56, 38–42 (2020)

    Article  Google Scholar 

  • Allain-Dupré, D., Chatry, I., Michalun, V., Moisio, A.: The territorial impact of COVID-19: managing the crisis across levels of government. OECD Policy Responses to Coronavirus(COVID-19) 10, 1620846020–909698535 (2020)

    Google Scholar 

  • Hashim, J.H., Adman, M.A., Hashim, Z., Radi, M.F.M., Kwan, S.C.: COVID-19 epidemic in Malaysia: epidemic progression, challenges, and response. Frontiers in public health 9 (2021)

    Google Scholar 

  • Galanakis, C.M.: The food systems in the era of the coronavirus (Covid-19) pandemic crisis. Foods 9(4), 523 (2020)

    Article  Google Scholar 

  • Di Renzo, L., et al.: Eating habits and lifestyle changes during COVID-19 lockdown: an Italian survey. Journal of translational medicine 18(1), 1–15 (2020)

    Article  Google Scholar 

  • AlTarrah, D., AlShami, E., AlHamad, N., AlBesher, F., Devarajan, S.: The impact of coronavirus covid-19 pandemic on food purchasing, eating behavior, and perception of food safety in Kuwait. Sustainability 13(16), 8987 (2021)

    Article  Google Scholar 

  • Tan, S.T., Tan, C.X., Tan, S.S.: Food security during the COVID-19 home confinement: A cross-sectional study focusing on adults in Malaysia. Human Nutrition & Metabolism 200142 (2022a)

    Google Scholar 

  • Tan, S.T., Tan, C.X., Tan, S.S.: Changes in dietary intake patterns and weight status during the COVID-19 lockdown: A cross-sectional study focusing on young adults in Malaysia. Nutrients 14(2), 280 (2022)

    Article  MathSciNet  Google Scholar 

  • Boon-Itt, S., Skunkan, Y.: Public perception of the COVID-19 pandemic on Twitter: Sentiment analysis and topic modeling study. JMIR Public Health and Surveillance 6(4), e21978 (2020)

    Article  Google Scholar 

  • Dubey, A.D.: Twitter Sentiment Analysis during COVID-19 Outbreak. Available at SSRN 3572023 (2020)

    Google Scholar 

  • Alamoodi, A.H., et al.: Sentiment analysis and its applications in fighting COVID-19 and infectious diseases: a systematic review. Expert systems with applications 167, 114155 (2021)

    Article  Google Scholar 

  • Bennett, G., Young, E., Butler, I., Coe, S.: The impact of lockdown during the COVID-19 outbreak on dietary habits in various population groups: a scoping review. Frontiers in nutrition 8, 626432 (2021)

    Article  Google Scholar 

  • González-Monroy, C., Gómez-Gómez, I., Olarte-Sánchez, C.M., Motrico, E.: Eating behaviour changes during the COVID-19 pandemic: a systematic review of longitudinal studies. Int. J. Environ. Res. Public Health 18(21), 11130 (2021)

    Article  Google Scholar 

  • Li, H., Chen, Q., Zhong, Z., Gong, R., Han, G.: E-word of mouth sentiment analysis for user behavior studies. Information Processing & Management 59(1), 102784 (2022)

    Article  Google Scholar 

  • Birjali, M., Kasri, M., Beni-Hssane, A.: A comprehensive survey on sentiment analysis: Approaches, challenges and trends. Knowledge-Based Systems 226, 107134 (2021)

    Article  Google Scholar 

  • Haque, M.R., Lima, S.A., Mishu, S.Z.: Performance Analysis of Different Neural Networks for Sentiment Analysis on IMDb Movie Reviews. In: 2019 3rd International Conference on Electrical, Computer & Telecommunication Engineering (ICECTE), pp. 161–164. IEEE (2019 December)

    Google Scholar 

  • Ali, M.S., Yusoff, M.: Comparison Performance of Long Short-Term Memory and Convolution Neural Network Variants on Online Learning Tweet Sentiment Analysis. In: International Conference on Soft Computing in Data Science, pp. 3–17. Springer, Singapore (2021 November)

    Google Scholar 

  • Yenter, A., Verma, A.: Deep CNN-LSTM with combined kernels from multiple branches for IMDb review sentiment analysis. In: 2017 IEEE 8th Annual Ubiquitous Computing, Electronics and Mobile Communication Conference (UEMCON), pp. 540–546. IEEE (2017 October)

    Google Scholar 

  • Shen, Q., Wang, Z., Sun, Y.: Sentiment analysis of movie reviews based on cnnblstm. In: International Conference on Intelligence Science, pp. 164–171. Springer, Cham (2017 October)

    Google Scholar 

  • Barry, J.: Sentiment Analysis of Online Reviews Using Bag-of-Words and LSTM Approaches. In: AICS, pp. 272–274 (2017)

    Google Scholar 

  • Ra, M., Ab, B., Kc, S.: Covid-19 outbreak: Tweet based analysis and visualization towards the influence of coronavirus in the world (2020)

    Google Scholar 

  • Alsaeedi, A., Khan, M.Z.: A study on sentiment analysis techniques of Twitter data. International Journal of Advanced Computer Science and Applications 10(2) (2019)

    Google Scholar 

  • Garreta, R.: N-gram range. MonkeyLearn (2020). Retrieved 15 July 2022, from https://help.monkeylearn.com/en/articles/2174105-n-gram-range

  • Bonta, V., Janardhan, N.K.N.: A comprehensive study on lexicon based approaches for sentiment analysis. Asian J. Comp. Sci. Technol. 8(S2), 1–6 (2019)

    Article  Google Scholar 

  • Institute for Public Health: National Health and Morbidity Survey (NHMS) 2019: Non-communicable diseases, healthcare demand, and health literacy—Key Findings (2020)

    Google Scholar 

Download references

Acknowledgements

The authors would like to thank Institute for Big Data Analytics and Artificial Intelligence (IBDAAI) and Universiti Teknologi MARA. The registration fees is funded by Pembiayaan Yuran Procding Berindeks (PYPB), Tabung Dana Kecemerlangan Pendidikan (DKP), Universiti Teknologi MARA (UiTM), Malaysia.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Norzaidah Md Noh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ramzi, N.I., Yusoff, M., Noh, N.M. (2023). Comparison Analysis of LSTM and CNN Variants with Embedding Word Methods for Sentiment Analysis on Food Consumption Behavior. In: Yusoff, M., Hai, T., Kassim, M., Mohamed, A., Kita, E. (eds) Soft Computing in Data Science. SCDS 2023. Communications in Computer and Information Science, vol 1771. Springer, Singapore. https://doi.org/10.1007/978-981-99-0405-1_14

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-0405-1_14

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-0404-4

  • Online ISBN: 978-981-99-0405-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics