Generating Hidden Markov Models from Process Models Through Nonnegative Tensor Factorization

Erik Skau, Andrew Hollis, Stephan J. Eidenbenz, Kim Ø. Rasmussen, Boian S. Alexandrov

Abstract

Monitoring of industrial processes is a critical capability in industry and in government to ensure reliability of production cycles, quick emergency response, and national security. Process monitoring allows users to gauge the progress of an organization in an industrial process or predict the degradation or aging of machine parts in processes taking place at a remote location. Similar to many data science applications, we usually only have access to limited raw data, such as satellite imagery, short video clips, event logs, and signatures captured by a small set of sensors. To combat data scarcity, we leverage the knowledge of Subject Matter Experts (SMEs) who are familiar with the actions of interest. SMEs provide expert knowledge of the essential activities required for task completion and the resources necessary to carry out each of these activities. Various process mining techniques have been developed for this type of analysis; typically such approaches combine theoretical process models built based on domain expert insights with ad-hoc integration of available pieces of raw data. Here, we introduce a novel mathematically sound method that integrates theoretical process models (as proposed by SMEs) with interrelated minimal Hidden Markov Models (HMM), built via nonnegative tensor factorization. Our method consolidates: (a) theoretical process models, (b) HMMs, (c) coupled nonnegative matrix-tensor factorizations, and (d) custom model selection. To demonstrate our methodology and its abilities, we apply it on simple synthetic and real world process models.

Introduction

Industrial and government process monitoring often suffers from a significant gap between theoretical expectations and observable data. While Subject Matter Experts (SMEs) can define how a process should function, real-world data—such as sensor logs or satellite imagery—is frequently sparse and noisy. This data often fails to directly reveal the underlying "hidden" activities. Furthermore, while Hidden Markov Models (HMMs) are effective for modeling sequences with latent states, determining the optimal number of states (model selection) is an NP-hard problem. This paper introduces a framework to bridge these gaps by distilling expert-driven theoretical models into minimal, data-optimized HMMs.

Methodology: The Distillation Pipeline

The proposed method utilizes a multi-stage pipeline to transform high-level process descriptions into efficient mathematical models.

The proposed pipeline for generating minimal HMMs from theoretical process models.

The pipeline consists of five main stages:

  1. Theoretical Modeling: Experts define the process as a Directed Acyclic Graph (DAG), specifying activity durations and resource requirements.
  2. Simulation: Using the Simian engine, the framework generates large ensembles of event logs, augmenting scarce real-world data.
  3. Joint Probability Construction: Simulations are used to build a joint probability tensor $P(Y_{t-1}, Y_t, Y_{t+1})$ and a matrix $P(Y_t, Y_{t+1})$ of observed resource usages.
  4. Coupled Nonnegative Factorization: The core innovation involves simultaneously decomposing the matrix and tensor. By leveraging Nonnegative Tensor Factorization (NTF), the method exploits the uniqueness of tensor decompositions to identify the true rank, which corresponds to the number of hidden states.
  5. Stability-Based Model Selection: To ensure minimality, the system uses Silhouette scores to measure the stability of clusters across multiple perturbed runs.
Standard Hidden Markov Model (HMM) structure with hidden states X and observations Y.

Experimental Evaluation

The framework was tested across three distinct scenarios to validate its robustness:

  • Sequential Synthetic Model: Served as a baseline, where the method perfectly identified the 3 hidden states with near-zero reconstruction error and a Silhouette score near 1.0.
  • Concurrent Synthetic Model: Tested the ability to handle parallel activities. The algorithm identified that 4 states were sufficient to represent a 5-state expert model, successfully detecting redundant resource signatures that experts might overlook.
  • Dutch Bank Loan Application: Using the BPI Challenge 2012 dataset, the method identified 6 identifiable features. Validation via the Viterbi algorithm showed significant correlation (NMI ≈ 0.3) between predicted states and actual activities, even with highly simplified data.

Conclusion

This research demonstrates that tensor rank can serve as a powerful proxy for HMM model selection. By combining SME knowledge with rigorous linear algebra, the framework automatically simplifies complex process models into their most efficient HMM representations. Future work will address the limitations of current assumptions, such as exponentially distributed durations and infinite resource availability, to better reflect complex real-world logistics and resource contention.

Summary updated

BibTeX
@article{skau2022generating,
  author = {Erik Skau and Andrew Hollis and Stephan J. Eidenbenz and Kim Ø. Rasmussen and Boian S. Alexandrov},
  title = {{Generating Hidden Markov Models from Process Models Through Nonnegative Tensor Factorization}},
  journal = {ACM Trans. Model. Comput. Simul.},
  year = {2022},
  url = {https://openreview.net/forum?id=Y8otiucNU2},
}
Figure