Office process time consumption prediction method and device, electronic equipment and storage medium
By using the office process time-consuming prediction model in the OA system, combined with process composition data and external data, the problem of inaccurate office process time-consuming prediction in the existing technology is solved, and accurate prediction of office process time-consuming and resource rationality are achieved. distribute.
Patent Information
- Application Number
- CN202410854392.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
Existing OA systems rely on human experience judgment or simple statistical methods in office process time-consuming prediction, and lack accurate predictions of process progress time-consuming, resulting in unreasonable resource allocation, unoptimized process design, and failure to detect potential bottlenecks in advance.
By obtaining the composition data and external data of the office process, input them into the preset office process time-consuming prediction model, and use the training sample set and LightGBM algorithm to train and update the model to predict the time-consuming information of the office process.
It achieves accurate prediction of office process time-consuming, supports reasonable resource allocation and process optimization, and detects potential bottlenecks in advance.
Smart Images

Figure CN118735060A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of office process time consumption prediction, and specifically to an office process time consumption prediction method, device, electronic device and storage medium. Background Art
[0002] In modern enterprises, OA systems are widely used in daily office management. The main functions of OA systems (Office Automation System) include file management, process management, official document management, communication management, attendance management, report management, data management, etc.
[0003] In many scenarios, it is necessary to predict the time consumption of office processes and then carry out the next step of work based on the time consumption. However, the process time consumption prediction of existing OA systems mainly relies on human experience judgment or simple statistical methods, lacking accurate prediction of process progress time consumption, resulting in the inability to reasonably allocate resources, optimize process design, and discover potential bottleneck problems in advance. Summary of the invention
[0004] In view of the above problems, the present application provides a method, device, electronic device and storage medium for predicting the time consumption of office processes, which fully considers the impact of the process's own data and external data on the time consumption of office processes, and can accurately predict the time consumption of office processes, thereby facilitating the reasonable allocation of resources, optimizing process design, and discovering potential bottleneck problems in advance.
[0005] The first aspect of the present application provides a method for predicting the time consumption of an office process, the method comprising: obtaining office process data of a current office process; wherein the office process data comprises process composition data and external data, the process composition data being basic information data constituting the current office process, and the external data being data other than the basic information data when the current office process is initiated; inputting the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
[0006] In some specific embodiments, the step of obtaining office process data of the current office process includes: obtaining at least one of the first characteristic data and the second characteristic data corresponding to the process composition data and external data of the office process data of the current office process respectively; wherein the first characteristic data includes at least one of process type data, process option data, filing time data, approval step data, approval personnel position data and approval personnel attendance information, and the second characteristic data includes weather information data, temperature information data and holiday information data; the step of inputting the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process includes: inputting the first characteristic data and the second characteristic data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
[0007] In some specific embodiments, the office process prediction model is trained through the following steps: obtaining a training sample set; wherein the training sample set includes multiple training samples, the training samples are historical office process data, the historical office process data includes process data and external data, the process data includes process composition data and process time consumption data, the process composition data is the basic information data constituting the historical office process, and the external data is the data other than the basic information data when the historical office process is initiated; based on the training sample set, the office process time consumption prediction model is trained to obtain the trained office process time consumption prediction model.
[0008] In some specific embodiments, the step of obtaining a training sample set includes: obtaining process data and external data of historical office process data corresponding to a single historical office process within a preset historical time period; wherein the process data includes process composition data and process time consumption data; obtaining first feature data, second feature data and third feature data corresponding to the process composition data, external data and process time consumption data respectively, and using the first feature data, the second feature data and the third feature data as training samples; using the training samples corresponding to all historical office processes within the preset historical time period as a training sample set.
[0009] In some specific embodiments, the steps of obtaining first characteristic data, second characteristic data and third characteristic data corresponding to process composition data, external data and process time consumption data respectively include: obtaining at least one of process type data, process option data, initiation time data, approval step data, approval personnel position data and approval personnel attendance information data in the process composition data as the first characteristic data; obtaining at least one of weather information data, temperature information data and holiday information data in the external data as the second characteristic data; obtaining the time consumption data of each process node in the process time consumption data and at least one of the time consumption data of the entire office process as the third characteristic data.
[0010] In some specific embodiments, after the step of training an office process time-consuming prediction model based on a training sample set to obtain the trained office process time-consuming prediction model, the following steps are included: obtaining the predicted time consumption of the office process predicted by the office process time-consuming prediction model within a preset time period and the actual time consumption of the office process; wherein the time starting point of the preset time period is after the moment when the trained office process time-consuming prediction model is obtained, and the time end point is the current moment or before the current moment; obtaining the ratio of the difference between the predicted time consumption and the actual time consumption to the actual time consumption, and updating the training sample set through the office process data within the preset time period when the ratio is greater than the preset ratio; training the office process time-consuming prediction model based on the updated training sample set to obtain the trained office process time-consuming prediction model.
[0011] In some specific embodiments, the office process time consumption prediction model is trained based on the training sample set to obtain the trained office process time consumption prediction model, including: using the process composition data and external data in the training sample set as input data of the LightGBM algorithm, and using the process time consumption data as output data of the LightGBM algorithm to train the office process time consumption prediction model.
[0012] The second aspect of the present application provides an office process time consumption prediction device, including: an acquisition module, used to obtain office process data of the current office process; wherein the office process data includes process composition data and external data, the process composition data is the basic information data constituting the current office process, and the external data is the data other than the basic information data when the current office process is initiated; a prediction module, used to input the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
[0013] A third aspect of the present application provides an electronic device, comprising: a processor; and a memory for storing a computer program, wherein when the computer program is executed by the processor, any of the above-mentioned office process time consumption prediction methods is implemented.
[0014] A fourth aspect of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the office process time consumption prediction method as described above is implemented.
[0015] The present application has at least the following beneficial technical effects: Based on the office process time-consuming prediction method, device, electronic device and storage medium provided by the present application, the method includes: an office process time-consuming prediction method, the method includes: obtaining office process data of the current office process; wherein the office process data includes process composition data and external data, the process composition data is the basic information data constituting the current office process, and the external data is the data other than the basic information data when the current office process is initiated; the office process data is input into a preset office process time-consuming prediction model to predict the time-consuming information corresponding to the current office process. Therefore, by inputting the process composition data and external data into the preset office process time-consuming prediction model to predict the office process time-consuming, the influence of the process's own data and external data on the office process time-consuming is fully considered, and the office time-consuming can be accurately predicted, thereby facilitating the reasonable allocation of resources, optimizing process design, and discovering potential bottleneck problems in advance.
[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0018] Figure 1 It is a flowchart of an embodiment of a training method for an office process time-consuming prediction model provided by the present application;
[0019] Figure 2 It is a flowchart of another embodiment of the training method of the office process time consumption prediction model provided by the present application;
[0020] Figure 3 It is a flowchart of another embodiment of the training method of the office process time consumption prediction model provided by the present application;
[0021] Figure 4 It is a flowchart of another embodiment of the training method of the office process time consumption prediction model provided by the present application;
[0022] Figure 5 It is a flowchart of another embodiment of the training method of the office process time consumption prediction model provided by the present application;
[0023] Figure 6 This is a flowchart of another embodiment of the training method of the office process time-consuming prediction model provided by the present application.
[0024] Figure 7 It is a structural block diagram of an embodiment of the office process time consumption prediction device provided by the present application;
[0025] Figure 8 It is a schematic diagram of the structural framework of an embodiment of the electronic device provided by the present application;
[0026] Fig. 9 It is a schematic diagram of the structural framework of an embodiment of the computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0028] If there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if the meaning of "and / or" appearing in the full text is to include three parallel schemes, taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0029] The first aspect of the present application provides a method for predicting the time consumption of an office process. Figure 1 This is a flowchart of an embodiment of the office process time consumption prediction method provided by the present application. Figure 5 , the method comprises the following steps:
[0030] S101: Acquire office process data of the current office process; wherein, the office process data includes process composition data and external data, the process composition data is the basic information data constituting the current office process, and the external data is the data other than the basic information data when the current office process is initiated.
[0031] The current office process is the office process that needs to predict the time consumption of the office process. The office process data of the current office process consists of process composition data and external data. The process composition data is the basic information data that constitutes the current office process. The composition information of each node of the process (such as node task type, relevant processing personnel, etc.) can be obtained from the process composition data. External data is data other than the basic information data when the current office process is initiated, that is, external data is completely independent of the process composition data. It is not the basic information data that constitutes a process, but external information related to the process, such as weather information when the process is initiated, related events occurring in society, etc.
[0032] S102: Inputting office process data into a preset office process time consumption prediction model to predict time consumption information corresponding to the current office process.
[0033] The office time consumption prediction model can be obtained in advance through training. By inputting the office process data into the preset office process time consumption prediction model, the corresponding time consumption information can be output.
[0034] Figure 2 1 is a flow chart of another embodiment of the office process time consumption prediction method provided by the present application. Figure 2 In some specific embodiments, the step of obtaining the office process data of the current office process, that is, the above-mentioned step S101, includes:
[0035] S201: Obtain the first characteristic data and the second characteristic data corresponding to the process composition data and external data of the office process data of the current office process respectively; wherein the first characteristic data includes at least one of process type data, process option data, initiation time data, approval step data, approval personnel position data and approval personnel attendance information, and the second characteristic data includes at least one of weather information data, temperature information data and holiday information data.
[0036] It should be understood that, whether it is process composition data or external data, each major category of data has multiple sub-categories of data. In each major category of data, some sub-categories of data are beneficial to the prediction of office process time consumption, but some sub-categories of data are of no help to the prediction of office process time consumption, and may even have side effects on the prediction of office process time consumption. For example, in the major category of process composition data, there are ten sub-categories of data, and only four of them are useful for office process time consumption prediction, while the remaining six sub-categories of data are of no help to the prediction of office process time consumption and may even affect the accuracy of the prediction. At this point, we use the sub-categories of data in this major category of data that are helpful for the prediction of office process time consumption as feature data. At this point, for the process composition data, the four sub-categories of data can be feature data, i.e., the first feature data.
[0037] In this embodiment, the first characteristic data is specifically defined to include process type data, process option data, filing time data, approval step data, approval personnel position data and approval personnel attendance information. Among them, the process type can reflect the type of office process, for example, the process type can include leave process, adjustment process, office supplies collection process, procurement process, IT system online process, seal process, reimbursement process, etc., and the corresponding data is the process type data. In the process of filing an office process, after determining the process type, the process options are generally determined. The process options can be: "leave type" (marriage leave, annual leave, personal leave, adjustment leave, sick leave, etc.) and "number of days" (1 day, 5 days, 10 days, etc.) in the leave process. The filing time is the filing time of the office process. After all the information of the office process is filled in, it can be filed and has a filing time. Among them, the attendance information of the approval personnel can be the attendance information of the approval personnel in the future period after the process is filed. Weather information data, temperature information data and holiday information data can be data in the future period after the process is filed.
[0038] Among them, the second characteristic data includes weather information data, temperature information data and holiday information data. It should be understood that in addition to the relevant data of the process itself, these external data will also directly affect the time consumption of the office process. For example, after the process is initiated, the corresponding weather is thunderstorm weather, which may affect the office efficiency of office staff and thus affect the progress of the office process. After the process is initiated, if it is a holiday, it will inevitably affect the approval of the office process and thus affect the time consumption of the office process.
[0039] In some specific embodiments, the step of inputting the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process, that is, the above-mentioned step S102, includes:
[0040] S202: Inputting the first characteristic data and the second characteristic data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
[0041] After obtaining the first characteristic data and the second characteristic data, it is only necessary to input the first characteristic data in the process composition data and the second characteristic data in the external data into the model for prediction, which can improve the accuracy of the prediction.
[0042] Figure 3 This is a flow chart of another embodiment of the office process time consumption prediction method provided by the present application. The office process time consumption prediction model described in the above embodiment can be trained by the following steps:
[0043] S11: Obtain a training sample set; wherein the training sample set includes multiple training samples, the training samples are historical office process data, the historical office process data includes process data and external data, the process data includes process composition data and process time consumption data, the process composition data is the basic information data constituting the historical office process, and the external data is the data other than the basic information data when the historical office process is initiated.
[0044] Specifically, the training sample set includes multiple training samples, each of which is presented in the form of historical office process data. The historical office process data is the relevant data of the office process that has been experienced in the historical process, which will be saved and can be obtained by the office system. In some application scenarios, the relevant data synchronization tools of the big data platform can be used to obtain the historical office process data of the office system, and then the historical office process data can be further analyzed and processed through the big data platform.
[0045] This step defines that the historical office process data includes process data and external data, and the process data includes process composition data and process time data. Among them, the process data is the data of the process itself, and the process composition data and process time data can constitute a basic office process. In this embodiment, the process composition data is the basic information data that constitutes the historical office process. The composition information of each node of the process (such as node task type, relevant processing personnel and other information) can be obtained from the process composition data, and the time information of each node can be understood from the process time data. The external data is completely independent of the process data. It is not the basic data that constitutes a process, but external information data related to the process, such as weather information when the process is initiated, related events occurring in society, etc.
[0046] S12: Training the office process time consumption prediction model based on the training sample set to obtain a trained office process time consumption prediction model.
[0047] It should be understood that the training sample set includes multiple training samples. By training the office time consumption prediction model with multiple training samples, an office process time consumption prediction model with a prediction effect that is more in line with reality can be obtained.
[0048] Among them, in the process of training the office process time-consuming prediction model based on the training sample set, relevant model algorithms, deep learning and other methods can be used for training to improve the prediction accuracy of the model.
[0049] In summary, based on the office process time consumption prediction model training method provided in the above embodiment, the office process time consumption prediction model is predicted by acquiring the process data and external data in the historical office process data, and the influence of the process's own data and external data on the office process time consumption is fully considered, so that the trained office process time consumption prediction model can accurately predict the office time consumption, thereby facilitating the reasonable allocation of resources, optimizing process design, and discovering potential bottleneck problems in advance.
[0050] Figure 4 This is a flowchart of another embodiment of the office process time consumption prediction method provided by the present application. Figure 4 In some specific embodiments, the step of obtaining a training sample set, i.e., the above-mentioned step S11, includes:
[0051] S21: Acquire process data and external data of historical office process data corresponding to a single historical office process within a preset historical time period; wherein the process data includes process composition data and process time consumption data.
[0052] The duration of the preset historical time period is preset, and the end time of the preset historical time period may be the current time. In some embodiments, in order to ensure the timeliness of the data, the duration of the preset historical time period may not be long. For example, it may be the last three months. Compared with the last year, the acquired data has better timeliness and is more in line with the current actual situation.
[0053] There may be multiple historical office processes in the predicted historical time period, and each historical office process corresponds to a set of historical office process data. This step obtains the historical office process data corresponding to a single historical office process, and the historical office process data includes process data and external data. Among them, the relevant description of process data and external data can be referred to the content in the above embodiment, which will not be repeated here.
[0054] S22: Obtain first feature data, second feature data, and third feature data corresponding to the process composition data, external data, and process time consumption data, respectively, and use the first feature data, second feature data, and third feature data as training samples.
[0055] It should be understood that no matter it is process composition data, external data or process time consumption data, each major category of data has multiple sub-categories of data. In each major category of data, some sub-categories of data are beneficial to the prediction of office process time consumption, but some sub-categories of data are of no help to the prediction of office process time consumption, and may even have side effects on the prediction of office process time consumption. For example, in the major category of process composition data, there are ten sub-categories of data, and only four of them are useful for the prediction of office process time consumption, while the remaining six sub-categories of data are of no help to the prediction of office process time consumption and may even affect the accuracy of the prediction. At this point, we use the sub-categories of data in this major category of data that are helpful for the prediction of office process time consumption as feature data. Combined with the above example, for process composition data, the four sub-categories of data can be feature data, i.e., the first feature data.
[0056] Different categories of data can correspond to different characteristic data, that is, process composition data, external data and process time consumption data can correspond to the first characteristic data, the second characteristic data and the third characteristic data respectively. At this time, the first characteristic data, the second characteristic data and the third characteristic data are different from each other.
[0057] In this embodiment, the process composition data, external data and process time consumption data are not directly used as training samples. Instead, only the first feature data, the second feature data and the third feature data are used as training samples. The data in the process composition data, external data and process time consumption data that are not helpful for the prediction of office process time consumption are eliminated. On the one hand, the amount of data processing is reduced, and on the other hand, the accuracy of the prediction of office process time consumption is improved.
[0058] S23: Taking the training samples corresponding to all historical office processes within a preset historical time period as a training sample set.
[0059] The above steps introduce the extraction of feature data from the process office process data corresponding to a historical office process as a training sample. All historical office processes within the preset historical time period can be used to obtain training samples in the above manner, thereby obtaining training samples corresponding to all historical office processes within the predicted historical time period to form a training sample set.
[0060] Figure 5 This is a flowchart of another embodiment of the office process time consumption prediction method provided by the present application. Figure 5 In some specific embodiments, the step of obtaining the first characteristic data, the second characteristic data and the third characteristic data corresponding to the process composition data, the external data and the process time consumption data, i.e., the above-mentioned step S22, includes:
[0061] S31: Acquire at least one of the process type data, process option data, proposal time data, approval step data, approval personnel position data, and approval personnel attendance information data in the process composition data as the first feature data.
[0062] At this time, the process type data, process option data, submission time data, approval step data, approval personnel position data, and approval personnel attendance information data constitute the first feature data in the process configuration data.
[0063] Specifically, the process type can reflect the type of office process. For example, the process type can include leave process, adjustment process, office supplies collection process, procurement process, IT system online process, printing process, reimbursement process, etc. The corresponding data is the process type data. In the process of initiating an office process, after determining the process type, the process options will generally be determined. The process options can be: "leave type" (marriage leave, annual leave, personal leave, adjustment leave, sick leave, etc.) and "number of days" (1 day, 5 days, 10 days, etc.) in the leave process. The initiation time is the initiation time of the office process. After all the information of the office process is filled in, it can be initiated and has a initiation time.
[0064] There may be multiple approval steps in an office process. In this case, different approval steps correspond to different approval nodes. In this case, the data of the approval node is the data of the approval step. For example, in a leave process, the approval steps may include three approval steps: supervisor approval, personnel approval, and boss approval. Different office process nodes may correspond to different approvers. In this case, there will be the position data of the approver and the attendance information data of the approver. At this time, if there are multiple approval nodes, then each approval node corresponds to the position data and attendance data of the approver. For example, in a leave process, the first approval node is the supervisor approval, then the position data is the supervisor position data, and the attendance data can be the attendance data of the supervisor when the approval node reaches him, or it can be his attendance data when the entire office process is in the approval process.
[0065] S32: Acquire at least one of weather information data, temperature information data, and holiday information data in the external data as second feature data.
[0066] In this embodiment, weather information data, temperature information data and holiday information data constitute the second characteristic data. Of course, in other embodiments, the second characteristic data may not be limited to this, and no specific limitation is made here. For example, the second characteristic data may also include social events that occur during the process approval process, such as epidemic events.
[0067] It should be understood that in addition to the relevant data of the process itself, these external data will also directly affect the time taken for the office process. For example, if the weather is thunderstorm after the process is initiated, it may affect the office efficiency of the office staff and thus affect the progress of the office process. If the process is initiated and then it is a holiday, it will inevitably affect the approval of the office process and thus affect the time taken for the office process.
[0068] Compared to training the model only with the data of the process itself and then predicting the time consumption through the trained model, since this embodiment adds external data and the second feature data corresponding to the external data constitutes part of the training sample, it can improve the accuracy of the model's prediction of the time consumption of office processes.
[0069] S33: Obtain at least one of the time consumption data of each process node in the process time consumption data and the time consumption data of the entire office process as the third feature data.
[0070] In this embodiment, the time consumption data of each process node and the time consumption data of the entire office process constitute the third characteristic data. Of course, in other embodiments, the third characteristic data may not be limited to this. It should be understood that the time consumption data of each node can reflect the speed of office work at each node. In the entire office process, in addition to the time consumption of each node, there may be other time consumptions. Therefore, it is necessary to obtain the time consumption data of the entire office process to understand the speed of the entire office process.
[0071] Figure 6 This is a flowchart of another embodiment of the office process time consumption prediction method provided by this application. Figure 6 In some specific embodiments, after the step of training the office process time consumption prediction model based on the training sample set to obtain the trained office process time consumption prediction model, that is, after the above step S13, the following steps are included:
[0072] S41: Obtain the predicted time consumption of the office process based on the office process time consumption prediction model within a preset time period and the actual time consumption of the office process; wherein, the time starting point of the preset time period is after the moment when the trained office process time consumption prediction model is obtained, and the time end point is the current moment or before the current moment.
[0073] It should be understood that after obtaining the trained office process time consumption prediction model, the accuracy of the office process time consumption prediction model needs to be verified, or after the model has been used for a period of time, the accuracy of the model decreases and the model needs to be updated. This embodiment can verify or update the model based on the office process data within a preset time period, thereby improving the prediction accuracy of the model.
[0074] The duration of the preset time period can be preset. The starting point of the preset time period is after the time when the trained office process time consumption prediction model is obtained, and the end point is the current time or before the current time. In fact, the preset time period is a historical time period. Therefore, within the preset time period, the actual time consumption of each office process can be obtained based on historical data. In addition, the historical data of each office process is input into the prediction model to obtain relevant prediction data of the office process.
[0075] S42: Obtain a ratio of the difference between the predicted time consumption and the actual time consumption to the actual time consumption, and when the ratio is greater than a preset ratio, update the training sample set using the office process data within a preset time period.
[0076] It should be understood that the predicted time consumption of the office process predicted by the office process time consumption prediction model and the actual time consumption of the office process are different in most cases, so there is generally a difference between the predicted time consumption and the actual time consumption. At this time, the ratio between the difference and the actual time consumption can reflect the degree of difference between the predicted time consumption and the actual time consumption, that is, the larger the ratio, the greater the difference between the predicted time consumption and the actual time consumption.
[0077] The preset ratio is pre-set, and when the ratio of the difference between the predicted time and the actual time relative to the actual time is less than or equal to the preset ratio, it means that the difference between the predicted time and the actual time is small, and the prediction accuracy of the predicted time obtained by the prediction model is high. When the ratio is greater than the preset ratio, it means that the difference between the predicted time and the actual time is large, and the prediction accuracy of the predicted time obtained by the prediction model is low. At this time, it is necessary to update the training sample set through the office process data within the preset time period.
[0078] It should be understood that the historical data corresponding to the training sample set used to train the office process time-consuming prediction model is before the preset time period. At this time, the training sample set is updated by the office process data within the preset time period, which can be to add the training sample set corresponding to the office process data within the preset time period to the original training sample set, thereby obtaining an updated training sample set.
[0079] S43: Training the office process time consumption prediction model based on the updated training sample set to obtain a trained office process time consumption prediction model.
[0080] Combined with the above content, it can be seen that the updated training sample set includes the training sample set within the preset time period, and the training sample set in the preset time period is the training sample set that is not used in model training and is close to the current moment. Therefore, the office process time consumption prediction model obtained by training with the updated training sample set will be closer to the office system's recent office process time consumption, thereby improving the accuracy of office process time consumption prediction.
[0081] Regarding the specific training method of the office process time-consuming prediction model, in some specific embodiments, the office process time-consuming prediction model is trained based on the training sample set to obtain the trained office process time-consuming prediction model, including: using the process composition data and external data in the training sample set as input data of the LightGBM algorithm, and using the process time-consuming data as output data of the LightGBM algorithm, so as to train the office process time-consuming prediction model.
[0082] It should be understood that the LightGBM (Light Gradient Boosting Machine) algorithm is an efficient and scalable machine learning algorithm based on gradient boosted decision trees (GBDT). The process composition data and external data of multiple sets of training samples are used as input data, and the corresponding process time consumption data is used as output data. Finally, the office process time consumption prediction model can be trained, and then when the process composition data and external data of the training samples are input into the model, the corresponding time consumption data can be obtained.
[0083] A second aspect of the present application provides an office process time consumption prediction device 20, Figure 7 It is a structural block diagram of an embodiment of the office process time consumption prediction device 20 provided in the present application.
[0084] Combination Figure 6 The training device 20 of the office process time-consuming prediction model includes an acquisition module 21 and a prediction module 22. The acquisition module 21 is used to acquire a training sample set; wherein the training sample set includes multiple training samples, and the training samples are historical office process data, and the historical office process data includes process composition data, external data, and process time-consuming data. The prediction module 22 is used to train the office process time-consuming prediction model based on the training sample set to obtain the trained office process time-consuming prediction model.
[0085] A third aspect of the present application provides an electronic device, comprising: a processor; a memory for storing a computer program, which, when executed by the processor, implements the office process time consumption prediction method as in any of the above embodiments.
[0086] Figure 8 It is a schematic diagram of the structural framework of an embodiment of the electronic device 500 provided in the present application.
[0087] In some specific embodiments, the electronic device 500 includes a central processing unit (CPU) 501 and a read-only memory (ROM) 502, wherein the CPU 501 is a processor and the ROM 502 is a memory. The CPU 501 can perform various appropriate actions and processes according to the program stored in the ROM 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other via a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0088] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0089] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0090] A fourth aspect of the present application provides a computer-readable storage medium 40, Fig. 9It is a schematic diagram of the structural framework of an embodiment of the computer-readable storage medium 40 provided in the present application.
[0091] The computer-readable storage medium 40 stores a computer program 41 , and when the computer program 41 is executed by a processor, the office process time consumption prediction method in any of the above embodiments is implemented.
[0092] It should be noted that the computer-readable medium 40 shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0093] In summary, based on the office process time consumption prediction method, device, electronic device and storage medium provided by this application, the method includes: an office process time consumption prediction method, the method includes: obtaining office process data of the current office process; wherein the office process data includes process composition data and external data, the process composition data is the basic information data constituting the current office process, and the external data is the data other than the basic information data when the current office process is initiated; the office process data is input into the preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process. Therefore, by inputting the process composition data and external data into the preset office process time consumption prediction model to predict the office process time consumption, the influence of the process's own data and external data on the office process time consumption is fully considered, and the office time consumption can be accurately predicted, thereby facilitating the reasonable allocation of resources, optimizing process design, and discovering potential bottleneck problems in advance.
[0094] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A method for predicting time consumption of office processes, characterized in that: The method comprises: Obtaining office process data of the current office process; wherein the office process data includes process constituent data and external data, the process constituent data is basic information data constituting the current office process, and the external data is data other than the basic information data when the current office process is initiated; The office process data is input into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
2. The office process time consumption prediction method according to claim 1 is characterized in that: The steps of obtaining the office process data of the current office process include: Acquire first characteristic data and second characteristic data corresponding to process composition data and external data of office process data of the current office process, respectively; wherein the first characteristic data includes at least one of process type data, process option data, initiation time data, approval step data, approval personnel position data, and approval personnel attendance information, and the second characteristic data includes at least one of weather information data, temperature information data, and holiday information data; The step of inputting the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process includes: The first feature data and the second feature data are input into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
3. The office process time consumption prediction method according to claim 1 is characterized in that: The office process prediction model is trained by the following steps: Acquire a training sample set; wherein the training sample set includes a plurality of training samples, the training samples are historical office process data, the historical office process data includes process data and external data, the process data includes process composition data and process time consumption data, the process composition data is basic information data constituting the historical office process, and the external data is data other than the basic information data when the historical office process is initiated; The office process time consumption prediction model is trained based on the training sample set to obtain a trained office process time consumption prediction model.
4. The office process time consumption prediction method according to claim 3 is characterized in that: The steps of obtaining a training sample set include: Acquire process data and external data of historical office process data corresponding to a single historical office process within a preset historical time period; wherein the process data includes process composition data and process time consumption data; Obtaining first feature data, second feature data, and third feature data corresponding to the process composition data, the external data, and the process time-consuming data, respectively, and using the first feature data, the second feature data, and the third feature data as training samples; The training samples corresponding to all historical office processes within the preset historical time period are used as a training sample set.
5. The office process time consumption prediction method according to claim 4 is characterized in that: The step of obtaining the first characteristic data, the second characteristic data and the third characteristic data corresponding to the process composition data, the external data and the process time consumption data respectively comprises: Acquire at least one of process type data, process option data, initiation time data, approval step data, approval personnel position data, and approval personnel attendance information data in the process composition data as the first feature data; Acquire at least one of weather information data, temperature information data and holiday information data in the external data as the second feature data; At least one of the time consumption data of each process node in the process time consumption data and the time consumption data of the entire office process is obtained as the third feature data.
6. The office process time consumption prediction method according to claim 3 is characterized in that: After the step of training the office process time consumption prediction model based on the training sample set to obtain the trained office process time consumption prediction model, the method includes: Obtain the predicted time consumption of the office process predicted by the office process time consumption prediction model within a preset time period and the actual time consumption of the office process; wherein the time starting point of the preset time period is after the moment when the trained office process time consumption prediction model is obtained, and the time ending point is the current moment or before the current moment; Obtaining a ratio of a difference between the predicted time consumption and the actual time consumption to the actual time consumption, and updating the training sample set through the office process data within the preset time period when the ratio is greater than a preset ratio; The office process time consumption prediction model is trained based on the updated training sample set to obtain the trained office process time consumption prediction model.
7. The office process time consumption prediction method according to claim 3 is characterized in that: The step of training the office process time consumption prediction model based on the training sample set to obtain the trained office process time consumption prediction model includes: The process composition data and the external data in the training sample set are used as input data of the LightGBM algorithm, and the process time consumption data is used as output data of the LightGBM algorithm to train the office process time consumption prediction model.
8. A device for predicting time consumption of office processes, characterized in that: include: An acquisition module is used to acquire office process data of the current office process; wherein the office process data includes process composition data and external data, wherein the process composition data is basic information data constituting the current office process, and the external data is data other than the basic information data when the current office process is initiated; The prediction module is used to input the office process data into a preset office process time consumption prediction model to predict the time consumption information corresponding to the current office process.
9. An electronic device, characterized in that: include: processor; The memory is used to store a computer program, and when the computer program is executed by the processor, the office process time consumption prediction method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the office process time consumption prediction method according to any one of claims 1 to 7 is implemented.
