Using Bidirectional Encoder Representations from Transformers (BERT) to predict criminal charges and sentences from Taiwanese court judgments
Authors:
Open Access
- 31 January 2024
- journal article
- research article
- Published by PeerJ in PeerJ Computer Science
- Vol. 10, e1841
Abstract
People unfamiliar with the law may not know what kind of behavior is considered criminal behavior or the lengths of sentences tied to those behaviors. This study used criminal judgments from the district court in Taiwan to predict the type of crime and sentence length that would be determined. This study pioneers using Taiwanese criminal judgments as a dataset and proposes improvements based on Bidirectional Encoder Representations from Transformers (BERT). This study is divided into two parts: criminal charges prediction and sentence prediction. Injury and public endangerment judgments were used as training data to predict sentences. This study also proposes an effective solution to BERT’s 512-token limit. The results show that using the BERT model to train Taiwanese criminal judgments is feasible. Accuracy reached 98.95% in predicting criminal charges and 72.37% in predicting the sentence in injury trials, and 80.93% in predicting the sentence in public endangerment trials.Keywords
This publication has 19 references indexed in Scilit:
- Natural language processing: state of the art, current trends and challengesMultimedia Tools and Applications, 2022
- CyBERT: Cybersecurity Claim Classification by Fine-Tuning the BERT Language ModelJournal of Cybersecurity and Privacy, 2021
- LEGAL-BERT: The Muppets straight out of Law School2020
- How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence2020
- Lay Participation in Taiwan: Observations from Mock TrialsAsian Journal of Law and Society, 2019
- Dialogue Natural Language Inference2019
- Neural Legal Judgment Prediction in English2019
- Deep learning in law: early adaptation and legal word embeddings trained on large corporaArtificial Intelligence and Law, 2018
- Universal Word Segmentation: Implementation and InterpretationTransactions of the Association for Computational Linguistics, 2018
- Japan’s Lay Judge SystemInternational Criminal Justice Review, 2015