EventsThe 6th International Electronic Conference on Applied Sciences
Published
This submission belongs to the session S3. Computing and Artificial Intelligence of the event The 6th International Electronic Conference on Applied Sciences
Published date
03 Dec, 2025
Academic Editor
author-avatarLucia Billeci
Citation
José Maria Dias Filho, Carlos Mauricio Figueiredo, Automatic Classification of Legal Cases: A Comparative Study of AutoGluon and the Gemini Family, in Proceedings of The 6th International Electronic Conference on Applied Sciences, 9 December–11 December 2025, MDPI: Basel, Switzerland
Share
Email
Facebook
Twitter
LinkedIn

Automatic Classification of Legal Cases: A Comparative Study of AutoGluon and the Gemini Family

1. Embedded Systems Laboratory, State University of Amazonas, Manaus 69050-020, Brazil, Brazil
Abstract

The growing volume of litigation in the Brazilian judiciary imposes significant challenges to procedural speed and efficiency. One critical bottleneck lies in the initial classification of petitions, where the correct assignment of the procedural "Class", as defined by the Unified Procedural Tables (TPU) of the National Council of Justice (CNJ), is essential for the subsequent procedural flow. Errors at this stage lead to rework and delays. This article investigates the potential of Artificial Intelligence to mitigate this issue by presenting a comparative analysis of the performance of two distinct technological approaches: the Automated Machine Learning (AutoML) framework AutoGluon and a suite of Large Language Models (LLMs) from Google’s Gemini and Gemma families. Using a private and robust dataset of 27,000 initial petitions from the Court of Justice of the State of Amazonas (TJ-AM), distributed across nine procedural classes, the models were evaluated in a zero-shot scenario simulating implementation with minimal configuration effort. The results for both technologies demonstrate remarkable feasibility. AutoGluon, leveraging the full dataset, achieved a performance ceiling of 95% accuracy. Impressively, the LLMs, evaluated on a smaller sample without specific training, delivered highly competitive results, with Gemini-2.0-flash reaching 94% and Gemma-3-27b-it achieving 93% accuracy. The study concludes that "out-of-the-box" AI solutions are promising tools for assisting lawyers and judicial staff, with the potential to improve classification accuracy, streamline workflows, and contribute to greater efficiency in the delivery of justice.

Keywords
Artificial intelligence
Natural Language Processing
Text classification
AutoGluon
Gemini
Poster
Poster Automatic Classification of Legal Cases.pdf
Two Stage Extractive Text Summarization
Performance Evaluation of Stop Word Influence in Hausa Extractive Summarization using Enhanced TextRank