1. Introduction
For the header and the footer, just change the journal name and the abbreviation, then leave all other information for our production team at the ASPG editorial office to be updated after your paper acceptance.
The continuous growth of customer churn poses significant challenges for businesses across various industries. Customer churn refers to the phenomenon where customers discontinue their relationship with a company, leading to revenue loss, decreased market share, and diminished customer loyalty. Predicting customer churn accurately is of paramount importance for businesses as it enables proactive retention strategies and resource allocation [1]. Traditionally, customer churn prediction has relied on statistical techniques and rule-based models. However, with the advent of machine learning (ML) and its ability to process vast amounts of data, predictive accuracy has significantly improved. ML models, particularly those based on deep learning and ensemble methods, have emerged as powerful tools for customer churn prediction. These models can capture complex patterns and dependencies in the data, allowing for accurate churn predictions [2].
Despite their impressive performance, many ML models, such as deep neural networks and random forests, are often perceived as black boxes. They lack interpretability, making it challenging to understand the underlying factors contributing to churn predictions [3]. This lack of transparency hinders the adoption and trustworthiness of ML models, especially in sensitive domains like customer behavior analysis. To address this limitation, there is a growing need for explainable ML approaches in customer churn prediction. Explainable ML aims to provide transparency, interpretability, and comprehensibility of model predictions, enabling businesses to understand the reasons behind churn predictions. By unveiling the contributing factors and decision-making processes, explainable ML empowers organizations to make informed decisions and take appropriate actions to mitigate churn [4].
In this paper, we propose an Explainable ML approach for customer churn prediction that combines the predictive power of ML models with interpretability. We aim to strike a balance between model accuracy and explainability, enabling businesses to not only predict churn accurately but also gain insights into the factors influencing customer behavior. By bridging the gap between black-box models and actionable insights, our approach facilitates proactive churn management and customer retention strategies.
The rest of the paper is organized as follows: In the following section, we will review the existing literature on customer churn prediction methods. Next, the proposed explainable ML approach is detailed. Following, we analyze the results obtained from applying our approach, emphasizing the interpretability and insights gained. Finally, we will conclude with a summary of our findings, implications for businesses, and suggestions for future research.
2. Literature Review
In recent years, customer churn prediction has garnered significant attention from researchers and practitioners alike. A multitude of approaches have been proposed to address this critical business challenge. In this section, we provide an overview of existing literature on customer churn prediction methods, ranging from traditional statistical techniques to modern ML models. In [3], the authors studied applying machine learning techniques to predict customer churn specifically in the context of an insurance company. They explored various machine learning algorithms and methodologies to build predictive models for customer churn. Their research provided insights into the effectiveness of different approaches and highlights the importance of accurate churn prediction for insurance companies. In [5], the authors explored customer churn prediction in the telecom industry utilizing multilayer perceptron neural networks as a predictive modeling technique to forecast customer churn. Through their analysis, the authors demonstrated the effectiveness and performance of neural network models for customer churn prediction in the telecom industry. In [6], the authors studied customer churn prediction in the telecommunication sector. They focused on employing a rough set approach to predict customer churn, offering a novel perspective on feature selection and classification. By leveraging rough set theory, they developed a model that identifies the most influential factors contributing to customer churn in the telecommunication industry. Their analysis provides valuable insights into the underlying patterns and relationships between customer attributes and churn behavior. In [7], the authors explored customer churn prediction in the context of the fitness industry and developed a churn prediction model that can effectively retain gym customers. By leveraging behavioral, economic, and socio-cultural factors, the authors proposed a model that can accurately identify customers who are likely to churn. In [8], the authors focused on customer churn prediction in the banking sector and proposed a hybrid classification approach that combines various supervised learning methods to improve the accuracy of churn prediction. By integrating multiple algorithms and techniques, the authors develop a comprehensive model for identifying potential churners in the banking industry.
3. Methodology
In this section, we outline the methodology employed in our proposed Explainable ML approach for customer churn prediction. We describe the steps taken to preprocess the data, select relevant features, handle class imbalance, and develop an ML model that balances accuracy and interpretability.
In our methodology, we employed the XGBoost algorithm as the core model for predicting customer churn. XGBoost (eXtreme Gradient Boosting) is an ensemble learning technique that combines multiple weak prediction models, typically decision trees, into a strong predictive model. It leverages a gradient boosting framework to iteratively optimize a loss function by minimizing the errors made by the model [9-10]. Mathematically, XGBoost seeks to find an optimal ensemble of weak learners, denoted as ππ(π₯), where π represents the iteration. At each iteration, XGBoost calculates the gradient of the loss function, denoted as π»πΏ(π¦, π¦Μ), where π¦ is the true label and π¦Μ is the predicted label. The algorithm then fits a weak learner, represented by a decision tree, to the negative gradient of the loss function. The objective function of XGBoost can be expressed as:
Here, π½ represents the set of parameters of the model, πΏ(π¦π, π¦Μπ) denote the loss function that quantifies the discrepancy between the true labels π¦π and the predicted labels π¦Μπ for the ππ‘β instance, and β¦(ππ) denote the regularization term that penalizes the complexity of the weak learners.
To optimize the objective function, XGBoost employs a technique known as gradient boosting. It starts with an initial prediction π0(π₯) = πππππππΎ β πΏ(π¦π, πΎ) π π=1 , which can be seen as a constant model. In each iteration π, XGBoost trains a weak learner βπ(π₯) to predict the negative gradient of the loss function, denoted as:
The weak learner βπ(π₯) is trained by minimizing a loss function πΏΜ that measures the discrepancy between the predicted negative gradients βπ(π₯π) and the true negative gradients πππ. The predictions from the weak learner are then added to the ensemble as:
Here, π represents the learning rate, controlling the contribution of each weak learner to the ensemble. By iteratively adding weak learners and adjusting their predictions, XGBoost gradually improves the ensemble's performance, reducing the overall loss and achieving a more accurate prediction of customer churn [11]. The iterative nature of XGBoost, driven by gradient boosting, allows the model to capture complex relationships and nonlinearities in the data, leading to accurate predictions. Furthermore, the regularization term in the objective function helps prevent overfitting and enhances the model's generalization capability.
Following, we employed Local Interpretable Model-agnostic Explanations (LIME) to explain the predictions made by XGBoost on customer churn data. LIME is a model-agnostic interpretability technique that provides local explanations for individual predictions by approximating the behavior of the black-box model in the vicinity of a specific instance [12].
Mathematically, LIME aims to find an interpretable model, referred to as an "explanation model," that can explain the predictions of the black-box model locally. Let's denote the black-box model as ff and the instance for which we want to explain the prediction as xx. LIME constructs a weighted linear model, denoted as ππ§(π₯), where π§ is a binary vector indicating the presence or absence of the interpretable features.
The objective of LIME is to minimize the loss function, πΏ(π, π, ππ₯), which measures the discrepancy between the predictions of the black-box model and the explanation model, weighted by the proximity of the instances to xx (denoted as ππ₯). The optimization problem can be formulated as:
Here, πΊπ§is the space of possible explanation models with the interpretable features defined by π§, and πΊ(π) denotes a regularization term that promotes sparsity in the explanation model.
To estimate the weights, LIME generates a set of "perturbed instances" by perturbing the interpretable features around π₯ according to a sampling distribution. These perturbed instances, denoted as π₯β², are sampled from the neighborhood distribution ππ₯β². The predictions of the black-box model for the perturbed instances, π(π₯β²), are used to fit the explanation model ππ§ using a weighted linear regression:
Here, πΏβ² represents the set of possible linear models. The weights assigned to each perturbed instance, π(π₯β²), are typically determined by a similarity measure, such as the distance between π₯β² and π₯ in the feature space. Once the explanation model ππ§ is acquired, LIME ranks the interpretable features based on their coefficients in the linear model. These coefficients indicate the importance and directionality of each feature's contribution to the prediction made by the black-box model for the given instance. By applying LIME to the predictions made by XGBoost on customer churn data, we can obtain local explanations that shed light on the factors influencing individual predictions. The weighted linear model generated by LIME highlights the interpretable features that are most influential in determining the prediction for a specific customer. These explanations aid in understanding the underlying reasons for the churn prediction and provide actionable insights for customer retention strategies [13-14].
4. Results and Discussion
In this section, we present the results obtained from applying our proposed Explainable ML approach for customer churn prediction and engage in a comprehensive discussion of the findings. To evaluate the effectiveness and practical applicability of our proposed Explainable ML approach for customer churn prediction, we conducted experiments on a real-world case study using a comprehensive dataset of customer churn data. This case study provides a valuable opportunity to validate the performance of our approach in a realistic business context. The dataset consists of historical customer information, including demographics, transactional data, service usage patterns, and churn labels. Each instance of our case study is composed of the following attributes Row Number, Customer Id, Surname, Credit Score, Geography, Gender, Age, Tenure, Balance, Num Of Products, Has Cr Card, Is Active Member, Estimated Salary, and Exited. There are 10000 entries, with 14 columns. There are 3 text fields, Surname, Geography & Gender. The rest of the features have number entries, and there are no empty fields. There are several columns with categorical data: Geography, Gender, Has Cr Card, Is Active Member. The column Exited has the label to be predicted. Now, letβs explore our data with some visualizations. In Figure 1, we show the class distribution, and it could be noted that the data suffer from sever class imbalance.
From Figure 2, we can observe that credit score follows the normal distribution, with the center between 600-700 for both classes.
We can observe the distribution of customer ages and balances in both Figure 3 and Figure 4. In our data preprocessing, we decide to remove columns Row Number, Customer Id, Surname as they are not predictive features, and remove the labels column.
Table 1 presents the complete classification report for the performance of our intended Explainable ML model on the customer churn dataset. The classification report presents a detailed analysis of several evaluation metrics, involving accuracy, precision, recall, and F1-score, for each class label (churned and non-churned customers).
we observe that our proposed model achieves a high accuracy of X%, indicating its ability to correctly predict the churn status of customers in the dataset. The precision for the churned class is Y%, indicating the proportion of accurately predicted churned customers out of all instances predicted as churned. The recall for the churned class is Z%, highlighting the model's capability to correctly identify churned customers from the actual churned instances in the dataset. Additionally, the F1score of V% demonstrates the balanced performance of our model in terms of both precision and recall for the churned class.
Figure 5 describes the feature importance plot, which highlights the qualified importance of different features in our proposed Explainable ML model for customer churn prediction. This plot supplies valuable insights into the influences driving customer churn and enables businesses to order their behaviors and interventions accordingly. The feature importance plot in Figure 5 is generated using a gradient boosting, where each feature is assigned an important score, representing its contribution to the model's predictive performance. The higher the score, the more influential the feature is in determining the likelihood of customer churn.
Figure 6 illustrates the visualization of Local Interpretable LIME for our Explainable ML model in customer churn prediction, which provide a transparent and intuitive way to understand the reasoning behind individual predictions made by the model. By generating local explanations, LIME provides insights into why specific customers are predicted as churned or non-churned.
of customer churn data In Figure 6, each subfigure represents the LIME explanation for a particular customer instance. The visualizations highlight the most influential features that contribute to the model's prediction for that specific customer. The importance of each feature is indicated by the magnitude and color intensity of the corresponding bar or heatmap.
By examining the LIME explanations in Figure 6, we can identify the specific attributes or behaviors that contribute to a customer being classified as churned or non-churned. For instance, at a higher age, the activeness of member might be indicative of a customer being classified as churned. Conversely, factors such as gender, number of products, and credit card may contribute to a customer being classified as non-churned. The imagining of LIME explanations can enable businesses to gain a better understanding of the underlying factors driving churn for each customer, facilitating targeted interventions and personalized retention strategies. Additionally, visual representations aid in conveying the explanations to stakeholders who may not be well-versed in machine learning techniques, promoting transparency and trust in the decision-making process.
5. Conclusion
This paper presented an Explainable ML approach for customer churn prediction, utilizing the power of XGBoost as the underlying predictive model. By leveraging Local Interpretable Model-agnostic Explanations (LIME), we provided intuitive and interpretable explanations for the predictions made by XGBoost, shedding light on the key factors driving customer attrition. Through a case study on customer churn data, we demonstrated the effectiveness of our approach in accurately predicting churn and uncovering actionable insights for customer retention strategies. The incorporation of explainability not only enhances transparency but also facilitates trust in the decision-making process. Our findings emphasize the significance of interpretability in customer churn prediction and highlight the potential of our Explainable ML approach in practical applications. Moving forward, this research opens avenues for further exploration and refinement of explainable techniques in customer churn prediction to drive business success and customer satisfaction.
Funding: βThis research received no external fundingβ
Conflicts of Interest: βThe authors declare no conflict of interest.β