TL;DR
This paper introduces EdgeMiner, a novel distributed process mining algorithm that processes event data directly at the source (e.g., IoT sensors). By doing so, it significantly enhances scalability and privacy compared to traditional centralized approaches, enabling efficient process discovery and conformance checking in resource-constrained environments.
What Problem Does This Paper Address?
Process mining, a technique for discovering and analyzing business processes from event logs, traditionally relies on collecting all event data into a central location. This approach faces significant challenges with the explosion of data generated by the Internet of Things (IoT). IoT devices produce massive volumes of data at high velocities, making centralized storage and processing infeasible due to limitations in storage capacity, network bandwidth, and computational power. Furthermore, centralizing sensitive event data raises significant privacy concerns. Existing distributed process mining methods often still require data to be collected centrally or only distribute parts of the computation, failing to address the core issue of in-network processing at the data source.
Methods
EdgeMiner tackles this problem by decentralizing process mining directly to the sensor nodes. The core idea is to process events at their origin and only exchange aggregated information.
- Distributed Footprint Matrix Construction: Instead of a central entity building a complete footprint matrix (FM), each sensor node maintains a partial FM. When a node detects an event, it locally determines the predecessor and successor events within the same case. This information is used to update its local, partial FM.
- In-Network Communication: Nodes communicate with each other to identify predecessors. To optimize this, EdgeMiner employs a "Most-Frequent-Predecessors" (MFP) strategy, querying nodes that are statistically most likely to have the predecessor event first.
- Batching: To further reduce communication overhead, predecessor queries are batched. Instead of sending a query for every single event, nodes accumulate events and send queries in batches.
- Phase 1 (Event Ordering & Partial FMs): This phase runs continuously. Nodes store events, query peers for predecessors, update their local partial FMs, and flag potential start/end events.
- Phase 2 (Footprint Matrix Request): When a complete FM is needed, a central entity requests the partial FMs from all nodes. These partial FMs are then concatenated to form the complete FM.
This approach ensures that raw event data never leaves the sensor node, and only aggregated partial FMs are exchanged, preserving privacy and reducing network load.
Datasets
The paper evaluates EdgeMiner using five real-world datasets:
- Hospital Log [32]
- Sepsis Cases [18]
- IoT Event Log for Process Mining in Smart Factories [17]
- BPI Challenge 2017 [33]
- Road Traffic Fine Management Process [6]
These datasets are chosen to represent diverse scenarios, including large-scale logs with many activities and logs with characteristics like self-loops. The authors note that each activity in a dataset is treated as a distinct node in an IoT network for their experiments.
Key Insights and Ideas
- Data Locality is Key: The fundamental insight is that processing data where it's generated is not just an optimization but a necessity for handling IoT-scale event streams.
- Partial FMs are Sufficient for Aggregation: The paper demonstrates that by aggregating partial FMs from individual nodes, a complete and accurate global FM can be constructed, proving the correctness of the distributed approach.
- Predecessor Relationships are Sparse: A crucial finding is that in real-world processes, activities typically have a limited number of direct predecessors, and this relationship is relatively stable. This sparsity is what makes the MFP strategy highly effective.
- Rapid Convergence: Intermediate FMs generated by EdgeMiner quickly converge to the final FM of the entire event log, often reaching over 90% fitness with less than 5% of the events processed. This suggests that valuable insights can be gained early without processing the entire dataset.
Key Results
- Communication Overhead Reduction: EdgeMiner, especially with MFP and batching, significantly reduces communication overhead. Compared to a naive "query all nodes" approach, it achieves reductions of up to 96%. With batching of 40 events, the average number of queried nodes per event drops to less than 2.5% of all nodes.
- Scalability: By processing data at the source and only exchanging aggregates, EdgeMiner is highly scalable for IoT environments.
- Privacy Preservation: Raw event data remains on the sensor nodes. Only aggregated partial FMs are shared, preventing the exposure of sensitive individual event traces.
- Correctness: Analytical proofs and experimental validation confirm that EdgeMiner produces identical FMs to centralized approaches.
- Efficiency: The algorithm enables efficient process discovery and online conformance checking by leveraging distributed computation and data locality.
Limitations and Future Work
- Assumptions: The paper assumes events have case ID, activity name, and timestamp, and that timestamps within a case are distinct. It also assumes nodes can communicate and have synchronized clocks. While these are common in IoT, deviations might require adaptations.
- Virtual Nodes: The current design assumes each node handles one activity type. The authors mention that virtual nodes can extend this to handle multiple activity types per node, which could be a direction for future work.
- Network Topology: The paper assumes a network where nodes can reach each other, either directly or via the internet, and that membership management is available. More complex or dynamic network scenarios might present challenges.
- Further Optimization: While batching and MFP are introduced, further optimizations for communication and resource management in highly constrained IoT environments could be explored.
The paper concludes by highlighting EdgeMiner's potential to revolutionize process mining in IoT by offering a scalable, private, and efficient solution for understanding complex event streams at their source.
Summary updated