[Paper Review] Predicting Brazilian court decisions
This paper presents a machine learning approach to predict Brazilian court decisions with 79% F1-score accuracy on a dataset of 4,043 cases, including outcome labels (yes, no, partial) and unanimity of judgment. The method leverages NLP and supervised learning on judicial opinions from the Tribunal de Justiça de Alagoas, achieving 98.46% accuracy in predicting unanimous decisions due to class imbalance, which drops to 76.94% on a balanced subset.
Predicting case outcomes is useful but still an extremely hard task for attorneys and other Law professionals. It is not easy to search case information to extract valuable information as this requires dealing with huge data sets and their complexity. For instance, the complexity of Brazil legal system along with the high litigation rates makes this problem even harder. This paper introduces an approach for predicting Brazilian court decisions which is also able to predict whether the decision will be unanimous. We developed a working prototype which performs 79% of accuracy (F1-score) on a data set composed of 4,043 cases from a Brazilian court. To our knowledge, this is the first study to forecast judge decisions in Brazil.
Motivation & Objective
- To develop a predictive model for Brazilian court decisions to support legal professionals in case strategy and decision-making.
- To address the challenge of high complexity and volume in Brazilian legal documents, especially Acórdãos from appellate courts.
- To predict both case outcomes (yes, no, partial) and whether the decision will be unanimous.
- To create a working prototype usable for legal professionals with minimal input, based on case descriptions.
- To establish a baseline for legal outcome prediction in Brazil, a jurisdiction with limited prior work in this domain.
Proposed method
- The approach uses natural language processing (NLP) to extract features from judicial opinions, particularly from the Report and Fundamentos sections of Acórdãos.
- Supervised machine learning models are trained on a dataset of 4,043 cases from the Tribunal de Justiça de Alagoas, labeled for case outcome and unanimity.
- The model employs a multi-class classification framework to predict three outcome labels: yes, no, or partial.
- For unanimity prediction, the model classifies decisions as either unanimous or not-unanimous, leveraging the high prevalence of unanimous rulings.
- The dataset is preprocessed to remove duplicates and irrelevant labels (e.g., prejudicada, not-cognized), resulting in 2,274 usable cases for unanimity prediction.
- Evaluation uses F1-score as the primary metric, with ablation studies on class-balanced subsets to assess robustness to data distribution bias.
Experimental results
Research questions
- RQ1Can a machine learning model accurately predict the outcome of Brazilian court decisions based on textual case summaries?
- RQ2Can the model predict whether a Brazilian court decision will be rendered unanimously?
- RQ3How does class imbalance in the dataset affect the performance of unanimity prediction?
- RQ4Does the model’s performance remain stable when the data distribution is made more balanced?
- RQ5Can this approach be generalized to other legal systems with similar decision-making structures?
Key findings
- The model achieved 79% F1-score accuracy in predicting case outcomes (yes, no, partial) on a dataset of 4,043 Brazilian court cases.
- The model achieved 98.46% F1-score accuracy in predicting unanimous decisions on a dataset of 2,274 cases, primarily due to the high prevalence of unanimous rulings.
- When evaluated on a balanced dataset with equal numbers of unanimous and non-unanimous decisions, the model achieved 76.94% F1-score accuracy for unanimity prediction.
- The model’s performance remained stable even when the original data was not uniformly distributed, indicating robustness to class imbalance in outcome prediction.
- The study is the first to forecast Brazilian court decisions using machine learning, establishing a foundation for legal tech applications in Brazil.
- The prototype is designed to be extensible to other languages and legal systems, with potential for integration into legal practice tools.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.