A cost dynamic accounting system for the whole process of software development

By constructing a software development event sequence and task dependency graph, and using an improved Hawkes model to analyze the triggering relationship and propagation path of requirement change events, the problem of difficulty in identifying rework costs due to requirement changes in existing technologies is solved, and dynamic accounting and real-time updating of software development costs are realized.

CN122736710BActive Publication Date: 2026-11-24XIAMEN LAZY TREASURE BOX INFORMATION TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611149200.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-24
Estimated Expiration
2046-07-31

AI Technical Summary

Technical Problem

Existing software development cost accounting technologies struggle to accurately identify rework costs caused by requirement changes, cannot update cost accounting results in real time, and cannot distinguish between normal development activities and rework costs caused by requirement changes.

Method used

We construct software development event sequences and task dependency graphs, and use an improved Hawkes model to analyze the triggering relationships and propagation paths of requirement change events. By combining actual trigger analysis and counterfactual trigger analysis, we separate the direct and indirect propagation effects of requirement change events, and achieve dynamic cost accounting.

Benefits of technology

It enables accurate identification of the scope of impact of requirement changes, precise calculation of normal development costs and rework costs due to requirement changes, and improves the accuracy and real-time nature of software development cost analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122736710B_ABST
    Figure CN122736710B_ABST
Patent Text Reader

Abstract

This invention discloses a dynamic cost accounting system for the entire software development process, belonging to the field of cost accounting technology. It includes: a development event generation module for generating software development event sequences; a task dependency graph construction module for constructing software development task dependency graphs; a time-delay trigger construction module for generating time-delay trigger relationships; an actual trigger analysis module and a counterfactual trigger analysis module for calculating actual trigger strength and counterfactual trigger strength; a rework path generation module for determining the propagation path of requirement change rework; a cost conservation allocation module for dividing normal development costs and requirement change rework costs; and a dynamic accounting module for generating and updating the dynamic cost accounting results for the entire software development process. This invention achieves dynamic cost accounting for the entire software development process and can be widely applied in software development management scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cost accounting technology, and in particular to a dynamic cost accounting system for the entire software development process. Background Technology

[0002] Existing software development cost accounting techniques primarily use project management tools to record data such as development tasks, personnel input, code submissions, and testing workload, and then calculate labor costs, resource consumption costs, and maintenance costs according to development stages or task milestones. Some cost management methods establish software lifecycle models to aggregate costs incurred in stages such as requirements analysis, program development, and testing deployment, enabling cost estimation and statistical analysis throughout the software development process.

[0003] Current technologies for cost management throughout the software development process typically aggregate costs using stage-based or task-based statistics, making it difficult to correlate execution dependencies between software development events. When requirement changes occur, the subsequent impacts, such as code adjustments, build changes, test rework, and version redeployment, require manual analysis. This makes it difficult to accurately identify the propagation path of requirement changes along the development process, resulting in rework costs that are difficult to calculate independently.

[0004] Existing cost accounting methods typically allocate costs based on time sequence or task relationships, failing to incorporate software development task dependency graphs to analyze the triggering relationships between events and thus unable to distinguish between costs incurred from normal development activities and rework costs caused by requirement changes. Furthermore, traditional cost statistics methods require manual reorganization of task relationships and cost records after new development events occur, failing to dynamically update cost accounting results based on new events, resulting in insufficient real-time cost data.

[0005] Therefore, how to provide a dynamic cost accounting system for the entire software development process is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0006] One objective of this invention is to propose a dynamic cost accounting system for the entire software development process. This invention utilizes software engineering lifecycle management technology, multi-source data fusion technology, and an improved Hawkes model to analyze the dependencies between software development events and the rework propagation process, construct actual triggering branches and counterfactual triggering branches, identify rework propagation paths caused by requirement changes, and achieve dynamic separation of normal development costs and requirement change rework costs.

[0007] A dynamic cost accounting system for the entire software development process, according to an embodiment of the present invention, includes:

[0008] The development event generation module is used to associate software development process records with resource cost records, arrange them according to the time of occurrence, and generate a software development event sequence that includes the development event cost;

[0009] The task dependency graph construction module is used to construct a software development task dependency graph based on the object associations and execution dependencies between software development events;

[0010] The time-delay triggering module is used to limit the event triggering direction based on the software development task dependency graph, determine the rework propagation time delay based on the occurrence interval of related development events, and generate time-delay triggering relationships.

[0011] The actual trigger analysis module is used to input the software development event sequence, software development task dependency graph and time delay trigger relationship into the improved Hawkes model, and calculate the actual trigger intensity of requirement change events on subsequent development events through actual development branches;

[0012] The counterfactual trigger analysis module is used to identify requirement change events as target requirement change events, suppress the direct triggering contribution of the target requirement change event through the counterfactual baseline branch, recursively suppress the indirect propagation contribution along the software development task dependency graph, and generate counterfactual trigger strength.

[0013] The rework path generation module is used to determine the rework contribution of the target requirement change event to subsequent development events based on the actual trigger intensity and the counterfactual trigger intensity. It connects subsequent development events whose rework contribution reaches a preset threshold along the software development task dependency graph to generate the requirement change rework propagation path.

[0014] The cost conservation allocation module is used to allocate the development event cost of the subsequent development event based on the rework contribution when the same subsequent development event is associated with two or more requirement change events, and to generate the development event cost.

[0015] The dynamic accounting module is used to generate dynamic accounting results for the entire software development process cost and to update the dynamic accounting results for the entire software development process cost based on new software development events.

[0016] Optionally, the development event generation module specifically includes:

[0017] Read the development object identifier from the development process record, bind the resource cost record with the record with the same identifier, and extract and sort the bound records according to the time of occurrence;

[0018] Encapsulate the record types as requirement change, development task, code submission, build, test, defect handling, and version deployment events;

[0019] Write the record type, occurrence time, development object identifier, processing scale field and resource cost into the event type, time, object, tag and cost respectively, and generate a software development event sequence in chronological order.

[0020] Optionally, the process of constructing the software development task dependency graph in the task dependency graph construction module includes:

[0021] Map the software development event sequence, including requirement changes, development tasks, code submissions, builds, tests, defect handling, and version deployment, to event nodes.

[0022] Based on the development object identifier, match the development task event that receives the requirement change event, the code submission event belonging to the development task event, the build event triggered by the code submission event, the test event executed based on the build event, the defect handling event generated by the test event, and the version deployment event corresponding to the defect handling event;

[0023] Based on the execution dependency direction of each matching event, directed edges are established between the corresponding event nodes to generate a software development task dependency graph.

[0024] Optionally, the process of generating time-delay triggering relationships in the time-delay triggering construction module includes:

[0025] Group related development events according to the direction of the directed edges in the software development task dependency graph;

[0026] Calculate the occurrence interval between upstream and downstream development events in each group, remove occurrence intervals that exceed the preset time range, select the median of the retained occurrence intervals as the rework propagation delay in the corresponding directed edge direction, and generate the delay triggering relationship.

[0027] Optionally, the improved Hawkes model in the actual trigger analysis module performs the following operations:

[0028] The event triggering effect of upstream development events on downstream development events is divided into the direct triggering effect of upstream development events and the indirect propagation effect of upstream development events received through preceding directed edges.

[0029] The direct triggering effect and the indirect propagation effect are respectively delayed by the rework propagation delay of the corresponding directed edge. When the occurrence interval of the associated development event is less than the rework propagation delay, the corresponding event triggering effect is set to zero. When the occurrence interval reaches the rework propagation delay, the event triggering effect is first enhanced to the peak and then gradually weakened according to the effective propagation duration after deducting the rework propagation delay.

[0030] The delayed direct triggering and indirect propagation effects are passed to downstream development events, and the indirect propagation effects received by downstream development events are recursively passed along subsequent directed edges.

[0031] When the same downstream development event receives event triggering actions from two or more directed edges, they are synthesized according to the proportion of each directed edge's event triggering action to the total event triggering action, generating a time-delay triggering relationship that is jointly constrained by the direction of the directed edge, the rework propagation delay, and the propagation path.

[0032] Optionally, the calculation process of the actual trigger strength in the actual trigger analysis module includes:

[0033] In the actual development branch, retain all software development events in the software development event sequence and their corresponding time-delay triggering relationships;

[0034] Read the event tags of requirement change events, code commit events, build events, and test events respectively, normalize the event tags of the same event type, and generate the event tag weights of the corresponding software development events;

[0035] The direct triggering effect of the current directed edge is corrected by using the event tag weight of the current upstream development event, and the indirect propagation effect passed through the previous directed edge is corrected by using the event tag weight of the current upstream development event. The corrected indirect propagation effect is then passed to the downstream development event along the current directed edge.

[0036] The actual trigger strength of a downstream development event is generated by summarizing the corrected direct triggering effect and the corrected indirect propagation effect received by the same downstream development event according to the composite weight.

[0037] Optionally, the process of generating the counterfactual trigger strength in the counterfactual trigger analysis module includes:

[0038] Select requirement change events from the software development event sequence as target requirement change events, and configure target trigger source identifiers for the direct triggering effect and the indirect propagation effect transmitted along the software development task dependency graph generated by the target requirement change events;

[0039] In the counterfactual baseline branch, the time-delay triggering relationship, event tag weights, and improved Hawkes model parameters remain unchanged, while the direct triggering effect carrying the target triggering source identifier is set to zero.

[0040] Traverse the downstream development events of the target requirement change event along the directed edge direction of the software development task dependency graph, set the indirect propagation effect carrying the target trigger source identifier to zero, pass the suppression mark to the subsequent directed edge, and do not repeat the traversal of the directed edge that has completed the suppression mark propagation.

[0041] The direct triggering effect and indirect propagation effect without the target triggering source identifier are converted into triggering intensity components at the same evaluation time. The triggering intensity components corresponding to the same downstream development event are summed to generate the counterfactual triggering intensity after masking the direct triggering contribution and indirect propagation contribution of the target requirement change event.

[0042] Optionally, the process of generating the rework path generation module for the rework propagation path of requirement changes includes:

[0043] By comparing the actual trigger intensity with the counterfactual trigger intensity of the same subsequent development event, the trigger increment caused by the target requirement change event is extracted, and the trigger increment is mapped to the corresponding event node to generate rework contribution.

[0044] Event nodes whose rework contribution reaches a preset threshold are identified as candidate rework nodes, and the candidate rework nodes are arranged according to the topological hierarchy in the software development task dependency graph.

[0045] Starting with the target requirement change event, traverse the candidate rework nodes layer by layer along the directed edges carrying the target trigger source identifier, and verify the trigger source, rework propagation delay and execution dependency relationship between adjacent candidate rework nodes;

[0046] If adjacent candidate rework nodes are continuously propagated through the same target trigger source, and the event time of the downstream candidate rework node satisfies the corresponding rework propagation delay, the corresponding directed edge is retained; if the candidate rework node does not meet the above conditions, the corresponding propagation branch is terminated.

[0047] Connect the retained candidate rework nodes and directed edges according to the execution dependency direction to generate the rework propagation path of the target requirement change event.

[0048] Optionally, the process of generating development event costs in the cost conservation allocation module includes:

[0049] Filter subsequent development events that are simultaneously located in two or more requirement change rework propagation paths according to the event identifier, and bind the rework contribution of each requirement change event to the subsequent development event.

[0050] The rework contribution of the same subsequent development event is subject to a sum constraint. If the sum of the rework contributions is not greater than one, the rework contribution is maintained. If the sum of the rework contributions is greater than one, the rework contribution is normalized according to the sum to generate the total rework percentage and the weight of requirement change allocation.

[0051] The total rework cost is allocated from the development event cost of subsequent development events according to the proportion of total rework, and the development event cost that is not allocated is determined as normal development cost;

[0052] The total rework cost is allocated to the corresponding requirement change events according to the requirement change allocation weight, generating the requirement change rework cost for each requirement change event. The allocation difference is merged into the requirement change rework cost with the largest requirement change allocation weight, so that the sum of the normal development cost and the requirement change rework cost equals the development event cost.

[0053] Optionally, the dynamic accounting module specifically includes:

[0054] By summarizing normal development costs and rework costs due to requirement changes according to the target audience, development tasks, development stages, and software versions, dynamic cost accounting results for the entire software development process are generated.

[0055] Receive new software development events, append them to the software development event sequence, and update the software development task dependency graph based on the event objects and execution dependencies;

[0056] Based on the updated software development event sequence and software development task dependency graph, the actual trigger strength, counterfactual trigger strength, rework contribution, requirement change rework propagation path and cost allocation results of related events are recalculated, and the dynamic cost accounting results of the entire software development process are updated.

[0057] The beneficial effects of this invention are:

[0058] (1) This invention constructs a software development event sequence and a software development task dependency graph, and uses an improved Hawkes model to analyze the triggering relationship and propagation path of requirement change events in the software development process, so as to accurately identify the scope of impact of requirement changes and avoid relying on manual experience to judge the scope of rework impact.

[0059] (2) This invention separates the direct and indirect impacts of requirement change events by combining actual trigger analysis and counterfactual trigger analysis, and divides the development event costs by combining the rework contribution, so as to achieve accurate accounting of normal development costs and requirement change rework costs and improve the accuracy of software development cost analysis.

[0060] (3) This invention achieves rolling calculation of the software process cost under new development events by dynamically updating the software development event sequence, software development task dependency graph and cost accounting results, thereby improving the real-time performance of cost management and providing data support for resource scheduling and cost control in the software development process. Attached Figure Description

[0061] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0062] Figure 1This is a module connection diagram of a dynamic cost accounting system for the entire software development process proposed in this invention.

[0063] Figure 2 This invention presents an improved Hawkes model time-delay triggering analysis structure diagram for a dynamic cost accounting system for the entire software development process.

[0064] Figure 3 This invention presents a software development event dependency graph for a dynamic cost accounting system covering the entire software development process. Detailed Implementation

[0065] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0066] Example 1: Reference Figures 1-2 A dynamic cost accounting system for the entire software development process, comprising:

[0067] The development event generation module is used to associate software development process records with resource cost records, arrange them according to the time of occurrence, and generate a software development event sequence that includes the development event cost;

[0068] The task dependency graph construction module is used to construct a software development task dependency graph based on the object associations and execution dependencies between software development events;

[0069] The time-delay triggering module is used to limit the event triggering direction based on the software development task dependency graph, determine the rework propagation time delay based on the occurrence interval of related development events, and generate time-delay triggering relationships.

[0070] The actual trigger analysis module is used to input the software development event sequence, software development task dependency graph and time delay trigger relationship into the improved Hawkes model, and calculate the actual trigger intensity of requirement change events on subsequent development events through actual development branches;

[0071] The counterfactual trigger analysis module is used to identify requirement change events as target requirement change events, suppress the direct triggering contribution of the target requirement change event through the counterfactual baseline branch, recursively suppress the indirect propagation contribution along the software development task dependency graph, and generate counterfactual trigger strength.

[0072] The rework path generation module is used to determine the rework contribution of the target requirement change event to subsequent development events based on the actual trigger intensity and the counterfactual trigger intensity. It connects subsequent development events whose rework contribution reaches a preset threshold along the software development task dependency graph to generate the requirement change rework propagation path.

[0073] The cost conservation allocation module is used to allocate the development event cost of the subsequent development event based on the rework contribution when the same subsequent development event is associated with two or more requirement change events, and to generate the development event cost.

[0074] The dynamic accounting module is used to generate dynamic accounting results for the entire software development process cost and to update the dynamic accounting results for the entire software development process cost based on new software development events.

[0075] In this embodiment, the event generation module specifically includes:

[0076] Read the development object identifier from the development process record, bind the resource cost record with the record with the same identifier, and extract and sort the bound records according to the time of occurrence;

[0077] The development process records originate from requirement change records, development task records, code submission records, build records, test records, defect handling records, and version deployment records generated throughout the software development process. The development object identifier is a unique identifier used to distinguish software development objects, corresponding to requirement identifiers, task identifiers, code submission identifiers, build identifiers, test identifiers, defect identifiers, and version identifiers according to record type. Resource cost records carry the resource user object identifier, resource usage start time, resource usage end time, resource usage amount, and unit resource cost. Resource cost records whose resource user object identifier matches the development object identifier and whose resource usage period covers the occurrence time of the corresponding development process record are bound to the corresponding development process record. When a resource cost record is associated with two or more development process records, the resource cost is allocated according to the proportion of the resource usage duration corresponding to each development process record to the total associated resource usage duration.

[0078] The occurrence time is determined based on the record type as the time of requirement change submission, development task status change, code submission, build start, test start, defect handling status change, and version deployment start. All bound records are uniformly converted to the same time base and arranged from earliest to latest according to their occurrence time. Records with the same occurrence time are arranged in the order of requirement change, development task, code submission, build, test, defect handling, and version deployment. Duplicate records with the same development object identifier, occurrence time, and record type are retained as one record.

[0079] Records are encapsulated into requirement change, development task, code submission, build, test, defect handling, and version deployment events according to their type. The record source field and business operation field of each bound record are read, and the event type is determined according to the preset record type mapping relationship. Records in which the requirement content is modified are encapsulated as requirement change events, records in which development tasks are created, assigned, reopened, and completed are encapsulated as development task events, records in which code is written to the version repository are encapsulated as code submission events, records in which source code is compiled, packaged, and artifacts are generated are encapsulated as build events, records in which test cases are executed are encapsulated as test events, records in which defects are created, fixed, reopened, and closed are encapsulated as defect handling events, and records in which software versions are released, re-released, and rolled back are encapsulated as version deployment events.

[0080] The record type, occurrence time, development object identifier, processing scale field, and resource cost are written into the event type, time, object, tag, and cost, respectively, to generate a software development event sequence in chronological order. The event tag is used to characterize the processing scale of the corresponding software development event. Among them, the processing scale field of the requirement change event is the amount of change content and the number of affected development objects; the processing scale field of the development task event is the task workload and task duration; the processing scale field of the code commit event is the amount of code changes and the number of changed files; the processing scale field of the build event is the build duration and computing resource usage; the processing scale field of the test event is the number of test cases and test duration; the processing scale field of the defect handling event is the defect handling duration and the amount of associated code changes; and the processing scale field of the version deployment event is the deployment duration and deployment resource usage. The personnel resource cost, computing resource cost, test resource cost, and deployment resource cost bound to the same development process record are summed to obtain the development event cost of the corresponding software development event. The software development events with completed fields are arranged according to the event time, and the software development events with the same event time are written into the software development event sequence in order of event type.

[0081] In this embodiment, the process of constructing the software development task dependency graph in the task dependency graph construction module includes:

[0082] The software development event sequence includes requirement changes, development tasks, code submissions, builds, tests, defect handling, and version deployment events, which are mapped to event nodes. Specifically, a unique event node is created for each software development event, and the event type, event time, event object, event flag, and development event cost of the corresponding software development event are written into the node attributes of the event node. Different event nodes are distinguished by the development object identifier corresponding to the event object.

[0083] Based on the development object identifier, match the development task event that accepts the requirement change event, the code submission event belonging to the development task event, the build event triggered by the code submission event, the test event executed based on the build event, the defect handling event generated by the test event, and the version deployment event corresponding to the defect handling event; read the development object identifier and associated object identifier of adjacent type event nodes, and determine the event nodes with the same identifier and execution acceptance relationship as the matching event nodes;

[0084] Based on the execution dependency direction of each matching event, directed edges are established between the corresponding event nodes to generate a software development task dependency graph. Directed edges are established according to the direction from requirement change event to development task event, development task event to code submission event, code submission event to build event, build event to test event, test event to defect handling event, and defect handling event to version deployment event. All event nodes and directed edges are combined to form a software development task dependency graph.

[0085] In this embodiment, the process of generating time-delay triggering relationships in the time-delay triggering construction module includes:

[0086] Group related development events according to the direction of the directed edges in the software development task dependency graph; read the upstream event type and downstream event type connected by each directed edge, and group related development events with the same upstream event type, downstream event type and directed edge direction into the same event group, so that each event group corresponds to a fixed development activity transmission relationship.

[0087] The occurrence interval between upstream and downstream development events in each group is calculated. Intervals exceeding a preset time range are eliminated, and the median of the retained occurrence intervals is selected as the rework propagation delay for the corresponding directed edge direction, generating a delay triggering relationship. The rework propagation delay characterizes the typical response time required for a downstream development event to be triggered after the occurrence of a corresponding upstream development event. Selecting the median reduces the impact of excessively long or short occurrence intervals on the rework propagation delay. Each directed edge direction is bound to its corresponding rework propagation delay, forming a correspondence between upstream event type, downstream event type, and rework propagation delay. When the occurrence interval between an upstream and downstream development event reaches the corresponding rework propagation delay, the event triggering function for that directed edge direction is activated.

[0088] In this embodiment, the improved Hawkes model in the actual trigger analysis module performs the following operations:

[0089] The event triggering effect of upstream development events on downstream development events is divided into the direct triggering effect of upstream development events and the indirect propagation effect of upstream development events received through preceding directed edges.

[0090] Event triggering actions that originate from the current upstream development event and are not transmitted through a preceding directed edge are defined as direct triggering actions; event triggering actions that are transmitted from a preceding development event to the current upstream development event along one or more preceding directed edges are defined as indirect propagation actions; direct triggering actions and indirect propagation actions are recorded separately according to the source of the event triggering action to prevent the same event triggering action from being repeatedly classified.

[0091] The direct triggering effect and the indirect propagation effect are respectively delayed by the rework propagation delay of the corresponding directed edge. When the occurrence interval of the associated development event is less than the rework propagation delay, the corresponding event triggering effect is set to zero. When the occurrence interval reaches the rework propagation delay, the event triggering effect is first enhanced to the peak and then gradually weakened according to the effective propagation duration after deducting the rework propagation delay.

[0092] Direct triggering uses the event time of the current upstream development event as the delayed starting point, while indirect propagation uses the time when the indirect propagation reaches the current upstream development event as the delayed starting point. The rework propagation delay corresponding to the current directed edge is superimposed to obtain the activation time of the corresponding event triggering action. The historical occurrence interval corresponding to the same directed edge is subtracted from the rework propagation delay, and the center of the effective propagation duration interval with the highest frequency of occurrence is selected as the peak response duration. When the effective propagation duration is less than the peak response duration, the event triggering action increases proportionally to the effective propagation duration. When the effective propagation duration reaches the peak response duration, the event triggering action reaches its peak. After the effective propagation duration exceeds the peak response duration, the peak value is exponentially decayed according to the decay coefficient corresponding to the current directed edge and the duration exceeding the peak response duration.

[0093] The delayed direct triggering effect and indirect propagation effect are passed to downstream development events, and the indirect propagation effect received by the downstream development event is recursively passed along subsequent directed edges. Specifically, the downstream development event of the current directed edge is taken as the upstream development event of the next transmission. The subsequent directed edge connected to the upstream development event of the next transmission is read. The delay, activation, enhancement and attenuation processing are re-executed according to the rework propagation delay corresponding to the subsequent directed edge. The processed event triggering effect is passed to the next downstream development event. The above processing is repeated until the current development event has no subsequent directed edge, the event triggering effect is lower than the preset propagation threshold, or the current triggering source has passed through the corresponding directed edge.

[0094] When a downstream development event receives event triggers from two or more directed edges, they are synthesized according to the proportion of each directed edge's event trigger to the total event triggers, generating a time-delay trigger relationship constrained by the direction of the directed edges, the rework propagation delay, and the propagation path. Specifically, the event triggers received by the same downstream development event from each directed edge are summarized, and the proportion of each directed edge's event trigger to the total event triggers is calculated to obtain the synthesis weight of each directed edge. The event trigger of each directed edge is multiplied by its corresponding synthesis weight, and the results are summed to obtain the synthesized event trigger of the downstream development event. The downstream development event, the event trigger source, the rework propagation delay, and the synthesized event trigger are then bound together to form a time-delay trigger relationship.

[0095] In this embodiment, the calculation process of the actual trigger strength in the actual trigger analysis module includes:

[0096] In the actual development branch, retain all software development events in the software development event sequence and their corresponding time-delay triggering relationships;

[0097] The system reads event tags from requirement change events, code commit events, build events, and test events respectively. Event tags of the same event type are normalized to generate event tag weights for corresponding software development events. Specifically, software development events are aggregated according to event type, and the maximum and minimum values ​​of each event tag field under the same event type are determined, mapping each event tag field to a unified numerical range. When a software development event contains one event tag field, the mapping result is determined as the event tag weight. When a software development event contains two or more event tag fields, the average value of the mapping results for each event tag field is calculated, and the average value is determined as the event tag weight, so that the event tag weight represents the processing scale of the corresponding software development event.

[0098] The direct triggering effect of the current directed edge is corrected by using the event tag weight of the current upstream development event, and the indirect propagation effect passed through the previous directed edge is corrected by using the event tag weight of the current upstream development event. The corrected indirect propagation effect is then passed to the downstream development event along the current directed edge.

[0099] Specifically, the direct triggering effect of the current directed edge is multiplied by the event label weight of the current upstream development event to obtain the corrected direct triggering effect, which makes the processing scale of the current upstream development event affect the current directed edge; the indirect propagation effect passed through the preceding directed edge is multiplied by the event label weight of the current upstream development event to obtain the corrected indirect propagation effect, which makes the processing scale of the current upstream development event adjust the preceding propagation effect again; the corrected indirect propagation effect is used as the transmission input of the current directed edge and is transmitted to the downstream development event according to the rework propagation delay and decay process;

[0100] The actual triggering intensity of a downstream development event is generated by summing the corrected direct triggering effect and corrected indirect propagation effect received by the same downstream development event according to the composite weight. For each directed edge connecting the same downstream development event, the corresponding corrected direct triggering effect and corrected indirect propagation effect are added to obtain the directed edge corrected triggering effect. The corrected triggering effect of each directed edge is multiplied by the corresponding composite weight, and the results are summed to obtain the actual triggering intensity of the downstream development event. The composite weight represents the relative triggering contribution of each directed edge to the same downstream development event. The actual development branch retains all software development events and all allowed triggering propagation paths. The summed actual triggering intensity represents the total triggering degree of the requirement change event on the downstream development event through direct triggering and indirect propagation.

[0101] Both direct triggering and indirect propagation effects are represented by the conditional occurrence intensity of downstream development events per unit time. Direct triggering effects are calculated using the event label weight of the current upstream development event, the time-delay triggering relationship of the current directed edge, and the triggering coefficient. Indirect propagation effects, after being passed through the preceding directed edge, are transformed using the event label weight of the current upstream development event and the time-delay triggering relationship of the current directed edge. The transformed direct triggering and indirect propagation effects have the same evaluation object, the same evaluation time, and the same numerical dimensions. Summing the triggering intensity components yields the actual triggering intensity of all historical software development events on the current downstream development event.

[0102] In this embodiment, the process of generating the counterfactual trigger strength in the counterfactual trigger analysis module includes:

[0103] Select a requirement change event from the software development event sequence as the target requirement change event, and configure a target trigger source identifier for the direct triggering effect and the indirect propagation effect passed along the software development task dependency graph generated by the target requirement change event. Specifically, read the development object identifier and event time corresponding to the target requirement change event, and combine the development object identifier and event time to form the target trigger source identifier. Write the target trigger source identifier into the direct triggering effect generated by the target requirement change event along the first directed edge. After the direct triggering effect is transformed into an indirect propagation effect, keep the target trigger source identifier unchanged along subsequent directed edges, so that the triggering effects at all levels formed by the target requirement change event have the same source mark.

[0104] In the counterfactual baseline branch, the time-delay triggering relationship, event tag weights, and improved Hawkes model parameters remain unchanged, while the direct triggering effect carrying the target triggering source identifier is set to zero. The improved Hawkes model parameters consist of the triggering direction defined by the software development task dependency graph, the rework propagation delay corresponding to each directed edge, the peak response duration, the attenuation coefficient, and the event tag weights corresponding to the software development events. The counterfactual baseline branch uses the above parameters as in the actual development branch, only canceling the triggering effect corresponding to the target triggering source identifier, keeping the calculation conditions of the actual development branch and the counterfactual baseline branch consistent.

[0105] Traverse the downstream development events of the target requirement change event along the directed edges of the software development task dependency graph. Set the indirect propagation effect carrying the target trigger source identifier to zero, and pass the suppression mark to subsequent directed edges. Do not repeat the traversal of directed edges that have completed the suppression mark transmission. Specifically, starting from the directed edge connected to the target requirement change event, set the direct triggering effect corresponding to the target trigger source identifier to zero. Use the downstream development event of the current directed edge as the starting point of the next layer of traversal, read the subsequent directed edges connecting the next layer of development events, and set the indirect propagation effect carrying the target trigger source identifier in the subsequent directed edges to zero. Repeat the above process layer by layer until there are no subsequent directed edges for the downstream development event. Record the directed edges that have completed the suppression process to avoid the same directed edge being processed repeatedly.

[0106] The direct triggering effect and indirect propagation effect without the target triggering source identifier are converted into triggering intensity components at the same evaluation time. The triggering intensity components corresponding to the same downstream development event are summed to generate the counterfactual triggering intensity after masking the direct triggering contribution and indirect propagation contribution of the target requirement change event.

[0107] The evaluation time is determined by setting the event time of the downstream development event to be calculated. The effective propagation duration of each reserved triggering action at the evaluation time is calculated. Based on the rework propagation delay, peak response duration and attenuation coefficient of the corresponding directed edge, each reserved triggering action is converted into the conditional occurrence intensity per unit time at the evaluation time. The event tag weight of the corresponding upstream development event is used for correction to obtain trigger intensity components with consistent dimensions. All reserved trigger intensity components received by the same downstream development event at the evaluation time are summarized, and all reserved trigger intensity components are summed. The summation result is determined as the counterfactual trigger intensity of the downstream development event.

[0108] In this embodiment, the process of generating the rework propagation path for requirement changes in the rework path generation module includes:

[0109] The actual trigger intensity of the same subsequent development event is compared with the counterfactual trigger intensity to extract the trigger increment caused by the target requirement change event. The trigger increment is then mapped to the corresponding event node to generate a rework contribution. Specifically, when constructing the software development task dependency graph, an event node is established for each software development event in the software development event sequence. The event type, event time, and event object of the software development event are written into the corresponding event node. The same event identifier is configured for the software development event and the event node to establish a one-to-one correspondence between the software development event and the event node. When the actual development branch and the counterfactual baseline branch calculate the trigger intensity, the trigger intensity is bound to the event identifier of the corresponding software development event. The trigger intensity output by the actual development branch and the counterfactual baseline branch is matched according to the event identifier. The difference in trigger intensity between the two branches for the same software development event is determined as the trigger increment, and the trigger increment is written into the event node with the same event identifier. The rework contribution is determined based on the proportion of the trigger increment to the actual trigger intensity. When the actual trigger intensity is zero, the rework contribution is set to zero.

[0110] Event nodes whose rework contribution reaches a preset threshold are identified as candidate rework nodes. These candidate rework nodes are then arranged according to the topological hierarchy in the software development task dependency graph. The event node corresponding to the target requirement change event is identified as the starting layer. Candidate rework nodes directly connected to the starting layer are moved to the next layer along the directed edge direction. Candidate rework nodes directly connected to the next layer's candidate rework nodes that have not yet been assigned a layer are also moved to the next layer. This hierarchical division is repeated until all candidate rework nodes are assigned. When the same candidate rework node is reached via two or more directed paths, the layer closest to the target requirement change event is identified as the corresponding topological layer.

[0111] Starting with the target requirement change event, the system traverses candidate rework nodes layer by layer along directed edges carrying the target trigger source identifier, verifying the trigger source, rework propagation delay, and execution dependency relationships between adjacent candidate rework nodes. Starting from the event node corresponding to the target requirement change event, the system reads the directed edges pointing to the next topology level from the current event node, determining whether the event node pointed to by the directed edge is a candidate rework node. When a directed edge points to a candidate rework node, the system reads the target trigger source identifier, rework propagation delay, and execution dependency relationships transmitted by the directed edge. After verification, the candidate rework node is set as the new current event node, and the system continues reading directed edges pointing to the next topology level. Traversed event nodes and directed edges are marked to avoid repeated traversal.

[0112] When adjacent candidate rework nodes are continuously propagated through the same target trigger source, and the event time of the downstream candidate rework node satisfies the corresponding rework propagation delay, the corresponding directed edge is retained; when the candidate rework node does not meet the above conditions, the corresponding propagation branch is terminated; where, continuous propagation through the same target trigger source means that the target trigger source identifier carried by the current directed edge is the same as the target trigger source identifier carried by the previous directed edge, and the upstream candidate rework node of the current directed edge is the downstream candidate rework node of the previous directed edge; in the first directed edge directly connecting the target requirement change event, the target trigger source identifier is taken from the target requirement change event; in subsequent directed edges, the target trigger source identifier remains unchanged along the indirect propagation action; the difference between the event time of the downstream candidate rework node and the upstream candidate rework node is compared with the rework propagation delay corresponding to the current directed edge, and when the difference between the event times reaches the rework propagation delay, it is determined that the triggering action has been propagated to the downstream candidate rework node along the current directed edge;

[0113] Connect the retained candidate rework nodes and directed edges according to the execution dependency direction to generate the rework propagation path of the target requirement change event.

[0114] In this embodiment, the process of generating development event costs in the cost conservation allocation module includes:

[0115] Filter subsequent development events that are simultaneously located in two or more requirement change rework propagation paths according to the event identifier, and bind the rework contribution of each requirement change event to the subsequent development event.

[0116] The rework contribution of the same subsequent development event is subject to a sum constraint. If the sum of the rework contributions is not greater than one, the rework contribution is maintained. If the sum of the rework contributions is greater than one, the rework contribution is normalized according to the sum to generate the total rework percentage and the weight of requirement change allocation.

[0117] Specifically, the rework contribution of each requirement change event associated with the same subsequent development event is summarized to obtain the total rework contribution. When the total rework contribution is not greater than one, the total rework contribution is determined as the total rework percentage. When the total rework percentage is greater than zero, the proportion of each rework contribution to the total rework percentage is determined as the requirement change allocation weight for the corresponding requirement change event. When the total rework contribution is greater than one, the total rework percentage is limited to one, and each rework contribution is divided by the total rework contribution to obtain the requirement change allocation weight for the corresponding requirement change event. When the total rework contribution is zero, the total rework percentage and each requirement change allocation weight are reset to zero. The total sum constraint ensures that the total rework percentage does not exceed one, and that the sum of each requirement change allocation weight equals one.

[0118] The total rework cost is allocated from the development event costs of subsequent development events according to the total rework percentage. Unallocated development event costs are defined as normal development costs. Specifically, the development event cost of subsequent development events is multiplied by the total rework percentage to obtain the total rework cost. The total rework cost is then deducted from the development event cost to obtain the normal development cost. When the total rework percentage is zero, all development event costs are included in the normal development cost. When the total rework percentage is one, all development event costs are included in the total rework cost. When the total rework percentage is between zero and one, the total rework cost and normal development cost are allocated within the same development event cost according to the total rework percentage, without adding new development event costs or double-counting them.

[0119] The total rework cost is allocated to the corresponding requirement change events according to the requirement change allocation weight, generating the requirement change rework cost for each requirement change event. The allocation difference is merged into the requirement change rework cost with the largest requirement change allocation weight, so that the sum of the normal development cost and the requirement change rework cost equals the development event cost.

[0120] In this embodiment, the dynamic accounting module specifically includes:

[0121] By summarizing normal development costs and rework costs due to requirement changes according to the target audience, development tasks, development stages, and software versions, dynamic cost accounting results for the entire software development process are generated.

[0122] The development phase is determined based on the event type of software development events. Requirement change events are classified into the requirement phase, development task events and code submission events into the development phase, build events into the build phase, testing events into the testing phase, defect handling events into the defect handling phase, and version deployment events into the deployment phase. Software development events are also categorized into corresponding requirement objects and development tasks according to the event object, and into corresponding software versions according to the version identifier. Normal development costs and requirement change rework costs are accumulated at each aggregation level.

[0123] Receive new software development events, append them to the software development event sequence, and update the software development task dependency graph based on the event objects and execution dependencies;

[0124] Specifically, an event node is created for each new software development event, and the event identifier, event type, event time, event object, and development cost of the new software development event are written into the event node. Existing event nodes associated with the new software development event are matched based on the event object, and the direction of directed edges is determined based on the execution order between event types. Directed edges are established between the new event node and the matched existing event nodes. Event nodes and directed edges not associated with the new software development event are retained, resulting in an updated software development task dependency graph.

[0125] Based on the updated software development event sequence and software development task dependency graph, the actual trigger strength, counterfactual trigger strength, rework contribution, requirement change rework propagation path, and cost allocation results of related events are recalculated, and the dynamic cost accounting results of the entire software development process are updated. Among them, the cost allocation results are the normal development cost, total rework cost, and requirement change rework cost corresponding to each requirement change event, which are obtained by reclassifying the development event costs of related development events according to the updated rework contribution. The original cost records are located according to the requirement object, development task, development stage, and software version of the related development events, and the recalculated normal development cost and requirement change rework cost are used to replace the original cost records. The cost records corresponding to the newly added software development events are written into the corresponding summary level. The normal development cost, requirement change rework cost, and total cost of the affected summary levels are re-accumulated, and the cost records unaffected by the newly added software development events are retained to generate the updated dynamic cost accounting results of the entire software development process.

[0126] Example 2: Reference Figure 3 To verify the feasibility of this invention in practice, it was applied to a dynamic cost accounting scenario in the software development process, tracking costs for requirement adjustments, task execution, code modification, build verification, defect fixing, and version release. In actual software development, requirement changes lead to adjustments in subsequent development tasks, resulting in increased code submissions, more builds, expanded testing scope, and increased defect handling work. Traditional cost accounting methods, which calculate costs based on development stages or personnel input, struggle to identify rework costs caused by a single requirement change and cannot distinguish between normal development costs and additional costs resulting from requirement changes.

[0127] In this embodiment, software development process records and resource cost records are collected. Requirements change records, development task records, code submission records, software build records, test execution records, defect handling records, and version deployment records are associated according to the development object identifier to form a software development event sequence. Based on... Figure 3 The software development event node establishment process shown in a converts requirement changes, development tasks, code submissions, and build processes into corresponding software development event nodes. In the initial stage, only the event nodes are established, without establishing the execution dependencies between events.

[0128] After generating software development event nodes, a software development task dependency graph is constructed based on the execution relationships between these events. (Reference) Figure 3The software development event connection process shown in b connects requirement change nodes to development task nodes, development task nodes to code commit nodes, and code commit nodes to build nodes, forming a directed dependency relationship that propagates from upstream development events to downstream development events. By replacing a simple temporal sequence relationship with a software development task dependency graph, the impact of requirement change events on subsequent development activities can be analyzed along the actual execution path.

[0129] Furthermore, based on the directed edge directions in the software development task dependency graph, the occurrence intervals between related development events are statistically analyzed to determine the rework propagation lag between different development activities. For cases where requirement change events trigger development task adjustments, the response interval between requirement change events and development task events is calculated; for cases where code commits affect software builds, the response interval between code commit events and build events is calculated. Occurrence intervals that meet the propagation conditions are retained, forming a lag-triggered relationship, thus giving different types of development events corresponding propagation time constraints.

[0130] In this embodiment, the software development event sequence, software development task dependency graph, and time-delay triggering relationships are input into an improved Hawkes model to analyze the triggering impact of requirement change events. The actual development branch retains all software development events, and adjusts the triggering effect of requirement change events on subsequent development events by adjusting event label weights to generate the actual triggering intensity. The counterfactual baseline branch cancels the direct triggering contribution and indirect propagation contribution of the target requirement change event, keeping the states of other development events unchanged, and generates the counterfactual triggering intensity. By comparing the changes in the triggering intensity of the same development event in the two branches, the rework contribution corresponding to the target requirement change event is obtained.

[0131] refer to Figure 3 As shown in c, the entire software development process is interconnected. When a requirement change event forms a complete propagation chain through development tasks, code submission, building, testing, defect handling, and version deployment, this invention filters affected subsequent development events based on their rework contribution and connects them to form a requirement change rework propagation path. For example, if a development task node corresponding to a requirement change event results in code adjustments, these adjustments further affect software building and test execution. During testing, defect handling events occur, ultimately impacting version deployment costs. This invention can follow... Figure 3 The event connection relationships in c identify the complete rework propagation path.

[0132] In the cost calculation process, when the same subsequent development event is simultaneously affected by two requirement change events, this invention allocates costs based on the rework contribution of each requirement change event. For example, the development event cost corresponding to a test execution event is a fixed value, part of which comes from the normal testing process, and the other part comes from the increased testing scope caused by the requirement change. This invention divides the development event cost into normal development costs and requirement change rework costs, enabling software development costs to be mapped to specific sources of impact.

[0133] When new software development events occur during the software development process, this invention appends the new events to the software development event sequence, updates the software development task dependency graph based on the execution relationships corresponding to the new events, and recalculates the actual trigger strength, counterfactual trigger strength, rework contribution, and requirement change rework propagation path, thus updating the dynamic cost accounting results for the entire software development process. Compared to traditional cost statistics methods, this invention can complete the rolling cost adjustment under new events without reorganizing all development records.

[0134] To verify the effectiveness of this invention, comparative tests were conducted using different cost accounting methods. During the tests, indicators such as the accuracy of requirement change impact identification, the completeness of rework path identification, cost classification error, and update time for new events were recorded. Experimental results show that this invention, by analyzing the propagation relationship of requirement changes using a software development task dependency graph and an improved Hawkes model, can reduce the cost aggregation of irrelevant development activities and improve the accuracy of rework cost identification; by comparing actual triggering branches with counterfactual triggering branches, it can effectively separate normal development costs from requirement change rework costs; and through a dynamic update mechanism, it can reduce the workload of recalculating costs caused by new development events.

[0135] Table 1: Comparison of Dynamic Cost Accounting Results for the Entire Software Development Process

[0136]

[0137] As can be seen from the experimental data in Table 1, the dynamic cost accounting method for the entire software development process proposed in this invention has significant improvements in identifying the impact of requirement changes, analyzing rework propagation paths, the accuracy of cost allocation, and the efficiency of updating new events.

[0138] In terms of the accuracy of identifying the impact of requirement changes, traditional stage cost statistics methods only rely on development stages and cost inputs, failing to consider the dependencies between requirement change events and subsequent development events, resulting in an accuracy rate of 72.6%. Task-based correlation analysis methods, which utilize the relationships between tasks to assess impact, improve the accuracy rate to 84.3%. This invention constructs a software development task dependency graph and utilizes an improved Hawkes model to analyze the direct triggering and indirect propagation effects of requirement change events, enabling the identification of requirement change impacts along the actual development path. The accuracy rate for identifying the impact of requirement changes reaches 95.7%, significantly enhancing the ability to analyze the scope of requirement change impacts.

[0139] From the perspective of rework propagation path identification completeness, traditional stage cost statistics methods lack analysis of propagation relationships between events and can only judge the impact of rework based on stage changes, with a rework propagation path identification completeness rate of 65.8%. Based on task association analysis, the impact of rework is analyzed through task connection relationships, improving the identification completeness rate to 78.6%. This invention compares actual triggering branches with counterfactual triggering branches to extract the triggering contribution of target requirement change events, and combines this with rework propagation lag to filter effective propagation links, achieving a rework propagation path identification completeness rate of 93.5%, enabling more accurate tracking of the subsequent development impact caused by requirement changes.

[0140] From the perspective of average cost classification error, traditional stage cost accounting methods cannot distinguish between costs generated by normal development activities and additional rework costs caused by requirement changes, with an average cost classification error reaching 18.4%. Task association analysis methods can allocate costs based on task relationships, reducing the average cost classification error to 11.2%. This invention, through a cost conservation allocation method, classifies development event costs into normal development costs and requirement change rework costs based on the contribution of rework, making cost attribution clearer and reducing the average cost classification error to 4.1%, thus improving the accuracy of software development cost accounting.

[0141] From the perspective of update time for new event costs, traditional stage cost statistics methods require reorganizing cost records after a new software development event, with update time reaching 186 seconds. Task association analysis methods reduce redundant calculations by maintaining task relationships, lowering update time to 132 seconds. This invention receives new software development events through a dynamic accounting module and updates the software development task dependency graph based on these events, recalculating actual trigger strength, counterfactual trigger strength, rework contribution, and cost allocation results. This limits the impact of new events to related development events, reducing update time to 38 seconds and improving the efficiency of dynamic software development cost updates.

[0142] The data in Table 1 confirms that this invention utilizes software development event sequences, software development task dependency graphs, an improved Hawkes model, and a cost conservation allocation mechanism to achieve collaborative processing of requirement change impact identification, rework propagation path analysis, and dynamic cost accounting. Compared with traditional cost statistics methods, it improves cost accounting accuracy, rework tracking capabilities, and dynamic update efficiency.

[0143] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A dynamic cost accounting system for the entire software development process, characterized in that, include: The development event generation module is used to associate software development process records with resource cost records, arrange them according to the time of occurrence, and generate a software development event sequence that includes the development event cost; The task dependency graph construction module is used to construct a software development task dependency graph based on the object associations and execution dependencies between software development events; The time-delay triggering module is used to limit the event triggering direction based on the software development task dependency graph, determine the rework propagation time delay based on the occurrence interval of related development events, and generate time-delay triggering relationships. The actual trigger analysis module is used to input the software development event sequence, software development task dependency graph and time delay trigger relationship into the improved Hawkes model, and calculate the actual trigger intensity of requirement change events on subsequent development events through actual development branches; The counterfactual trigger analysis module is used to identify requirement change events as target requirement change events, suppress the direct triggering contribution of the target requirement change event through the counterfactual baseline branch, recursively suppress the indirect propagation contribution along the software development task dependency graph, and generate counterfactual trigger strength. Specifically, it includes: Select requirement change events from the software development event sequence as target requirement change events, and configure target trigger source identifiers for the direct triggering effect and the indirect propagation effect transmitted along the software development task dependency graph generated by the target requirement change events; In the counterfactual baseline branch, the time-delay triggering relationship, event tag weights, and improved Hawkes model parameters remain unchanged, while the direct triggering effect carrying the target triggering source identifier is set to zero. Traverse the downstream development events of the target requirement change event along the directed edge direction of the software development task dependency graph, set the indirect propagation effect carrying the target trigger source identifier to zero, pass the suppression mark to the subsequent directed edge, and do not repeat the traversal of the directed edge that has completed the suppression mark propagation. The direct triggering effect and indirect propagation effect without the target triggering source identifier are converted into triggering intensity components at the same evaluation time. The triggering intensity components corresponding to the same downstream development event are summed to generate the counterfactual triggering intensity after masking the direct triggering contribution and indirect propagation contribution of the target requirement change event. The rework path generation module is used to determine the rework contribution of a target requirement change event to subsequent development events based on the actual trigger strength and counterfactual trigger strength. It connects subsequent development events whose rework contribution reaches a preset threshold along the software development task dependency graph, generating a requirement change rework propagation path. Specifically, it includes: By comparing the actual trigger intensity with the counterfactual trigger intensity of the same subsequent development event, the trigger increment caused by the target requirement change event is extracted, and the trigger increment is mapped to the corresponding event node to generate rework contribution. Event nodes whose rework contribution reaches a preset threshold are identified as candidate rework nodes, and the candidate rework nodes are arranged according to the topological hierarchy in the software development task dependency graph. Starting with the target requirement change event, traverse the candidate rework nodes layer by layer along the directed edges carrying the target trigger source identifier, and verify the trigger source, rework propagation delay and execution dependency relationship between adjacent candidate rework nodes; If adjacent candidate rework nodes are continuously propagated through the same target trigger source, and the event time of the downstream candidate rework node satisfies the corresponding rework propagation delay, the corresponding directed edge is retained; if the candidate rework node does not meet the above conditions, the corresponding propagation branch is terminated. Connect the retained candidate rework nodes and directed edges according to the execution dependency direction to generate the rework propagation path of the target requirement change event; The cost conservation allocation module is used to allocate the development event cost of subsequent development events based on their rework contribution when the same subsequent development event is associated with two or more requirement change events, generating normal development costs and requirement change rework costs; specifically including: Filter subsequent development events that are simultaneously located in two or more requirement change rework propagation paths according to the event identifier, and bind the rework contribution of each requirement change event to the subsequent development event. The rework contribution of the same subsequent development event is subject to a sum constraint. If the sum of the rework contributions is not greater than one, the rework contribution is maintained. If the sum of the rework contributions is greater than one, the rework contribution is normalized according to the sum to generate the total rework percentage and the weight of requirement change allocation. The total rework cost is allocated from the development event cost of subsequent development events according to the proportion of total rework, and the development event cost that is not allocated is determined as normal development cost; The total rework cost is allocated to the corresponding requirement change events according to the requirement change allocation weight, generating the requirement change rework cost for each requirement change event. The allocation difference is merged into the requirement change rework cost with the largest requirement change allocation weight, so that the sum of the normal development cost and the requirement change rework cost equals the development event cost. The dynamic accounting module is used to generate dynamic accounting results for the entire software development process cost and to update the dynamic accounting results for the entire software development process cost based on new software development events.

2. The dynamic cost accounting system for the entire software development process according to claim 1, characterized in that, The development event generation module specifically includes: Read the development object identifier from the development process record, bind the resource cost record with the record with the same identifier, and extract and sort the bound records according to the time of occurrence; Encapsulate the record types as requirement change, development task, code submission, build, test, defect handling, and version deployment events; Write the record type, occurrence time, development object identifier, processing scale field and resource cost into the event type, time, object, tag and cost respectively, and generate a software development event sequence in chronological order.

3. The dynamic cost accounting system for the entire software development process according to claim 2, characterized in that, The process of constructing the software development task dependency graph in the task dependency graph construction module includes: Map the software development event sequence, including requirement changes, development tasks, code submissions, builds, tests, defect handling, and version deployment, to event nodes. Based on the development object identifier, match the development task event that receives the requirement change event, the code submission event belonging to the development task event, the build event triggered by the code submission event, the test event executed based on the build event, the defect handling event generated by the test event, and the version deployment event corresponding to the defect handling event; Based on the execution dependency direction of each matching event, directed edges are established between the corresponding event nodes to generate a software development task dependency graph.

4. The dynamic cost accounting system for the entire software development process according to claim 3, characterized in that, The process of generating time-delay triggering relationships in the time-delay triggering construction module includes: Group related development events according to the direction of the directed edges in the software development task dependency graph; Calculate the occurrence interval between upstream and downstream development events in each group, remove occurrence intervals that exceed the preset time range, select the median of the retained occurrence intervals as the rework propagation delay in the corresponding directed edge direction, and generate the delay triggering relationship.

5. A dynamic cost accounting system for the entire software development process according to claim 4, characterized in that, The improved Hawkes model in the actual trigger analysis module performs the following operations: The event triggering effect of upstream development events on downstream development events is divided into the direct triggering effect of upstream development events and the indirect propagation effect of upstream development events received through preceding directed edges. The direct triggering effect and the indirect propagation effect are respectively delayed by the rework propagation delay of the corresponding directed edge. When the occurrence interval of the associated development event is less than the rework propagation delay, the corresponding event triggering effect is set to zero. When the occurrence interval reaches the rework propagation delay, the event triggering effect is first enhanced to the peak and then gradually weakened according to the effective propagation duration after deducting the rework propagation delay. The delayed direct triggering and indirect propagation effects are passed to downstream development events, and the indirect propagation effects received by downstream development events are recursively passed along subsequent directed edges. When the same downstream development event receives event triggering actions from two or more directed edges, they are synthesized according to the proportion of each directed edge's event triggering action to the total event triggering action, generating a time-delay triggering relationship that is jointly constrained by the direction of the directed edge, the rework propagation delay, and the propagation path.

6. A dynamic cost accounting system for the entire software development process according to claim 5, characterized in that, The calculation process of the actual trigger strength in the actual trigger analysis module includes: In the actual development branch, retain all software development events in the software development event sequence and their corresponding time-delay triggering relationships; Read the event tags of requirement change events, code commit events, build events, and test events respectively, normalize the event tags of the same event type, and generate the event tag weights of the corresponding software development events; The direct triggering effect of the current directed edge is corrected by using the event tag weight of the current upstream development event, and the indirect propagation effect passed through the previous directed edge is corrected by using the event tag weight of the current upstream development event. The corrected indirect propagation effect is then passed to the downstream development event along the current directed edge. The actual trigger strength of a downstream development event is generated by summarizing the corrected direct triggering effect and the corrected indirect propagation effect received by the same downstream development event according to the composite weight.

7. A dynamic cost accounting system for the entire software development process according to claim 6, characterized in that, The dynamic accounting module specifically includes: By summarizing normal development costs and rework costs due to requirement changes according to the target audience, development tasks, development stages, and software versions, dynamic cost accounting results for the entire software development process are generated. Receive new software development events, append them to the software development event sequence, and update the software development task dependency graph based on the event objects and execution dependencies; Based on the updated software development event sequence and software development task dependency graph, the actual trigger strength, counterfactual trigger strength, rework contribution, requirement change rework propagation path and cost allocation results of related events are recalculated, and the dynamic cost accounting results of the entire software development process are updated.

Citation Information

Patent Citations

  • Predictive maintenance method based on elevator operation and maintenance time sequence knowledge graph

    CN120931269A

  • Software development data management method based on cloud service

    CN122044639A

  • Real-time accounting method and system for fiber production cost based on dynamic process map

    CN122472464A