Legal Judgment Prediction

Statistics
Introduced by
Daniel Katz
Year
2017
Type
Computational law and judicial decision prediction method
Family
Machine learning and artificial intelligence

What does it do?

Legal judgment prediction uses supervised machine learning to forecast court decisions from case features, precedent links and information about the deciding judges.

A 2017 study by Daniel Katz, Michael Bommarito and Josh Blackman applied this approach to outcomes and individual votes of the U.S. Supreme Court, and the authors present it as an advance for quantitative legal prediction.

The intuition behind the method

The method assumes that judicial decisions are not wholly unpredictable: past outcomes, case characteristics and the identity of the deciding judges carry information about later decisions. A model is fitted to a historical record and then tested on cases it has not seen. In the Katz et al. study, predictions used only information available before each decision, and the model reached 70.2% accuracy at the case outcome level and 71.9% at the justice vote level across 1816 to 2015. Over the past century, it outperformed an in-sample optimised null model by nearly 5%. The relevant comparison is against null (baseline) models, because a court whose outcomes mostly go one way can be predicted fairly well without any model. The size of any gain over a baseline depends on the base rate of affirmance or reversal, so a reported accuracy should be read against the baseline for the same court and period. High predictive accuracy shows that patterns exist in the record, not why judges decide as they do.

History

The method dates to 2017, when Katz, Bommarito and Blackman published a time-evolving random forest model of U.S. Supreme Court decisions covering 1816 to 2015. The work builds on earlier developments in machine learning and prior work in quantitative judicial prediction. Their model is distinctive in that it can be applied out of sample across the Court's history, rather than to a single term, and the authors describe it as an important advance for quantitative legal prediction.

When to use it

Choose this approach when a sizeable, digitised record of past decisions exists for the same court or bench, the outcome is discrete (for example affirmed or reversed, or a single justice's vote), and the features available before a decision can be coded reliably. It suits settings where legal doctrine is relatively settled, so that past patterns are likely to remain informative. Avoid it for novel legal questions with little precedent, for courts whose composition or doctrine has changed sharply, and for trial-level or jury decisions, where outcomes depend heavily on facts that are hard to record. Class imbalance needs explicit handling: if most cases are affirmed, a model that predicts affirmance every time will look accurate without being useful. The approach rests on four assumptions: decision patterns remain stable enough to carry over from the training period to the test period; training and test cases are comparable; every input was observable before the decision; and the recorded outcome is the correct target variable.

Limitations and considerations

  • Needs a large, consistently coded record; small or inconsistently recorded samples give unstable estimates and poor generalisation
  • Has little to learn from when precedent is absent or contested, because it relies on historical patterns
  • Text-based features can capture the drafting style of opinions rather than legal substance, so a model may partly predict who wrote an opinion
  • Ensemble and neural models are hard to interpret; it is difficult to say why a particular prediction was made, and post-hoc tools approximate rather than reveal the model's reasoning
  • Even time-evolving models assume that patterns from earlier periods continue to apply; shifts in doctrine or court composition reduce accuracy

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Out-of-sample accuracy above null baselines: Katz et al. report 70.2% accuracy at the case outcome level and 71.9% at the justice vote level over 1816 to 2015, and state that their model outperforms null models under both parametric and non-parametric tests
  • Produces class probabilities for new cases from random forest and regression-type classifiers, which can support comparisons of relative outcome likelihood across cases
  • Feature importance output shows which case and judge variables the model relies on, giving a starting point for examining decision patterns, although it does not establish causal effects
  • Because the Katz et al. model predicts individual justice votes, predicted votes can be compared across justices and periods as a descriptive summary of the fitted model. Such comparisons do not establish differences in judicial reasoning, because prediction accuracy depends on the features and the model, not just the justice.
  • Supports fairness audits: comparing predictions with and without non-legal variables shows whether those variables carry predictive weight in the historical record. This indicates association rather than causal discrimination, and results depend on how proxies are defined and coded.

Applications

  • Appellate litigation strategy: model outputs can serve as one descriptive input when weighing an appeal or a settlement. The accuracy figures in the source study do not show that the output scores are calibrated probabilities for individual cases, and they come from a different court and period. Use in such decisions requires calibration checks, uncertainty intervals and comparison with a base-rate model.
  • Judicial fairness audits: test whether non-legal variables such as defendant characteristics or attorney quality carry predictive weight after legal features are controlled. Such a weight reflects association in the historical record, not causal discrimination, and results depend on how proxies are defined and coded.
  • Judge assignment analysis: compare expected outcomes across judges, where the law permits a party to request or challenge an assignment
  • Descriptive benchmarking: compare how predictable outcomes are across courts or periods as a measure of consistency in the record, without treating it as a measure of legal settledness

How it works

How it works

1

Assemble a corpus of past decisions together with the information that existed before each decision (case facts, parties, claims, arguments, the deciding judge and precedent citations), the recorded outcome or individual votes, and the date and court. The Katz et al. study predicted both case outcomes and individual justice votes.

2

Convert case and opinion information into structured features, using natural language processing steps such as tokenisation and lemmatisation where text is used, and encode judge identity and precedent links as numerical inputs. Feature engineering is central to the approach; Katz et al. describe their feature engineering as one of the distinctive elements of their model. Inputs must be restricted to what was known before the decision.

3

Examine how candidate features relate to outcomes and votes before fitting the final model. This step also serves to detect features that are only available after the decision, which would leak information into the model.

4

Train a supervised classifier on the historical outcomes. Katz et al. used a time-evolving random forest, so that the model is updated over the Court's history and can be applied out of sample to any period. Other studies in this area use logistic regression, gradient boosting or neural networks.

5

Evaluate predictions on cases held out from training, reporting accuracy and comparing against null baseline models, as Katz et al. do. Examine which features drive predictions, and report case-level and vote-level results separately, since these can differ (70.2% and 71.9% in the Katz et al. study). Post-hoc explanation tools such as LIME can be applied to opaque models, though they approximate rather than reveal the model's reasoning.

Common pitfalls

  • Leakage: including features that are only known after the decision, such as content taken from the final opinion, inflates accuracy. Inputs should be limited to information available before the decision, as Katz et al. specify
  • Evaluating on random splits of time-ordered data rather than on later periods can overstate performance for a court whose behaviour changes over time
  • Reading predictive accuracy as a causal account of judicial reasoning; a model can predict well without identifying the factors that actually drive decisions
  • Proxy variables: if a feature such as defendant race predicts outcomes, the model may encode discrimination rather than legitimate legal reasoning

Frequently asked questions

How do legal prediction models achieve high accuracy if judicial decisions are complex?

Judicial decisions, though complex, show statistical regularities. Judge voting patterns, precedent citation and case characteristics correlate with outcomes. The model captures collective patterns across many cases even when the reasoning in any single case is complex. Accuracy in the 70% range reflects reproducible patterns, not complete case determinism.

Can legal prediction models explain their predictions transparently?

Interpretability varies by model. Logistic regression and decision trees give transparent feature weights. Ensemble and neural models require post-hoc explanation methods such as LIME (Local Interpretable Model-Agnostic Explanations) or attention visualisation. These methods show which case features most influenced a particular prediction, but they do not reproduce the judge's reasoning.

Does high accuracy in predicting Supreme Court outcomes imply the law is deterministic?

No. Prediction accuracy reflects correlations in historical data, not determinism. Judicial discretion remains, and factors the model does not measure, such as a judge's personal philosophy, unpublished communications or novel arguments, can influence decisions. Models identify average patterns, not the causes of individual decisions.

How does judicial bias (e.g., racial discrimination) appear in prediction models?

If judges systematically favour defendants of certain races, the model may learn this as a predictive feature. This enables fairness audits: comparing predictions based only on legal and factual features with predictions that include demographic proxies shows how much the proxies contribute. Removing such features may be required in some settings, and it may reduce predictive accuracy.

Can legal prediction models predict trial court or jury trial outcomes?

Trial courts and juries are harder to model than appellate courts for several reasons: outcomes depend heavily on case facts, jury composition varies, and fewer digitised records exist. Accuracy reported for appellate and Supreme Court models should not be assumed to transfer to trial-level prediction. Jury composition, attorney persuasiveness and witness credibility are difficult to quantify from the records a model uses.

Related methods

Sources

  1. Katz, D. M., Bommarito, M. J., & Blackman, J. (2017). A general approach for predicting the behavior of the Supreme Court of the United States. PLOS One, 12(4), e0174698.

    Open DOI reference
  2. Matz, D., & Spicer, J. (2019). Predicting judicial decisions of the European Court of Human Rights. Artificial Intelligence and Law, 27(2), 123-145.

    Open publication reference
  3. Lage-Freitas, A., de Oliveira Santini, F., Praxedes Filho, P. H., & de Almeida Oliveira, A. (2022). Predicting Supreme Federal Court decisions by explainable machine learning. Frontiers in Artificial Intelligence, 4, 586561.

    Open publication reference