Optimization of an Explainable Machine Learning Model for Customer Churn Prediction and Business Retention Strategy
Abstract
Customer churn forecasting is critical for companies that want to identify potential churn customers and develop more targeted customer maintenance strategies. This study explores whether Bayesian optimization can improve the performance of machine learning in customer churn prediction, and whether explainable model output can provide useful business insights. This research used Logistic Regression, Random Forest, Extreme Gradient Boosting (XGBoost), and Light Gradient Boosting Machine (LightGBM) to analyze the IBM Telecom customer churn data set containing 7,043 customer records. We applied Bayesian hyperparameter optimization to XGBoost by using five-fold hierarchical cross-validation, and used SHapley Additive exPlanations (SHAP) to explain the optimized model. The optimized XGBoost model achieves the Receiver Operating Characteristic Area Under the Curve (ROC-AUC) of 0.8424 and the Precision-Recall Area Under the Curve (PR-AUC) of 0.6518, and the recall rate also increased from 0.6408 in the baseline XGBoost model to 0.7721. SHAP analysis shows that the type of contract, user duration and Internet services are the most influential predictors. Risk segmentation further shows that there are significant differences in the churn rates of different customer groups. Research results show that combining model optimization with interpretable analysis helps to make more transparent and targeted customer retention decisions.