American Journal of Business and Operations Research

Enhancing Customer Relationship Management through Sentiment Analysis and Social Media Data Mining

Esmeralda Kazia, Bledar Kazia
Volume 10, Issue 1, pp. 05–11 (2023)
DOI: https://doi.org/10.54216/AJBOR.100102
Online: https://americaspg.com/journal/1/article/1684

Abstract

Customer Relationship Management (CRM) is a crucial aspect of modern business that enables companies to maintain healthy relationships with their customers. In today’s digital age, customers interact with companies through multiple channels, including social media, email, and phone. Analyzing customer feedback and sentiment is therefore increasingly important for understanding customer needs and improving the overall experience. This work proposes a system that applies deep learning to sentiment analysis to improve CRM. By analyzing feedback from various sources, companies can gain insights into customer needs and preferences and identify areas for improvement in products and services. We also present a company case study in which the proposed system was implemented in a CRM strategy. The reported results indicate improvements in customer satisfaction and retention and more efficient identification and resolution of customer concerns. The approach can support targeted marketing campaigns and personalized communication strategies.

Keywords: Sentiment Analysis; Customer Relationship; Management Social Media Analysis; Deep Learning

1. INTRODUCTION

Sentiment analysis uses natural language processing (NLP) and machine learning (ML) algorithms to analyze customer feedback and identify the sentiment it expresses. In CRM, this analysis can reveal customer opinions, preferences, and pain points, informing product development, marketing strategies, and customer service. Analysis of service calls, emails, and chats can identify recurring complaints as well as positive feedback and areas of strength. Analysis of social media feedback can help businesses identify and respond to comments promptly, recognize potential issues or opportunities, and engage customers in a more personalized way.

Customer Relationship Management (CRM) refers to the strategies, practices, and technologies businesses use to manage and analyze customer interactions and data throughout the customer lifecycle. CRM aims to improve customer satisfaction, loyalty, and retention, ultimately increasing revenue and profitability. CRM systems track customer interactions such as sales activity, service inquiries, and marketing campaigns. The collected data can be used to segment customers, analyze their behavior and preferences, and personalize interactions. Effective CRM requires a customer-focused approach and collaboration across sales, marketing, and customer service to provide a consistent customer experience. CRM systems are used in many industries, including retail, healthcare, and finance.

This work introduces a deep-learning system to improve CRM using social feedback. A convolutional model extracts textual features from social media posts, and a bidirectional recurrent module learns contextual dependencies between text elements. The resulting analysis is intended to provide insights for CRM.

Section 2 reviews related studies; Section 3 describes the methodology; Section 4 presents the experimental analysis; and Section 5 concludes the paper.

Prior research identifies sentiment analysis as a useful tool for improving customer experience by analyzing feedback from social media and other sources, identifying customer sentiment, pain points, and preferences, and informing targeted campaigns and product or service improvements. Nasr et al. [1] discuss sentiment analysis for social CRM, including how social feedback can reveal customer preferences, concerns, and satisfaction and support stronger engagement and loyalty. Deb et al. [2] examine artificial intelligence for generating automated customer insights, predicting behavior, recommending products, and powering personalized chatbot support. Ahmed et al. [3] study AI-based sentiment analysis as a way to understand reactions to products and services and support business decisions.

Cambria et al. [4] review developments in opinion mining, from text classification to approaches involving NLP, machine learning, and knowledge representation, and discuss applications and challenges across domains. Berry and Linoff [5] survey data-mining methods for marketing, sales, and CRM, including decision trees, neural networks, and association rules, as well as implementation and ethical considerations. Soltani and Navimipour [6] review CRM mechanisms such as customer profiling, segmentation, and targeting and identify implementation challenges and future research needs.

Fan et al. [7] combine online-review sentiment with historical sales data and the Bass diffusion model to forecast product sales. Ravi and Ravi [8] survey opinion-mining tasks—including opinion extraction, sentiment classification, and summarization—and rule-based, statistical, and machinelearning approaches. Capuano et al. [9] apply incremental learning to CRM sentiment analysis to adapt to changing social data. Seyfio˘glu and Demirezen [10] propose a multistage framework for Turkish CRM text, combining normalization, feature extraction and selection, and sentiment classification. Schmunk et al. [11] study sentiment analysis of user-generated content for extracting decision-relevant knowledge, including hotel strengths, weaknesses, and customer satisfaction.

3. METHODOLOGICAL DESIGN

The proposed methodology collects customer feedback from sources such as social media, email, and phone calls, stores it, and analyzes its sentiment. The first step is to identify feedback sources and establish a system for data collection and storage. Feedback is then preprocessed through text cleaning, tokenization, and stemming. Noise and stop words are removed, and the text is converted into a form suitable for sentiment analysis. The proposed deep-learning model classifies feedback as positive, negative, or neutral. Its architecture is illustrated in Figure 1.

Convolutional Neural Networks (CNNs) extract features from text. The model typically contains an embedding layer, convolutional layer(s), a pooling layer, and fully connected layer(s). The embedding layer maps each input word to a vector, convolution filters extract local features, and pooling reduces their dimensionality. The convolution operation is expressed as:

Z ∞ −∞f(t)g(x−t)dt. (1)

(f ∗g)(x) =

Long Short-Term Memory (LSTM) networks handle sequential characteristics and long-term dependencies in text. The LSTM gate and state calculations are:

it = σ(Wxixt +Whiht−1 +Wcict−1 +bi), (2) ft = σ(Wx f xt +Whf ht−1 +Wcf ct−1 +bf ), (3) ct = ftct−1 +it tanh(Wxcxt +Whcht−1 +bc), (4) ot = σ(Wxoxt +Whoht−1 +Wcoct +bo), (5) ht = ot tanh(ct). (6)

Bidirectional LSTM (BLSTM) processes the input in both forward and backward directions, allowing the model to use context from preceding and subsequent text. This can help represent complex sentence structures, including negation, sarcasm, and irony. The two directional hidden states and their concatenation are:

−→ ht = −−−−→ LSTM(mt), (7) ←− ht = ←−−−− LSTM(mt), (8) ht = [−→ ht ;←− ht ]. (9)

After sentiment analysis, visualization tools such as charts, graphs, and heat maps can be used to examine trends and patterns. The resulting insights inform targeted marketing and personalized communication that address customer concerns and preferences, with the aim of improving satisfaction and retention.

4. EXPERIMENTAL ANALYSIS

A CRM dataset can include customer contact information, demographics, interactions, purchase history, preferences, and satisfaction. This study uses an e-commerce dataset from the UCI Machine Learning Repository1. The data cover sales made by a non-store online retailer in the United Kingdom between December 1, 2010, and December 9, 2011. The retailer specializes in personalized gifts and serves many wholesalers.

Recency, Frequency, and Monetary value (RFM) analysis groups customers based on transaction history. Recency measures how recently a customer purchased; more recent purchasers may be more likely to purchase again. Frequency measures how often a customer purchases; frequent purchasers may have higher lifetime value. Monetary value measures customer spending; customers who spend more may have greater overall value. These three measures are calculated for each customer and used to assign RFM segments. Figure 2 illustrates the custom segmentation map. Segment-based analysis can guide targeted promotions, loyalty programs, and retention strategies for customers at risk of leaving.

Table 1. reports the numerical segmentation results. These
Table 1. reports the numerical segmentation results. These
Figure 1. Architecture of the proposed customer sentiment analysis model for CRM.
Figure 1. Architecture of the proposed customer sentiment analysis model for CRM.
Figure 2. Customer segmentation map used in the RFM analysis.
Figure 2. Customer segmentation map used in the RFM analysis.

statistics can help identify profitable customer groups and tailor marketing efforts.

Cohort analysis groups customers who share a characteristic, such as the month of their first purchase, and tracks their behavior and spending over later periods. This helps compare how customer groups behave over time and identify patterns that can guide marketing and retention activities. The monthly cohort analysis is shown in Figure 3.

A confusion matrix compares predicted sentiment labels with the actual labels in the test data using true-positive, falsepositive, false-negative, and true-negative counts. Figure 4 presents the reported results for the negative, neutral, and positive VADER sentiment classes. The matrix indicates the system’s classification outcomes.

Figure 4. Confusion matrix of the proposed system. Rows show predicted sentiment; columns show the VADER sentiment labels (negative, neutral, and positive).
Figure 4. Confusion matrix of the proposed system. Rows show predicted sentiment; columns show the VADER sentiment labels (negative, neutral, and positive).

5. CONCLUSION

This work proposes a sentiment analysis system for improving CRM by analyzing customer feedback from sources including social media, email, and phone calls. The analysis can provide insights into customer needs and preferences, identify areas for improvement in products and services, and support targeted marketing campaigns and personalized communication. The case study reports that the system improved customer satisfaction and retention and helped the company address customer concerns more efficiently. These findings highlight the potential of sentiment analysis to support CRM.

Table 1. Numerical results of the RFM segmentation analysis.
Table 1. Numerical results of the RFM segmentation analysis.

about_to_sleep 74.00 10.95 35.00 53.32 74.00 10.95 35.00 53.32 4.00 0.38 3.00 1.17 at_Risk 375.00 68.62 74.00 153.79 375.00 68.63 73.00 153.79 7.00 0.96 4.00 2.88 cant_loose 373.00 65.25 73.00 132.97 374.00 65.25 73.00 132.97 35.00 4.30 7.00 8.38 champions 15.00 3.69 1.00 6.37 13.00 3.68 1.00 6.36 210.00 16.48 5.00 12.43 hibernating 376.00 92.02 73.00 217.61 375.00 92.01 74.00 217.61 3.00 0.31 3.00 1.10 loyal_customers 72.00 15.58 17.00 33.61 72.00 15.58 17.00 33.61 63.00 4.55 3.00 6.49 need_attention 72.00 11.55 36.00 52.44 72.00 11.56 34.00 52.44 3.00 0.48 3.00 2.33 new_customers 15.00 3.91 3.00 7.43 15.00 3.91 3.00 7.43 2.00 0.01 2.00 1.00 potential_loyalists 34.00 9.34 2.00 17.40 34.00 9.34 2.00 17.41 3.00 0.65 2.00 2.02 promising 34.00 5.25 17.00 23.43 34.00 5.20 16.00 23.51 1.00 0.01 1.00 1.00

Figure 3. Monthly cohort analysis.
Figure 3. Monthly cohort analysis.

References

[1] M. M. Nasr, E. M. Shaaban, and A. M. Hafez, “Enhanc-ing social customer relationship management by using sentiment analysis,” International Journal of Science and Research, vol. 6, pp. 803–807, 2017.

[2] S. K. Deb, R. Jain, and V. Deb, “Artificial intelligence—creating automated insights for customer relationship management,” in 2018 8th International Conference on Cloud Computing, Data Science & Engineering (Con-fluence). IEEE, 2018, pp. 758–764.

[3] A. A. A. Ahmed, S. Agarwal, I. G. A. Kurniawan, S. P. Anantadjaya, and C. Krishnan, “Business boosting through sentiment analysis using artificial intelligence approach,” International Journal of System Assurance Engineering and Management, vol. 13, no. Supplement 1, pp. 699–709, 2022.

[4] E. Cambria, B. Schuller, Y. Xia, and C. Havasi, “New av-enues in opinion mining and sentiment analysis,” IEEE Intelligent Systems, vol. 28, no. 2, pp. 15–21, 2013.

[5] M. J. Berry and G. S. Linoff, Data Mining Techniques: For Marketing, Sales, and Customer Relationship Man-agement. John Wiley & Sons, 2004.

[6] Z. Soltani and N. J. Navimipour, “Customer relationship management mechanisms: A systematic review of the state of the art literature and recommendations for future research,” Computers in Human Behavior, vol. 61, pp. 667–688, 2016.

[7] Z. P. Fan, Y. J. Che, and Z. Y. Chen, “Product sales fore-casting using online reviews and historical sales data: A method combining the bass model and sentiment analy-sis,” Journal of Business Research, vol. 74, pp. 90–100, 2017.

[8] K. Ravi and V. Ravi, “A survey on opinion mining and sentiment analysis: Tasks, approaches and applications,” Knowledge-Based Systems, vol. 89, pp. 14–46, 2015.

[9] N. Capuano, L. Greco, P. Ritrovato, and M. Vento, “Sentiment analysis for customer relationship manage-ment: An incremental learning approach,” Applied In-telligence, vol. 51, pp. 3339–3352, 2021.

[10] M. S. Seyfio˘glu and M. U. Demirezen, “A hierarchical approach for sentiment analysis and categorization of turkish written customer relationship management data,” in 2017 Federated Conference on Computer Science and Information Systems (FedCSIS). IEEE, 2017, pp. 361–365.

[11] S. Schmunk, W. Höpken, M. Fuchs, and M. Lexha-gen, “Sentiment analysis: Extracting decision-relevant knowledge from user-generated content,” in Informa-tion and Communication Technologies in Tourism 2014. Springer International Publishing, 2013, pp. 253–265.

[12] H. S. Al-Rubaiee, K. Alomar, R. Qiu, and D. Li, “Tun-ing of customer relationship management (crm) via cus-tomer experience management (cem) using sentiment analysis on aspects level,” 2018.

[13] C. Ledro, A. Nosella, and A. Vinelli, “Artificial intelli-gence in customer relationship management: Literature review and future research directions,” Journal of Busi-ness & Industrial Marketing, 2022.

[14] L. Plaza and J. C. de Albornoz, “Sentiment analysis in business intelligence: A survey,” in Customer Re-lationship Management and the Social and Semantic Web: Enabling Client Conexus. IGI Global, 2012, pp. 231–252.

[15] V. D. P˘av˘aloaia, E. M. Teodor, D. Fotache, and

M. Danile¸t, “Opinion mining on social media data: Sentiment analysis of user preferences,” Sustainabil-ity, vol. 11, no. 16, p. 4459, 2019.

[16] M. Hernes, “Performance evaluation of the customer relationship management agent’s in a cognitive inte-grated management support system,” in Transactions on Computational Collective Intelligence XVIII. Springer Berlin Heidelberg, 2015, pp. 86–104.

[17] E. M. Younis, “Sentiment analysis and text mining for social media microblogs using open source tools: An empirical study,” International Journal of Computer Applications, vol. 112, no. 5, 2015.

[18] M. Nadeem, “Social customer relationship management (scrm): How connecting social analytics to business analytics enhances customer care and loyalty?” Inter-national Journal of Business and Social Science, vol. 3, no. 21, 2012.

[19] S. Umamaheshwari, K. Harikumar, and D. Allinjoe, “Customer relationship management using sentimental analysis,” in 2021 International Conference on Advance-ments in Electrical, Electronics, Communication, Com-puting and Automation (ICAECA). IEEE, 2021, pp. 1–6.