Elamur Research

Explainable machine learning multi-label classification of Spanish legal judgements

Paper · 2024 · Francisco de Arriba-Perez, Silvia Garcia-Mendez, Francisco J. Gonzalez-Castano et al.

Summary

A lawyer looking for earlier decisions about a point of law may have to search across cases filed under different subjects. The same judgment can address several legal questions, and the words used to discuss a question can vary from one court document to another. The authors approach this as a problem in legal AI. They turn the text of a completed Spanish judgment into a set of subject labels that could help a practitioner find it. The system also gives a verbal and visual account of the classification so a reader can examine the evidence behind a suggested label.

The study combines text classification with rules for reading familiar features of a court document. Some inputs count individual words and neighboring word pairs. Others capture details such as the court, jurisdiction and kind of case. Where the system recognizes a name, it can replace it with a tag that preserves the person’s role. The authors try two ways of learning the labels. One asks a separate yes-or-no question about each possible label. The other learns to recognize entire sets of labels that recur in the lawyers’ annotations.

Lawyers at E4Legal Analytics annotated the experimental collection of 106,806 judgments. They could assign up to three labels to each judgment, with each label specifying a broad legal order and three law categories. In 10-fold cross-validation, the strongest overall results came from a random forest that selected a whole set at once. The abstract reports micro precision above 85, meaning that most of the individual labels proposed across the test predictions agreed with the lawyers’ annotations. The results section puts accuracy at around 74 under a measure that averages the overlap between the proposed and annotated sets. A random forest making the label decisions separately recovered more of the annotated labels under the reported recall measure.

The paper’s approach to interpretability starts with a trace of the decisions inside a tree. A reader can see the feature a tree examined, the threshold it applied and the legal categories at the end of the path. The verbal explanations draw on features used across tree paths, estimates of how sensitive a prediction is to those features, and information extracted from the judgment. The experiments test agreement with lawyers’ labels. The explanation examples show what a practitioner could inspect, leaving open whether that inspection improves case search or helps practitioners recognize a mistaken assignment.

Deep dive: Explainable machine learning multi-label classification of Spanish legal judgements

How a random forest assigns several legal categories to Spanish court judgments and explains its choices through word counts and decision paths. · about 39 minutes to read

The problem and its context

Finding a judgment by the issues it addresses

The practical task begins after a court has issued a decision. A practitioner working on another case wants to read judgments that might clarify the relevant law or show how a similar dispute has been handled. The authors describe legal databases organized by jurisdiction as a starting point for that work. Within a jurisdiction, a user may still face many decisions and need a way to narrow the search to a particular legal question. Labeling the subjects of a judgment gives the database an additional basis for bringing documents together.

Manual review poses a consistency problem as well as a workload problem. The paper points to variation in judicial writing and to the absence of a uniform structure across documents. It also notes that people identifying relevant judgments may bring different perspectives to the task. A recognizable description of an issue in one judgment may be buried in a different section or expressed in different words in another. Broadly similar documents can therefore take different amounts of effort to review.

For information retrieval, keyword search offers a straightforward way to ask for passages or documents containing a term. The authors describe legal search tools of this kind as liable to return too much or too little. A word connected with banking can occur in a judgment whose main significance lies elsewhere. A ruling about a banking obligation may also use language that the searcher did not anticipate. Assigning legal categories at the document level creates an additional route into the material. Its usefulness depends on which legal distinctions the categories express and how reliably the assignments are made.

The mortgage judgment in the paper shows how this differs from deciding on a dominant subject. One annotation places the judgment in the civil/mercantile order and takes the reader from real rights and security rights to mortgage law. The other places it in the mercantile order, with categories for obligations and contracts, the banking and financial market, and banking law. The judgment addresses the validity and consequences of mortgage clauses. It also sets out how the bank must recalculate installments and repay amounts that were charged in excess. Those aspects can matter to readers approaching the decision with different questions.

Each route through the classification scheme gives the document one complete label. The codes for the broad legal orders are therefore only part of what the system learns to assign. The annotations also contain narrower categories, and a document can carry several of these structured assignments together. The paper calls this a multi-label, multi-class task. There are multiple possible values in the classification scheme, and a document can be associated with several of them.

Allowing several assignments changes what counts as a mistake. Suppose the system assigns the banking label from the mortgage example and misses the label about mortgage rights. A search organized around the latter may still fail to surface the decision. A user coming through the banking category has gained a useful point of entry. Full agreement with the annotators requires both labels. A measure of partial agreement can recognize what was recovered. The paper’s evaluation uses both kinds of measure because they represent different consequences of an assignment.

How earlier classifiers handled multiple answers

The paper organizes earlier machine learning approaches around a choice between transforming the task and adapting the classifier. A transformation packages the answer in a form a conventional binary or multi-class classifier can learn. One approach makes a separate target out of the presence of each label. Another gives every observed combination a class of its own. Adaptation builds support for multiple simultaneous answers into the learning algorithm. The paper discusses neighbors and ranking methods adapted to that problem, as well as neural approaches that use output functions or attention to handle multiple labels.

The authors also distinguish approaches by the relationships they consider among labels. An independent classifier for each label leaves co-occurrence out of the decision rule. A ranking approach can consider pairs of relevant and irrelevant labels when learning their relative order. A classifier chain can use the results of earlier predictions as inputs to later ones, allowing decisions to depend on one another. The paper describes approaches that account for more complex relationships as computationally demanding, especially as the range of labels grows.

Other approaches reviewed in the paper include tree ensembles and representations that encode information about several labels in a vector. The latter can reduce the space in which the learning happens, then recover the labels when making a prediction. These approaches differ in where they put the work of handling co-occurrence. A set-based transformation identifies recurrent groups in the training annotations. A chain uses earlier decisions to inform subsequent ones. An encoding based on label vectors represents the relationships before decoding the output. The authors test the independent and whole-set transformations with conventional tree classifiers.

The balance of the labels matters to this choice. The legal collections discussed in the paper can contain categories that occur at very different rates. An independent classifier can gather its positive examples from any judgment bearing its label, regardless of the label’s companions. A whole-set classifier divides those examples among the different combinations in which that label appears. A common combination may provide enough examples for direct learning, while an unusual combination may have very little evidence of its own. The paper also cites earlier research suggesting that explicit dependency learning can be unnecessary when labels are sufficiently well represented. That is a condition on the available data, instead of a property shared by every legal collection.

The related work helps define the study’s scope. Bambroo and Awasthi classified U.S. judgments by choosing a single class for each document. Chen and colleagues also studied a single-assignment task, comparing a random forest built with domain-concept features against deep learning methods. Csányi and colleagues handled multiple labels by dividing the problem into binary decisions, with over a hundred classifiers. Song and colleagues studied a much larger space of possible labels and used domain-specific pretraining with attention to the labels on their posture50k collection.

The review also covers a tree approach for extreme multi-label classification tested on the legal Eurlex collection and other datasets. In that method, clustering serves to retain relationships among features. The authors distinguish work on legislation from work on judgments. A statute and a court’s account of an individual case are different documents with different classification demands. The present study concerns the categories applicable to decisions and the clues that can be extracted from the way those decisions are written.

What a practitioner needs to see

A suggested legal category can be examined at several levels. The reader can ask what the category means, which parts of the document support it or how the classifier arrived at it. The paper focuses its explanation on the last question and supplements the explanation with facts extracted from the document. The authors draw on earlier work that distinguishes whether an explanation is comprehensible, whether it gives the reader useful information and whether it makes the behavior of the system easier to anticipate or examine. These are separate properties. A readable sentence can still omit a decision that mattered. Explainable Artificial Intelligence (XAI)

The legal studies the authors discuss illustrate the range of activities called explanation. Branting and colleagues explained annotations that people had already supplied. Studies of legislative classification examined attention weights as evidence about a classifier’s behavior. The Spanish judgment study proposes to generate both the label set and an account of its assignment. The intended unit of explanation is a feature such as the count of a particular phrase, a threshold applied to it or an extracted detail about the case.

This objective gives a reason for using trees in a task where other classifiers are available. A tree records the successive tests needed to reach a leaf. An explanation can show those tests as branches and express them in sentences. The approach also changes what evidence is needed to assess the system. Agreement with lawyers’ annotations speaks to the quality of the categories. A trace speaks to how much of the decision process can be inspected. Whether the resulting explanation is informative to a practitioner depends on what the practitioner can do with it.

The method, step by step

Define the assignment before reading the text

The pipeline takes a Spanish judgment and returns the legal labels that describe it under the annotation scheme. The broad divisions listed for its output are civil, civil/mercantile, mercantile, penal, administrative, social and tributary. The authors call this component of a label its substantive order. The three law categories attached to the order supply the finer distinctions. The complete combination travels as a unit through training and prediction. A court extracted from a heading, for instance, is an input feature. The substantive order and law categories together belong to the output.

The system builds the document’s representation from its words and from institutional or procedural information. It then learns from the representation and the lawyers’ assignments. The two transformations differ in the way they present those assignments to the classifier. Once the prediction has been decoded into legal labels, the explanation procedure can show how the classifier used the representation it was given.

How judgments become legal assignments with explanations

The steps in order.

How judgments become legal assignments with explanationsStep 1: Clean text and normalize word forms1. Clean text and normalize word formsStep 2: Read case details from recognizable document sections2. Read case details from recognizable document sectionsStep 3: Replace detected names with role markers3. Replace detected names with role markersStep 4: Count words and select predictive features4. Count words and select predictive featuresStep 5: Fit trees to transformed legal annotations5. Fit trees to transformed legal annotationsStep 6: Recover the legal labels from predictions6. Recover the legal labels from predictionsStep 7: Present branch tests and local feature relevance7. Present branch tests and local feature relevance

Normalize the words and read the document structure

The text preparation removes page breaks, tabs, web addresses, punctuation and superfluous spacing. It also removes stop words using NLTK. These are words singled out by the preprocessing vocabulary for exclusion. The text undergoes tokenization, which identifies the individual word units, and lemmatization, which maps inflected forms to a base form. This lets occurrences of different inflections contribute to the same textual feature. The implementation uses spaCy and its Spanish es_core_news_md component for lemmatization.

The information extraction rules take advantage of conventions in Spanish judgments. A heading usually gives the resolution, identifying information and the parties. The factual account sets out the circumstances and their history. The legal grounds connect the matter with law and precedent. The disposition contains the decision. The paper describes variation among documents while relying on these recurring conventions to decide where to search. A term from the disposition can be interpreted as a decision value when the same word in the background narrative would simply contribute to the document’s text.

Several fields are identified using vocabularies reviewed by legal experts. For the case type, the rules look for names and official abbreviations from a public lexicon in conjunction with a pattern for digits. The paper writes the regular expression as follows.

\d+\d{1,4}

Here \d matches a digit, + requires one or more occurrences of the preceding digit pattern and {1,4} requires between 1 and 4 repetitions of the second digit pattern. The two patterns sit next to each other, so a match contains consecutive digits. When the case-type search returns multiple matches, the procedure retains the first. The court field is found with a separate regular expression and a court vocabulary drawn from the Spanish court administration’s general access point.

The decision is extracted from the disposition by checking keywords against a vocabulary of decision terms. With a single match, the term itself gives the value. When several such terms are present, the procedure records a multiple decision. Decision type is a different field. The paper treats the decisions in judgments as substantive and those in orders and decrees as procedural. To identify the kind of resolution, the rules look near the end of the heading, before the factual account, for sentencia, orden or decreto. Resolution type thereby describes the document. The decision field describes what the court did in it.

The instance field is derived from the recognized case type. The authors’ rules use recurso for their first-instance classification, apelación or suplicación for the second and casación or unificación for the third. The rules put cases outside these matches into a higher-instance category. These are the categories produced by the extractor. The classification pipeline subsequently uses the resulting value as an input.

Jurisdiction can be read in several ways. The authors first look to the judicial division beside the information identifying the court, which often names the kind of court directly. They can also read digit 8 of the General Identification Number, or use the case-type vocabulary. The paper gives this ordering based on the authors’ experience of which source works best. The identifier is assigned at the start of a procedure and retained if the court changes. Its other parts encode the province at digits 1-5, the court at digits 6-7, the year at digits 9-12 and the identifier for the decision at digits 13-19.

The extracted jurisdiction has civil, contentious-administrative, penal and social values. Its function in the pipeline differs from that of the substantive order. The jurisdiction is evidence available from the proceedings and the document. The output order is part of a legal annotation that also names narrower areas of law. Overlap in their terminology is one reason the extracted field may help the classifier. Reading the jurisdiction still leaves the system to decide which complete labels apply.

Retain roles when removing names

The anonymization module begins from cues that a person or organization has been mentioned. These include personal titles, indirect references and indicators of corporate legal form. The role markers available to the system include @Attorney, @Corporate, @Judge, @Lawyer and @Person. The module uses Spanish national statistics data to help recognize given names and surnames near these markers. Where it identifies a name, replacement lets the resulting representation retain a role while omitting the particular name detected there.

An index supplied by E4Legal Analytics through Solr helps verify and correct the recognized people and companies and their assigned roles. The paper excludes the generic @Person marker from this index-based verification. It also describes approximate string comparison. The code uses Jaro distance through the Python library jellyfish to detect similar occurrences of names and unify them. This addresses cases where mentions do not have identical spellings or forms.

The representation resulting from this procedure can preserve features about which kinds of people are mentioned. That is relevant to the authors’ concern about the system learning from proper names. A name replaced with @Judge, for example, can contribute information about a judicial role without supplying that name as a word feature. The paper reports the scale of these replacements separately from the classification performance.

Build a vocabulary that the trees can test

A word feature for a judgment is a count. It can represent a single normalized word or consecutive words, such as the phrase for social security. An n-gram is a sequence of that kind, with its length given by n. The counts preserve the difference between a phrase and the separate words in it. A tree can therefore learn to split on how frequently a particular pair appears, even when the individual words have other uses.

The authors use CountVectorizer from scikit-learn for the counting and GridSearchCV to compare vocabulary settings. The upper document-frequency setting controls how common a term can be before it is removed. The lower setting removes terms present in too few documents. Document frequency concerns the number or share of documents that contain a term. The value later passed to a tree is the number of occurrences within the particular document being classified. A term may survive the vocabulary filter and still have a count of zero for an individual judgment.

For the upper limit, the search tried 0.9, 0.7 and 0.5. For the lower limit it tried 0.1, 0.01 and 0.001. The length ranges were (1,1), (1,2) and (1,3), spanning representations from individual words through ones that also included longer sequences. The settings selected for the Spanish collection were 0.5 for the upper limit, 0.01 for the lower limit and (1,2) for length. Terms above the upper limit or below the lower one were excluded. The authors used a portion of the collection for this search, with the stated aim of limiting bias in the later evaluation.

The extracted legal fields give the classifier another type of input. A phrase count can vary across a document’s whole text. A categorical value stands for a detected item such as the court or the type of case. The authors first evaluate the relationship between categorical features and the target with Spearman’s rank correlation. The method looks for agreement between rankings. If positions in one ranking tend to go up as positions in the other go up, the association is positive. If they tend to move in opposite directions, it is negative. The relationship can be monotonic even when the size of the change differs across the scale. The paper describes a 10-step discretization, with the feature rankings arranged in inverse order of magnitude.

rₛ = cov(R(X), R(Y)) / (σ[R(X)] · σ[R(Y)])

The coefficient rₛ measures the association. X and Y are the quantities under comparison, and R turns their values into ranks. R(X) and R(Y) are therefore the ranked quantities. cov measures how those ranks vary together. Each σ denotes the standard deviation of the ranks named in its brackets. The centered dot multiplies the standard deviations, and the slash divides the covariance by their product. The possible values run from -1 to +1, the endpoints for perfect association in opposite or matching rank directions.

The architecture allows a configurable cutoff on the coefficient, and it further screens features using importance weights obtained from training. For this second operation the authors use scikit-learn’s SelectFromModel, with a random forest of 20 estimators as the source of the importance weights. The estimators are the individual trees. Of the 9581 word and word-pair features considered at this stage, 1928 entered the final representation. The reported categorical inputs were court, jurisdiction, decision, and the types of case, instance and resolution. Decision type also appears in the extraction and explanation stages. It is absent from the reported final list of classifier inputs.

In the binary transformation strategy, the collection of distinct legal labels becomes the columns of a training matrix. A row stands for a judgment. A column stands for an entire substantive order and law-category combination. For a particular column, the training examples carrying that label are positive and all the other judgments are negative. Thus the judgment about mortgage clauses is a positive example for each of its annotated labels in the corresponding column.

βᵢⱼ = 0 if λⱼ ∉ Lᵢ
       1 if λⱼ ∈ Lᵢ

Here i identifies the judgment and j identifies the label column. βᵢⱼ denotes the binary target value at that position. λⱼ is the legal label represented in column j, and Lᵢ is the full set of labels supplied by the annotators for judgment i. Membership is shown by ∈, and absence by ∉. The recorded value is 1 for presence and 0 for absence.

The collection of columns is formed from the union of the annotated labels. Each label appears once in that vocabulary, even if it occurs in many judgments or in several kinds of sets. Fitting a separate classifier to each column allows every occurrence of a particular label to contribute to the same positive training target. A mortgage-law example contributes to that column whether it also carries the banking label, carries a different additional label or has mortgage law as its sole assignment.

At prediction time, the positive decisions turn into the set returned for the document. The procedure can in principle join labels in a combination absent from training, because the classifiers decide separately. The same independence allows combinations that would be unusual in the annotation scheme. In particular, the binary target definition does not give the classifiers a shared constraint on how many positives they can return. The experimental annotations cap the assignment at three labels, and the paper does not specify a separate rule for enforcing the same cap on the joint binary output.

Train on recurring sets of labels

The multi-class transformation strategy gives each distinct label set a code. It first arranges the labels into a canonical order. The authors can use alphabetical order because the underlying labels are represented as strings. Thus judgments with the same label set receive the same code even when the source annotations list the labels in different orders. The sort is a step in identifying the set. It carries no information about the relative legal importance of its members.

αᵢ = j if fᵣ(Lᵢ) = L′ⱼ, with αᵢ ∈ [1,p]

αᵢ is the integer target used in training for judgment i. The annotated labels for that judgment are Lᵢ, and fᵣ is the operation that puts them into the canonical order. L′ⱼ represents the distinct reordered set identified by code j. The equality within the condition asks whether the reordered annotation is that set. The symbol ∈ says that the code is in the inclusive interval [1,p], where p is the number of distinct transformed classes.

In the mortgage example, the complete annotation receives a code for the joint civil/mercantile and mercantile assignment. A judgment with only the banking label would use a different code if that annotation occurred in training. This makes a recurrent pairing learnable as a single target, but it also means that evidence from documents containing one member of the pairing can be spread across several targets. How much each target can learn depends on how often its whole set occurs.

At prediction time a classifier chooses among the learned codes. The system looks up the code to recover its individual legal labels, so the prediction is again a set. The evaluation can compare it directly with the set obtained from binary transformation. In the experiment, the collection’s 47 transformed classes are whole sets. This figure describes the range of complete annotations in the collection. An unobserved combination has no corresponding learned class even if all its individual labels are familiar.

Fit the trees and build the explanation

The authors try a Decision Tree, an individual Extra Tree, an Extra Trees ensemble and a Random Forest with each transformation. A tree learns tests on the inputs. A split can ask, for instance, how the count for a phrase compares with a learned threshold. The answer determines which branch the document follows. A sequence of such tests ends at a leaf, where the tree supplies its prediction. An ensemble fits multiple trees and takes their outputs into account. The paper describes the forest’s decision in terms of the majority of the trees’ labels.

For an explanation, the system can trace the actual route from the root to the leaf in each tree for the judgment at hand. From those routes it collects the word and phrase features that participated in decisions and ranks them by how often they appear in the collected paths. This is a count of how frequently a feature is tested across the paths. At a particular split, the tree tests a different quantity, the value of that feature in the judgment. A word may be important to the route because its count is low or because it never occurs.

The authors add Local Interpretable Model-Agnostic Explanations, or LIME, to estimate feature relevance for the individual prediction. LIME perturbs the input and uses the resulting changes in the classifier’s responses to identify useful features around that input. The paper takes LIME results for the first seven entries in the dictionary ordered by path frequency. This combines two kinds of information. A path identifies tests made by a fitted tree. Perturbation estimates how changes around the current input affect the prediction. Explaining the Predictions of Any Classifier

A visualization made with dtreeviz can expose branches, thresholds and the legal labels at the leaves. Templates turn the explanation material into a description that can include the extracted metadata. For example, a template can report the court and decision type to situate the judgment. Their presence in the description does not by itself show that a particular split used those fields. The distinction matters especially for decision type, which is listed among the details supplied to the explanation.

The paper obtains the confidence shown in the templates with predict_proba, using the mean of the tree-level predicted probabilities. Under whole-set transformation, the class whose probability is being described is the code for a complete bundle of labels. Reading that code back into legal terms makes the category names visible, while the estimate itself comes from the fitted ensemble.

Compare a predicted set with an annotated set

Exact match is the strictest document-level measure in the evaluation. It awards credit only when the prediction contains every annotated label and no additional ones. The formula averages that outcome across the judgments being tested.

Exact match ratio = (1/n) · Σᵢ₌₁ⁿ I(Lᵢ = Zᵢ)

n is the number of test judgments and i is the index of a particular judgment. Σᵢ₌₁ⁿ denotes the sum from the first test judgment through the last. Lᵢ is the annotated set and Zᵢ is the predicted set. The equality compares the two sets. The indicator I takes the value 1 when they are equal and 0 otherwise. The factor 1/n divides by the number of judgments, and the dot denotes multiplication.

The paper also uses example-based accuracy. Here each document receives credit for the part of its annotation that the prediction recovers. An extra prediction increases the total set against which agreement is measured, just as a missed label does.

Accuracy = (1/n) · Σᵢ₌₁ⁿ (|Lᵢ ∩ Zᵢ| / |Lᵢ ∪ Zᵢ|)

n counts test judgments and Σᵢ₌₁ⁿ adds the scores for those judgments, indexed by i. The reference labels for judgment i are Lᵢ, and the proposed labels are Zᵢ. The intersection ∩ retains the labels present in both sets, while the union ∪ includes those present in either. The vertical bars count the elements inside. The division within parentheses gives the overlap score for that judgment. Multiplication by 1/n, denoted by the dot, averages over the test judgments.

The equations for precision and recall use the same set of correct labels in their numerators but divide by different totals. The paper’s prose transposes those totals. The equations define precision relative to the prediction and recall relative to the annotation.

Precision = (1/n) · Σᵢ₌₁ⁿ (|Lᵢ ∩ Zᵢ| / |Zᵢ|)

n denotes the number of test judgments and i indexes them in the sum Σᵢ₌₁ⁿ. Lᵢ is what the annotators assigned and Zᵢ is what the classifier proposed. The symbol ∩ gives the labels shared by the sets. Vertical bars indicate the size of the enclosed set, so the denominator inside the sum counts the predictions. The quotient answers how much of the proposed set the reference supports. The dot marks multiplication by 1/n to average the judgment scores.

Recall = (1/n) · Σᵢ₌₁ⁿ (|Lᵢ ∩ Zᵢ| / |Lᵢ|)

n is the test-set size and Σᵢ₌₁ⁿ sums over the judgments indexed by i. Lᵢ and Zᵢ again denote the annotated and predicted sets. The intersection ∩ obtains the labels they share, and vertical bars give a set’s size. The denominator for each judgment counts its annotated labels. The resulting fraction measures how much of the reference set was recovered. The centered dot multiplies the sum by the averaging factor 1/n.

Hamming loss counts disagreements individually. It treats a label that appears only in the prediction as an error, and also counts a reference label missing from the prediction. Its denominator is the number of opportunities for such disagreements across judgments and labels.

Hamming loss = (1/(|C| · n)) · Σᵢ₌₁ⁿ Σλ∈C [I(λ ∈ Zᵢ ∧ λ ∉ Lᵢ) + I(λ ∉ Zᵢ ∧ λ ∈ Lᵢ)]

C is the legal-label vocabulary and |C| counts its elements. n counts the test judgments. The dot in |C| · n multiplies those counts, and the outer dot multiplies the reciprocal by the summed errors. The outer sum, Σᵢ₌₁ⁿ, goes through the judgments indexed by i. The inner sum, Σλ∈C, checks every label λ in C. Zᵢ is the prediction and Lᵢ the annotation. The symbols ∈ and ∉ express presence and absence, and ∧ means that both conditions must hold. Each I contributes 1 when its condition holds and 0 otherwise. The plus sign combines the indicators for incorrect additions and missed labels. A lower loss means that fewer judgment-label decisions disagreed with the annotation.

The paper also describes micro and macro averaging for precision, recall and F-measure. F-measure combines precision and recall into one evaluation quantity. For micro averaging, the contributions from different labels are pooled before the measure is calculated. A label with many occurrences can therefore affect the pooled result more than a label with few occurrences. With macro averaging, the measure is calculated per label and the results are then given equal weight. The document averages in the equations give each judgment equal weight. These choices are consequential when a collection has uneven label frequencies and different numbers of labels per document.

Experiments and results

The collection and the training comparison

E4Legal Analytics lawyers annotated 106,806 judgments. The average label cardinality was 1.39. Cardinality counts the complete labels on a judgment, rather than the number of components inside each label. The authors characterize this average as high in relation to earlier work. They also present distributions for the sizes of the annotated sets, for substantive orders and for the frequency of the 47 whole-set classes. The frequency distribution matters to the experiment because two classes can each have a distinct code while supplying very different amounts of training evidence.

Before classification, the anonymization module identified sensitive data in all 106,806 documents. The authors report replacements for 188,710 instances of lawyers, 128,260 instances of solicitors, 266,839 instances of judges and 22,365 instances of names of other people involved in cases. These totals describe occurrences in the text, so a recurring name can contribute several replacements. They show how extensively the role and name rules were applied to the collection. The paper gives classification scores against the lawyers’ labels and reports the replacement totals as results of a separate stage.

The authors chose the tree classifiers for their promise on related classification tasks and for their explanatory capabilities. All four families were evaluated under both transformations, so the comparison can address a change in the target representation within the same family or a change in classifier under the same representation. With a single tree, the feature tests leading to the leaf are all on the same path. With an ensemble, the output is supported by decisions from multiple trees. An ensemble gives the explanation procedure more paths from which to collect features.

The class vocabulary and the text vocabulary give rise to different training decisions. They define the possible answers and available inputs, respectively. Hyper-parameter tuning controls how a classifier learns its decision rules from those inputs and targets. The authors used GridSearchCV and describe using a portion of the data for this search. They optimized the settings separately for the binary and multi-class strategies.

For instance, the search tried leaving class weights unset or using balanced weighting. It tested maximum depths of 100 and 500 as well as leaving the limit unset. It varied the amount of training evidence needed to split an internal node and the minimum number of examples that could remain in a leaf. The split quality criteria were Gini impurity and entropy. For individual trees the search included a choice of splitting strategy. For ensembles the candidate tree counts were 50, 100 and 200. These settings govern the final classification experiments. The feature selector used its own forest of 20 estimators.

The reported comparison used 10-fold cross-validation for every classifier and transformation. This procedure changes which part of the collection is held out for testing so that predictions can be evaluated on judgments outside the respective training folds. The experiment asks how well the fitted classifiers reproduce the labels on held-out judgments from this collection. The separate vocabulary and hyper-parameter searches provided the settings for the performance evaluation.

Whole-set prediction led overall, with a recall trade-off

The random forest with multi-class transformation came out strongest overall. The authors describe its example-based accuracy as around 74. Under the formula they use, each test judgment contributes its set overlap divided by the size of the union. The result is therefore an average degree of agreement. The rate of complete agreements is measured by exact match.

The abstract places micro precision above 85, and the conclusion states 85 for micro precision. These are the levels of precision used in the paper’s headline accounts of the result. The pooled measure tracks the share of individual proposed labels supported by the annotation. In its evaluation of the classifier, the paper also reports that exact match and precision improved by as much as 10 for the multi-class transformation. That statement refers to measures presented on a percentage scale. It reports the size of the largest improvements, with performance depending on the classifier and metric.

The binary random forest gave the higher recall. This is important for the intended search setting because recovering labels can determine how many relevant decisions appear under a particular topic. Precision and recall track different effects on such a search. A system may offer fewer unsupported assignments and nonetheless miss some useful ones. The authors’ best overall configuration trades some reported recall for stronger performance across the rest of the comparison.

The discussion suggests that binary classifiers had difficulty distinguishing some classes with shared word or phrase values. That observation makes sense in light of the targets. Categories can share much of the vocabulary of a legal dispute, even when the annotation separates aspects of that dispute. Whole-set prediction gives the classifier a way to select a recurring joint assignment supported by the available evidence. The results establish the ranking on the test procedure. They give less detail about which word features or co-occurrences explain particular gains.

The binary approach also needed more training time, which the authors attribute to fitting separate classifiers for many legal labels. They single out the binary random forest and binary Extra Trees ensemble. The timing comparison below uses the exact training durations given for those two systems. Its metric is computational cost, so the faster training configuration here differs from the configuration that leads on overall classification quality.

Training time for binary ensembles on the Spanish judgment collection

The Extra Trees ensemble took less time to train than the random forest with the same target transformation.

Training time for binary ensembles on the Spanish judgment collectionBinary Random Forest: 1911.29Binary Random Forest1911.29Binary Extra Trees ensemble (this paper): 1546.67Binary Extra Trees ensemble (this paper)1546.67
The numbers
System or settingseconds
Binary Random Forest1911.29
Binary Extra Trees ensemble (this paper)1546.67

These times were measured on the experimental machine described by the authors, which used Ubuntu and an IntelCore i9-10900K processor. The result illustrates the cost of the binary approach in this implementation. Together with the recall comparison, it shows why there are multiple dimensions to the choice of transformation. The forest with whole-set targets led on the main classification comparison and the authors report a training advantage for the strategy. The binary forest remained the stronger option on the reported recall measure.

Follow the evidence to a leaf

The paper’s partial tree visualization lets a reader relate a legal label to a series of specific word-count tests. In one example, the count of actividad laboral, meaning work activity, is below 0.5. The counts for seguridad social, meaning social security, and económico administrativo, an economic-administrative phrase, are above 0.5. The output illustrated on that route includes a tributary label covering financial and tax law, tax law and corporate law. It also includes a mercantile label taking in contractual obligations, contract law and consumer law.

Another route in the illustration involves actividad laboral above 0.5 and art CP above 1.0. The latter is shorthand for a reference to a penal code article. The tree’s illustrated assignment is in the penal order and includes road traffic law, tort law and crimes against collective security. The example shows how word or phrase counts can lead to a specific structured category. It also shows that the resulting output can vary in size because the leaves can correspond to whole sets of different sizes.

Each threshold is learned during training and is fixed when the tree is applied to a test judgment. Different nodes may use different cutoffs or features. A path lets the reader recover which tests actually apply to that judgment and in which sequence. The paper’s generic description of the branch inequalities is ambiguous, since the stated left and right rules overlap. The worked examples give explicit conditions for the routes they describe.

The visualization represents part of one tree in the forest. It gives a direct account of the displayed route and leaf. The forest’s complete decision involves other trees, whose paths can use different features. The language explanation condenses information from those paths and adds the extracted context and confidence. The demonstration shows how a category can be linked to an interpretable account at the level of the classifier. Its empirical counterpart in the results is an evaluation of the predicted labels.

Comparisons with earlier judgment classifiers

The paper compares its results with scores reported on other judgment tasks. This gives a sense of which figures the authors regarded as competitive, with the collections, annotation schemes and averaging procedures still attached to each result. For Qiu and colleagues’ convolutional classifier, the paper reports 98.07 macro precision, 99.61 macro recall and 98.84 macro F-measure. That experiment used 143 legal documents and took roughly 3 hours to train according to the comparison. Both the scale of the collection and the equal weight given to classes in the quoted metrics matter when interpreting those figures beside the Spanish study’s micro precision.

For Csányi and colleagues’ binary-transformation system, the reported results are 31 on exact match, 57 on accuracy and 80 on F-measure. The authors include these figures because the earlier study also turned multiple assignments into a collection of binary tasks. The target representation offers one basis for discussing the systems together, while the figures remain results on their own evaluation setups.

For Song and colleagues, the paper gives 87.80 micro precision and 80.30 for both micro recall and micro F-measure. The corresponding reported macro scores are 31.40 precision, 28.70 recall and 28.40 F-measure. Training took approximately 3 hours in the authors’ comparison. The difference between pooled and equal-weight scores illustrates how the choice of averaging exposes different aspects of performance. The Spanish authors characterize their results as competitive and emphasize that the outside classifiers discussed in this comparison did not have to produce the same kind of automatic explanations. The internal comparison provides the evidence about which tested approach works best on the annotated Spanish judgments.

What the ablations show

Changing the unit of prediction

The paper reports no component-removal ablation and instead compares target transformations and tree learners, screens features, and demonstrates the explanation procedure. The closest comparison to isolating a design choice uses the same family of classifier, a random forest, for both ways of encoding the labels. The whole-set version led overall, while the independent version led on recall. The result shows what happened when the alternatives were each trained and tuned for the same annotation task. Separate tuning means that the difference reflects the configured alternatives as a whole.

The two transformations also differ in what constitutes evidence for a training target. Under the binary transformation, any judgment annotated for banking law under the specified order and categories can support the same binary decision. The other labels on that judgment do not change its status for that classifier. Under the multi-class transformation, each different collection of companions supplies evidence for a different class. When the same joint annotation recurs, the code supplies a common target for all of its instances. The design thereby captures observed co-occurrence without requiring a chain of separate label decisions.

This offers possible explanations for the observed tradeoff. Repeated joint annotations can make whole-set prediction a good fit for this collection. With an unusual combination, class-specific evidence may still be strong for one member of the set, allowing an independent classifier to recover that part. Exact match and recall can then favor different decisions. These consequences follow from the encodings. The paper does not break the errors down by the frequency of the combination or by which labels were recovered, so it leaves the contribution of each mechanism unresolved.

The training comparison has a more direct architectural explanation. Each learner in the binary strategy is trained separately for its assigned label. Adding binary targets adds fitting work. The multi-class strategy learns to choose among codes with one classifier, even though those codes represent collections of legal labels. That difference in the number of fits is why the authors attribute the longer binary training times to the transformation. It does not tell us how the costs would compare if the number of whole-set classes grew substantially.

What the feature analysis establishes

The vocabulary search determines which setting the tuning procedure selected for representation. It considered more permissive and more restrictive document-frequency cutoffs and ranges that admitted longer word sequences. The chosen word and word-pair representation and the subsequent feature selection together define the inputs to the final comparison. These choices do not measure what would happen on the final folds if a learner received the full vocabulary, only individual words or only the extracted categorical fields.

The Spearman analysis examines how categorical features are associated with the target under the authors’ ranking procedure. This supplies evidence that features derived from document structure can carry information about the annotations. Association alone leaves the marginal contribution of a feature unclear. For instance, the court and jurisdiction can contain overlapping information, and the wording of the judgment may provide some of that information too. A classifier can therefore use a field successfully while another feature would have supported much the same decision in its absence.

The importance-based selector likewise answers a specific question. It identifies features to retain using a fitted forest’s importance weights. Its output shows what the authors gave the final classifiers. Since there is no matched comparison before and after selection, the paper leaves the effect of that reduction on generalization or training time unmeasured. The same applies to the effect of anonymization on classification. The module’s replacements are reported, while its contribution to prediction quality is left outside the internal comparison.

What the explanation analysis establishes

The partial tree gives an example of a local trace. An investigator can follow its phrase tests and see where its illustrated assignments come from. Such a trace can be checked against the document’s representation. It can be informative even if one of the tests concerns the absence of a phrase. The template can express those details in ordinary language and add metadata that gives the reader context about the judgment.

The paper combines path tracing and LIME with the additional extracted details in the same explanation. It offers no controlled comparison of how well a reader can understand the explanation with each source of information. The distinction is important when judging the demonstration. The path gives the route taken by a tree. LIME gives a local estimate of sensitivity around the input. The metadata helps identify and situate the document. These contributions are identifiable from the procedure, while the experiment provides no measure of how much each helps the intended reader.

The visualization also illustrates a difference in scale between showing one tree and explaining a forest. Showing a single route makes the exact feature tests visible. The explanation of the ensemble must condense decisions from many routes, and the paper’s procedure limits itself to a short selection of features. The example establishes that such evidence can be extracted and presented. It leaves open how completely the resulting description accounts for agreement and disagreement among the trees on a given judgment.

Limitations

Scope and next steps identified by the authors

The authors present a study centered on Spanish judgments and on the range of labels represented in their collection. They propose extending the work to extreme multi-label classification covering the Spanish legal system more fully. That extension changes a central property of the training problem. With a broader taxonomy, there may be many more possible whole-set codes and less evidence for a given code. The study addresses that wider setting as future work.

The authors also plan to study dependencies among law categories. Recognizing a familiar set through a class code makes use of joint occurrences in the annotations. It gives limited information about how a relationship between labels might carry over to a different combination. Examining those dependencies directly could clarify which parts of the joint assignment generalize across judgments or areas of law. The present techniques provide a comparison between separate decisions and learning recurrent sets.

A further direction named in the conclusion is training with transformers and attention for the specialized language of the legal domain. The experiments in the paper use engineered features and tree learners. Their results establish the performance of that combination on the Spanish annotation task. The authors leave the relative merits of a different language representation and its explanatory properties for future investigation.

The discussion of earlier work acknowledges differences in dataset scale, the type of documents, the number of assignments and the demands of explanation. A system that classifies legislation or picks one subject for a judgment answers a different question. Even among judgment classifiers that return sets, a result from a small collection or an extreme label space has different conditions from the Spanish experiment. The paper’s cross-study training times and scores describe those separate setups.

What the design leaves uncertain

The cross-validation folds come from judgments annotated by lawyers at a single organization. The experiment consequently measures how well the classifiers reproduce assignments under that collection’s conventions. A test on judgments from an independent annotation effort, or on documents reflecting a different period or set of writing practices, could ask how well those assignments transfer. The paper provides no such test. It also gives no agreement measure for the human annotators, so the results cannot distinguish systematically between classifier errors and judgment calls on which lawyers might differ.

The rules for recognizing case fields depend on the form of Spanish legal documents and on the available vocabularies and index. They use several possible sources for jurisdiction precisely because the relevant information can be expressed in different ways. The paper does not give an independent evaluation of field extraction accuracy. A value can be predictive of the label while still being wrong for some individual judgments. A separately annotated test for the fields would answer how reliably the system describes a case before that information reaches either classification or explanation.

Details of the training split are also important to the interpretation. The authors describe using portions of the data for tuning the text representation and the classifiers, with the aim of avoiding bias. They give the number of cross-validation folds. They leave the relationship between the tuning subsets, the feature-selection fits and the eventual test folds insufficiently specified to reconstruct the full separation of training and evaluation. That is a limit on verification of the protocol. The available description does not establish that any information passed between folds inappropriately.

A reporting difficulty also affects the categorical feature analysis. The paper describes Spearman coefficients as lying between -1 and +1, but states a cutoff of 5 in discussing the reported correlations. Those statements require a scale conversion or clarification that the paper does not give. The final input list is stated separately, so the features used in the classification experiment can still be identified. The discrepancy limits interpretation of the numerical criterion used to describe the association analysis.

Some output behavior is determined by the representation. A whole-set classifier needs a learned class for the set it is to predict. A new pairing of familiar labels can therefore be outside its available answers. The independent approach can construct that pairing, but its positive answers are made independently and can form a set that is unusual under the annotation scheme. The label-count cap in the task description makes the unspecified handling of excess positive decisions relevant to interpreting this approach. A wider or less balanced taxonomy could alter both the quality and training-cost comparisons.

The aggregate metrics also leave questions about particular uses. Pooled precision can be high while some rare labels are difficult to assign. Macro scores give rare categories equal weight, but any average can hide which categories account for the errors. For a practitioner researching a narrow issue, the direct concern is the availability and quality of the results under that issue’s label. The paper’s overall scores establish performance across a collection of decisions. They do not supply that category-by-category account of retrieval quality.

What the privacy and explanation results establish

The authors describe anonymization as a means of preserving confidentiality and preventing the classifier from relying on names. Their conclusion makes stronger claims about confidentiality and bias than the replacement totals establish. The counts lack an independently measured denominator of sensitive mentions, so they cannot show how many identifiers escaped detection. The effect on classification bias also remains unmeasured. A judgment can retain institutional or personal cues after the detected names have been replaced, and the paper does not compare assignments across groups before and after anonymization. These are distinct questions in bias, fairness and safety.

The explanation examples are evidence that the system can retrieve tree paths and turn selected information into text. A path can accurately describe the classifier’s use of a phrase count even when the corresponding legal category is mistaken. Likewise, the substantive grounds on which a court resolved a dispute are a different object of study from the feature tests through which software filed the written decision. The experimental target represents the lawyers’ categorization of the document, and the explanation inherits the scope of that task.

The use of a confidence value adds a further question. The forest gives a mean predicted probability over its trees, and the template can present that estimate to the reader. The experiments provide no calibration analysis showing whether assignments at a given confidence level are correct at the corresponding observed rate. A score can help describe the forest’s preference among available classes while its meaning as a forecast of correctness remains uncertain.

The paper motivates the system in terms of legal practitioners’ work. It leaves open whether those practitioners find more relevant cases, spend less time reviewing assignments or more readily notice suspect labels when an explanation is available. Those outcomes would require observing how people use the predictions and explanations. The reported experiment evaluates agreement with expert annotations, while the examples show what the system could put in front of those readers.

What came after

From document subjects to rhetorical roles

The 2025 study MARRO cites the paper and applies multi-headed attention to rhetorical role labeling in legal documents. Its target concerns the function that text performs within a legal document. The Spanish judgment study uses such functions as clues to where evidence might be found. It looks to the disposition for decision terms and to the heading for details such as the type of resolution. Rhetorical role labeling makes the functions of the text themselves the objects of classification.

This is a connection through the structure of the documents. Both tasks distinguish among portions of legal writing that serve different purposes. In the Spanish classifier, structure supports a document-level assignment, and in MARRO the assignment concerns rhetorical organization. The citation establishes that MARRO refers to the earlier work. It leaves the use of the Spanish label scheme, extraction rules or explanation procedure unspecified. MARRO

From tracing a classification to checking reasoning steps

LegalReasoner, also from 2025, cites the Spanish study and addresses legal judgment reasoning through stepwise verification and correction. The relation is clearest in what each task makes available for inspection. The Spanish study follows learned feature tests to explain why a completed judgment received certain subject labels. In LegalReasoner, the steps to be verified and corrected belong to the judgment reasoning task itself.

A classification trace helps a reader see how text features led to a proposed legal category. Verification and correction concern whether intermediate reasoning steps should stand or be revised. Both topics give a reader a reason to attend to intermediate steps, with a different role for those steps in each system. The citing relationship establishes the connection between the papers and leaves technical reuse of the earlier classifier, data and metrics unspecified. LegalReasoner

Cite

Cite as Francisco de Arriba-Perez, Silvia Garcia-Mendez, Francisco J. Gonzalez-Castano and Jaime Gonzalez-Gonzalez. 2024. Explainable machine learning multi-label classification of Spanish legal judgements. arXiv:2405.17610.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1016/j.jksuci.2022.10.015 · arXiv 2405.17610

@misc{arribaperez2024explainable,
  title = {{Explainable machine learning multi-label classification of Spanish legal judgements}},
  author = {Francisco {de Arriba-Perez}, Silvia Garcia-Mendez, Francisco J. Gonzalez-Castano and Jaime Gonzalez-Gonzalez},
  year = {2024},
  doi = {10.1016/j.jksuci.2022.10.015},
  eprint = {2405.17610},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.jksuci.2022.10.015}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/arriba-2024-perez-explainable-machine-learning-multi-label/

References

55 references, from the paper's own bibliography.

  1. authorAljedani, N., authorAlotaibi, R., & authorTaileb, M. (year2021). titleHMATC: Hierarchical multi-label Arabic text classification model using machine learning. journalEgyptian Informatics Journal, volume22, pages225–237. . OpenAlex ↗ · Scholar ↗
  2. authorAtkinson, K., authorBench-Capon, T., & authorBollegala, D. (year2020). titleExplanation in AI and law: Past, present and future. journalArtificial Intelligence, volume289, pages103387. . OpenAlex ↗ · Scholar ↗
  3. authorBaby, D., authorDevaraj, S. J., authorHemanth, J., & authorMM, A. R. (year2021). titleLeukocyte classification based on feature selection using extra trees classifier: a transfer learning approach. journalTurkish Journal of Electrical Engineering Computer Sciences, volume29, pages2742–2757. . OpenAlex ↗ · Scholar ↗
  4. authorBambroo, P., & authorAwasthi, A. (year2021). titleLegalDB: Long DistilBERT for Legal Document Classification. In booktitle2021 International Conference on Advances in Electrical, Computing, Communication and Sustainable Technologies (ICAECT) (pp. pages1–4). publisherIEEE. . OpenAlex ↗ · Scholar ↗
  5. authorBarredo Arrieta, A., authorDíaz-Rodríguez, N., authorDel Ser, J., authorBennetot, A., authorTabik, S., authorBarbado, A., authorGarcia, S., authorGil-Lopez, S., authorMolina, D., authorBenjamins, R., authorChatila, R., & authorHerrera, F. (year2020). titleExplainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. journalInformation Fusion, volume58, pages82–115. . our card
  6. authorBerrar, D. (year2019). titleCross-Validation. In booktitleEncyclopedia of Bioinformatics and Computational Biology (pp. pages542–545). publisherAcademic Press. . OpenAlex ↗ · Scholar ↗
  7. authorBranting, L. K. (year2017). titleData-centric and logic-based models for automated legal problem solving. journalArtificial Intelligence and Law, volume25, pages5–27. . OpenAlex ↗ · Scholar ↗
  8. authorBranting, L. K., authorPfeifer, C., authorBrown, B., authorFerro, L., authorAberdeen, J., authorWeiss, B., authorPfaff, M., & authorLiao, B. (year2021). titleScalable and explainable legal prediction. journalArtificial Intelligence and Law, volume29, pages213–238. . OpenAlex ↗ · Scholar ↗
  9. authorBurkhardt, S., & authorKramer, S. (year2018). titleOnline multi-label dependency topic models for text classification. journalMachine Learning, volume107, pages859–886. . OpenAlex ↗ · Scholar ↗
  10. authorCai, X., authorXie, L., authorTian, R., & authorCui, Z. (year2022). titleExplicable recommendation based on knowledge graph. journalExpert Systems with Applications, (p. pages117035). . OpenAlex ↗ · Scholar ↗
  11. authorCaled, D., authorSilva, M. J., authorMartins, B., & authorWon, M. (year2022). titleMulti-label classification of legislative contents with hierarchical label attention networks. journalInternational Journal on Digital Libraries, volume23, pages77–90. . OpenAlex ↗ · Scholar ↗
  12. authorCaled, D., authorWon, M., authorMartins, B., & authorSilva, M. J. (year2019). titleA Hierarchical Label Network for Multi-label EuroVoc Classification of Legislative Contents. In booktitleLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (pp. pages238–252). publisherSpringer volume volume11799 LNCS. . OpenAlex ↗ · Scholar ↗
  13. authorCanhoto, A. I. (year2021). titleLeveraging machine learning in the global fight against money laundering and terrorism financing: An affordances perspective. journalJournal of Business Research, volume131, pages441–452. . OpenAlex ↗ · Scholar ↗
  14. authorCarvalho, D. V., authorPereira, E. M., & authorCardoso, J. S. (year2019). titleMachine Learning Interpretability: A Survey on Methods and Metrics. journalElectronics, volume8, pages832. . OpenAlex ↗ · Scholar ↗
  15. authorChen, H., authorWu, L., authorChen, J., authorLu, W., & authorDing, J. (year2022). titleA comparative study of automated legal text classification using random forests and deep learning. journalInformation Processing & Management, volume59, pages102798. . OpenAlex ↗ · Scholar ↗
  16. authorChen, Z., & authorHao, Z. (year2016). titleA unified multi-label classification framework with supervised low-dimensional embedding. journalNeurocomputing, volume171, pages1563–1575. . OpenAlex ↗ · Scholar ↗
  17. authorCsányi, G. M., authorVági, R., authorNagy, D., authorÜveges, I., authorVadász, J. P., authorMegyeri, A., & authorOrosz, T. (year2022). titleBuilding a Production-Ready Multi-Label Classifier for Legal Documents with Digital-Twin-Distiller. journalApplied Sciences, volume12, pages1470. . OpenAlex ↗ · Scholar ↗
  18. authorDe Winter, J. C. F., authorGosling, S. D., & authorPotter, J. (year2016). titleComparing the Pearson and Spearman correlation coefficients across distributions and sample sizes: A tutorial using simulations and empirical data. journalPsychological Methods, volume21, pages273–290. . OpenAlex ↗ · Scholar ↗
  19. authorDi Martino, B., authorMarulli, F., authorLupi, P., & authorCataldi, A. (year2021). titleA Machine Learning Based Methodology for Automatic Annotation and Anonymisation of Privacy-Related Items in Textual Documents for Justice Domain. In booktitleAdvances in Intelligent Systems and Computing (pp. pages530–539). publisherSpringer volume volume1194 AISC. . OpenAlex ↗ · Scholar ↗
  20. authorEl-Alami, F.-z., authorOuatik El Alaoui, S., & authorEn Nahnahi, N. (year2021). titleContextual semantic embeddings based on fine-tuned AraBERT model for Arabic text multi-class categorization. journalJournal of King Saud University - Computer and Information Sciences, (pp. pages1–7). . OpenAlex ↗ · Scholar ↗
  21. authorJabreel, M., & authorMoreno, A. (year2019). titleA Deep Learning-Based Approach for Multi-Label Emotion Classification in Tweets. journalApplied Sciences, volume9, pages1123. . OpenAlex ↗ · Scholar ↗
  22. authorKanapala, A., authorPal, S., & authorPamula, R. (year2019). titleText summarization from legal documents: a survey. journalArtificial Intelligence Review, volume51, pages371–402. . OpenAlex ↗ · Scholar ↗
  23. authorKhan, S., & authorShamsi, J. A. (year2021). titleHealth Quest: A generalized clinical decision support system with multi-label classification. journalJournal of King Saud University - Computer and Information Sciences, volume33, pages45–53. . OpenAlex ↗ · Scholar ↗
  24. authorLeal, F., authorGarcía Méndez, S., authorMalheiro, B., & authorBurguillo, J. C. (year2022). titleExplanation plug-in for stream-based collaborative filtering. In booktitleProceedings of the Information Systems and Technologies Conference (p. pagesahead of print). publisherSpringer. OpenAlex ↗ · Scholar ↗
  25. authorLiu, T., authorChen, Z., authorZhang, B., authorMa, W.-Y., & authorWu, G. (year2004). titleImproving Text Classification using Local Latent Semantic Indexing. In booktitleProceedings of the IEEE International Conference on Data Mining (pp. pages162–169). publisherIEEE. . OpenAlex ↗ · Scholar ↗
  26. authorLiu, W., authorWang, Z., authorYuan, Y., authorZeng, N., authorHone, K., & authorLiu, X. (year2021). titleA Novel Sigmoid-Function-Based Adaptive Weighted Particle Swarm Optimizer. journalIEEE Transactions on Cybernetics, volume51, pages1085–1093. . OpenAlex ↗ · Scholar ↗
  27. authorLiu, Y., authorLoh, H. T., & authorSun, A. (year2009). titleImbalanced text classification: A term weighting approach. journalExpert Systems with Applications, volume36, pages690–701. . OpenAlex ↗ · Scholar ↗
  28. authorMedvedeva, M., authorVols, M., & authorWieling, M. (year2020). titleUsing machine learning to predict decisions of the European Court of Human Rights. journalArtificial Intelligence and Law, volume28, pages237–266. . OpenAlex ↗ · Scholar ↗
  29. authorMoyano, J. M., authorGibaja, E. L., authorCios, K. J., & authorVentura, S. (year2018). titleReview of ensembles of multi-label classifiers: Models, experimental study and prospects. journalInformation Fusion, volume44, pages33–45. . OpenAlex ↗ · Scholar ↗
  30. authorOussous, A., authorBenjelloun, F.-Z., authorAit Lahcen, A., & authorBelfkih, S. (year2018). titleBig Data technologies: A survey. journalJournal of King Saud University - Computer and Information Sciences, volume30, pages431–448. . OpenAlex ↗ · Scholar ↗
  31. authorParmar, A., authorKatariya, R., & authorPatel, V. (year2019). titleA Review on Random Forest: An Ensemble Classifier. journalLecture Notes on Data Engineering and Communications Technologies, volume26, pages758–763. . OpenAlex ↗ · Scholar ↗
  32. authorPereira, R. B., authorPlastino, A., authorZadrozny, B., & authorMerschmann, L. H. C. (year2018). titleCategorizing feature selection methods for multi-label classification. journalArtificial Intelligence Review, volume49, pages57–78. . OpenAlex ↗ · Scholar ↗
  33. authorPrajapati, P., & authorThakkar, A. (year2021). titlePerformance improvement of extreme multi-label classification using K-way tree construction with parallel clustering algorithm. journalJournal of King Saud University - Computer and Information Sciences, (pp. pages1–11). . OpenAlex ↗ · Scholar ↗
  34. authorQiu, M., authorZhang, Y., authorMa, T., authorWu, Q., & authorJin, F. (year2020). titleConvolutional-neural-network-based Multilabel Text Classification for Automatic Discrimination of Legal Documents. journalSensors and Materials, volume32, pages2673. . OpenAlex ↗ · Scholar ↗
  35. authorQureshi, M. A., & authorGreene, D. (year2019). titleEVE: Explainable vector based embedding technique using wikipedia. journalJournal of Intelligent Information Systems, volume53, pages137–165. . OpenAlex ↗ · Scholar ↗
  36. authorRibeiro, M., authorSingh, S., & authorGuestrin, C. (year2016). titleWhy Should I Trust You?: Explaining the Predictions of Any Classifier. In booktitleProceedings of North American Chapter of the Association for Computational Linguistics: Demonstrations (pp. pages97–101). publisherAssociation for Computational Linguistics. . our card
  37. authorRoh, Y., authorHeo, G., & authorWhang, S. E. (year2021). titleA Survey on Data Collection for Machine Learning: A Big Data - AI Integration Perspective. journalIEEE Transactions on Knowledge and Data Engineering, volume33, pages1328–1347. . OpenAlex ↗ · Scholar ↗
  38. authorSengupta, S., & authorDave, V. (year2021). titlePredicting applicable law sections from judicial case reports using legislative text analysis with machine learning. journalJournal of Computational Social Science, (pp. pages1–14). . OpenAlex ↗ · Scholar ↗
  39. authorSkryjomski, P., authorKrawczyk, B., & authorCano, A. (year2019). titleSpeeding up k-Nearest Neighbors classifier for large-scale multi-label learning on GPUs. journalNeurocomputing, volume354, pages10–19. . OpenAlex ↗ · Scholar ↗
  40. authorSong, D., authorVold, A., authorMadan, K., & authorSchilder, F. (year2022). titleMulti-label legal document classification: A deep learning-based approach with label-attention and domain-specific pre-training. journalInformation Systems, volume106, pages101718. . OpenAlex ↗ · Scholar ↗
  41. authorTang, S., authorHe, B., authorYu, C., authorLi, Y., & authorLi, K. (year2020). titleA Survey on Spark Ecosystem: Big Data Processing Infrastructure, Machine Learning, and Applications. journalIEEE Transactions on Knowledge and Data Engineering, volume34, pages1–1. . OpenAlex ↗ · Scholar ↗
  42. authorTao, J., & authorFang, X. (year2020). titleToward multi-label sentiment analysis: a transfer learning based approach. journalJournal of Big Data, volume7, pages1–26. . OpenAlex ↗ · Scholar ↗
  43. authorTarekegn, A. N., authorGiacobini, M., & authorMichalak, K. (year2021). titleA review of methods for imbalanced multi-label classification. journalPattern Recognition, volume118, pages107965. . OpenAlex ↗ · Scholar ↗
  44. authorTeisseyre, P. (year2021). titleClassifier chains for positive unlabelled multi-label learning. journalKnowledge-Based Systems, volume213, pages106709. . OpenAlex ↗ · Scholar ↗
  45. authorTeng, F., authorLiu, Y., authorLi, T., authorZhang, Y., authorLi, S., & authorZhao, Y. (year2022). titleA review on deep neural networks for ICD coding. journalIEEE Transactions on Knowledge and Data Engineering, (pp. pages1–1). . OpenAlex ↗ · Scholar ↗
  46. authorThomas, A., & authorSangeetha, S. (year2021). titleSemi‐supervised, knowledge‐integrated pattern learning approach for fact extraction from judicial text. journalExpert Systems, volume38. . OpenAlex ↗ · Scholar ↗
  47. authorTrabelsi, A., authorElouedi, Z., & authorLefevre, E. (year2019). titleDecision tree classifiers for evidential attribute values and class labels. journalFuzzy Sets and Systems, volume366, pages46–62. . OpenAlex ↗ · Scholar ↗
  48. authorVilone, G., & authorLongo, L. (year2021). titleNotions of explainability and evaluation approaches for explainable artificial intelligence. journalInformation Fusion, volume76, pages89–106. . OpenAlex ↗ · Scholar ↗
  49. authorWu, G., authorZheng, R., authorTian, Y., & authorLiu, D. (year2020). titleJoint Ranking SVM and Binary Relevance with robust Low-rank learning for multi-label classification. journalNeural Networks, volume122, pages24–39. . OpenAlex ↗ · Scholar ↗
  50. authorWu, J., authorSheng, V. S., authorZhang, J., authorLi, H., authorDadakova, T., authorSwisher, C. L., authorCui, Z., & authorZhao, P. (year2021). titleMulti-Label Active Learning Algorithms for Image Classification. journalACM Computing Surveys, volume53, pages1–35. . OpenAlex ↗ · Scholar ↗
  51. authorYe, Z., authorYuan, X., authorGaur, S., authorHalfaker, A., authorForlizzi, J., & authorZhu, H. (year2021). titleWikipedia ORES explorer: Visualizing trade-offs for designing applications with machine learning API. In booktitleProceedings of the Designing Interactive Systems Conference (p. pages1554–1565). publisherAssociation for Computing Machinery. . OpenAlex ↗ · Scholar ↗
  52. authorZhang, C., & authorMa, Y. (year2012). titleEnsemble Machine Learning. publisherSpringer. . OpenAlex ↗ · Scholar ↗
  53. authorZhang, J., authorLi, C., authorCao, D., authorLin, Y., authorSu, S., authorDai, L., & authorLi, S. (year2018). titleMulti-label learning with label-specific features by resolving label correlations. journalKnowledge-Based Systems, volume159, pages148–157. . OpenAlex ↗ · Scholar ↗
  54. authorZhang, M.-L., & authorZhou, Z.-H. (year2014). titleA Review on Multi-Label Learning Algorithms. journalIEEE Transactions on Knowledge and Data Engineering, volume26, pages1819–1837. . OpenAlex ↗ · Scholar ↗
  55. authorZhou, X., authorChai, C., authorLi, G., & authorSun, J. (year2022). titleDatabase Meets Artificial Intelligence: A Survey. journalIEEE Transactions on Knowledge and Data Engineering, volume34, pages1096–1116. . OpenAlex ↗ · Scholar ↗