Halal Products on Twitter: Data Extraction and Sentiment Analysis Using Stack of Deep Learning Algorithms

Twitter is a leading platform among social media networks. It allows microblogging of up to 140 characters for a single post. Owing to this characteristic, it is popular among users. People tweet about various topics from daily life events to major incidents. Given the influence of this social media platform, the analysis of Twitter contents has become a research area as it gives us useful insights on a topic. Hence, this paper will describe how Twitter data are extracted, and the sentiment of the tweets on a particular topic is calculated. This paper focusses on tweets of two halal products, i.e., halal tourism and halal cosmetics. Twitter data (over a 10-year span) were extracted using the Twitter search function, and an algorithm was used to filter the data. Then, an experiment was conducted to calculate and analyze the tweets’ sentiment using deep learning algorithms. In addition, convolutional neural networks (CNN), long short-term memory (LSTM), and recurrent neural networks (RNN) were utilized to improve the accuracy and construct prediction models. Among the results, it was found that the Word2vec feature extraction method combined with a stack of the CNN and LSTM algorithms achieved the highest accuracy of 93.78%.

[1]  Mohamed M. Mostafa,et al.  Mining and mapping halal food consumers: A geo-located Twitter opinion polarity analysis , 2018 .

[2]  Phurivit Sangkatsanee,et al.  Practical real-time intrusion detection using machine learning approaches , 2011, Comput. Commun..

[3]  Muhammad Bilal Majid,et al.  Consumer Purchase Intention towards Halal Cosmetics & Personal Care Products in Pakistan , 2015 .

[4]  Mohamad Ghozali Hassan,et al.  The mainstream cosmetics industry in Malaysia and the emergence, growth, and prospects of halal cosmetics , 2010 .

[5]  Ronald L. Rivest,et al.  The MD5 Message-Digest Algorithm , 1992, RFC.

[6]  이창기 Long Short-Term Memory 기반의 Recurrent Neural Network를 이용한 개체명 인식 , 2015 .

[7]  Ali Feizollah,et al.  Evaluation of machine learning classifiers for mobile malware detection , 2014, Soft Computing.

[8]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[9]  Wynne Wright,et al.  Halal on the menu?: Contested food politics and French identity in fast-food , 2013 .

[10]  Mohd Nazari Ismail,et al.  Toward a halal tourism market , 2010 .

[11]  Sergey Ioffe,et al.  Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift , 2015, ICML.

[12]  Mohd Nazari Ismail,et al.  Halal tourism: Concepts, practises, challenges and future , 2016 .

[13]  Laurent Tournois,et al.  Building holistic brands: an exploratory study of Halal cosmetics , 2015 .

[14]  Ali Feizollah,et al.  A Study Of Machine Learning Classifiers for Anomaly-Based Mobile Botnet Detection , 2013 .