Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
AI & Machine Learning

Explainable AI: Showing Why a Model Made a Decision

Last updated:

A score nobody can explain gets ignored

A credit control team is given a model that flags accounts likely to pay late. Scores come out as numbers between 0 and 1. Within a month the team is back to their own judgement, because nobody could answer the simplest question from a manager: why is this customer flagged?

That is the practical case for explainability, before any regulation enters the picture. People act on predictions they understand. They quietly work around ones they do not. A slightly less accurate model that staff trust will usually produce better business results than a black box they ignore.

Different people need different explanations

AudienceWhat they want to knowUseful form of explanation
Front-line staffWhy this case, and what can I do about it?Top three reasons in plain words, linked to actions
CustomersWhy was I refused or charged this?Clear main grounds and what would change the outcome
ManagersIs the model sensible overall?Which factors drive predictions across all cases
Data teamIs it using the right signals, or leaking?Feature importance, partial dependence, error analysis
Auditors and regulatorsIs it consistent, fair and documented?Logged explanations, model documentation, bias testing

Building one explanation for all of them fails every audience. A SHAP chart is useful to a data scientist and meaningless to a customer who has just been declined.

The main explanation methods, in plain terms

  • Inherently interpretable models. Linear models, small decision trees and scorecards show their reasoning directly. Often the best choice for regulated decisions.
  • Global feature importance. Which inputs matter most across all predictions. Good for sanity checks and management reporting.
  • Local attributions, such as SHAP values. For a single prediction, how much each input pushed the score up or down. The workhorse for per-case explanations.
  • Counterfactual explanations. The smallest change that would flip the outcome, such as two fewer late payments. Very useful for customers and staff.
  • Example-based explanations. Showing similar past cases and what happened to them. Intuitive for experienced staff.

For tabular business data, a gradient-boosted tree model with SHAP explanations covers most needs. Libraries in Python make this straightforward to produce; the real work is translating the output into language people use.

What explanations cannot tell you

It is worth being blunt about the limits, because explainability tools are often oversold.

  1. They explain what the model does, not what causes the outcome in the real world. A feature with high importance may be a proxy for something else.
  2. Different methods can give different explanations for the same prediction.
  3. Correlated inputs share credit unpredictably, so one of two related features can look unimportant when it is not.
  4. An explanation can look reasonable while the model is still unfair to a group, so bias testing is a separate job.
  5. Explanations for complex models are approximations, however precise the numbers look.
An explanation makes a model easier to question. It does not make the model right.

Regulation and explainability

If a model makes or significantly influences decisions about people, such as credit, hiring, insurance or access to services, explanation stops being optional. UK GDPR gives individuals rights around automated decisions, and the EU AI Act, with obligations phasing in, sets transparency, documentation and human oversight requirements for high-risk uses.

We are not lawyers and this is not legal advice, but the engineering implications are consistent: log each decision with its explanation and model version, document how the model works and was tested, and keep a meaningful human route to challenge an outcome. Our guide to EU AI Act compliance covers the obligations in more depth.

When to choose a simpler model instead

Sometimes the honest answer to an explainability requirement is to give up a little accuracy. If a scorecard with eight factors performs within a whisker of a complex model, the scorecard is easier to explain, easier to defend, easier to monitor and cheaper to maintain.

We run that comparison routinely. For decisions about individuals, we lean towards the interpretable model unless the accuracy gain is large and the value of that gain is clear. Clients sometimes expect the reverse from a machine learning firm. It is still the right call more often than not.

Building explanations into the product

Explanations work best when designed into the screen or letter where the prediction appears, not added as a report later.

  • Show the top reasons next to the score, in business language, not feature names
  • Hide explanation factors that staff cannot act on, or mark them clearly
  • Store the explanation with the prediction so it can be retrieved later exactly as shown
  • Let staff record when they disagree, which doubles as useful training data

SpiderHunts treats this as part of the interface design in any machine learning build that touches decisions about customers. If a human then reviews borderline cases, the explanation is what makes that review fast; see human review queues for low-confidence predictions.

Frequently asked questions

What is explainable AI?

Explainable AI covers the methods used to show why a machine learning model produced a prediction, such as which inputs mattered most for a particular case. It helps staff trust and act on predictions, lets customers understand decisions, and supports audit and regulatory requirements.

What is SHAP in machine learning?

SHAP is a widely used method for attributing a single prediction to its input features, showing how much each one pushed the result up or down. It works with many model types and is common for explaining tabular business models.

Are black box models illegal for decisions about people?

Not automatically, but laws such as UK GDPR and the EU AI Act impose transparency, documentation and human oversight obligations on certain automated decisions. In practice that makes unexplained models hard to justify for credit, hiring and similar uses. Take legal advice for your situation.

Do explanations reduce model accuracy?

Adding explanations to an existing model does not change its accuracy. Choosing an inherently interpretable model instead of a complex one sometimes costs a little accuracy, and for many business decisions that trade is worth making.

Keep reading

Need to explain your model's decisions to someone?

Tell us who is asking, whether staff, customers or a regulator, and what the model decides. We will suggest the kind of explanation that would actually satisfy them.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

AI AgentsMachine LearningAI Integration