Interpretability in ML — the ability to explain why a model made a specific prediction — is critically important in UK regulated sectors for reasons that go beyond mere compliance. FCA Consumer Duty (2023) requires firms to demonstrate 'good outcomes' and explain decisions to customers. PRA Supervisory Statement SS1/23 (Model Risk Management) requires firms to have robust processes for understanding, validating, and challenging model outputs. NHS algorithmic transparency guidance requires that clinical AI systems are auditable and their recommendations explainable to clinical staff. Without interpretability you do not just have a 'black box' — you have regulatory liability.
SHAP (SHapley Additive exPlanations) is the gold standard for feature-level interpretability. SHAP values calculate each feature's contribution to a specific prediction — relative to the average baseline. Global interpretability: a SHAP summary plot shows which features are most important overall across the dataset and in which direction. Local interpretability: a SHAP waterfall plot for a single prediction shows exactly why the model assigned that score. UK regulated use case: a bank declines a loan — the SHAP local explanation shows that the main reasons are a DTI ratio of 0.45 (contributing -0.23 to log-odds) and a recent late payment (contributing -0.18). This is a defensible, auditable explanation for the customer and the regulator.
LIME (Local Interpretable Model-agnostic Explanations) is an alternative for complex models where SHAP is computationally expensive. LIME trains a simple interpretable model (linear regression) that approximates the behaviour of a complex model in the neighbourhood of a specific prediction. Advantages: model-agnostic (works with any model including deep learning), intuitive output. Disadvantages: less stable than SHAP (different runs may give different explanations), does not guarantee global consistency. For UK regulated sectors: SHAP is preferred for tabular data; LIME is useful for text and image models where SHAP is less practical.
Counterfactual explanations (DiCE — Diverse Counterfactual Explanations) answer the question 'what would need to change to get a different outcome?' For UK consumer credit: 'If your credit utilisation had been 60% rather than 85%, and you had had no late payments in the last 6 months, your loan would have been approved.' This is the most actionable type of explanation for end users — it points to specific actions. UK GDPR Article 22(3) requires providing 'meaningful information about the logic involved' for automated decisions — counterfactuals are one of the most legally defensible ways to satisfy this requirement. The DiCE library (Microsoft Research) is an open-source Python implementation.
Inherently interpretable models are the first line of defence when there is a choice. Logistic regression and scorecard models are standard in UK consumer credit (Basel requirements for retail IRB models recommend interpretable designs). Decision trees with controlled depth (max_depth=4–6) are interpretable but less accurate than gradient boosting. Scorecard models (via the scorecardpy or optbinning Python libraries): each feature has integer score points, and the final decision is based on the total points vs a threshold. This format has been the standard of UK retail lending for over 40 years — regulators understand it, and it is trivially interpretable.
Audit trail and model documentation are mandatory for UK regulated deployments. A Model Card documents: model purpose, training data characteristics, performance metrics across different subgroups, known limitations, and intended/unintended use cases. PRA SS1/23 requires a Model Risk Management framework: model inventory (a registry of all production models), validation process documentation, ongoing monitoring metrics, and escalation procedures. Practical tooling: InterpretML (Microsoft, open source) for Explainable Boosting Machines; Alibi Explain (Seldon) for counterfactuals and anchors; SHAP library for any model. Store SHAP explanations for every individual decision that affects a consumer — this is your audit trail.
Related Codeworth Services
Need Help with Implementation?
The Codeworth team is ready to implement these ideas in your project. Free consultation.
Discuss the ProjectCodeworth team specialist.