<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohan Dani on Medium]]></title>
        <description><![CDATA[Stories by Mohan Dani on Medium]]></description>
        <link>https://medium.com/@mohan.dani?source=rss-40ab510d1b0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YxuZh1FoQ_pkPDfj</url>
            <title>Stories by Mohan Dani on Medium</title>
            <link>https://medium.com/@mohan.dani?source=rss-40ab510d1b0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:21:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohan.dani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Case of AI based Contrastive explanation and Usages]]></title>
            <link>https://medium.com/@mohan.dani/case-of-ai-based-contrastive-explanation-and-usages-1ba4b5533607?source=rss-40ab510d1b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ba4b5533607</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-explanation]]></category>
            <dc:creator><![CDATA[Mohan Dani]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 17:02:20 GMT</pubDate>
            <atom:updated>2022-01-28T17:02:20.737Z</atom:updated>
            <content:encoded><![CDATA[<h3>Case of Contrastive explanation and Usages.</h3><h3>How to bring transparency to loan underwriting ML model</h3><p>In the current pandemic, the number of SME (Small and Medium Enterprise) loan applications to the SME lenders have increased, along with the number of fraudulent loan applications. For each SME loan application, lenders undertake a thorough validation process (mostly manual) resulting in long duration, subjective decisions and more importantly not a great customer experience. With the advancement in AI, a machine learning (ML) model could be built to aid this process. The key challenge lies in explaining the ML model’s outcome in a business intuitive way.</p><h3>Lending Underwriting Process a process Introspection:</h3><p>The Loan Underwriting process involves validating the customer’s self-declared loan application and its supporting documents such as financial statements. Historically, lenders have used slightly different tools and combinations of information to evaluate the risk of making business loans. The lender collects additional information to approve or deny a loan request. The drawback is the final decision was left up to a human, not technology resulting in long duration in processing the loan application, also resulting in subjective decisions including the possibility of collusion.</p><p>Reputable lenders use <em>both</em> technology and human expertise for the business loan underwriting process. Some of the key evaluations performed include:</p><p>• Credit scores, both business and personal</p><p>• A healthy cash balance in the bank</p><p>• Positive cash flow for the previous n months</p><p>• Minimal current debt load</p><p>• Loan request amount</p><p>• Ability of the borrower to repay the loan amount.</p><p>One essential requirement of the underwriting process especially when it is aided by ML models is to provide transparency to determine the reasons that led to specific decisions.</p><h3>Working with a Large Corporate Bank</h3><p><a href="https://www.ibm.com/analytics/services/data-science-and-ai-elite">The Data Science and AI Elite team</a> had the opportunity to work with a leading Corporate/SME Bank in Asia-Pacific. The Bank is well-known for its stringent loan underwriting process that resulted in low fraudulent loans. Yet, the client was looking for ways to improve the underwriting process using Data Science. For instance, early identification of fraudulent applications during loan underwriting process to improve the customer’s experience. The key data science requirement is to provide model decision explanation that mirrors/reflects the underlying business process.</p><h3>Dataset:</h3><p>The Client shared with us labelled dataset of SME Loan applications for four years (all identifiable information removed) along with their supporting documents such as three years of financial statements. The labeled dataset included a ‘target’ column indicating whether the application is fraud or legitimate (determined by their current process). The last six months of the dataset is to be used for model testing and the rest for model development.</p><h3>Model:</h3><p>Developing the models for this business problem was challenging due to:</p><p>1. Extremely high dimensionality (several 100s of features)</p><p>2. Very tiny portion of the applications were fraudulent</p><p>3. No transactional data or exogenous data</p><p>Our team went through the usual iterative process of EDA, Algorithm selection (including various Outlier Detection models), Feature Engineering, Model Selection, Hyper-parameter tuning and more. The final model improved the Recall, F1 score and ROC-AUC considerably over the customer’s baseline.</p><h3>Model Analysis:</h3><p>The final model had a near identical feature importance that reflected the underwriting processes key areas. They are Credit worthiness (internal &amp; external), Assets, Expenses &amp; Liabilities, Depreciation, Cost etc. These markers show that model is performing well at conceptual and global level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Ch3ZM5PdhdjiiYNWDvAj1g.png" /></figure><p>Figure 1 — Model Feature Importance</p><p>We used SHAP’s summary plot and dependency plot to understand the influence of features in the model’s decision. However, to really understand the model from a quantitative perspective, we explored Contrastive Explanation.</p><h3>Concept of Contrastive Explanations:</h3><p>In general, Loan application evaluation for fraud primarily depends on features from Debt to Income (revenues, taxes, assets, expenses etc.,), Credit worthiness (own bank, credit bureau agency etc), cost of production (including human capital). Let’s understand how a metric, say debt to income (DTI) ratio, is evaluated.</p><p>Typically, Lenders prefer low DTI as borrowers with low DTI ratios are likely to manage their monthly debt payments effectively. The Lenders codify this preference as a rule that debt-to-income ratio should be lower than 36%, with no more than 28% of that debt towards mortgage or rent payment.</p><p>Now consider a scenario where Income (cash inflow, sales, assets etc.,) is $10K and debts (payment owed) in same period is $30K, making DTI 300%. Per the bank’s rule, this is too risky, and the underwriter should reject this loan application. However, the immediate question that might arise is at what income would the underwriter change the decision to approve (reinforcing the DTI rule). For the same debt, had the income been $120K, DTI would become 25% increasing the likelihood of this application getting approved. So, the changed value of $120K for Income, with same $30K debt is called as <strong>Pertinent Negative values(s)</strong>. Similarly for the range of values from $10K-$80K is called as <strong>Pertinent Positive values</strong> i.e., if the value of Income is in the above range, the underwriter would still reject the application., i.e., won’t change the decision.</p><p>Model’s explanation that mirrors the same above line of thinking/reasoning is called Contrastive Explanations (CE), a concept borrowed from Medical field, provides explanations such as at what range of feature(s) values would the prediction outcome remain the same and which features are needed to be changed in order for a different prediction outcome. The technical terms used for these are called <strong>Pertinent Positives (PP)</strong> and <strong>Pertinent Negatives (PN)</strong>. The IBM Watson OpenScale (WOS) includes Contrastive Explanations in their suite. (For more information, pls refer to <a href="https://www.ibm.com/docs/en/cloud-paks/cp-data/4.0?topic=insights-explaining-transactions)">https://www.ibm.com/docs/en/cloud-paks/cp-data/4.0?topic=insights-explaining-transactions)</a></p><p>The IBM WOS provides contrastive explanations for each scoring data point. In WOS, each scoring data point is referred to as “Transactions”. Using the “Explain Transactions” option in WOS, one could get the contrastive explanations and be able to perform the what-if analysis.</p><h3>Model Explainability at transaction level:</h3><p>Let’s explore the contrastive explanations for two cases.</p><p>1. Case1 — Explain why model predicted ‘Not suspicious’ for a legitimate application.</p><p>2. Case2 — Explain why model predicted ‘Suspicious’ for a legitimate application.</p><h3>Case-1’s contrastive explanation:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Y8crH_7KgnnfWNfDKql_hQ.png" /></figure><p>Figure 3 — IBM WOS Contrastive Explanation for True Positive data-point</p><p>The Figure 4 shows the WOS’s CE for the case1 application. The WOS CE could not find a pertinent negative to this application, in a reasonable amount of time — which is a valid scenario.</p><p>We retrieved the feature importance (LIME) and the CE values for this case. In order to map the model’s explanations to the underlying process, we identified a set of model features and grouped them into underwriting headers as shown in Figure 3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*U0pBvWIUyIPZpoLbItILDw.png" /></figure><p>Figure 3 — Business Explanation (based on IBM WOS CE) for Case1</p><p><em>In </em>Figure 3<em>, the number in green circle indicates the relative feature importance. And the table on the bottom right side indicates the application was marked as Legitimate and the model also predicted it to the same with a high confidence score.</em></p><p>In this loan application as seen in Figure 3, we observe that,</p><p>· Applicant has invested well into human capital,</p><p>· There are asset depreciations.</p><p>· There’s a view on Credit worthiness (internal and external) that has a credit rating which is available and referable.</p><p>· There is also Cash and Retained earnings.</p><p>This translates to all critical markers being present in the application and helps the underwriting team to understand why the model predicted the application as “Non Suspicious”/legitimate.</p><h3>Case2’s contrastive explanation:</h3><p>In case2, a Legitimate application is predicted as “Suspicious” by the model with a 62% confidence score. Its feature importance and CE values are mapped as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*tmyFXQuC_a28BvTDpXghdg.png" /></figure><p>Figure 4 — Business Explanation for Case2</p><p>A closer look at the local (application) feature importance portrays an interesting picture:</p><p>· Credit worthiness (internal and External) is zero meaning bank and other credit agencies have no information/reference able information.</p><p>· The assets are negligible, Human Capital cost is negligible or low.</p><p>· The expenses/liabilities are high.</p><p>· The depreciation is high.</p><p>In summary, the model’s explanation markers identify low assets in comparison to depreciation &amp; expenses as a concern, that needs to be investigated further. Any underwriter would come to the same conclusion. Due to this concern (as highlighted by local feature importance) model predicted this application as Suspicious, even though it is been marked as legitimate by the Client.</p><p>To resolve this contradiction, pertinent negative values is examined. The pertinent negative values turned out to be 22K for “Tangible assets” feature, as shown below (marked in red color):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*3sIiYUN7SFJsqmz8Z8ATxg.png" /></figure><p>Figure 5 — Business Explanation for Case2 using Pertinent Negatives</p><p>In other words, the Pertinent negative is suggesting to have a high assets to balance the assets to expenses ratio that essentially negates the concern. This changed “Tangible assets” in the application, results in model predicting the application to be legitimate with higher confidence of 82%.</p><p>In short, pertinent negatives have confirmed that feature(s) having the original value(s) made the model predict the application as suspicious which is proven to be valid. Armed with these explanations for the model’s decision, the underwriting team can now investigate the original reasons that led to marking the application as legitimate.</p><p>In this way, these explanations bring reasoning, helping revalidate the list of underwriting rules. The data driven process of ML model coupled with model’s explanation will ensure that underwriting rules are free from human bias or collusion — making the underwriting process more robust and resulting in a high-quality customer experience.</p><h3>In summary</h3><p>Feature importance and contrastive explanations can be used to explain the decisions of machine learning models. These explanations can be easily mapped to a business process making the ML models more transparent and making it easier for business users to evaluate the ML model and understand its decisions. This level of model transparency will garner Clients’ trust to deploy these ML models as an aid to perform their business function in a much more structured, time-effective manner resulting in better customer experience.</p><p>Learn more about the <a href="https://www.ibm.com/analytics/services/data-science-and-ai-elite">Data Science and AI Elite team</a></p><p>Authors : Guha Prasath Venkatraman and Mohan Dani</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ba4b5533607" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>