This document discusses using R for data science to analyze a case study on business processes in the Silver Economy sector. It covers preparing event log data from CSV files, performing exploratory analysis on the event log, visualizing processes and dashboards, and applying process mining techniques like process discovery and conformance checking. The case study examines a process for qualifying and assessing risk levels from alerts in a system for automatic falls detection in elderly users.
2. Who am I?
Software Engineer
PhD candidate in computer science
* Business Process Management
* Process mining
* R
* ‘Complex’ Event Processing
R-Ladies Rabat organizer
3. If interested in giving a presentation in our
next R-Ladies Rabat meet-up :
abir@rladies.org
Picture by melusineh
9. Event log
• Each event log must have at least six key pieces of information:
– Case identifier,
– Activity identifier,
– Activity instance identifier,
– Transactional life cycle stage,
– Resource identifier,
– Timestamp of the event
Event data model
Picture by bupar
Event log example
17. • Tidyverse : a coherent system of packages that facilitates the data analysis workflow.
• BupaR: a collection of packages used for business process analysis.
19. First Step : Tidy Data
Picture by : @jcheng
Tidy data :
- A column is a variable
- A row is an observation
- A cell is a single value
Correct date and time format
….
Missing value - NA
20. Second Step : Creating event logs
https://bupar.net/materials/20170904%20poster%20bupaR.pdf
26. Case study: Silver Economy
→ New industrial sector, launched in 2013 in France.
→ To create new services and technologies.
→ To improve disability-free life expectancy and help elderly people.
Picture by :Savoir
27. Case study: Silver Economy
Past events Now
Time
→ Video monitoring company that edits an
automatic falls detection system for elderly
people.
→ Achieve a real-time falls management for
elderly people and a quick rescue without the
intervention of the person in danger.
28. Case study: Silver Economy
Qualification and Assessment of the risk level of alerts Process
30. Creating event logs : Adjusting Event log requirements
Install the
necessary
packages
Loading these
packages
31. Creating event logs : Adjusting Event log requirements
Install the
necessary
packages
Loading these
packages
Read CSV file
into R
32. Creating event logs : Adjusting Event log requirements
Install the
necessary
packages
Loading these
packages
Read CSV file
into R
Make
necessary
adjustements
36. Exploratory and Descriptive Event log Analysis
Get a summary
about the event
log
Get the number of
activities in the event log
37. Exploratory and Descriptive Event log Analysis
Get a summary
about the event
log
Get the number of
activities in the event log
Get number of cases in
the event log
38. Exploratory and Descriptive Event log Analysis
Get a summary
about the event
log
Get the number of
activities in the event log
Get number of cases in
the event log
Get number of traces in
the event log
39. Get further details abouts
the event log cases
Exploratory and Descriptive Event log Analysis
Tibble
47. Resources
l R for data science, Hadley Wickham , Garrett Grolemund
l https://r4ds.had.co.nz/
l https://www.tidyverse.org/
l Process Mining : Data Science in Action, Wil van der Aalst
l https://bupar.net/