AI and content classification: the challenge the Judiciary and the IMFD are working on together
June, 2021.- Imagine the following scenario: in an area near a wetland, sanctuary of some native species, the construction of buildings and roads is planned. With a group of people interested in the environment, you decide to file for an injunction to protect the wetland.
It becomes essential to gather documentation. But, when it comes to searching for information about similar processes, legislation that has been applied, or how similar cases have been ruled on, you find that there is no intelligent search system in Chile that allows you to obtain that information.
This need, which might seem anecdotal, is actually a much bigger problem, and it is one that researchers from the Millennium Institute for Foundational Research on Data (IMFD) are working on together with documentation and database specialists from the Judiciary.
“The Supreme Court’s database has more than 550 thousand digitized rulings from 2005 to the present. That reservoir of information could be of tremendous use for citizens, for lawyers, and for those who study how jurisprudence evolves and is applied in our country, if we had a search engine that provided information efficiently and accurately”, says José Luis Palma, Head of the Documentation Center of the Supreme Court.
As part of the partnership with the Supreme Court, a team of students led by Felipe Bravo, Computer Science professor at Universidad de Chile and IMFD researcher, began to address a key component in the development of a search system: classification. As incredible as it may seem, this first step constitutes, in itself, a major challenge: “The number of people and hours that would be required to manually classify, in a short period of time, the more than 550 thousand court rulings is simply impracticable, in addition to being inefficient”, describes Palma.
From a data science perspective, classification or categorization refers to the automatic distinction between one document and another based on content. A classification model is based on an algorithm that—once duly tested and trained—would allow, for example, distinguishing between a ruling related to environmental law and another related to family law.
But the first major difficulty in automatically classifying rulings is that these are drafted by people, with their own particularities and using a diversity of concepts for the same topic or situation. “That is the heart of the first challenge: how to create an AI model that manages to correctly classify rulings within a series of hierarchies”, explains Pedro Contreras, Head of the IT Support Unit of the Library Department of the Supreme Court.
These hierarchies could be: Category (something like the areas of law: constitutional, procedural, or civil, for example); Subject (the abstract content the ruling deals with, such as concessions, expropriations, environment, or urban planning), and Sub-subject (the specific matter on which the court rules, such as wetlands, burden of proof, or wrongful dismissal), adds José Luis Palma.
A model for evaluating models
That is why, given the diversity of topics and concepts contained in the rulings, the student team determined that a prior step was required: “We saw that the Judiciary did not need a single model or algorithm to classify documents, but rather one that would allow them to create and train different classifiers”, explains Felipe Bravo. This is how they developed a model or tool that integrates traditional machine learning and deep learning, capable of evaluating, among different categorization models, the most suitable one according to the parameters to be classified. Then, using open-source tools, those classifiers can be built.
“The development was very fast: in two and a half months, the team managed to understand what we needed and arrive at a first solution to the classification problem, which we can adapt as needed and continue training intelligently. For us it was a very important lesson to understand that we do not need to, and should not, stick with a single algorithm, that these change over time and different types can help improve these systems”, explains Pedro Contreras.
Once they have different classification systems in place, it will be possible to move forward with the development of a search engine, adds Contreras: “We want to reach a development that is available to all citizens, one that allows combining the search for rulings with the protection of personal and sensitive data”. For Palma, the ultimate goal is for a search engine with these characteristics, capable of connecting rulings with regulations and laws, to be transparent and of service to all of society.
The interaction with the team, they add, was of the highest level, and they highlight the students’ ability to distribute roles, monitor progress toward goals, and achieve results. This, together with the leadership of Felipe Bravo, and with the support of the IMFD Innovation and Technology Transfer Office, whose strategic insights made it possible to arrive at the development of the model.
The students who participated in this stage were:
- Rodrigo Urrea, Computer Science, Universidad de Chile.
- Álex Medina Jorquera, Mathematical and Computational Engineering IMC UC.
- Luis Silva De Vidts, Mathematical and Computational Engineering IMC UC.
- Constanza Molina Catricheo, Industrial Civil Engineering in Mathematics at the Pontificia Universidad Católica de Chile.
- Elena Villalón Sepúlveda, Mathematical and Computational Engineering IMC UC.
- Fernando De Diego Ávila, Civil Engineering in Mathematics UC.
- Juan Rojas Núñez, Engineering, P. Universidad Católica.
- Lucas Suárez Carbonell, Computer Engineering, P. Universidad Católica.
- Miguel Morales M, Electrical Engineering, Universidad de Chile.
