The NHS Python Community team met up with Qian Huang - Chief Impact Officer & Co-Founder @ Logan Tod & Co. [1] at the Confed Expo in Liverpool earlier this year to discuss the use of ‘process mining’ in the NHS.

What is Process Mining

Process mining is a technique to analyse and monitor processes. A ‘process’ can be thought of as a collection of discrete activities or events. The end goal of process mining is to provide actionable operational insights and ultimately help optimise the whole process [2]. This can involve:

  • Identifying hidden nodes and bottlenecks in business processes
  • Checking the conformance [3] of a process to a reference model
  • Making predictions about the future state of the process [2]. The method a well proven analytical technique and has seen widespread adoption in industry [1].

[3]Conformance” is a metric that measures a whether process that falls within an acceptable limit.

Process Mining in a Healthcare Setting

In a healthcare setting, process mining can be used to analyse patient pathways. For example, in elective care, patients start a pathway with a referral, moving them between different appointments and procedures, before completing their journey with a discharge [1].

Example patient flow visualisation
Figure 1. Example patient flow visualisation

Figure 1. shows a visualisation of an example patient pathway developed using process mining. Qian and her team have found that once everybody can see the reality of the patient journey it is much easier to collaborate, identify appropriate actions, and deliver real improvement [1].

Process Mining in Python

PM4Py styles it self as the state-of-the-art open-source process mining platform written in Python [4]. Developed by the Fraunhofer Institute for Applied Information Technology (FIT). The advantage of PM4Py being a python library is that it allows for easy integration of process mining with other machine learning algorithms in scikit-learn.

Video 1. Process Mining in Python | PyData Eindhoven 2019
Video 2. pm4py tutorials - What is Process Mining

Other Python PM Resources

  • Awesome Process Mining with Python Awesome [5]
  • Process Mining with Python tutorial: A Healthcare Application by ‘c3d3’[6];
    • Part 1: Introduction, preprocessing and data exploration.
    • Part 2: Process discovery using the PM4Py library.
    • Part 3: Other process discovery algorithms and model representations.
    • Part 4: Control flow, bottlenecks, wait times, capacity, and case attributes.

References