{"id":5435,"date":"2021-01-20T13:42:15","date_gmt":"2021-01-20T08:12:15","guid":{"rendered":"https:\/\/razorpay.com\/blog\/?p=5435"},"modified":"2021-02-23T11:10:55","modified_gmt":"2021-02-23T05:40:55","slug":"prioritzing-leads-for-sales-ml","status":"publish","type":"post","link":"https:\/\/razorpay.com\/blog\/prioritzing-leads-for-sales-ml\/","title":{"rendered":"How We Use ML to Prioritise Leads for Our Sales Team"},"content":{"rendered":"<p><i><span style=\"font-weight: 400;\">\u201cHow can we improve the conversion rates of incoming leads?\u201d<\/span><\/i><\/p>\n<p><i><span style=\"font-weight: 400;\">\u201cHow do we improve sales team&#8217;s efficiency?\u201d<\/span><\/i><\/p>\n<p><i><span style=\"font-weight: 400;\">\u201cWhich is the best medium to target leads?\u201d<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">These are some questions that sales managers are commonly asked. The best answers to such questions lies with data. This is why scoring incoming leads based on various data points can help in effective targeting.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">At Razorpay, we have tried two common approaches to arrive at a lead score.<\/span><\/p>\n<h3><b>1) Heuristics based scoring<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This approach involves providing weightage to various important factors based on intuition and on the lead score. The leads in the high scoring bucket are reached out using calls, the ones with medium score are reached out using SMS, and the remaining in low scoring buckets could be reached out via emails. The thresholds of these buckets could be decided based upon the team&#8217;s capacity for handling calls.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For instance, let\u2019s suppose an inbound sales team of 5 members can call a maximum of 100 leads a day out of 500. Then the top 20% leads could be classified as high quality buckets and the remaining could be placed under medium and low-quality buckets. This method is used when an organisation is in its early stages and there is insufficient historical data to learn from.<\/span><\/p>\n<h3><b>2) Machine Learning based leads scoring<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This approach requires leveraging historical data to identify the most significant features that result in lead conversion, computing features weightage, and building a predictive model to score new leads.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This type of method is applied when there is sufficient sample size available. As a thumb rule, the minimum sample size for the binary<\/span> <a href=\"https:\/\/en.wikipedia.org\/wiki\/Logistic_regression\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"font-weight: 400;\">logistic regression<\/span><\/a><span style=\"font-weight: 400;\"> model could be determined using the basic formula, n = 100 + 50i, where i is the number of features used in the statistical model. For instance, if we have 5 features, then the minimum sample size required to create the model=350.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The first approach is pretty simple and straightforward, so a detailed explanation of the same is skipped. Here, the implementation of the second approach to create a leads scorecard is discussed in detail. The scorecard is very easy to interpret and could be easily understood by people with no technical background. A sample leads scorecard with two features is shown below.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5554\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-1-1024x536.png\" alt=\"\" width=\"770\" height=\"403\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-1-1024x536.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-1-300x157.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-1-768x402.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-1-1536x804.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 1: Sample scorecard with two features<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">problem statement<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">There are a lot of customers who <a href=\"https:\/\/razorpay.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">sign up on the<\/a><\/span> <span style=\"font-weight: 400;\">Razorpay<\/span><span style=\"font-weight: 400;\"> website expressing their interest to become partners. However, the volumes of signups and limited team size makes it difficult for the sales team to get in touch with all the leads. This is where the lead scorecard comes to the rescue. There are two main parts in building the scorecard:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Developing a statistical model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Applying the statistical model to compute the lead score for a partner merchants <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ol>\n<h2><span style=\"font-weight: 400;\">Statistical model<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Building a statistical model involves data collection, exploration, transformation, feature selection, model training, and model testing.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 1: Data Collection<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">We gathered historical data of 10,000+ partners to study the influence of various factors on their conversion. Shown below are the first set of all the features, called independent variables, and the outcome variables.<\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5555\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-2-1024x536.png\" alt=\"\" width=\"770\" height=\"403\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-2-1024x536.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-2-300x157.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-2-768x402.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-2-1536x804.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 2: Independent features for the data model<\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5556\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-3-1024x137.png\" alt=\"\" width=\"770\" height=\"103\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-3-1024x137.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-3-300x40.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-3-768x103.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-3-1536x206.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 3: Target feature for the data model<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the blog, the partner merchants who have referred and on-boarded at least one sub-merchant are referred to as &#8220;Good partners&#8221; and the rest are referred as &#8220;Bad partners&#8221;.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The dataset is divided into training and test &#8211; training for learning from the historical data, and testing for evaluating model accuracy metrics.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 2: Data Exploration<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Data exploration involves a univariate and bivariate analysis of various independent features to understand basic trends in data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The univariate analysis involves only one variable for summarising the data. Histograms, box plots, etc are some of the most common graphs for performing univariate analysis of continuous features.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The bivariate analysis involves more than one variable for determining empirical relationships between them. It could be descriptive as well as inferential. The bivariate analysis could be done between two continuous or categorical features or one continuous and one categorical feature. Stacked bar charts, correlation plots, etc are some of the generally used graphs for bivariate analysis.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 3: Data Transformation<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">This step involves transforming all the features using the weights of evidence(WOE) method. All the categorical variables can be directly transformed, whereas continuous features (like Delta in months, Months since signup) are bucketed before WOE imputation. The buckets could be created based on the percentile approach or business intuition.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">WOE provides the weights for each of the categories of features, based on the distribution of good partners and bad partners.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Information value(IV) is a useful method for measuring the predictive strength of features and for selecting significant features for the model.<\/span><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Figure4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5442\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Figure4.png\" alt=\"\" width=\"512\" height=\"113\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Figure4.png 512w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Figure4-300x66.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a>Figure 4: Mathematical formula for WOE and IV<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The WOE and IV calculations for each category of one of the continuous features (Month since signup) is shown below.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5557\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-4-1024x459.png\" alt=\"\" width=\"770\" height=\"345\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-4-1024x459.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-4-300x135.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-4-768x344.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-4-1536x689.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 5: WOE and IV computation for a continuous feature (Features analysis reports)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Where:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SMnotGiven denotes the count of bad partners<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SMGiven denotes the count of good partners<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">dist_bad denotes the proportion of bad partners amongst all the bad partners<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">dist_good denotes the proportion of good partners amongst all the good partners<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">WOE_MSB denotes weights of evidence (WOE) for months since the signup feature<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">If the distribution of good merchants is greater than the bad merchants, WOE is positive, else negative or zero. The higher the WOE, the more weightage of a particular category, and the higher would be the final category score of a feature.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">All the raw data inputs are finally substituted with their corresponding WOE values.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 4: Feature selection<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Before running a statistical model, it is vital to select only important features. The Information Value(IV) corresponding to each of the features is computed and only features with IV between 0.02 to 0.5 are considered. That&#8217;s because features with IV less than 0.02 are insignificant for the model and greater than 0.5 can result in model overfitting.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5558\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-5-1024x415.png\" alt=\"\" width=\"770\" height=\"312\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-5-1024x415.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-5-300x122.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-5-768x311.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-5-1536x622.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 6:Nadeem Siddiqi (2006) interpretation of IV Values<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5559\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-6-1024x536.png\" alt=\"\" width=\"770\" height=\"403\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-6-1024x536.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-6-300x157.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-6-768x402.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-6-1536x804.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 7: IV Values for all the important features<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 5: Model training<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Now we fit our logistic regression model with WOE values as input features and a target categorical variable.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For scaling the model into a scorecard, we consider WOE values derived in step 3 and coefficients derived by training the logistic regression model.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The score for each category feature can be computed with the formula:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Score = (\u03b2\u00d7WoE+ \u03b1\/n)\u00d7Factor + Offset\/n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Where:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u03b2 \u2014 logistic regression coefficient for the feature<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u03b1 \u2014 logistic regression intercept<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">WoE \u2014 Weight of Evidence value for the given category in a feature<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">n \u2014 number of features included in the model<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Factor, Offset \u2014 scaling parameter<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">The first four parameters have already been calculated in the previous part. The following formulas are used for calculating factor and offset.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Factor = pdo\/Ln(2)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Offset = Score \u2014 (Factor \u00d7 ln(Odds))<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Here, pdo means points to double the odds and the bad rate has been already calculated in the features analysis reports above.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If a scorecard has the base odds of 2:1 at 600 points and the pdo of 20 (odds to double every 20 points), the factor and offset would be:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Factor = 20\/Ln(2) = 28.85<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Offset = 600- 28.85 \u00d7 Ln (2) = 487.14<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The score derived for one of the features is shown below.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5560\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-7-1024x459.png\" alt=\"\" width=\"770\" height=\"345\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-7-1024x459.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-7-300x135.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-7-768x344.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-7-1536x689.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 8: Category wise lead scores for Months since the signup feature<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The scores are derived similarly for all the features to create a lead scorecard with 7 features.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: The choice of the scaling parameters does not affect the predictive power of the scorecard.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Step 5: Model Testing<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The model is tested on unseen partner leads and the accuracy of the model on the test dataset comes around ~73%. False positives (78 merchants) are a bigger concern than False Negatives as that would lead to opportunity loss for the sales team.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5561\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-8-1024x195.png\" alt=\"\" width=\"770\" height=\"147\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-8-1024x195.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-8-300x57.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-8-768x147.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-8-1536x293.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 9: Confusion matrix of the test dataset<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Where:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Predicted_Good is defined on threshold score=580 i.e if the predicted lead score &gt;580, then the partner test lead is classified as 1 or else as 0. The optimal threshold cutoff is decided based on the evaluation of precision and recall metrics across some fixed threshold scenarios, and the sales team capacity.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Recall and Precision are two important metrics for imbalanced classification models. Recall indicates that out of the total actual good leads(319 partners), what percentage of leads are classified correctly. Precision refers to the percentage of correct classifications out of the total predicted good leads(413 partners).\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In mathematical terms,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Recall=(TP) \/(TP+FN)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Precision=(TP)\/(TP+FP)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Where:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">TP= True Positive, FP=False Positive, TN=True Negative, FN= False Negative<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Lowering the threshold increases the recall and merchant base for human-based targeting, thereby increasing sales team effort. On the other hand, increasing the threshold, decreases the recall, increases the precision, and may result in opportunity loss for the sales team. The table below demonstrates the same.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5562\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-9-1024x459.png\" alt=\"\" width=\"770\" height=\"345\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-9-1024x459.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-9-300x135.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-9-768x344.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-9-1536x689.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 10: Determining the optimal threshold score for classification<\/span><\/p>\n<p><span style=\"font-weight: 400;\">At threshold 580, precision=54%, recall=72%, and % merchants to be targeted via human-based targeting out of the total merchants is ~43%. Considering 580 satisfies all three criteria, it is considered to be the optimal threshold cutoff for classifying good and bad partners.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">The model consumption<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">For deriving the lead score for a merchant, all the individual feature scores based on each of the categories are added up.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-5563\" src=\"https:\/\/razorpay.com\/blog-content\/uploads\/2021\/01\/Frame-10-1024x590.png\" alt=\"\" width=\"770\" height=\"444\" srcset=\"https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-10-1024x590.png 1024w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-10-300x173.png 300w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-10-768x442.png 768w, https:\/\/blog.razorpay.in\/wp-content\/uploads\/2021\/01\/Frame-10-1536x884.png 1536w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Figure 11: Sample lead scorecard for a partner merchant<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The lead scoring rules are finally integrated with CRM tools like Salesforce. All the leads piped to a specific queue are scored. The leads above the threshold score, also called high-quality leads(HQLs), are targeted daily using calls and the rest are targeted with personalised and generic emails.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">The business impact<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To understand the effectiveness of the model, data is analysed pre and post implementation of the model.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The leads gestation period i.e time taken by lead to become live on Razorpay platform has reduced by approximately by a month<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The effort of the sales team has gone down drastically by 70% (~1000+ man-hours) to achieve the same level of conversion rates<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">There has been a 50% increase in monthly GMV, indicating more time spent by the sales crew on high-quality leads<\/span><\/li>\n<\/ul>\n<p>And that is how machine learning based lead scoring has helped us scale.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This approach requires leveraging historical data to identify the most significant features that result in lead conversion.<\/p>\n","protected":false},"author":58,"featured_media":5451,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[69],"tags":[115,127,128],"class_list":{"0":"post-5435","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-razorpay-stories","8":"tag-business-analytics","9":"tag-data","10":"tag-sales"},"_links":{"self":[{"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/posts\/5435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/comments?post=5435"}],"version-history":[{"count":0,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/posts\/5435\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/media\/5451"}],"wp:attachment":[{"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/media?parent=5435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/categories?post=5435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razorpay.com\/blog\/wp-json\/wp\/v2\/tags?post=5435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}