toast-icon ×

How a Leading Gold Loan Provider Eliminated Retention Guesswork with ML-Powered Churn Prediction

Overview

Our client is a leading financial institution based in Sri Lanka, providing specialised gold loan products across a retail network of more than 50 branches and serving an active customer base estimated in the hundreds of thousands. The business model is built around short-term, collateral-backed lending, where customer retention at loan maturity directly determines portfolio revenue. Despite years of accumulated transactional data across five core SQL Server tables, the organisation had no mechanism to convert that data into customer-level insight. NeenOpal partnered with the client to build and deploy a machine learning churn prediction system, alongside a customer scoring model and Tableau dashboards, enabling the organisation to shift from reactive, instinct-driven outreach to precision-targeted retention.

70%

High-Risk Customers Identified Monthly

54x

More Data Points Per Customer

50+

Branches Equipped with Individual Customer Scores

Customer Challenges

The client faced multiple operational and strategic gaps driven by the absence of a data-driven decision framework. Despite having large volumes of customer and transaction data, there was no system to convert it into actionable insights for retention, risk management, or outreach prioritisation. As a result, key business functions operated with limited visibility and efficiency.

No Visibility Into Customer Churn Risk

The client had no system to identify which gold loan customers were likely to lapse at the end of their loan tenure. Every customer who closed a grant was treated identically by the marketing and call centre teams, regardless of their actual likelihood of returning. This meant that retention effort was dispersed indiscriminately across hundreds of thousands of accounts, with no prioritisation and no measurable impact.

Loan Approval Decisions Lacked Individual Intelligence

Loan-to-value ratios, a key lever for both customer satisfaction and portfolio risk management, were determined using blanket internal policies rather than individual repayment behaviour. Branch approval managers across the network had no data-backed framework to reward customers with strong repayment histories or to apply more conservative limits to higher-risk accounts. The result was a one-size-fits-all approach that neither served reliable customers well nor adequately managed risk.

Years of Valuable Transaction Data Sat Unused

Five years of granular transaction history across five interconnected SQL Server tables, including loan ticket records, gold article details, auction events, and customer master data, remained entirely unmodelled. The organisation was operationally data-rich but strategically insight-poor, with no pipeline to convert historical behaviour into forward-looking predictions.

Scale Made Manual Outreach Unsustainable

With an active customer base in the hundreds of thousands, the marketing and call centre teams faced an impossible task: reaching every customer with equal effort was both resource-intensive and ineffective. Without a risk-tiered prioritisation system, high-value retention conversations were lost in the noise of mass outreach, and the most at-risk customers received no differentiated attention.

Solutions

NeenOpal designed and delivered a three-component intelligence system across a 13-month engagement, comprising five months of development followed by eight months of managed maintenance. All work was conducted within the client's on-premises, VPN-secured virtual machine environment to meet strict banking data confidentiality requirements.

01.

Churn Prediction Model

The team built an XGBoost-based machine learning model to predict the probability of customer churn for every active gold loan holder. A churn event was defined as any case where more than 90 days elapsed since the closure of a customer's most recent loan grant without a new loan being initiated, reflecting the business's natural customer lifecycle. The model was trained on five years of historical transaction data and engineered 54 features spanning loan tenure, repayment behaviour, arrear history, gold article characteristics, LTV ratios, and macro signals such as gold price movements. To handle the natural class imbalance between churned and retained customers, a scale weighting of 6.5 was applied during training. The model outputs a churn probability score between 0 and 1 for each target customer, which is automatically classified into three risk tiers: High Risk for probabilities at or above 0.70, Medium Risk for probabilities between 0.40 and 0.70, and Low Risk for probabilities below 0.40.

02.

Customer Scoring Model

A separate ML model was developed to score each customer on a 0 to 100 scale based on their full repayment history with the institution. The score was designed to serve as an objective, data-backed guideline for branch approval managers when determining the loan-to-value ratio to offer individual customers. Customers with strong repayment track records qualified for higher LTV ratios, up to 90% of gold collateral value, while customers with weaker histories were flagged for more conservative offers. This replaced the previous blanket policy approach with individual-level intelligence accessible to managers across all 50-plus branches.

03.

Tableau Reporting Dashboards

Two purpose-built Tableau dashboards were deployed on Tableau Server, connected live to the client's SQL Server database. The Customer Churn Overview dashboard surfaced the latest monthly churn probability scores and risk tier classifications for the marketing and call centre teams, enabling targeted outreach campaigns focused on the highest-risk segments. The Churned Customers view provided a longitudinal record of actual churn events alongside their predicted probabilities, supporting model performance tracking and campaign effectiveness analysis. Where Tableau viewer licences were insufficient to cover all 50-plus branch managers, a structured Excel export and distribution workflow was established to ensure universal access to customer scores across the branch network.

04.

Deployment and Automation

The churn model was operationalised as a Python script executed via a Windows Task Scheduler batch file on the client's dedicated virtual machine. The model runs automatically on the second of every month, updating the CustomerChurn output table in the VallibelCreditScore database with fresh predictions. The output table retains a rolling 24-month history of all model predictions, timestamped and tagged with a model run date to ensure full traceability and auditability for downstream reporting.

Turn your data into measurable retention outcomes

Get Started

Services

Python

Python

XGBoost

XGBoost

Jupyter Notebook

Jupyter Notebook

SQL Server

SQL Server

Windows Task Scheduler

Windows Task Scheduler

Tableau

Tableau

Benefits

Targeted Retention Campaigns at Scale

The marketing and call centre teams gained a monthly, risk-tiered customer list that replaced indiscriminate mass outreach with focused, high-priority retention campaigns. By directing effort toward the High Risk segment, customers with a churn probability at or above 0.70, the client could concentrate its most valuable retention conversations on the accounts most likely to lapse, improving both campaign efficiency and customer engagement quality.

Data-Backed Loan Approval Decisions Across All Branches

Branch approval managers across the 50-plus branch network gained access to individual customer scores for the first time, providing an objective, standardised framework for loan-to-value decisions. Rather than applying a uniform policy regardless of customer history, managers could now reward strong repayment behaviour with more favourable LTV offers and apply appropriate caution to higher-risk accounts, improving both customer experience and portfolio risk management simultaneously.

Five Years of Historical Data Converted Into Live Intelligence

Transaction data spanning five years across five SQL Server tables, previously sitting unused, was fully operationalised into a monthly-refreshed ML pipeline. This transformed the client's data estate from a passive record of past activity into an active decision-support system, with predictions stored, versioned, and surfaced in Tableau dashboards for leadership, marketing, and branch operations.

Auditability and Model Performance Tracking

The output architecture was designed with long-term governance in mind. Every model run produces timestamped, versioned predictions retained for a rolling 24-month window, enabling the client to compare predictions against actual churn outcomes and track model accuracy over time. The ActualvsPrediction table further supports retrospective analysis, capturing both predicted probabilities and real churn events at the customer level.

Observable Revenue Impact Post-Deployment

Following deployment of the churn prediction model and targeted retention campaigns, the client reported measurable revenue improvement across the months after go-live. While concurrent gold price appreciation contributed to the revenue trend, the client directly attributed partial uplift to the model's ability to bring at-risk customers back into the loan portfolio, validating the system's effectiveness through campaign outcome tracking.

Conclusion

For a gold loan institution managing hundreds of thousands of active customers, the gap between data availability and data utility had become a significant operational constraint. By deploying an XGBoost-based churn prediction model alongside a customer scoring system and Tableau reporting layer, NeenOpal enabled the client to resolve that gap with precision. Retention campaigns became targeted, loan approval decisions became individualised, and years of accumulated transaction history were converted into a live, automated intelligence asset. The engagement demonstrated that for financial institutions operating at scale, machine learning churn prediction is not a future aspiration but an immediately deployable capability with measurable impact on customer retention and portfolio revenue.

FAQ

To help you better understand the approach and impact of this solution, here are answers to some of the most common questions. These cover the model choice, how risk segmentation works, and how the system continues to deliver value over time:

What is XGBoost and why was it chosen for churn prediction?

XGBoost, short for Extreme Gradient Boosting, is a high-performance machine learning algorithm that builds an ensemble of decision trees sequentially, with each tree correcting the errors of the previous one. It was selected for this gold loan churn prediction project because of its strong performance on structured tabular data, its ability to handle the natural class imbalance between churned and retained customers through a configurable weighting parameter, and its interpretability via feature importance scores. With 54 engineered features spanning repayment behaviour, loan history, gold characteristics, and macroeconomic signals, XGBoost was well suited to capturing the complex, non-linear patterns that distinguish at-risk customers from loyal ones.

How does the three-tier churn risk segmentation work?

The churn model outputs a probability score between 0 and 1 for each target customer, reflecting the likelihood that they will not renew their gold loan within 90 days of closing their most recent grant. This probability is then classified into three actionable risk tiers: customers scoring 0.70 or above are designated High Risk and become the primary target for immediate retention outreach, those scoring between 0.40 and 0.70 are classified as Medium Risk and receive secondary campaign attention, and customers below 0.40 are designated Low Risk and require no immediate intervention. This segmentation allows the marketing and call centre teams to allocate effort proportionally to where it will have the greatest impact on customer retention.

How does the solution continue to deliver value after the initial deployment?

The churn model is fully automated to run on the second of every month, updating customer scores in the SQL Server database without manual intervention. Each run produces a fresh set of predictions that replace the previous month's view in the Tableau dashboards, ensuring that the marketing team always acts on the most current data. The system retains a rolling 24-month history of all model outputs, enabling the client to track model accuracy against actual churn outcomes over time and to assess the effectiveness of retention campaigns. The eight-month managed maintenance engagement further ensured that the model remained calibrated to evolving customer behaviour and portfolio conditions, extending the operational life of the initial investment.

Authors

Author Image
Rohit Kannan Engagement Manager
Author Image
Hashim Ilyas SEO Specialist

Contact Us

We’d love to hear from you.

Lets discuss how we can transform your business with AI. Talk to our AI expert team. Lets do AI journey together.

Name
Email
Company