Submitted:
23 May 2024
Posted:
24 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Background and Related Work
2.1. Process Mining and Network Event Data
- Rich Information Source: Network data contains information generated by interconnected devices and systems. It captures interactions and communications between entities, providing a detailed record of activities and their sequence.
- Granularity and Detail: Network data often offer granular insights into the flow of activities and dependencies among different elements within a system. This information can be valuable for reconstructing processes accurately.
- Real-Time and Continuous Data: Networks continuously generate data in real-time as activities occur, providing an up-to-date and comprehensive view of ongoing processes. This real-time nature enables immediate analysis of process deviations or inefficiencies.
- Comprehensive Coverage: Network data often covers various activities, including structured and unstructured data, allowing for a holistic view of processes.
- Interconnection of Systems: In many cases, processes are interconnected across various systems or devices. Analyzing network data helps understand the interactions and dependencies among these systems, offering insights into end-to-end processes.
2.2. OPC UA Protocol
| Secure Channel Layer (A) | optional |
|---|---|
| Message Header (C) | fixed size |
| Message Type | 4 bytes |
| Message Size | 4 bytes |
| Secure Channel ID | 4 bytes |
| Security Flag | 4 bytes |
| Additional Header | variable size |
| Message Body (D) | variable size |
| ReadRequest/ReadResponse (E) | variable size |
| (a) OPC UAReadRequest | |
| Request Header | |
| Type ID | 4 bytes |
| Request Handle | 4 bytes |
| Timestamp | 8 bytes |
| NodesToRead | variable |
| (b) OPC UAReadResponse | |
| Response Header | |
| Type ID | 4 bytes |
| Request Handle | 4 bytes |
| Timestamp | 8 bytes |
| Results | variable |
2.3. Related Work
| Reference | Input data | Log generation | Automation | Model |
|---|---|---|---|---|
| Wakup & Desel [12] | Simulated | Rule-based | ![]() |
Petri net |
| Engelberg et al. [10] | Simulated | Rule-based | ![]() |
BPMN |
| Hadad et al. [11] | Simulated | Model-based | ![]() |
Event log |
| Apolinário et al. [13] | Simulated | Model/rule-based | ![]() |
BPMN |
| Lange & Möller [14] | Simulated | Model-based | ![]() |
BPMN |
| Lange et al. [15] | Simulated | Model-based | ![]() |
BPMN |
| Empl et al. [16] | Simulated | Rule-based | ![]() |
Petri net |
| Our paper | Real world | Rule-based | ![]() |
BPMN |
semi-automated
fully automatedRule-Based Techniques
Model-Based Techniques
3. OPC UA Process Discovery Method

3.1. Data Collection and Pre-Processing
Collect
Understand
Pre-Processing
| Algorithm 1:Activity generation. |
![]() |
3.2. Rule-Based Event Log Generation
| Algorithm 2:Event log generation. |
![]() |
3.3. Process Discovery, Visualization and Analysis
4. OPC UA Mining Implementation
4.1. Software Design

4.2. Implementation Details
- Entrypoint.
- The analyze_packets() method is the entry point for event log generation, orchestrating data extraction, request handle matching, case ID assignment, and event log generation. It structures OPC UA communication for process mining and analysis.
- Data Loading.
- The load_data() method loads OPC UA communication data from a Wireshark JSON file, ensuring availability for subsequent methods.
- Data Extraction.
- Utilizing extract_tcp_data(), extract_ip_data(), and extract_eth_data(), this step extracts relevant data from packets at various ISO/OSI layers.
- Request Handle Matching.
- The match_request_handles() method matches request handles in OPC UA packets, establishing relationships between requests and responses and creating activities.
- Event Log Generation.
- The write_csv() method generates CSV event logs from extracted data for process mining or visualization.
- Case ID Assignment.
- The add_case_id() method assigns case IDs to matched arrays of OPC UA packets based on specific keys, facilitating subsequent process mining techniques.
5. Use Case: End-Of-Line Process
5.1. Data Collection and Pre-Processing
Collect
Understand
Pre-Processing

5.2. Rule-Based Event Log Generation and Process Mining
6. Evaluation
6.1. Results
Event Log Generation Performance

Process Model Quality
Operational Insights

6.2. Discussion
Limitations
Scientific Impact
Practical Impact
7. Conclusion
Acknowledgments
Appendix A. Directly-Follows Graph of the End-of-Line Process

References
- Boyes, H.; Hallaq, B.; Cunningham, J.; Watson, T. The industrial internet of things (IIoT): An analysis framework. Computers in industry 2018, 101, 1–12. [Google Scholar] [CrossRef]
- Hästbacka, D.; Barna, L.; Karaila, M.; Liang, Y.; Tuominen, P.; Kuikka, S. Device status information service architecture for condition monitoring using OPC UA. ETFA, 2015, pp. 1–7. [CrossRef]
- Shin, S.J. An OPC UA-Compliant Interface of Data Analytics Models for Interoperable Manufacturing Intelligence. IEEE Transactions on Ind. Inf. 2021; 2588–3598. [Google Scholar] [CrossRef]
- Schönig, S.; Hornsteiner, M.; Stoiber, C. Towards Process-Oriented IIoT Security Management: Perspectives and Challenges. Enterprise, Business-Process and Information Systems Modeling; Springer International Publishing: Cham, 2022; pp. 18–26. [Google Scholar]
- van der Aalst, W.M. Process Mining: Data Science in Action; Springer, 2016. [CrossRef]
- Bertrand, Y.; De Weerdt, J.; Serral, E. A bridging model for process mining and IoT. ICPM. Springer, 2021, pp. 98–110. [CrossRef]
- Seiger, R.; Franceschetti, M.; Weber, B. An interactive method for detection of process activity executions from iot data. Future Internet 2023, 15, 77. [Google Scholar] [CrossRef]
- Mangler, J.; Grüger, J.; Malburg, L.; Ehrendorfer, M.; Bertrand, Y.; Benzin, J.V.; Rinderle-Ma, S.; Serral Asensio, E.; Bergmann, R. DataStream XES extension: embedding IoT sensor data into extensible event stream logs. Future Internet 2023, 15, 109. [Google Scholar] [CrossRef]
- Dunzer, S.; Zilker, S.; Marx, E.; Grundler, V.; Matzner, M. The Status Quo of Process Mining in the Industrial Sector. WI. AISeL, 2021, pp. 629–644. [CrossRef]
- Engelberg, G.; Hadad, M.; Soffer, P. From network traffic data to business activities: a process mining driven conceptualization. BPMDS. Springer, 2021, pp. 3–18. [CrossRef]
- Hadad, M.; Engelberg, G.; Soffer, P. From Network Traffic Data to a Business-Level Event Log. BPMDS. Springer, 2023, pp. 60–75. [CrossRef]
- Wakup, C.; Desel, J. Analyzing a TCP/IP-protocol with process mining techniques. International Conference on Business Process Management. Springer, 2014, pp. 353–364. [CrossRef]
- Apolinário, F.; Escravana, N.; Hervé, É.; Pardal, M.L.; Correia, M. FingerCI: generating specifications for critical infrastructures. SIGAPP, 2022, pp. 183–186. [CrossRef]
- Lange, M.; Kuhr, F.; Möller, R. Using a deep understanding of network activities for workflow mining. KI. Springer, 2016, pp. 177–184. [CrossRef]
- Lange, M.; Möller, R. Time series data mining for network service dependency analysis. SOCO’16-CISIS’16-ICEUTE’16. Springer, 2017, pp. 584–594. [CrossRef]
- Empl, P.; Böhm, F.; Pernul, G. Process-Aware Intrusion Detection in MQTT Networks. Proceedings of the Fourteenth ACM Conference on Data and Application Security and Privacy (CODASPY ’24); ACM: New York, NY, USA, 2024; p. 12. [Google Scholar]
- Cook, J.E.; Wolf, A.L. Automating Process Discovery Through Event-Data Analysis. ICSE. ACM, 1995, pp. 73–82. [CrossRef]
- Mannhardt, F.; de Leoni, M.; Reijers, H.A.; van der Aalst, W.M.P.; Toussaint, P.J. Guided Process Discovery - A pattern-based approach. Inf. Syst. 2018, 76, 1–18. [Google Scholar] [CrossRef]
- Hevner, A.R.; March, S.T.; Park, J.; Ram, S. Design Science in Information Systems Research. MIS Q. 2004, 28, 75–105. [Google Scholar] [CrossRef]
- Wirth, R.; Hipp, J. CRISP-DM: Towards a standard process model for data mining. Proceedings of the 4th international conference on the practical applications of knowledge discovery and data mining. Manchester, 2000, Vol. 1, pp. 29–39.
- Mirza, M.N.; Pourzolfaghar, Z.; Shahnazari, M. Significance of Scope in Project Success. Procedia Technology 2013, 9, 722–729. [Google Scholar] [CrossRef]
- Hornsteiner, M.; Schönig, S. SIREN: Designing Business Processes for Comprehensive Industrial IoT Security Management. DESRIST. Springer, 2023, Vol. 13873, LNCS, pp. 379–393.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

