Giter Site home page Giter Site logo

gabriel-machado-gm / paper_brcad5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eliasjacob/paper_brcad5

1.0 0.0 0.0 10.1 MB

"Using deep learning to predict outcomes of legal appeals better than human experts"

License: MIT License

Shell 0.12% Python 5.93% Jupyter Notebook 93.95%

paper_brcad5's Introduction

Using deep learning to predict outcomes of legal appeals better than human experts: A study with data from Brazilian federal courts

Paper Datasets

Description

Legal scholars have been trying to predict the outcomes of trials for a long time. In recent years, researchers have been harnessing advancements in machine learning to predict the behavior of natural and social processes. At the same time, the Brazilian judiciary faces a challenging number of new cases every year, which generates the need to improve the throughput of the justice system. Based on those premises, we trained three deep learning architectures, ULMFiT, BERT, and Big Bird, on 612,961 Federal Small Claims Courts appeals within the Brazilian 5th Regional Federal Court to predict their outcomes. We compare the predictive performance of the models to the predictions of 22 highly skilled experts. All models outperform human experts, with the best one achieving a Matthews Correlation Coefficient of 0.3688 compared to 0.1253 from the human experts. Our results demonstrate that natural language processing and machine learning techniques provide a promising approach for predicting legal outcomes. We also release the Brazilian Courts Appeal Dataset for the 5th Regional Federal Court (BrCAD-5), containing data from 765,602 appeals to promote further developments in this area.

How to run

1 - Clone this project

2 - Download all the parquet and csv files from here and place all files inside data/

3 - Use the same kaggle page described above to download the pretrained language models and place all files and folders inside the folder code/ in this repository. Replace any existing files.

4 - Install the environment

cd paper_brcad5
conda env create --file code/environment.yaml
conda activate paper_brcad5

5 - See files with the name starting with numbers 01 to 07 inside the folder code/ to reproduce our results

Citation

@article{menezes-neto+clementino,
  title={Using deep learning to predict outcomes of legal appeals better than human experts}: A study with data from Brazilian federal courts,
  author=Elias Jacob de {Menezes-Neto} and Marco Bruno Miranda {Clementino},
  journal={Location},
  year={2022},
  
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.