0% found this document useful (0 votes)
19 views31 pages

Business Process Analytics in R Guide

This document discusses business process analytics using R. It introduces process analytics and describes business processes and event data. The document outlines the typical workflow of process analysis, including extraction of event data from raw data, processing and enriching the event data, and analyzing the data. Examples are provided on analyzing an event log of an online learning process, including exploring activities, sequences of activities, and components of process data like cases, activities, events, and the event log structure. The goal is to help readers gain hands-on experience with business process analytics in R.

Uploaded by

Mohit Parihar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views31 pages

Business Process Analytics in R Guide

This document discusses business process analytics using R. It introduces process analytics and describes business processes and event data. The document outlines the typical workflow of process analysis, including extraction of event data from raw data, processing and enriching the event data, and analyzing the data. Examples are provided on analyzing an event log of an online learning process, including exploring activities, sequences of activities, and components of process data like cases, activities, events, and the event log structure. The goal is to help readers gain hands-on experience with business process analytics in R.

Uploaded by

Mohit Parihar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Introduction to Process
Analytics

Gert Janssenswillen
Creator of bupaR
DataCamp Business Process Analytics in R

Business Processes
DataCamp Business Process Analytics in R

Event data
DataCamp Business Process Analytics in R

Process data
DataCamp Business Process Analytics in R

Why?
DataCamp Business Process Analytics in R

What?
DataCamp Business Process Analytics in R

Who?
DataCamp Business Process Analytics in R

Process analysis workflow

1. Extraction: transform raw data into event data


2. Processing: enrich and filter event data
3. Analysis: gain useful insights in the process
DataCamp Business Process Analytics in R

Event Data Extraction

From raw data to event data


DataCamp Business Process Analytics in R

Event Data Preprocessing

Aggregation: remove redundant details Enrichment: add useful data attributes

Filtering: focus your analysis


DataCamp Business Process Analytics in R

Event Data Analysis

Organizational Control-flow

Performance And also

Multivariate analysis
Include additional data attributes
DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Let's practice!
DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Activities as cornerstones
of processes

Gert Janssenswillen
Creator of bupaR
DataCamp Business Process Analytics in R

Example: Online learning


DataCamp Business Process Analytics in R

A first glimpse of the event log

Getting an idea about the event log scope

How many cases are described?


How many distinct activities are performed?
How many events are recorded?
What is the time period in which the data is recorded?
DataCamp Business Process Analytics in R

A first glimpse of the event log


library(bupaR)

This information can be viewed by printing the summary of an event log

summary(learning)

or using count functions.

> n_cases(learning)
498
> n_activities(learning)
10
> n_events(learning)
3645
DataCamp Business Process Analytics in R

Activities

Activities describe the flow of the process

Which actions are performed?


In what order are they performed?
DataCamp Business Process Analytics in R

Exploring activities
> activity_labels(learning)

[1] "Consult Dictionary" "Consult Theory Pages" "Exercise 1"


[4] "Exercise 2" "Exercise 3" "Exercise 4"
[7] "Exercise 5" "Exercise 6" "Exercise 7"
[10] "Assessment"
DataCamp Business Process Analytics in R

Exploring activities
activities(learning)

# A tibble: 10 x 3
action absolute_frequency relative_frequency
<chr> <dbl> <dbl>
1 Exercise 1 516 0.142
2 Assessment 498 0.137
3 Exercise 2 493 0.135
4 Exercise 4 442 0.121
5 Exercise 3 436 0.120
6 Exercise 5 360 0.0988
7 Exercise 6 302 0.0829
8 Exercise 7 299 0.0820
9 Consult Dictionary 165 0.0453
10 Consult Theory Pages 134 0.0368
DataCamp Business Process Analytics in R

Exploring sequences of activities

Each case is described by a sequence of activities, its trace.


DataCamp Business Process Analytics in R

Exploring sequences of activities


A frequency table of traces can be retrieved with the traces function
traces(learning)

They can be visualized using the trace_explorer function


trace_explorer(learning)
DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Let's practice!
DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Components of process
data

Gert Janssenswillen
Creator of bupaR
DataCamp Business Process Analytics in R

Cases and activities


DataCamp Business Process Analytics in R

Activity instances

Activity instance = occurence of an activity


DataCamp Business Process Analytics in R

Events
DataCamp Business Process Analytics in R

Event log
DataCamp Business Process Analytics in R

Resources
DataCamp Business Process Analytics in R

Recap: event log


DataCamp Business Process Analytics in R

Create event log object

event_data %>%
eventlog(case_id = "patient",
activity_id = "handling",
activity_instance_id = "handling_id",
timestamp = "time",
lifecycle_id = "registration_type",
resource = "employee")
DataCamp Business Process Analytics in R

BUSINESS PROCESS ANALYTICS IN R

Let's practice!

You might also like