The model · 8 min read

600 small decisions: how the Creditbase credit risk model works

Our insolvency score is not a scorecard. It is about 600 decision trees, built by AI agents under our direction and tested on years it had never seen. This is why we built it that way, and how accurate it is.

0.85
ranking accuracy (AUC) on 2024, a year the model had never seen
59%
of failures came from the 11% of companies in bands D and E
2.5m
company filings used to train it, from 2016 to 2024

Why we built it

Our clients are commercial finance brokers. Before they spend time on a business they need to know two things: does it fit, and can it pay. The second question usually means buying a score from a credit agency, one company at a time, and taking the number on trust.

Meanwhile every limited company in the UK files accounts on the public record, and every corporate insolvency is announced in the Gazette. The raw material for a credit score is public. What was missing was the work of turning it into one.

So we set out to give every UK company with filed accounts a measured probability of insolvency, using public data only, and to show the working: the reasons behind each score, the real failure rate of each band, and how the model was tested. It is meant for screening a whole list before anyone picks up the phone. It is a first check, and it does not replace underwriting.

What it predicts

One thing: the probability that a company enters formal insolvency within 12 months of filing its accounts. That means creditors’ voluntary liquidation, compulsory liquidation, administration or receivership.

Solvent closures are not counted as failures. A company that is wound up by its owners with its debts paid shows the same status on the register as one that collapsed, so we separate the two using the Gazette notices.

The probability is shown as a band from A, the safest, to E. A company already in an insolvency procedure is marked X.

What it learns from

We read 26.4 million sets of accounts filed between 2016 and 2024, and 908,000 Gazette insolvency notices. From those we built 2.5 million training examples: every filing that was followed by a failure, and a sample of the rest.

The model looks at about 40 things about a company, in four groups:

  • Financial strength: what the balance sheet says about assets, cash and what is owed
  • Direction of travel: how those figures have moved over one and three years
  • Filing behaviour: how and when the company files
  • Public legal events, such as a winding-up petition

Every input is something that was public on the day the accounts were filed. Nothing is taken from what was learned afterwards. We do not publish the exact inputs, how they are constructed or the model’s settings. Clients can see the factors behind any individual score in the app.

Why 600 trees and not a scorecard

Most credit scores are scorecards. Each factor earns points, the points are added up, and the total is the score. Scorecards are easy to read, and they have a built-in assumption: each factor counts the same whatever the others say.

Companies do not work like that. Thin cash means one thing in a two-year-old business and another in a twenty-year-old one. A late filing matters more when the balance sheet is already weak.

A decision tree handles this naturally. It asks a short series of yes or no questions, and the second question depends on the answer to the first. One tree on its own is crude. Our model uses about 600 of them, each one built to correct the mistakes of those before it, with their answers added together.

Illustration: a scorecard adds up points for each factor; a tree model adds up the answers of hundreds of small decision treesCash is low+18Filed late+12Ten years old−9Points added up+21Each tree asks a few yes or no questions.About 600 trees, answers added upILLUSTRATIVE
An illustration of the idea. The questions and numbers are made up and are not the model’s.

We built both. The scorecard came first, and we keep it as a fallback and a yardstick. The tree model ranked companies better in every year we tested, so it is the one behind the score you see.

It still explains itself. For each company we trace which factors pushed the score up and which pulled it down, and show them beside the band.

How accurate it is

We test the model the hard way. For each year, we train a model using only earlier years, score that year’s filings, and then compare with what happened to those companies over the following 12 months.

Ranking. On 2024 filings the tree model scored 0.847 on the standard measure of ranking accuracy. In plain terms: take one company that failed and one that did not, and the model rates the failed one as riskier about 85 times in 100. The scorecard managed 0.804.

Ranking accuracy by year for the tree model and the scorecard, each tested on a year it had not seenScorecardTree model (live)0.700.750.800.850.9020190.803Scorecard 0.780 · tree model 0.80320210.770Scorecard 0.748 · tree model 0.77020220.828Scorecard 0.798 · tree model 0.82820230.837Scorecard 0.792 · tree model 0.83720240.847Scorecard 0.804 · tree model 0.847
Ranking accuracy (AUC): 0.5 is a coin toss, 1.0 is perfect. Each year is scored by a model trained only on earlier years. 2021 fell in the pandemic period, when insolvencies were held down. The figure on the right is the tree model.

Probabilities. A score is only useful if 1% means 1%. In band A the model predicted that 0.10% of companies would fail, and 0.10% did. In band E it predicted 5.45%, and 5.06% did.

Predicted and actual 12-month failure rate for each credit band, 2024 out-of-time backtestPredictedActual0.1%0.25%0.5%1%2.5%5%A0.10%Predicted 0.10% · actual 0.10%B0.38%Predicted 0.35% · actual 0.38%C0.77%Predicted 0.70% · actual 0.77%D1.63%Predicted 1.52% · actual 1.63%E5.06%Predicted 5.45% · actual 5.06%
Each company scored by a model trained only on earlier years, then checked against who actually failed within 12 months. Log scale; the gridlines are the band boundaries.
Credit bands on the 2024 backtest
BandCompaniesPredictedActualShare of failures
A62.9%0.10%0.10%12.7%
B15.5%0.35%0.38%11.7%
C10.8%0.70%0.77%16.8%
D7.5%1.52%1.63%24.4%
E3.4%5.45%5.06%34.4%

Concentration. Bands D and E hold 11% of companies and 59% of the failures. Band A holds 63% of companies and 13% of the failures.

Credit bands as a share of all companies scored and as a share of the companies that failed within 12 monthsBand A: 62.9% of companiesBand B: 15.5% of companiesBand C: 10.8% of companiesBand D: 7.5% of companiesBand E: 3.4% of companiesBand A: 12.7% of failuresBand B: 11.7% of failuresBand C: 16.8% of failuresBand D: 24.4% of failuresBand E: 34.4% of failures
2024 backtest. Bands run from A, the lightest, to E, the darkest. Bands D and E hold 10.8% of companies and 58.8% of the failures.
Share of companies and of failures by band, 2024 backtest
BandShare of companiesShare of failures
A62.9%12.7%
B15.5%11.7%
C10.8%16.8%
D7.5%24.4%
E3.4%34.4%

Early warning. Of the companies that failed within two years, half were already in band D or E.

We have not benchmarked the model against a commercial bureau score on the same companies. Bureaus hold county court judgments and payment records that we do not, and we would expect that to count in their favour.

Built by AI agents, checked by people

The model was built by AI coding agents working under our direction. The agents wrote the software that reads the filings, constructed the inputs, trained the candidate models and ran the tests. We set the question, defined what counts as a failure, decided the tests a model had to pass, and reviewed the results before the score went live. The first version was built and tested in a matter of days.

It was not a clean run. Along the way one set of inputs made the model look far better than it was, a change in how filings are tagged distorted one year’s results, and calibrating on a pandemic year left the riskiest bands under-predicted. Each was found in testing and fixed.

That experience is why we now study the question directly: when an AI agent says it has improved a model, how would you know? Read the pilot study

Where it is weak

  • Public data has no county court judgments and no payment records. A company can pay its suppliers late for a long time before its accounts show it.
  • Accounts are old news. They can be up to 21 months out of date by the time they are filed, so the score reacts slowly.
  • The smallest companies file very little, so their scores rest on a thin balance sheet.
  • Only accounts filed electronically are in the data, which is about three quarters of them.
  • Failure rates move with the economy. The model was least accurate in the pandemic years, and its probabilities need recalibrating as conditions change.
  • A band is a screen. It is not a lending decision and it is not financial advice.