Environment Sentiment Analysis of Bali Coffee Shop Visitors Using Bidirectional Encoder Representations from Transformers (BERT) and Generative Pre-trained Transformer 2 (GPT2) Model

Ni Putu Widya Yuniari, Ni Made Satvika Iswari, I Made Surya Kumara

Abstract


Bali is one of the provinces with the most abundant natural and cultural wealth in Indonesia. One commodity that supports it is coffee. Bali Coffee is not only a gastronomic identity, but also a cultural identity which makes it have added value to be developed into various business lines. One business derivative that is quite promising is a coffee shop. However, these favorable conditions also need to be maintained to ensure good quality reaches consumers. One thing that can do is analyze reviews from customers. One of the most popular methods is Sentiment Analysis. This technique allows business to analyze customer reviews on social media. It can be a feedback to maintaining and improving quality and good relationships with customers. This research aims to create a machine learning model to analyze customer reviews at several coffee shops in Bali which are divided into three labels, namely: positive, negative and neutral. The methods used are: scraping, cleaning, stopword removal, embedding, undersampling, and modeling. The algorithms used are Bidirectional Encoder Representation from Transformer (BERT) and Generative Pre-trained Transformers (GPT). The performance metrics used in this research are precision, recall, accuracy and loss. This research succeeded in creating a sentiment analysis model for coffee shop customers in Bali. The BERT model obtained an accuracy value of 78% without undersampling with a loss in the 10th iteration of 0.27. Meanwhile, the BERT model with undersampling obtained an accuracy value of 32.85% with a loss in the 10th iteration of 0.16. The GPT2 model without undersampling gets an accuracy of 78% with a loss in the 10th iteration of 0.25. Meanwhile, the GPT model with undersampling obtained an accuracy value of 32.85% with a loss in the 10th iteration of 0.15.


Keywords


BERT; GPT2; NLP; Sentiment Analysis

Full Text:

PDF

References


N. E. A. Riswari and S. R. Faridatussalam, “Kontribusi Sektor Pariwisata Terhadap Pendapatan Asli Daerah Kabupaten/Kota Di Provinsi Bali 2017-2021,” Jurnal Bisnis & Manajemen, vol. 3, no. 4, pp. 781-787, 2023.

BPS, “Indikator Pertumbuhan Ekonomi Bali Triwulan IV-2023,” Badan Pusat Statistik Provinsi Bali, Bali, 2023.

I. D. A. M. Prayatni and N. P. N. E. Lestari, “Strategi Keunggulan Bersaing Kopi Kintamani Pada Agrowisata JM Kopi,”

Jurnal Penelitian dan Pengembangan Sains dan Humaniora, vol. 6, no. 3, pp. 404-412, 2022.

A. Mawadati, W. Ustyannie, A. H. Wibowo and R. A. Simanjuntak, “Analysis of Yogyakarta Coffee Shop Visitor Reviews to Increase Customer Satisfaction Using Sentiment Analysis,” in International Conference on Engineering Management and Sustainable Innovative Technology, 2024.

G. McDonald and A. Rahmanulloh, “Indonesia Coffee Annual Report 2019,” in Global Agricultural Information Network, 2019.

G. A. Dipayana, “Pengelolaan Bisnis Coffee Shop SAUNX BAPA,” Sekolah Tinggi Ilmu Ekonomi Yayasan Keluarga Pahlawan Negara, Yogyakarta, 2023.

K. D. W. Utami and N. K. Ekawati, “Presepsi Pelaku Usaha Coffee Shop Terhadap Kebijakan Pembatasan Kegiatan Masyarakat Di Kota Denpasar,” Arc. Com. Health, vol. 9, no. 2, pp. 251-270, 2022.

V. Chandradev, I. M. A. D. Suarjaya and I. P. A. Bayupati, “Analisis Sentimen Review Hotel Menggunakan Metode Deep Learning BERT,” Jurnal Buana Informatika, vol. 14, no. 2, pp. 107-116, 2023.

D. Magdaleno, M. Montes, B. Estrada and A. Ochoa-Zezzatti, “A GPT-based Approach for Sentiment Analysis and Bakery Rating Prediction,” 2024.

A. Branco, D. Parada, M. Silva, F. Mendonça and S. S. Mostafa, “Sentiment Analysis in Portuguese Restaurant Reviews: Application of Transformer Models in Edge Computing,” electronics, vol. 13, no. 589, pp. 1-20, 2024.

K. Kheiri and H. Karimi, “SentimentGPT: Exploiting GPT for Advanced Sentiment Analysis and its Departure from Current Machine Learning,” Utah State University, Utah, 2023.

M. S. Sayeed, V. Mohan and K. S. Muthu, “BERT: A Review of Applications in Sentiment Analysis,” HighTech and Innovation Journal, vol. 4, no. 2, pp. 453-462, 2023.

L. Xiaoyan, R. C. Raga and S. Xuemei, “GloVe-CNN-BiLSTM Model for Sentiment Analysis on Text Reviews,” Hindawi Journal of Sensors, vol. 2022, pp. 1-12, 2022.

P. R. Amalia and E. Winark, “Aspect-Based Sentiment Analysis on Indonesian Restaurant Review Using a Combination of Convolutional Neural Network and Contextualized Word Embedding,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems), vol. 15, no. 3, p. 285 – 294, 2021.

S. Cahyaningtyas, D. H. Fudholi and A. F. Hidayatullah, “Deep learning for aspect-based sentiment analysis on Indonesian hotels reviews,” Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control Journal, vol. 6, no. 3, pp. 239-248, 2021.

N. Hossain, M. R. Bhuiyan and Z. N. Tumpa, “Sentiment Analysis of Restaurant Reviews using Combined CNN-LSTM,” in 11th ICCCNT 2020, New South Wales, 2020.

R. Collobert, J. Weston, L. Bottou, M. Karlen, K. Kavukcuoglu and P. Kuksa, “Natural Language Processing (almost) from Scratch,” Journal of Machine Learning Research 1, pp. 1-48, 2000.

Google, “Google Cloud,” Google, [Online]. Available: https://cloud.google.com/learn/what-is-natural-language- processing.

A. Thawani, J. Pujara, P. Szekely and F. Ilievski, “Representing Numbers in NLP: a Survey and a Vision,” University of Southern California, Southern California, 2021.

H. W. Kim and H. Chang, “From Words to Numbers: Getting Started with Text Analysis for Applied Social Scientists,”

Business Communication Research and Practice, vol. 3, no. 2, pp. 122-129, 2020.

J. Uszkoreit, “Transformer: A Novel Neural Network Architecture for Language Understanding,” Google Research, 2017. [Online]. Available: https://research.google/blog/transformer-a-novel-neural-network-architecture-for-language- understanding/.

A. Copestake, “Natural Language Processing,” University of Cambridge, Cambridge, 2004.

M. A. Khder, “Web Scraping or Web Crawling: State of Art, Techniques, Approaches and Application,” Int. J. Advance Soft Compu. Appl, vol. 13, no. 3, pp. 144-168, 2021.

S. Santhiappan and B. Ravindran, “Class Imbalance Learning,” Reconfigurable and Intelligent Systems Group, Department of Computer Science and Engineering, IIT Madras, 2017.

J. H. Joloudari, A. Marefat, M. A. Nematollahi, S. S. Oyelere and S. Hussain, “Effective Class-Imbalance learning based on SMOTE and Convolutional Neural Networks,” 2022.

X.-Y. Liu, J. Wu and Z.-H. Zhou, “Exploratory Undersampling for Class-Imbalance Learning,” IEEE TRANSACTIONS ON SYSTEMS, MAN AND CYBERNETICS, vol. B, pp. 1-4, 2008.

M. A. N. M. Yusuf and M. C. Untoro, “Evaluate of Random Undersampling Method and Majority Weighted Minority Oversampling Technique in Resolve Imbalanced Dataset,” IT Journal Research and Development (ITJRD), vol. 8, no. 1, pp. 1-13, 2023.

R. A. Sowah, M. A. Agebure, G. A. Mills, K. M. Koumadi and S. Y. Fiawoo, “New Cluster Undersampling Technique for Class Imbalance Learning,” International Journal of Machine Learning and Computing, vol. 6, no. 3, pp. 205-214, 2016.

M. Peng, Q. Zhang, X. Xing, T. Gui, X. Huang, Y.-G. Jiang, K. Ding and Z. Chen, “Trainable Undersampling for Class- Imbalance Learning,” The Thirty-Third AAAI Conference on Artificial Intelligence (AAAI-19), pp. 4707-4714, 2019.

J. Devlin, M.-W. Chang, L. Kenton and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” 2019.

J. Devlin and M.-W. Chang, “Google Research,” Google, 2 November 2018. [Online]. Available: https://research.google/blog/open-sourcing-bert-state-of-the-art-pre-training-for-natural-language-processing/. [Accessed 2024 5 3].

A. Radford, J. Wu, R. Child, D. Luan, D. Amodei and I. Sutskever, “Language Models are Unsupervised Multitask Learners,” OpenAI.

J. M. Banda, R. A. Angryk and M. P. C. H., “Steps Toward Large-scale Solar Image Data Analysis to Differentiate Solar Phenomena,” 2013.




DOI: https://doi.org/10.47738/jads.v5i4.302

Refbacks

  • There are currently no refbacks.



Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0