<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">SpeciAL4PM: Species Analysis of Event Logs for Process Mining</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Martin</forename><surname>Kabierski</surname></persName>
							<email>martin.kabierski@hu-berlin.de</email>
							<affiliation key="aff0">
								<orgName type="institution">Humboldt-Universität zu Berlin</orgName>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="department">Weizenbaum-Institut</orgName>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Christian</forename><surname>Imenkamp</surname></persName>
							<email>christian.imenkamp@uni-bayreuth.de</email>
							<affiliation key="aff2">
								<orgName type="institution">University of Bayreuth</orgName>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Agnes</forename><surname>Koschmider</surname></persName>
							<email>agnes.koschmider@uni-bayreuth.de</email>
							<affiliation key="aff2">
								<orgName type="institution">University of Bayreuth</orgName>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Matthias</forename><surname>Weidlich</surname></persName>
							<email>matthias.weidlich@hu-berlin.de</email>
							<affiliation key="aff0">
								<orgName type="institution">Humboldt-Universität zu Berlin</orgName>
							</affiliation>
						</author>
						<title level="a" type="main">SpeciAL4PM: Species Analysis of Event Logs for Process Mining</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">BE535E32891A5DAA4D16F96A12861842</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2025-04-23T17:03+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Event Log Analysis, Log Completeness, Log Diversity, Process Mining (M. Weidlich) 0000-0002-9852-7489 (M. Kabierski)</term>
					<term>0009-0007-4295-1268 (C. Imenkamp)</term>
					<term>0000-0001-8206-7636 (A. Koschmider)</term>
					<term>0000-0003-3325-7227 (M. Weidlich)</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>We present SpeciAL4PM (Species Analysis of Event Logs for Process Mining), a Python library for the analysis and visualization of event logs that incorporates notions of biodiversity research. Under this view, SpeciAL4PM enables the quantification of the completeness of event logs and the estimation of the diversity of the system from which the log originates. We supplement SpeciAL4PM with a web-based implementation, named SpeciAL4PM-live , that facilitates the use of the library without the need for programming, thereby supporting users in the exploration of their event data.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Event logs, whether they are created by the execution of process-centric information systems or by simulation of process models, build the foundation of process analysis <ref type="bibr" target="#b1">[1]</ref>. Yet, these event logs are only samples of the underlying (information) system that generated them. Hence, they cannot be assumed to be complete with respect to the recorded behavioural characteristics a-priori. This incompleteness, influenced by the size of the event log and the diversity of the behavioural characteristics of interest, may skew any analysis proportional to the diversity of these characteristics, i.e., incomplete logs may yield false insights. Thus, to draw trustworthy conclusions, one shall quantify (i) the completeness of an event log with respect to the relevant characteristics and (ii) the expected diversity of them, independent of the given log.</p><p>In recent work <ref type="bibr" target="#b2">[2,</ref><ref type="bibr" target="#b3">3]</ref>, we showed how to quantify both completeness and diversity by employing biodiversity estimators. Those treat event logs as samples of observed species that are obtained under appropriate sampling models, and estimate properties of the species population therefrom. In particular, we considered diversity under different behavioural abstractions, i.e., log species, using a diversity profile based on asymptotic Hill numbers <ref type="bibr" target="#b4">[4]</ref>. It captures properties of the observed distribution of species, based on their occurrence frequencies in the We also presented a completeness profile to quantify log completeness in absolute and relative terms.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Diversity Profile</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Completeness Profile</head><p>To facilitate the analysis of event logs when considering them as samples of some population of species, in this work, we propose SpeciAL4PM (Species Analysis of Event Logs for Process Mining), a Python library for quantifying and visualizing the completeness profile and the diversity profile of an event log. We complement the library with SpeciAL4PM-live , a web-based tool for the main functions of SpeciAL4PM , which allows a user to upload an event log and explore the completeness and diversity estimates, thus enabling an easy-to-use, coding-free application of the respective measures. With SpeciAL4PM , a user can assess the completeness and diversity of an event log, incorporate these factors in their event log analysis, and be confident that obtained insights are supported by sufficiently complete data.</p><p>In the remainder, in Section 2, we discuss the features of SpeciAL4PM and explain how the library is used. Then, in Section 3 we discuss SpeciAL4PM-live , before discussing the availability and maturity of the tool in Section 4. Lastly, we conclude in Section 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">SpeciAL4PM</head><p>SpeciAL4PM enables the calculation and visualization of species abundance curves, completeness profiles and diversity profiles for different species definitions, as illustrated in Figure <ref type="figure">1</ref> and proposed in <ref type="bibr" target="#b3">[3]</ref>. Currently, SpeciAL4PM supports the analysis of event logs in .xes-format. Below, we outline the functionality in more detail. Species Retrieval A species retrieval function captures the behavioral properties of interest of the event log per trace. These properties serve as the basis for the following species-based analysis tasks. Currently, SpeciAL4PM supports observed activities, directly-follows relations, n-grams and trace variants, but users can provide their own species definitions as well. Furthermore, users can specify multiple species definitions per log, facilitating the efficient computation and comparison of different behavioural properties.</p><p>Rank Abundance Curves A rank abundance curve visualizes the distribution of retrieved species in the event log and provides a graphical representation of distribution characteristics and the diversity of the event log. It serves as the basis for following species analysis tasks.</p><p>Diversity Profile A diversity profile summarizes the diversity of an event log and the estimated diversity of the complete system. Currently, SpeciAL4PM captures the diversity profile of an event log using observed Hill numbers and estimated asymptotic Hill numbers <ref type="bibr" target="#b4">[4]</ref>. Hill numbers are a set of measures by a diversity order 𝑞, that quantifies different aspects of an event log's diversity. Intuitively, the larger 𝑞, the more emphasis is put on the most frequent species. The Hill number of order 𝑞 = 0 equals species richness, i.e. the number of observed distinct species in the event log and the number of estimated distinct species in the system. Hill numbers of order 𝑞 = 1 and 𝑞 = 2 correspond to the exponential of Shannon Entropy and the Inverse of Simpsons Diversity Index, two commonly used diversity measures. These can also be quantified for the observed event log and for the complete system correcting the estimate for unobserved species.</p><p>Completeness Profile Based on the rank abundance curve, a completeness profile quantifies the completeness of the event log for different dimensions. In particular, SpeciAL4PM allows for the quantification of the event log's completeness, coverage and expected sampling effort. Completeness quantifies the fraction of expected species in the system, that are observed in the event log, while coverage quantifies the probability space of all species, that the observed species in the log take up. Both measures capture completeness in absolute and relative dimensions. Lastly, SpeciAL4PM allows the estimation of the expected additional sampling effort needed until the log reaches a target completeness. All measures, sample-based and estimated, are implemented using the common sampling models, i.e. the abundance data model and the incidence data model, as described in <ref type="bibr" target="#b3">[3]</ref>, and the expected difference between both models is quantified.</p><p>In Figure <ref type="figure" target="#fig_0">2</ref>, we illustrate how to calculate and assess the profiles and curves for the publicly available Sepsis Cases event log <ref type="bibr" target="#b5">[5]</ref> using SpeciAL4PM . First, an estimator object is created (line 9), specifying after how many traces the proposed metrics shall be updated. Then, two species retrieval functions are registered (lines 12-13), one considering activities per trace, and one considering directly-follows relations per trace, before the profiles and rank abundance curves for both species retrieval functions are computed (lines 6 and 16). Finally, the obtained measures can be printed (line 19), saved to a pandas data frame (line 21) or visualized (lines 23-25). The obtained profiles for the directly-follows species are illustrated in Figure <ref type="figure" target="#fig_1">3</ref>. Additionally, SpeciAL4PM supports the considerations of only a subset of the proposed measures and additional visualization functions not shown here.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">SpeciAL Online</head><p>Additionally, for ease of use, we present SpeciAL4PM-live , a web-based tool for the main functionalities of SpeciAL4PM , which can be used for quantifying species information of an event log without the need for programming. Users can upload an event log, for which then  profiles and abundance curves for different species retrieval functions are calculated and shown, as illustrated in Figure <ref type="figure" target="#fig_2">4</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Availability</head><p>SpeciAL4PM is distributed via the Python Package Index<ref type="foot" target="#foot_0">1</ref> and can be installed from the command line interface. SpeciAL4PM-live can be accessed using a web browser. <ref type="foot" target="#foot_1">2</ref> Furthermore, the source code for both versions is available on GitHub<ref type="foot" target="#foot_2">3</ref> under the MIT license. Lastly, we provide a screencast showcasing the usage of both SpeciAL4PM and SpeciAL4PM-live . <ref type="foot" target="#foot_3">4</ref> We intend to update both SpeciAL4PM and SpeciAL4PM-live as new use cases for the species-based analysis of event logs and process data emerge. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>In this demo, we propose SpeciAL4PM , a library for the analysis of event logs that adopts notions from biodiversity research. The library enables the retrieval of species from an event log, the subsequent calculation of diversity profiles and completeness profiles, and the visualization of species distributions and profiles.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: Example Code for analyzing an event log using multiple species definitions.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Figure 3 :</head><label>3</label><figDesc>Figure 3: Diversity and Completeness Profile of Sepsis Cases.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Figure 4 :</head><label>4</label><figDesc>Figure 4: A partial view of SpeciAL4PM-live after the Sepsis Cases event log has been uploaded.</figDesc><graphic coords="5,130.96,84.19,333.33,164.75" type="bitmap" /></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">https://pypi.org/project/special4pm/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1">https://martinkabierski.shinyapps.io/special4pm-live/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2">https://github.com/MartinKabierski/SpeciAL-core, https://github.com/MartinKabierski/SpeciAL</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3">https://youtu.be/HVtvLeQ8cQI</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgments</head><p>This work was partly supported by the German Federal Ministry of Education and Research (BMBF), grant number 16DII133 (Weizenbaum-Institute). This work received funding by the Deutsche Forschungsgemeinschaft (DFG), FOR 5495, grant The responsibility for the content of this publication remains with the authors.</p></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">2 − gram &quot; ) r , &quot; 2 − gram &quot; ) References</title>
	</analytic>
	<monogr>
		<title level="m">r</title>
				<imprint/>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Process mining</title>
		<author>
			<persName><forename type="first">W</forename><surname>Van Der Aalst</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Communications of the ACM</title>
		<imprint>
			<biblScope unit="volume">55</biblScope>
			<biblScope unit="page" from="76" to="83" />
			<date type="published" when="2012">2012</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Addressing the log representativeness problem using species discovery</title>
		<author>
			<persName><forename type="first">M</forename><surname>Kabierski</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Richter</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Weidlich</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">2023 5th International Conference on Process Mining (ICPM), IEEE</title>
				<imprint>
			<date type="published" when="2023">2023</date>
			<biblScope unit="page" from="65" to="72" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<title level="m" type="main">Quantifying and relating the completeness and diversity of process representations using species estimation</title>
		<author>
			<persName><forename type="first">M</forename><surname>Kabierski</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Richter</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Weidlich</surname></persName>
		</author>
		<idno>SSRN 4790484</idno>
		<imprint>
			<date type="published" when="2024">2024</date>
		</imprint>
	</monogr>
	<note type="report_type">Available at</note>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Rarefaction and extrapolation with hill numbers: a framework for sampling and estimation in species diversity studies</title>
		<author>
			<persName><forename type="first">A</forename><surname>Chao</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><forename type="middle">J</forename><surname>Gotelli</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Hsieh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><forename type="middle">L</forename><surname>Sander</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Ma</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><forename type="middle">K</forename><surname>Colwell</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">M</forename><surname>Ellison</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Ecological monographs</title>
		<imprint>
			<biblScope unit="volume">84</biblScope>
			<biblScope unit="page" from="45" to="67" />
			<date type="published" when="2014">2014</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Sepsis cases-event log</title>
		<author>
			<persName><forename type="first">F</forename><surname>Mannhardt</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Eindhoven university of technology</title>
		<imprint>
			<biblScope unit="volume">10</biblScope>
			<date type="published" when="2016">2016</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
