{"id":3463,"date":"2023-08-31T11:13:00","date_gmt":"2023-08-31T11:13:00","guid":{"rendered":"https:\/\/neuraldesigner.com\/learning\/bank-churn-modeling\/"},"modified":"2026-02-12T12:50:27","modified_gmt":"2026-02-12T11:50:27","slug":"bank-churn","status":"publish","type":"learning","link":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/","title":{"rendered":"Reduce customer churn in a bank using machine learning"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3463\" class=\"elementor elementor-3463\" data-elementor-post-type=\"learning\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-64416861 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"64416861\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-157c4715\" data-id=\"157c4715\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-594ebbec elementor-widget elementor-widget-text-editor\" data-id=\"594ebbec\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<section><p data-start=\"0\" data-end=\"291\">This example uses customer data from a bank to build a predictive model for identifying clients who are likely to churn. More specifically, the objective is to anticipate customer behavior before they decide to leave. By doing so, the bank can act proactively rather than reactively.<\/p><p data-start=\"293\" data-end=\"678\">As we know, acquiring a new client is significantly more expensive than retaining an existing one. In fact, customer acquisition costs often exceed retention costs by a wide margin. Therefore, it is highly advantageous for banks to understand the factors that lead customers to leave the company. Moreover, early detection of dissatisfaction allows timely intervention.<\/p><p data-start=\"680\" data-end=\"1033\" data-is-last-node=\"\" data-is-only-node=\"\">In this context, <a href=\"https:\/\/www.neuraldesigner.com\/solutions\/churn-prevention\">Churn prevention<\/a> enables financial institutions to design targeted loyalty programs and personalized retention campaigns. At the same time, it helps allocate marketing resources more efficiently. Consequently, banks can increase customer satisfaction, reduce attrition rates, and ultimately maintain long-term profitability.<\/p><h3>Contents<\/h3><ol><li><a href=\"#ApplicationType\">Application type<\/a>.<\/li><li><a href=\"#DataSet\">Data set<\/a>.<\/li><li><a href=\"#NeuralNetwork\">Neural network<\/a>.<\/li><li><a href=\"#TrainingStrategy\">Training strategy<\/a>.<\/li><li><a href=\"#ModelSelection\">Model selection<\/a>.<\/li><li><a href=\"#TestingAnalysis\">Testing analysis<\/a>.<\/li><li><a href=\"#ModelDeployment\">Model deployment<\/a>.<\/li><\/ol><p>This example is solved with <a href=\"https:\/\/www.neuraldesigner.com\/\">Neural Designer<\/a>. To follow it step by step, you can use the <a href=\"https:\/\/www.neuraldesigner.com\/free-trial\">free trial<\/a>.<\/p><\/section><section id=\"ApplicationType\"><h2>1. Application type<\/h2><p><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">The variable to be predicted is binary (churn or loyal).\u00a0<\/span><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">Therefore this is a <\/span><a style=\"font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight ); background-color: #ffffff;\" href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications#Classification\">classification<\/a><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\"> project.<\/span><\/p><p>The goal here is to model churn probability, conditioned on the customer features.<\/p><\/section><section id=\"DataSet\"><h2>2. Data set<\/h2><p>The data set contains information for creating our model. We need to configure three things here:<\/p><ul><li>Data source.<\/li><li>Variables.<\/li><li>Instances.<\/li><\/ul><p>The data file <a href=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/10\/bank_churn.csv\">bank_churn.csv<\/a>\u00a0contains 12 features about 10000 clients of the bank.<\/p><p>The features or <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Variables\">variables<\/a> are the following:<\/p><ul><li><b>customer_id<\/b>, unused variable.<\/li><li><b>credit_score<\/b>, used as input.<\/li><li><b>country<\/b>, used as input.<\/li><li><b>gender<\/b>, used as input.<\/li><li><b>age<\/b>, used as input.<\/li><li><b>tenure<\/b>, used as input.<\/li><li><b>balance<\/b>, used as input.<\/li><li><b>products_number<\/b>, used as input.<\/li><li><b>credit_card<\/b>, used as input.<\/li><li><b>active_member<\/b>, used as input.<\/li><li><b>estimated_salary<\/b>, used as input.<\/li><li><b>churn<\/b>, used as the target. 1 if the client has left the bank during some period or 0 if he\/she has not.<\/li><\/ul><p data-start=\"0\" data-end=\"317\">On the other hand, we randomly split the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Instances\">instances<\/a> into training (60%), selection (20%), and testing (20%) subsets. In this way, the model learns from one portion of the data while we validate and evaluate it on unseen samples. As a result, this structure improves generalization and reduces overfitting risk.<\/p><p data-start=\"319\" data-end=\"539\">Once we configure both the variables and the instance split, we can proceed with exploratory data analysis. At this stage, analyzing the dataset helps us better understand its structure before training the model.<\/p><p data-start=\"541\" data-end=\"807\" data-is-last-node=\"\" data-is-only-node=\"\">In particular, the data <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Distributions\">distributions<\/a> reveal the percentages of churn and loyal customers. Therefore, they provide insight into class balance. Moreover, this information allows us to anticipate potential modeling challenges related to imbalanced classes.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-data-distribution.webp\" \/><\/p><p>In this data set, the percentage of churn customers is about 20%.<\/p><p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#InputsTargetsCorrelations\">inputs-targets correlations<\/a> might indicate which variables might be causing attrition.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-correlations.webp\" \/><\/p><p>From the above chart, we can see that the country has a significant influence and that older customers have more probability of leaving the bank.<\/p><\/section><section id=\"NeuralNetwork\"><h2>3. Neural network<\/h2><p>The second step is to choose a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\">neural network<\/a> to represent the classification function.\u00a0For classification problems it is composed of:<\/p><ul><li>A <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ScalingLayer\">scaling layer<\/a>.<\/li><li>A <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#PerceptronLayers\">perceptron layer<\/a>.<\/li><li>A <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ProbabilisticLayer\">probabilistic layer<\/a>.<\/li><\/ul><p>For the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ScalingLayer\">scaling layer<\/a>, the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#MinimumMaximumScalingMethod\">minimum and maximum scaling methods<\/a> are set.<\/p><p>We set one perceptron layer, with 3 neurons as a first guess, having the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#LogisticActivationFunction\">logistic activation function<\/a>.<\/p><p>The next figure is a diagram for the neural network used in this example.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-initial-neural-network.webp\" \/><\/p><\/section><section id=\"TrainingStrategy\"><h2>4. Training strategy<\/h2><p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\">training strategy<\/a> is applied to the neural network to obtain the best possible performance. It is composed of two things:<\/p><ul><li>A loss index.<\/li><li>An optimization algorithm.<\/li><\/ul><p>The selected <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#LossIndex\">loss index<\/a> is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#WeightedSquaredError\">weighted squared error<\/a> with <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#L2Regularization\">L2 regularization<\/a>. The weighted squared error is helpful in applications where the targets are unbalanced. It gives a weight of 3.91 to churn customers and 1 to loyal customers.<\/p><p>The selected <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#OptimizationAlgorithm\">optimization algorithm<\/a> is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#QuasiNewtonMethod\">quasi-Newton method<\/a>.<\/p><p>The following chart shows how the training (blue) and selection (orange) errors decrease with the training epochs.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-training-history.webp\" \/><\/p><p>The final training and selection errors are <b>training error = 0.621 WSE<\/b> and <b>selection error = 0.656 WSE<\/b>, respectively. The following section will improve the generalization performance by reducing the selection error.<\/p><\/section><section id=\"ModelSelection\"><h2>5. Model selection<\/h2><p><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#OrderSelection\">Order selection<\/a> is used to find the complexity of the neural network that optimizes the generalization performance. That is the number of neurons that minimize the error in the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#SelectionInstances\">selection instances<\/a>.<\/p><p>The following chart shows the training and selection errors for each different order after performing the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#IncrementalOrder\">incremental order<\/a> method.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-order-selection.webp\" \/><\/p><p>As the chart shows, the optimal number of neurons is 6, with <b>selection error = 0.643<\/b>.<\/p><p><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#InputsSelection\">Input selection<\/a> (or feature selection) is used to find the set of inputs that produce the best generalization. The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#GeneticAlgorithm\">genetic algorithm<\/a> has been applied here, but it does not reduce the selection error value, so we leave all input variables.<\/p><p>The following figure shows the final network architecture for this application.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-neural-network.webp\" \/><\/p><\/section><section id=\"TestingAnalysis\"><h2>6. Testing analysis<\/h2><p>The next step is to perform an exhaustive <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis\">testing analysis<\/a> to validate the neural network&#8217;s predictive capabilities.<\/p><p>A good measure for the precision of a binary classification model is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#RocCurve\">ROC curve<\/a>.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-roc-curve.webp\" \/><\/p><p>We are interested in the area under the curve (AUC).\u00a0A perfect classifier would have an AUC=1, and a random one would have AUC=0.5.\u00a0Our model has an <b>AUC = 0.874<\/b>, which is great.<\/p><p>We can also look at the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#ConfusionMatrix\">confusion matrix<\/a>.\u00a0Next, we show the elements of this matrix for a <b>decision threshold = 0.5<\/b>.<\/p><div style=\"overflow-x: auto;\"><table><tbody><tr><th>\u00a0<\/th><th>Predicted positive<\/th><th>Predicted negative<\/th><\/tr><tr><th>Real positive<\/th><td style=\"text-align: right;\">305 (15%)<\/td><td style=\"text-align: right;\">80 (4%)<\/td><\/tr><tr><th>Real negative<\/th><td style=\"text-align: right;\">344 (17%)<\/td><td style=\"text-align: right;\">1271 (63%)<\/td><\/tr><\/tbody><\/table><\/div><p>From the above confusion matrix, we can calculate the following <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#BinaryClassificationTests\">binary classification tests<\/a>:<\/p><ul><li><b>Classification accuracy: 78.8%<\/b> (ratio of correctly classified samples).<\/li><li><b>Error rate: 21.2%<\/b> (ratio of misclassified samples).<\/li><li><b>Sensitivity: 79.2%<\/b> (percentage of actual positive classified as positive).<\/li><li><b>Specificity: 78.7%<\/b> (percentage of actual negative classified as negative).<\/li><\/ul><p>Now, we can simulate the performance of a retention campaign.\u00a0For that, we use the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#CumulativeGain\">cumulative gain<\/a> chart.<\/p><p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/bank-churn-cumulative-gain.webp\" \/><\/p><p>The above chart tells us that if we contact 25% of the customers with the highest chance of churn, we will reach 75% of the customers leaving the bank.<\/p><\/section><section><h3 id=\"ModelDeployment\">7. Model deployment<\/h3><p>Once we have tested the churn model, we can use it to evaluate the probability of churn of our customers.<\/p><p>For instance, consider a customer with the following features:<\/p><ul><li>credit_score: 650<\/li><li>country: France<\/li><li>gender: Female<\/li><li>age: 39<\/li><li>tenure: 5<\/li><li>balance: 76485<\/li><li>products_number: 2<\/li><li>credit_card: Yes<\/li><li>active_member: No<\/li><li>estimated_salary: 100000<\/li><\/ul><p>The probability of churn for that customer is 38%.<\/p><p><!--<\/p>\n<p>Finally, the file bank_churn.py contains the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-deployment#MathematicalExpression\">mathematical expression<\/a> of the neural network in the Python programming language.<br \/>This file can be embedded in the bank's CRM to facilitate the work of the Retention Department.<\/p>\n<p>--><\/p><p>We can export the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-deployment#MathematicalExpression\">mathematical expression<\/a> of the neural network\u00a0to any bank software to facilitate the work of the Retention Department. This expression is listed below.<\/p><pre>scaled_credit_score = (credit_score-650.529)\/96.6533;\nscaled_France = 2*(France-0)\/(1-0)-1;\nscaled_Spain = (Spain-0.2477)\/0.431698;\nscaled_Germany = (Germany-0.2509)\/0.433553;\nscaled_gender = 2*(gender-0)\/(1-0)-1;\nscaled_age = (age-38.9218)\/10.4878;\nscaled_tenure = 2*(tenure-0)\/(10-0)-1;\nscaled_balance = (balance-76485.9)\/62397.4;\nscaled_products_number = (products_number-1.5302)\/0.581654;\nscaled_credit_card = 2*(credit_card-0)\/(1-0)-1;\nscaled_active_member = 2*(active_member-0)\/(1-0)-1;\nscaled_estimated_salary = 2*(estimated_salary-11.58)\/(199992-11.58)-1;\ny_1_1 = Logistic (0.848205+ (scaled_credit_score*-0.608944)+ (scaled_France*-0.261025)+ (scaled_Spain*0.412236)+ (scaled_Germany*-0.102466)+ (scaled_gender*-0.190523)+ (scaled_age*-5.79629)+ (scaled_tenure*-0.538913)+ (scaled_balance*-0.442531)+ (scaled_products_number*-2.72944)+ (scaled_credit_card*0.684301)+ (scaled_active_member*3.1411)+ (scaled_estimated_salary*1.5462));\ny_1_2 = Logistic (-0.30529+ (scaled_credit_score*0.0542391)+ (scaled_France*-0.0197414)+ (scaled_Spain*-0.277012)+ (scaled_Germany*0.287529)+ (scaled_gender*-0.138025)+ (scaled_age*-1.67199)+ (scaled_tenure*-0.295799)+ (scaled_balance*-0.0519641)+ (scaled_products_number*-5.95291)+ (scaled_credit_card*-0.214941)+ (scaled_active_member*-1.43624)+ (scaled_estimated_salary*0.198904));\ny_1_3 = Logistic (-0.0481312+ (scaled_credit_score*0.25511)+ (scaled_France*0.0844269)+ (scaled_Spain*0.108521)+ (scaled_Germany*-0.2049)+ (scaled_gender*0.125926)+ (scaled_age*0.0827378)+ (scaled_tenure*0.276278)+ (scaled_balance*-0.489973)+ (scaled_products_number*-0.776123)+ (scaled_credit_card*0.0203207)+ (scaled_active_member*0.525674)+ (scaled_estimated_salary*-0.17605));\ny_1_4 = Logistic (1.52953+ (scaled_credit_score*-3.07592)+ (scaled_France*1.09842)+ (scaled_Spain*-1.4286)+ (scaled_Germany*0.153036)+ (scaled_gender*1.71313)+ (scaled_age*2.61432)+ (scaled_tenure*-3.80362)+ (scaled_balance*0.78056)+ (scaled_products_number*-1.88)+ (scaled_credit_card*-1.82242)+ (scaled_active_member*1.85776)+ (scaled_estimated_salary*1.40538));\ny_1_5 = Logistic (-0.0116541+ (scaled_credit_score*0.144119)+ (scaled_France*-0.0170994)+ (scaled_Spain*0.0812705)+ (scaled_Germany*-0.0603271)+ (scaled_gender*-0.0485258)+ (scaled_age*-1.6572)+ (scaled_tenure*0.0583053)+ (scaled_balance*-0.135168)+ (scaled_products_number*-1.32794)+ (scaled_credit_card*0.0531906)+ (scaled_active_member*-1.13656)+ (scaled_estimated_salary*-0.128869));\ny_1_6 = Logistic (-3.85516+ (scaled_credit_score*-0.0138554)+ (scaled_France*-0.753416)+ (scaled_Spain*-1.04647)+ (scaled_Germany*1.90095)+ (scaled_gender*0.0137635)+ (scaled_age*-0.191778)+ (scaled_tenure*0.343281)+ (scaled_balance*4.70446)+ (scaled_products_number*-6.3796)+ (scaled_credit_card*0.115022)+ (scaled_active_member*-0.153162)+ (scaled_estimated_salary*-0.0731349));\nnon_probabilistic_churn = Logistic (4.33579+ (y_1_1*-1.60163)+ (y_1_2*7.91345)+ (y_1_3*-6.65044)+ (y_1_4*-1.39552)+ (y_1_5*-5.56462)+ (y_1_6*-2.54043));\nchurn = probability(non_probabilistic_churn);\n\nlogistic(x){\n   return 1\/(1+exp(-x))\n}\n\nprobability(x){\n   if x &lt; 0 return 0 else if x &gt; 1\n       return 1\n   else\n       return x\n}\n<\/pre><\/section><section><h2>Related posts<\/h2><\/section>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"author":13,"featured_media":2613,"template":"","categories":[29],"tags":[47],"class_list":["post-3463","learning","type-learning","status-publish","has-post-thumbnail","hentry","category-examples","tag-finance"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Reduce customer churn in a bank using machine learning<\/title>\n<meta name=\"description\" content=\"Practice with this machine learning example how to predict customer churn in a bank and take measures to reduce it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bank churn prediction machine learning example\" \/>\n<meta property=\"og:description\" content=\"As we know, it is much more expensive to sign in a new client than keeping an existing one. It is advantageous for banks to know what leads a client towards the decision to leave the company.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-12T11:50:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Bank churn prediction machine learning example\" \/>\n<meta name=\"twitter:description\" content=\"As we know, it is much more expensive to sign in a new client than keeping an existing one. It is advantageous for banks to know what leads a client towards the decision to leave the company.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/\",\"name\":\"Reduce customer churn in a bank using machine learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp\",\"datePublished\":\"2023-08-31T11:13:00+00:00\",\"dateModified\":\"2026-02-12T11:50:27+00:00\",\"description\":\"Practice with this machine learning example how to predict customer churn in a bank and take measures to reduce it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learning\",\"item\":\"https:\/\/www.neuraldesigner.com\/learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Reduce customer churn in a bank using machine learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explanable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reduce customer churn in a bank using machine learning","description":"Practice with this machine learning example how to predict customer churn in a bank and take measures to reduce it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/","og_locale":"en_US","og_type":"article","og_title":"Bank churn prediction machine learning example","og_description":"As we know, it is much more expensive to sign in a new client than keeping an existing one. It is advantageous for banks to know what leads a client towards the decision to leave the company.","og_url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/","og_site_name":"Neural Designer","article_modified_time":"2026-02-12T11:50:27+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_title":"Bank churn prediction machine learning example","twitter_description":"As we know, it is much more expensive to sign in a new client than keeping an existing one. It is advantageous for banks to know what leads a client towards the decision to leave the company.","twitter_image":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/","url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/","name":"Reduce customer churn in a bank using machine learning","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp","datePublished":"2023-08-31T11:13:00+00:00","dateModified":"2026-02-12T11:50:27+00:00","description":"Practice with this machine learning example how to predict customer churn in a bank and take measures to reduce it.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/bank-churn.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/bank-churn\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Learning","item":"https:\/\/www.neuraldesigner.com\/learning\/"},{"@type":"ListItem","position":3,"name":"Reduce customer churn in a bank using machine learning"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explanable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/learning"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/13"}],"version-history":[{"count":15,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3463\/revisions"}],"predecessor-version":[{"id":21938,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3463\/revisions\/21938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2613"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}