<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Towards visualizing and analysing legal proceedings with process mining</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Vittoria Caponecchia</string-name>
          <email>v.caponecchia@santannapisa.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bernardo D'Agostino</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Giovanni Comandè</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniele Licari</string-name>
          <email>daniele.licari@santannapisa.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Vandin</string-name>
          <email>a.vandin@santannapisa.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DTU Technical University of Denmark</institution>
          ,
          <addr-line>Lyngby</addr-line>
          ,
          <country country="DK">Denmark</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Sant'Anna School of Advanced Studies Pisa</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Process mining (PM) is a family of data-driven techniques which use data with the goal of studying the process behind the data, i.e., the data-generating process. Despite initially tailored for the engineering and industrial domain, it is becoming popular also in more human-centric domains like the legal and healthcare ones. This paper proposes preliminary steps towards a general-purpose process mining methodology utilizing Fluxicon's Disco tool aimed at analyzing and optimizing the complex processes underlying legal decision making by Courts. We consider specifically the domain of civil proceedings, with a focus on divorce cases. In PM terms, a case is a legal proceeding, and activities are the diferent internal phases in which a legal case transits from its beginning to the final judgment. The studied process is, therefore, the internal process followed by the Court, possibly varying over the years, to handle specific types of proceedings. By leveraging process mining techniques, this preliminary study examines the evolution of divorce proceedings within a selected Italian court in the time frame 2013-2019, identifying key performance indicators and uncovering hidden process ineficiencies and eficiencies. The findings highlight the potential of process mining to reveal critical process patterns, enabling organizations to make data-driven decisions and implement targeted process improvements.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Process Mining (PM) is a family of data-driven techniques studying the processes that generated the
considered data, i.e., the data generation process [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. PM enables for the monitoring, enhancement and
validation of the actual process underlying a system. Despite initially developed for engineering and
industrial domains, PM is now gaining traction in human-centric fields such as the legal and healthcare
sectors (see, e.g., [
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4, 5, 6</xref>
        ]). This paper explores the potential of applying Process Mining to Italian
legal proceedings. In particular, we focus on joint divorce cases from a selected Italian Court between
2013 and 2021. The dataset has been built by downloading data of proceedings from the “Portale dei
Servizi Telematici del Ministero della Giustizia” (portal of telematic services of the italian Ministry
of Justice)1. By leveraging the Disco Fluxicon tool [7], we aim at visualizing and analyzing these
proceedings, and in particular how they are handled (the process that the Court follows to handle them).
All mining tasks were done using on the Fuzzy Miner algorithm as available in Disco version 3.3.7.
      </p>
      <p>We remark that we see legal proceedings as instances of processes. Therefore, in some sense, we
see Courts as business organizations. We believe that the use of PM in this field could help addressing
challenges related to resource management within Courts, often arising from a shortage of personnel.
Without compromising the quality of justice or the right to a fair trial merely to reduce processing times,
process mining can streamline procedures by identifying ineficiencies in legal workflows, enabling a
more efective analysis and resolution of issues.</p>
      <p>The collected data made it possible to reconstruct the activities and processes of these proceedings.
By comparing proceedings from diferent years, we identified, from a procedural point of view, how
bottlenecks present in 2013 were addressed in subsequent years. This preliminary work demonstrates
the potential of PM in enhancing the eficiency of legal processes, and therefore of the judicial system
in general, paving the way for future research and proposals in this area.</p>
      <p>
        To the best of our knowledge, this is one of the first approaches analysing such a dataset
using process mining. This paper presents preliminary results in this direction, paving the
way for a rich stream of proposals aiming at improving the eficiency of the legal
sector. Many works, focused on extracting processes from normative documents, like laws,
with complementary goals and challenges (see, e.g., [
        <xref ref-type="bibr" rid="ref3">3, 8</xref>
        ]). Another
example is [9], which applies PM, in particular the EverFlow 2 tool,
to a dataset of business lawsuits from the Court of Justice of the
State of Sao Paulo, Brazil. The paper closest to ours in terms of ISCRIZIONE RUOLO GENERALE
considered data is [10]. Similarly to us, the authors use event-based instant
data on the Italian judicial system. However, the authors consider 2 mins
complementary analyses (as well as diferent PM tools, namely ASSEGNAZIONE A SEZIONE
Apromore3). Indeed, PM techniques are used only for an analysis of instant
variants like ours, while the remaining, very interesting, analyses 3 d
are done using machine learning tools. For example, diferently DESIGNAZIONE GIUDICE
from us, they do not use PM neither to compare proceedings from instant
diferent years nor to study bottlenecks or reasons for improved 60 secs
performance. Furthermore, they focus on a diferent type of court, SOSTITUZIONE GIUDICE
the Court of Appeal of Milan. The proceedings considered refer to instant
civil litigation in general filed before the Court of Appeal (second 60 secs
instance), rather than being limited to joint divorces filed before
the Court (first instance). FISSAZIONE UinDsItaEnNtZA CAMERALE
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Domain and case study</title>
      <sec id="sec-2-1">
        <title>In this section, we overview the expected structure of the process</title>
        <p>underlying the proceedings from the reference domain. We will
discuss at a high level the phase of divorces, namely joint divorces
in Italy, which is the case study of this paper.</p>
        <sec id="sec-2-1-1">
          <title>2.1. Divorces</title>
          <p>Divorces may be as well either joint or judicial: in the first case,
there is an agreement between the spouses on the conditions to
be adopted, and the proceeding will be filed jointly; in the second
case, when there is no agreement, the proceeeding may be filed
by either spouse. In this work, we will focus on joint divorces,
which we will simply call ‘divorces’4. Fig. 1 graphically depicts the
main activities (the internal statuses in which proceedings evolve)
in a joint divorce. The labels of the boxes contain the names of the
activities in Italian. We will discuss the other numerical information
in the figure in the next sections. The request for a divorce is filed</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2http://everflow.ai</title>
        <p>3https://apromore.com/
4Technically, ‘divorce’ is an improper name. Law 898/1970, which introduced it, never uses it. The law refers to ‘dissolution of
marriage’ (for civil marriages) and to ‘cessation of the civil efects of marriage’ (for religious marriages).
RITORNO ATTI DAL PM/PG
instant
6 d
33 d
IN DECISIONE
instant</p>
        <p>28 d
DEPOSITO MINUTA SENTENZA DEFINITIVA
instant</p>
        <p>3 d
DEPOSITO SENTENZA PUBBLICAZIONE</p>
        <p>instant
in to the Court by means of a writ of summon (ISCRIZIONE RUOLO
GENERALE, i.e. REGISTRATION IN THE GENERAL REGISTER). The Chancellery
will assign the case to a Section of the Court (ASSEGNAZIONE A SEZIONE, i.e. ASSIGNMENT TO SECTION), and, in
particular, to a judge of that section (DESIGNAZIONE GIUDICE, i.e. JUDGE DESIGNATION) and a date will be set
for the first hearing of the spouses before the Court in the designated panel ( FISSAZIONE UDIENZA CAMERALE,
i.e. SCHEDULING OF THE PANEL HEARING).</p>
        <p>On the scheduled date, the Court, after hearing the parties and receiving the opinion of the public
prosecutor (RITORNO ATTI DAL PM/PG, i.e. RETURN OF DOCUMENTS FROM THE PROSECUTOR), pronounces the divorce
by judgment (IN DECISIONE, i.e UNDER DECISION). The judgment is first prepared with its minutes by the
reporting judge (DEPOSITO MINUTA SENTENZA DEFINITIVA, i.e. FILING OF THE FINAL JUDGMENT DRAFT) and submitted
to the President of the panel for her/his signature. After this, the Chancellery will take care of the
publication (DEPOSITO SENTENZA – PUBBLICAZIONE, i.e. FILING OF JUDGMENT AND PUBLICATION).</p>
        <p>At any time during the proceeding, it might be necessary to replace a judge (SOSTITUZIONE GIUDICE,
i.e. JUDGE REPLACEMENT), for reasons related, for example, to her/his unavailability, resignation, change of
duties, etc. This is not shown in Fig. 1 because it is a nonregular event since it does not necessarily arise
in all proceedings. Actually, proceedings might have diferent variations of such events, like SOSTITUZIONE
GIUDICE PER L’UDIENZA (i.e. REPLACEMENT OF JUDGE FOR THE HEARING), and SOSTITUZIONE GIUDICE E SEZIONE (i.e.
REPLACEMENT OF JUDGE AND SECTION). In Section 3.2 we will mention how, in cases like this, we opted for
replacing all such similar but diferent activities with a single simpler one (in this case, just SOSTITUZIONE
GIUDICE, i.e. JUDGE REPLACEMENT). We did this for the sake of simplicity; yet a more granular analysis would
potentially highlight which variation eventually creates which consequence (e.g., bottlenecks). Notably,
as we will see in the next sections, this activity might actually be frequent, and a major reason of delays
in the proceeding.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Dataset description and pre-processing</title>
      <p>In this section, we describe our dataset from a computational and procedural point of view (Section
3.1), we detail the domain-specific pre-processing steps we applied (Section 3.2), and we conduct a
preliminary exploratory data analysis comparing two reference years in which the proceedings took
place (Section 3.3).</p>
      <sec id="sec-3-1">
        <title>3.1. Dataset description</title>
        <p>The dataset has been built by downloading metadata of proceedings from the “Portale dei Servizi
Telematici del Ministero della Giustizia” (portal of telematic services of the italian Ministry of Justice)5.
We considered only a specific Court in northern Italy, focusing on joint divorces within the
timeframe 2013-2021. To better identify structural diferences in the proceedings across diferent years, we
considered only proceedings starting within the first five months of each year. The obtained dataset
contains 68 605 activities like those discussed in Section 2.</p>
        <p>In this work, we used the process mining tool Disco from Fluxicon6 to visualize and analyze the
considered legal proceedings. Indeed, Fig. 1 is actually a map computed by Disco for a specific
proceeding. It shows how one joint divorce proceeding can be visualized in Disco using the so-called
performance view. The performance view of Disco depicts the activities appearing in the data (in this
case the internal statuses of a proceeding), as well as the waiting times between them (the labels of the
edges). Boxes represent the activities, and have label instant because we only know the day in which a
proceeding changed in the corresponding status.</p>
        <p>In particular, for each activity of each proceeding, our dataset contains the date when it occurred, the
name of the activity, the identifier of the specific proceeding to which the activity belongs, whether
it regards a divorce, and whether the legal proceeding is concluded or not at the time in which we</p>
        <sec id="sec-3-1-1">
          <title>5https://pst.giustizia.it/PST/it/services.page 6https://fluxicon.com/disco/</title>
          <p>downloaded the data. The dataset encompasses 2 560 distinct divorce proceedings and contains 72
diferent activities.</p>
          <p>Feeding to Disco more proceedings, enables process mining tasks, and, in particular, a number
of visualization and analysis features. For example, Disco computes a number of statistics on the
proceedings, that can be used as alternative label edges (e.g., min/max/average/median times, or counts
of proceedings making that state transition). Another example is that Disco can group proceedings in
diferent variants, where a variant is a unique sequence of intermediate states of a proceeding. A deeper
analysis based on the variants in the dataset is provided in Section 4.2. The proceeding in Fig. 1 belongs
to the most common variant for divorces in our dataset (after applying the data cleaning steps discussed
next). Considering the temporal information in the map, we can see, e.g., that it changes within the same
day from ISCRIZIONE RUOLO GENERALE (i.e. REGISTRATION IN THE GENERAL REGISTER) to ASSEGNAZIONE A SEZIONE
(i.e. ASSIGNMENT TO SECTION).7 Instead, it took 3 days to further change into DESIGNAZIONE GIUDICE (i.e. JUDGE
DESIGNATION).</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Domain-driven data cleaning</title>
        <p>Before analyzing this dataset, it is necessary to apply a number of domain-specific pre-processing steps.
Essentially, this can be considered a data-cleaning step. Furthermore, we focused only on concluded
proceedings, using the corresponding information in the logs mentioned in Section 3.1. We got 2 300
such divorce proceedings.</p>
        <p>Another issue in this dataset is that proceedings have spurious activities after their actual conclusion
irrelevant to this study. From our domain knowledge, we know that a proceeding can be considered
completed after the activity DEPOSITO SENTENZA - PUBBLICAZIONE (i.e FILING OF JUDGMENT AND PUBLICATION) for
the divorces. Most of the proceedings in our dataset contained additional activities after those final
ones, preventing us from making any reasonable analysis on the duration of proceedings. These are
activities such as ANNOTAZIONE (i.e. ANNOTATION), which involve small changes or notes added to the records
of the proceedings, or PASSAGGIO IN ARCHIVIO (i.e. TRANSFER TO ARCHIVE), which indicates that the document
or proceeding is being transferred to the archive. Based on this understanding, we removed all activities
occurring after the “final activities" mentioned above.</p>
        <p>As anticipated in Section 2.1, another issue regards groups of activities with diferent name, but similar
meaning. We identified such groups of activities, and consolidated them under a single one. In particular,
activities DESIGNAZIONE GIUDICE (i.e. JUDGE DESIGNATION) and DESIGNAZIONE GIUDICE E FISSAZIONE PRIMA UDIENZA
(i.e. JUDGE DESIGNATION AND SCHEDULING OF INITIAL HEARING) were merged as DESIGNAZIONE GIUDICE (i.e. JUDGE
DESIGNATION). Similarly, the entries SOSTITUZIONE GIUDICE PER L’UDIENZA (i.e. REPLACEMENT OF JUDGE FOR THE
HEARING), SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT), and SOSTITUZIONE GIUDICE E SEZIONE (i.e. REPLACEMENT
OF JUDGE AND SECTION) were consolidated in SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT).</p>
        <p>After these data cleaning steps, we obtained 50 unique activities for the 2 300 divorce proceedings.</p>
        <p>We then refined the dataset by focusing on the relevant activities. Specifically, we considered 21
unique activities for divorces. In order to select these activities, we identified the 30 most frequent
activities in the dataset, we manually analyzed and selected subsets that we deemed representative for
the considered proceedings.</p>
        <p>Finally, since, as discussed, our dataset only contains the day on which an activity occurred, and not
the time and duration, we encountered proceedings where multiple activities took place on the same
day, possibly written in a diferent order proceeding by proceeding. This led to erroneous loops in the
mined processes. To resolve this, we defined a predetermined order for the activities, and used it to
sort activities happened on the same day for a proceeding. We did this by adjusting the begin time
from the defaualt 00:00 by adding as many minutes as the position of the activity in this predefined
order. For example, Fig. 1 shows that SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT) happens 60 seconds
after DESIGNAZIONE GIUDICE (i.e. JUDGE DESIGNMENT) in the considered proceeding. Indeed, we imposed an
ordering where the former is first, and the latter is second (therefore we added 1 minute to its starting
time).
7The label should be 0 days. We will explain later why we modified the dataset in this way during pre-processing.
1000
800
600
400
200
0
# New proceedings
# Events</p>
        <p>After completing all pre-processing and data cleaning steps, we obtained 23 360 events related to
2 300 divorce proceedings.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Exploratory Data Analysis</title>
        <p>Before delving into the process mining capabilities, we present preliminary exploratory data analyses
to provide context.</p>
        <p>Table 1 summarizes the number of divorce proceedings in the Court for each year along with their
median duration. We can see that the median duration fluctuates across the years, and that 2020 was the
year with the lowest number of divorces and the second-highest median duration. In particular, in Fig.
2 we can see that the number of new proceedings in the first two months of 2020 was in line with that
of previous years, while there has been a significant drop in the following three months. This decline is
likely attributable to the COVID-19 outbreak and the corresponding restrictions implemented in Italy
starting from the 9th of March. In addition, Table 1 also indicates a return to pre-pandemic trends in
terms of the number of proceedings and associated waiting times in 2021, suggesting a mitigation of
the pandemic’s impact.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Towards process mining legal proceedings</title>
      <p>This section presents two relevant examples of process mining analyses conducted with Disco to
visualize and analyze our data. In Section 4.1, we compare the proceedings belonging to the variant
shown in Fig. 1 with those from a diferent variant. Then, Section 4.2 ofers a preliminary comparison
of proceedings started in two years of interest.</p>
      <sec id="sec-4-1">
        <title>4.1. Analysis of two variants</title>
        <p>As discussed, Disco can categorize proceedings in variants. For example, we have seen how the
proceeding in Fig. 1 belongs to the most common one in the dataset. In Fig. 3a we show an example
of a proceeding belonging to the 9th most frequent variant. This latter variant has been chosen for
presentation reasons to highlight the capabilities of PM and Disco. This proceeding follows the same
path as the one from Fig. 1 up to judge replacement (SOSTITUZIONE GIUDICE). Then, after 12 days, it
progresses to the decision phase (IN DECISIONE). One day later, the judge is replaced (SOSTITUZIONE GIUDICE,
the upward edge) and she/he is replaced again 20 days later (indicated by the self-loop edge). On the
same day, a panel is appointed for the proceeding (DESIGNAZIONE COLLEGIO, i.e. PANEL DESIGNATION) and then
the draft of the final judgment is submitted ( DEPOSITO MINUTA SENTENZA DEFINITVA). Finally, 3 days later the
proceeding terminates with the publication of the judgment (DEPOSITO SENTENZA-PUBBLICAZIONE). In the
present analysis, the comparison of the two variants reveals a significant divergence in the path taken
by a minority of cases after the JUDGE REPLACEMENT activity. While the majority of cases proceed directly
to SCHEDULING OF THE PANEL HEARING, a smaller subset undergoes a series of additional steps, including
a return to JUDGE REPLACEMENT and the introduction of a PANEL DESIGNATION activity. This atypical path
suggests potential complexities or exceptional circumstances afecting these cases.</p>
        <p>In Fig. 3b we show an analysis of all the proceedings in our dataset which follow the two mentioned
variants. In particular, we use Disco to mine a map for all such proceedings. Overall, the two variants
include 448 proceedings, 418 from the variant considered in Fig. 1, and 30 from the newly considered
one.</p>
        <p>Diferently from Fig. 1, Fig. 3b shows a so-called frequency view ofered by Disco. Rather than
focusing on temporal and performance aspects, it just counts the number of times an activity is met by
proceedings (numbers in the boxes), and the number of times proceedings change among two states
(labels of edges). The visualization of process frequencies provides a quantitative overview of the most
common process flows and their relative frequencies. This information can be used to identify critical
control points within the process and to assess the impact of potential process changes. By looking
at the top edge, we can see that all proceedings start from ISCRIZIONE RUOLO GENERALE (i.e. REGISTRATION
IN THE GENERAL REGISTER). Furthermore, the three following down-stream edges confirm that all 448
proceedings share the same initial path. Then, from SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT), 418
proceedings move to FISSAZIONE UDIENZA CAMERALE (i.e. SCHEDULING OF THE PANEL HEARING). Indeed, all 418
proceedings from the variant in Fig. 1 have such transition, while the 30 from Fig. 3a do not have it.
Indeed, the 30 proceedings from the 9th variant jump to activity IN DECISIONE (i.e. UNDER DECISION), get
back to SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT) and then move to DESIGNAZIONE COLLEGIO (i.e. PANEL
DESIGNATION). The two paths merge back in the activity DEPOSITO MINUTA SENTENZA DEFINITIVA (i.e. FILING OF
THE FINAL JUDGMENT DRAFT) and conclude in the same way. By combining process variant analysis with
frequency-based insights, domain experts can gain a comprehensive understanding of the underlying
process dynamics and identify areas for improvement in the courts.
This section employs process mining techniques to perform a preliminary comparison of proceedings
from 2013 and 2019, representing the earliest and latest available data points prior to the COVID-19
pandemic.</p>
        <p>Quantitative comparison. As shown in Table 1, we have similar numbers of proceedings in the
two years, 263 in 2013, and 238 in 2019. However, we find a notable diference: the median duration of
proceedings in 2019 is about half that from 2013, denoting sensible improvements in the eficiency of the
(a) A variant of divorce proceedings
(b) Map mined for variants in Figs. 1 and 3a.
handling of these proceedings. Then, process mining is employed to shed light on the “organizational
and structural reasons" beyond these improvements.</p>
        <p>We first analyzed the four most popular variants present in the two years. For doing this, we applied
iflters in Disco to select only proceedings starting in the first five months of the two years. We found 41
variants in 2019 and 48 in 2013. Despite the number of variants being similar, Table 2 highlights an
important aspect: 2019 has a much more homogeneous treatment of proceedings. In fact, the most
common variant covers 65% of the proceedings, with the others being below 5%. Instead, there is much
less diference among the first three variants from 2013, which together cover a smaller ratio than the
top one in 2019 (63%). The comparative analysis of divorce proceedings from 2013 and 2019 reveals
a substantial improvement in process eficiency over time. The halving of median processing time in
2019 compared to 2013 underscores a significant transformation in the court’s operational practices.
Process mining techniques have enabled a deeper understanding of these changes by examining process
variations. The emergence of a dominant process variant in 2019, encompassing a significantly larger
proportion of cases compared to the previous year, indicates a notable increase in process standardization.
This standardization is likely a key factor contributing to the observed eficiency gains.</p>
        <p>Procedural comparison. We then proceeded to analyze graphically the proceedings from the two
years. In Figs. 4 and 5 we see the performance views produced by Disco for these two sets of proceedings.
The performance view was selected, utilizing the median waiting times as metrics. Notably, Disco ofers
a zooming functionality which allows to focus on more frequent activities and edges.8 For the maps in
Figs. 4 and 5 we decided to use the intermediate setting of 50% for both activities and edges to ignore
uncommon edges and activities in this preliminary analysis.</p>
        <p>The process maps in Figs. 4 and 5 incorporate secondary labels. Indeed, so far, we focused our
performance analyses on the median waiting times among activities. Here we exploit another feature of</p>
        <sec id="sec-4-1-1">
          <title>8See, e.g., https://fluxicon.com/book/read/mapview/</title>
          <p>Disco; namely, the ability to add a secondary metrics to a map (the secondary labels). In particular, as
secondary metrics we add frequency information, de facto merging the two performance and frequency
views. For example, the first activity for the year 2013 ( ISCRIZIONE RUOLO GENERALE, i.e. REGISTRATION IN THE
GENERAL REGISTER) is found in all 263 proceedings, and the edge outgoing from it is taken by all of them.</p>
          <p>Considering aspects in common, we can see that, in both years, all edges outgoing from IN DECISIONE
(i.e. UNDER DECISION) take a considerable amount of time, among the highest ones in the process. This
means that the activity IN DECISIONE itself takes a considerable amount of time.</p>
          <p>The Italian Code of Civil Procedure (cpc) does not impose formal time limits within which judges
must decide a case, except for the labour rite. This is why proceedings often last a long time. Article 275
of the cpc, concerning the decision of the panel, provided 9 that the judgement was to be filed within
60 days of the expiry of the time limit for filing reply briefs or, in the case of oral discussion before
the panel, that it was to be signed by the President and immediately filed in the Chancellery. In joint
divorce cases, to which the labour rite does not apply, the rules provided for in Article 275 cpc should
be applied, since the divorce law does not lay down time limits for the decision. In any case, the 60
days should not be considered to start from the filing of the briefs, activity that in a joint divorce has no
reason to take place, but from the discussion. In this way, divorce proceedings would also be subject to
time limits and avoid being too lengthy.</p>
          <p>Then, a principle that is certainly applicable is that of the reasonable duration of proceedings, dictated
by Article 111 of the Constitution 10 and valid for any type of trial. Notably, the secondary metrics
tells us that these time consuming transitions are particularly important in the overall performance of
the Court because they are frequent: all proceedings in 2019 involve one of such transitions. Instead,
e.g., the transition from UDIENZA RINVIATA DI UFFICIO (i.e. HEARING POSTPONED EX-OFFICIO) to IN DECISIONE (i.e.
UNDER DECISION) has a much lower impact because it involves only 10 proceedings in 2019. Also with
regard to postponement of hearings, apart from what is established for labour proceedings 11, there are
no express prohibitions. However, always following the requirements of Article 111 of the Constitution
and the principles of concentration and eficiency governing the trial, there is a tendency not to allow
mere postponements except in cases where this is inevitable 12. This aims to avoid lengthy trials with
the consequent waste of money, which is probably why, in 2019, far fewer cases were postponed to a
new hearing and moved more quickly to IN DECISION (i.e. IN DECISIONE).</p>
          <p>Two key diferences emerge from the process maps. First, assigning a judge to a proceeding in 2019
appears to take nearly twice as long compared to 2013. Second, one of the most common activities in the
two years, namely SOSTITUZIONE GIUDICE (i.e. JUDGE REPLACEMENT), has a much diferent role in 2019. In 2013,
it was central in the process, with incoming edges with very high times. Instead, in 2019 this activity
seems to have been moved earlier in the process flow, resulting in a significant reduction in processing
time. That is, the incoming edge with a frequency of 246 is instantaneous, while the one with higher
waiting times only involves 32 proceedings. These observations suggest an overall improvement in
process eficiency, despite the apparent slowdown in the initial judge assignment stage.</p>
          <p>Finally, we note how, in 2019, activities DESIGNAZIONE GIUDICE (i.e. JUDGE DESIGNATION) and SOSTITUZIONE
GIUDICE (i.e. JUDGE REPLACEMENT) occur on the same day. We remark that real substitutions are very unlikely
to happen so frequently within a day. One explanation could be that, e.g., proceedings have an initial
temporary automatic assignment, which is then refined and updated. This did not appear in 2013
because this procedure was probably instrumented in a diferent manner. This analysis demonstrates
the efectiveness of process mining in revealing process variations and performance changes over
time. By providing a visual and quantitative representation of process execution, Disco facilitates the
identification of bottlenecks and areas for improvement, ultimately contributing to more eficient and
streamlined legal procedures.
9The use of the past tense is necessary since the Cartabia Reform amended many provisions of the Code of Civil Procedure,
including this one. However, since the reform came into force as of 28 February 2023, the old provision of the article applies
to this work.
10Already recognised by Article 6 ECHR and Article 47 of the EU Charter of Fundamental Rights.
11Article 420 of cpc expressly prohibits mere postponements of hearings, but this does not apply to cognitive proceedings.
12E.g., Judgment No. 26935 of October 24, 2018, Supreme Court of Cassation, Civil Section, “Not only in the labour rite... but
also in the ordinary rite of cognition mere postponement hearings are not allowed.”</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>
        This preliminary work demonstrates the potential of Process Mining (PM) in monitoring and enhancing
the eficiency of the judicial system by mining and reasoning about the process underlying the handling
of legal proceedings. We employed process mining techniques to analyze the evolution of divorce
proceedings within an Italian Court, focusing on the period between 2013 and 2019. We identified
bottlenecks, superfluous activities, and diferent trends over the years. The findings reveal a significant
enhancement in process eficiency over the examined period, characterized by a substantial reduction
in median case processing times and an increased degree of process standardization. The emergence of
a dominant process variant in 2019 suggests successful implementation of streamlined procedures and
optimized resource allocation. Ultimately, this research underscores the potential of process mining,
exemplified by tools like Fluxicon Disco, in analyzing and optimizing intricate court operations. By
unveiling previously hidden patterns and ineficiencies, these user-friendly tools empower, for instance,
courts’ administration to make data-driven decisions and spearhead positive transformations within the
court system. Future research can build on these findings to support decision makers (e.g., Presidents
of Courts) in streamlining legal processes by promoting standardization, eficiency, and data-driven
decision-making. Indeed, this is one of the main goals of process mining, and more in general, business
process management [
        <xref ref-type="bibr" rid="ref1">1, 11</xref>
        ], also in other domains. It also promises to support legal reform by
datadriven evidence for identifying sources of relevant problems in the legal process and possible solutions.
improve the eficiency of the legal sector. By leveraging the potential of process mining, legal institutions
may embark on a data-driven journey towards continuous process improvement and enhanced service
delivery. In particular, we leave for future works deeper analyses on the impact of COVID’19 in
the proceedings in 2020. Furthermore, deeper domain-specific considerations are necessary: some
proceedings simply have to take longer due to case-by-case needs, independently of ineficiencies.
For example, if the Court finds that the agreement among the spouses is not in the best interests of
the ofspring, the President of the Court shall nominate an investigating judge to whom the case is
referred. Finally, it might be useful to involve the Chanchellery of the considered Court to gain a deeper
understanding of certain aspects of the studied process by those who have actually managed these
processes.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>The work has been partially supported by project SMaRT COnSTRUCT (CUP J53C24001460006), in the
context of FAIR (PE0000013, CUP B53C22003630006) under the National Recovery and Resilience Plan
(Mission 4, Component 2, Line of Investment 1.3) funded by the European Union - NextGenerationEU.
volume 12076 of Lecture Notes in Computer Science, Springer, 2020, pp. 378–399. URL: https:
//doi.org/10.1007/978-3-030-45234-6_19. doi:10.1007/978-3-030-45234-6\_19.
[5] H. A. López, R. Strømsted, J. Niyodusenga, M. Marquard, Declarative process discovery: Linking
process and textual views, in: S. Nurcan, A. Korthaus (Eds.), Intelligent Information Systems
- CAiSE Forum 2021, Melbourne, VIC, Australia, June 28 - July 2, 2021, Proceedings, volume
424 of Lecture Notes in Business Information Processing, Springer, 2021, pp. 109–117. URL: https:
//doi.org/10.1007/978-3-030-79108-7_13. doi:10.1007/978-3-030-79108-7\_13.
[6] S. Debois, H. A. López, T. Slaats, A. A. Andaloussi, T. T. Hildebrandt, Chain of events: Modular
process models for the law, in: B. Dongol, E. Troubitsyna (Eds.), Integrated Formal Methods - 16th
International Conference, IFM 2020, Lugano, Switzerland, November 16-20, 2020, Proceedings,
volume 12546 of Lecture Notes in Computer Science, Springer, 2020, pp. 368–386. URL: https:
//doi.org/10.1007/978-3-030-63461-2_20. doi:10.1007/978-3-030-63461-2\_20.
[7] C. W. Günther, A. Rozinat, Disco: discover your processes, in: proceedings of demonstration
track of the 10th international conference on Business Process Management, BPM Demos'12,
Tallinn, Estonia, Springer-Verlag, Berlin, Heidelberg, Tallinn, Estonia, 2012, pp. 40–44. https:
//research.tue.nl/en/publications/disco-discover-your-processes.
[8] D. Licari, G. Comandé, ITALIAN-LEGAL-BERT models for improving natural language processing
tasks in the italian legal domain, Comput. Law Secur. Rev. 52 (2024) 105908. URL: https://doi.org/
10.1016/j.clsr.2023.105908. doi:10.1016/J.CLSR.2023.105908.
[9] A. J. Unger, J. F. d. S. Neto, M. Fantinato, S. M. Peres, J. Trecenti, R. Hirota, Process mining-enabled
jurimetrics: analysis of a brazilian court’s judicial performance in the business law processing,
in: Proceedings of the Eighteenth International Conference on Artificial Intelligence and Law,
ICAIL ’21, Association for Computing Machinery, New York, NY, USA, 2021, p. 240–244. URL:
https://doi.org/10.1145/3462757.3466137. doi:10.1145/3462757.3466137.
[10] B. Pernici, M. Dilettis, P. Gerosa, A. Campi, Why are italian trials taking so long? A process
mining approach, in: F. Falchi, F. Giannotti, A. Monreale, C. Boldrini, S. Rinzivillo, S. Colantonio
(Eds.), Proceedings of the Italia Intelligenza Artificiale - Thematic Workshops co-located with the
3rd CINI National Lab AIIS Conference on Artificial Intelligence (Ital IA 2023), Pisa, Italy, May
29-30, 2023, volume 3486 of CEUR Workshop Proceedings, CEUR-WS.org, 2023, pp. 284–289. URL:
https://ceur-ws.org/Vol-3486/34.pdf.
[11] W. M. P. van der Aalst et al., Process mining manifesto, in: F. Daniel, K. Barkaoui, S.
Dustdar (Eds.), Business Process Management Workshops, Revised Selected Papers, volume 99 of
Lecture Notes in Business Information Processing, Springer, 2011, pp. 169–194. doi:10.1007/
978-3-642-28108-2\_19.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>W. M. van der Aalst</surname>
          </string-name>
          , Process Mining, 2nd ed., Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Wil</surname>
            <given-names>Van der</given-names>
          </string-name>
          <article-title>Aalst and Roberto Gatta and Carlos Fernandez Llatas and others, Process mining for healthcare</article-title>
          , https://www.processmining4healthcare.org/, Access:
          <year>September 2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H. A.</given-names>
            <surname>López</surname>
          </string-name>
          ,
          <article-title>Challenges in legal process discovery</article-title>
          , in: A.
          <string-name>
            <surname>Marrella</surname>
          </string-name>
          , D. T. Dupré (Eds.),
          <source>Proceedings of the 1st Italian Forum on Business Process Management co-located with the 19th International Conference of Business Process Management (BPM</source>
          <year>2021</year>
          ), Rome, Italy,
          <year>September 10th</year>
          ,
          <year>2021</year>
          , volume
          <volume>2952</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>68</fpage>
          -
          <lpage>73</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2952</volume>
          /paper_302a.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>H. A.</given-names>
            <surname>López</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Debois</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Slaats</surname>
          </string-name>
          , T. T. Hildebrandt,
          <article-title>Business process compliance using reference models of law</article-title>
          , in: H.
          <string-name>
            <surname>Wehrheim</surname>
          </string-name>
          , J. Cabot (Eds.), Fundamental Approaches to Software Engineering - 23rd International Conference, FASE 2020,
          <article-title>Held as Part of the European Joint Conferences on Theory and Practice of Software</article-title>
          ,
          <source>ETAPS</source>
          <year>2020</year>
          , Dublin, Ireland,
          <source>April 25-30</source>
          ,
          <year>2020</year>
          , Proceedings,
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>