Software design support system and software design support method
The software design support system automates the division of data analysis pipelines into modules based on human intervention points, easing integration into business systems and reducing engineer workload.
Patent Information
- Application Number
- JP2023047304
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Incorporating data analysis pipelines into business systems poses challenges for system engineers, who must consider user needs and data scientist inputs, leading to increased workload and suboptimal configurations.
A software design support system that analyzes execution records of data analysis pipelines to identify continuous processing flows, allowing automatic division into modules based on human intervention points, facilitating easier integration into business systems.
Reduces the manual effort required for system engineers to design modules, providing appropriate interfaces and improving user convenience by automating the pipeline division process.
Smart Images

Figure 2024136251000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technology that supports the process of incorporating machine learning programs obtained through data analysis into business systems. [Background technology]
[0002] Programs for data analysis, such as machine learning, developed by data scientists are usually composed of a set of programs that realize processes called multiple functions. The program for data analysis is called a data analysis program, and the programs that realize each of the above processes are called processing nodes.
[0003] In a data analysis program, a series of processing nodes are combined based on the relationships between the data exchanged between the processing nodes so that the output from the previous processing node becomes the input to the next processing node, and these processing nodes are executed in a predetermined order. This flow of a series of processing nodes executed in order is called a pipeline.
[0004] In data analysis using machine learning performed by data scientists, multiple pipelines are created, such as a learning pipeline for creating a model for performing a predetermined inference, and an inference pipeline for performing the inference using the created model. The learning pipeline is a combination of multiple processing nodes, such as a processing node for reading learning data, a processing node for processing the learning data so that it is suitable for data analysis, and a processing node for creating a model by learning the processed learning data.
[0005] The learning pipeline or inference pipeline, which is the product of the data analysis created in this way, is incorporated into a business system by, for example, a system engineer. A business system is usually composed of multiple software modules, with each software module being a unit. A software module is also simply called a module.
[0006] When incorporating a learning pipeline or an inference pipeline into a business system, system engineers must envision the use cases of the business system and design an optimal module configuration, determining which parts will form a single unit of a module. A module is, for example, a unit of an application programming interface. Hereafter, application programming interface is abbreviated to interface or API.
[0007] Depending on the use case of the business system, a suitable module configuration in the business system does not necessarily match the configuration of the pipeline or processing nodes in the deliverable of the data analysis. As a use case, a case where a user in the business system wants to see data output from a certain processing node included in a pipeline while the pipeline is being executed is assumed.
[0008] For example, a data analysis program includes a learning pipeline in which multiple types of models are used and the learning process for each model is an individual processing node. In a business system, it is assumed that a user wants to visually check the results of the learning process each time the learning process for each model is performed. In that case, it is preferable to divide the part of the learning pipeline up to the learning process and the part thereafter into separate modules, rather than executing the learning pipeline as a single unit from start to finish.
[0009] Patent Document 1 discloses a technique for dividing a pipeline. From the viewpoint of distributed processing, the technique disclosed in Patent Document 1 determines the division positions of a pipeline based on the communication volume at the division positions and the number of nodes included in each partial pipeline after division. [Prior art documents] [Patent documents]
[0010] [Patent Document 1] Patent Publication No. 2021-192189 Summary of the Invention [Problem to be solved by the invention]
[0011] When incorporating a learning pipeline or an inference pipeline into a business system, system engineers must anticipate the use cases for the business system and consult with data scientists to decide which parts of the data should be available to users, which is a burdensome task for system engineers.
[0012] The technology disclosed in Patent Document 1 divides a pipeline for distributed processing by focusing on communication volume and processing performance, and is therefore unsuitable for incorporating a pipeline to build a business system that is highly convenient for users.
[0013] One objective of the present disclosure is to provide a technique for assisting in the task of constructing software for a highly convenient computer system that incorporates a program that is the result of data analysis. [Means for solving the problem]
[0014] A software design support system according to one aspect included in the present disclosure is a software design support system that supports the design of a software program for a computer system composed of one or more modules, based on a data analysis program including a pipeline composed of a plurality of processing nodes for data analysis, and has an execution record acquisition unit that acquires an execution record, which is a record of work performed by a data scientist or the like in the data analysis, and which includes an execution time related to the time when the processing node was executed and an execution condition indicating the data used or acquired when the processing node was executed; an execution record analysis unit that identifies a series of processing nodes that were executed continuously in the data analysis as a continuous execution flow based on the execution time and the execution conditions; and a division unit extraction unit that, if the continuous execution flow is a subset of the pipeline, determines the continuous execution flow as an intermediate execution flow, and determines a division position at which to divide modules in the software program using a starting point of the intermediate execution flow in the pipeline as a candidate.
[0015] According to one embodiment of the present disclosure, there is provided a software design support method for supporting the design of a software program for a computer system composed of one or more modules, based on a data analysis program including a pipeline composed of a plurality of processing nodes for data analysis, the method comprising: The software design support method includes: an execution record acquisition unit acquires an execution record including an execution time relating to the time when the processing node was executed in the data analysis and an execution condition indicating data used or acquired when the processing node was executed; an execution record analysis unit identifies a series of processing nodes that were executed consecutively in the data analysis as a consecutive execution flow based on the execution time and the execution conditions; and a division unit extraction unit determines, if the consecutive execution flow is a subset of the pipeline, that the consecutive execution flow is an intermediate execution flow, and determines, based on the number of times the intermediate execution flow was executed, whether or not to set a starting point of the intermediate execution flow in the pipeline as a division position for dividing modules in the software program. Effect of the Invention
[0016] When a data scientist develops an analytical pipeline, the system automatically extracts and presents modular units by dividing the pipeline into combinations of processing nodes that require work, such as when the user checks the output results of the processing nodes. This reduces the man-hours required by system engineers to design modules when incorporating a pipeline into a system, and provides users with an appropriate interface. [Brief description of the drawings]
[0017] [Figure 1] FIG. 1 is a conceptual diagram of a software design support system. [Diagram 2] FIG. 1 is a diagram illustrating an example of a hardware configuration in which a software design support system is configured using a server. [Diagram 3] 13 is a conceptual diagram showing an example of the configuration of a function information management table; [Figure 4] FIG. 13 is a conceptual diagram showing an example of the configuration of a pipeline information management table. [Diagram 5] 1 is a conceptual diagram illustrating an example of a pipeline configuration of a target program to be registered in a program information management unit. [Figure 6] FIG. 13 is a conceptual diagram showing an example of the configuration of an execution record management table. [Figure 7] 1 is an overall flowchart of a software design support program. [Figure 8] 13 is a flowchart showing details of a process for extracting a flow that matches pipeline information. [Figure 9] FIG. 13 is a conceptual diagram illustrating flow extraction information. [Figure 10] 13 is a flowchart showing details of a process for estimating a pipeline division. [Figure 11] 13 is a conceptual diagram illustrating an example of an output information screen that presents API units identified for a target program. [Figure 12] 13 is a flowchart of a process for estimating a combination of APIs to be executed in succession. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. EXAMPLES
[0019] FIG. 1 is a conceptual diagram of a software design support system 101 according to a first embodiment of the present invention.
[0020] The software design support system 101 supports the design of a software program for a computer system composed of one or more modules based on a data analysis program including a pipeline composed of multiple processing nodes for data analysis. The computer system may be a system other than the software design support system 101. The computer system and the software design support system 101 may be integrated into one.
[0021] The software design support system 101 includes an execution record analysis unit 102, a division unit extraction unit 103, a module use flow estimation unit 104, an execution record management unit 105, a program information management unit 106, an execution record acquisition unit 107, and a program information acquisition unit 108.
[0022] The execution record analysis unit 102 identifies a series of processing nodes that are executed consecutively in the data analysis as a consecutive execution flow, based on the execution times and execution conditions.
[0023] The execution record analysis unit 102 compares the output data of the processing node that was executed earlier and the input data of the processing node that was executed later, of two processing nodes that are identified as having been executed one after the other based on their execution times, to determine whether or not the two processing nodes should be included in a series of processing nodes that were executed consecutively.
[0024] If the continuous execution flow is a subset of the pipeline, the division unit extraction unit 103 treats the continuous execution flow as an intermediate execution flow, and determines, based on the number of times the intermediate execution flow has been executed, whether or not to treat the start point of the intermediate execution flow in the pipeline as a division position for dividing modules in the software program.
[0025] The division unit extraction unit 103 determines whether the continuous execution flow is a subset of the pipeline based on the input data and output data in the execution conditions of the processing nodes included in the continuous execution flow and the input data names and output data names included in the program information of the processing nodes that make up the pipeline.
[0026] The division unit extraction unit 103 determines whether or not to set the start point of the midway execution flow as a division position, based on the fact that the midway execution flow is being executed by changing the input data.
[0027] The division unit extraction unit 103 determines whether or not to set the start point of the midway execution flow as a division position, based on the fact that the midway execution flow is being executed with modified teacher data.
[0028] The division unit extraction unit 103 determines whether or not to set the start point of the midway execution flow as the division position, based on the fact that the midway execution flow is being executed with modified parameters.
[0029] The module usage flow estimation unit 104 calculates a value indicating the degree of necessity for human intervention based on a combination of an inference flow and a learning flow that follows the inference flow among the consecutive execution flows, and outputs the combination and the value indicating the degree of necessity.
[0030] The execution record management unit 105 records the execution record. The execution record is a record of the work performed by the data scientist in the data analysis. In the process of data analysis and model development, the data scientist executes some processing, etc., and performs experimental work while checking the results obtained by the processing. In the execution record, the execution time of the processing node is recorded as the start time when the processing of the processing node is started, the end time when the processing of the processing node is ended, the input data that is the data input to the processing node, and the output data that is the data output from the processing node. The execution record management unit 105 includes an execution record management table 105a that records information on the execution record.
[0031] The program information management unit 106 includes a function information management table 106a and a pipeline information management table 106b. The function information management table 106a stores information on a function basis for the program information acquired by the program information acquisition unit 108, and manages the information on a function basis. The pipeline information management table 106b stores information on a pipeline basis, and manages the information on a pipeline basis.
[0032] In addition to the management tables described above, the program information management unit 106 includes source code of the program, notebooks in the case of implementation in notebook format, and a repository for managing these.
[0033] The execution record acquisition unit 107 acquires an execution record including an execution time relating to the time when a processing node was executed in the data analysis and an execution condition indicating the data used or acquired when the processing node was executed.
[0034] The execution record acquisition unit 107 acquires the executed execution record from a first environment. The first environment is, for example, a computer used by a data scientist, another computer communicatively connected to the computer, or a storage medium communicatively connected to these. For example, the first environment is the client 130 shown in FIG. 1. The execution record management table 105a stores the acquired execution records.
[0035] The program information acquisition unit 108 acquires program information for a data analysis program, the program information including information indicating the processing nodes that constitute a pipeline included in the data analysis program and their order, and information including, for each processing node that constitutes the pipeline, an input data name, which is the name of data input to the processing node, and an output data name, which is the name of data output from the processing node.
[0036] The interface 109 connects the software design support system 101 to an external device such as a client 130 .
[0037] A pipeline 110 shows an example of a pipeline of a data analysis program stored in the pipeline information management table 106b.
[0038] The pipeline 110 in this example includes three processing nodes: data processing 111, model learning processing 112, and evaluation processing 113. A processing node refers to a group of any processes that are treated as a single unit when the pipeline is executed. A processing node is composed of program functions, commands, etc.
[0039] The pipeline 110 in this example has four types of data: training data 114 , processed data 115 , model 116 , and evaluation result data 117 .
[0040] When the processor executes the processing node of the data processing process 111 based on the learning data 114, which is the input data, processed data 115 is generated. When the processor executes the processing node of the model learning process 112 based on the processed data 115, which is the input data, a model 116 is generated. When the processor executes the processing node of the evaluation process 113 for the model 116, evaluation result data 117 is generated. As in the example shown in FIG. 1, the pipeline 110 generally has a data flow structure in which the output from the previous processing node is input to the next processing node. Note that the structure of the pipeline 110 is not limited to that shown in FIG. 1.
[0041] The execution record management server, not shown, includes a storage device 120. Alternatively, the storage device 120 is communicably connected to the execution record management server. The execution record management server may be integrated into the software design support system 101. That is, the software design support system 101 may include the storage device 120. When the processor executes the pipeline 110, log information of the execution of each processing node is stored in the storage device 120 as an execution record.
[0042] The client 130 is a computer typically used by a user, such as a data scientist or a systems engineer.
[0043] FIG. 2 is a diagram showing an example of a hardware configuration in which the software design support system 101 is configured using a server 200. As shown in FIG.
[0044] The server 200 includes one or more processors (CPUs) 201 , a memory 202 , a secondary storage device 203 , an input / output interface 204 , and a network interface 205 .
[0045] The processor 201 realizes various functional blocks by reading and executing various programs and data stored in the memory 202 or the secondary storage device 203. For example, the processor 201 realizes the execution record analysis unit 102, the division unit extraction unit 103, the module usage flow estimation unit 104, the execution record management unit 105, the program information management unit 106, the execution record acquisition unit 107, and the program information acquisition unit 108 shown in FIG. 1 by reading and executing various programs and data stored in the memory 202 or the secondary storage device 203.
[0046] The secondary storage device 203 may be a hard disk or an SSD, but is not limited to these.
[0047] The secondary storage device 203 stores program information and execution records used by the software design support system 101. The program information and execution records may be stored not in the server 200 but in an external storage device connected to the server 200 via a network.
[0048] The input / output interface 204 controls the input of information from input devices such as a keyboard and a mouse, and the output of information to an output device such as a display. The network interface 205 has a function of connecting the software design support system 101 and an external device so that they can communicate with each other via a network such as the Internet.
[0049] The server 200 may be implemented as a virtual machine rather than a physical machine.
[0050] Fig. 3 is a conceptual diagram showing an example of the configuration of the function information management table 106a. Fig. 4 is a conceptual diagram showing an example of the configuration of the pipeline information management table 106b.
[0051] The function information management table 106a shown in Fig. 3 is a table for managing information for each processing node, which is a unit of function. The function information management table 106a has, as information items, a node ID 301 for uniquely identifying a processing node within a program, an input data name 302 for identifying input data, an output data name 303 for identifying output data, a parameter name 304 for identifying a parameter whose value is set when the processing node is executed, and a teacher data name 305 for identifying teacher data input during supervised machine learning. Multiple entries of input data, output data, parameters, and teacher data can be registered in the function information management table.
[0052] For programs to be managed, a repository is created for each program, and the developer registers the source code in the repository, which is then managed by program information management unit 106. For source code registered in the repository, software design support system 101 extracts information from the source code and registers it in each table of program information management unit 106. Alternatively, for programs to be managed, the developer may directly register the information by inputting the registration information into each table.
[0053] The pipeline information management table 106b shown in Fig. 4 manages information for each pipeline. The pipeline information management table 106b has, as information items, a pipeline ID 401 that uniquely identifies a pipeline, a node execution order 402 that is information for specifying the execution order of nodes, and an execution type 403 that indicates the execution type of the pipeline. As an example of information registration shown in Fig. 4, for a pipeline with a pipeline ID of P1, the execution order of six nodes identified by node IDs F1 to F6 and the execution type "learning" are registered. Similarly, for a pipeline with a pipeline ID of P2, the execution order of four nodes identified by node IDs F1, F2, F4, and F7 and the execution type "inference" are registered.
[0054] Fig. 5 is a conceptual diagram showing an example of the configuration of a pipeline of a data analysis program to be registered in the program information management unit 106. The pipeline shown in Fig. 5 is a learning pipeline for analysis of natural language processing, and includes six processing nodes.
[0055] In the pipeline information management table 106b shown in FIG. 4, morphological analysis processing, word extraction (model learning), evaluation 1, related word extraction (model learning), evaluation 2, and overall evaluation are registered as node IDs F1 to F6, respectively.
[0056] Various data that are input or output to a processing node, such as teacher data, text data, analysis data, and word data, are registered in the function information management table 106a shown in Fig. 3. For example, text data that is input to a morphological analysis process (node ID = F1) is registered with the input data name "in_data1". When a processor executes a pipeline, if the execution order of the processing nodes is F1, F2 in order of node ID, output data out_data1 of the processing node with node ID = F1 is assigned as input data in_data2 of the processing node with node ID = F2 and executed.
[0057] 6 is a conceptual diagram showing an example of the configuration of the execution record management table 105a. The execution record management table 105a records the processing nodes executed by the processor. The execution record management table 105a has, as information items, a record ID 601, a start time 602 indicating the execution start time, a node ID 603, an end time 604 indicating the end time of the node processing, input data 605 identifying the name of input data at the time of execution, output data 606 identifying the name of output data at the time of execution, parameters at the time of execution 607, and teacher data 608 identifying the name of teacher data.
[0058] As a method of registering information in the execution record management table 105a, a program developer may code the program to output information to be registered in the execution record management table 105a. Alternatively, a platform program that executes a pipeline may automatically record information in the execution record management table 105a when a processing node included in the pipeline is executed.
[0059] When a program developer executes a program in the first environment, information related to the execution of the processing node is stored in a storage device of an execution record management server (not shown). Then, the execution record acquisition unit 107 acquires the information related to the execution of the processing node. This acquisition may be performed periodically or irregularly.
[0060] The information in the execution record management table 105a may be managed by an execution record management server.
[0061] Fig. 7 is an overall flowchart of the software design support program. The following description will be given on the assumption that the modules are APIs. That is, the software design support system 101 supports the design of a software program that is composed of one or more APIs. A module is a unit that is included in a pipeline and is provided as an application programming interface. However, the module is not limited to an API.
[0062] The software design support system 101 starts processing upon receiving a software unit extraction request from the client 130. The execution record analysis unit 102 acquires the execution record for the requested target program from the execution record management table 105a (S701). The execution record analysis unit 102 extracts flows that fully or partially match the pipeline information in the pipeline information management table 106b (S702). The processing of step S702 will be described in more detail later with reference to FIG. 8.
[0063] The division unit extraction unit 103 estimates pipeline division for the extracted flows based on an estimate of whether human intervention was involved (S703). Note that the process of step S703 will be described in more detail later with reference to Fig. 10. As a result of the process, the division unit extraction unit 103 determines the flows that are determined to have been involved by humans as units of the API (S704).
[0064] The division unit extraction unit 103 outputs the determined API unit as an API design proposal (S705).
[0065] FIG. 8 is a flowchart showing the details of the process of extracting a flow that matches the pipeline information. FIG. 8 shows the details of the process related to step S702. The execution record analysis unit 102 extracts records that match the node IDs included in the node execution sequence managed by the pipeline information management table 106b (S801). For example, since the pipeline P1 includes nodes F1, F2, F3, F4, F5, and F6, the execution record analysis unit 102 extracts records of the corresponding node IDs from the execution record. The execution record analysis unit 102 arranges the extracted records in order of start time and extracts a combination of records that match the node execution sequence of the pipeline and are considered to be flows. The execution record analysis unit 102 manages the information during the extraction as "flow extraction information" and updates it as necessary.
[0066] The execution record analysis unit 102 selects one record from the extracted records (S802), and for the node ID of the corresponding record (node ID of the selected node), refers to the pipeline information management table 106b to identify a node ID that may be located earlier in the execution order (S803).
[0067] The execution record analysis unit 102 identifies all flows whose final node is the node ID identified in S803 in the flow extraction information (S804).
[0068] Fig. 9 is a conceptual diagram illustrating an example of flow extraction information. In the flow extraction information, a start time 901, record ID execution order 902 in which record IDs of node IDs considered to be included in the flow are arranged by execution order, and information on node ID execution order 903 are recorded as one record for each flow. As the flow extraction information, corresponding pipeline 904, which is a pipeline ID indicating a pipeline corresponding to the record, may be further recorded. The registration of information in corresponding pipeline 904 will be described later with reference to Fig. 10.
[0069] The execution record analysis unit 102 refers to the execution record management table 105a based on the record ID of the final node of the flow identified from the flow extraction information, and determines whether the end time of the final node is before the start time of the record (S805). If the end time of the final node is before the start time of the record (S805: Yes), the process proceeds to step S806. If the end time of the final node is not before the start time of the record (S805: No), the process proceeds to step S808.
[0070] In step S806, the execution record analysis unit 102 determines whether the output data of the final node matches the input data of the selected node. If the output data of the final node matches the input data of the selected node (S806: Yes), the process proceeds to step S807. If the output data of the final node does not match the input data of the selected node (S806: No), the process proceeds to step S808.
[0071] In step S807, the execution record analysis unit 102 considers that the selected node is an execution of a node in the same flow as the identified flow, and updates the flow extraction information by adding information about the selected node to the end of the information item of the record ID execution order and the information item of the node ID in the flow extraction information shown in Fig. 9 (S807). For example, in the process of a record with a node ID of F6 in the execution record management table 105a, the node that may be located before it in the pipeline management information is F5. The execution record analysis unit 102 identifies a flow whose final node is F5 from the flow extraction information, and makes a judgment based on the end time and output data in the record of F5 and the start time and input data in the record of F6 (steps S805 and S806). If it is considered to be the same flow (step S806: Yes), it adds F6 as the final node after F5 of the flow, and updates the flow extraction information.
[0072] In step S808, the execution record analysis unit 102 determines whether or not all of the identified flows have been checked. If there are flows that have not been checked (S808: No), the process returns to step S805 and is repeated. If all of the flows have been checked (S808: Yes), the selected node is regarded as a new flow and is registered in the flow extraction information (S809).
[0073] In step S810, the execution record analysis unit 102 determines whether or not all records have been checked. If all records have been checked (S810: Yes), the process proceeds to step S811. If all records have not been checked (S810: No), the process returns to step S802 and is repeated.
[0074] In step S811, the execution record analysis unit 102 outputs all flow information managed by the flow extraction information, and ends the process.
[0075] As described above, the execution record analysis unit 102 identifies continuous execution flows by examining the continuity between the end time of a processing node and the start time of another processing node, and the continuity between the output data of a processing node and the input data of another processing node.
[0076] Fig. 10 is a flowchart showing details of the process of estimating pipeline division. Fig. 10 shows details of the process related to step S703. As described above with reference to Fig. 7, the division unit extraction unit 103 estimates pipeline division based on an estimation of whether or not there was human intervention for the extracted flows (S703). This determination of whether or not there was human intervention is made based on whether or not a flow that is a subset has been repeatedly executed.
[0077] The division unit extraction unit 103 extracts flows that are a subset of the pipeline definition managed by the pipeline information management table 106b from all flow information extracted in step S702 shown in Fig. 7 (S1001). For example, since the pipeline P1 is defined by the execution order of F1, F2, F3, F4, F5, and F6 as shown in Fig. 4, the division unit extraction unit 103 extracts flows with only node IDs F1, F2, and F3 or flows with only node IDs F4, F5, and F6 as a subset of the pipeline P1. Note that flows with different execution orders, such as node IDs F5, F1, and F4, are not considered as a subset of the pipeline P1.
[0078] The division unit extraction unit 103 links the flows extracted as a subset to a pipeline ID, and adds the corresponding information to the corresponding pipeline 904 column in the flow extraction information in Fig. 9 for management. The division unit extraction unit 103 repeats the addition process to the flow extraction information until all flow information is linked to the corresponding pipeline (S1002).
[0079] The division unit extraction unit 103 identifies flows with the same combination of node IDs from among the flows associated with the pipelines, excluding flows that completely match the pipelines, and calculates the number of executions for each flow (S1003).
[0080] The division unit extraction unit 103 determines whether the number of executions calculated in step S1003 is equal to or greater than a preset threshold (S1004). If the number of executions is equal to or greater than the threshold (n times) (S1004: Yes), the process proceeds to step S1005. If the number of executions is not equal to or greater than the threshold (n times) (S1004: No), the process proceeds to step S1007.
[0081] In step S1005, the division unit extraction unit 103 determines whether the node ID of the first node of the flow being executed is a node ID other than the first node in the execution order of the pipeline definition. If the node ID of the first node of the flow being executed is a node ID other than the first node in the execution order of the pipeline definition (S1005: Yes), the process proceeds to step S1006. If the node ID of the first node of the flow being executed is the first node ID in the execution order of the pipeline definition (S1005: No), the process proceeds to step S1008.
[0082] In step S1006, assuming that there was human intervention before the flow, the division unit extraction unit 103 identifies a division point of the pipeline. The division unit extraction unit 103 identifies, in the pipeline corresponding to the flow, a point between the first node ID of the flow and the node ID located before the pipeline as the division point.
[0083] For example, if a flow consisting of nodes with node IDs F4, F5, and F6 has been executed n times or more, the node execution order of the corresponding pipeline P1 is F1, F2, F3, F4, F5, and F6, so the division unit extraction unit 103 identifies the point between node IDs F3 and F4 as the point at which to divide the pipeline. The division unit extraction unit 103 identifies the divided pipeline as a combination of nodes with node IDs F4, F5, and F6, respectively.
[0084] If the number of times the flow has been executed is not equal to or greater than the threshold (n times) (S1004: No), the division unit extraction unit 103 does not identify a division point.
[0085] In step S1008, the division unit extraction unit 103 determines whether there is a flow starting from the next node ID. That is, the division unit extraction unit 103 determines whether there is one or more flows that execute from the next node in the pipeline to the final node. If there is no flow starting from the next node ID (step S1008: No), the process transitions to step S1007. If there is a flow starting from the next node ID (step S1008: Yes), the process transitions to step S1006. In this case, the division unit extraction unit 103 specifies, as a division point, the flow determined in step S1004 to have been executed n times or more, that is, between the final node ID of the subset flow and the next node ID determined in step S1008 (S1006).
[0086] In step S1007, the division unit extraction unit 103 determines whether or not all of the extracted subset flows have been confirmed. If all of the extracted subset flows have not been confirmed (S1007: No), the process returns to step S1004, and the process from step S1004 onwards is repeated for the next subset flow. If all of the extracted subset flows have been confirmed (S1007: Yes), the division unit extraction unit 103 outputs a combination of the identified pipeline division point and the node IDs of the divided pipelines, and ends the process shown in FIG. 10.
[0087] In addition, the calculation of the number of executions for each flow may limit the period to be counted based on the start time of each execution record. For example, in step S1003, the division unit extraction unit 103 may calculate the number of executions within 24 hours and perform the subsequent judgments.
[0088] The division unit extraction unit 103 performs a pipeline division estimation process corresponding to step S703 in FIG. 6, for example, by the above-mentioned process flow. The division unit extraction unit 103 then determines the unit of the API based on the output division point result (S703). The division unit extraction unit 103 arranges the combinations of the identified division points and node IDs for the defined pipeline in accordance with the execution order, and checks whether there are any overlapping node IDs. For example, assume that the first division point identified by the division unit extraction unit 103 for the pipeline P1 is between nodes F3 and F4, and the node combination is F4, F5, and F6. If the second division point identified by the division unit extraction unit 103 for the pipeline P1 is also between F3 and F4, and the node combination is F1, F2, and F3, there are no overlapping node IDs.
[0089] If there are no overlapping nodes in the above check, the division unit extraction unit 103 determines the combination of the identified nodes and the flow to be executed in that execution order as a unit of API. In the above example, the API units are determined as F1, F2, and F3 as one API unit, and F4, F5, and F6 as another API unit.
[0090] On the other hand, if multiple division points are identified in the same pipeline and there are overlapping node IDs, the division unit extraction unit 103 determines each of them as a unit of the API and outputs multiple candidates.
[0091] 11 is a conceptual diagram illustrating an output information screen that presents API units identified for a target program. The software design support system 101 outputs API design proposal information 1101 as a program unit. The software design support system 101 outputs a unit for creating an API for a pipeline definition to an upper section 1102 of the output information screen. The software design support system 101 outputs information on nodes that are set in each API to a lower section 1103 of the output information screen.
[0092] As described above, it is possible to divide the analysis pipeline developed by a data scientist at division points that require human work, and automatically extract the units to be used as APIs and present them to the user. EXAMPLES
[0093] In the method of dividing a pipeline by estimating whether human intervention was present in the above-mentioned first embodiment, when the number of times a flow, which is a subset of a pipeline, is executed repeatedly exceeds a threshold, a method of estimating the degree to which human intervention is required for the flow is described below. This degree is referred to as the degree of necessity in this application.
[0094] In the second embodiment, the software design support system 101 estimates the possibility that the content of a processing node included in a pipeline or the data used by the processing node has been changed automatically by a program, rather than by human intervention, based on the execution record. The software design support system 101 determines that the necessity of human intervention is lower, as the possibility of automatic change by a program increases. Note that, although the software design support system 101 determines the necessity of human intervention here, other configurations are also possible. For example, the software design support system 101 may estimate the necessity of human intervention and output the estimation result. In that case, the user may determine the necessity of human intervention from the estimation result by the software design support system 101.
[0095] For the division point identified in step S1006 in FIG. 10, the software design support system 101 acquires the start time of each execution of the subsequent divided flow from the flow extraction information shown in FIG. 9. The software design support system 101 sorts the acquired data in the order of flow execution from the start time, and calculates the execution interval between the previous start time and the next start time. When the program is repeatedly executed, the execution interval is likely to be about the same. On the other hand, when a human executes it manually, the execution interval is likely to vary. Therefore, the software design support system 101 calculates the variance of each of the above execution intervals, and calculates the degree of necessity for human intervention based on the variance value. Note that the greater the variance value, the greater the degree of necessity.
[0096] As another method for calculating the degree of necessity of human intervention, the time interval from the end time of the previous flow to the start time of the next flow may be used. At the division point of the extracted pipeline, the software design support system 101 obtains the start time of the subsequent divided flow from the flow extraction information shown in FIG. 9. The software design support system 101 obtains the end time of the final node from the execution record management table 105a based on the node ID of the final node. The software design support system 101 calculates the difference between the end time of the previous flow and the start time of the next flow based on the above obtained information. Here, when human intervention is involved, since the human performs operations such as manipulating data before the execution of the next processing node, it is highly likely that it takes more time than automatically repeatedly executing the processing node. Therefore, the software design support system 101 calculates, for example, the average value of each difference and uses the average value as the degree of necessity of human intervention.
[0097] Furthermore, as another method of calculating the degree of necessity for human intervention, it is possible to determine which data or parameters have been changed in each execution of the corresponding flow, and calculate the degree of necessity based on the changed items. The software design support system 101 identifies the execution record ID of the first node of each execution from the flow extraction information for the subsequent flow identified at the division point of the initially extracted pipeline. The software design support system 101 identifies the input data, parameters, and teacher data at the time of flow execution linked to the execution record ID from the execution record management table 105a. The software design support system 101 sorts the flows by start time, and compares the input data, parameters, and teacher data of the flow of the previous execution with the input data, parameters, and teacher data of the flow of the next execution, respectively, to identify data that has been changed. For example, the criteria for determining whether or not there is a change are as follows. In the case of input data, the software design support system 101 determines whether or not there is a difference in the numerical values or images of the table data. In the case of parameters, the software design support system 101 determines whether or not there is a change in the setting value. In the case of teacher data, the software design support system 101 determines whether the teacher data itself has been changed.
[0098] The software design support system 101 counts the number of times each change is made among the number of times the corresponding flow is executed.
[0099] Since parameters can be changed automatically according to a certain range of values without human intervention, weights are set in advance for each change item for the number of changes counted. For example, since labeling of training data needs to be done manually, the weights may be set to three times that of the parameters. As a more specific example, the weights may be applied to input data:parameters:training data in a ratio of 2:1:3.
[0100] The software design support system 101 multiplies the counted number of changes in the input data, parameters, and teacher data by the weight of each item. Then, the multiplied values are added together (added value) to calculate the degree of necessity. The division unit extraction unit 103 uses the added value as the degree of necessity for human intervention.
[0101] The software design support system 101 may output the degree of necessity together with the API design proposal. In addition, based on the degree of necessity, it may determine whether or not to set the start point of the midway execution flow as a division point. Only when the obtained degree of necessity is greater than a preset threshold, the corresponding flow may be identified as a division point, since the degree of human intervention is high.
[0102] In this way, by calculating the degree of necessity for human intervention, it is possible to output the divided flows with the highest degree of necessity as API design proposals. When there are multiple candidates for divided flows, the person in charge of API design who uses the output results can determine the API unit by looking at the degree of necessity. EXAMPLES
[0103] In the first embodiment, a method for dividing a pipeline before a node that requires human intervention and making it into API units is described. Next, a method for estimating a combination of APIs to be executed consecutively when a specified API unit is used with human intervention is described.
[0104] When the learning or inference pipeline is divided into API units, the software design support system 101 presents combinations of APIs that require a high degree of human intervention, particularly for APIs that require human intervention to tune after inference and then execute the learning API again.
[0105] In this embodiment, a method is shown in which an API combination for tuning is estimated from a data scientist's execution record, and a usage plan is presented together with an API design plan.
[0106] Fig. 12 is a flowchart of the process of estimating a combination of APIs to be executed consecutively. The module use flow estimation unit 104 extracts all flow information of the flows identified as API units by the division point estimation in step S703 from the flow extraction information shown in Fig. 9 (S1201). The module use flow estimation unit 104 identifies flows whose corresponding pipeline is "Learning" from among the extracted flows (S1202).
[0107] The module usage flow estimation unit 104 arranges all the flows extracted in step S1201 in chronological order, and extracts all combinations in which the corresponding pipeline of the flow that is to be executed before the flow identified in step S1202 is a flow that corresponds to "inference" (S1203). For example, if the flow that is part of the learning pipeline identified in step S1202 and is an API unit is composed of nodes with node IDs F1, F2, and F3, and a flow of an inference pipeline with node IDs F1, F2, F4, and F7 is executed as the previous execution order, the module usage flow estimation unit 104 extracts the flow of F1, F2, F4, and F7 (referred to as inference flow 1) and the flow of node IDs F1, F2, and F3 (referred to as learning flow 1) as a combination.
[0108] The module usage flow estimation unit 104 counts the number of executions of the same inference flow and learning flow combination among all the extracted combinations (S1204). The module usage flow estimation unit 104 determines whether the number of executions of the same inference flow and learning flow combination is equal to or greater than a preset threshold (S1205). If the number of executions is equal to or greater than the preset threshold (S1205: Yes), the combination of the same inference flow and learning flow is identified as a continuous execution flow in which re-learning is performed after inference, and the process proceeds to step S1206. If the number of executions is not equal to or greater than the preset threshold (S1205: No), the process proceeds to step S1209.
[0109] In step S1206, the module usage flow estimation unit 104 acquires the record of the head node of the learning flow of each execution from the execution record management table 105a for the identified continuous execution flow.
[0110] The module usage flow estimation unit 104 compares the input data, parameters, and teacher data of the acquired record with the input data, parameters, and teacher data of the previous and next executions to identify items that have changed between each execution, i.e., changed items (S1207).
[0111] The module use flow estimation unit 104 counts the number of changes for each of the identified change items, and multiplies the counted number of changes for each of the input data, parameters, and teacher data by the weight of each item. The module use flow estimation unit 104 calculates the sum of the multiplied values as the degree of necessity (S1208).
[0112] The module usage flow estimation unit 104 determines whether or not the processes after counting the number of executions have been executed for all the flow combinations extracted in step S1203 (S1209). If they have been executed (S1209: Yes), the process shown in Fig. 12 ends. If the processes after counting the number of executions have not been executed for all the flow combinations (S1209: No), the process returns to step S1204, and the process is repeated for the next flow combination.
[0113] The module usage flow estimation unit 104 then outputs the identified combination of the consecutively executed inference flow and learning flow as a proposal for API design from a tuning perspective, together with the degree of necessity for human intervention.
[0114] As described above, for modules that require human intervention after inference to be tuned and the learning module to be executed again, by presenting the module combinations along with the degree of necessity for human intervention, the person in charge of module design can determine the degree of necessity on a combination basis and design an appropriate module unit.
[0115] As described above, the software design support system supports the design of a software program for a computer system consisting of one or more modules, based on a data analysis program including a pipeline consisting of multiple processing nodes for data analysis, and includes an execution record acquisition unit that acquires an execution record including an execution time related to the time when a processing node was executed in the data analysis and an execution condition indicating the data used or acquired when the processing node was executed, an execution record analysis unit that identifies a series of processing nodes executed continuously in the data analysis as a continuous execution flow based on the execution time and the execution conditions, and a division unit extraction unit that determines a division position at which to divide modules in the software program using the start point of the intermediate execution flow in the pipeline as a candidate.
[0116] The software design support method supports the design of a software program for a computer system consisting of one or more modules, based on a data analysis program including a pipeline consisting of a plurality of processing nodes for data analysis, in which an execution record acquisition unit acquires an execution record including an execution time relating to the time when a processing node was executed in the data analysis and an execution condition indicating the data used or acquired when the processing node was executed, and an execution record analysis unit identifies a series of processing nodes executed consecutively in the data analysis as a continuous execution flow based on the execution time and the execution conditions, and a division unit extraction unit determines a division position at which to divide modules in the software program using a starting point of the intermediate execution flow in the pipeline as a candidate.
[0117] According to the above, it is possible to easily identify appropriate division positions for a software program of a computer system based on the execution state of a processing node performed by a data scientist in data analysis, thereby facilitating the task of constructing a highly convenient software program for a computer system that incorporates a data analysis program.
[0118] The system further includes an execution record management unit that records, as execution times of a processing node, a start time when the processing of the processing node is started, an end time when the processing of the processing node is ended, input data that is data input to the processing node, and output data that is data output from the processing node, and the execution record analysis unit identifies continuous execution flows by examining the continuity between the end time of a processing node and the start times of other processing nodes, and the continuity between the output data of a processing node and the input data of other processing nodes. This makes it possible to identify continuous execution flows based on the temporal continuity of the processing nodes and the continuity of the data used by each processing node.
[0119] The data analysis program further includes a program information acquisition unit for acquiring program information including information indicating the processing nodes constituting a pipeline included in the data analysis program and their order, and information including, for each processing node constituting the pipeline, an input data name which is the name of data input to the processing node and an output data name which is the name of data output from the processing node, and an execution record management unit for recording, as execution times of the processing nodes, a start time which is the time when the processing of the processing node is started, an end time which is the time when the processing of the processing node is ended, the input data which is the data input to the processing node, and the output data which is the data output from the processing node, and the division unit extraction unit determines whether a continuous execution flow is a subset of the pipeline based on the input data and output data in the execution conditions of the processing nodes included in the continuous execution flow and the input data names and output data names included in the program information of the processing nodes constituting the pipeline. This makes it possible to determine whether a certain continuous execution flow is a part included in a hypline based on the input data and output data.
[0120] The system further includes an execution record management unit that records, as the execution times of a processing node, a start time when the processing of the processing node is started, an end time when the processing of the processing node is ended, input data that is data input to the processing node, and output data that is data output from the processing node, and the execution record analysis unit compares the output data of the processing node executed earlier and the input data of the processing node executed later of two processing nodes that are specified to have been executed before and after each other based on their execution times, thereby determining whether or not the two processing nodes are included in a series of processing nodes executed consecutively. This makes it possible to determine whether or not there is continuity between the processing node executed earlier and the processing node executed later based on the commonality of input data between these processing nodes.
[0121] The division unit extraction unit determines whether or not to set the start point of the midway execution flow as a division position based on the number of times the midway execution flow has been executed. The division unit extraction unit determines whether or not to set the start point of the midway execution flow as a division position based on the fact that the midway execution flow is executed with changed input data. The division unit extraction unit determines whether or not to set the start point of the midway execution flow as a division position based on the fact that the midway execution flow is executed with changed teacher data. The division unit extraction unit determines whether or not to set the start point of the midway execution flow as a division position based on the fact that the midway execution flow is executed with changed parameters. In this way, it is possible to determine whether or not to set the start point of the midway execution flow as a division position based on a record that is likely to be due to human intervention.
[0122] The system further includes a module usage flow estimation unit that calculates a value indicating the necessity of human intervention based on a combination of an inference flow and a learning flow following the inference flow among the continuous execution flows, and outputs the combination and the value indicating the necessity. This makes it possible to determine the necessity of human intervention when the inference and learning flows are combined, and to divide modules at points where human intervention is required.
[0123] A module is a unit included in a pipeline and provided as an application programming interface, which allows you to appropriately determine where to divide the API. [Explanation of symbols]
[0124] 101... software design support system, 102... execution record analysis unit, 103... division unit extraction unit, 104... module usage flow estimation unit, 105... execution record management unit, 105a... execution record management table, 106... program information management unit, 106a... function information management table, 106b... pipeline information management table, 107... execution record acquisition unit, 108... program information acquisition unit, 109... interface, 110... pipeline, 120... storage device, 130... client, 200... server, 201... processor, 202... memory, 203... secondary storage device, 204... input / output interface, 205... network interface
Claims
1. A software design support system that supports the design of a software program for a computer system that is composed of one or more modules, based on a data analysis program including a pipeline composed of a plurality of processing nodes for data analysis, comprising: an execution record acquisition unit that acquires an execution record including an execution time related to a time when the processing node was executed in the data analysis and an execution condition indicating data used or acquired when the processing node was executed; an execution record analysis unit that identifies a series of processing nodes that are executed consecutively in the data analysis as a consecutive execution flow based on the execution time and the execution condition; a division unit extraction unit which, if the successive execution flow is a subset of the pipeline, determines the successive execution flow as an intermediate execution flow, and determines division positions at which to divide modules in the software program using starting points of the intermediate execution flows in the pipeline as candidates; A software design support system having:
2. an execution record management unit that records, as the execution times of the processing nodes, a start time that is a time when the processing of the processing nodes is started, an end time that is a time when the processing of the processing nodes is ended, input data that is data input to the processing nodes, and output data that is data output from the processing nodes; the execution record analysis unit identifies the continuous execution flow by examining the continuity between the end time of a processing node and the start time of another processing node, and the continuity between the output data of a processing node and the input data of another processing node.
2. The software design support system according to claim 1.
3. a program information acquisition unit that acquires, for the data analysis program, program information including information indicating processing nodes constituting a pipeline included in the data analysis program and their order, and information including, for each processing node constituting the pipeline, an input data name that is the name of data input to the processing node and an output data name that is the name of data output from the processing node; an execution record management unit that records, as the execution times of the processing nodes, a start time that is a time when the processing of the processing nodes is started, an end time that is a time when the processing of the processing nodes is ended, input data that is data input to the processing nodes, and output data that is data output from the processing nodes; the division unit extraction unit determines whether the continuous execution flow is a subset of the pipeline based on input data and output data in the execution conditions of the processing nodes included in the continuous execution flow and input data names and output data names included in program information of the processing nodes that constitute the pipeline; 2. The software design support system according to claim 1.
4. an execution record management unit that records, as the execution times of the processing nodes, a start time that is a time when the processing of the processing nodes is started, an end time that is a time when the processing of the processing nodes is ended, input data that is data input to the processing nodes, and output data that is data output from the processing nodes; the execution record analysis unit compares output data of the processing node executed earlier of two processing nodes specified to have been executed before and after in time based on the execution times with input data of the processing node executed later, thereby determining whether or not the two processing nodes are to be included in the series of processing nodes executed consecutively; 2. The software design support system according to claim 1.
5. the division unit extraction unit determines whether or not to set the start point of the midway execution flow as the division position based on the number of times the midway execution flow has been executed.
2. The software design support system according to claim 1.
6. the division unit extraction unit determines whether or not to set the start point of the midway execution flow as the division position based on whether the midway execution flow is executed with changed input data; 2. The software design support system according to claim 1.
7. the division unit extraction unit determines whether or not to set the start point of the intermediate execution flow as the division position based on the fact that the intermediate execution flow is executed with changed teacher data; 2. The software design support system according to claim 1.
8. the division unit extraction unit determines whether or not to set the start point of the midway execution flow as the division position based on whether the midway execution flow is executed with a changed parameter; 2. The software design support system according to claim 1.
9. a module use flow estimation unit that calculates a value indicating a degree of necessity for human intervention based on a combination of an inference flow and a learning flow following the inference flow among the consecutive execution flows, and outputs the combination and the value indicating the degree of necessity; The software design support system of claim 1 further comprising:
10. The module is a unit included in the pipeline and provided as an application programming interface. The software design support system according to any one of claims 1 to 9.
11. A software design support method for supporting the design of a software program for a computer system composed of one or more modules, based on a data analysis program including a pipeline composed of a plurality of processing nodes for data analysis, comprising: an execution record acquisition unit acquires an execution record including an execution time relating to a time when the processing node was executed in the data analysis and an execution condition indicating data used or acquired when the processing node was executed; an execution record analysis unit identifies a series of processing nodes that are executed consecutively in the data analysis based on the execution times and the execution conditions as a consecutive execution flow; a division unit extraction unit, if the continuous execution flow is a subset of the pipeline, defines the continuous execution flow as an intermediate execution flow, and determines a division position for dividing a module in the software program by using a start point of the intermediate execution flow in the pipeline as a candidate; Software design support methods.
Citation Information
Patent Citations
Pipeline split position deciding method and pipeline split position deciding program
JP2021192189A
