Next Article in Journal
Special Issue “Probability Theory and Stochastic Modeling with Applications”
Previous Article in Journal
Tail Risk Signal Detection through a Novel EGB2 Option Pricing Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Judiciary Expenditure and Productivity Using Machine Learning Techniques

by
Fernando Freire Vasconcelos
1,*,
Renato Máximo Sátiro
2,
Luiz Paulo Lopes Fávero
1,
Gabriela Troyano Bortoloto
1 and
Hamilton Luiz Corrêa
1
1
School of Economics, Administration, Accounting and Actuarial Science, São Paulo University, São Paulo 05508-101, Brazil
2
“Luiz de Queiroz” School of Agriculture, São Paulo University, São Paulo 05508-101, Brazil
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(14), 3195; https://doi.org/10.3390/math11143195
Submission received: 30 May 2023 / Revised: 12 July 2023 / Accepted: 14 July 2023 / Published: 21 July 2023
(This article belongs to the Section Probability and Statistics)

Abstract

:
Maintaining the judiciary requires a high level of budgetary expenditure, but the specifics of this relationship have not yet been fully explored. While several studies have examined the impact of spending on the judiciary through measures related to productivity and performance, none have used machine learning techniques. This study examines the productivity of the court system based on expenditures and other variables using machine learning techniques. In the clustering process Brazilian courts are ranked according to their productivity, while in the neural network step it is verified which characteristics are most relevant at the budgetary level related to judicial productivity for each cluster formed in the first step. The final neural network model supports the results of Pearson’s parametric correlation test, which found no significant correlation between expenditure and productivity. The findings from this study demonstrate the importance of understanding that increasing public budget expenditures alone is not sufficient to improve the efficiency of the judicial system. Instead, other administrative measures are necessary to meet the demands of the Brazilian judiciary and improve service delivery rates. These results offer important theoretical and managerial contributions to the field.
MSC:
62H99

1. Introduction

Justice delayed is justice denied. Efficient court systems are crucial to maintaining the legitimacy of a country’s judicial system and preventing a loss of public trust in the political system as a whole, which can have significant economic consequences [1]. he judiciary plays a critical role in establishing civil society and upholding the rule of law [2,3] and is, therefore, a fundamental institution for structuring society [4].
It is indisputable that the effective administration of the justice system plays a fundamental role in the preservation and stability of any democratic regime [5,6]. Furthermore, there is a growing recognition that a judicial system capable of resolving cases fairly is a fundamental prerequisite for the economic development of countries [7,8]
Despite its importance, the judiciary faces numerous challenges in handling the high volume of cases it receives each year. One of these challenges is to increase efficiency and reduce processing times. Poor judicial performance is a global problem that various authors have extensively discussed, and it is not unique to the Brazilian context [9].
One area of study related to judicial performance is the examination of its determinants, which typically involves analyzing the judiciary of a given country as a whole [1]. This approach considers both internal factors, such as the judicial structure, the number of judicial units, the number of civil servants and magistrates, and the resources invested, among other factors, as well as external factors, such as educational indices, economic indicators, geographic distance to the judicial units, the social vulnerability of the jurisdiction, the cultural issues related to the citizen, and other factors.
In a report published by the World Bank, ref. [7] discuss the findings from a quantitative survey that examined factors influencing judicial efficiency in ten developing countries across three continents. The study employed jurimetric analysis to evaluate how various factors affect procedural times, including budgetary issues and the managerial style of magistrates. The data were categorized into three main groups: procedural, administrative, and organizational factors.
It is worth noting that the slow speed of the judicial system is a common complaint, both in the literature and the media, regarding the time courts take to issue their decisions [10]. However, it is essential to recognize that Brazil’s problem goes beyond legal issues, as it is also a cultural, political, and social issue. The poor performance of the Judiciary Power is a significant problem that needs to be addressed. Therefore, reforming procedural law alone is not enough to improve the judiciary’s performance [11].
It is worth mentioning that workload is an important issue related to the judiciary’s work, as it is known that Brazilian magistrates are under extreme pressure due to a high volume of cases, sometimes reaching millions in some regions of the country. Reports from the National Council of Justice (CNJ) confirm the severity of this issue [9]. However, increasing the number of judges alone cannot guarantee a linear and automatic increase in productivity, as overburdened judges may see a decline in their performance with the arrival of new magistrates [12]. Studies have shown that the magistrate’s experience and the number of advisors in their office influence judicial productivity [4]. It is important to note that improving these factors can contribute to the efficiency of the judiciary, beyond merely increasing the number of judges.
From this perspective, it is important to consider the budgetary expenditure of the judiciary as it can significantly impact judicial productivity and performance, ultimately affecting the quality of the service provided to citizens and organizations. In 2020, the judiciary’s budgetary expenditure in Brazil was approximately BRL 100 billion [13], underscoring the importance of accountability and transparency to allow citizens to better understand how the judiciary functions and its impact on society [14].
Furthermore, issues related to the efficiency of the justice system are rooted in the assumption that the courts’ fundamental purpose is to provide justice for society. Therefore, courts must aim to maximize the number of resolved cases to ensure the smooth functioning of society.
However, achieving this goal is not without challenges, including the high workload of magistrates, the need for judicial reform beyond just procedural law changes, and the influence of factors such as experience and the number of advisors on judicial productivity [15].
The goal of this project is to examine the productivity of the judiciary based on spending and other variables using machine learning techniques. The objective is to determine whether resources are being efficiently allocated and used, both in terms of human and material resources and to explore whether productivity is linked to how these resources are distributed.

State of the Art on the Productivity of the Judiciary

It appears that public sector administration has become a demanding challenge for public policy makers, managers, and civil servants. This fact makes management particularly challenging in developing countries and in the economic transition, as is the case in Brazil [16]. In the public sector, efficiency, effectiveness, and the ability to meet the needs of citizens are required [17].
It is possible to observe that approaching the concept of performance necessarily implies dealing with certain issues that researchers must consider. These issues include: (1) having a solid theoretical foundation on the nature of performance, that is, a theory that establishes which measures are appropriate in a given research context; and (2) relying on a consistent theory about the nature of the measures, that is, the existence of the literature that defines which measures should be combined and which method would be most appropriate to build such measures [18].
Performance by the court system is of great social importance. However, it is observed that research in this area is still in its early stages in terms of the number of articles produced, in addition to being lacking in a theoretical and methodological systematization that can contribute to the institutionalization of knowledge on the subject [14].
The factors influencing the efficiency or inefficiency of the judiciary’s performance have been extensively explored in the literature, particularly the antecedents of productivity. One observed issue affecting judicial performance is the number of cases per magistrate, also known as judicial demand. Some authors have suggested that an increase in demand leads to an increase in the judiciary’s performance, but there is a limit to this relationship, and performance starts to decrease as the number of cases per judge increases [19].
The relationship between judicial performance and judicial demand is not a simple linear one, and a quadratic model provides better insights into how judicial productivity works [20]. An increase in demand can initially increase productivity because judges take less time to analyze a case to avoid case backlog, but this relationship does not necessarily hold in practice [9,19]. For example, despite an increase in demand reported by the CNJ, judicial productivity has remained stagnant for several years [21].
To measure the productivity of the judiciary, several variables have been considered relevant, such as the number of lawyers, servers, workload, and outsourced employees, while others, such as the number of conciliators, have been discarded [22].
A study has shown that the workload of judges can decisively affect their productivity, with a decrease occurring when new judges are appointed [19]. This relationship is known in the literature as the “exogenous productivity” of magistrates, which refers to the apparent contradiction that there is more productivity with a greater stock of cases. This has been documented in the literature and confirmed by a prior study [23].
Several factors, including staff ratio and the complexity of the work, influence the productivity of the judiciary. Higher courts are particularly impacted by the staff ratio, which can prolong the time required to resolve claims [24]. However, data collection inconsistencies can hamper the analysis of productivity in certain branches of the judiciary that achieve good productivity in some periods, but not in others.
For instance, the report “Justice in Numbers” highlights the existence of possible inconsistencies in the measurement of variables collected in various branches of justice.
Regarding the number of sitting judges, Dimitrova-Grajzl et al. [25] found no statistically significant effect on court output in district courts, regardless of the estimation technique employed. Similarly, the judicial team’s statistical significance in explaining the number of cases resolved decreases when controlling for unobserved heterogeneity invariant at the time and court level in local courts.
The literature review suggests that the efficiency of the judiciary is essentially a multilevel construct, with human resources, the complexity of the work, the number of assistants, and the use of technologies being the most used variables to measure efficiency. The reciprocal influence of one level of the judiciary on another further complicates the analysis [14].
The policy of allocating human resources based on workload has been identified as a problem due to the lack of correlation between the number of magistrates and the demand on courts, particularly in peripheral regions [26]. This supports research results suggesting that efficiency can be improved without changing the number of resources used, particularly human resource inputs [27].
Creating specialized courts is an effective strategy to boost speed without increasing costs [28], as it specializes the judicial units in the judgment on demands for related objects, generating a kind of division of labor or specialization of functions.
Given the multiplicity of approaches and variables used to measure “judicial performance”, Gomes and Guimarães [14] have conducted a literature review analyzing studies on the performance of the judiciary in various countries. They emphasized the dimensions researched in the primary studies related to the Administration of Justice area, highlighting the diversity of variables used, as shown in Table 1.
The study of variables that impact judicial performance is vast and can yield various nuances and directions regarding expenditure and investment decisions, workload distribution, and human resources management. This complexity arises from the multidimensional and multifaceted nature of the phenomenon, which encompasses several concepts and diverse issues, including managerial, technical, procedural, normative, social, economic, and organizational aspects, among others.
Rosales-López [29] identifies several factors that complicate the assessment of judicial performance. These factors include the complexity of the organizational and institutional structure of the judicial system, the scarcity or absence of basic data on judicial activity, the existence of biases among key actors concerning the evaluation and quantification of variables that are supposedly unquantifiable, such as the quality of judgments and the distribution of justice, and the fact that judicial performance can be affected by external actors, such as lawyers, who have a stake in the system.
It is important to note that the judiciary of a given society is deeply influenced by the context in which it operates, as pointed out by Rosales-López [29] regarding the “complexity of the organizational and institutional structure of the judicial system”. Therefore, it is necessary to describe the main aspects of the judicial structure of a given country to better understand how it operates.
The Brazilian Judiciary Power’s current structure is detailed in the Federal Constitution of the Federative Republic of Brazil of 1988, which includes organizations such as the Federal Supreme Court, National Council of Justice, Superior Justice Tribunal, Superior Labor Court, Federal Regional Courts and Federal Judges, Labor Courts and Judges, Electoral Courts and Judges, Military Courts and Judges, Courts, and Judges of the States and the Federal District and Territories [3]. However, Brazil’s justice system encompasses various organizations operating in different contexts and assigned distinct roles and objectives, such as the Public Ministry, Public Defender, private law, police organizations, and prisons [30]. Over the past few years, there has been mounting social pressure for reforms to the judiciary. The National Congress responded by passing Constitutional Amendment n. 45/2004, also known as the “Judiciary Reform”, aimed at reducing the effects of the “Judiciary Crisis”, particularly the slow pace of the judiciary [31].
The efficient administration of a judicial system is a central issue for the civility of relations, contributing to social cohesion and the social and economic development of a specific country. In addition, it is important to note that this system has the potential to promote social relations based on ethical and moral principles and values, which include respect for the norms that govern social and commercial relations, as well as the rights of social groups and individuals [30].
The Brazilian judicial system has undergone significant changes with the approval of Constitutional Amendment n. 45/2004 [31,32]. These changes include: (1) the prediction of a reasonable duration for the process, (2) the proportionality between the number of judges and the demand for justice, (3) the uninterrupted functioning of jurisdictional activity, (4) the immediate distribution of cases, and (5) the creation of the National Council of Justice (CNJ) [33]. Given the complexity of the justice system and the lack of theories and methods that can fully explain its performance, there is a growing concern among society, lawmakers, and the justice system itself regarding issues related to judicial performance. Furthermore, studies aimed at understanding the factors that impact judicial performance have the prerogative of being inserted into this context of a still-emerging field, the Administration of Justice, lacking theories and methods that can satisfactorily explain a phenomenon as complex as the justice system.

2. Materials and Methods

This study adopts an exploratory quantitative approach and utilizes data from the National Council of Justice’s Database of the National Judiciary Power, established by CNJ Resolution n. 331/2020 [34]. The report has been published since 2003 and represents the primary source of information and statistics concerning the Brazilian judiciary [23].
The study utilized variables related to productivity and expenses of the judiciary, based on observations of State Courts of Justice in 27 Brazilian states from September 2021. Considering that data and trends are not the same over time, given the possibility of variance in the productivity of certain branches of justice [35], the analysis focused on the last month available in the CNJ database.
After analyzing 1327 variables available in 27 observations, 16 were chosen for the study based on the literature mentioned in the text, including published judgments, filed lawsuits, instruction hearings, preliminary hearings, decisions, orders, sentences, 2nd degree commissioned positions, intern expenses, total asset personnel expenses (BRL), 1st degree asset personnel expenses (BRL), 2nd degree personnel asset expenses (R$), total workforce, magistrate productivity index, and server productivity index. The methodology involved standardizing the variables, creating models with the k-means algorithm, testing for data normality, and choosing the best grouping based on a paired t-test. A neural network model was then created to examine the main variables within each cluster [35].
The methodology involved the following steps: (1) standardization of the variables, (2) creation of models with 2, 3, and 4 clusters using the k-means algorithm, (3) normality test of the data, (4) selection of the best clustering approach by comparing the average productivity indices of the clusters formed using a paired Student’s t-test, and (5) creation of a neural network model to identify the main variables within each cluster.
In this sense, it should be emphasized that the contribution of the present study is the combination of a deterministic and unsupervised mathematical technique (clustering) with a stochastic technique (neural networks) to evaluate the object of study. The theoretical contribution goes beyond this combination, including a new way of analyzing data from mathematical techniques that are not (normally) used in the field of study. Meanwhile, the present study innovates by using machine learning methods capable of predicting the studied phenomenon with high precision. The mathematical methods generally used to compare or indicate the number of clusters use variance only as a way to operationalize the internal processes of the technique, while the mathematical/statistical method used in this work seeks to compare the means of the characteristics of the clusters of the paired t method in pairs.

2.1. Standardization of Variables

The variables were standardized using the Z-score procedure, which involves subtracting the original variable’s value from the mean and dividing it by the standard deviation [36]. This method is commonly used to standardize variables and eliminate the possible bias resulting from different scales of variables in the base [37].
It should be emphasized that the Z-score procedure served only to standardize the variables on the same scale, for comparison purposes. This choice is due to the fact that the data represent a photo from a specific period and not a video from a longer period of time, in other words, it is a clipping of a certain period of time.

2.2. Creation of Models with 2, 3, and 4 Clusters Using the k-Means Algorithm

The next step in the analysis was to apply the k-means algorithm, a non-hierarchical clustering method, to group the observations into 2, 3, and 4 clusters, based on the productivity of magistrates and servers of each court, to eliminate any subjective bias in the selection of clusters [37]. This algorithm automatically divides the observations into clusters in such a way as to minimize the sum of squares within the cluster.
As described by Hu et al. [38], the algorithm seeks to divide “n” observations into “k” classes (≤n) and obtain the mean of the points in each class, to calculate the sum of squares within the cluster, as shown in Equation (1) and in the following ones, where u i   is the mean of the points in S i .
                                    a r g   m i n   i = 1 k     x   ϵ   S i   | | x u i | | 2 = a r g   m i n   i = 1 k   | S i |   V a r   ( S i )                        
Next, the term u i is used as the center of the cluster to measure the new distance, which is gradually optimized through interactions. This means that the algorithm proceeds by minimizing the sum of squared deviations within each cluster, as shown in Equation (2).
a r g   m i n i = 1 k ( 1 2 | S i | )     x , y ϵ S i   | | x y | | 2
Finally, the equivalence was calculated from the identity offered by Equation (3).
  x , y ϵ S i   | | x y | | 2 =   x y ϵ S i   ( x u i ) T ( u i y )
The models were systematically created with an incremental number of clusters, starting with 2 clusters, and eventually reaching a total of 4 clusters. The productivity averages for each cluster were then analyzed to determine whether there was a statistically significant difference within each model.

2.3. Creating a General Productivity Index

To compare the average productivity of the models formed with 2, 3, and 4 clusters, we summed up the productivity index of magistrates with the productivity index of public servants to form a single general productivity index, which allowed for the average test.

2.4. Normality Test of the Data

To determine whether the variables in each cluster followed a Gaussian distribution, it was necessary to choose between parametric or non-parametric methods for comparing the means. The data’s normality was assessed using the Kolmogorov–Smirnov (KS) and Shapiro–Francia (SF) tests. In both tests, the null hypothesis (H0) is that the data adheres to a normal distribution, and the alternative hypothesis (H1) is that it does not adhere to a normal distribution. A significance level of 5% and a confidence level of 95% were used. For this study, the KS test was deemed more appropriate for large samples, while the SF test was more appropriate for small samples, based on the following hypotheses [37]:
H0. 
The sample has a normal distribution.
H1. 
The sample does not have a normal distribution.
The Kolmogorov–Smirnov (KS) test is defined as shown in Equation (4), where n is the number of observations, G ˙ ( x 1 ) ˙ is the cumulative empirical function, and G ( x i ) is the expected function [39].
D n = s u p x | G ( x 1 ) G ˙ ( x i ) |
The Shapiro–Francia (SF) function is specified in Equation (5) [40].
W = [ i = 1 n m i X ( i ) ] 2 [ i = 1 n m i 2 .   i = 1 n ( X 1   X ˙ ) 2 ]
To determine whether parametric or non-parametric methods were necessary for comparing the means, it was necessary to verify the normality of the data distribution. The normality tests were conducted to determine whether there were differences in the productivity averages in the models with 2, 3, and 4 clusters.
The purpose of the clustering is to classify the Regional Courts of Justice in the Brazilian context, a country with continental dimensions and with a marked heterogeneity among all regions and, consequently, among the institutions in each region, according to their productivity, reducing the level of subjectivity in choosing the amount of the grouping, based on mathematical methods that compare the averages for each model. From this difference in means, the number of clusters were chosen, and different levels of productivity were revealed. It is also necessary to emphasize that the variables used to classify the clusters were only related to productivity, therefore it was not possible to capture other aspects.

2.5. Selection of the Best Clustering Approach (2, 3, or 4 Clusters)

The productivity averages in the models with 2, 3, and 4 clusters were tested using the paired sample t-test, after verifying the normality of the data for each cluster formed in the first stage. The test aimed to determine whether there were significant differences in productivity means between the clusters considered pairwise, with a 5% significance level and a 95% confidence level. The paired sample t-test is a parametric test that compares the means of two related samples with the following hypotheses [41]:
H0. 
The sample means are equal.
H1. 
The sample means are different.
In order to test the difference in productivity means between the clusters reciprocally considered, the parametric test known as Student’s t-test for paired samples was performed. The formula for this test, as described by Fralick [42], is shown below, where X ˙ d is the difference between the mean values of the samples, and X j l corresponds to the observation:
t = X d 1 n ( n 1 ) j = 1 n ( X j l X ˙ d )
To use Student’s t-test, certain requirements must be met, which were observed in this work. These include at least two means for comparison, data with an interval nature, random or exhaustive sampling over a certain period, samples with the same variance, and normal distribution [37]. After verifying the differences in the averages of the groups formed in the model with four clusters, the study rejected the null hypothesis H0 in the paired sample t-test. Thus, multivariate statistical models were assembled to determine which variables could explain the difference in average productivity among each cluster in the model above.

2.6. Neural Network Model

Neural networks were created for each cluster to identify the variables that could explain each cluster’s average productivity difference. Neural networks are models composed of units called neurons, which have nonlinear activation functions, such as sigmoid and hyperbolic functions, to infer arbitrary nonlinear relationships from complex input layers connected to output layers and hidden layers. The model parameters are the synaptic weights between neurons, which are adjusted by a stochastic interactive algorithm capable of learning through examples and generalizing information in complex environments [43]. Neural networks aim to imitate the functioning of the human brain through learning and generalization processes [44]. Figure 1 shows a graphical representation of a neural network. It is important to note that this study used neural networks to identify which variables were significantly relevant in explaining the difference in average productivity for each cluster formed.
A neuron generates a Y output called a synapse, which results from the combination of inputs (X1, X2, ..., Xn), and serves as an input for other neurons. The Y output results from an activation function, such as a sigmoid, hyperbolic, etc., and each output has a weight (W1, W2, ..., Wn). By continuously adjusting the relevance of the synapses (Wn weight values), the artificial neural network can learn patterns and generalize its results [45].
The activation function that returned the best results in this study was the hyperbolic tangent in the hidden layers and the patterned identity in the output layers. In the input layers, the variables were rescaled based on their normalization. Before that, Pearson’s parametric correlation test was performed, considering the normality of the data [46], for comparison purposes with the results of the neural network models. From the assembly of these models, those with the best accuracy and ability to provide analyses capable of answering the research problem, related to measuring productivity as a function of spending within the judiciary, were chosen.
The use of the neural network technique in this article is justified due to the fact that the technique allows more accurate models to be obtained, capable of providing more robust analyzes to respond to the research problem related to the measurement of productivity as a function of expenditures within the scope of the judiciary.

3. Results

To establish the model, we identified 16 relevant variables from the National Judiciary Database, consisting of 1327 variables selected from the database established by CNJ Resolution n. 331/2020 of the National Council of Justice: total spending (BRL), published judgments, filed lawsuits, instruction hearings, preliminary hearings, decisions, orders, sentences, second degree commissioned positions, intern expenses, total personnel asset expenses (BRL), first degree personnel asset expenses (BRL), second degree personnel asset expenses (BRL), total workforce, magistrate productivity index, and server productivity index.
Descriptive data analysis was performed to assess the basic characteristics of each variable, including their amplitude, average, and standard deviations. Table 2 presents the results of this analysis.
A brief analysis reveals that the sample displays wide-ranging values for each variable. For instance, total spending ranges from around BRL 4,859,285,529.56 (state of Roraima) to BRL 247,818,421,938.83 (state of São Paulo), indicating significant regional differences in public spending on the judiciary. This implies that the Courts of Justice in different regions of the country vary widely in their expenditure, which may affect their management. Similarly, examining the magistrates productivity index, the lowest values range from 557.8 (state of Amapá) to 3723.59 (state of Rio de Janeiro), while the minimum server productivity index varies from 36.26 (state of Amapá) to 225.90 (state of Rio Grande do Norte). Therefore, regional differences extend beyond spending and affect the productivity of each court, the focus of this study. Moreover, the court workforce is highly dispersed, with a mean of 10,916.15 and a much higher standard deviation of 13,362.53.
The smallest Court of Justice has only 1373 servants (state of Roraima), while the largest has more than 67,799 employees (state of São Paulo), further highlighting the considerable variation in the size of each court. The concept used in this study is the same as the one used by the regulatory agency for the administrative activity of the Brazilian judiciary, which defines productivity as the ratio between the volume of cases disposed and the number of magistrates (ipm) and servers (ips) who worked during the month in the jurisdiction.
Therefore, based on a brief analysis of the data, it can be concluded that the national judiciary is highly heterogeneous, with courts of varying characteristics and sizes [47]. Furthermore, productivity levels vary greatly and are dispersed for each judicial unit. Further investigation is needed to identify the main factors affecting performance, particularly concerning public spending.

3.1. Application of Machine Learning

To address the research question of grouping similar courts based on their productivity, we utilized the k-means algorithm to perform non-hierarchical clustering of each organ into internally homogeneous and externally heterogeneous groups [37] based on the productivity of the magistrates and servants. After testing with different numbers of groups, we found it necessary to remove the judiciary of the state of São Paulo, as its inclusion made the classification of the other courts quite discrepant. The São Paulo Court of Justice has a budget and number of employees nearly three times greater than the second-largest judiciary, the Judiciary Power of the state of Minas Gerais, indicating its size and unique characteristics. It is also the largest court in the world in terms of the volume of cases received and processed, accounting for approximately 25% of the total number of ongoing lawsuits in all of Brazilian justice [13]. The results from the clustering model can be seen in Figure 2, where four groups were formed:
A combined magistrates’ and civil servants’ productivity index was calculated for each cluster to determine whether there was a statistically significant difference in productivity between the four groups of courts. This method has been previously used in similar studies, such as Renosto et al. [48]. Before comparing the means of each cluster, we needed to confirm whether the productivity data followed a normal Gaussian distribution, as both parametric and non-parametric tests require this assumption. Table 3 shows the clusters and their respective components.
The data in Table 4 were analyzed using both the Kolmogorov–Smirnov (KS) test and the Shapiro–Francia (SF) test, which found that the data followed a normal distribution at a 95% confidence level with a 5% margin of error. It should be noted that the previous tests also indicated normality when the null hypothesis was not rejected, meaning that the p-value was greater than the assumed significance level of 0.05 [37]. However, only the KS test yielded a statistically significant result among the tests conducted. Nonetheless, this was sufficient to demonstrate the normality of the data being investigated.
After confirming the normality of the data in each of the four clusters, we conducted a parametric test called Student’s t-test on paired samples to compare the productivity means between each pair of clusters [49].
Table 5 shows the results of Student’s t-test conducted on the pairwise paired samples. The test revealed statistically significant differences in the productivity indices means between the clusters, with p-values less than 0.05 for all the tests carried out, at a confidence level of 95%. This indicates that there were significant differences in productivity among the clusters.
We conducted a Pearson’s bivariate correlation analysis between four variables: total workforce (ftt), total personnel asset expenses (dpea), total productivity, and total expenditure, using internal data from each group to observe the behavior of each variable relative to its peers. Pearson’s correlation test was chosen as a parametric test considering the normality of the data tested above [46].
Pearson’s correlation measures the linear relationship between two variables, where a change in one variable corresponds to a change in the other variable [50]. Correlation values range from −1 (negative correlation) to +1 (positive correlation) and indicate the strength and direction of the linear relationship between two continuous variables [46].
Table 6 shows that the judiciary’s total expenditure is not significantly related to the productivity of judges and civil servants in any of the formed clusters, indicating that budgetary expenditure alone is insufficient to differentiate productivity among the clusters. There are probably other variables capable of differentiating productivity in each group.
The total expenditure is highly correlated with the workforce and expenditure on active personnel in all groups, indicating that most expenditure is directed toward increasing human resources. However, increasing the expenditure alone does not decisively influence productivity. Based on these findings, multivariate statistical models were used to analyze the characteristics of each cluster and identify which variables had the greatest influence on productivity indices.

3.2. Neural Networks

In order to measure the total productivity index based on the input variables, namely the total expenditure, active personnel expenditure (dpea), total workforce (ftt), magistrates’ productivity index (ipm), and servers’ productivity index (ips), neural networks were trained using IBM SPSS Statistics software, version 22, for each of the clusters formed. The multilayer perceptron neural network, with standardized variables and only one hidden layer, was employed for this purpose. Table 7 presents the percentage of the training and testing sample for each of the neural networks used.
To clarify, in the multilayer perceptron neural networks trained using IBM SPSS Statistics software version 22, the system establishes the training and test sample parameters and selects the best database partition for simulation. Table 8 shows the parameters for each model used for the groups, including five units in the input layers, the rescaling of the input and output variables normalized for all models, the hyperbolic tangent activation function for the hidden layers, and the identity function for the output layer. The hyperbolic tangent function transforms real values within the interval of −1 and 1, while the identity function returns identical values from real values [51]. All groups had only one hidden layer, with Groups 2 and 4 having three units in the hidden layers and Group 2 having only two units in the hidden layer.
Table 9 shows the summary of the model based on the sum of the squared errors and the relative error, with the total productivity of each of the clusters formed in the previous step as the dependent variable. The model training time was fast, considering the small amplitude of the database used.
Upon reviewing the results from the models, particularly the sum of the squared errors and the relative error, we found that both the training and test samples showed only slight deviations from the predicted values when compared to the observable ones. Therefore, the neural networks demonstrate an effective means of predicting the dependent variable.
Figure 3, Figure 4 and Figure 5 inform the synaptic weights between the neurons and the trained models for each group formed in the clustering step. Each synaptic weighting is a connecting link characterized by its strength or weight, with more prominent values indicating a greater degree of importance for predicting the dependent variable [52]. Synaptic weights reveal relationships between variables in one layer with variables arranged in the next layer.
It is observed that the productivity indices for judges and civil servants have synaptic weights below zero, and the expense with active civil servants in all models also has negative synaptic weightings in part of the models, as highlighted in all neural network simulations. We can see the artificial neural networks for each group formed in Table 10.
The importance of each variable for the simulated neural network model is shown in Figure 6. The expenditure itself is not the most important variable to guarantee the productivity of any groups formed.
Unlike other deterministic models, neural network calculations do not return an equation, given their stochastic nature, and it is not advisable to remove the less important variables since the learning model uses all of them for training purposes (Junior and Souza, 2019).

4. Discussion

The judiciary in Brazil faces the growing demand for lawsuits, which has not been matched by an equivalent increase in the judiciary’s response capacity [14,53]. This situation, known as the “explosion of litigiousness”, threatens the credibility of the judiciary and the quality of Brazilian democracy [3]. To address this issue, this work aimed to contribute to the understanding on the productivity of the judiciary, a field that has received little attention in Public Administration and Law. Specifically, we examined the relationships between variables related to judicial performance and the judiciary’s budget.
Our analysis, using neural networks, supports the findings of Pearson’s parametric correlation test, which showed that increased spending is not related to increased productivity. The final model demonstrates that expenditure is not a significant factor in predicting productivity. This result challenges the assumption that more resources lead to better performance by the judiciary.
The study found that variables related to the productivity index of civil servants and magistrates are more important in increasing total productivity than public budgetary expenditure. This conclusion was reached after conducting a cluster analysis and training a neural network model that effectively predicted the dependent variable. The research demonstrates that increasing public budgetary expenditure alone is insufficient to improve the efficiency of the judiciary, highlighting the need for other administrative and technical measures. Thus, the study significantly contributes to the theoretical and managerial understanding in this area.
Additionally, it is important to consider the nature of litigation in Brazil. Mays and Taggart [54] identified three categories of commonly cited causes of delay: external sociopolitical pressures, external legal changes, and internal behavioral factors. The authors argued that ineffective jurisdictional provision is a significant issue. In the case of Brazil, the number of lawsuits has grown much faster than the population since the Federal Constitution of 1988, indicating an exceptional degree of litigiousness. This trend emphasizes the need for effective measures to enhance service rates in response to the demands of the Brazilian judiciary [53]. According to data from the 2021 Justice in Numbers Report, on average, for each group of 100,000 inhabitants, 10,675 people filed a lawsuit in 2020 (CNJ, 2021).
To promote innovation and effective analysis in the Brazilian judiciary, there is a significant need for a research agenda focusing on the quantitative analysis of court efficiency, particularly regarding congestion and its associated variables [35]. This type of study is essential, since the Brazilian judiciary has historically been resistant to change and significant innovations [3]). While increasing resources in the judiciary, such as salaries and court numbers, may improve its operation [55], empirical and scientifically proven studies are necessary to direct investments effectively.
This study has some limitations that should be considered. Firstly, it focuses solely on one aspect of the judiciary, public budgetary expenditure, without considering other relevant factors that may impact efficiency, such as the number of judges, workload, the quality of the legal system, and the political and social context. As a result, the results may not fully capture the complexity of the problem and may not be applicable to other countries or contexts. Additionally, the research design relies on cross-sectional data, which restricts the ability to establish causal relationships between the variables.
It is suggested that future research should consider administrative and human resource management variables, applying the methodology presented in this study to other branches of justice or using other machine learning models. Additionally, studies are suggested to investigate how different judicial units allocate and use their resources and how this translates into greater efficiency in providing services to the jurisdiction.
Furthermore, it is recommended to conduct future investigations that can help understand the indirect relationships between the constructs listed in this study. The public service budget, which is largely spent on the payment of civil servants, may be directly or indirectly related to other factors, and statistical mediation or moderation techniques can provide a better understanding of these relationships.
However, according to Procopiuck [56], managerial and technological strategies that directly impact judicial processes do not fully capture the complexity of judicial performance and, therefore, cannot be used in isolation to explain this phenomenon. Other factors, such as legislation stipulating deadlines and the number of funds admitted, must also be considered. Despite the challenges inherent in studying judicial performance, it is important to acknowledge and address them to promote meaningful research [23].
Finally, we can consider the effectiveness of the law and the jurisdictional function of the state as elements of social transformation. After all, a right that does not intervene in the reality for which it was established cannot be effective. There is no use in creating an infinity of laws, codes, regulations, and different norms if this law does not have the capacity to influence the real world, regulating the relations for which it was created. And for this to happen, the judiciary needs to play its fundamental role: to judge. Judge in a reasonable time, effectively, and fairly. After all, the law, and consequently the right, cannot be a mere sheet of paper.

Author Contributions

Conceptualization, F.F.V., R.M.S. and G.T.B.; methodology, F.F.V., R.M.S. and G.T.B.; software, F.F.V.; validation, F.F.V., R.M.S., L.P.L.F., G.T.B., H.L.C.; formal analysis, F.F.V., R.M.S., L.P.L.F., G.T.B., H.L.C.; investigation, F.F.V., R.M.S., L.P.L.F., G.T.B., H.L.C.; resources, F.F.V., R.M.S., L.P.L.F., G.T.B., H.L.C.; data curation, F.F.V.; writing—original draft preparation, F.F.V., R.M.S. and G.T.B.; writing—review and editing, F.F.V., R.M.S., L.P.L.F., G.T.B., H.L.C.; visualization, F.F.V., R.M.S.; supervision, L.P.L.F., G.T.B., H.L.C.; project administration, F.F.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

https://www.cnj.jus.br/base-de-dados/ accessed on 2 October 2021

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Voigt, S.; El-Bialy, N. Identifying the determinants of aggregate judicial performance: Taxpayers’ money well spent? Eur. J. Law Econ. 2016, 41, 283–319. [Google Scholar] [CrossRef]
  2. Gico, I.T., Jr. Anarquismo Judicial e Teoria dos Times Judicial. Econ. Anal. Law Rev. 2013, 4, 269–294. [Google Scholar] [CrossRef] [Green Version]
  3. Sadek, M.T.A. Judiciário: Mudanças e reformas. Estud. Avançados 2004, 18, 79–101. [Google Scholar] [CrossRef]
  4. Gomes, A.O.; Freitas, M.E.M.D. Correlação entre demanda, quantidade de juízes e desempenho judicial em varas da Justiça Federal no Brasil. Rev. Direito GV 2017, 13, 567–585. [Google Scholar] [CrossRef] [Green Version]
  5. Beer, C.C. Judicial Performance and the Rule of Law in the Mexican States. Lat. Am. Politics Soc. 2006, 48, 33–61. [Google Scholar] [CrossRef]
  6. Dougherty, G.W.; Lindquist, S.A.; Bradbury, M.D. Evaluating Performance in State Judicial Institutions: Trust and Confidence in the Georgia Judiciary. State Local Gov. Rev. 2006, 38, 176–190. [Google Scholar] [CrossRef]
  7. Buscaglia, E.; Dakolias, M. Comparative International Study of Court Performance Indicators: A Descriptive and Analytical Account (No. 20177, p. 1); The World Bank: Washington, DC, USA, 1999. [Google Scholar]
  8. Staats, J.L.; Bowler, S.; Hiskey, J.T. Measuring Judicial Performance in Latin America. Lat. Am. Politics Soc. 2005, 47, 77–106. [Google Scholar] [CrossRef]
  9. Manzi, R.M.; Sousa, M.M. A relação entre demanda e desempenho dos magistrados: Investigação de um modelo funcional em forma de U invertido. Rev. De Adm. Pública 2021, 55, 1215–1231. [Google Scholar] [CrossRef]
  10. Abramo, C.W. Tempos de espera no Supremo Tribunal Federal. Rev. Direito GV 2010, 6, 423–442. [Google Scholar] [CrossRef]
  11. Ribeiro, M.C.P.; Neto, R.R. Uma análise da eficiência do poder judiciário com base no pensamento de Douglas North. Rev. Quaestio Iuris 2016, 9, 2025–2040. [Google Scholar] [CrossRef] [Green Version]
  12. Dimitrova-Grajzl, V.; Grajzl, P.; Slavov, A.; Zajc, K. Courts in a transition economy: Case disposition and the quantity–quality tradeoff in Bulgaria. Econ. Syst. 2016, 40, 18–38. [Google Scholar] [CrossRef] [Green Version]
  13. CNJ. Justiça em Números: Ano-base 2019. Brasília. 2020. Available online: https://www.cnj.jus.br/pesquisas-judiciarias/justica-em-numeros/ (accessed on 10 October 2021).
  14. Gomes, A.D.O.; Guimarães, T.D.A. Desempenho no Judiciário: Conceituação, estado da arte e agenda de pesquisa. Rev. De Adm. Pública 2013, 47, 379–401. [Google Scholar] [CrossRef]
  15. Falavigna, G.; Ippoliti, R. Model definitions to identify appropriate benchmarks in judiciary. J. Appl. Econ. 2022, 25, 338–359. [Google Scholar] [CrossRef]
  16. Alberti, A.; Bertucci, G. Innovations in Governance and Public Administration: Replicating What Works; United Nations: New York, NY, USA, 2006; pp. 1–190. [Google Scholar]
  17. Demircioglu, M.A.; Audretsch, D.B. Conditions for innovation in public sector organizations. Res. Policy 2017, 46, 1681–1691. [Google Scholar] [CrossRef]
  18. Richard, P.J.; Devinney, T.M.; Yip, G.S.; Johnson, G. Measuring organizational performance: Towards methodological best practice. J. Manag. 2009, 35, 718–804. [Google Scholar] [CrossRef] [Green Version]
  19. Beenstock, M.; Haitovsky, Y. Does the appointment of judges increase the output of the judiciary? Int. Rev. Law Econ. 2004, 24, 351–369. [Google Scholar] [CrossRef]
  20. Louro, A.C.; Zanquetto-Filho, H.; Santos, W.R.; Brandão, M.M. Tools, methods, and some caveats to analyze the Brazilian Judiciary Performance data. Adm. Pública E Gestão Soc. 2021, 13. [Google Scholar] [CrossRef]
  21. Yeung, L. Measuring Efficiency of Brazilian Courts: One Decade Later (SSRN Scholarly Paper ID 3200588). Soc. Sci. Res. Netw. 2018. [Google Scholar] [CrossRef]
  22. Sátiro, R.M. Determinantes Emergentes da Produtividade em Tribunais de Justiça Estaduais. Ph.D. Thesis, Universidade Federal de Goiás (UFG), Goiânia, Brazil, 2019. [Google Scholar]
  23. Sátiro, R.M.; Sousa, M.D.M. Determinantes quantitativos do desempenho judicial: Fatores associados à produtividade dos tribunais de justiça. Rev. Direito GV 2021, 17. [Google Scholar] [CrossRef]
  24. Mitsopoulos, M.; Pelagidis, T. Does staffing affect the time to dispose cases in Greek courts? Int. Rev. Law Econ. 2007, 27, 219–244. [Google Scholar] [CrossRef]
  25. Dimitrova-Grajzl, V.; Grajzl, P.; Sustersic, J.; Zajc, K. Court output, judicial staffing, and the demand for court services: Evidence from Slovenian courts of first instance. Int. Rev. Law Econ. 2012, 32, 19–29. [Google Scholar] [CrossRef]
  26. Fernandes, F.C.; Mazzioni, S. A Correlação entre a Remuneração dos Executivos e o Desempenho de Empresas Brasileiras do Setor Financeiro. Contab. Vista Rev. 2015, 26, 41–64. [Google Scholar]
  27. Kelly, P.G.; Celso Vila Nova, S.J. Atenção prioritária ao 1º grau de jurisdição medindo a eficiência do Poder Judiciário no Distrito Federal. Rev. Razão Contábil Finanças 2020, 11, 10. [Google Scholar]
  28. Pinheiro, J.S.; Chaves, F.B. Judicialização da Saúde: A Contribuição das Medidas Administrativas Recomendadas Pelo CNJ Aplicadas pelo Poder Judiciário do Tocantins. Rev. Integr. Univ. 2019, 13, 60–73. [Google Scholar]
  29. Rosales-López, V. Economics of court performance: An empirical analysis. Eur. J. Law Econ. 2008, 25, 231–251. [Google Scholar] [CrossRef]
  30. Guimaraes, T.A.; Gomes, A.O.; Guarido Filho, E.R. Administration of justice: An emerging research field. RAUSP Manag. J. 2018, 53, 476–482. [Google Scholar] [CrossRef] [Green Version]
  31. Bertoncini, I.; Monteiro, A.D.O.; Fadul, É. Gestão Estratégica e Reforma do Poder Judiciário: O Caso do Tribunal Regional Eleitoral da Bahia. In Proceedings of the XXXVIII Encontro da ANPAD—EnANPAD, Rio de Janeiro, Brazil, 13–14 September 2014. [Google Scholar]
  32. Vieira, J.L.; Pinheiro, I.A. Contribuições do Conselho Nacional de Justiça para a Gestão do Judiciário. Encontro ANPAD 2008, 32, 2008. [Google Scholar]
  33. Ribeiro, L. A Emenda Constitucional 45 e a questão do acesso à justiça. Rev. Direito GV 2008, 4, 465–491. [Google Scholar] [CrossRef]
  34. Brasil, Resolução CNJ nº 331/2020. Available online: https://atos.cnj.jus.br/atos/detalhar/3428 (accessed on 18 July 2021).
  35. Yeung, L.L.T.; Azevedo, P.F. Além dos “achismos” e das evidências anedóticas: Medindo a eficiência dos tribunais brasileiros. Econ. Apl. 2012, 16, 643–663. [Google Scholar] [CrossRef]
  36. Corrar, L.; Paulo, E.; Dias Filho, J.M.; Rodrigues, A. Análise Multivariada Para os Cursos de Administração, Ciências Contábeis e Economia; Atlas: São Paulo, Brazil, 2009; pp. 432–458. [Google Scholar]
  37. Fávero, L.P.; Belfiore, P. Manual de Análise de Dados: Estatística e Modelagem Multivariada com Excel®, SPSS® e Stata® (Vol. 1); Elsevier Brasil: Rio de Janeiro, Brazil, 2017; pp. 309–3075. [Google Scholar]
  38. Hu, H.; Liu, J.; Zhang, X.; Fang, M. An Effective and Adaptable K-means Algorithm for Big Data Cluster Analysis. Pattern Recognit. 2023, 139, 109404. [Google Scholar] [CrossRef]
  39. Simard, R.; L’Ecuyer, P. Computing the Two-Sided Kolmogorov-Smirnov Distribution. J. Stat. Softw. 2011, 39. [Google Scholar] [CrossRef] [Green Version]
  40. Khan, R.A.; Ahmad, F. Power Comparison of Various Normality Tests. Pak. J. Stat. Oper. Res. 2017, 11. [Google Scholar] [CrossRef]
  41. Costa, G.D.O. Curso de Estatística Inferencial e Probabilidades: Teoria e Prática; Atlas: São Paulo, Brazil, 2012; pp. 71–87. [Google Scholar]
  42. Fralick, D.; Zheng, J.Z.; Wang, B.; Tu, X.M.; Feng, C. The Differences and Similarities Between Two-Sample T-Test and Paired T-Test. Shanghai Arch. Psychiatry 2017, 29, 184–188. [Google Scholar] [CrossRef]
  43. Summa, R.F.; Macrini, L. Os determinantes da inflação brasileira recente: Estimações utilizando redes neurais. Nova Econ. 2014, 24, 279–296. [Google Scholar] [CrossRef] [Green Version]
  44. Haykin, S. Neural networks: Principles and practice. Bookman 2001, 11, 900. [Google Scholar]
  45. Guimarães, L.M.S.; Meireles, M.R.G.; de Almeida, P.E.M. Avaliação das etapas de pré-processamento e de treinamento em algoritmos de classificação de textos no contexto da recuperação da informação. Perspect. Em Ciência Da Informação 2019, 24, 169–190. [Google Scholar] [CrossRef] [Green Version]
  46. Cunha, D.N.; Almeida JA de Carvalho, T.H.D.; Prestes, J. Reflexões sobre o viés de publicação: Um guia para praticantes de estatística para a análise de dados e uso inapropriado do coeficiente de correlação em ciências da saúde. Rev. Bras. Ciência E Mov. 2020, 4, 194–201. [Google Scholar]
  47. Gomes, A.O.; Alves, S.T.; Silva, J.T. Effects of investment in information and communication technologies on productivity of courts in Brazil. Gov. Inf. Q. 2018, 35, 480–490. [Google Scholar] [CrossRef]
  48. Renosto, A.; Biz, P.; Hennington, É.A.; Pattussi, M.P. Confiabilidade teste-reteste do Índice de Capacidade para o Trabalho em trabalhadores metalúrgicos do Sul do Brasil. Rev. Bras. De Epidemiol. 2009, 12, 217–225. [Google Scholar] [CrossRef] [Green Version]
  49. Leotti, V.B.; Coster, R.; Riboldi, J. Normalidade de variáveis: Métodos de verificação e comparação de alguns testes não-paramétricos por simulação. Rev. HCPA. Porto Alegre. 2012, 32, 227–234. [Google Scholar]
  50. Filho, D.B.F.F.B.F.; Júnior, J.A.S. Desvendando os Mistérios do Coeficiente de Correlação de Pearson. Rev. Política Hoje. 2009, 18, 32. [Google Scholar] [CrossRef] [Green Version]
  51. Júnior, J.B.A.C.; Souza, C.C. Aplicação de redes neurais artificiais na previsão do produto interno bruto do Mato Grosso do Sul em função da produção de cana-de-açúcar, açúcar e etanol. Rev. Ibero-Am. De Ciências Ambient. 2019, 10, 218–230. [Google Scholar]
  52. Silva, D.C.G. Predição de Estresse em Ovelhas Prenhas e Lactantes com o Uso de Redes Neurais Artificiais. Ens. E Ciência C Biológicas Agrárias E Da Saúde 2021, 25, 160–165. [Google Scholar] [CrossRef]
  53. Sadek, M.T.A. Acesso à justiça: Um direito e seus obstáculos. Rev. USP 2014, 101, 55–66. [Google Scholar] [CrossRef] [Green Version]
  54. Larry Mays, G.; Taggart, W.A. Court delay: Policy implications for court managers. Crim. Justice Policy Rev. 1986, 1, 198–210. [Google Scholar] [CrossRef]
  55. Cross, F.B.; Donelson, D.C. Creating Quality Courts. J. Empir. Leg. Stud. 2010, 7, 490–510. [Google Scholar] [CrossRef]
  56. Procopiuck, M. Information technology and time of judgment in specialized courts: What is the impact of changing from physical to electronic processing? Gov. Inf. Q. 2018, 35, 491–501. [Google Scholar] [CrossRef]
Figure 1. Neural network model.
Figure 1. Neural network model.
Mathematics 11 03195 g001
Figure 2. Clustering.
Figure 2. Clustering.
Mathematics 11 03195 g002
Figure 3. Artificial neural networks for each group formed, Group 2.
Figure 3. Artificial neural networks for each group formed, Group 2.
Mathematics 11 03195 g003
Figure 4. Artificial neural networks for each group formed, Group 3.
Figure 4. Artificial neural networks for each group formed, Group 3.
Mathematics 11 03195 g004
Figure 5. Artificial neural networks for each group formed, Group 4.
Figure 5. Artificial neural networks for each group formed, Group 4.
Mathematics 11 03195 g005
Figure 6. *Degree of importance of each variable for the model.
Figure 6. *Degree of importance of each variable for the model.
Mathematics 11 03195 g006aMathematics 11 03195 g006b
Table 1. Dimensions, categories, and performance variables used in the studies.
Table 1. Dimensions, categories, and performance variables used in the studies.
Performance DimensionMain Category of InterestMain Variables Used
EfficiencyProductivityNumber of completed processes
Number of judgments executed
CelerityDuration of
processes
Processing time for court proceedings
Processing time for administrative procedures
EffectivenessTrustNumber of human rights violations
Number of corruption cases
QualityMerits of decisionsNumber of published decisions
Number of reformed decisions
IndependenceAutonomyNumber of decisions against the government
Number of financial resources allocated
AccessCoverageNumber of judges per capita
Number of people served
Source: Gomes and Guimarães [14].
Table 2. Descriptive data analysis.
Table 2. Descriptive data analysis.
MinimumMaximumAverageStandard Deviation
Total spending (BRL)4,859,285,529.5247,818,421,938.833,495,395,051.048,583,092,528.9
Published judgments61,310.0014,564,073.001,410,647.372,830,971.00
Filed lawsuits30,235.002,735,712.00479,817.89642,841.57
Instruction hearings12615,344.003774.963622.97
Preliminary hearings1522,599.001942.634762.09
Decisions- (1)146,672.0025,248.9331,879.73
Orders3620.00196,032.0040,975.7458,250.57
Sentences20,299.002,680,256.00376,757.26564,348.61
Second degree commissioned positions502273.00383.33467
Intern expenses139,832.3067,538,124.8117,979,692.6221,444,026.16
Total personnel asset expenses (BRL)199,044,748.407,738,912,899.001,308,271,480.971,504,857,626.50
First degree personal asset expenses (BRL)177,374,391.296,627,847,870.001,128,791,512.091,295,486,987.66
Second degree personal asset expenses (BRL)15,923,579.871,111,065,029.0079,479,968.89216,244,170.30
Total workforce (ftt)137367,79910,916.1513,362.53
Magistrate productivity index (ipm)557.83723.591456.19613.73
Server productivity index (ips)36.26225.998.0541.3
(1) The Rio Grande do Sul state did not present the number of decisions in the period.
Table 3. Clustering outcome.
Table 3. Clustering outcome.
ClustersStates
Cluster 1RJ
Cluster 2RS, BA, PR, PE, SC, GO, MT, and AL
Cluster 3DF, PA, PI, TO, AC, AP, and RR
Cluster 4MG, CE, AM, MA, ES, PB, SE, MS, RN, and RO
Table 4. Normality tests.
Table 4. Normality tests.
Kolmogorov–SmirnovShapiro–Wilk
StatisticdfSig.StatisticdfSig.
Cluster 2Zscore(ipm)0.22280.200 *0.92380.455
Zscore(ips)0.15580.200 *0.94180.617
Cluster 3Zscore(ipm)0.20470.200 *0.93170.561
Zscore(ips)0.18670.200 *0.92370.496
Cluster 4Zscore(ipm)0.154100.200 *0.97100.886
Zscore(ips)0.142100.200 *0.966100.856
* This is a lower bound of the true significance.
Table 5. Student’s t-tests for paired samples.
Table 5. Student’s t-tests for paired samples.
Paired DifferencestdfSig.
AverageStandard DeviationMean Standard Error95% Confidence Interval
LowerUpper
Cluster 2 vs. Cluster 3−3.340970.644930.24376−3.93743−2.74451−13,70660.00001
Cluster 4 vs. Cluster 21.315860.513630.194140.840821.79089677860.00050
Cluster 3 vs. Cluster 41.928540.898110.317531.177702.679376.07470.00050
Table 6. Pearson correlation between the variables.
Table 6. Pearson correlation between the variables.
Group 2Group 3Group 4
fttdpeaTotal ProductivityTotal ExpenditurefttdpeaTotal ProductivityTotal ExpenditurefttdpeaTotal ProductivityTotal Expenditure
ftt1 1 1
dpea0.731 *1 0.974 **1 0.994 **1
Total productivity−0.0490.0841 0.1530.1021 0.1900.2211
Total expenditure0.804 *0.748 *−0.12610.971 **0.997 **0.06810.988 **0.992 **0.2531
* The correlation is significant at the 0.05 level; ** the correlation is significant at the 0.01 level.
Table 7. Sample division.
Table 7. Sample division.
Group 2 (%)Group 3 (%)Group 4 (%)
SampleTraining87.571.460.0
Tests12.528.640.0
Table 8. Model information.
Table 8. Model information.
Group 2Group 3Group 4
Input layerUnits (excluding bias)555
Rescheduling of variablesNormalizedNormalizedNormalized
Hidden layersHidden layers111
Hidden layer units323
Activation functionHyperbolic TangentHyperbolic TangentHyperbolic Tangent
Output layerRescheduling of variablesStandardizedStandardizedStandardized
Activation functionIdentityIdentityIdentity
Table 9. Training and Test parameters.
Table 9. Training and Test parameters.
Group 2Group 3Group 4
TrainingSum of squared errors0.00140.08400.0940
Relative error0%4%4%
TestsSum of squared errors0.51130.00100.2060
Relative error10%0%4%
Table 10. Artificial neural networks for each group formed.
Table 10. Artificial neural networks for each group formed.
PredictorGroup 2Group 3Group 4
Hidden Layer 1Output LayerHidden Layer 1Output LayerHidden Layer 1Output Layer
H(1:1)H(1:2)H(1:3)TotalH(1:1)H(1:2)TotalH(1:1)Total
Input layer(Bias)0.8250.224−0.231 0.6750.411 −0.797
Ztotalexpense0.2550.188−0.042 0.1980.214 0.813
Zdpea−0.469−0.1590.023 0.162−0.300 −0.137
Zftt0.2660.029−0.503 −0.263−0.162 0.257
Zipm−1.0120.8580.294 −0.9030.476 0.978
Zips−0.7160.0930.542 −1.0120.106 1368
Hidden layer 1(Bias) −0.378 −0.697 −0.961
H(1:1) −1.818 −1.693 2.276
H(1:2) 0.419 0.393
H(1:3) 0.214
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Vasconcelos, F.F.; Sátiro, R.M.; Fávero, L.P.L.; Bortoloto, G.T.; Corrêa, H.L. Analysis of Judiciary Expenditure and Productivity Using Machine Learning Techniques. Mathematics 2023, 11, 3195. https://doi.org/10.3390/math11143195

AMA Style

Vasconcelos FF, Sátiro RM, Fávero LPL, Bortoloto GT, Corrêa HL. Analysis of Judiciary Expenditure and Productivity Using Machine Learning Techniques. Mathematics. 2023; 11(14):3195. https://doi.org/10.3390/math11143195

Chicago/Turabian Style

Vasconcelos, Fernando Freire, Renato Máximo Sátiro, Luiz Paulo Lopes Fávero, Gabriela Troyano Bortoloto, and Hamilton Luiz Corrêa. 2023. "Analysis of Judiciary Expenditure and Productivity Using Machine Learning Techniques" Mathematics 11, no. 14: 3195. https://doi.org/10.3390/math11143195

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop