Process simulation scoring method and system based on state machine

Through the state machine-based scoring method, the problem of difficult processing of complex scoring logic in the prior art is solved, the flexibility of the scoring model and automated batch processing are realized, and the scoring modeling efficiency and consistency are improved.

CN116661839BActive Publication Date: 2024-12-20BEIJING HEROOPSYS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310649769.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2024-12-20
Estimated Expiration
2043-06-02

AI Technical Summary

Technical Problem

Existing scoring modeling methods used in process simulation training software are difficult to deal with complex logic, modify scoring logic and increase scoring status, are prone to errors, and are not suitable for automated batch processing.

Method used

Using the state machine-based process simulation scoring method, manage state migration, trigger conditions and management of state migration, and Execute actions, using value trigger and timing trigger conditions to implement scoring logic.

Benefits of technology

It implements a scoring model suitable for complex scoring logic processing, which facilitates modification and increase scoring status, improves scoring modeling efficiency, reduces error occurrence, and supports automated batch code generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116661839B_ABST
    Figure CN116661839B_ABST
Patent Text Reader

Abstract

The present application discloses a process simulation scoring method and system based on a state machine. The method first obtains all scoring items in the process simulation training software, performs process simulation scoring for each scoring item, and scores the user's operation data in the process simulation training software according to the modeled process simulation scoring model. The process of establishing the process simulation scoring model specifically includes determining and establishing each state of the scoring item; establishing state transition rules between each state of the scoring item; wherein the state transition rules include determining all possible state transition paths between each state and their triggering conditions. The present invention can be applied to complex scoring logic processing, is convenient for modifying scoring logic, is convenient for adding new scoring states, is not prone to errors, has good consistency, can automatically generate code in batches, and improves the efficiency of scoring modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of process simulation training software, and in particular to a process simulation scoring method and system based on a state machine. Background Art

[0002] The scoring function is an important function of process simulation training software. It can automatically score the user's operation steps, quality, etc. in combination with the entire process of simulation training, make scientific and accurate evaluations of the user's operation, and then find problems in their own operations and make improvements. It is an important basis for enterprises to examine the skill level of employees. Among them, the state machine generally refers to the finite state machine, which is a tool used to model object behavior. Its function is to describe the state sequence that an object goes through during its life cycle, and how to respond to various events from the outside world.

[0003] The existing scoring modeling method used for process simulation training software is usually a process control method. Each scoring item is executed from beginning to end according to a pre-set logic to judge various given conditions in the scoring process, thereby obtaining the final score.

[0004] However, the existing methods are not conducive to processing complex scoring logic, modifying scoring logic, adding new scoring states, are prone to errors, and are not conducive to automated batch processing. Summary of the invention

[0005] Based on this, the embodiments of the present application provide a process simulation scoring method and system based on a state machine, which can solve the problems existing in the existing methods.

[0006] In a first aspect, a process simulation scoring method based on a state machine is provided, the method comprising:

[0007] Obtain all scoring items in the process simulation training software, perform process simulation scoring for each scoring item, and score the user's operation data in the process simulation training software according to the modeled process simulation scoring model; wherein the establishment process of the process simulation scoring model specifically includes:

[0008] Determine and establish various states of the scoring items; wherein the states of the scoring items at least include an initial state, a start scoring state, a scoring state, a complete scoring state, and a termination state;

[0009] Establishing state transition rules between various states of the scoring item; wherein the state transition rules include determining all possible state transition paths between various states and their triggering conditions.

[0010] Optionally, scoring the user's operation data in the process simulation training software according to the modeled process simulation scoring model includes:

[0011] Manage the migration of states, entry and exit of states, and execution actions of states in scoring items;

[0012] Manage the status before and after migration, the triggering conditions of migration, determine whether the migration conditions are met, and actually initiate the migration;

[0013] Manage the entry of trigger conditions and the checking of trigger conditions.

[0014] Optionally, among all possible transition paths between various states, it is determined that the existing state transition paths include:

[0015] The initial state is transferred to the final state, the initial state is transferred to the start scoring state, the start scoring state is transferred to the final state, the start scoring state is transferred to the scoring state, the scoring state is transferred to the final state, and the start scoring state is transferred to the complete scoring state.

[0016] Optionally, the triggering conditions of the state transition specifically include: a start scoring condition, a scoring condition, a completion scoring condition, and a termination condition.

[0017] Optionally, for each trigger condition of the state transition, specifically include:

[0018] Value trigger conditions and timing trigger conditions; wherein the value trigger condition is specifically used to trigger when a preset constant value is obtained, and the timing trigger condition is specifically used to trigger according to the time length calculated from entering the state.

[0019] In a second aspect, a process simulation scoring system based on a state machine is provided, the system comprising:

[0020] The scoring unit is used to obtain all scoring items in the process simulation training software, perform process simulation scoring for each scoring item, and score the user's operation data in the process simulation training software according to the modeled process simulation scoring model; wherein the scoring unit specifically includes:

[0021] The scoring item state machine module is used to determine and establish various states of the scoring item; wherein the states of the scoring item at least include an initial state, a start scoring state, a scoring state, a complete scoring state, and a termination state;

[0022] Establishing state transition rules between various states of the scoring item; wherein the state transition rules include determining all possible state transition paths between various states and their triggering conditions.

[0023] Optionally, the scoring unit includes:

[0024] The scoring item status module is used to manage the migration of status in the scoring item, the entry and exit of the status, and the execution actions of the status;

[0025] The rating item state migration module is used to manage the states before and after the migration, the triggering conditions of the migration, determine whether the migration conditions are met, and actually initiate the migration;

[0026] The scoring item state transition trigger condition module is used to manage the entry and inspection of trigger conditions.

[0027] Optionally, among all possible transition paths between various states, it is determined that the existing state transition paths include:

[0028] The initial state is transferred to the final state, the initial state is transferred to the start scoring state, the start scoring state is transferred to the final state, the start scoring state is transferred to the scoring state, the scoring state is transferred to the final state, and the start scoring state is transferred to the complete scoring state.

[0029] Optionally, the triggering conditions of the state transition specifically include: a start scoring condition, a scoring condition, a completion scoring condition, and a termination condition.

[0030] Optionally, for each trigger condition of the state transition, specifically include:

[0031] Value trigger conditions and timing trigger conditions; wherein the value trigger condition is specifically used to trigger when a preset constant value is obtained, and the timing trigger condition is specifically used to trigger according to the time length calculated from entering the state.

[0032] The technical solution provided in the embodiment of the present application obtains all the scoring items in the process simulation training software, performs process simulation scoring for each scoring item, and scores the user's operation data in the process simulation training software according to the modeled process simulation scoring model. In the present application, the process of establishing the process simulation scoring model specifically includes determining and establishing each state of the scoring item; establishing state transition rules between each state of the scoring item; wherein the state transition rules include determining all possible state transition paths between each state and their triggering conditions. It can be seen that the beneficial effect of the present invention is that the established process simulation scoring model can be applied to complex scoring logic processing, is easy to modify the scoring logic, is easy to add new scoring states, is not prone to errors, has good consistency, can automatically generate code in batches, and improves the efficiency of scoring modeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0034] Figure 1 A state transition rule diagram of a process simulation scoring model based on a state machine provided in an embodiment of the present application;

[0035] Figure 2 A flowchart of establishing a scoring item state machine module provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] In the description of the present invention, the terms "comprises", "has" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may also include other steps or units that are not explicitly listed but are inherent to these processes, methods, products or apparatuses, or steps or units added based on further optimization schemes conceived by the present invention.

[0038] The present invention relates to a process simulation scoring modeling method and system based on a state machine, which implements scoring modeling of process simulation training software based on a state machine, is suitable for complex scoring logic processing, is convenient for modifying the scoring logic, is convenient for adding new scoring states, is not prone to errors, has good consistency, can automatically generate codes in batches, improves scoring modeling efficiency, and is suitable for the technical field of process simulation training software.

[0039] The state machine in this application refers to a mathematical model that is used to describe the behavior and transition rules of a system. It contains a set of states, inputs, and transition rules between states. In this model, the system determines the next state based on the current state and input, and performs the corresponding operation.

[0040] Among them, the state machine usually includes the following elements:

[0041] State: The possible states of a system.

[0042] Input: Input signal that triggers state transition.

[0043] State transition rules: the transition conditions from one state to another and their corresponding actions.

[0044] Action: The operation performed when a state transition occurs.

[0045] State machines can be used to describe many practical systems, such as elevator control systems, embedded systems, etc. In software design, state machines can be used to manage complex program logic and implement various protocols and business processes.

[0046] The process simulation scoring method based on the state machine provided in the embodiment of the present application may specifically include:

[0047] All scoring items in the process simulation training software are obtained, process simulation scoring is performed for each scoring item, and the user's operation data in the process simulation training software is scored according to the modeled process simulation scoring model.

[0048] In the embodiment of the present application, the process of establishing the process simulation scoring model specifically includes:

[0049] (1) Determine and establish the various states of the scoring items.

[0050] The status of the scoring item includes at least an initial status, a start scoring status, a scoring status, a complete scoring status and a termination status.

[0051] (2) Establish state transition rules between the various states of the scoring items.

[0052] The state transition rules include determining all possible state transition paths between states and their triggering conditions.

[0053] In the embodiments of the present application,

[0054] All possible state transitions include: initial state -> terminal state, initial state -> start scoring state, start scoring state -> terminal state, start scoring state -> scoring state, scoring state -> terminal state, start scoring state -> scoring state, i.e., the initial state transitions to the terminal state, the initial state transitions to the start scoring state, the start scoring state transitions to the terminal state, the start scoring state transitions to the scoring state, the scoring state transitions to the terminal state, and the start scoring state transitions to the completed scoring state.

[0055] The trigger conditions for state transition include: start scoring conditions, scoring conditions, completion scoring conditions, and termination conditions; the trigger conditions for state transition are mainly divided into two categories: value trigger conditions and timing trigger conditions; value trigger conditions are used to check the value of a given variable, such as valve opening and instrument measurement values; timing trigger conditions are used to check the duration calculated from entering the state.

[0056] The state transition rules of the scoring items are as follows:

[0057] Initial state - meet the termination condition - termination state;

[0058] Initial state - meet the conditions for starting scoring - start scoring state;

[0059] Start scoring state - meet termination conditions - termination state;

[0060] Start scoring status - meet scoring conditions - scoring status;

[0061] Scoring status - meeting termination conditions - termination status;

[0062] Start scoring status - meet the scoring completion conditions - complete scoring status.

[0063] According to the state transition rules of the above scoring items, such as Figure 1 , and the state transition rule diagram of the scoring items is given.

[0064] From the above, it can be seen that the state machine-based scoring modeling method of the present application includes the following steps:

[0065] Identify all possible states of the graded item: these states include initial state, start grading state, grading state, completed grading state, and terminated state.

[0066] Determine the state transition rules of the scoring items: This includes all possible transitions between states and their triggering conditions. For example, from the initial state to the final state, from the initial state to the start scoring state, from the start scoring state to the final state, etc.

[0067] Trigger conditions for state transition: These conditions include start scoring conditions, scoring conditions, completion scoring conditions, and termination conditions. Trigger conditions are divided into value trigger conditions and timing trigger conditions. Value trigger conditions are used to check the value of a given variable, such as valve opening and instrument measurement values. Timing trigger conditions are used to check the length of time calculated from entering a state.

[0068] According to the above rules, the state transition mode of the scoring item is determined, including from the initial state to the final state, from the initial state to the start scoring state, from the start scoring state to the final state, from the start scoring state to the scoring state, from the scoring state to the final state, and from the start scoring state to the completed scoring state.

[0069] Finally, according to the design of the entire state machine, the actual scoring operation is performed.

[0070] This scoring modeling method based on the state machine has the advantages of being clear, easy to understand and implement, and can provide effective support for scoring work. Please implement the scoring modeling of process simulation training software based on the state machine and decompose the complex scoring logic into various states and state transition rules.

[0071] The embodiment of the present application also provides a process simulation scoring system based on a state machine. The system includes:

[0072] The scoring unit is used to obtain all scoring items in the process simulation training software, perform process simulation scoring for each scoring item, and score the user's operation data in the process simulation training software according to the modeled process simulation scoring model; wherein the scoring unit specifically includes:

[0073] The scoring item state machine module is used to determine and establish each state of the scoring item and establish the state transition rules between each state of the scoring item;

[0074] Specifically, by determining all possible states of the scoring item, determining the state transition rules of the scoring item, managing the state of the scoring item, state transition and its triggering conditions, the current state of the scoring item, when the state machine receives a message notification, it will call the operation method of the current state. Among them, the state of the scoring item includes at least the initial state, the start scoring state, the scoring state, the completion scoring state and the termination state.

[0075] In an optional embodiment of the present application, the scoring unit includes:

[0076] The scoring item status module is used to manage the state migration, state entry and exit, state execution actions and other functions; each state module corresponds to a state.

[0077] The scoring item state transition module is used to manage the states before and after the transition, the triggering conditions of the transition, determine whether the transition conditions are met, and actually initiate the transition. When at least one of the transition conditions is met, the state transition will be triggered; each state transition module corresponds to one state transition.

[0078] The scoring item state transition trigger condition module is used to manage the entry of trigger conditions, the checking of trigger conditions and other functions; each state transition trigger condition module corresponds to a state transition trigger condition.

[0079] like Figure 2 , a flowchart for establishing the scoring item state machine module is given.

[0080] In an optional embodiment of the present application, among all possible transition paths between various states, the existing state transition paths include:

[0081] The initial state is transferred to the final state, the initial state is transferred to the start scoring state, the start scoring state is transferred to the final state, the start scoring state is transferred to the scoring state, the scoring state is transferred to the final state, and the start scoring state is transferred to the complete scoring state.

[0082] In an optional embodiment of the present application, the triggering conditions for state transition specifically include: a start scoring condition, a scoring condition, a completion scoring condition, and a termination condition.

[0083] In an optional embodiment of the present application, each trigger condition for state transition specifically includes a value trigger condition and a timing trigger condition; wherein the value trigger condition is specifically used to trigger when a preset constant value is obtained, and the timing trigger condition is specifically used to trigger according to the time length calculated from entering the state.

[0084] The state machine-based process simulation scoring system provided in the embodiment of the present application is used to implement the above-mentioned state machine-based process simulation scoring method. For the specific limitations of the state machine-based process simulation scoring system, please refer to the limitations of the state machine-based process simulation scoring method in the above text, which will not be repeated here. The various parts of the above-mentioned state machine-based process simulation scoring system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the device in the form of hardware, or can be stored in the memory in the device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.

[0085] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0086] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A process simulation scoring method based on a state machine, characterized in that: The method comprises: Obtain all scoring items in the process simulation training software, perform process simulation scoring for each scoring item, and score the user's operation data in the process simulation training software according to the modeled process simulation scoring model; wherein the establishment process of the process simulation scoring model specifically includes: Determine and establish various states of the scoring items; wherein the states of the scoring items at least include an initial state, a start scoring state, a scoring state, a complete scoring state, and a termination state; Establishing state transition rules between various states of the scoring item; wherein the state transition rules include determining all possible state transition paths between various states and their triggering conditions; The step of scoring the user's operation data in the process simulation training software according to the process simulation scoring model completed by modeling includes: Manage the migration of states, entry and exit of states, and execution actions of states in scoring items; Manage the status before and after migration, the triggering conditions of migration, determine whether the migration conditions are met, and actually initiate the migration; Manage the entry of trigger conditions and the checking of trigger conditions; The triggering conditions for state transition specifically include: start scoring condition, scoring condition, completion scoring condition, and termination condition.

2. The process simulation scoring method according to claim 1, characterized in that: Determine all possible transition paths between states. The state transition paths that exist include: The initial state is transferred to the final state, the initial state is transferred to the start scoring state, the start scoring state is transferred to the final state, the start scoring state is transferred to the scoring state, the scoring state is transferred to the final state, and the start scoring state is transferred to the complete scoring state.

3. The process simulation scoring method according to claim 1, characterized in that: For each trigger condition of state transition, it specifically includes: Value trigger conditions and timing trigger conditions; wherein the value trigger condition is specifically used to trigger when a preset constant value is obtained, and the timing trigger condition is specifically used to trigger according to the time length calculated from entering the state.

4. The process simulation scoring system based on the state machine is characterized by: The system comprises: The scoring unit is used to obtain all scoring items in the process simulation training software, perform process simulation scoring for each scoring item, and score the user's operation data in the process simulation training software according to the modeled process simulation scoring model; wherein the scoring unit specifically includes: The scoring item state machine module is used to determine and establish various states of the scoring item; wherein the states of the scoring item at least include an initial state, a start scoring state, a scoring state, a complete scoring state, and a termination state; Establishing state transition rules between various states of the scoring item; wherein the state transition rules include determining all possible state transition paths between various states and their triggering conditions; The scoring unit includes: The scoring item status module is used to manage the migration of the status in the scoring item, the entry and exit of the status, and the execution action of the status; The rating item state migration module is used to manage the states before and after the migration, the triggering conditions of the migration, determine whether the migration conditions are met, and actually initiate the migration; The scoring item state transition trigger condition module is used to manage the entry and inspection of trigger conditions; The triggering conditions for state transition specifically include: start scoring condition, scoring condition, completion scoring condition, and termination condition.

5. The process simulation scoring system according to claim 4, characterized in that: Determine all possible transition paths between states. The state transition paths that exist include: The initial state is transferred to the final state, the initial state is transferred to the start scoring state, the start scoring state is transferred to the final state, the start scoring state is transferred to the scoring state, the scoring state is transferred to the final state, and the start scoring state is transferred to the complete scoring state.

6. The process simulation scoring system according to claim 4, characterized in that: For each trigger condition of state transition, it specifically includes: Value trigger conditions and timing trigger conditions; wherein the value trigger condition is specifically used to trigger when a preset constant value is obtained, and the timing trigger condition is specifically used to trigger according to the time length calculated from entering the state.