Related Experiment Video
Updated: Jul 1, 2025

P300-Based Brain-Computer Interface Speller Performance Estimation with Classifier-Based Latency Estimation
Published on: September 8, 2023
Using Bidirectional Encoder Representations from Transformers (BERT) to predict criminal charges and sentences from
Yi-Ting Peng1, Chin-Laung Lei1
1Department of Electrical Engineering, National Taiwan University, Taipei City, Taiwan.
This study uses Bidirectional Encoder Representations from Transformers (BERT) to predict criminal charges and sentence lengths from Taiwanese court data. The model achieved high accuracy, demonstrating feasibility for legal text analysis.
Area of Science:
- Computational Linguistics
- Legal Informatics
- Artificial Intelligence
Background:
- Understanding legal statutes and predicting criminal behavior outcomes can be challenging for individuals unfamiliar with the law.
- Criminal justice systems generate vast amounts of textual data, such as court judgments, that hold valuable predictive information.
Purpose of the Study:
- To develop and evaluate a machine learning model for predicting criminal charges and sentence lengths using Taiwanese district court judgments.
- To adapt and improve the Bidirectional Encoder Representations from Transformers (BERT) model for analyzing legal texts and overcoming its inherent limitations, such as the 512-token limit.
Main Methods:
- Utilized a dataset of Taiwanese criminal judgments from district courts.
- Applied and fine-tuned the Bidirectional Encoder Representations from Transformers (BERT) model for two primary tasks: criminal charge prediction and sentence length prediction.
- Developed a novel solution to address BERT's 512-token input limitation for processing lengthy legal documents.
Main Results:
- Achieved a high accuracy of 98.95% in predicting criminal charges.
- Demonstrated feasibility of using BERT for analyzing Taiwanese criminal judgments.
- Obtained promising accuracy rates for sentence length prediction: 72.37% for injury trials and 80.93% for public endangerment trials.
Conclusions:
- The BERT model is a viable tool for analyzing legal texts and predicting outcomes in the Taiwanese criminal justice system.
- The proposed modifications effectively handle the limitations of BERT when applied to extensive legal documents.
- This research paves the way for AI-driven legal analytics and decision support systems.
More Related Videos
Related Concept Videos
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
Predicting Products: SN1 vs. SN2
With increased substitution on the alkyl halide,...
Stereotype Content Model
Predicting Products: Substitution vs. Elimination
The following factors can influence the mechanisms competing against each other:
Classification of Signals
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
Predicting Molecular Geometry

