Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective

Pretrial detention challenges the presumption of innocence, requiring courts in countries such as Brazil and Italy to justify the deprivation of liberty based on specific legal factors. However, the volume and complexity of judicial decisions make manual analysis of the underlying reasoning difficult. We propose a factor-guided extraction pipeline combining Large Language Models (LLMs) and Knowledge Graphs (KGs) to extract, structure, and visualize critical legal factors from appeal cases in the Supreme Court. Building on datasets from both countries, we employ LLMs to generate summaries constrained by an expert-defined factor schema. These summaries are mapped into KGs to visualize the relationships between legal factors and judgment outcomes. We evaluated this approach against a raw-text baseline using qualitative expert review and quantitative metrics. Results demonstrate that factor-guided prompting significantly improves extraction quality, achieving higher semantic similarity (LabSE scores ≈ 0.47 vs. 0.28) compared to unguided methods. Structurally, the KGs reveal convergent reasoning complexity across the two legal systems, despite distinct topological signatures. These findings suggest that integrating LLMs with structured legal knowledge enhances the interpretability of judicial reasoning, offering a robust, scalable tool for legal analytics.

Authors

Institutions

Publication Details

Journal
Computer law & security review
Published
2026-03-14
DOI
https://doi.org/10.1016/j.clsr.2026.106280
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective

Isabela Cristina Sabo, Marco Billi, Jomi Fred Hübner, Aires José Rover et al.
Computer law & security review
Artificial Intelligence in Law
article

Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective

Isabela Cristina Sabo, Marco Billi, Jomi Fred Hübner, Aires José Rover, Thiago Raulino Dal Pont, Francesca Lagioia, Giovanni Sartor
article en

Abstract

Pretrial detention challenges the presumption of innocence, requiring courts in countries such as Brazil and Italy to justify the deprivation of liberty based on specific legal factors. However, the volume and complexity of judicial decisions make manual analysis of the underlying reasoning difficult. We propose a factor-guided extraction pipeline combining Large Language Models (LLMs) and Knowledge Graphs (KGs) to extract, structure, and visualize critical legal factors from appeal cases in the Supreme Court. Building on datasets from both countries, we employ LLMs to generate summaries constrained by an expert-defined factor schema. These summaries are mapped into KGs to visualize the relationships between legal factors and judgment outcomes. We evaluated this approach against a raw-text baseline using qualitative expert review and quantitative metrics. Results demonstrate that factor-guided prompting significantly improves extraction quality, achieving higher semantic similarity (LabSE scores ≈ 0.47 vs. 0.28) compared to unguided methods. Structurally, the KGs reveal convergent reasoning complexity across the two legal systems, despite distinct topological signatures. These findings suggest that integrating LLMs with structured legal knowledge enhances the interpretability of judicial reasoning, offering a robust, scalable tool for legal analytics.

Computer law & security reviewVol. 61
Universidade Federal de Santa Catarina (BR), University of Bologna (IT)
Peace, Justice and strong institutions
Openalex Percentile: Top 24%
Artificial Intelligence in Law
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.