A big data-based software development process quality measurement and iterative optimization system

By constructing a software development process quality measurement and iterative optimization system based on big data causal modeling and counterfactual attribution analysis, the problem of difficulty in identifying causal relationships in traditional quality monitoring has been solved. This system enables precise traceability and dynamic optimization of software R&D quality, improving the response efficiency and optimization accuracy of quality issues.

CN123178248APending Publication Date: 2026-11-27SICHUAN LIFAN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610864288.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the current software development process, traditional quality monitoring methods rely on correlation analysis between indicators, which cannot distinguish causal relationships. This leads to inaccurate identification of the root causes of quality deviations, incorrect direction of optimization intervention, and lack of data closure, making dynamic iterative optimization impossible.

Method used

We construct a big data-based software development process quality measurement and iterative optimization system. Through data collection and causal modeling units, we perform semantic alignment and causal relationship modeling. By utilizing time-delay coding causal graphs and counterfactual attribution analysis, we achieve accurate source tracing and dynamic optimization of quality problems.

Benefits of technology

It improves the response efficiency and intervention accuracy of quality issues, realizes measurable, traceable and optimizable control over software development quality, reduces system deployment and access costs, and is compatible with various R&D toolchains.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178248A_ABST
    Figure CN123178248A_ABST
Patent Text Reader

Abstract

The application provides a big data-based software development process quality measurement and iterative optimization system, comprising a data acquisition and causal modeling unit, an attribution analysis unit and an iterative optimization unit; the data acquisition and causal modeling unit is used for acquiring process event data of a plurality of heterogeneous research and development tool chains, performing semantic alignment on the process event data by using a preset research and development entity knowledge graph, extracting process characteristic variables from the aligned sequence, and forming a causal variable set after collinearity test; a preset prior causal skeleton graph is used as a structure constraint and a time sequence direction constraint is applied, self-correlation of the causal variable set is eliminated, conditional independence test is performed on residual errors under the constraint to construct a directed acyclic causal graph, the effect strength of each directed edge is estimated on a plurality of time lag windows, the strength maximum window coding is used as the conduction time lag of each directed edge, and a time lag coding causal graph is formed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of iterative optimization, and specifically relates to a software development process quality measurement and iterative optimization system based on big data. Background Technology

[0002] Currently, software development commonly adopts agile development and DevOps continuous delivery models. With increasing software complexity and faster iteration pace, the development process is characterized by heterogeneous collaboration of multiple tools and massive growth in process data. Therefore, refined and data-driven quality control has become a core requirement of software engineering. Traditional quality control models relying on manual experience and post-event verification are no longer suitable for the high-frequency iteration of modern R&D scenarios.

[0003] Traditional software quality measurement systems have significant shortcomings. Data from various R&D toolchains is inconsistent and fragmented, making semantic fusion and in-depth analysis difficult. Furthermore, traditional methods focus only on surface-level quality indicators, failing to eliminate interference from data collinearity and temporal autocorrelation, thus failing to characterize the true relationships between process variables. Simultaneously, traditional analysis can only identify data correlations, unable to distinguish causal transmission relationships, ignoring the temporal and delayed transmission characteristics of quality problems. When faced with quality deviations coupled by multiple factors, it is difficult to accurately quantify root causes and influence weights, resulting in low accuracy in tracing the source. In addition, existing optimization mechanisms lack data closure, often relying on passive, single-point rectification and manual experience to formulate strategies, failing to dynamically iterate and optimize, leading to the recurrence of similar quality problems.

[0004] To address the aforementioned issues, big data, knowledge graphs, causal inference, and counterfactual analysis technologies offer new pathways for intelligent quality control. This paper proposes a big data-based software process quality measurement and iterative optimization system. By constructing a time-delay coded causal model, counterfactual attribution analysis, and a closed-loop iterative optimization system, it achieves precise tracing and dynamic optimization of R&D quality problems, realizing the control objectives of measurable, traceable, and optimizable software R&D quality, and effectively improving software delivery quality and R&D efficiency. Summary of the Invention

[0005] This invention proposes a big data-based software development process quality measurement and iterative optimization system, which solves the problems of existing software development process quality monitoring methods that rely on correlation analysis between indicators, cannot distinguish between causal relationships and spurious correlations, resulting in inaccurate identification of the root causes of quality deviations, and the resulting errors in optimization intervention direction and closed-loop iteration failure.

[0006] The technical solution of the present invention is implemented as follows: a software development process quality measurement and iterative optimization system based on big data, comprising a data acquisition and causal modeling unit, an attribution analysis unit, and an iterative optimization unit; The data acquisition and causal modeling unit is used to acquire process event data from multiple heterogeneous R&D toolchains, semantically align them using a pre-defined R&D entity knowledge graph, extract process feature variables from the aligned sequences, and form a causal variable set after collinearity testing. Using a pre-defined prior causal skeleton graph as a structural constraint and applying temporal direction constraints, the autocorrelation of the causal variable set is eliminated. Under the constraints, the conditional independence test is performed on the residuals to construct a directed acyclic causal graph. The effect intensity of each directed edge is estimated on multiple time lag windows, and the window with the maximum intensity is encoded as the propagation time lag of each directed edge to form a time lag encoded causal graph. The attribution analysis unit, connected to the data acquisition and causal modeling unit at its input end, is used to locate the target variable and the set of causal parent nodes corresponding to the target quality indicator in the time-delay coded causal graph when a significant deviation of the target quality indicator is detected. It uses the backdoor criterion to determine the set of covariate adjustment and constructs a counterfactual attribution effect estimation model with the do operator. It sets the counterfactual of each causal parent node as the baseline level, calculates the conditional expectation of the target quality indicator through the model, and uses the difference between the actual observed value and the conditional expectation as the contribution of the attribution effect. It outputs the root cause localization results in order of the contribution of the attribution effect. The iterative optimization unit has its input end connected to the attribution analysis unit and its feedback end connected to the data acquisition and causal modeling unit. It is used to match optimization schemes from a preset strategy library based on the root cause localization results. After the scheme is executed, the modeling unit is triggered to update the time-delay coded causal graph through the feedback end.

[0007] Software development involves various toolchains, including requirements management, code hosting, continuous integration, and defect tracking. The process event data generated by these toolchains exhibits heterogeneity in entity naming, attribute fields, and timestamp formats. Directly extracting features from this heterogeneous data will result in the same development entity appearing as different variables in different data sources, creating pseudo-independence and distorting the variable set for subsequent causal modeling. Therefore, this application uses a pre-defined development entity knowledge graph to perform unified semantic alignment on multi-source data, merging process events from different toolchains that point to the same development entity into a unified event sequence, thus eliminating variable confusion caused by data heterogeneity at its source.

[0008] In software development, complex temporal dependencies and nonlinear couplings exist among various quality indicators. Correlation analysis cannot distinguish between "A causes B" and "common cause C causes A and B." Causal structure learning requires constructing a directed acyclic graph in a high-dimensional variable space, facing the following specific challenges: First, autocorrelation is prevalent in development time-series data, which, if not eliminated, will lead to spurious causal edges in conditional independence tests. Second, purely data-driven causal discovery is prone to instability in direction identification with limited samples. Third, software quality transmission exhibits significant time-lag effects; the same causal relationship shows significantly different effect strengths under different time-lag windows, and using a fixed window will lead to incorrect encoding of transmission lags. This application systematically solves the above three sub-difficulties by introducing a prior causal skeleton graph as a structural constraint, applying temporal direction constraints to eliminate autocorrelation, performing conditional independence tests on the residuals, estimating effect strengths over multiple time-lag windows, and encoding transmission lags with the maximum strength window.

[0009] Traditional regression analysis provides conditional expectations under observed conditions, failing to answer the counterfactual question of "how the target indicator will change if variable X is set as the baseline level," and therefore cannot be directly used to quantify root cause contributions. This application introduces the do operator to construct a counterfactual attribution effect estimation model. It uses a backdoor criterion to determine the covariate adjustment set to block confounding paths, and calculates the conditional expectations of the target quality indicator after setting the counterfactual values ​​of each causal parent node as the baseline level. The difference between the actual observed value and this conditional expectation is used to accurately quantify the independent contribution of each root cause variable, achieving interpretable and quantifiable root cause localization.

[0010] The overall technical principle of this application is divided into three progressive levels: The first layer involves the construction of a causal variable set: starting from multi-source heterogeneous data, and through semantic alignment and collinearity testing of the knowledge graph, a causal variable set is formed that eliminates information redundancy while preserving the semantic integrity of the process, laying the variable foundation for subsequent causal modeling.

[0011] The second layer involves the construction of a time-delay coded causal graph: Under the constraints of the prior skeleton graph and the temporal direction, a conditional independence test is performed on the autocorrelation-free residual sequence to determine the existence and directionality of directed edges; further, the effect intensity of each directed edge is estimated on multiple time-delay windows, and the maximum intensity window is used as the encoding value of the propagation time delay, ultimately forming a time-delay coded causal graph that combines causal direction information and time-delay propagation information, thus fully depicting the dynamic propagation mechanism of quality indicators during the R&D process.

[0012] The third layer, counterfactual attribution and closed-loop optimization: using a time-delay coded causal graph as the intervention structure, a counterfactual model is constructed using the do operator to accurately attribute and rank the root causes of detected quality deviation events; the iterative optimization unit matches optimization schemes from the strategy library based on the root cause results, and after the scheme is executed, the causal graph is updated through the feedback end, realizing a complete closed loop of data collection → causal modeling → attribution location → optimization intervention → graph model update.

[0013] As a preferred implementation, the pre-defined R&D entity knowledge graph includes node types such as requirement items, code modules, test cases, build tasks, review records, and defect reports, and edge types such as traceability relationships, dependency relationships, triggering relationships, modification relationships, and verification relationships. The weight of each edge is initialized according to the co-occurrence frequency of its two end nodes in historical process events. Semantic alignment is achieved by performing R&D entity identification and attribute extraction on the process event data of each heterogeneous R&D toolchain, matching the identified R&D entities with existing nodes in the knowledge graph according to entity type and attribute similarity, and merging process events that match the same R&D entity into the unified event sequence corresponding to that R&D entity according to timestamp.

[0014] In a preferred implementation, when matching attributes based on similarity, the attribute fields of the R&D entity are semantically vectorized, and the similarity between the attribute vector of the R&D entity identified in the process event to be matched and the attribute vector of each candidate node in the knowledge graph is calculated. When the similarity exceeds a preset matching threshold, it is determined that it points to the same R&D entity and the attribute value of the candidate node is updated. When there is no candidate node in the knowledge graph with a similarity exceeding the matching threshold for the R&D entity identified in the same process event, a new node is created with the attributes and type of the R&D entity, and an associated edge is created from the new node to the corresponding source R&D entity node of the toolchain with the toolchain as the edge type. The new node is then added to the knowledge graph.

[0015] In a preferred implementation, the conditional independence test involves calculating the conditional independence statistic for each variable to be tested, using the variables involved in the edges associated with that pair of variables in the prior causal skeleton graph as the condition set. If the statistic exceeds a preset threshold, a directed edge is added, with the edge direction determined by the time-series direction constraint as pointing from the earlier-timestamped variable to the later-timestamped variable. Estimating the effect strength of each directed edge includes: calculating the conditional mutual information between the source variable and the target variable after offsetting by the window under each time lag window, and using its normalized value as the effect strength.

[0016] As a preferred implementation, when applying temporal direction constraints, the data acquisition and causal modeling unit determines the direction of the directed edge only based on the order of the timestamps of each process event. That is, for any pair of variables that are statistically correlated, the variable with the earlier timestamp is determined as the cause node, and the variable with the later timestamp is determined as the result node.

[0017] As a preferred implementation, the attribution analysis unit uses a step-by-step intervention approach when calculating the attribution effect contribution of each causal parent node. That is, each time, only the counterfactual value of one causal parent node is set to its normal operating baseline level, while the actual observed values ​​of the remaining causal parent nodes remain unchanged. The conditional expectation of the target quality index after each intervention is calculated, and the difference between the actual observed value and the conditional expectation is used as the independent contribution of the causal parent node. The causal parent node with the largest contribution is marked as the primary root cause.

[0018] As a preferred implementation, the iterative optimization unit is also used to associate and store the optimization scheme executed each time with the change in the intensity of each causal edge effect in the time-delayed causal graph before and after execution; when the same type of root cause localization result is detected again, the optimization unit prioritizes matching the optimization scheme with the largest historical intensity change from the strategy library and outputs it as the recommended scheme.

[0019] In a preferred embodiment, when estimating the effect strength of each directed edge, the data acquisition and causal modeling unit calculates the conditional mutual information between the source variable and the target variable after offsetting the corresponding window length for at least two pre-set different time lag window lengths; selects the window length with the largest conditional mutual information value as the propagation lag of the directed edge, and marks the propagation lag as a numerical label on the corresponding directed edge of the time lag coded causal graph.

[0020] After adopting the above technical solution, the beneficial effects of this invention are as follows: Existing software development process quality monitoring systems are generally based on indicator correlation analysis or statistical control charts, which can only identify "which indicator is abnormal" but cannot answer "what caused the abnormality". This application upgrades quality monitoring from "observing abnormalities" to "locating root causes" by constructing a time-delay coded causal graph and introducing a do-operator counterfactual attribution framework. This enables the R&D team to quickly identify driving factors after quality deviations occur, rather than relying on experience and guesswork to check one by one, significantly improving the response efficiency and intervention accuracy of quality problems.

[0021] In software development, numerous codependent variables influence multiple quality indicators, such as changes in R&D resource allocation and adjustments to version release schedules. These codependent variables can introduce spurious causality in correlation analysis, leading to incorrect intervention directions. This application uses a backdoor criterion to determine the covariate adjustment set and explicitly blocks confounding paths in the counterfactual attribution effect estimation model. This ensures that the attribution effect contribution reflects the true independent causal effect of the root cause variable on the target quality indicator, effectively eliminating the interference of confounding variables and improving the credibility of root cause localization conclusions.

[0022] In software development, the impact of upstream process variables on downstream quality indicators often exhibits significant time lags. For example, an increase in defect density during code review often manifests as an increase in defect escape rate only after several iterations. Existing methods ignore the time lag effect, leading to the erroneous identification of delayed accompanying phenomena as root causes during root cause localization. This application estimates the intensity of multi-time-lag window effects and encodes the propagation time lag using the maximum intensity window, enabling each directed edge in the causal graph to carry precise time lag information. This provides accurate temporal information for root cause localization and response cycle prediction of optimization schemes.

[0023] The feedback end of the iterative optimization unit in this application is directly connected to the data acquisition and causal modeling unit. After the optimization scheme is executed, it triggers the automatic update of the time-delay encoded causal graph. As optimization intervention data continues to accumulate, the effect strength and transmission delay of the relevant directed edges in the causal graph are corrected, and the matching accuracy of the strategy library is improved accordingly. This closed-loop mechanism enables the system to have self-evolution capabilities, continuously improving the accuracy of root cause localization and optimization matching as the R&D process progresses, overcoming the shortcomings of existing methods such as the disconnect between optimization suggestions and actual effects, and the inability to verify and iterate.

[0024] This application uses a pre-defined R&D entity knowledge graph to semantically align process event data from multiple heterogeneous R&D toolchains. It does not rely on pre-standardized data formats for each toolchain and possesses strong toolchain adaptability. R&D teams can integrate various data types, such as requirements management, code hosting, continuous integration, and defect tracking, into a unified quality measurement system without modifying existing toolchains. This reduces system deployment and integration costs and facilitates widespread application across R&D organizations of different technology stacks and sizes.

[0025] The root cause analysis results in this application are output in order of contribution of attribution effects. Each root cause variable corresponds to a clear causal transmission path and a quantifiable effect value. R&D managers and quality engineers can directly understand the basis for root cause analysis without the need for additional interpretation of the output of a "black box" model. Interpretable attribution results help the R&D team reach a consensus in the selection of optimization solutions and improve the implementation rate of quality improvement measures. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a system framework diagram of the present invention; Figure 2 This is a flowchart of the semantic alignment process for the knowledge graph of this invention; Figure 3 This is a curve showing the deviation of the quality indicators of the present invention. Figure 4 This is a distribution diagram of the attribution effect contribution of the present invention. Detailed Implementation

[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] Example 1

[0030] like Figures 1-4 As shown, a software development process quality measurement and iterative optimization system based on big data includes a data acquisition and causal modeling unit, an attribution analysis unit, and an iterative optimization unit. The data acquisition and causal modeling unit is used to acquire process event data from multiple heterogeneous R&D toolchains, semantically align them using a pre-defined R&D entity knowledge graph, extract process feature variables from the aligned sequences, and form a causal variable set after collinearity testing. Using a pre-defined prior causal skeleton graph as a structural constraint and applying temporal direction constraints, the autocorrelation of the causal variable set is eliminated. Under the constraints, the conditional independence test is performed on the residuals to construct a directed acyclic causal graph. The effect intensity of each directed edge is estimated on multiple time lag windows, and the window with the maximum intensity is encoded as the propagation time lag of each directed edge to form a time lag encoded causal graph. The attribution analysis unit, connected to the data acquisition and causal modeling unit at its input end, is used to locate the target variable and the set of causal parent nodes corresponding to the target quality indicator in the time-delay coded causal graph when a significant deviation of the target quality indicator is detected. It uses the backdoor criterion to determine the set of covariate adjustment and constructs a counterfactual attribution effect estimation model with the do operator. It sets the counterfactual of each causal parent node as the baseline level, calculates the conditional expectation of the target quality indicator through the model, and uses the difference between the actual observed value and the conditional expectation as the contribution of the attribution effect. It outputs the root cause localization results in order of the contribution of the attribution effect. The iterative optimization unit has its input end connected to the attribution analysis unit and its feedback end connected to the data acquisition and causal modeling unit. It is used to match optimization schemes from a preset strategy library based on the root cause localization results. After the scheme is executed, the modeling unit is triggered to update the time-delay coded causal graph through the feedback end.

[0031] To illustrate this with a specific real-world example, the e-commerce backend development team of a software company has long faced a high defect escape rate in online environments after version releases. The team uses multiple development toolchains working collaboratively: a requirements management platform for requirement input, allocation, and status transition; a code hosting platform for code submission, branch management, and merge request review; a continuous integration platform for automated build and testing tasks; and a defect tracking platform for managing the entire defect lifecycle. The system described in this application is deployed on the team's development management server, establishing data collection connections through the standard data interfaces provided by each toolchain. The online defect escape rate is used as the primary monitoring target quality indicator, and the system is continuously running.

[0032] After the system is up and running, the data acquisition and causal modeling unit periodically retrieves requirement status change records and defect submission flow records from the requirement management platform, code submission records and merge request review records from the code hosting platform, build execution records and automated test run reports from the continuous integration platform, and defect repair records from the defect tracking platform. The data formats, field naming, and entity identification methods generated by these platforms are heterogeneous—the same defect entity is identified by its own system's defect number in the requirement management platform, by a branch name containing that number in the code hosting platform, by a build task name containing that number in the continuous integration platform, and managed by its independent work order number in the defect tracking platform. Directly extracting features from the data of each platform would cause the same development entity to be treated as different variables, distorting subsequent causal modeling.

[0033] To address the aforementioned issues, the data acquisition and causal modeling unit invokes a pre-defined R&D entity knowledge graph to semantically align data from various platforms. This knowledge graph, pre-constructed by domain experts, defines R&D entity node types such as requirement items, code modules, test cases, build tasks, review records, and defect reports, as well as edge types such as traceability relationships, triggering relationships, modification relationships, and verification relationships. Standard attribute sets are also defined for each node type. During alignment, the unit performs entity identification and attribute extraction for each retrieved process event. The identified R&D entity attribute information is then matched with the attribute information of existing nodes of the same type in the knowledge graph based on semantic similarity. When the similarity exceeds a preset threshold, the entity is identified as the same R&D entity, and the process event is merged into the unified event sequence corresponding to that node. When the similarity is below the preset threshold, the entity is identified as a newly emerging R&D entity, and a new node is created in the knowledge graph using its attribute information. The event is then written into the event sequence of the new node. Through this process, process events originally scattered across multiple toolchains are uniformly aggregated according to R&D entities, forming an aligned event sequence covering the complete lifecycle of each R&D entity.

[0034] After semantic alignment, the unit extracts process feature variables from the alignment event sequences of each R&D entity. These process feature variables cover multiple dimensions, including development activities, review activities, testing activities, build activities, defect management activities, and team status. They are aggregated by R&D cycle (e.g., in weeks) to form a time series of variables. To eliminate linear redundancy among variables, the unit performs collinearity tests on all variables, calculates the variance inflation factor between each pair of variables, and removes variables with redundancy exceeding a preset threshold one by one. Finally, variables that have an independent explanatory contribution to quality variation are retained, forming a causal variable set.

[0035] After the causal variable set is prepared, the data acquisition and causal modeling unit performs causal structure learning to construct a time-delay coded causal graph, which is carried out in the following steps.

[0036] A predefined causal skeleton graph, defined by domain experts, is loaded as structural constraints. This skeleton graph, based on software engineering domain knowledge, specifies several inviolable directed edge constraints—for example, changes in code review defect density can causally affect subsequent defect escape rates, code merge conflict frequency can causally affect build failure frequency, and requirement change frequency can causally affect code commit frequency, etc.—while applying edge missing constraints to several pairs of variables that are generally recognized as having no direct causal relationship.

[0037] Apply temporal direction constraints: Among all directed edges to be inferred, the direction of the edge is only allowed to point from the variable that occurs earlier in time to the variable that occurs later. Directed edges that violate the temporal direction are prohibited, thereby eliminating the interference of reverse temporal pseudo-causality.

[0038] Autocorrelation removal is performed on the time series of each variable in the causal variable set to eliminate the influence of the phased trend and historical inertia within the series on the subsequent independence test, and the autocorrelation-removed residual series is obtained.

[0039] Under the dual constraints of prior skeleton graph and temporal direction, conditional independence tests are performed on the residual sequence: for each pair of candidate variables, the conditional independence statistic between the two variables is calculated under given conditions, using the set of variables associated with the pair in the skeleton graph as a condition; when the statistic exceeds the preset significance threshold, a directed edge is added to the causal graph from the earlier variable to the later variable, thereby gradually constructing a directed acyclic causal graph that meets the constraints.

[0040] For each determined directed edge, time-delay strength estimation is performed: The effect strength between the source and target variables is calculated over multiple pre-defined time-delay windows. The effect strength under each window is quantified and normalized using the conditional mutual information of the residual sequence at that lag distance. The normalized effect strengths under all lag windows are compared, and the lag window with the highest strength is encoded as the propagation delay of that directed edge. Thus, each directed edge in the causal graph carries three pieces of information: edge direction, effect strength, and propagation delay, forming a time-delay encoded causal graph that fully characterizes the dynamic propagation mechanism of each R&D process variable to the quality indicators.

[0041] The attribution analysis unit continuously receives the latest values ​​of process characteristic variables periodically output by the data acquisition and causal modeling unit, and implements online monitoring of the target quality indicator—the online defect escape rate. The unit employs a dynamic baseline deviation detection mechanism: using the current monitoring time as a baseline, it takes a fixed-length historical sliding window backwards, statistically analyzes the distribution characteristics of the target quality indicator within this window, and thus determines the normal fluctuation range; when the current periodic observation value of the target quality indicator exceeds the normal fluctuation range, it is determined that a significant quality deviation has occurred, triggering the attribution analysis process.

[0042] When the system detects a significant spike in the online defect escape rate during a certain monitoring period, the deviation trigger condition is met, and the attribution analysis unit is immediately activated. The unit first locates the target variable node corresponding to the target quality indicator in the time-delay coded causal graph, traverses all its incident directed edges, and extracts all causal parent nodes directly connected to that node, forming a causal parent node set. This set of parent nodes includes several process characteristic variables such as code review defect density, automated test pass rate, hotfix submission frequency, and code cyclomatic complexity.

[0043] The unit determines the covariate adjustment set based on the backdoor criterion: In the time-delay coded causal graph, all common dependent variables that connect the parent node and the target variable through obfuscation paths (e.g., the frequency of demand changes can affect multiple parent nodes at the same time, which is a source of obfuscation) are identified, and the smallest set of variables that can completely block these obfuscation paths are extracted as control variables in the counterfactual model.

[0044] Based on this, the unit constructs a counterfactual attribution effect estimation model using the do operator, uses a generalized additive model as the estimator, takes the covariate adjustment set variables as control inputs, the parent node set variables as intervention inputs, and the target quality index as response variables, and completes the model fitting using historical observation data.

[0045] In the attribution effect calculation phase, each variable in the causal parent node set is processed one by one: the currently processed parent node variable is set to its baseline level using the do operator counterfactually—that is, the mean level of the variable within the normal deviation historical window, representing "the state that the variable should be in when everything is normal"—while keeping the other parent node variables at their actual observed values, and keeping the covariate adjustment set variables at their observed state. These are then substituted into the model to calculate the conditional expectation of the target quality index. The obtained conditional expectation represents "the expected performance of the target index if the current parent node variable is controlled to the normal level". The difference between the actual observed value of the target quality index and this conditional expectation is the attribution effect contribution of the parent node variable to the current quality deviation. After performing the above calculations on all variables in the parent node set one by one, sort them from largest to smallest according to the absolute value of the contribution of the attribution effect. Output the root cause location results together with the transmission time delay information corresponding to each root cause variable in the time delay coding causal graph. The conclusion is: the abnormal defect density in code review is the primary root cause of the jump in defect escape rate, the decrease in automated test pass rate is the secondary root cause, the increase in hotfix submission frequency has a small contribution, and the code cyclomatic complexity has the smallest contribution.

[0046] The iterative optimization unit receives the root cause localization results and performs an index search on the preset strategy library based on the type label and contribution level of the primary root cause, "abnormal code review defect density." Each strategy in the library is indexed by the root cause variable type and contribution range, carrying three fields: root cause characteristic description, intervention action sequence, and expected effect range. The optimized strategy that was found is: increasing the code review blocking standard and introducing mandatory static code scanning gating into the build pipeline. This strategy is expected to reduce the online defect escape rate to within the normal fluctuation range over the next few weeks.

[0047] Based on this plan, the team's R&D managers adjusted the code review process configuration and added static scan blocking rules to the continuous integration pipeline, officially putting the intervention measures into effect. The iterative optimization unit recorded the intervention actions and execution times. When the response cycle corresponding to the propagation lag expired, the target quality indicators were reviewed to confirm that the defect escape rate had returned to normal levels. The actual effect was compared with the expected effect range of the strategy, and the deviation value was used to correct the expected effect range field of the strategy item, improving the accuracy of future matching in the strategy library.

[0048] At the same time, the iterative optimization unit sends a causal graph update trigger signal to the data acquisition and causal modeling unit through the feedback terminal. The unit incorporates the process event data generated during and after the optimization intervention into the causal variable set, re-executes the causal structure learning process described in Section 3, and replaces the old graph with the updated time-delay encoded causal graph, so that the effect intensity and transmission time delay of each directed edge in the causal graph reflect the R&D process status after the intervention.

[0049] At this point, the system has completed a full iterative closed loop of "data acquisition → semantic alignment → variable extraction → causal modeling → deviation detection → counterfactual attribution → optimization matching → effect verification → cause-effect graph update". During continuous operation, each quality deviation event detected and each optimization intervention completed by the system accumulates new feedback information for the cause-effect graph and strategy library. This ensures that the accuracy of root cause localization and the precision of optimization solutions continuously converge and improve over time, ultimately achieving adaptive, interpretable, and closed-loop iterative optimization management of software development process quality.

[0050] Example 2

[0051] This embodiment uses an enterprise-level software development team as an example. This team simultaneously runs four heterogeneous development toolchains: a requirements management platform, a code hosting platform, a continuous integration platform, and a defect tracking platform. Each toolchain independently maintains its own data format and entity naming conventions. The team routinely monitors multiple quality indicators, including iteration requirement completion rate, code merging blocking rate, and version release defect density. After the system is deployed, it sequentially completes five work phases: knowledge graph initialization, causal variable set construction, time-delayed causal graph generation, quality deviation attribution analysis, and closed-loop feedback of optimization solutions.

[0052] In the initial deployment phase, the system administrator configures the node and edge types in a pre-defined R&D entity knowledge graph based on the entity types of the connected toolchains. Node types include six categories: requirement items, code modules, test cases, build tasks, review records, and defect reports. Edge types include five categories: traceability relationships, dependency relationships, triggering relationships, modification relationships, and verification relationships. During graph initialization, the system calculates the co-occurrence frequency between various entity node pairs from historical event data of each toolchain, using the normalized value of the co-occurrence frequency as the initial weight for the corresponding edge type. For example, if a code module node and a test case node frequently appear in the same build task in the historical record, the weight of the corresponding "verification relationship" edge is initialized to a higher value, reflecting prior knowledge of the strength of the association between them; conversely, if a requirement item node and a build task node rarely co-occur in the history, the weight of the corresponding edge is initialized to a lower value. This weight initialization mechanism ensures that the knowledge graph contains certain prior association strength information before use, providing a structural reference for subsequent semantic alignment similarity calculations.

[0053] After the knowledge graph is initialized, the data acquisition and causal modeling unit executes a semantic alignment process during each data retrieval. This process sequentially performs R&D entity identification and attribute extraction operations on each process event data retrieved from heterogeneous toolchains. R&D entity identification aims to determine the type of R&D entity involved in the event from the fields of the event record, such as determining whether the current event is a "code review record" or a "defect report". Attribute extraction aims to extract the attribute key-value pairs of the R&D entity from the event fields, such as extracting "module name", "event status", "associated person in charge", and "event source toolchain". After completing entity identification and attribute extraction, the system converts each attribute field into a semantic vector, representing each attribute in a semantic vectorized manner. This allows records from different toolchains but pointing to the same R&D entity to achieve high similarity in the vector space without relying on literal matching of field names.

[0054] During the similarity matching phase, the system calculates the similarity between the attribute vectors of the R&D entities to be merged and the attribute vectors of existing candidate nodes of the same type in the knowledge graph. When the similarity exceeds a preset matching threshold, it is determined that they point to the same R&D entity, and the event is merged into the unified event sequence corresponding to the candidate node. At the same time, the attribute values ​​of the candidate node are updated with the latest attribute values ​​in this event to maintain the timeliness of the knowledge graph. When the similarity between the R&D entity identified in the same process event and all candidate nodes in the knowledge graph is lower than the preset matching threshold, the system determines that it is a newly emerging R&D entity. A new node is created in the knowledge graph based on the attributes and type of the R&D entity, and an edge is created from the new node to the corresponding source R&D entity node of the toolchain, using the toolchain as the edge type. The new node is added to the knowledge graph to maintain full coverage of R&D entities. Thus, all process events from different toolchains but pointing to the same R&D entity are merged into the unified event sequence of the corresponding node of the R&D entity in the knowledge graph, eliminating the entity confusion problem caused by data heterogeneity for subsequent feature variable extraction and causal modeling.

[0055] After the unified event sequence of each R&D entity is merged, the data acquisition and causal modeling unit extracts process feature variables from each event sequence and performs causal structure learning.

[0056] During the application of temporal direction constraints, the system determines the direction of directed edges solely based on the chronological order of the timestamps of each process event: for any pair of variables determined to have a causal relationship in statistical tests, the variable with the earlier timestamp is identified as the cause node, and the variable with the later timestamp is identified as the result node. All directed edges follow the principle of "time-first → time-later" to determine their direction. The purpose of this constraint is that, in the software development process, the occurrence sequence of process events is usually highly consistent with its causal propagation direction. Temporal direction constraints can effectively eliminate the instability in direction estimation caused by random disturbances and data sparsity, anchoring the identification of causal edge directions to the temporal facts of the process itself, rather than simply relying on the direction estimation results of statistical inference.

[0057] During the conditional independence testing phase, the system performs a test on each pair of candidate variables in the causal variable set: using the other variables involved in the edges associated with the pair of variables in the pre-defined prior causal skeleton graph as the condition set, the system calculates the conditional independence statistic between the pair of variables under the given condition set. When the statistic exceeds the pre-defined independence threshold, a causal relationship is determined between the two variables, and a directed edge is added to the directed acyclic causal graph according to the determined temporal direction; when the statistic is below the threshold, the variables are determined to be conditionally independent, and no edge is added. Through the dual constraints of skeleton graph constraints and temporal constraints, the system eliminates a large number of candidate edges that may be statistically valid but are illogical in business logic, ensuring that the final constructed directed acyclic causal graph is structurally consistent with domain knowledge and supported by statistical tests.

[0058] In the propagation delay encoding stage, for each determined directed edge, the system calculates the conditional mutual information between the source variable sequence and the target variable sequence after time offsetting according to the corresponding window length under at least two pre-set different time lag window lengths. The normalized value of the conditional mutual information under each window is used as the estimated effect strength under that window. After comparing the effect strength under each window, the window length with the largest conditional mutual information value is selected as the propagation delay of that directed edge, and this propagation delay is labeled as a numerical label on the corresponding directed edge of the time-delay encoded causal graph. In this way, each directed edge is labeled with both the causal direction and effect strength, as well as the propagation delay length. The time-delay encoded causal graph fully depicts the dynamic propagation mechanism between various quality-related variables during the R&D process.

[0059] The attribution analysis unit continuously monitors the latest values ​​of the received process characteristic variables. When a significant deviation in a target quality indicator is detected, triggering the attribution analysis process, the system locates the target variable and all its causal parent nodes in the time-delay coded causal graph, determines the covariate adjustment set using the backdoor criterion, and constructs a counterfactual attribution effect estimation model using a generalized additive model as the estimator.

[0060] In the attribution effect contribution calculation stage, the system adopts a step-by-step intervention approach to process each causal parent node sequentially. During each processing, the system only sets the counterfactual value of the currently processed causal parent node to the baseline level using the do operator. This baseline level is the statistical mean of the variable during the normal fluctuation period of the quality indicator, representing the typical value that the variable should have when it is in a healthy operating state. Simultaneously, all other causal parent nodes retain their actual observed values, and the variables in the covariate adjustment set remain in their observed state. Substituting these states into the counterfactual attribution effect estimation model, the conditional expected value of the target quality indicator under this intervention condition is calculated. Subtracting this conditional expected value from the actual observed value of the target quality indicator yields the independent attribution effect contribution of that causal parent node. The physical meaning of this contribution is: the theoretically achievable improvement in the target quality indicator if the causal parent node is restored to the baseline level independently.

[0061] After completing the intervention calculation for all causal parent nodes, the system sorts each parent node from largest to smallest based on the absolute value of the contribution of independent attribution effects. The causal parent node with the largest contribution is marked as the primary root cause. All sorting results, along with the transmission delay labels corresponding to each node, are output as root cause localization results. The transmission delay labels provide a time-series reference for the intervention response of the optimization unit.

[0062] After receiving the root cause localization results, the iterative optimization unit performs scheme matching from the preset strategy library. The strategy library organizes each scheme entry by indexing the root cause variable type and the range of attribution effect contribution. Each scheme entry contains three fields: root cause characteristic description, intervention action sequence, and expected effect range.

[0063] During the historical solution matching phase, the system prioritizes searching for entries in the strategy library that have historical execution records. For the current root cause type, if the strategy library contains a previously executed strategy entry that has been associated with records of "changes in the intensity of each causal edge effect in the time-delay coded causal graph before and after execution," the system will prioritize outputting the strategy with the largest historical intensity change as the recommended strategy. The historical intensity change refers to the magnitude of change in the intensity of each causal edge related to the root cause variable in the time-delay coded causal graph after the execution of a certain optimization strategy. The larger the magnitude of the change, the more significant the actual effect of the strategy in weakening or eliminating the relevant causal transmission path. By prioritizing the recommendation of the strategy with the largest historical intensity change, the system feeds back the actual effect data of historical interventions into the strategy recommendation logic, enabling strategy recommendation to gradually shift from relying on preset rules to being driven by historical empirical evidence, thus achieving continuous self-evolution of the strategy library.

[0064] After the implementation of the plan, the iterative optimization unit sends an update trigger signal to the data acquisition and causal modeling unit via the feedback terminal. Upon receiving the signal, the data acquisition and causal modeling unit incorporates the new process event data generated during and after the implementation into the causal variable set, re-executes the second-stage causal structure learning process, generates an updated time-delay coded causal graph, and replaces the old graph. After the update, the iterative optimization unit associates and stores the changes in the intensity of each causal edge effect in the current implementation plan with the changes in the intensity of each causal edge effect in the two versions of the causal graph, writes it into the corresponding entry in the strategy library, and updates the historical intensity change record of that entry. In this way, the actual effect of each optimization intervention is structurally stored in the strategy library through the changes in the intensity of causal graph effects, providing increasingly rich historical empirical evidence for the recommendation of plans when the same type of root cause appears in the future. The overall attribution accuracy and strategy effectiveness of the system continuously improve with the accumulation of running rounds.

[0065] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A software development process quality measurement and iterative optimization system based on big data, characterized in that, It includes a data acquisition and causal modeling unit, an attribution analysis unit, and an iterative optimization unit; The data acquisition and causal modeling unit is used to acquire process event data from multiple heterogeneous R&D toolchains, semantically align them using a pre-defined R&D entity knowledge graph, extract process feature variables from the aligned sequences, and form a causal variable set after collinearity testing. Using a pre-defined prior causal skeleton graph as a structural constraint and applying temporal direction constraints, the autocorrelation of the causal variable set is eliminated. Under the constraints, the conditional independence test is performed on the residuals to construct a directed acyclic causal graph. The effect intensity of each directed edge is estimated on multiple time lag windows, and the window with the maximum intensity is encoded as the propagation time lag of each directed edge to form a time lag encoded causal graph. The attribution analysis unit, connected to the data acquisition and causal modeling unit at its input end, is used to locate the target variable and the set of causal parent nodes corresponding to the target quality indicator in the time-delay coded causal graph when a significant deviation of the target quality indicator is detected. It uses the backdoor criterion to determine the set of covariate adjustment and constructs a counterfactual attribution effect estimation model with the do operator. It sets the counterfactual of each causal parent node as the baseline level, calculates the conditional expectation of the target quality indicator through the model, and uses the difference between the actual observed value and the conditional expectation as the contribution of the attribution effect. It outputs the root cause localization results in order of the contribution of the attribution effect. The iterative optimization unit has its input end connected to the attribution analysis unit and its feedback end connected to the data acquisition and causal modeling unit. It is used to match optimization schemes from a preset strategy library based on the root cause localization results. After the scheme is executed, the modeling unit is triggered to update the time-delay coded causal graph through the feedback end.

2. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: In the pre-defined R&D entity knowledge graph, node types include requirement items, code modules, test cases, build tasks, review records, and defect reports, while edge types include traceability relationships, dependency relationships, triggering relationships, modification relationships, and verification relationships. The weight of each edge is initialized according to the co-occurrence frequency of the nodes at both ends in historical process events. Semantic alignment performs R&D entity identification and attribute extraction on process event data of various heterogeneous R&D toolchains, matches the identified R&D entities with existing nodes in the knowledge graph according to entity type and attribute similarity, and merges process events that match the same R&D entity into the unified event sequence corresponding to that R&D entity according to timestamp.

3. The software development process quality measurement and iterative optimization system based on big data as described in claim 2, characterized in that: When matching based on attribute similarity, the attribute fields of the R&D entity are semantically vectorized, and the similarity between the attribute vector of the R&D entity identified in the process event to be matched and the attribute vector of each candidate node in the knowledge graph is calculated. When the similarity exceeds the preset matching threshold, it is determined to point to the same R&D entity and the attribute value of the candidate node is updated. When a research and development entity identified in the same process event does not have a candidate node in the knowledge graph whose similarity exceeds the matching threshold, a new node is created with the attributes and type of the research and development entity, and an associated edge is created from the new node to the corresponding source research and development entity node of the toolchain, with the toolchain from which the process event originates as the edge type. The new node is then added to the knowledge graph.

4. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: The conditional independence test calculates the conditional independence statistic for each variable to be tested, using the variables involved in the edges associated with that pair of variables in the prior causal skeleton graph as the condition set. If the condition exceeds a preset threshold, a directed edge is added, and the direction of the edge is determined by the temporal direction constraint, which is from the variable with the earlier timestamp to the variable with the later timestamp. Estimating the effect strength of each directed edge includes: calculating the conditional mutual information between the source variable and the target variable after offsetting by the window under each time lag window, and using its normalized value as the effect strength.

5. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: When applying temporal direction constraints, the data acquisition and causal modeling unit determines the direction of directed edges solely based on the order of the timestamps of each process event. That is, for any pair of variables that are statistically correlated, the variable with the earlier timestamp is determined as the cause node, and the variable with the later timestamp is determined as the result node.

6. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: When calculating the attribution effect contribution of each causal parent node, the attribution analysis unit adopts a step-by-step intervention approach. That is, each time, only the counterfactual value of one causal parent node is set to its normal operating baseline level, while the actual observed values ​​of the remaining causal parent nodes remain unchanged. The conditional expectation of the target quality index after each intervention is calculated, and the difference between the actual observed value and the conditional expectation is used as the independent contribution of the causal parent node. The causal parent node with the largest contribution is marked as the primary root cause.

7. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: The iterative optimization unit is also used to associate and store the optimization scheme executed each time with the change in the intensity of each causal edge effect in the time-delayed causal graph before and after execution; when the same type of root cause localization result is detected again, the optimization unit prioritizes matching the optimization scheme with the largest historical intensity change from the policy library and outputs it as the recommended scheme.

8. The software development process quality measurement and iterative optimization system based on big data as described in claim 1, characterized in that: When estimating the effect strength of each directed edge, the data acquisition and causal modeling unit calculates the conditional mutual information between the source variable and the target variable after offsetting the corresponding window length for at least two pre-set different time lag window lengths. The window length with the largest conditional mutual information value is selected as the propagation delay of the directed edge, and the propagation delay is labeled as a numerical label on the corresponding directed edge of the delay-encoded causal graph.