Amusement park anti-collision safety simulation system based on digital twinning

By introducing twin spatiotemporal reference, path topology constraints, motion envelope generation, and spatiotemporal occupancy verification components into the digital twin amusement park collision avoidance safety simulation system, the problem of failing to uniformly handle future occupancy range in existing technologies is solved, and accurate collision judgment and simulation verification within future time windows are achieved.

CN123179879APending Publication Date: 2026-11-27JINHE (TIANJIN) AUTOMATION EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611291704.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing digital twin amusement park collision avoidance safety simulation systems fail to incorporate the operation path topology, control section permission, intersection area mutual exclusion, braking response time, and control command activation delay into the generation and verification process of the future reachable occupancy range under a unified twin spatiotemporal reference. This results in the system being unable to express the spatial occupancy overlap of multiple operating units within a future time window in a continuous time dimension, making it difficult to complete simulation verification before a collision occurs.

Method used

By employing twin spatiotemporal reference construction components, path topology constraint components, motion envelope generation components, spatiotemporal occupancy verification components, and counterfactual simulation components, the system maps the state of amusement facility operation units to a unified digital twin coordinate system, generates reachable motion envelopes within future time windows, performs occupancy verification and control constraint simulation, forms the same calculation chain, and realizes the expression of future occupancy range and collision judgment.

Benefits of technology

This technology enables simulation-based judgments to be completed before the operating unit enters a near-dangerous state, reducing reliance on manually set control constraints, improving the accuracy of collision judgments and the traceability of simulation results, and avoiding the problem of inconsistent data standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179879A_ABST
    Figure CN123179879A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of digital twin technology and relates to a collision avoidance safety simulation system for amusement parks based on digital twins. The system includes a twin spatiotemporal reference construction component, a path topology constraint component, a motion envelope generation component, a spatiotemporal occupancy verification component, and a counterfactual simulation component. It maps the position, speed, operating stage, departure permission, and section occupancy status of the operating unit to a unified digital twin coordinate system and simulation timescale sequence. It generates topological constraint relationships by combining the operating path, control section, intersection area, and prohibited simultaneous occupancy area, and generates a future reachable motion envelope based on the speed change range, braking response time, and control command hysteresis, converting it into a dynamic occupancy volume and writing it into the spatiotemporal occupancy matrix. This invention transforms collision judgment from current distance comparison to future spatiotemporal occupancy overlap verification, identifying potential collision links in advance and forming traceable verification records.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of digital twin technology and relates to a collision avoidance safety simulation system for amusement parks based on digital twins. Background Technology

[0002] Existing amusement park collision avoidance safety simulation systems are typically based on operation monitoring platforms or 3D visualization platforms. A common approach involves reading vehicle number, current position, speed, operating stage, section occupancy status, and departure permission status from the amusement park's control system. This information is then mapped to a pre-built digital twin scene, and the current status of the operating unit on the track, section, or intersection is displayed at a fixed refresh cycle. Collision detection often employs static safety distances, fixed safety zones, or section mutual exclusion rules, using the spatial distance between two operating units at the current moment, and the overlap relationship of their sections or bounding boxes as the alarm basis. When the judgment result meets preset danger conditions, the system outputs an alarm message or prompts a suspension of departure to the control terminal. This type of solution primarily simulates the current state; the digital twin model handles state reproduction and visual display. The collision rules and operation control logic are usually connected via a simple data interface, lacking unified simulation for continuous processes such as changes in operating rhythm, changes in departure permission, and extensions in intersection area occupancy.

[0003] Some existing solutions add trajectory extrapolation based on the current state to estimate the position changes of the operating unit in the short term. A common implementation is to calculate the future position based on a preset operating route, historical average speed, current speed, or segment passage time, and then compare the future position with a fixed safety distance or restricted area. This method typically treats the operating path as a known curve, speed changes as a continuous quantity that can be corrected according to empirical rules, and segment permission status as a static condition for whether passage is permitted. For the same operating unit, the system can generate several prediction points per time slice; for multiple operating units, the system compares the distances or segment relationships between prediction points in the same time slice. Because this type of prediction mainly focuses on single-point trajectories or centerline positions, braking response time, control command activation lag, state sampling delay, and stage transition constraints are often simplified. The prediction results are difficult to express the complete spatial range that the operating unit may occupy under control logic constraints, and also difficult to reflect the occupancy boundary after the permission withdrawal lag and speed changes are superimposed.

[0004] Existing digital twin simulations are also commonly used for safety rule testing and operational process playback. A typical approach involves pre-setting several operating conditions in the simulation platform, such as normal departure, delayed stopping, abnormal section occupancy, or proximity of adjacent operating units. The twin model is then driven by a fixed script to check whether safety distance rules, departure interval rules, and section mutual exclusion rules are triggered. For operating conditions that trigger alarms, the system typically records the alarm time, operating unit location, and trigger rule name for subsequent manual analysis. While this type of simulation can reproduce known operating conditions, the verification of candidate control constraints often relies on manually resetting the script, such as maintaining departure, withdrawing permission, or limiting speed before rerunning the simulation. There is a lack of unified occupancy difference comparison and topology consistency checks between different simulation branches. Simulation results often end with a single rule trigger, making it difficult to determine whether a control constraint will introduce new section mutual exclusion, intersection occupancy, or path continuity disruption within the same technical chain.

[0005] The main technical problem that the existing technologies mentioned above need to solve is that the collision avoidance safety simulation of amusement parks based on digital twins still focuses on current state reproduction, single-point trajectory extrapolation, or fixed safety rule triggering. It fails to incorporate the running path topology, control section permission, intersection area mutual exclusion, braking response time, and control command activation lag into the generation and verification process of the future reachable occupancy range under a unified twin spatiotemporal reference. This results in the system being unable to express the potential spatial occupancy overlap of multiple operating units within a future time window using a continuous time dimension. The essence of this problem is the lack of a unified computational closed loop between digital twin carrying capacity, motion prediction, section constraints, and control intervention verification. State values, topology rules, lag factors, and control constraints are handled separately, and there is no calculable correlation between the current safe distance and future reachable occupancy. Potential collisions can only be detected when the current distance approaches a dangerous condition or a fixed rule has been triggered, making it difficult to complete the simulation verification at the reachability level before a collision occurs. Summary of the Invention

[0006] The purpose of this invention is to provide a digital twin-based amusement park collision avoidance safety simulation system, which can solve the problems mentioned in the background art.

[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A digital twin-based amusement park collision avoidance safety simulation system includes: a twin spatiotemporal reference construction component, a path topology constraint component, a motion envelope generation component, a spatiotemporal occupancy verification component, and a counterfactual simulation component. The twin spatiotemporal reference construction component maps the amusement facility's operating unit number, location, speed, operating stage, departure permit, and section occupancy status to a unified digital twin coordinate system and time scale sequence. The path topology constraint component generates topology constraint relationships based on the operating path, control sections, intersection areas, and prohibited simultaneous occupancy areas. The motion envelope generation component generates reachable motion envelopes within future time windows based on the topology constraint relationships, speed variation range, braking response time, and control command activation hysteresis. The spatiotemporal occupancy verification component discretizes the reachable motion envelopes into dynamic occupancy volumes and writes them into a spatiotemporal occupancy matrix. The counterfactual simulation component performs simulation verification of candidate control constraints corresponding to overlapping occupancy.

[0008] Preferably, the twin spatiotemporal reference construction component includes a state timescale alignment process. This process converts sampling times from operation control records, segment permission records, and operation unit state records into a unified simulation timescale and establishes state segments according to the data generation order, transmission delay identifier, and state duration. For position jumps or stage jumps that occur between adjacent state segments for the same operation unit, intermediate compensation states are generated based on the operation path topology and stage migration order. For state segments that exceed a preset time limit, the state value is retained and a confidence mark is added, so that the generation of subsequent reachable motion envelopes simultaneously references the state value and the confidence mark.

[0009] Preferably, the path topology constraint component includes a hierarchical topology expression process, which divides the amusement facility's operating path into a continuous path layer, a control section layer, and a conflict area layer. The continuous path layer records the sequential positional relationship of the operating units along the path, the control section layer records the entry conditions, release conditions, and permission mutual exclusion relationships of the sections, and the conflict area layer records the intersection area, adjacent safety boundaries, and areas where simultaneous occupation is prohibited. The hierarchical topology expression process associates the continuous path layer, the control section layer, and the conflict area layer through the same digital twin coordinate index, so that the motion deduction of the same operating unit is simultaneously constrained by path continuity, section permission, and conflict area mutual exclusion.

[0010] Preferably, the motion envelope generation component includes a hysteresis-corrected reachability set generation process. This process takes the state segment, the confidence level marker, and the topological constraints output by the hierarchical topology expression process as input, and represents the candidate positions of the running unit within a future time window as reachable intervals extending along the path direction. The leading edge boundary of the reachable interval is jointly defined by the speed variation range and the section passage conditions, while the trailing edge boundary is jointly defined by the braking response time, the control command activation hysteresis, and the running phase maintenance conditions. When the state confidence level is lower than a preset level, the reachable interval expands along the allowed running direction and is truncated at the topological boundary where reverse direction or crossing is prohibited.

[0011] Preferably, the spatiotemporal occupancy verification component includes an occupancy matrix transformation process. The occupancy matrix transformation process converts the reachable interval into a dynamic occupancy body containing a time index, a path index, a segment index, and a conflict region index according to a unified simulation time scale. For the case where the same running unit crosses a continuous path layer and a control segment layer, multiple indices at the same time are merged into a single occupancy record. For the dynamic occupancy bodies of different running units, segment mutual exclusion matching is performed first according to the time index, then conflict region overlap matching is performed, and finally path adjacent boundary matching is performed. The matching results are written into the conflict candidate positions in the spatiotemporal occupancy matrix.

[0012] Preferably, the spatiotemporal occupancy verification component further includes a conflict link screening process. The conflict link screening process traces the source of the dynamic occupancy body corresponding to the conflict candidate position, and obtains the running unit state segment, topological constraint relationship, reachable interval boundary and occupancy record that form the occupancy overlap. When the occupancy overlap is only generated by the expansion of low confidence state segment, the corresponding result is marked as a conflict to be verified. When the occupancy overlap simultaneously satisfies segment mutual exclusion, conflict region overlap and future time index coincidence, the corresponding result is marked as a valid conflict. The conflict to be verified and the valid conflict are respectively input into different candidate control constraint sets of the counterfactual simulation component.

[0013] Preferably, the counterfactual simulation component includes a candidate control constraint construction process. This process selects candidate control constraints directly related to the conflict link from among departure holding, speed limits, operational phase delays, segment permission withdrawals, and conflict area entry prohibitions, based on the source tracing results corresponding to the valid conflict. For the conflict to be verified, candidate control constraints corresponding to state refresh, segment state resampling, and operational phase reconfirmation are constructed first. Each candidate control constraint is associated with the affected operational unit, the affected segment, the constraint start time marker, the constraint release condition, and the future time window for resimulation.

[0014] Preferably, the counterfactual simulation component further includes a parallel twin replay process, which uses a simulation branch without applied candidate control constraints as a baseline branch and generates constraint branches based on each candidate control constraint; each constraint branch reuses the hierarchical topology expression process, the hysteresis correction reachability set generation process, and the occupancy volume matrixization process to regenerate the spatiotemporal occupancy matrix; the parallel twin replay process compares the occupancy differences between each constraint branch and the baseline branch according to the same time index, and records the eliminated conflict candidate positions, the delayed occupancy volumes, and the newly added occupancy overlap positions.

[0015] Preferably, the counterfactual simulation component further includes a constraint consistency screening process. The constraint consistency screening process performs topology consistency, segment permission consistency, and operational phase consistency checks on each constraint branch based on the occupancy difference comparison results. When a constraint branch eliminates the original valid conflict but generates new segment mutual exclusion conflicts or overlapping conflict areas, the corresponding candidate control constraint is deleted. When a constraint branch changes the operational phase sequence or disrupts path continuity, the corresponding candidate control constraint is deleted. The retained candidate control constraints form a traceable simulation verification record according to the corresponding source tracking results, constraint start time marker, and conflict candidate position.

[0016] Preferably, the simulation verification record further includes an occupancy causal chain generation process, which links the state segment, the topological constraint relationship, the reachable interval boundary, the dynamic occupancy body, the conflict candidate position, and the retained candidate control constraint in a chain according to a unified simulation time scale; for the case where the same valid conflict corresponds to multiple candidate control constraints, the occupancy causal chain generation process generates a sorting index according to the elimination status of the original valid conflict in the constraint branch, the newly added occupancy overlap status, and the segment permission consistency status, and writes the sorting index into the corresponding running unit and control segment record under the digital twin coordinate system.

[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. In this invention, the number, location, speed, operating stage, departure permission, and section occupancy status of the amusement facility operation unit are mapped to a unified digital twin coordinate system and a time scale sequence. The status input is no longer used as an isolated current value for judgment, but rather forms the same constraint relationship with the path topology, control sections, intersection areas, and prohibited simultaneous occupancy areas. The motion envelope generation process defines the leading edge boundary with the speed change range, and the trailing edge boundary with the braking response time, operating stage holding conditions, and control command activation hysteresis. When the confidence level is insufficient, it expands along the permissible operating direction and truncates at the topological boundary, ensuring that the reachable range within the future time window can cover the uncertain occupancy caused by sampling delay and control hysteresis. The spatiotemporal occupancy verification process further converts the reachable interval into a dynamic occupancy volume containing time index, path index, section index, and conflict area index, completing section mutual exclusion, conflict area overlap, and path adjacent boundary matching through the same matrix. The above processing integrates digital twin bearer, motion envelope, topological constraints, and occupancy matrix into the same verification chain, so that the future occupancy boundary of the same operating unit and the future overlap relationship of different operating units are expressed in the same data structure. The collision judgment is changed from current distance comparison to future spatiotemporal occupancy overlap verification, which can form a simulation judgment result before the operating unit enters the near-distance danger state.

[0018] 2. This invention uses a counterfactual simulation component to replay branched control constraints such as departure holding, speed limits, operational phase delays, section permission withdrawals, and conflict zone entry prohibitions, ensuring that control constraints are no longer manually set after an alarm. Each branch reuses hierarchical topology representation, hysteresis correction reachability set generation, and occupancy matrix generation processes, thus making the baseline branch and constraint branches comparable under the same time index. Occupancy difference comparison records eliminated conflict candidate positions, delayed occupancy bodies, and newly added occupancy overlap positions. Constraint consistency screening further eliminates constraints that disrupt path continuity, operational phase sequence, or section permission consistency. The occupancy causal chain associates state segments, topological constraint relationships, reachability interval boundaries, dynamic occupancy bodies, conflict candidate positions, and retained control constraints with a unified time scale, enabling simulation results to trace back to specific state sources, occupancy formation processes, and constraint branch differences. By storing the constraint start time, constraint release conditions, and affected sections in the same causal chain, subsequent simulation replays can restore the comparison object along the original state fragments, avoiding inconsistencies in data standards caused by different personnel repeatedly constructing scenarios with different scripts, reducing judgment breaks caused by relying solely on alarm time and location records for verification, and providing a consistent data chain for repeated verification. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating the overall processing flow of the digital twin-based amusement park collision avoidance safety simulation system of the present invention. Figure 2This is a flowchart illustrating the construction of the twin spatiotemporal reference and the generation of hierarchical topological constraints according to the present invention. Figure 3 This is a flowchart of the hysteresis correction reachable motion envelope generation and dynamic occupancy volume matrix generation of the present invention; Figure 4 This is a flowchart of the conflict link filtering, counterfactual simulation, and occupancy causal chain generation process of the present invention. Figure 5 This is the unified timescale correction diagram of the present invention; Figure 6 This is a confidence decay plot for the present invention; Figure 7 This is the reachable interval boundary diagram of the present invention; Figure 8 This is a statistical chart of conflict candidates for the present invention. Detailed Implementation

[0020] refer to Figure 1 In one embodiment, the amusement park collision avoidance safety simulation system based on digital twins is deployed as a computer simulation system for existing amusement park ride operation control data. The system includes a twin spatiotemporal reference construction component, a path topology constraint component, a motion envelope generation component, a spatiotemporal occupancy verification component, and a counterfactual simulation component. The twin spatiotemporal reference construction component receives the operating unit number, position, speed, operating stage, departure permission, and section occupancy status, and maps operating states from different sources to the same digital twin coordinate system and the same simulation timescale sequence. The path topology constraint component generates topology constraint relationships based on the existing operating paths, control sections, intersection areas, and prohibited simultaneous occupancy areas of the amusement park rides. The motion envelope generation component introduces speed variation range, braking response time, and control command activation hysteresis under the topology constraint relationships to generate an reachable motion envelope that unfolds along the operating path within a future time window. The reachable motion envelope is discretized into a dynamic occupancy volume by the verification component and written into the spatiotemporal occupancy matrix. The counterfactual simulation component performs branch simulation verification on the candidate control constraints after the occupancy overlap is formed. The overall working mechanism is to incorporate the current state reproduction, path constraints, future reachable range, temporal continuous occupancy and control constraint verification into the same calculation chain. The running unit no longer participates in collision judgment based on a single point position, but participates in verification based on the future occupancy range constrained by topology, speed, hysteresis and segment permission. After the future occupancy ranges of multiple running units are overlapped and matched under a unified time scale, the counterfactual simulation component determines whether the candidate control constraints still satisfy path continuity, segment permission consistency and running stage consistency. This embodiment transforms the digital twin model from a state display carrier to a continuous spatiotemporal occupancy verification carrier through the collaborative relationship between the above components, and completes the overall disclosure of the independent system scheme.

[0021] refer to Figure 2In one embodiment, the twin spatiotemporal reference construction component uses operation control records, segment permission records, and operation unit status records as input data sources. Each record in the input data source retains the original sampling time, source type, transmission delay identifier, operation unit identifier, and status content. The component calls the corresponding clock correction amount according to the source type and subtracts the delay estimate corresponding to the transmission delay identifier from the original sampling time to obtain a unified simulation time scale. The unified simulation time scale is calculated according to the following formula.

[0022] ; in, Indicates the first The unified simulation timescale after the record conversion, Indicates the first The original sampling time of each record. Indicates the first The source type of the record, Indicates source type The corresponding clock correction amount, Indicates the first The transmission delay corresponding to each record. The + operator indicates that the source clock compensation is incorporated into the original sampling time, and the - operator indicates that the transmission delay is rolled back from the record arrival time. In the example, we take... 1000 5. 2, then 1003 indicates that the record should be used as the state at time 1003 on the simulation timeline for subsequent calculations.

[0023] refer to Figure 5 This graph is used to verify the sequential relationship of records from different sources after they enter a unified operating timeline. The horizontal axis represents the data generation sequence number of the original record, and the vertical axis represents the unified timescale after source clock compensation and deduction of transmission delay, in seconds. The local slope of the curve reflects whether the record arrival rhythm is stable; vertical abrupt changes usually come from source type switching, increased transmission delay, or changes in the continuous reporting interval of a certain operating unit. Each point in the graph retains the original sampling time, source type, clock compensation amount, and transmission delay amount. The security verification process relies on this graph to confirm whether the operation control record, segment permission record, and status record fall under the same time caliber; if there is a significant rise or fall near the same sequence number, link tracing should be used to check for abnormal delay or source clock compensation configuration deviation.

[0024] In this embodiment, the records processed by the unified simulation timescale are merged into state segments according to the running unit identifier and time sequence. The state segment does not only record an instantaneous state, but also records the start timescale, end timescale, spatial position, velocity state, running stage, segment permission, and confidence level on the simulation time axis. When the same running unit experiences position or stage jumps between adjacent state segments, the twin spatiotemporal reference construction component calls the running path continuity relationship and stage migration order provided by the path topology constraint component to insert an intermediate compensation state between two state segments. The time range of the intermediate compensation state is limited to adjacent records, and the spatial position is limited to the same running path or the next control segment that is allowed to be entered. For state segments that exceed the time limit, the component does not directly delete the state value, but retains the state value after reducing the confidence level, so that the subsequent motion envelope generation component can convert the state lag factor into the reachability interval expansion factor. This embodiment, through the combination of unified timescale, state segments, and confidence level, enables the running states from different recording sources to form a traceable computational basis on the same twin time axis.

[0025] In this embodiment, the state fragment fields and their calculation purposes are shown in Table 1.

[0026] Table 1. State Fragment Fields and Calculation Purposes Field Name Data source Processing rules Subsequent citations Operating Unit Identifier Running unit status record Corresponding to vehicle number or cabin number Relational reachable motion envelope Start time scale Unified Simulation Timescale Sequence Take the earliest time stamp within the same state segment Limited Occupancy Point End mark Unified Simulation Timescale Sequence Take the start time stamp or state duration boundary of the next state segment. Limited state maintenance interval Position status Running unit status record Projected onto digital twin coordinate system Generate path coordinates Speed ​​status Running unit status record Verification during the runtime phase Generate reachable interval boundaries Operational phase Operation control log Check according to the migration phase sequence Limited phase maintenance conditions Section Permit Section Permit Record Associated with control section layer index Determine passage constraints Confidence marker Timescale delay and state aging calculation Assign values ​​based on the freshness and delay of the status. Control envelope expansion The confidence level of a state fragment is calculated based on its age and transmission delay. The twin spatiotemporal reference construction component is at the current simulation moment. Read the state fragment below And calculate the confidence level mark according to the following formula.

[0027] ; in, Indicates the first Confidence rating of each state segment Indicates the current simulation time. Indicates the first The start time stamp of each state segment, This refers to the software timescale used to evaluate the timeliness of a state. Indicates the first The delay amount corresponding to each state segment This represents the software time scale used to evaluate transmission delay, min(1, The expression () indicates that the calculated value is limited to a range not exceeding 1. The multiplication operation represents that the degree of newness of the state and the degree of transmission delay jointly constrain the same confidence level. In the example, we take... 4. 6. 3. 1, then This indicates that the state fragment is processed with a lower confidence level in the subsequent envelope generation.

[0028] refer to Figure 6 This figure illustrates the change in the confidence level of a state segment before future projections. The horizontal axis represents the composite observation formed by state age and transmission delay, and the vertical axis represents the segment confidence level, ranging from 0 to 1. Each point is calculated from the segment's start timescale, current running time, state validity timescale, transmission delay timescale, and delay amount. A declining curve indicates that the segment is too old or the transmission delay is too high; subsequent reachable intervals will have their boundaries expanded according to the amount of missing confidence to avoid potential omissions. During engineering review, special attention should be paid to the operating unit, source record, and stage status of low-value points: if low-value points are concentrated on the same path or from the same source type, it usually means that the data acquisition link needs to be refreshed; if low-value points are scattered and conflicts can still be eliminated through branch replay, then control recommendations can maintain a low intervention intensity.

[0029] Preferably, the path topology constraint component divides the amusement facility's operating path into a continuous path layer, a control section layer, and a conflict area layer. The continuous path layer uses the centerline of the operating path or the coordinates of the existing path as an index to record the sequential relationship of operating units along the path direction, the allowed forward direction, and the prohibited reverse boundary. The control section layer uses the section entry conditions, section release conditions, departure permission, and permission mutual exclusion relationship as indexes to record whether the operating unit is allowed to enter the next control section. The conflict area layer uses the intersection area, adjacent safety boundary, and prohibited simultaneous occupation area as indexes to record the areas that different operating units cannot occupy together within the same time window. The three levels are associated through a digital twin coordinate index, so that the same spatial location can be simultaneously mapped to the path coordinates, control section, and conflict area. The path coordinate projection is performed according to the following formula.

[0030] ; in, Indicates the first The path coordinates of each state fragment on the execution path Indicates the execution path to which the state segment belongs. The set of possible path coordinates This indicates the spatial location of a state fragment in the digital twin coordinate system. Indicates the running path The digital twin coordinates at path coordinate s, This represents the Euclidean distance operation. In this embodiment, the hierarchical topology index and constraint contents are shown in Table 2.

[0031] Table 2 Hierarchical Topology Index and Constraints Topology level Core Indexing Rules / Definitions Constraints Association with other levels (General Index Definition) <![CDATA[The index indicates selecting the path coordinate that minimizes the distance. In the example, the candidate path coordinates are 20, 21, and 22, corresponding to distances of 3, 1, and 4 respectively, then s j =21, which means the state segment is projected to path coordinate 21.]]> - - Continuous path layer Path coordinates and adjacent boundaries Running direction, path continuity, and prohibition of reverse direction Connect control sections using coordinate indexing. Control section layer Section entry point and release point Entry conditions, release conditions, and mutual exclusion of permissions Connecting conflict areas via segment boundaries Conflict Zone Layer Intersection area and prohibited area Area overlap, adjacent security boundaries, and joint occupancy restrictions Find the path coordinates by using spatial coverage relationships. License dependencies Departure Permit and Section Permit License retention, license withdrawal, downstream occupation restrictions Constrain future occupancy using time indexing In this embodiment, the hierarchical topology expression process generates a corresponding topology label for each path coordinate. The topology label includes at least the path number, path direction, control segment, adjacent control segments, conflict area, and permission dependency. After reading the state segment, the motion envelope generation component does not directly generate a single-point trajectory based on the current position and speed. Instead, it uses the path coordinates of the state segment as the center, the passage permission given by the control segment layer as the forward boundary, the prohibited shared area given by the conflict area layer as the occupancy matching boundary, and the prohibited reverse boundary given by the continuous path layer as the envelope truncation boundary. When the same operating unit enters the next control segment from one control segment, the envelope boundary must simultaneously satisfy the path continuity and segment permission conditions. When the segment permission status is withdrawn or delayed, the envelope will not cross the boundary of the prohibited segment, but will be truncated at the boundary and the truncation source will be recorded. In this embodiment, the hierarchical topology index synthesizes space, time, and permission relationships into the same constraint object, avoiding treating path prediction and segment mutual exclusion as independent judgment conditions.

[0032] refer to Figure 3 Furthermore, the motion envelope generation component takes the state segments, confidence markers, and topological constraints output by the hierarchical topology expression process as input, and represents the candidate positions of the running unit within the future time window as reachable intervals extending along the path direction. The reachable interval includes a trailing boundary and a leading boundary. The trailing boundary represents the minimum path coordinates that the running unit may still reach in the future time slice under the combined effects of braking response time, control command activation delay, and operation phase maintenance conditions. The leading boundary represents the maximum path coordinates that the running unit may reach in the future time slice under the combined effects of speed variation range and section passage conditions. When the state confidence marker is lower than a preset level, the reachable interval expands along the allowed running direction. The expanded boundary is still truncated by the continuous path layer and the control section layer. The reachable interval is calculated according to the following formula.

[0033] ; ; ; in, This represents the reachable interval of the running unit u at future time index k. Indicates the trailing edge boundary. Indicates the frontier boundary. The path coordinates represent the state fragment. h represents the path direction velocity corresponding to the state segment. k This represents the time span from the start time of the state segment to the future time index k. This indicates a delay in the activation of control commands. Indicates braking response time. Indicates the duration of the operation phase. Indicates the permissible rate of speed decrease for braking simulation. This indicates the rate of increase in speed allowed for frontier simulations. This represents the envelope expansion calculated from the confidence level label. This means truncating the calculation results to the coordinate domain of the path that the running unit u is allowed to reach under topological constraints. , take in the example 30. 4. h k 3. 1. 1. 0、 4. 1. 1. [0,50] then the trailing boundary is The frontier boundary is The reachable range is .

[0034] refer to Figure 7 This diagram illustrates the trailing and leading boundaries that a running unit may cover along the path within a future time window. The horizontal axis represents the future time span from the start of the state segment, and the vertical axis represents the path coordinates. The trailing boundary incorporates control command hysteresis, braking response time, stage holding time, and braking descent rate, while the leading boundary incorporates current speed, future span, and leading speed increase rate. A reachable interval is formed between the two boundaries. If the interval flattens out or suddenly converges at certain spans, it indicates that the topological reachable domain, the prohibited reverse boundary, or the segment permission condition has been truncated. This diagram directly determines the write range of the occupancy matrix, and it can be used in engineering reports to explain why a running unit has entered the future occupancy check before reaching the intersection position.

[0035] In a preferred embodiment, a monotonic conversion relationship is adopted between the confidence level marker and the envelope expansion amount. Low confidence state segments correspond to larger envelope expansion amounts, and high confidence state segments correspond to smaller envelope expansion amounts. The conversion process can be obtained by multiplying the software-configured envelope expansion benchmark amount by the confidence level missing amount. After generating the reachable interval, the motion envelope generation component compares the interval boundary with the entry and release conditions in the control segment layer one by one. If the leading edge boundary crosses the next control segment but the segment permission is not established, the leading edge boundary is truncated to the current segment release boundary. If the trailing edge boundary falls on the previous segment that has been released but the running phase is still in a holding state, the trailing edge boundary is reverted to the minimum allowed coordinates corresponding to the holding phase. If the reachable interval covers the intersection area in the conflict area layer, the intersection area index is appended to the reachable interval so that the spatiotemporal occupancy verification component can perform area overlap matching under the same time index. In this embodiment, braking response, control hysteresis, phase holding, and segment permission do not appear as separate rules, but participate in the calculation together in the boundary generation process of the same reachable interval.

[0036] In this embodiment, the spatiotemporal occupancy verification component converts the reachable interval into a dynamic occupancy body according to a unified simulation time scale. The dynamic occupancy body includes at least the running unit identifier, time index, path index, segment index, conflict area index, and occupancy source. When the reachable interval spans multiple path indices, the component merges the path indices that are continuously covered under the same time index into the same occupancy record. When the reachable interval covers both the continuous path layer and the control segment layer, the component merges the path index and segment index of the same running unit at the same time to avoid the same occupancy being recorded repeatedly. When the reachable interval covers the conflict area layer, the component writes the conflict area index and the path index together into the same matrix unit. The dynamic occupancy body writing rules are executed according to the following formula.

[0037] ; in, This indicates the occupancy status of the running unit u at time index k to topology index m. This indicates the path interval, control segment, or conflict region corresponding to the topological index m. This indicates whether the running unit u is allowed to be mapped to the topological index m at time index k. To represent the intersection of sets, This indicates that there is overlap. This indicates that both conditions are true simultaneously. This means that any one of the conditions is true, in the example. , , Since the two intervals overlap, we get .

[0038] Preferably, the dynamic occupants of different operating units are first matched for segment mutual exclusion in the spatiotemporal occupancy matrix according to the time index, then matched for conflict area overlap, and then matched for path adjacent boundary. Segment mutual exclusion matching is used to determine whether two operating units enter the mutually exclusive control segment together under the same future time index. Conflict area overlap matching is used to determine whether the reachable intervals of two operating units jointly cover the intersection area or the prohibited area for simultaneous occupancy. Path adjacent boundary matching is used to determine whether two operating units form future occupancy overlap at the adjacent path boundary. The conflict candidate position is calculated according to the following formula.

[0039] ; in, This represents the candidate conflict values ​​between running unit u and running unit w at time index k and topology index m. and These represent the occupancy status of the two operating units, This represents the mutex flag corresponding to the topological index m. This represents the boundary match value formed by two running units on adjacent path boundaries. Multiplication indicates that both occupancy states and mutual exclusion flags must be true, while addition indicates that the boundary match can serve as an independent conflict candidate source. In the example, we take... , , , ,but The corresponding matrix unit is written into the conflict candidate position.

[0040] refer to Figure 8 This graph counts the number of conflict candidates generated on each topological index. The horizontal axis represents the topological index corresponding to the control segment or conflict area, and the vertical axis represents the number of candidates. The candidate value is determined by the occupancy status, mutual exclusion flag, and adjacent boundary matching value of two running units on the same time index and the same topological index. Higher positions on the bars usually indicate that the segment is simultaneously covered by the future reachable intervals of multiple running units, or that their mutual exclusion relationship is frequently triggered within the current window. During project review, candidate classification should be considered: valid items indicate that segment mutual exclusion, area overlap, and time overlap are simultaneously established; items to be verified require further status updates or segment sampling; boundary observation items are reserved for continuous monitoring and not directly generated with strong intervention suggestions. This graph helps to locate high-risk topological indexes and select priority processing objects for subsequent branch replays.

[0041] refer to Figure 4Furthermore, the spatiotemporal occupancy verification component includes a conflict link screening process. This process traces the source of each conflict candidate location. The source tracking content includes the state segment of the operating unit that forms the occupancy overlap, the confidence level of the state segment, the triggered topological constraint relationship, the trailing edge boundary of the reachable interval, the leading edge boundary of the reachable interval, and the dynamic occupancy volume index. When the occupancy overlap is generated only by the expansion of a low-confidence state segment, and the segment mutual exclusion match or the conflict region overlap match is not simultaneously established, the conflict candidate location is marked as a conflict to be verified. When the occupancy overlap simultaneously satisfies the segment mutual exclusion, conflict region overlap, and future time index coincidence, the conflict candidate location is marked as a valid conflict. When the occupancy overlap originates from the path adjacent boundary match, the process further checks whether there is a permissive dependency relationship on both sides of the adjacent boundary. If there is no permissive dependency relationship, the corresponding candidate location is retained as a boundary observation record and does not enter the candidate control constraint set. This embodiment avoids directly equating the conservative occupancy formed by low-confidence expansion with the conflict that requires control intervention through joint screening of conflict source, topological constraint, and time index.

[0042] In this embodiment, after receiving the conflict to be verified and the valid conflict, the counterfactual simulation component constructs a set of candidate control constraints according to the source tracing results output by the conflict link screening process. For valid conflicts, candidate control constraints are selected from departure holding, speed limit, operation phase delay, section permission withdrawal, and conflict area prohibition. The selection process is based on the index of the affected operating unit, the affected section, and the conflict area in the conflict link. Control constraints are not set for operating units that are not in the conflict link. For the conflict to be verified, candidate control constraints preferentially include state refresh, section state resampling, and operation phase reconfirmation, so as to correct the state source before branch simulation. Each candidate control constraint records the affected operating unit, the affected section, the constraint start time index, the constraint release condition, and the future time window for resimulation. The constraint start time index is the controllable time point before the earliest time index of future occupancy overlap in the conflict link. The constraint release condition is associated with section release, conflict area clearing, or operation phase migration completion. This embodiment transforms the control verification after the alarm from manual script reconstruction into a set of branch constraints automatically derived from the conflict link.

[0043] In this embodiment, the candidate control constraint branch records are shown in Table 3.

[0044] Table 3 Candidate Control Constraint Branch Records Constraint Type Related Sources Branch record fields Consistency check object Start and hold Subsequent execution units in valid conflicts Operating unit, departure permit, start time marker, release conditions Operational phase sequence Speed ​​limit Accessible frontier crossing in effective conflict Operating unit, speed constraint, affected section, future time window Path continuity Operation phase delayed Early phase shift in effective conflict Operating unit, stage name, start time marker, release condition Phase migration sequence Section permit withdrawal Segment mutual exclusion in effective conflict Segment index, license status, affected operating units Segment Permit Consistency Conflict Zones Prohibited Overlapping areas of effective conflict Conflict Zone Index, Entry Restrictions, and Removal Conditions Area Occupation Relationship Status refresh Low-confidence fragments in unverified conflicts Status source, refresh time stamp, reconfirm object Status validity period Segment state resampling Delayed license status in pending verification conflicts Segment index, resampling time stamp, data source License timescale consistency Reconfirmation during operation Phase jump in unverified conflict Operating unit, stage segment, confirmation time stamp Phase continuity In a preferred embodiment, the counterfactual simulation component includes a parallel twin replay process. The parallel twin replay process uses the simulation branch without candidate control constraints as the baseline branch and writes each candidate control constraint into an independent constraint branch. Both the baseline branch and the constraint branch reuse the same hierarchical topology expression process, the same hysteresis correction reachability set generation process, and the same occupancy matrixization process. The only difference is that the state fragments or segments of the constraint branch are replaced by the constraint conditions after the constraint start time. During the replay process, each branch generates a corresponding spatiotemporal occupancy matrix, and then the occupancy differences are compared according to the same time index. The occupancy differences are recorded according to the following formula.

[0045] ; in, This represents the occupancy difference record for branch b corresponding to the candidate control constraint. This represents the set of conflict candidate locations in the baseline branch. This represents the set of conflict candidate positions in branch b. This indicates the conflict candidate positions that are eliminated in branch b. This indicates the newly added conflict candidate position in branch b. This represents the set of dynamically occupied volumes that experience time delays in branch b. This represents the set difference operation, in the example. , The set to be eliminated is The new set is .

[0046] Furthermore, the counterfactual simulation component includes a constraint consistency screening process. This process reads the occupancy difference record of each constraint branch and checks the topology consistency, segment permission consistency, and operational phase consistency. The topology consistency check is used to determine whether the constraint branch causes the operating unit to cross the prohibited reverse boundary, skip the necessary path index in the continuous path layer, or enter an unauthorized path branch. The segment permission consistency check is used to determine whether the constraint branch still generates a dynamic occupancy body that conflicts with the permission state after withdrawing or maintaining permission. The operational phase consistency check is used to determine whether the constraint branch disrupts the existing migration order between start-up, acceleration, constant speed, deceleration, stopping, segment entry, and segment release. When a constraint branch eliminates the original effective conflict but generates a new segment mutual exclusion conflict or overlapping conflict areas, the corresponding candidate control constraint is deleted. When a constraint branch changes the operational phase order or disrupts path continuity, the corresponding candidate control constraint is deleted. The retained candidate control constraints, together with the source tracing results, constraint start time markers, and conflict candidate positions, form a traceable simulation verification record. In this embodiment, the retention of control constraints is based on the changes in constraint occupancy before and after in the same twin replay chain.

[0047] In this embodiment, when multiple candidate control constraints are retained for the same valid conflict, the counterfactual simulation component writes the branch comparison results according to the sorting index. The sorting index consists of the elimination state of the original valid conflict, the newly added overlapping state, the segment permission consistency state, and the operational phase destruction state. The comparison is performed in lexicographical order, and the sorting relationship is defined according to the following formula.

[0048] ; in, and This represents two candidate control constraint branches. Indicates the order priority relationship. This represents the number of original valid conflicts that were eliminated in branch b. This indicates the number of newly added overlapping occupants in branch b. This indicates whether branch b satisfies the segment permission consistency requirement; a value of 1 indicates it satisfies the requirement, and a value of 0 indicates it does not. This indicates whether branch b disrupts the execution phase sequence; a value of 1 indicates disruption, and a value of 0 indicates no disruption. This indicates a lexicographical comparison from left to right, as shown in the example of the branches. Corresponding to (2,0,1,0), branch Corresponding to (2, (1, 1, 0), since the first bit is the same and the second bit is 0 greater than 1, we get .

[0049] Preferably, the occupancy causal chain generation process links state segments, topological constraints, reachable interval boundaries, dynamic occupancy bodies, conflict candidate positions, and reserved candidate control constraints in a chain according to a unified simulation time scale. The chain linking starts from the state segment, locates the continuous path layer through the path coordinate projection relationship, obtains the segment permission state through the control segment layer, obtains the prohibited simultaneous occupancy area through the conflict region layer, obtains the reachable interval of each future time index through the motion envelope generation component, obtains the dynamic occupancy body and conflict candidate position through the spatiotemporal occupancy verification component, and obtains the branch occupancy difference and constraint consistency screening results through the counterfactual simulation component. For the case where the same valid conflict corresponds to multiple candidate control constraints, the occupancy causal chain generation process writes the sorting index into the corresponding running unit record and control segment record under the digital twin coordinate system. The running unit record saves the mapping relationship from the state segment to the reachable interval, the control segment record saves the mapping relationship from the segment permission to the dynamic occupancy body, and the conflict candidate position record saves the running unit, time index, and topological index participating in the overlap. This embodiment enables the simulation results to have a continuous data chain from the state source to the control constraint branch.

[0050] In a preferred embodiment, when a state segment has time-stamp hysteresis, position jump, or stage jump, the twin spatiotemporal reference construction component does not directly send the abnormal state to the collision determination. Instead, it divides the abnormal state into compensable state and unconfirmed state. The compensable state satisfies the continuity of the running path and can be interpolated from adjacent state segments. The intermediate compensable state is inserted in the order of the path coordinates. The inserted state segment inherits the original running unit identifier and the segment permission source. The unconfirmed state does not satisfy the stage migration order or exceeds the allowed topology boundary. The unconfirmed state retains the original state value and adds a low confidence mark. When the motion envelope generation component reads the unconfirmed state, it increases the envelope expansion amount. The spatiotemporal occupancy verification component marks the conflict candidate positions generated by the unconfirmed state as unverified conflicts. The counterfactual simulation component prioritizes the construction of candidate control constraints corresponding to state refresh, segment state resampling, and running stage reconfirmation. This embodiment avoids the simple discarding of abnormal states, which would cause future occupancy omissions, and also avoids low confidence states directly triggering control constraint verification.

[0051] Furthermore, when the reachable interval of a running unit crosses an intersection region or an adjacent safety boundary, the spatiotemporal occupancy verification component simultaneously writes the intersection region index and the adjacent path boundary index into the occupancy record, and performs matrix matching according to the prohibition of simultaneous occupancy rules in the conflict region layer. For the case where multiple running units under the same time index jointly cover the same intersection region, the conflict link screening process tracks the state segment, the leading edge boundary of the reachable interval, and the source of the control segment permission for each running unit. If the reachable interval of any running unit is restricted by the topology truncation boundary, the truncation source is recorded in the conflict link. When constructing candidate control constraints, the counterfactual simulation component prioritizes the segment permission withdrawal or conflict region prohibition of entry directly related to the truncation source. For the case where there are only adjacent path boundaries that are close but do not cover the same conflict region under the same time index, the process checks the permission dependency relationship before determining whether to enter the constraint branch replay. This embodiment enables future occupancy conflicts across segments to be classified in the same matrix through the joint processing of intersection region index, adjacent boundary index, and permission dependency relationship.

[0052] In this embodiment, the simulation verification records output by the system include running unit dimension records, control segment dimension records, conflict region dimension records, and candidate control constraint dimension records. The running unit dimension records store the state segments, path coordinates, reachable intervals, and dynamic occupancy volumes of the running units under each time index. The control segment dimension records store the segment entry conditions, release conditions, permission status, occupied time index, and constraint branch changes. The conflict region dimension records store the time index of the intersection area or the prohibited simultaneous occupation area being covered, the participating running units, and the conflict candidate positions. The candidate control constraint dimension records store the constraint type, constraint start time scale, constraint release conditions, branch occupation differences, constraint consistency screening results, and sorting index. The running units and control segments in the digital twin coordinate system can be back-looked up in the corresponding records through the unified simulation time scale. During verification, the system can trace back from any conflict candidate position to the state segment, topological constraint, and reachable interval boundary. This embodiment enables the simulation verification results to be reproduced under the same data caliber through the unification of the record structure.

[0053] Preferably, during continuous simulation, the system repeatedly performs state alignment, topology constraint reading, reachable motion envelope generation, dynamic occupancy matrixing, conflict link filtering, and counterfactual branch replay according to a rolling future time window. Each time the system rolls, it inherits the state segments that are still in a persistent state, the control segments that have not yet been released, and the candidate control constraints that have not yet been resolved from the previous time window. The confidence level of the inherited state segments is recalculated, the inherited control segments re-participate in the topology constraints, and the inherited candidate control constraints re-enter the consistency check. If the new state refresh result no longer corresponds to the old conflict to be verified, the conflict to be verified is removed from the candidate control constraint set. If the new state refresh result causes the conflict candidate position of the original valid conflict to move, the occupancy causal chain is re-associated according to the new time index. This embodiment maintains the continuity of future occupancy verification through the rolling time window, enabling the simulation system to re-form reachable range and branch verification records as the running state is updated.

[0054] In a preferred embodiment, the system does not use a single determination of fixed graphic overlap to handle the prohibited simultaneous occupation area. Instead, it maps the prohibited simultaneous occupation area to a conflict area layer index and writes it together with the path index and segment index into the dynamic occupation body. When the reachable interval of the running unit covers the conflict area layer index, the spatiotemporal occupation matrix records the coverage source as front boundary entry, rear boundary retention, or confidence expansion entry. If the coverage source is front boundary entry, the counterfactual simulation component constructs a speed limit or conflict area prohibition branch. If the coverage source is rear boundary retention, the counterfactual simulation component constructs a delayed running phase or segment permission withdrawal branch. If the coverage source is confidence expansion entry, the counterfactual simulation component constructs a state refresh or segment state resampling branch. This embodiment incorporates the coverage source into the conflict area index, enabling different formation mechanisms of the same conflict area to enter different simulation branches.

[0055] Furthermore, the system expresses the release conditions of candidate control constraints in a manner consistent with topological constraints. The release condition for departure holding is associated with the release of downstream control segments and the clearing of conflict regions. The release condition for speed limits is associated with the reachable front boundary no longer covering the candidate conflict position. The release condition for delayed operation phases is associated with the restoration of the phase migration order. The release condition for segment permission withdrawal is associated with the clearing of dynamic occupants in the corresponding mutually exclusive segments. The release condition for prohibiting entry into conflict regions is associated with the conflict region layer index no longer being covered by multiple operation units in the future time window. The release condition for state refresh and segment state resampling is associated with the confidence mark of the state fragment reaching the level of being able to participate in the regular generation of reachable intervals. The counterfactual simulation component determines the duration of constraints based on the release conditions during each branch replay, rather than mechanically truncating them according to a fixed duration. This embodiment maintains the consistency between candidate control constraints and operation paths, segment permissions, and conflict region occupancy through topological release conditions.

[0056] In this embodiment, if both candidate control constraints can eliminate the same valid conflict, the constraint consistency screening process does not directly determine the retention result based on the constraint type. Instead, it generates a sorting index based on branch occupancy differences, topology consistency, segment permission consistency, and operational phase consistency. After the sorting index is written into the occupancy causal chain, it is associated with the operational unit record and the control segment record. During the review, the baseline branch, constraint branch, eliminated conflict candidate position, newly added occupancy overlap position, delayed dynamic occupancy body, and consistency check result corresponding to any candidate control constraint can be read. If the candidate control constraint with a lower ranking no longer generates new occupancy overlap due to status refresh in the subsequent rolling time window, the sorting index can be updated with the new branch replay result. The update process still retains the original branch occupancy differences as historical verification records. In this embodiment, through the sorting index and causal chain records, multiple candidate control constraints can be compared under the same calculation standard.

[0057] In one embodiment, the system's software implementation can employ an object-oriented data structure to store running units, state segments, topology indexes, dynamic occupancy bodies, and candidate control constraints. Running unit objects store the running unit identifier and the currently associated set of state segments. State segment objects store a unified simulation timescale, path coordinates, speed status, running stage, segment permission, and confidence level. Topology index objects store the mapping relationship between continuous path layers, control segment layers, and conflict region layers. Dynamic occupancy body objects store time indexes, topology indexes, and occupancy sources. Candidate control constraint objects store constraint types, constraint start timescales, release conditions, and branch identifiers. During calculation, the unified simulation timescale drives reading and writing between objects, and no object is updated independently without referencing the unified timescale. The primary key in the database or memory table is composed of the running unit identifier, time index, and topology index. This embodiment, through the correspondence between object relationships and matrix indexes, provides each functional component with an implementable software data foundation.

[0058] In this embodiment, during specific operation, the twin spatiotemporal reference construction component first forms state segments from existing operation control data. The path topology constraint component then adds path coordinates, control segment, and conflict region indexes to the state segments. The motion envelope generation component obtains the reachable intervals of each time index within the future time window according to the hysteresis correction reachable set generation process. The spatiotemporal occupancy verification component writes the reachable intervals into the spatiotemporal occupancy matrix and forms conflict candidate positions. The conflict link screening process divides the conflict candidate positions into conflicts to be verified and valid conflicts. The counterfactual simulation component constructs candidate control constraints based on the classification results and performs parallel twin replay. The constraint consistency screening process deletes branches that disrupt the topology, segment permission, or operation phase order. The occupancy causal chain generation process writes the retained branches into the operation unit record and control segment record. Through the above continuous processing, the system forms a closed-loop implementation from state input to simulation verification record. The advantage of this embodiment is that it can support future spatiotemporal occupancy overlap judgment and candidate control constraint verification with a unified data chain.

Claims

1. A digital twin-based amusement park collision avoidance safety simulation system, characterized in that, include: Twin spatiotemporal benchmark construction component, path topology constraint component, motion envelope generation component, spatiotemporal occupancy verification component, and counterfactual simulation component; The twin spatiotemporal reference construction component maps the number, location, speed, operation stage, departure permit, and section occupancy status of the amusement facility operation unit to a unified digital twin coordinate system and time scale sequence; The path topology constraint component generates topology constraint relationships based on the running path, control segment, intersection area, and prohibited simultaneous occupation area. The motion envelope generation component generates a reachable motion envelope within a future time window based on the topological constraint relationship, velocity variation range, braking response time, and control command activation hysteresis. The spatiotemporal occupancy verification component discretizes the reachable motion envelope into a dynamic occupancy volume and writes it into the spatiotemporal occupancy matrix; The counterfactual simulation component performs simulation verification on the candidate control constraints corresponding to overlapping occupancy.

2. The amusement park collision avoidance safety simulation system based on digital twins according to claim 1, characterized in that, The twin spatiotemporal reference construction component includes a state timescale alignment process, which converts the sampling time from the operation control record, the segment permission record, and the operation unit state record into a unified simulation timescale, and establishes state segments according to the data generation order, transmission delay identifier, and state duration. For positional or stage transitions of the same operating unit between adjacent state segments, intermediate compensation states are generated based on the operating path topology and stage migration order. For state fragments that exceed the preset time limit, the state value is retained and a confidence mark is added, so that the subsequent reachable motion envelope generation references both the state value and the confidence mark.

3. The amusement park collision avoidance safety simulation system based on digital twins according to claim 2, characterized in that, The path topology constraint component includes a hierarchical topology expression process, which divides the amusement facility operation path into a continuous path layer, a control section layer, and a conflict area layer. The continuous path layer records the sequential positional relationship of the running units along the path; the control segment layer records the segment entry conditions, release conditions, and permission mutual exclusion relationships; and the conflict area layer records the intersection area, adjacent safety boundaries, and prohibited simultaneous occupation areas. The hierarchical topology representation process associates the continuous path layer, the control segment layer, and the conflict region layer through the same digital twin coordinate index, so that the motion deduction of the same operating unit is simultaneously constrained by path continuity, segment permission, and conflict region mutual exclusion.

4. The amusement park collision avoidance safety simulation system based on digital twins according to claim 3, characterized in that, The motion envelope generation component includes a hysteresis-corrected reachable set generation process. The hysteresis-corrected reachable set generation process takes the state segment, the confidence label, and the topological constraint relationship output by the hierarchical topology expression process as input, and represents the candidate position of the running unit in the future time window as a reachable interval extending along the path direction. The leading edge boundary of the reachable section is jointly defined by the speed variation range and the section passage conditions, while the trailing edge boundary is jointly defined by the braking response time, the control command activation delay, and the operation phase maintenance conditions. When the state confidence level is lower than the preset level, the reachable range expands along the allowed running direction and is truncated at the topological boundary where reversal or crossing is prohibited.

5. The amusement park collision avoidance safety simulation system based on digital twins according to claim 4, characterized in that, The spatiotemporal occupancy verification component includes an occupancy matrix transformation process, which converts the reachable interval into a dynamic occupancy body containing a time index, path index, segment index, and conflict area index according to a unified simulation time scale. For the same operating unit that spans both the continuous path layer and the control section layer, multiple indexes at the same time will be merged into a single occupancy record. For dynamic occupancy volumes of different operating units, segment mutual exclusion matching is performed first according to the time index, then conflict area overlap matching is performed, and finally path adjacent boundary matching is performed. The matching results are written into the conflict candidate positions in the spatiotemporal occupancy matrix.

6. The amusement park collision avoidance safety simulation system based on digital twins according to claim 5, characterized in that, The spatiotemporal occupancy verification component also includes a conflict link filtering process, which tracks the source of the dynamic occupancy body corresponding to the conflict candidate position and obtains the running unit state fragments, topological constraint relationships, reachable interval boundaries and occupancy records that form occupancy overlap. When occupancy overlap is generated only by the expansion of low-confidence state fragments, the corresponding result is marked as a conflict to be verified; When overlapping occupancy conditions simultaneously satisfy segment mutual exclusion, conflict area overlap, and future time index coincidence, the corresponding result is marked as a valid conflict; The conflict to be verified and the valid conflict are respectively input into different candidate control constraint sets of the counterfactual simulation component.

7. The amusement park collision avoidance safety simulation system based on digital twins according to claim 6, characterized in that, The counterfactual simulation component includes a candidate control constraint construction process, which selects candidate control constraints directly related to the conflict link from departure maintenance, speed limit, operation phase delay, section permission withdrawal, and conflict area prohibition based on the source tracing results corresponding to the effective conflict. For the conflict to be verified, priority is given to constructing state refresh, segment state resampling, and reconfirming the corresponding candidate control constraints during the operation phase. Each candidate control constraint is associated with the affected operating unit, the affected section, the constraint start time scale, the constraint release condition, and the future time window for resimulation.

8. The amusement park collision avoidance safety simulation system based on digital twins according to claim 7, characterized in that, The counterfactual simulation component also includes a parallel twin replay process, which uses the simulation branch without applied candidate control constraints as the base branch and generates constraint branches for each candidate control constraint. Each constraint branch reuses the hierarchical topology expression process, the hysteresis correction reachability set generation process, and the occupancy volume matrixization process to regenerate the spatiotemporal occupancy matrix; The parallel twin replay process compares the occupancy differences between each constraint branch and the baseline branch according to the same time index, and records the eliminated conflict candidate positions, the delayed occupancy bodies, and the newly added occupancy overlap positions.

9. The amusement park collision avoidance safety simulation system based on digital twins according to claim 8, characterized in that, The counterfactual simulation component also includes a constraint consistency screening process, which performs topology consistency, segment permission consistency, and operational phase consistency checks on each constraint branch based on the occupancy difference comparison results. When a constraint branch eliminates an existing valid conflict but generates a new segment mutual exclusion conflict or an overlapping conflict region, the corresponding candidate control constraint is deleted. When a constraint branch changes the order of the execution phases or disrupts the continuity of the path, the corresponding candidate control constraint is deleted. The retained candidate control constraints are used to form a traceable simulation verification record based on the corresponding source tracing results, constraint start time index, and conflict candidate position.

10. The amusement park collision avoidance safety simulation system based on digital twins according to claim 9, characterized in that, The simulation verification record also includes an occupancy causal chain generation process, which links the state segment, the topological constraint relationship, the reachable interval boundary, the dynamic occupancy volume, the conflict candidate position, and the reserved candidate control constraint in a chain according to a unified simulation time scale; In the case where the same valid conflict corresponds to multiple candidate control constraints, the occupancy causal chain generation process generates a sorting index according to the elimination status of the original valid conflict in the constraint branch, the newly added occupancy overlap status, and the segment permission consistency status, and writes the sorting index into the corresponding running unit and control segment record under the digital twin coordinate system.