Process prediction method and device based on historical model integration

By screening and updating the prediction model, and selecting prediction activities based on the contribution set, the problems of poor adaptability to dynamic process states and insufficient observation of historical information in the existing technology are solved, and accurate process prediction and anomaly detection in dynamic scenarios are achieved. .

CN118606718AActive Publication Date: 2024-09-06安徽思高智能科技有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411080753.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-09-06
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing prediction process methods are difficult to adapt when dealing with dynamically changing process states, resulting in a decrease in prediction accuracy. Training new models requires more time and resources, and lacks complete observation of historical process information.

Method used

By obtaining the process trajectory set within the latest time interval, filtering and updating the prediction model, and constructing a contribution set to select the final prediction activity, timely perception and accurate prediction of process characteristics are achieved.

Benefits of technology

Under constantly updated business process scenarios, it provides clearer and more accurate activity prediction information, reduces training costs, can detect changes in process characteristics in a timely manner, and supports outcome prediction and anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606718A
    Figure CN118606718A
Patent Text Reader

Abstract

The invention provides a process prediction method and device based on historical model integration, and relates to the field of process mining monitoring, and the method comprises the steps: obtaining a process track set sigma n of a business log L in a time period T belongs to [(n-1) t, nt]; calculating to obtain a prediction score of each prediction model in the first prediction model set S on sigma n, and obtaining a second prediction model set S '; obtaining a current prediction model Mn through sigma n training, putting Mn into S ', and obtaining a third prediction model set S' '; obtaining a flow track sigma k which is being executed in T < [nt, (n + 1) t], and performing activity prediction on sigma k through each prediction model in S ''to obtain a predicted activity set Xn; and constructing a contribution degree set Pn through S ', and selecting a final prediction activity from Xn through Pn. According to the method, the prediction model is screened through the flow path set in the recent time interval, so that a relatively constant prediction model is maintained, and future prediction activities can be monitored more accurately while the training cost is prevented from increasing along with time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of process mining monitoring, and in particular to a process prediction method and device based on historical model integration. Background Art

[0002] Predictive process monitoring (PPM) is an important task in the field of process mining. Its main purpose is to use machine learning methods to build a predictive model from a set of historical process trajectories, and to help enterprises better understand and perceive the future state of process instances based on predictive information.

[0003] Predicting the next activity type of a process instance is the most important prediction task in PPM. Current technical methods mainly focus on building complex and precise prediction models to continuously improve the accuracy of predictions for future activities. However, considering that processes in actual business scenarios are highly dynamic, the construction of prediction models relies on constant business logs and cannot adapt to capture dynamically changing process states, affecting prediction accuracy. As the number of historical process trajectories increases, training a new prediction model based on all historical process information consumes more time and resources. Considering only the most recent process trajectories to build a prediction model will result in a lack of observation of historical process information in the prediction process, and the process characteristics within different time ranges cannot be fully considered. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a process prediction method and device based on historical model integration to solve the problem that the existing prediction process lacks observation of historical process information.

[0005] The present invention provides a process prediction method based on historical model integration, comprising the steps of: S1: Get the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n , where n is the iteration number and t is the time interval; S2: Get the first prediction model set S, and calculate the prediction model in S in Σ n The prediction scores on the , eliminate the prediction models whose prediction scores are less than the preset value, and obtain the second prediction model set S'; S3: Through the process trajectory set Σ n Train to obtain the current prediction model M n , M n Put in S' to obtain the third prediction model set S"; S4: Get the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k , through each prediction model in S' k Perform activity prediction and obtain the predicted activity set X n; S5: Construct contribution set P through S” n , through the contribution set P n From the predicted activity set X n Select the final predicted activity; let n=n+1, S=S", and return to step S1.

[0006] Preferably, step S1 specifically comprises: S11: Get business log L={σ1, σ2, σ3,…, σ λ ,…}, where λ represents the number of the process track, σ λ represents the λth process trajectory executed; S12: Extract the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n ={σ i ,σ i+1 ,…}, where i represents the number of the process trajectory.

[0007] Preferably, step S2 specifically comprises: S21: Obtain the first prediction model set S={M j , M j+1 ,…,M n-1}, where j represents the number of the prediction model, M j represents the prediction model generated by the jth iteration; S22: Calculate and obtain the prediction model M j Σ n The average prediction accuracy of each process trajectory in M j The prediction score of S23: Repeat step S22 to calculate the prediction score of each prediction model in S, eliminate the prediction model with a prediction score less than a preset value, and obtain a second prediction model set S'.

[0008] Preferably, step S3 specifically comprises: S31: constructing an initial prediction model; S32: Set the process trajectory Σ n Use the training data set to train the initial prediction model and obtain the current prediction model M n , M n Put the last bit in S' to obtain the third prediction model set S".

[0009] Preferably, step S4 is specifically: S41: Obtain the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k = <e1, e2,…, e m>, where k is the number of the process track, m is the number of the activity, and e m Indicates that in σ k The mth activity executed in ; S42: Through the prediction model M j ∈S” predicts the process trajectory σ k Next activity (e' m+1 ) j , and (e' m+1 ) j As M j The prediction activity of, where j is the number of the prediction model; S43: Repeat step S42 to obtain the prediction activities of each prediction model in S", and form all the prediction activities into a prediction activity set X n .

[0010] Preferably, step S5 is specifically: S51: Get the u-th prediction model M added in S” u , calculate and obtain M u Contribution value p to the prediction result u n , the calculation formula is: , Among them, λ is the initialization contribution rate; S52: Repeat step S51 to calculate the contribution rate of each prediction model in S”, and form a contribution degree set P of all contribution rates. n ; S53: Obtain contribution set P n The prediction model with the largest contribution in the prediction activity set X n The prediction activity corresponding to the prediction model with the largest contribution is selected as the final prediction activity; S54: Let n=n+1, S=S”, and return to step S1.

[0011] A storage medium stores instructions and data for implementing a process prediction method based on historical model integration.

[0012] A process prediction device based on historical model integration includes: a processor and a storage medium; the processor loads and executes instructions and data in the storage medium to implement the process prediction method based on historical model integration.

[0013] The present invention has the following beneficial effects: The prediction model is screened by the set of process trajectories in the most recent time interval, so as to maintain a relatively constant prediction model. While avoiding the increase in training costs over time, future prediction activities can be monitored more accurately. In the constantly updated business process scenarios, changes in process characteristics can be perceived in a timely manner, providing enterprises with clearer and more accurate activity prediction information, thereby facilitating subsequent outcome prediction and anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a flow chart of a method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of business log segmentation; Figure 3 This is a structural diagram of the device according to an embodiment of the present invention; The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0015] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0016] Reference Figure 1 The present application provides a process prediction method based on historical model integration, comprising the steps of: S1: Get the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n , where n is the iteration number and t is the time interval; Furthermore, step S1 is specifically as follows: S11: Get business log L={σ1, σ2, σ3,…, σ λ ,…}, where λ represents the number of the process track, σ λ represents the λth process trajectory executed; S12: Extract the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n ={σ i ,σ i+1 ,…}, where i represents the number of the process trajectory.

[0017] Specifically, the business logs are divided according to time intervals, such as Figure 2 shown.

[0018] S2: Get the first prediction model set S, and calculate the prediction model in S in Σ n The prediction scores on the , eliminate the prediction models whose prediction scores are less than the preset value, and obtain the second prediction model set S'; Furthermore, step S2 is specifically as follows: S21: Obtain the first prediction model set S={M j , M j+1 ,…,M n-1}, where j represents the number of the prediction model, M j represents the prediction model generated by the jth iteration; S22: Calculate and obtain the prediction model M j Σ n The average prediction accuracy of each process trajectory in M j The prediction score of Furthermore, step S22 is specifically as follows: S221: Initialize the accuracy set Acc of the prediction model to 0; n ={σ i , σ i+1 ,…} are arranged in chronological order and traverse Σ n The process trajectory in S222: For the process trajectory σ obtained by the qth traversal q = <e1, e2,…, e w >, where e w Indicates that in σ q The wth activity performed in q The activities in get the set of activity subsequences φ q ={ <e1>,<e1, e2> ,…, <e1, e2,…, e w-1 >} and the corresponding set of next activities {e2,e3,…,e w }; S223: For the set φ q , input the activity subsequences into the prediction model M j The set of prediction results is obtained, and the set of prediction results and the next activity {e2, e3, …, e w }Compared with the calculation prediction model M j The prediction accuracy is calculated and the accuracy results are merged into the set Acc; S224: Return to step S222 until all Σ n All process trajectories in the calculation prediction model M j The final prediction score is the average value (Acc) of the elements in the accuracy set Acc.

[0019] S23: Repeat step S22 to calculate the prediction score of each prediction model in S, eliminate the prediction model with a prediction score less than a preset value, and obtain a second prediction model set S'.

[0020] S3: Through the process trajectory set Σ n Train to obtain the current prediction model M n , M n Put in S' to obtain the third prediction model set S"; Furthermore, step S3 is specifically as follows: S31: constructing an initial prediction model; S32: Set the process trajectory Σ n Use the training data set to train the initial prediction model and obtain the current prediction model M n , M n Put the last bit in S' to obtain the third prediction model set S".

[0021] Further, step S32 is specifically as follows: S321: Initialize the training data set D={}, the set of next activities corresponding to the training data T={}, and obtain the set Σ n The average length d of the process trajectory in; S322: Σ n ={σ i , σ i+1 ,…} are arranged in chronological order and traverse Σ n The process trajectory in S323: Set the process trajectory σ q = <e1, e2,…, e w >∈Σ n Further partitioning to obtain the set of active subsequences φ q ={ <e1>,<e1, e2> ,…, <e1, e2,…, e w-1 >} and the corresponding set of next activities {e2,e3,…,e w }, where e w Indicates that in σ q The wth activity executed in ; S324: φ q The activity subsequences in are unified into a sequence of length d by truncating or filling integer 0, and a new activity subsequence set φ' is obtained. q ; Specifically, when d=4, φ' q ={<0,0,0,e1>,<0,0,e1, e2>,…, <e w-4 ,…, e w-1 >}; S325: Update T = T∪{e2,e3,…,e w }, D = D ∪ φ' q , until all Σ are traversed n The process trajectory in the training dataset D and the corresponding next activity set T are obtained; S326: The trajectories in the training data set D are input into the prediction model based on the two-layer long short-term memory network (LSTM), and the set of prediction results P is output, and the loss value loss=Crossentropy(P,T) is calculated; S327: Optimize the model parameters based on the loss value, return to step S335, until the maximum number of iterations is exceeded or the loss value converges, and save the prediction model M corresponding to the minimum loss n .

[0022] Specifically, we choose to build an initial prediction model based on a two-layer long short-term memory network (LSTM) and transform the process trajectory set Σ n The entire trajectory in is divided into a set of activity subsequences and input into the initial prediction model. The cross entropy between the prediction result and the true value is calculated as the loss function. The model parameters are updated based on the loss value to obtain the current prediction model M n .

[0023] S4: Get the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k , through each prediction model in S' k Perform activity prediction and obtain the predicted activity set X n ; Furthermore, step S4 is specifically as follows: S41: Obtain the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k = <e1, e2,…, e m >, where k is the number of the process track, m is the number of the activity, and e m Indicates that in σ k The mth activity executed in ; S42: Through the prediction model M j ∈S” predicts the process trajectory σ k Next activity (e' m+1 ) j , and (e' m+1 ) j As M j The prediction activity of, where j is the number of the prediction model; S43: Repeat step S42 to obtain the prediction activities of each prediction model in S", and form all the prediction activities into a prediction activity set X n .

[0024] S5: Construct contribution set P through S” n , through the contribution set P n From the predicted activity set X n Select the final predicted activity; let n=n+1, S=S", and return to step S1.

[0025] Furthermore, step S5 is specifically as follows: S51: Get the u-th prediction model M added in S” u , calculate and obtain M u Contribution value p to the prediction result u n , the calculation formula is: , Among them, λ is the initialization contribution rate; S52: Repeat step S51 to calculate the contribution rate of each prediction model in S”, and form a contribution degree set P of all contribution rates. n ; S53: Obtain contribution set P n The prediction model with the largest contribution in the prediction activity set X n The prediction activity corresponding to the prediction model with the largest contribution is selected as the final prediction activity; Specifically, the prediction model M with the greatest contribution v =argmax(P n ), the prediction model M v The corresponding predicted activity (e' m+1 ) v As process trajectory σ k The next final forecast activity of ; S54: Let n=n+1, S=S”, and return to step S1.

[0026] See also Figure 3 , Figure 3 It is a schematic diagram of the working of the hardware device of an embodiment of the present invention, and the hardware device specifically includes: a process prediction device 401 based on historical model integration, a processor 402 and a storage medium 403.

[0027] A process prediction device 401 based on historical model integration: The process prediction device 401 based on historical model integration implements the process prediction method based on historical model integration.

[0028] Processor 402: The processor 402 loads and executes the instructions and data in the storage medium 403 to implement the process prediction method based on historical model integration.

[0029] Storage medium 403: The storage medium 403 stores instructions and data; the storage medium 403 is used to implement the process prediction method based on historical model integration.

[0030] It should be noted that, in this article, the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0031] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as identifiers.

[0032] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A process prediction method based on historical model integration, characterized in that: Includes steps: S1: Get the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n , where n is the iteration number and t is the time interval; S2: Get the first prediction model set S, and calculate the prediction model in S in Σ n The prediction scores on the , eliminate the prediction models whose prediction scores are less than the preset value, and obtain the second prediction model set S'; S3: Through the process trajectory set Σ n Train to obtain the current prediction model M n , M n Put in S' to obtain the third prediction model set S"; S4: Get the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k , through each prediction model in S' k Perform activity prediction and obtain the predicted activity set X n ; S5: Construct contribution set P through S” n , through the contribution set P n From the predicted activity set X n Select the final predicted activity; let n=n+1, S=S", and return to step S1.

2. The process prediction method based on historical model integration according to claim 1 is characterized in that: Step S1 is specifically as follows: S11: Get business log L={σ1, σ2, σ3,…, σ λ ,…}, where λ represents the number of the process track, σ λ represents the λth process trajectory executed; S12: Extract the process trajectory set Σ of the business log L in the time period T∈[(n-1)t,nt] n ={σ i , σ i+1 ,…}, where i represents the number of the process trajectory.

3. The process prediction method based on historical model integration according to claim 1 is characterized in that: Step S2 is specifically as follows: S21: Obtain the first prediction model set S={M j , M j+1 ,…,M n-1 }, where j represents the number of the prediction model, M j represents the prediction model generated by the jth iteration; S22: Calculate and obtain the prediction model M j Σ n The average prediction accuracy of each process trajectory in M j The prediction score of S23: Repeat step S22 to calculate the prediction score of each prediction model in S, eliminate the prediction model with a prediction score less than a preset value, and obtain a second prediction model set S'.

4. A process prediction method based on historical model integration according to claim 1, characterized in that: Step S3 is specifically as follows: S31: constructing an initial prediction model; S32: Set the process trajectory Σ n Use the training data set to train the initial prediction model and obtain the current prediction model M n , M n Put the last bit in S' to obtain the third prediction model set S".

5. The process prediction method based on historical model integration according to claim 1 is characterized in that: Step S4 is specifically as follows: S41: Obtain the process trajectory σ being executed in the time period T∈[nt, (n+1)t] k = <e1, e2,…, e m >, where k is the number of the process track, m is the number of the activity, and e m Indicates that in σ k The mth activity executed in ; S42: Through the prediction model M j ∈S” predicts the process trajectory σ k Next activity (e' m+1 ) j , and (e' m+1 ) j As M j The prediction activity of, where j is the number of the prediction model; S43: Repeat step S42 to obtain the prediction activities of each prediction model in S", and form all the prediction activities into a prediction activity set X n .

6. The process prediction method based on historical model integration according to claim 1 is characterized in that: Step S5 is specifically as follows: S51: Get the u-th prediction model M added in S” u , calculate and obtain M u Contribution value p to the prediction result u n , the calculation formula is: , Among them, λ is the initialization contribution rate; S52: Repeat step S51 to calculate the contribution rate of each prediction model in S”, and form all contribution rates into a contribution degree set P n ; S53: Obtain contribution set P n The prediction model with the largest contribution in the prediction activity set X n The prediction activity corresponding to the prediction model with the largest contribution is selected as the final prediction activity; S54: Let n=n+1, S=S”, and return to step S1.

7. A storage medium, characterized in that: The storage medium stores instructions and data for implementing a process prediction method based on historical model integration as described in any one of claims 1 to 6.

8. A process prediction device based on historical model integration, characterized in that: include: Processor and storage medium; the processor loads and executes instructions and data in the storage medium to implement a process prediction method based on historical model integration as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Self-excitation type electromagnetic riveting quality prediction and evaluation system based on ensemble learning

    CN116090130A

  • Process discovery method and system based on predictive log enhancement

    CN117495071A

  • Creative process management method assisted by artificial intelligence

    CN117745048A

  • Flow prediction model training method, device and equipment for digital service network

    CN117952272A

  • Minimizing Uncertainty Envelopes in Trajectories of Evolving Ensemble Members

    US20150310137A1