A model trained on 2008 ranked Silicon Valley Bank among the safest banks. The warning was still in the public reports.

On its last financial report before it failed, Silicon Valley Bank ranked #3,746 of 4,773 on a failure model trained on the 2008 crisis. That put it among the safer banks in the country. Ten weeks after that report’s quarter ended, it was gone. The risk wasn’t hidden: it was in the same public report, in lines the 2008 model had no reason to look at.

Every insured U.S. bank files a public financial report with its regulators each quarter, called a Call Report. The FDIC publishes all of them. So I asked a historical question: using only what was public at the time, could those reports have flagged a bank’s failure in the following year? And did the signals that worked in 2008–2012 still work when Silicon Valley Bank, Signature Bank and First Republic failed in 2023?

This is the pre-failure companion to an earlier post on reading a failed bank’s loan files. That one starts the day a bank closes; this one asks whether anyone could have seen it coming.

The rules I set first

Research like this can do harm. A public list of banks “likely to fail” could start the very depositor runs it studies; in 2023, uninsured deposits left in hours. So the scope was fixed before any modeling:

  • History only. The study data ends in 2023, and nothing rates a bank that is open today.
  • Only failed banks are named. Every other bank is a stable pseudonym (“Bank 7Q2KX9M”) from a keyed hash, and the key is never in the code, the database or anything the AI can reach.
  • No peeking at the future. A report counts as public 45 days after its quarter ends, and the question is “did this bank fail within the next year?” Each test year is predicted by a model trained only on outcomes that were already known by then.
  • Predictions written down before results. Model settings were fixed in advance, with no tuning.

Why accuracy is the wrong score

Bank failures are rare: about 1 in 300 bank-quarters even at the height of the 2008–2012 wave, and 1 in 1,500 in 2024–2025. A model that never predicts a failure is 99.9% accurate and useless. So every result here uses harder questions:

  • ROC AUC: pick one bank that failed and one that didn’t. How often does the failed one score as riskier? Coin-flipping gives 0.5; perfect is 1.0.
  • Recall in the riskiest 1%: what share of the next year’s failures were in the top tier?
  • Lift: how much more often a flagged bank failed than an average one.

Finding 1: in 2008, the warning signs were loud, and simple rules did as well as models

Banks that failed in the 2008 wave had rising bad loans, shrinking capital and losses for quarters beforehand. Tested year by year, out of time:

2008–2012 ROC AUC Failures caught in the riskiest 1%
Logistic regression (credit ratios) 0.92 34%
Gradient boosting (all ratios) 0.96 35%
“Texas ratio” rule (bad loans ÷ capital + reserves), no training at all 0.96 43%

A rule of thumb from the Texas banking crisis of the 1980s matched the machine learning and caught more failures in its top 1%. 411 of the 465 banks that failed in 2008–2012 were in the riskiest 5% at their last report, and half of them had been there for at least 12.7 months.

The loan books tell the story. At Corus Bank’s last report in 2008, \$3.51 billion of its \$4.05 billion in loans were construction loans, \$1.74 billion of them no longer being repaid, against \$602 million of core capital. Across 544 failed banks, the median construction book was 30% noncurrent at the last report.

A leakage check. Splitting bank-quarters at random instead of by time scored AUC 0.993, against 0.88 for the same model frozen at the end of 2007 and tested on the crisis. A random split lets a bank’s later quarters, and its failure, leak into training. Both numbers stay in the results so the difference is visible.

Finding 2: in 2023, the 2008 playbook looked in the wrong place

Silicon Valley Bank had few bad loans and an 8% leverage ratio, which is why the credit model liked it. Its risk sat on two other lines of the same report:

  • About \$15 billion of unrealized losses on bonds it held, close to its \$15.5 billion of equity. Bonds bought when rates were near zero lost value when rates rose.
  • 94% of its deposits uninsured. Large depositors above the \$250,000 insurance limit can leave in a day, and they did. (The Call Report’s “uninsured” line covers domestic offices only. Adding SVB’s foreign-office deposits, which are never insured, took it from 86% to 94%.)

A “rates and run” rule multiplies the two: unrealized losses relative to equity, times the uninsured share.

2022 Q4 report, rank of 4,773 (1 = riskiest) Credit model Rates-and-run rule
Silicon Valley Bank #3,746 #70
Signature Bank #2,996 #269
First Republic Bank #3,689 #630
Citizens Bank, Sac City, Iowa (loan losses) #25 #239
Heartland Tri-State Bank (reported fraud) #990 #503

The honest caveat: this rule writes down a mechanism that became well understood after March 2023. The fair conclusion is that the ingredients were public, not that an analyst in 2022 would have built this exact score. A model can only learn the kinds of failure it has seen, and 2001–2021 had none like this. So the dashboard’s risk score is the worse of two lenses, the credit model and the rates-and-run rule, and the second is labeled as hindsight wherever it appears.

Finding 3: I tested it on the future, and two of my five predictions failed

Everything above is a backtest. Careful, but the methods were chosen while looking at 2001–2023. So before downloading a single report or failure after 2023, I committed a pre-registered forward test to the repo: the model frozen at the end of 2023, scored on reports from late 2023 to 2025, and five predictions written down in advance. Ten banks failed in that window.

  • 7 of 10 failed banks reached the Critical tier (the riskiest 1%) before failing. Banks in that tier went on to fail about 30 times as often as the average bank.
  • Republic First Bank (2024) was flagged by the rates-and-run lens, as predicted: a smaller version of the 2023 pattern, 72 days before it closed. The six other banks caught had first reached the High tier (top 5%) more than a year before they closed.
  • Missed: three small banks never reached even the High tier. I predicted at least one miss.
  • Failed prediction: AUC. I predicted at least 0.85. It came in at 0.79 (95% interval 0.63–0.99, with only ten failures). The credit lens alone scored 0.84; the rates-and-run lens fell to 0.44, because plenty of banks still carried bond losses and didn’t fail.
  • Failed prediction: probabilities. I predicted the 1-year failure probability would over-predict. It under-predicted by half: 11.7 bank-quarters followed by a failure expected, against 25 observed.

The lesson I’d keep: a ranking survives a change of regime; a probability doesn’t. The riskiest banks were still the riskiest. What “riskiest” means in percent had moved.

One more surprise: the FDIC’s own sources disagreed for a while. Its data API ran two months behind its published failed bank list and was missing two 2026 closings. The test merges in the list’s later closings and says so.

What I built on top of it

The research runs on a laptop for free. To make it usable by someone who isn’t going to read Python, I deployed it on Microsoft Azure.

FDIC data in; a gated rebuild in Data Factory; one Azure SQL database behind both the Power BI report and the chat analyst. Every service-to-service call uses managed identities, with no keys.

A Power BI dashboard answers “Which banks looked most at risk, why, and what would help?” for any quarter from 2005 to 2022.

2008 Q4: 176 banks in the Critical tier, 22% of which failed within a year, against a base rate of about 0.35%. Each of the top 5 shows its two main drivers, its worst red flag, and the dollars of defaulted loans that would push it to the 2% capital line.
  • 21 red flags, each tied to its basis (statute, interagency guidance, research or rule of thumb), with the typical supervisory step and what the bank itself can do. They include the whole Prompt Corrective Action ladder, the capital thresholds at which the law requires supervisors to act.
  • What-if scenarios: set a rate rise, a run by uninsured depositors, loan defaults and loss severity, and the page counts the banks that fall to 2% capital. At 2022 Q4, +3 points on rates and a quarter of uninsured deposits leaving puts 1,334 of 4,773 banks at 2% or below on a market-value basis.
  • A bank detail page: the risk score over time, each red flag against the threshold that applied on that date, and the loan book by type.
Corus Bank, 2008 Q4, opened from a link in a chat answer. The construction book is the whole story: $3.51B of loans, 49.6% noncurrent.

A chat analyst (an Azure AI Foundry agent, behind sign-in) answers questions about the same data and the rules behind it, from a library of 1,191 passages from 20 primary sources: the PCA statute and rules, the legal grounds for closing a bank, the 2006 commercial real estate guidance, the reviews of SVB’s and Signature’s supervision, and the FDIC’s Resolutions Handbook.

"Draft a remediation plan for Corus Bank in 2008 Q4." The breached flags, the loan books behind them and the capital gap, then steps for now, 90 days and 12 months, each tagged supervisor or bank. Every bank links to its detail page, and the exact rows behind the answer download as CSV or JSON.

An AI analyst built to assume it will be fooled

An assistant over a database invites two questions: what if someone talks it into something, and what if it makes something up? The design answers both in code, not in the prompt:

  • It never writes SQL. It picks one of 12 fixed, read-only queries, with arguments clamped and bound as parameters. Its database identity can only read, so “delete the tables” fails in the database whatever the model says.
  • Every quote, figure and link is checked against what the tools returned. A link the tools didn’t produce is stripped before the answer reaches the page, and a test plants a malicious link to make sure.
  • Chat history lives on the server. In the first version, the browser sent the conversation back each turn, which meant a user could forge what the analyst had “said” earlier. Now the browser holds only an opaque id.
  • Refusals are tested. A fixed set of 17 questions checks accuracy, refusing to unmask a pseudonymous bank, declining to name any bank as “likely to fail”, declining investment advice, and ignoring injected links.

The checks caught real errors. In one test the model wrote that Corus needed no new capital because it was below the thresholds. It was above them, at 7.2%. The fix was to have the tool state which side of each line the bank is on, in words, rather than trust the model to read a zero correctly.

What the data taught me

  • Zero isn’t zero. From 2020, about 37% of banks report 0 for every risk-based capital ratio. They chose the simpler Community Bank Leverage Ratio framework and don’t file those ratios. Read literally, the zeros produced thousands of false “undercapitalized” flags.
  • The rules move. The Tier 1 capital thresholds changed in 2015 (Basel III), and one ratio didn’t exist before then. Each flag is judged by the rule in force on its report date; a single modern threshold would mislabel every 2008-era bank.
  • Negative equity looked safe. A ratio like bad loans ÷ capital flips sign when capital goes negative, so the most insolvent banks scored as the healthiest. Ratios now cap at their riskiest value.
  • A downloader can “succeed” with garbage. The federal regulations site answers scripted requests with a “Request Access” page, and one rule sat in the guidance library as a single junk passage until a quality gate checked for it. Those rules now come from the official annual editions on govinfo.
  • Capital isn’t the only trigger. SVB was closed with positive book capital, on the statute’s liquidity ground: it couldn’t pay its depositors. So the library includes the statute, not only the thresholds.

Every rebuild runs through quality gates that stop before the database or the dashboard changes: every failure label must match the FDIC’s published failed bank list (566 of 566 by certificate and date), AUC floors, the scope rule, pseudonym checks and row counts.

Who it’s for

Supervisors and researchers: a tested, open set of indicators with their legal basis, a historical record of how early each failure showed, and evidence that can be downloaded and checked rather than taken on trust.

Buyers of failed-bank assets: when a bank fails, the FDIC sells its loans by sealed bid, generally at a discount to book value. The project documents how that process works and what failed banks’ loan books looked like at their last report: the median failure in 2008–2012 cost the insurance fund 23% of the bank’s assets. That is history about failed banks only; it doesn’t point at open ones.

Limits

  • After 2012 failures are rare, about 60 in 2013–2023 and 10 in the forward test, so the quiet-period numbers have wide error bars.
  • A weak bank that was acquired before it failed counts as “did not fail”.
  • Uninsured deposits are the banks’ own estimates, and Call Reports are sometimes amended.
  • Three of the five 2023 failures were among the largest banks in the country; ratios built from small-bank failures don’t automatically transfer.

The code, the pre-registration, the results, the design decisions and the full list of lessons are on GitHub: github.com/godot107/bank-early-warning.

An independent personal research project using public FDIC data. Not affiliated with or endorsed by the FDIC or any other agency. Informational research only, not financial, investment or legal advice. Only banks that failed are named.




Enjoy Reading This Article?

Here are some more articles you might like to read next: