Predicting Customer Sentiment in Social Media Interactions: Analyzing Amazon Help Twitter Conversations Using Machine Learning

Md Arif (1), Mehedi Hasan (2), Sarder Abdulla Al Shiam (3), Md Parvez Ahmed (4), Mazharul Islam Tusher (5), Md Zikar Hossan (6), Aftab Uddin (7), Suniti Devi (8), Md Habibur Rahman (9), Md Zinnat Ali Biswas (10), Touhid Imam (11)
(1) Department of Management Science and Quantitative Methods, Gannon University, USA
(2) Department of Management -Business Analytics, St Francis College, USA
(3) Department of Management -Business Analytics, St Francis College, USA
(4) Washington University of Science and Technology, USA
(5) Monroe College, New Rochelle, New York, USA
(6) International American University, Los Angeles, California
(7) Fox School of Business & Management, Temple University, USA
(8) Department of Management Science and Quantitative Methods, Gannon University, USA
(9) International American University, Los Angeles, California
(10) University of South Wales, Wales, UK
(11) University of South Dakota, Vermillion, South Dakota, USA
Fulltext View | Download
How to cite (IJASEIT) :
Arif, M., Hasan, M., Al Shiam, S. A., Ahmed, M. P., Tusher, M. I., Hossan, M. Z., … Imam, T. (2024). Predicting Customer Sentiment in Social Media Interactions: Analyzing Amazon Help Twitter Conversations Using Machine Learning. International Journal of Advanced Science Computing and Engineering, 6(2), 52–56. https://doi.org/10.62527/ijasce.6.2.211

Social media platforms, particularly Twitter, have become essential sources of data for various applications, including marketing and customer service. This study focuses on analyzing customer interactions with Amazon's official support account, "@AmazonHelp," to understand and predict changes in customer sentiment during these interactions. Using the Twitter API, we extracted English-language tweets mentioning "@AmazonHelp," pre-processed the data, and categorized conversations to facilitate analysis. The primary objectives were to classify changes in customer sentiment and predict the overall sentiment change based on initial sentiment. We conducted experiments using multiple machines learning algorithms, including K-nearest neighbor, Naive Bayes, Artificial Neural Network, Bayes Net, Support Vector Machine, Logistic Regression, and Bagging with RepTree. Our dataset comprised over 6,500 conversations, filtered to include those with four or more tweets. Results indicated that K-nearest neighbor and Support Vector Machine offered the best balance between accuracy and F-measure, while Bagging with RepTree achieved the highest accuracy but had a lower F-measure. This study demonstrates the potential of integrating sentiment analysis and machine learning to effectively predict customer sentiment in social networks, providing valuable insights for improving customer engagement strategies.

A. K. Dwivedi, “Performance evaluation of different machine learning techniques for prediction of heart disease,” Neural Computing and Applications, vol. 29, no. 10, pp. 685–693, Sep. 2016, doi: 10.1007/s00521-016-2604-1.

Aswani, R., Kar, A. K., Ilavarasan, P. V., & Dwivedi, Y. K. (2018). Search engine marketing is not all gold: Insights from twitter and Seoclerks. International Journal of Information Management, 81, 107–116.

Fitri, L., Lestari, D., & Nurul, F. (2018). Measuring public satisfaction with data services using sentiment analysis on Twitter. Proceedings of the 2018 International Conference on Data and Software Engineering (ICoDSE).

Saragih, H. S., & Girsang, A. S. (2017). Customer engagement analysis on social media using sentiment mining: A case study on online transportation companies in Indonesia. Journal of Theoretical and Applied Information Technology, 95(7).

Al-Otaibi, S., Ykhlef, M., & Aljohani, N. (2018). A tweet advisor system for measuring customer satisfaction using sentiment analysis. Journal of King Saud University-Computer and Information Sciences.

Ibrahim, N. F., Wang, X., & Bourne, H. (2017). Exploring the effect of user engagement in online brand communities: Evidence from Twitter. Computers in Human Behavior, 72, 321–338.

H. Shirdastian, M. Laroche, and M.-O. Richard, “Using big data analytics to study brand authenticity sentiments: The case of Starbucks on Twitter,” International Journal of Information Management, vol. 48, pp. 291–307, Oct. 2019, doi: 10.1016/j.ijinfomgt.2017.09.007.

Rana, M. S., Hossain, M. M., Jewel, R. M., & Islam, M. R. (2017). Evaluating Customers Satisfaction of Electronic Banking: An Empirical Study in Bangladesh. The SIJ Transactions on Industrial, Financial & Business Management, 5(03), 07-12.

Ghosh, B. P., Bhuiyan, M. S., Das, D., Nguyen, T. N., Jewel, R. M., Mia, M. T., & Cao, D. M. (2024). Deep Learning in Stock Market Forecasting: Comparative Analysis of Neural Network Architectures Across NSE and NYSE. Journal of Computer Science and Technology Studies, 6(1), 68-75.

Chowdhury, M. S., Nabi, N., Rana, M. N. U., Shaima, M., Esa, H., Mitra, A., ... & Naznin, R. (2024). Deep Learning Models for Stock Market Forecasting: A Comprehensive Comparative Analysis. Journal of Business and Management Studies, 6(2), 95-99.

M. Bhuiyan, “Carbon Footprint Measurement and Mitigation Using AI,” SSRN Electronic Journal, 2024, doi: 10.2139/ssrn.4746446.

Mozumder, M. A. S., Sweet, M. M. R., Nabi, N., Tusher, M. I., Modak, C., Hasan, M., ... & Prabha, M. (2024). Revolutionizing Organizational Decision-Making for Banking Sector: A Machine Learning Approach with CNNs in Business Intelligence and Management. Journal of Business and Management Studies, 6(3), 111-118.

Rahman, M. A., Modak, C., Mozumder, M. A. S., Miah, M. N. I., Hasan, M., Sweet, M. M. R., ... & Alam, M. (2024). Advancements in Retail Price Optimization: Leveraging Machine Learning Models for Profitability and Competitiveness. Journal of Business and Management Studies, 6(3), 103-110.

Hammad, O., Rahman, M. R., Clements, N., Mishra, S., Miller, S., & Sullivan, E. (2023, November). PureNav: A Personalized Navigation Service for Environmental Justice Communities Impacted by Planned Disruptions. In Proceedings of the International Conference on Advances in Social Networks Analysis and Mining (pp. 56-63).

Park, S., Cho, J., Park, K., & Shin, H. (2021). Customer sentiment analysis with more sensibility. Engineering Applications of Artificial Intelligence, 104, 104356.

Gräbner, D., Zanker, M., Fliedl, G., & Fuchs, M. (2012). Classification of customer reviews based on sentiment analysis. In Information and communication technologies in tourism 2012 (pp. 460-470). Springer, Vienna.

Yi, S., & Liu, X. (2020). Machine learning based customer sentiment analysis for recommending shoppers, shops based on customers’ review. Complex & Intelligent Systems, 6(3), 621-634.

Grljević, O., & Bošnjak, Z. (2018). Sentiment analysis of customer data. Strategic Management-International Journal of Strategic Management and Decision Support Systems in Strategic Management, 23(3).

Sudirjo, F., Diantoro, K., Al-Gasawneh, J. A., Azzaakiyyah, H. K., & Ausat, A. M. A. (2023). Application of ChatGPT in Improving Customer Sentiment Analysis for Businesses. Jurnal Teknologi Dan Sistem Informasi Bisnis, 5(3), 283-288.

Sharma, V., & Manocha, T. (2022, February). Comparative Analysis of Online Fashion Retailers Using Customer Sentiment Analysis on Twitter. In Proceedings of the International Conference on Innovative Computing & Communication (ICICC).

Singla, Z., Randhawa, S., & Jain, S. (2017, June). Sentiment analysis of customer product reviews using machine learning. In 2017 international conference on intelligent computing and control (I2C2) (pp. 1-5). IEEE.

Hossain, M. S., & Rahman, M. F. (2023). Customer sentiment analysis and prediction of insurance products’ reviews using machine learning approaches. FIIB Business Review, 12(4), 386-402.

Dieksona, Z. A., Prakosoa, M. R. B., Qalby, M. S., Putraa, M. S. A. F. S., Achmada, S., & Sutoyoa, R. (2023). Sentiment analysis for customer review: Case study of Traveloka. Procedia Computer Science, 216, 682-690.

Prananda, A. R., & Thalib, I. (2020). Sentiment analysis for customer review: Case study of GO-JEK expansion. Journal of Information Systems Engineering and Business Intelligence, 6(1), 1.

Adak, A., Pradhan, B., & Shukla, N. (2022). Sentiment analysis of customer reviews of food delivery services using deep learning and explainable artificial intelligence: Systematic review. Foods, 11(10), 1500.

Moghaddam, S. (2015). Beyond sentiment analysis: mining defects and improvements from customer feedback. In Advances in Information Retrieval: 37th European Conference on IR Research, ECIR 2015, Vienna, Austria, March 29-April 2, 2015. Proceedings 37 (pp. 400-410). Springer International Publishing.

Jumabek, S., Tuwelbay, K., Allabay, A., & Geldibayev, B. (2024). Current Trends in The Formation of Mathematical Terminology on An Online Platform. International Journal of Advanced Science Computing and Engineering, 6(1), 7–12. https://doi.org/10.62527/ijasce.6.1.188

Mardiah, A., Defni, D., Lestari, A. H., Junaldi, J., & Ritmi, T. (2024). Classification of Population Data of Nagari Based on Economic Level Using The K-Nearest Neighbor Method. International Journal of Advanced Science Computing and Engineering, 6(1), 33–37. https://doi.org/10.62527/ijasce.6.1.191