Business process remaining time prediction method and system based on interpretable hierarchical model

By using interpretable hierarchical models and feature self-selection strategies in the business process, combined with LightGBM and LSTM, the problem of insufficient interpretability of feature selection and prediction results in the existing technology is solved, and efficient and reliable prediction of the remaining time of the business process is achieved. Credibility.

CN114662793BActive Publication Date: 2024-08-23SHANDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210433390.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2024-08-23
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

The existing technology lacks a universal feature selection method in business process remaining time prediction, and machine learning and deep learning methods are difficult to provide interpretive prediction results, affecting the credibility of the prediction results.

Method used

A method based on the interpretable hierarchical model is adopted, the LightGBM algorithm is used for feature self-selection, and the LSTM neural network is combined to build an interpretable hierarchical model, and the visualization and interpretability of the prediction results are improved through feature importance values ​​and encoding methods.

Benefits of technology

It realizes the automatic selection of features and the interpretability of the model in the prediction of the remaining time of the business process, improves the credibility and accuracy of the prediction results, ensures that the business completes the task within the required time, and responds to delays in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114662793B
    Figure CN114662793B
Patent Text Reader

Abstract

The present invention discloses a method and system for predicting the remaining time of a business process based on an interpretable hierarchical model, including: 1) log acquisition and preprocessing; 2) feature self-selection; 3) feature encoding; 4) determining the basic unit structure of the model and selecting the trajectory prefix; 5) constructing, training and debugging the interpretable hierarchical model; 6) evaluating and visualizing the prediction results of the interpretable hierarchical model. The present invention provides a general feature self-selection strategy for the business process remaining time prediction task, automatically selects features that are important and have a positive impact on the prediction task as model input, and constructs an interpretable hierarchical model and a visual presentation of the prediction results, explaining the way and degree of influence of each feature on the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of business process remaining time prediction, and in particular to a business process remaining time prediction method and system based on an interpretable hierarchical model. Background Art

[0002] With the digital transformation and intelligent development of enterprises, event data in enterprise information systems have been stored in high quality. Process mining technology can extract valuable information from historical event logs and help enterprises improve production efficiency and product quality, avoid unnecessary risks, and enhance the competitiveness of enterprises. Process mining technology has gradually become a hot research field for scholars at home and abroad, establishing a connection between data mining and business process management, and providing more systematic and efficient ideas and technologies for business process management. Process mining refers to mining knowledge from existing event logs to discover, monitor and improve actual processes. These methods mainly analyze business processes through existing historical data, but in the process of business execution, understanding the future execution of the process is more conducive to early preparation and prevention of risks. Therefore, process predictive monitoring is a technology that can be widely used in the field of process mining and generate industry value.

[0003] Common prediction tasks in business processes include remaining time prediction, result prediction, next event prediction, next event execution time prediction, suffix prediction, and other attribute predictions. Among them, the remaining time prediction can adjust the subsequent execution steps and time according to the judgment of the future execution time of the instance to avoid the risk of timeout. At present, the research on the remaining time prediction task of business processes has not given a convincing and more general feature selection method in the feature selection stage, and most of the current research uses machine learning and deep learning methods to train models from a large number of event logs, which makes it difficult to explain the prediction results. Therefore, the selection of input features of the prediction model and the credibility of the prediction results are urgent problems to be solved in the prediction of the remaining time of business processes. Summary of the invention

[0004] The first purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide a business process remaining time prediction method based on an interpretable hierarchical model. The method provides a general feature self-selection strategy for the business process remaining time prediction task, automatically selects features that are important and have a positive impact on the prediction task as model input, and constructs an interpretable hierarchical model and a visual presentation of the prediction results, explaining the way and degree of influence of each feature on the prediction accuracy.

[0005] The second object of the present invention is to provide a business process remaining time prediction system based on an interpretable hierarchical model.

[0006] The first object of the present invention is achieved by the following technical solution: a method for predicting the remaining time of a business process based on an interpretable hierarchical model, comprising the following steps:

[0007] 1) Log acquisition and preprocessing:

[0008] Obtain real business process logs, analyze the logs, delete irrelevant attribute columns, expand time attributes, calculate predicted target values, and divide each log into training sets and test sets;

[0009] 2) Feature selection:

[0010] The LightGBM algorithm is used as the supporting model of the feature self-selection strategy. The logs preprocessed in step 1) are selected through backward feature deletion based on priority and forward feature selection based on feature importance value to obtain important features.

[0011] 3) Feature encoding:

[0012] Encode the important features obtained in step 2) respectively, and update them to the training set and the test set so that the encoded values ​​can distinguish and represent the features;

[0013] 4) Determine the basic unit structure of the model and select the trajectory prefix:

[0014] According to the characteristics of the logs, the LSTM neural network is selected as the basic unit of the model, and different trajectory prefix division methods are selected for different logs;

[0015] 5) Build, train, and debug interpretable hierarchical models:

[0016] Using the important features selected in step 2) and the basic units selected in step 4) to build an interpretable hierarchical model as a prediction model, and using the training set to train the prediction model, and adjusting the hyperparameters until the optimal prediction effect is achieved;

[0017] 6) Evaluation and visualization of interpretable hierarchical model prediction results:

[0018] To evaluate the effectiveness of steps 2), 3), and 5) on the remaining time prediction task, the prediction results of each layer of the interpretable hierarchical model are visualized, and the influence of each feature on the remaining time prediction result and the degree of influence are explained.

[0019] Preferably, the step 1) comprises the following steps:

[0020] 1.1) Obtain logs, obtain real event logs from the public event log platform 4TU, and understand its specific business processes;

[0021] 1.2) Preprocess the event log in step 1.1), delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week and time point, and calculate the remaining time corresponding to each event as the prediction target value;

[0022] 1.3) After the event log preprocessed in step 1.2), the time increment extraction method is used to divide the event log into training set and test set. The event log is divided into 5 parts in chronological order, each part is divided into 5 groups and the first group is selected as the test set, and the rest are used as the training set. The division results are used for training and testing of the prediction model.

[0023] Preferably, in step 2), the LightGBM algorithm is used as the supporting model of the feature self-selection strategy, and important attributes are selected as input features of the prediction model, which specifically includes the following steps:

[0024] 2.1) Using the LightGBM algorithm as the supporting model for the feature self-selection strategy, different attributes are selected from the training set obtained in step 1) as input features to train the decision tree model. The model can obtain the importance value set of features based on information gain, denoted as IV LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect evaluation of the decision tree model uses the test set and MAE indicator in step 1) to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows:

[0025]

[0026] In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows:

[0027] IV MAEj =E MAE_L -[Ej] MAE_L

[0028] In the formula, E is the selected feature set, E MAE_L is the MAE value obtained by training the LightGBM prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ;

[0029] The LightGBM is an efficient gradient boosting decision tree algorithm framework, which uses a gradient-based one-sided sampling and mutually exclusive feature bundling method, effectively improving the training speed of the algorithm while ensuring the prediction accuracy of the algorithm;

[0030] 2.2) Priority-based backward feature deletion strategy is used to filter out features that have a negative impact on the prediction task. The detailed steps are as follows:

[0031] Step 1: All attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, and calculate the importance value of each feature based on MAE;

[0032] Step 2: Delete the feature with the lowest importance value among the features with the lowest priority;

[0033] Step 3: Use the training set after deleting features to retrain the decision tree model, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, the feature is permanently deleted and Step 2 is iterated. If the evaluation result is lower than the previous round, the feature deleted in this round is withdrawn and the feature priority is increased. If the priority numbers of all features are increased, Step 4 is executed, otherwise Step 2 is iterated.

[0034] Step 4: Return the best feature combination for prediction and the importance value of each feature, i.e., feature importance value set IV MAE ;

[0035] 2.3) A forward feature selection strategy based on feature importance values ​​is adopted to ensure the accuracy of prediction while selecting as few features as possible. The detailed steps are as follows:

[0036] Step 1: According to step 2.2) the feature importance value set IV is obtained MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected feature. If the number of features to be selected is 0, execute Step 3;

[0037] Step 2: Use the training set with added features to retrain the decision tree model, calculate the MAE value of the decision tree model on the test set, and if the MAE value decreases, delete the feature and continue to iterate Step 1;

[0038] Step 3: Return the best feature combination and MAE value for prediction.

[0039] Preferably, in step 3), the important features selected in step 2) are encoded using a suitable encoding method, and the features include activity features, other category features and numerical features, as follows:

[0040] a. Combine activity features with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity, where CBOW refers to the method of using context corpus to train the current word vector;

[0041] b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is used, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices;

[0042] c. Normalize or standardize the numerical features.

[0043] Preferably, in step 4), determining the basic unit structure of the model and selecting the trace prefix according to different event logs includes the following steps:

[0044] 4.1) Using LSTM neural network to build an interpretable hierarchical model of the remaining time of the interpretable hierarchical business process as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion.

[0045] 4.2) The prediction model constructed by LSTM neural network uses variable-length trajectory prefix as input. There are two ways to generate variable-length trajectory prefix. For large-scale event logs, the whole trajectory is used as input, specifically, a trajectory with an event sequence length of n is input, and the corresponding remaining time sequence with a length of n is output; for small-scale event logs, the trajectory prefix is ​​divided by segmentation, specifically, a trajectory with an event sequence length of n, and the input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any active node or time on a trajectory.

[0046] Preferably, in step 5), an interpretable hierarchical model is constructed, trained, and debugged, and the specific steps are as follows:

[0047] 5.1) Based on the number of important features selected in step 2) as the number of layers of the model, the encoding length determined in step 3) as the dimension of each layer input, and the LSTM neural network selected in step 4), a preliminary interpretable hierarchical model is constructed;

[0048] 5.2) During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set updated in step 4), and a trained interpretable hierarchical model is obtained as the prediction model.

[0049] Preferably, in step 6), the effectiveness of the feature self-selection strategy and the interpretable hierarchical model prediction results and their visual presentation are evaluated, and the specific steps are as follows:

[0050] 6.1) Testing the MAE value of the decision tree model trained by different feature combinations on the test set to evaluate the effectiveness of the feature self-selection strategy. The feature combination includes all features, active features, features selected in step 2.2) and features selected in step 2.3);

[0051] 6.2) Testing the MAE values ​​of the prediction model trained in step 5) and the control model on the test set to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the explainable hierarchical model; wherein the control model includes a model that uses only the activity features encoded based on index as input, a model that uses only the activity features encoded in step 3) as input, and a model that uses the features selected in step 2) with index-based encoding as input;

[0052] 6.3) Calculate the MAE value of each layer of the prediction results of the interpretable hierarchical model on the test set separately, and show the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value in the form of a two-dimensional coordinate graph, explaining how and to what extent each feature affects the prediction results.

[0053] The second object of the present invention is achieved by the following technical solution: a business process remaining time prediction system based on an interpretable hierarchical model, comprising a log processing module, a feature self-selection module, a feature encoding module, a model unit and trajectory prefix selection module, a model training module and an evaluation and visualization module;

[0054] The log processing module is used for log analysis and preprocessing, and dividing the log into training sets and test sets;

[0055] The feature self-selection module is used to select important attributes of the log as input features of the prediction model according to the self-selection strategy;

[0056] The feature encoding module is used to encode the selected important features using a suitable encoding method;

[0057] The model unit and trajectory prefix selection module is used to determine the model base unit and select the trajectory prefix;

[0058] The model training module is used to build, train and debug an interpretable hierarchical model;

[0059] The evaluation and visualization module is used to evaluate the advantages and disadvantages of the feature self-selection strategy and the interpretable hierarchical model, and visualize the prediction results of each layer of the interpretable hierarchical model.

[0060] Preferably, the log processing module specifically performs the following operations:

[0061] Get the logs, perform preprocessing operations, delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week, and time point, and calculate the remaining time corresponding to each event as the prediction target value;

[0062] The preprocessed event logs are divided into training sets and test sets using a time increment extraction method. The event logs are divided into five parts in chronological order, each part is divided into five groups, and the first group is selected as the test set, and the rest are used as the training set. The division results are used for training and testing of the prediction model.

[0063] The feature self-selection module specifically performs the following operations:

[0064] The LightGBM algorithm is used as the supporting model of the feature self-selection strategy. Different attributes in the training set are selected as input features to train the decision tree model. The model can obtain the importance value set of the features according to the information gain, which is recorded as IV. LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect of the decision tree model is evaluated using the test set and MAE indicator to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows:

[0065]

[0066] In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows:

[0067] IV MAEj =E MAE_L -[Ej] MAE_L

[0068] In the formula, E is the selected feature set, E MAE_Lis the MAE value obtained by training the LightGBM prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ;

[0069] The LightGBM is an efficient gradient boosting decision tree algorithm framework, which uses a gradient-based one-sided sampling and mutually exclusive feature bundling method, effectively improving the training speed of the algorithm while ensuring the prediction accuracy of the algorithm;

[0070] The priority-based backward feature deletion strategy is used to filter out features that have a negative impact on the prediction task. First, all attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, calculate the importance value of each feature according to MAE, then delete the feature with the lowest importance value among the features with the lowest priority, and then retrain the decision tree model with the training set after deleting the features, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, this feature will be permanently deleted and the feature will be deleted iteratively. If the evaluation result is lower than the previous round, the feature deleted in this round will be withdrawn and the feature priority will be increased. If the priority numbers of all features are increased, the best feature combination for the prediction result and the importance value of each feature will be returned. MAE , continue to iteratively delete features;

[0071] A forward feature selection strategy based on feature importance values ​​is adopted to ensure the accuracy of prediction while selecting as few features as possible. First, according to the obtained feature importance value set IV MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected features. If the number of features to be selected is 0, the feature combination and MAE value with the best prediction result are returned. Otherwise, the prediction model is retrained with the training set after adding the features, and the MAE value of the prediction model on the test set is calculated. If the MAE value decreases, the feature is deleted and the iterative addition of features continues.

[0072] Preferably, the feature encoding module specifically performs the following operations:

[0073] a. Activity features are combined with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity. The CBOW method refers to the method of using context corpus to train the current word vector;

[0074] b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is adopted, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices;

[0075] c. Normalize or standardize the numerical features;

[0076] The model unit and the trajectory prefix selection module specifically perform the following operations:

[0077] An interpretable hierarchical model of the remaining time of an interpretable hierarchical business process is constructed using an LSTM neural network as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory capability, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion.

[0078] The prediction model constructed by the LSTM neural network uses variable-length trajectory prefixes as input. There are two ways to generate variable-length trajectory prefixes. For large-scale event logs, the entire trajectory is used as input. Specifically, a trajectory with an event sequence length of n is input, and the corresponding remaining time sequence with a length of n is output; for small-scale event logs, the trajectory prefix is ​​divided by segmenting the trajectory. Specifically, a trajectory with an event sequence length of n is input. The input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any activity node or time on a trajectory;

[0079] The model training module specifically performs the following operations:

[0080] The number of important features selected is the number of layers of the model, the encoding length is the dimension of each layer input, and a preliminary interpretable hierarchical model is constructed with an LSTM neural network. During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set, and the trained interpretable hierarchical model is obtained as the prediction model;

[0081] The evaluation and visualization module specifically performs the following operations:

[0082] The MAE value of the decision tree model trained with different feature combinations on the test set was tested to evaluate the effectiveness of the feature self-selection strategy. The feature combinations included all features, active features, and features selected by the two-step feature self-selection strategy.

[0083] The MAE values ​​of the interpretable hierarchical model and the control model on the test set are tested to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the interpretable hierarchical model; wherein the control model includes a model that uses only the activity features based on index coding as input, a model that uses only the activity features encoded by the feature coding module as input, and a model that uses the features selected by the feature self-selection module and uses the index coding as input;

[0084] The MAE value of each layer of the prediction results of the explainable hierarchical model on the test set is calculated separately, and the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value is displayed in the form of a two-dimensional coordinate graph to explain how and to what extent each feature affects the prediction results.

[0085] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0086] 1. The present invention realizes for the first time a self-selection method for features in the prediction of the remaining time of a business process, and automatically selects features that have a positive impact on the prediction results as input.

[0087] 2. The present invention realizes for the first time a method for encoding classification attributes other than activities in the prediction of the remaining time of a business process.

[0088] 3. The present invention proposes for the first time an interpretable hierarchical model constructed for predicting the remaining time of a business process as a prediction model.

[0089] 4. The present invention visualizes the layer-by-layer prediction results of the explainable hierarchical model in a two-dimensional coordinate graph, explaining how and to what extent different features affect the prediction.

[0090] 5. The present invention ensures that the business is completed within the required time by predicting the remaining time of the business process. If a delay occurs, timely measures can be taken without affecting the subsequent progress. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 The figure is a logical flow chart of the method of the present invention.

[0092] Figure 2 This is a flow chart of the priority-based backward feature deletion strategy of the present invention.

[0093] Figure 3This is a feature importance value diagram of Helpdesk of the present invention, wherein importance value on the x-axis represents the importance value, attribute on the y-axis represents the feature attribute, and allDuration, seriousness_2, Variant index, day, Resource, product, duration, hour, and responsible_section represent the displayed feature names.

[0094] Figure 4 It is a structural diagram of the hierarchical model that can be explained by the present invention.

[0095] Figure 5 This is a layer-by-layer prediction result diagram of the Helpdesk hierarchical model of the present invention, where the x-axis Feature Name represents the feature name, the y-axis MAE represents the mean absolute error, and Activity, allDuration, seriousness_2, Variantindex, day, Resource, product, and duration represent the feature name of the input features of each layer of the interpretable model.

[0096] Figure 6 This is an example diagram of the hierarchical prediction results of the Helpdesk log of the present invention, wherein the x-axis Time (day) represents the time in days, the y-axis Feature Number represents the number of features, Activity, allDuration, seriousness_2, Variant index, day, Resource, product, duration represent the feature names of the input features of each layer of the interpretable model, Wait, Resolve ticket, Take in charge ticket, Value 1, etc. represent the specific feature values ​​of the corresponding features, and tensor represents that the feature value is a numerical type.

[0097] Figure 7 It is a system architecture diagram of the present invention. DETAILED DESCRIPTION

[0098] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0099] Example 1

[0100] like Figure 1 As shown, this embodiment discloses a method for predicting the remaining time of a business process based on an interpretable hierarchical model, comprising the following steps:

[0101] 1) Obtain, analyze and preprocess event logs and divide them into training and test sets:

[0102] 1.1) Obtain logs, obtain real event logs from the public event log platform 4TU, and understand its specific business processes;

[0103] In this step, eight public event logs from 4TU were obtained, including: Helpdesk event log involving the ticket management process of an Italian software company's help desk; BPIC2012 is an event log of a financial institution's loan application process; BPIC2015 contains a total of five event logs, provided by five Dutch municipalities, and the data includes all building permit applications over a period of about four years; Production event log comes from the production process data of some products in a production workshop from January to March 2012. The statistical properties of the eight event logs are shown in Table 1.

[0104] Table 1 Statistical properties of eight event logs

[0105]

[0106] 1.2) Preprocess the event log in step 1.1), delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week and time point, and calculate the remaining time corresponding to each event as the prediction target value;

[0107] 1.3) After the event log preprocessed in step 1.2), the time increment extraction method is used to divide the event log into training set and test set. The event log is divided into 5 parts in chronological order, each part is divided into 5 groups and the first group is selected as the test set, and the rest are used as the training set. The division results are used for training and testing of the prediction model.

[0108] 2) Use the LightGBM algorithm as the supporting model for the feature self-selection strategy, and select important attributes as input features of the prediction model:

[0109] 2.1) Using the LightGBM algorithm as the supporting model for the feature self-selection strategy, different attributes are selected from the training set obtained in step 1) as input features to train the decision tree model. The model can obtain the importance value set of the features according to the information gain, which is recorded as IV LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect evaluation of the decision tree model uses the test set and MAE indicator in step 1) to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows:

[0110]

[0111] In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows:

[0112] IV MAEj =E MAE_L -[Ej] MAE_L

[0113] In the formula, E is the selected feature set, E MAE_L is the MAE value obtained by training the LightGBM prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ;

[0114] The LightGBM is an efficient gradient boosting decision tree algorithm framework, which uses a gradient-based one-sided sampling and mutually exclusive feature bundling method, effectively improving the training speed of the algorithm while ensuring the prediction accuracy of the algorithm;

[0115] 2.2) The priority-based backward feature deletion strategy is mainly used to filter out features that have a negative impact on the prediction task. The detailed steps are as follows:

[0116] Step 1: All attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, and calculate the importance value of each feature based on MAE;

[0117] Step 2: Delete the feature with the lowest importance value among the features with the lowest priority;

[0118] Step 3: Use the training set after deleting features to retrain the decision tree model, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, the feature is permanently deleted and Step 2 is iterated. If the evaluation result is lower than the previous round, the feature deleted in this round is withdrawn and the feature priority is increased. If the priority numbers of all features are increased, Step 4 is executed, otherwise Step 2 is iterated.

[0119] Step 4: Return the best feature combination for prediction and the importance value of each feature (i.e., feature importance value set IV MAE );

[0120] In this step, the specific process of the priority-based backward feature deletion strategy is as follows: Figure 2 shown.

[0121] 2.3) Since the cautious feature deletion operation in step 2.2) leads to too many selected features, a forward feature selection strategy based on feature importance value is adopted to ensure the accuracy of prediction while selecting as few features as possible. The detailed steps are as follows:

[0122] Step 1: According to step 2.2) the feature importance value set IV is obtained MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected feature. If the number of features to be selected is 0, execute Step 3;

[0123] Step 2: Use the training set with added features to retrain the prediction model, calculate the MAE value of the prediction model on the test set, and if the MAE value decreases, delete the feature and continue to iterate Step 1;

[0124] Step 3: Return the best feature combination and MAE value for prediction.

[0125] In this step, taking the Helpdesk event log as an example, the feature self-selection process is shown in Table 2. The feature importance values ​​calculated in this process are as follows: Figure 3 shown.

[0126] 3) Encode the important features selected in step 2) using a suitable encoding method, the features include activity features, other category features and numerical features:

[0127] a. Activity features are combined with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity. The CBOW method refers to the method of using context corpus to train the current word vector;

[0128] b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is adopted, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices;

[0129] c. Normalize or standardize the numerical features.

[0130] Table 2 Prediction results of Helpdesk feature combination

[0131]

[0132] 4) Determine the basic unit structure of the model and select the trajectory prefix according to different event logs:

[0133] 4.1) Using LSTM neural network to build an interpretable hierarchical model of the remaining time of the interpretable hierarchical business process as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion.

[0134] 4.2) The prediction model constructed by LSTM neural network uses variable-length trajectory prefix as input. There are two ways to generate variable-length trajectory prefix. For large-scale event logs, the whole trajectory is used as input. For example, the input event sequence is a trajectory with a length of n, and the output is the corresponding remaining time series with a length of n. For small-scale event logs, the trajectory is divided into trajectory prefixes by segmentation. For example, the input event sequence is a trajectory with a length of n, and the input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any active node or time on a trajectory.

[0135] 5) Build, train, and debug interpretable hierarchical models:

[0136] 5.1) Based on the number of important features selected in step 2) as the number of layers of the model, the encoding length determined in step 3) as the dimension of each layer input, and the LSTM neural network selected in step 4), a preliminary interpretable hierarchical model is constructed;

[0137] In this step, taking the selected features sorted by importance value as activities, execution time and resources as an example, the model structure of hierarchical input can be explained as follows Figure 4 shown.

[0138] 5.2) During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set updated in step 4), and a trained interpretable hierarchical model is obtained as the prediction model.

[0139] In this step, the program is implemented in Python 3.7 environment using Python language. The model is built using the pytorch framework. The network structure and hyperparameters are set according to empirical values, and then the more appropriate structure and parameter settings are continuously debugged during the training process.

[0140] 6) Evaluate the effectiveness of the feature self-selection strategy and interpretable hierarchical model prediction results and their visualization:

[0141] 6.1) Testing the MAE value of the decision tree model trained by different feature combinations on the test set to evaluate the effectiveness of the feature self-selection strategy. The feature combination includes all features, active features, features selected in step 2.2) and features selected in step 2.3);

[0142] In this step, the test results of the feature self-selection strategy on eight event logs are shown in Table 3.

[0143] Table 3 Comparison of performance of different features in the remaining time prediction task

[0144]

[0145] 6.2) Testing the MAE values ​​of the prediction model trained in step 5) and the control model on the test set to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the explainable hierarchical model; the control model includes a model that uses only the activity features based on index coding as input, a model that uses only the activity features encoded in step 3) as input, and a model that uses the features selected in step 2) with index coding as input;

[0146] In this step, the test results of the interpretable hierarchical model and the control model are shown in Table 4.

[0147] Table 4 Comparison of test results of interpretable hierarchical model and control model

[0148]

[0149]

[0150] 6.3) Calculate the MAE value of each layer of the prediction results of the interpretable hierarchical model on the test set separately, and show the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value in the form of a two-dimensional coordinate graph, explaining how and to what extent each feature affects the prediction results.

[0151] In this step, taking the Helpdesk event log as an example, the layer-by-layer prediction results of the hierarchical model can be explained as follows: Figure 5 As shown, Figure 6 The prediction results of 4 events in the test set are randomly selected, and the prediction values ​​of each layer are visualized. The y-axis corresponds to the feature names of model layers 1 to 8 from bottom to top, the blue vertical line represents the true value of the remaining time of the current event, and the dots represent the prediction values ​​of each layer.

[0152] Example 2

[0153] This embodiment discloses a business process remaining time prediction system based on an interpretable hierarchical model. Figure 7 As shown, it includes a log processing module, a feature self-selection module, a feature encoding module, a model unit and trajectory prefix selection module, a model training module and an evaluation and visualization module.

[0154] The log processing module specifically performs the following operations:

[0155] Get the logs, perform preprocessing operations, delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week, and time point, and calculate the remaining time corresponding to each event as the prediction target value;

[0156] The preprocessed event logs are divided into training sets and test sets using a time increment extraction method. The event logs are divided into five parts in chronological order, each part is divided into five groups, and the first group is selected as the test set, and the rest are used as training sets. The division results are used for training and testing of the prediction model.

[0157] The self-selection module specifically performs the following operations:

[0158] The LightGBM algorithm is used as the supporting model of the feature self-selection strategy. Different attributes in the training set are selected as input features to train the decision tree model. The model can obtain the importance value set of the features according to the information gain, which is recorded as IV LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect of the decision tree model is evaluated using the test set and MAE indicator to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows:

[0159]

[0160] In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows:

[0161] IV MAEj =E MAE_L -[Ej] MAE_L

[0162] In the formula, E is the selected feature set, E MAE_L is the MAE value obtained by training the LightGBM prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ;

[0163] The LightGBM is an efficient gradient boosting decision tree algorithm framework, which uses a gradient-based one-sided sampling and mutually exclusive feature bundling method, effectively improving the training speed of the algorithm while ensuring the prediction accuracy of the algorithm;

[0164] The priority-based backward feature deletion strategy is used to filter out features that have a negative impact on the prediction task. First, all attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, calculate the importance value of each feature according to MAE, then delete the feature with the lowest importance value among the features with the lowest priority, and then retrain the decision tree model with the training set after deleting the features, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, this feature will be permanently deleted and the feature will be deleted iteratively. If the evaluation result is lower than the previous round, the feature deleted in this round will be withdrawn and the feature priority will be increased. If the priority numbers of all features are increased, the best feature combination for the prediction result and the importance value of each feature will be returned. MAE , continue to iteratively delete features;

[0165] Since the cautious feature deletion operation leads to too many selected features, a forward feature selection strategy based on feature importance value is adopted to ensure the prediction accuracy while selecting as few features as possible. First, according to the obtained feature importance value set IV MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected features. If the number of features to be selected is 0, the feature combination and MAE value with the best prediction result are returned. Otherwise, the prediction model is retrained on the training set after adding the features, and the MAE value of the prediction model on the test set is calculated. If the MAE value decreases, the feature is deleted and the iterative addition of features continues.

[0166] The feature encoding module specifically performs the following operations:

[0167] a. Activity features are combined with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity. The CBOW method refers to the method of using context corpus to train the current word vector;

[0168] b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is adopted, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices;

[0169] c. Normalize or standardize the numerical features.

[0170] The model unit and the trajectory prefix selection module specifically perform the following operations:

[0171] An interpretable hierarchical model of the remaining time of an interpretable hierarchical business process is constructed using an LSTM neural network as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory capability, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion.

[0172] The prediction model constructed by the LSTM neural network uses variable-length trajectory prefixes as input. There are two ways to generate variable-length trajectory prefixes. For large-scale event logs, the entire trajectory is used as input. For example, a trajectory with an event sequence length of n is input, and the corresponding remaining time series with a length of n is output. For small-scale event logs, the trajectory is divided into trajectory prefixes by segmenting the trajectory. For example, a trajectory with an event sequence length of n is input, and the input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any active node or time on a trajectory.

[0173] The model training module specifically performs the following operations:

[0174] The number of important features selected is used as the number of layers of the model, the encoding length is the dimension of the input of each layer, and a preliminary interpretable hierarchical model is constructed using the LSTM neural network. During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set, and the trained interpretable hierarchical model is obtained as the prediction model.

[0175] The evaluation and visualization module specifically performs the following operations:

[0176] The MAE value of the decision tree model trained with different feature combinations on the test set was tested to evaluate the effectiveness of the feature self-selection strategy. The feature combinations included all features, active features, and features selected by the two-step feature self-selection strategy.

[0177] The MAE values ​​of the interpretable hierarchical model and the control model on the test set are tested to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the interpretable hierarchical model; the control model includes a model that uses only the activity features based on index coding as input, a model that uses only the activity features encoded by the feature coding module as input, and a model that uses the features selected by the feature self-selection module and uses index coding as input;

[0178] The MAE value of each layer of the prediction results of the explainable hierarchical model on the test set is calculated separately, and the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value is displayed in the form of a two-dimensional coordinate graph to explain how and to what extent each feature affects the prediction results.

[0179] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for predicting the remaining time of a business process based on an interpretable hierarchical model, characterized in that: The following steps are involved: 1) Log acquisition and preprocessing: Obtain real business process logs, analyze the logs, delete irrelevant attribute columns, expand time attributes, calculate predicted target values, and divide each log into training sets and test sets; 2) Feature selection: The LightGBM algorithm is used as the supporting model of the feature self-selection strategy. The logs preprocessed in step 1) are selected through backward feature deletion based on priority and forward feature selection based on feature importance value to obtain important features. The LightGBM algorithm is used as the supporting model of the feature self-selection strategy, and important attributes are selected as input features of the prediction model. The specific steps include: 2.1) Using the LightGBM algorithm as the supporting model for the feature self-selection strategy, different attributes are selected from the training set obtained in step 1) as input features to train the decision tree model. The model can obtain the importance value set of features based on information gain, denoted as IV LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect evaluation of the decision tree model uses the test set and MAE indicator in step 1) to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows: In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows: IV MAEj =E MAE_L -[Ej] MAE_L In the formula, E is the selected feature set, E MAE_L is the MAE value obtained by training the prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ; The LightGBM is an efficient gradient boosting decision tree algorithm framework that uses gradient-based one-sided sampling and mutually exclusive feature bundling methods to effectively improve the training speed of the algorithm while ensuring the prediction accuracy of the algorithm. 2.2) Priority-based backward feature deletion strategy is used to filter out features that have a negative impact on the prediction task. The detailed steps are as follows: Step 1: All attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, and calculate the importance value of each feature based on MAE; Step 2: Delete the feature with the lowest importance value among the features with the lowest priority; Step 3: Use the training set after deleting features to retrain the decision tree model, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, the feature is permanently deleted and Step 2 is iterated. If the evaluation result is lower than the previous round, the feature deleted in this round is withdrawn and the priority of the feature is increased. If the priority numbers of all features are increased, Step 4 is executed, otherwise Step 2 is iterated. Step 4: Return the best feature combination for prediction and the importance value of each feature, i.e., feature importance value set IV MAE ; 2.3) A forward feature selection strategy based on feature importance values ​​is adopted to ensure the accuracy of prediction while selecting as few features as possible. The detailed steps are as follows: Step 1: According to step 2.2) the feature importance value set IV MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected feature. If the number of features to be selected is 0, execute Step 3; Step 2: Use the training set with added features to retrain the decision tree model, calculate the MAE value of the decision tree model on the test set, and if the MAE value decreases, delete the feature and continue to iterate Step 1; Step 3: Return the best feature combination and MAE value for the prediction result; 3) Feature encoding: Encode the important features obtained in step 2) respectively, and update them to the training set and the test set so that the encoded values ​​can distinguish and represent the features; 4) Determine the basic unit structure of the model and select the trajectory prefix: According to the characteristics of the logs, the LSTM neural network is selected as the basic unit of the model, and different trajectory prefix division methods are selected for different logs; 5) Build, train, and debug interpretable hierarchical models: Using the important features selected in step 2) and the basic units selected in step 4) to build an interpretable hierarchical model as a prediction model, and using the training set to train the prediction model, and adjusting the hyperparameters until the optimal prediction effect is achieved; 6) Evaluation and visualization of interpretable hierarchical model prediction results: To evaluate the effectiveness of steps 2), 3), and 5) on the remaining time prediction task, the prediction results of each layer of the interpretable hierarchical model are visualized, and the influence of each feature on the remaining time prediction result and the degree of influence are explained.

2. The method for predicting remaining time of a business process based on an interpretable hierarchical model according to claim 1, characterized in that: Step 1) The following steps are involved: 1.1) Obtain logs, obtain real event logs from the public event log platform 4TU, and understand its specific business processes; 1.2) Preprocess the event log in step 1.1), delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week and time point, and calculate the remaining time corresponding to each event as the prediction target value; 1.3) After the event log preprocessed in step 1.2), the time increment extraction method is used to divide the event log into training set and test set. The event log is divided into 5 parts in chronological order, each part is divided into 5 groups and the first group is selected as the test set, and the rest are used as the training set. The division results are used for training and testing of the prediction model.

3. The method for predicting remaining time of a business process based on an interpretable hierarchical model according to claim 1, characterized in that: In step 3), the important features selected in step 2) are encoded using a suitable encoding method, and the features include activity features, other category features and numerical features, as follows: a. Combine activity features with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity, where CBOW refers to the method of using context corpus to train the current word vector; b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is used, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices; c. Normalize or standardize the numerical features.

4. The method for predicting remaining time of a business process based on an interpretable hierarchical model according to claim 1, characterized in that: In step 4), the basic unit structure of the model is determined, and the trajectory prefix is ​​selected according to different event logs, including the following steps: 4.1) Using LSTM neural network to build an interpretable hierarchical model of the remaining time of the interpretable hierarchical business process as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion. 4.2) The prediction model constructed by LSTM neural network uses variable-length trajectory prefix as input. There are two ways to generate variable-length trajectory prefix. For large-scale event logs, the whole trajectory is used as input, specifically, a trajectory with an event sequence length of n is input, and the corresponding remaining time sequence with a length of n is output; for small-scale event logs, the trajectory prefix is ​​divided by segmentation, specifically, a trajectory with an event sequence length of n, and the input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any active node or time on a trajectory.

5. The method for predicting remaining time of a business process based on an interpretable hierarchical model according to claim 1, characterized in that: In step 5), build, train, and debug an interpretable hierarchical model. The specific steps are as follows: 5.1) Based on the number of important features selected in step 2) as the number of layers of the model, the encoding length determined in step 3) as the dimension of each layer input, and the LSTM neural network selected in step 4), a preliminary interpretable hierarchical model is constructed; 5.2) During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set updated in step 4), and a trained interpretable hierarchical model is obtained as the prediction model.

6. The method for predicting remaining time of a business process based on an interpretable hierarchical model according to claim 1, characterized in that: In step 6), the effectiveness of the feature self-selection strategy and the interpretable hierarchical model prediction results and their visualization are evaluated. The specific steps are as follows: 6.1) Testing the MAE value of the decision tree model trained by different feature combinations on the test set to evaluate the effectiveness of the feature self-selection strategy. The feature combination includes all features, active features, features selected in step 2.2) and features selected in step 2.3); 6.2) Testing the MAE values ​​of the prediction model trained in step 5) and the control model on the test set to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the explainable hierarchical model; wherein the control model includes a model that uses only the activity features encoded based on index as input, a model that uses only the activity features encoded in step 3) as input, and a model that uses the features selected in step 2) with index-based encoding as input; 6.3) Calculate the MAE value of each layer of the prediction results of the interpretable hierarchical model on the test set separately, and show the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value in the form of a two-dimensional coordinate graph, explaining how and to what extent each feature affects the prediction results.

7. A business process remaining time prediction system based on an interpretable hierarchical model, characterized in that: It includes log processing module, feature self-selection module, feature encoding module, model unit and trajectory prefix selection module, model training module and evaluation and visualization module; The log processing module is used for log analysis and preprocessing, and dividing the log into training sets and test sets; The feature self-selection module is used to select important attributes of the log as input features of the prediction model according to the self-selection strategy; The feature encoding module is used to encode the selected important features using a suitable encoding method; The model unit and trajectory prefix selection module is used to determine the model base unit and select the trajectory prefix; The model training module is used to build, train and debug an interpretable hierarchical model; The evaluation and visualization module is used to evaluate the advantages and disadvantages of the feature self-selection strategy and the interpretable hierarchical model, and visualize the prediction results of each layer of the interpretable hierarchical model; The log processing module specifically performs the following operations: Get the logs, perform preprocessing operations, delete irrelevant and repeated attribute columns, expand the timestamp attribute into 6 numerical attributes, including execution time, total execution time, month, date, week, and time point, and calculate the remaining time corresponding to each event as the prediction target value; The preprocessed event logs are divided into training sets and test sets using a time increment extraction method. The event logs are divided into five parts in chronological order, each part is divided into five groups, and the first group is selected as the test set, and the rest are used as the training set. The division results are used for training and testing of the prediction model. The feature self-selection module specifically performs the following operations: The LightGBM algorithm is used as the supporting model of the feature self-selection strategy. Different attributes in the training set are selected as input features to train the decision tree model. The model can obtain the importance value set of the features according to the information gain, which is recorded as IV. LGBM , which provides an initial reference indicator for the feature selection process. The prediction effect of the decision tree model is evaluated using the test set and MAE indicator to calculate the mean absolute error between the true value and the predicted value. The calculation formula is as follows: In the formula, n is the total number of data sets, y i is the true value of the i-th data, is the predicted value of the i-th data, and the MAE difference between the two decision tree models trained on the training set obtained before and after adding and deleting the j-th feature on the test set is calculated as follows: IV MAEj =E MAE_L -[Ej] MAE_L In the formula, E is the selected feature set, E MAE_L is the MAE value obtained by training the LightGBM prediction model using the features in the E set as the training set, [Ej] is the set after removing the jth feature from E, and the set of all feature importance values ​​is recorded as IV MAE ; The LightGBM is an efficient gradient boosting decision tree algorithm framework, which adopts gradient-based one-sided sampling and mutually exclusive feature bundling methods, effectively improving the training speed of the algorithm while ensuring the prediction accuracy of the algorithm; The priority-based backward feature deletion strategy is used to filter out features that have a negative impact on the prediction task. First, all attributes are used as input features, where activity is set to the highest priority and the priorities of other features are set to 0. LightGBM is used to train the decision tree model to obtain IV LGBM , calculate the MAE value of the decision tree model on the test set, calculate the importance value of each feature according to MAE, then delete the feature with the lowest importance value among the features with the lowest priority, and then retrain the decision tree model with the training set after deleting the features, calculate the MAE value of the decision tree model on the test set, and get IV MAE If the evaluation result is improved compared with the previous round, this feature will be permanently deleted and the feature will be deleted iteratively. If the evaluation result is lower than the previous round, the feature deleted in this round will be withdrawn and the feature priority will be increased. If the priority numbers of all features are increased, the best feature combination for the prediction result and the importance value of each feature will be returned. MAE , continue to iteratively delete features; A forward feature selection strategy based on feature importance values ​​is adopted to ensure the accuracy of prediction while selecting as few features as possible. First, according to the obtained feature importance value set IV MAE , select the feature with the largest importance value and add it to the selected features. The activity is the initial selected features. If the number of features to be selected is 0, the feature combination and MAE value with the best prediction result are returned. Otherwise, the prediction model is retrained with the training set after adding the features, and the MAE value of the prediction model on the test set is calculated. If the MAE value decreases, the feature is deleted and the iterative addition of features continues.

8. The interpretable hierarchical business process remaining time prediction system according to claim 7, characterized in that: The feature encoding module specifically performs the following operations: a. Activity features are combined with the CBOW word vector training method to predict the activity of the next event through the activity sequence training in the previous event to obtain the feature encoding of the activity. The CBOW method refers to the method of using context corpus to train the current word vector; b. It is difficult to determine the contextual relationship of each feature for other category features. By randomly initializing the vector encoding method, if the category of the feature value is less than 5, an index-based encoding method is adopted, and the encoded features are updated to the training set and the test set. The index-based encoding is a simple sequential encoding of discrete attributes based on subscript indices; c. Normalize or standardize the numerical features; The model unit and the trajectory prefix selection module specifically perform the following operations: An interpretable hierarchical model of the remaining time of an interpretable hierarchical business process is constructed using an LSTM neural network as a prediction model. The LSTM is a variant of a recurrent neural network with long-term memory capability, capable of making predictions based on previous event information, and capable of handling prediction tasks on the entire trajectory with a contextual relationship. The trajectory refers to the event sequence of a case from execution to completion. The prediction model constructed by the LSTM neural network uses variable-length trajectory prefixes as input. There are two ways to generate variable-length trajectory prefixes. For large-scale event logs, the entire trajectory is used as input. Specifically, a trajectory with an event sequence length of n is input, and the corresponding remaining time sequence with a length of n is output; for small-scale event logs, the trajectory prefix is ​​divided by segmenting the trajectory. Specifically, a trajectory with an event sequence length of n is input. The input contains [e1], [e1, e2], ..., [e1, e2, ..., e n ] There are n trajectory prefixes in total, and the output corresponds to n remaining times respectively. The divided trajectory prefixes are updated to the training set and the test set, where e n Refers to the nth event of a trajectory prefix, where the trajectory prefix is ​​the trajectory information before any activity node or time on a trajectory; The model training module specifically performs the following operations: The number of important features selected is the number of layers of the model, the encoding length is the dimension of each layer input, and a preliminary interpretable hierarchical model is constructed with an LSTM neural network. During the training process, the hyperparameters and model structure are continuously adjusted to achieve the optimal prediction effect on the test set, and the trained interpretable hierarchical model is obtained as the prediction model; The evaluation and visualization module specifically performs the following operations: The MAE value of the decision tree model trained with different feature combinations on the test set was tested to evaluate the effectiveness of the feature self-selection strategy. The feature combinations included all features, active features, and features selected by the two-step feature self-selection strategy. The MAE values ​​of the interpretable hierarchical model and the control model on the test set are tested to reflect the quality of the model prediction accuracy and evaluate the accuracy of the prediction results of the interpretable hierarchical model; wherein the control model includes a model that uses only the activity features based on index coding as input, a model that uses only the activity features encoded by the feature coding module as input, and a model that uses the features selected by the feature self-selection module and uses the index coding as input; The MAE value of each layer of the prediction results of the explainable hierarchical model on the test set is calculated separately, and the difference between the true remaining time of each trajectory prefix and the layer-by-layer prediction value is displayed in the form of a two-dimensional coordinate graph to explain how and to what extent each feature affects the prediction results.