Manuscript Offprint
arXiv:2610.24126Data-Driven Resource Aggregation for Scalable Digital Twin and Simulation Model Generation
Proceedings of the IISE Annual Conference & Expo 2026 Y. Xiang, D. Yu, R. Thiesing, eds.
Data-Driven Resource Aggregation for Scalable Digital Twin and Simulation Model Generation
Abstract ID: 16838
Yucheng Wu, Alp Akcay
Department of Mechanical and Industrial Engineering, Northeastern University, Boston, USA
Abstract
As industrial digitization accelerates, the use of digital twins has become widespread. However, modern manufacturing systems are highly dynamic and frequently reconfigured, making manual model development and updates increasingly difficult. Recent research on automated simulation model generation shows that historical data such as event logs can yield simulation models automatically. However, modeling every resource at full granularity leads to unnecessary complexity and computational cost. We propose a method for automatically selecting and aggregating resources to simplify simulation modeling. Our method uses ideas from inverse reinforcement learning to learn behavioral value representations of resources from production event logs. This process identifies and aggregates resources with similar functional contributions. Experiments on manufacturing systems, using throughput and system time as performance measures, demonstrate that value-based resource aggregation performs well when the goal is to substantially reduce complexity while preserving performance accuracy.
1. Introduction
Digital twin technology has emerged as a high-fidelity, real-time paradigm for simulating complex systems. By maintaining an up-to-date simulation model of the physical system, digital twins enable trend prediction, anomaly detection and predictive decision support in domains ranging from manufacturing to transportation [1,2]. However, building and maintaining simulation models of large-scale systems present significant challenges in terms of scalability and fidelity [3,4]. As system size and complexity increase, detailed simulation of every resource in the system can lead to excessive computational costs and model bloat. Conversely, overly coarse models may compromise fidelity [5,6].
In this work, we address the question of how to automatically construct the simplest simulation model that preserves an accurate representation of system-level performance. Our focus is a flexible flow shop (FFS) manufacturing system [7,8] controlled by a dispatching policy that assigns production jobs to resources. We utilize event logs from FFS to (1) learn the system's control policy, (2) identify appropriate resource aggregation schemes and (3) validate whether the simplified model can reproduce the key performance indicators (KPIs) of the original system.
The remainder of the paper is organized as follows. Section 2 provides an overview of related work on automated simulation model generation. Section 3 describes an FFS system and formulates its evolution over time as a Markov decision process (MDP). Section 4 introduces our proposed method, which leverages this MDP formulation and inverse reinforcement learning to learn a simulation model directly from event logs. Section 5 presents the numerical experiments, and Section 6 concludes the paper.
2. Related Work
Over the past two decades, various approaches have been proposed to achieve automated or self-updating simulation models, particularly in manufacturing systems. Mueller et al. [9] used Petri net data structures to automatically generate large-scale simulation models. Sommer et al. [10] achieved automated simulation model generation by performing object recognition and using predefined planning frameworks for the factory. Tan et al. [11] applied process mining and iteratively generated improved simulation models using new data. Reinhardt et al. [12] proposed a new classification of ASMG methods based on data input attributes. More recent studies have focused on improving the autonomy and intelligence of simulation models. Vernickel et al. [13] proposed using machine learning to identify specific parameters of processes in production systems. Pawletta and Bartelt [14] explored how to integrate discrete events into a reinforcement learning environment, where the environment is formulated as a Markov decision process. More recently, Krenczyk [15] used deep reinforcement learning methods to explore process allocation strategies and build production system models. Cimino et al. [16] systematically reviewed the development and application of so-called Automated Simulation Model Generation (ASMG) in manufacturing systems and emphasized that, although the concept of ASMG is not new, robust and widely applicable implementations are still at an early stage of development.
As the scale of systems addressed by ASMG increases, the idea of simplifying or aggregating parts of a model becomes increasingly attractive. Choudhary et al. [17] pointed out that clustering is an important data mining function and resource clustering using real production data is an area that requires further research for simulation models. Some studies address this problem by focusing on specific parts of the system and using higher-level approximations. Deenen et al. [18] proposed a data-driven aggregation model for wafer fabrication. They combined functional areas such as lithography and etching into a single server and calibrated the service time distribution based on the actual throughput of that area. This method allows for accurate estimation of cycle time distribution with less computational effort. Lugaresi and Matta [19] introduced a method for automatically extracting relevant features of a production system from event logs and aggregating activities that are not critical to system performance. Our work comes closest to Lugaresi and Matta [19] as we also use event logs as the only source of information for simulation model building. However, different from Lugaresi and Matta [19], we do not specify a priori objectives for guiding what level of detail to include in the simulation model. Instead, we use Inverse Reinforcement Learning (IRL) to learn how the system is controlled (i.e., dispatching policy), then use the learned value function to measure how similar machines are, and cluster similar ones together for state-space compression, guiding our resource aggregation in simulation model generation. To our knowledge, no previous research has integrated IRL into simulation-model generation process for digital twins.
3. Problem Description
A flexible flow shop (FFS) consists of sequential processing stages. At each stage , there is a set of unrelated parallel machines with stochastic processing times. Jobs arrive at stage 1, visit each stage sequentially, and leave the system after completing stage . Due to limited capacity and time-varying workload, the system may experience congestion. Work-in-progress inventory is held in a buffer area that exists between each stage. A key operational component of the FFS system is the dispatching policy, which is responsible for assigning jobs to available machines and may differ at each stage [20]. We assume that the dispatching policy is not necessarily known, which is often the case in practice as operators may deviate from any pre-specified dispatching rules for certain reasons. The problem is how to represent the FFS system under arbitrary dispatching rules in a way that is learnable from event logs (see Table 1) and suitable for accurately simulating the system.
4. Methodology
4.1. MDP Formulation and State Abstraction
We model dispatching in an FFS as a Markov decision process (MDP) inferred from event logs. A decision epoch occurs when a job is assigned to a machine, let denote the corresponding timestamp. From the event logs, we record the observable system state which includes current stage, queue length (local backlog relevant to the immediate dispatch decision) and work-in-process (total backlog at system level) at each decision epoch ; machine status is captured via the feasible action set, defined as the set of currently available machines in . We define a candidate state abstraction level , where is a finite set of possible abstraction levels. For the illustration of our method in Section 5, we will restrict our attention to a case with three distinct abstraction levels. In general, we specify the abstraction level of system state by mapping it to an abstract state via a parameterized abstraction function such that . The action represents the machine selected for dispatching at decision epoch. The feasible set of machines depends on the current stage . We estimate transition probabilities empirically from the event logs by counting transitions between consecutive decision epochs and normalizing the counts. We focus on the sequence of discrete decision epochs, forming state–action trajectories that reflect the dispatching behavior of FFS. That is, we reconstruct the dispatching process as a Markov Decision Process (MDP) from the event logs. In Section 4.2, IRL will be used to learn the reward structure of the MDP that would lead to the observed event logs.
Selecting an appropriate level of state abstraction enables more stable learning in IRL while preserving the necessary system dynamics. For each candidate state abstraction level , we used soft value iteration to calculate the value function under a provisional reward function. This yields a stochastic Boltzmann policy for the corresponding abstraction level. We then employed the learned policy to simulate the FFS and used negative log-likelihood (NLL) to measure the correctness of the actions simulated by this policy. Simulated key performance indicators such as throughput and system time are compared against those observed in the original event logs. Based on these two criteria, we selected the state abstraction level with lowest KPI error and used it for subsequent IRL.
4.2. IRL for Value-Based Resource Aggregation
Once the abstraction level is determined in the previous section, we use the corresponding abstract-state trajectories to infer the dispatching policy of FFS. We apply the maximum entropy IRL framework and assume a linear reward function based solely on the state: , where is the parameter vector and is a feature vector derived from the abstract state.
Given a candidate parameter vector , we use soft value iteration to compute the corresponding state–action value function and state value function . With Boltzmann policy, we compute candidate dispatching policy . is then estimated by iteratively updating to maximize the likelihood of the expert's observed dispatching actions. With the learned value functions and corresponding to , we define the advantage function as which measures the relative benefit of selecting machine compared to the baseline value in that state.
We define the advantage vector which is composed of across different states (same abstraction level ). Machines with similar advantage vector are considered to be behaviorally interchangeable and are therefore grouped into the same resource cluster by a clustering method (k-means).
4.3. Evaluating Aggregation Schemes via Simulation
Finally, we selected the optimal resource aggregation scheme through simulation-based evaluation. For each candidate clustering number, we constructed an aggregated simulation model where all machines in a cluster are represented as a single aggregated resource. The pooled resource capacity is defined as the total capacity of the machines in the cluster. The production process is then simulated using the learned policy. The simulation outputs (throughput and system time) are compared with the key performance indicators (KPIs) computed from the original event logs in the validation dataset. We select the smallest number of resource groups that can reproduce the observed system performance within an acceptable error range.
5. Result
We evaluate the proposed method using synthetic FFS event logs generated by discrete-event simulation as illustrated in Table 1. The FFS consists of K = 3 serial stages: 6 machines in stage 1, 8 machines in the stage 2 and 5 machines in the stage 3, with each machine having unit capacity. Inter-stage buffers are assumed to be infinite. Jobs arrive at stage 1 according to a Poisson process with exponentially distributed inter-arrival times of mean 8.0 time units. Each run releases N = 1200 jobs and ends after all jobs have completed stage 3.
Table 1: Example event-log records from the synthetic flexible flow shop.
| time | event | job_id | stage | machine_id | stage_buffer_len | machine_wait_len | machine_busy | WIP |
|---|---|---|---|---|---|---|---|---|
| 0.00 | queue_enter | 0 | 1 | - | 1 | 0 | 0 | 1 |
| 0.00 | dispatch | 0 | 1 | S1_M1 | 1 | 0 | 0 | 1 |
| 0.00 | service_start | 0 | 1 | S1_M1 | 0 | 0 | 1 | 1 |
| 2.59 | service_end | 0 | 1 | S1_M1 | 0 | 0 | 1 | 1 |
| 2.59 | queue_enter | 0 | 2 | - | 1 | 0 | 0 | 1 |
| 2.60 | dispatch | 0 | 2 | S2_M1 | 1 | 0 | 0 | 1 |
| 2.60 | service_start | 0 | 2 | S2_M1 | 0 | 0 | 1 | 1 |
| 25.63 | service_end | 1 | 2 | S2_M2 | 0 | 0 | 4 | 7 |
| 25.63 | queue_enter | 1 | 3 | - | 1 | 0 | 0 | 7 |
| 25.70 | dispatch | 1 | 3 | S3_M1 | 1 | 0 | 0 | 7 |
| 25.70 | service_start | 1 | 3 | S3_M1 | 0 | 0 | 1 | 7 |
| 30.27 | service_end | 1 | 3 | S3_M1 | 0 | 0 | 2 | 8 |

Figure 1: Throughput and system-time relative errors.

Figure 2: KPI comparison
Processing times are stochastic and stage dependent. At stage k, the basic processing time is sampled from a Gamma distribution parameterized by mean and coefficient of variation , with , and . Machine-specific processing time within the same stage is generated by multiplicative speed factors to the basic processing time. The speed factors are [0.8, 0.9, 1.0, 1.0, 1.2, 1.3] for stage 1, [0.8, 0.8, 0.9, 1.0, 1.0, 1.0, 1.3, 1.3] for stage 2 and [0.9, 1.0, 1.0, 1.2, 1.3] for stage 3, where smaller values indicate faster machines.
Stage-level dispatching is jointly determined by job selection rules and machine assignment rules. Stage 1 uses FIFO for job selection and a fastest available assignment policy which selects the available machine with the highest speed. Stages 2 and 3 use a Shortest Processing Time (SPT) job selection rule based on estimated stochastic processing times. Stage 2 assigns jobs to the least-loaded machine, whereas stage 3 follows the same fastest available logic as stage 1.
The set of possible abstraction levels is defined as . The aggregate state in the first abstraction includes the stage index and a binary indicator representing whether the queue is non-empty or not. The second abstraction replaces the binary queue indicator with a discretized queue length interval, and the third abstraction further adds a discretized work-in-process (WIP) interval. From Figure 1, on the validation set has the smallest relative error in both throughput and mean system time. also has a lower training NLL than and which means the model derived by is relatively more stable during learning. Based on these results, we set the state abstraction level in subsequent experiments to maximize scalability while preserving KPI accuracy.
Leveraging the machine advantage representation derived from IRL, we cluster machines using -means and select by minimizing the validation KPI error of the aggregated simulation. As shown in Figures 3 and 4, for Stage 1 we choose , as it achieves the lowest validation throughput error while maintaining competitive mean system time error. Cluster 1 includes and and Cluster 2 includes , , and . For Stages 2, 3, achieves the best throughput and system time errors. In addition, we isolate rarely used machines (defined as those dispatched fewer than 20 times in the event log) into a separate cluster. Therefore, the final number of clusters for Stage 2 is 3. In stage 2, Cluster 1 includes and , Cluster 2 includes , , and and Cluster 3 includes and . In stage 3, Cluster 1 includes , and and Cluster 2 includes and .
We assess the fidelity of the aggregated model by comparing three sets of KPIs: expert KPIs computed from the expert event logs, machine-level simulation KPIs, and aggregated simulation KPIs under the learned clustering scheme. As


Figure 3: selection by ST for Stages 1-3.


Figure 4: selection by throughput for Stages 1-3.
Table 2: KPI comparison across expert (event logs), machine-level simulation, and aggregated simulation.
| Method | Throughput | Mean system time |
|---|---|---|
| Expert (event logs) | 0.12025 | 50.80 |
| Machine-level simulation | 0.11871 | 57.30 |
| Aggregated simulation | 0.11892 | 56.10 |
shown in Table 2, the aggregated model closely matches the machine-level model, with relative errors of in throughput and in mean system time, indicating that the aggregated simulation faithfully reproduces the machine-level system behavior on these two key metrics. Figure 2 provides a clearer visualization of this result. Furthermore, using the expert KPIs as the reference, the machine-level and aggregated models achieve relative throughput errors of and respectively, and relative mean system time errors of and respectively. Therefore, relative to the machine-level model, the aggregated model shows a slight improvement in matching the event logs.
6. Conclusion
This paper proposes a resource aggregation method based on inverse reinforcement learning to compress machine-level dispatching behavior into a compact yet accurate simulation model, illustrated using a flexible flow shop manufacturing system. Building on the dispatching policy learned via inverse reinforcement learning, we introduce a value-based machine representation and a performance-driven clustering choosing approach to aggregate resources, thereby significantly reducing model complexity. The resulting aggregated simulation model preserves key system-level performance indicators while significantly decreasing model size and computational burden.
Despite these encouraging results, some limitations remain. First, the inverse reinforcement learning module adopts a linear and state-only reward function. While this design improves stability, it may be insufficient to capture more complex policies driven by differences in job types or machine-specific performance. Second, our experiments are limited to a flexible flow shop environment and primarily evaluate throughput and system time. Additional validation across broader manufacturing structures and a wider range of key performance indicators is needed to assess generalizability and clarify when value-based aggregation methods are most effective.
References
[1] W. Kritzinger, M. Karner, G. Traar, J. Henjes, and W. Sihn, “Digital twin in manufacturing: A categorical literature review and classification,” Ifac-PapersOnline, vol. 51, no. 11, pp. 1016–1022, 2018.
[2] F. Tao, H. Zhang, A. Liu, and A. Y. Nee, “Digital twin in industry: State-of-the-art,” IEEE Transactions on industrial informatics, vol. 15, no. 4, pp. 2405–2415, 2018.
[3] C. J. Turner, W. Hutabarat, J. Oyekan, and A. Tiwari, “Discrete event simulation and virtual reality use in industry: new opportunities and future trends,” IEEE Transactions on Human-Machine Systems, vol. 46, no. 6, pp. 882–894, 2016.
[4] A. Akcay, S. Biller, B. P. Gan, C. Laroque, and G. Shao, “Maintenance and operations of manufacturing digital twins,” in 2023 Winter Simulation Conference (WSC), 2023, pp. 1888–1899.
[5] S. Jain, G. Shao, and S.-J. Shin, “Manufacturing data analytics using a virtual factory representation,” International Journal of Production Research, vol. 55, no. 18, pp. 5450–5464, 2017.
[6] J. W. Fowler and O. Rose, “Grand challenges in modeling and simulation of complex manufacturing systems,” Simulation, vol. 80, no. 9, pp. 469–476, 2004.
[7] T.-S. Lee and Y.-T. Loong, “A review of scheduling problem and resolution methods in flexible flow shop,” International Journal of Industrial Engineering Computations, vol. 10, no. 1, pp. 67–88, 2019.
[8] Y. J. Son and R. A. Wysk, “Automatic simulation model generation for simulation-based, real-time shop floor control,” Computers in Industry, vol. 45, no. 3, pp. 291–308, 2001.
[9] R. Mueller, C. Alexopoulos, and L. F. McGinnis, “Automatic generation of simulation models for semiconductor manufacturing,” in 2007 Winter Simulation Conference. IEEE, 2007, pp. 648–657.
[10] M. Sommer, J. Stjepandić, S. Stobrawa, and M. Von Soden, “Improvement of factory planning by automated generation of a digital twin,” in Transdisciplinary Engineering for Complex Socio-technical Systems–Real-life Applications. IOS Press, 2020, pp. 453–462.
[11] W. J. Tan, M. G. Seok, and W. Cai, “Automatic model generation and data assimilation framework for cyber-physical production systems,” in Proceedings of the 2023 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, 2023, pp. 73–83.
[12] H. Reinhardt, M. Weber, and M. Putz, “A survey on automatic model generation for material flow simulation in discrete manufacturing,” Procedia CIRP, vol. 81, pp. 121–126, 2019.
[13] K. Vernickel, L. Brunner, G. Hoellthaler, G. Sansivieri, C. Härdtlein, L. Trauner, L. Bank, J. Fischer, and J. Berg, "Machine-learning-based approach for parameterizing material flow simulation models," Procedia CIRP, vol. 93, pp. 407–412, 2020.
[14] T. Pawletta and J. Bartelt, “Integrating reinforcement learning and discrete event simulation using the concept of experimental frame: A case study with matlab/simevents.” Simul. Notes Eur., vol. 33, no. 4, pp. 167–174, 2023.
[15] D. Krenczyk, “Deep reinforcement learning and discrete simulation-based digital twin for cyber–physical production systems,” Applied Sciences, vol. 14, no. 12, p. 5208, 2024.
[16] A. Cimino, M. Elbasheer, F. Longo, G. Mirabelli, V. Solina, and P. Veltri, “Automatic simulation models generation in industrial systems: A systematic literature review and outlook towards simulation technology in the industry 5.0,” Journal of Manufacturing Systems, vol. 80, pp. 859–882, 2025.
[17] A. K. Choudhary, J. A. Harding, and M. K. Tiwari, “Data mining in manufacturing: a review based on the kind of knowledge,” Journal of Intelligent Manufacturing, vol. 20, no. 5, pp. 501–521, 2009.
[18] P. C. Deenen, J. Middelhuis, A. Akcay, and I. J. Adan, “Data-driven aggregate modeling of a semiconductor wafer fab to predict wip levels and cycle time distributions,” Flexible services and manufacturing Journal, vol. 36, no. 2, pp. 567–596, 2024.
[19] G. Lugaresi and A. Matta, “Automated manufacturing system discovery and digital twin generation,” Journal of Manufacturing Systems, vol. 59, pp. 51–66, 2021.
[20] B. J. Joo, Y. C. Choi, and P. Xirouchakis, “Dispatching rule-based algorithms for a dynamic flexible flow shop scheduling problem with time-dependent process defect rate and quality feedback,” Procedia CIRP, vol. 7, pp. 163–168, 2013.