A power grid engineering cost change tracing method and system
By constructing an uncertainty distribution and decision tree model of power grid engineering design parameters, and combining non-uniform sampling methods and physical coupling constraints, the problems of low credibility and accuracy of power grid engineering cost tracing methods are solved, and reliable location and interpretable assessment of the root causes of cost anomalies are achieved.
Patent Information
- Application Number
- CN202611220495.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-12
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for tracing the cost of power grid projects have low reliability and cannot accurately pinpoint the root cause of cost anomalies. Traditional methods suffer from unstable sensitivity, neglect of physical coupling constraints, and logical inversion, resulting in unreliable tracing results.
By obtaining the current design values of engineering design parameters, constructing their uncertainty distribution, using a decision tree model to traverse split nodes, calculating path switching probability and cost jump variables, combining non-uniform sampling methods to correct expected sensitivity, introducing physical coupling constraints for logical verification, and optimizing parameter perturbation to determine cost anomalies.
It improves the credibility and accuracy of cost tracing for power grid projects, enables interpretable assessment of parameter influence, and allows for precise identification of the root causes of cost anomalies.
Smart Images

Figure CN123160230A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power grid planning technology, and in particular to a method and system for tracing the source of changes in power grid engineering costs. Background Technology
[0002] In power grid construction, precise cost control and the tracing of abnormal fluctuations are crucial for rationally determining design parameters and optimizing engineering schemes. With the expansion of project scale and the increasing complexity of construction environments, traditional static estimation methods based on quotas are no longer sufficient to meet the needs of refined management. Utilizing historical engineering data to build machine learning models for intelligent prediction has become a hot research topic in the industry. These methods aim to uncover the nonlinear relationship between engineering parameters and costs through data-driven approaches, providing quantitative basis for design optimization and cost control.
[0003] Currently, the main methods used for cost prediction are: constructing cost prediction models based on ensemble learning algorithms such as random forests and gradient boosting trees. These models typically directly input terrain, meteorological, and design parameters into a black-box model and output the predicted total price. To reveal the degree of influence of each input parameter on the cost, existing research often employs sensitivity analysis methods. These methods often use locally linear embedding (LLE) or gradient-based numerical differencing, i.e., by randomly perturbing the input parameters within a small neighborhood and observing the output changes to fit the sensitivity. For example, some schemes generate a large number of samples through Monte Carlo sampling, calculate the correlation coefficient between each parameter and the cost as a sensitivity index, and then use the sensitivity index to identify the key parameters causing abnormal costs.
[0004] However, the above methods have the following drawbacks: First, tree-based ensemble models inherently possess a stepped, discontinuous response characteristic. Traditional numerical differencing methods exhibit zero gradients in flat regions and infinite gradients near split points, leading to highly unstable or even distorted calculated sensitivity. Second, purely data-driven sampling methods often ignore the physical coupling constraints between engineering parameters (e.g., high altitudes are inevitably accompanied by specific meteorological conditions), easily generating "adversarial examples" that violate engineering common sense, thus leading to incorrect attribution conclusions. Finally, existing methods may lack a mechanism to verify the internal logical consistency of the model, failing to identify the logical inversion phenomenon of "increasing parameters leading to increased costs for sub-items but decreasing total costs," severely impacting the credibility of the tracing results.
[0005] Therefore, how to design a highly reliable and accurate method for tracing the root causes of abnormal cost fluctuations in power grid projects is a technical problem that urgently needs to be solved in the field of power grid planning. Summary of the Invention
[0006] To address the aforementioned technical problems, this invention provides a method and system for tracing the source of cost anomalies in power grid engineering projects, thereby resolving the technical issues of low reliability and inability to accurately pinpoint the root cause of cost anomalies in existing power grid engineering cost anomaly tracing methods.
[0007] A first aspect of this invention provides a method for tracing the source of cost fluctuations in power grid engineering projects, comprising: Obtain the engineering design parameters of the power grid project to be evaluated. Each engineering design parameter corresponds to a current design value, which is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated. Based on the current design values of the engineering design parameters, construct the uncertainty distribution of the engineering design parameters; Construct an engineering cost prediction model. When the engineering cost prediction model is an open source model, traverse the decision tree set of the engineering cost prediction model to obtain a set of split nodes. The set of split nodes includes several nodes with engineering design parameters as splitting features, and each split node corresponds to a splitting threshold. Based on the uncertainty distribution of the engineering design parameters, the path switching probability of the engineering design parameters at each split node and the cost jump variable caused by crossing the split threshold are calculated respectively. The expected sensitivity of the engineering design parameters is obtained by using the path switching probability and cost jump variable corresponding to each split node. The desired sensitivity is corrected using a non-uniform sampling method to obtain the corrected desired sensitivity. Based on the corrected desired sensitivity, it is determined whether the engineering design parameters are the parameters that cause abnormal costs.
[0008] Furthermore, when the engineering design parameters follow a normal distribution, the path switching probability is obtained by calculating the cumulative probability that the current design value of the engineering design parameters exceeds the splitting threshold; When the engineering design parameters do not follow a normal distribution, the path switching probability is obtained by calculating the proportion of the fluctuation range of the engineering design parameters that covers the splitting threshold.
[0009] Furthermore, based on the uncertainty distribution of the engineering design parameters, the cost jump variables caused by the engineering design parameters crossing the splitting threshold at each splitting node are calculated, including: When the current design value fluctuates within the local constraint space, after crossing each split threshold, the weighted average of all leaf nodes in the left subtree of each split node is calculated to obtain the corresponding first weighted average. Calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. Based on the first and second weighted average values of each split node, the corresponding weighted average difference is obtained, and the weighted average difference is determined as the cost jump variable of each split node.
[0010] Furthermore, by utilizing the path switching probability and cost jump variable corresponding to each split node, the expected sensitivity of the engineering design parameters is obtained, including: Calculate the difference between the splitting threshold at each splitting node and the current design value to obtain the corresponding difference result; The ratio of the difference result corresponding to each split node to the cost jump variable is determined as the unit distance response intensity; The expected sensitivity of the engineering design parameters is obtained by summing the product of the unit distance response intensity and the path switching probability corresponding to each split node.
[0011] Furthermore, the desired sensitivity is corrected using a non-uniform sampling method to obtain the corrected desired sensitivity, including: By using a non-uniform sampling method, data is sampled within the local constraint space of the current design value to obtain engineering design parameter sampling data. The engineering design parameter sampling data is divided into multiple sampling data groups, which are then input into the engineering cost prediction model for prediction to obtain the corresponding cost prediction value. A partial linear model was obtained by fitting the data from each sampled data set and each cost prediction value. Determine the tangent slope of the local piecewise linear model at the current design parameters, and then sum the tangent slope and the desired sensitivity in a weighted manner to obtain the corrected desired sensitivity.
[0012] Furthermore, using a non-uniform sampling method, data is sampled within the local constraint space of the current design value to obtain engineering design parameter sampling data, including: The local constraint space is divided into several basic intervals, and the basic sampling density of each basic interval is determined. The splitting thresholds that are in the local constraint space are selected to obtain the splitting thresholds to be processed; The neighborhood radius will be set with each split threshold to be processed as the center, and the sampling density within the neighborhood radius will be set to N times the base sampling density. Set the sampling density that is not within the neighborhood radius to K times the base sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
[0013] Furthermore, when the constructed engineering cost prediction model is a closed-source model, the expected sensitivity can be obtained through the following steps: Construct physical coupling constraint conditions consisting of hard constraints and soft constraints. Hard constraints characterize the physical and logical relationships or engineering mandatory rules that the engineering design parameters must satisfy, while soft constraints characterize the statistical correlation of the engineering design parameters. Random sampling is performed on the current design value within the local constraint space to obtain a candidate sample set, which consists of several candidate sample data. Candidate sample data that does not meet the hard constraints are removed from the candidate sample set, and candidate sample data that does not meet the soft constraints are corrected or reduced in weight to obtain the effective sample set. The cost prediction model is used to predict the effective sample set to obtain a set of predicted cost values. By fitting the effective sample set and the cost prediction set, a locally weighted linear regression model is obtained, and the regression coefficients of the locally weighted linear regression model are used as the expected sensitivity.
[0014] Furthermore, when the constructed engineering cost prediction model is a closed-source model, the engineering cost prediction model is subjected to logical anomaly verification, including: Construct a cost hierarchy transmission structure for the power grid engineering project to be evaluated. The cost hierarchy transmission structure includes the engineering design parameter layer, the engineering sub-item cost layer, and the total engineering cost layer. Calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer to obtain the expected sensitivity of the first layer; Calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer of expected sensitivity; calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. Based on the first-level sensitivity and the second-level sensitivity, the indirect expected sensitivity is obtained, and the consistency residual between the direct expected sensitivity and the indirect expected sensitivity is calculated. If the consistency residual is greater than the preset residual threshold, it is determined that there is an abnormal transmission logic in the engineering cost prediction model.
[0015] Furthermore, after obtaining the expected sensitivity, it also includes: Construct an optimization problem with the objective of minimizing parameter perturbation and the constraints of cost and physical coupling. Based on the expected sensitivity, the optimization problem is solved to obtain the minimum parameter disturbance, which is then set as the safety margin of the engineering design parameters. Based on the safety margin, engineering rectification measures were obtained.
[0016] Another embodiment of the present invention provides a power grid engineering cost fluctuation traceability system, comprising: The engineering design parameter acquisition module is used to acquire the engineering design parameters of the power grid project to be evaluated. Each engineering design parameter corresponds to a current design value, which is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated. The probability distribution construction module constructs the uncertainty distribution of engineering design parameters based on the current design values of the engineering design parameters; The engineering cost prediction model construction module is used to build an engineering cost prediction model. When the engineering cost prediction model is an open source model, the decision tree set of the engineering cost prediction model is traversed to obtain a set of split nodes. The set of split nodes includes several nodes with engineering design parameters as split features, and each split node corresponds to a split threshold. The cost jump variable calculation module is used to calculate the path switching probability of engineering design parameters at each split node and the cost jump variable caused by crossing the split threshold, based on the uncertainty distribution of engineering design parameters. The expected sensitivity calculation module is used to calculate the expected sensitivity of engineering design parameters by using the path switching probability and cost jump variable corresponding to each split node. The expected sensitivity correction module is used to correct the expected sensitivity using a non-uniform sampling method to obtain the corrected expected sensitivity. Based on the corrected expected sensitivity, it is determined whether the engineering design parameters are parameters that cause abnormal costs.
[0017] Furthermore, the expected sensitivity calculation module includes a path switching probability determination unit, wherein, The path switching probability determination unit is used to calculate the cumulative probability that the current design value of the engineering design parameter exceeds the splitting threshold when the engineering design parameter follows a normal distribution, and to calculate the proportion of the fluctuation range of the engineering design parameter that covers the splitting threshold when the engineering design parameter does not follow a normal distribution.
[0018] Furthermore, the cost jump variable calculation module includes: The first weighted average calculation unit is used to calculate the weighted average of all leaf nodes of the left subtree of each split node after crossing each split threshold when the current design value fluctuates within the local constraint space, so as to obtain the corresponding first weighted average. The second weighted average calculation unit is used to calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. The weighted average difference calculation unit is used to obtain the corresponding weighted average difference based on the first weighted average and the second weighted average of each split node, and to determine the weighted average difference as the cost jump variable of each split node.
[0019] Furthermore, the expected sensitivity calculation module includes: The difference result calculation unit is used to calculate the difference between the splitting threshold at each splitting node and the current design value, and obtain the corresponding difference result; The unit distance response intensity determination unit is used to determine the ratio of the difference result corresponding to each split node to the cost jump variable as the unit distance response intensity; The expected sensitivity determination unit is used to accumulate the product of the unit distance response intensity and the path switching probability corresponding to each split node to obtain the expected sensitivity of the engineering design parameters.
[0020] Furthermore, the expected sensitivity correction module includes: The engineering design parameter sampling unit is used to sample data within the local constraint space of the current design value using a non-uniform sampling method to obtain engineering design parameter sampling data. The cost prediction unit is used to divide the engineering design parameter sampling data into multiple sampling data groups, input them into the engineering cost prediction model for prediction, and obtain the corresponding cost prediction value. The fitting unit is used to fit the sampled data sets and the cost prediction values to obtain a local piecewise linear model. The correction unit is used to determine the tangent slope of the local piecewise linear model at the current design parameters, and to obtain the corrected expected sensitivity by weighted summation of the tangent slope and the expected sensitivity.
[0021] Furthermore, the engineering design parameter sampling unit includes: The basic sampling density determination sub-unit is used to divide the local constraint space into several basic intervals and determine the basic sampling density of each basic interval. The filtering sub-unit is used to filter out the splitting thresholds that are in the local constraint space, and obtain the splitting thresholds to be processed. The first sampling density setting subunit is used to set a neighborhood radius centered on each splitting threshold to be processed, and set the sampling density within the neighborhood radius to be N times the base sampling density. The first sampling density setting subunit is used to set the sampling density that is not within the neighborhood radius to K times the base sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
[0022] Furthermore, when the engineering cost prediction model is an open-source model, the expected sensitivity is obtained through the power grid engineering cost anomaly tracing system of this embodiment. When the engineering cost prediction model is a closed-source model, the expected sensitivity calculation module further includes: The physical coupling constraint determination unit is used to construct physical coupling constraint conditions consisting of hard constraints and soft constraints. Hard constraints characterize the physical logical relationships or engineering mandatory rules that the engineering design parameters must satisfy, while soft constraints characterize the statistical correlation of the engineering design parameters. The candidate sample set determination unit is used to randomly sample the current design value within the local constraint space to obtain a candidate sample set, wherein the candidate sample set consists of several candidate sample data. The effective sample set determination unit is used to remove candidate sample data that does not meet the hard constraints from the candidate sample set, and to correct or reduce the weight of candidate sample data that does not meet the soft constraints to obtain the effective sample set. The cost prediction value set determination unit is used to predict the effective sample set using the engineering cost prediction model to obtain the cost prediction value set; The expected sensitivity determination unit is used to fit the effective sample set and the cost prediction value set to obtain a locally weighted linear regression model, and the regression coefficient of the locally weighted linear regression model is used as the expected sensitivity.
[0023] Furthermore, the expected sensitivity calculation module also includes: The cost hierarchy transmission structure determination unit is used to construct the cost hierarchy transmission structure of the power grid project to be evaluated. The cost hierarchy transmission structure includes the engineering design parameter layer, the engineering sub-item cost layer, and the total engineering cost layer. The first layer of expected sensitivity determination unit is used to calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer, and obtain the first layer of expected sensitivity; The direct expected sensitivity determination unit is used to calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer of expected sensitivity, and to calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. The consistency residual determination unit is used to obtain the indirect expected sensitivity based on the first-level sensitivity and the second-level sensitivity, and to calculate the consistency residual between the direct expected sensitivity and the indirect expected sensitivity. The transmission logic anomaly judgment unit is used to determine that there is a transmission logic anomaly in the engineering cost prediction model if the consistency residual is greater than a preset residual threshold.
[0024] Furthermore, the optimization problem construction module is used to construct optimization problems with the goal of minimizing parameter perturbation and with cost and physical coupling constraints as constraints; The safety margin determination module is used to solve the optimization problem based on the expected sensitivity, obtain the minimum parameter disturbance, and set the minimum parameter disturbance as the safety margin of the engineering design parameters. The rectification measures determination module is used to determine engineering rectification measures based on safety margins.
[0025] Compared with the prior art, the beneficial effects of the embodiments of the present invention are at least one of the following: This method obtains the engineering design parameters and current design values of the power grid project to be evaluated. Based on the current design values, it constructs the uncertainty distribution of each parameter to characterize its objectively existing fluctuation range. For an open-source engineering cost prediction model using a tree model structure, it extracts all splitting nodes with the target engineering design parameter as the splitting feature and their corresponding splitting thresholds by traversing the decision tree set within the model. Combining the uncertainty distribution of the parameter, it calculates the path switching probability at each splitting node and the cost jump variable caused by crossing the splitting threshold. Then, it integrates the probability and jump contribution of each node to obtain the expected sensitivity of the parameter. A non-uniform sampling method is then introduced to correct the expected sensitivity. Finally, based on the corrected expected sensitivity, it determines whether the parameter is a key factor causing cost anomalies. This method combines the internal structure analysis of the model with the quantification of parameter uncertainty, realizing the interpretable assessment of parameter influence and improving the credibility and accuracy of tracing engineering cost anomalies. Attached Figure Description
[0026] Figure 1 This is an evaluation flowchart of the method for tracing the source of changes in power grid engineering costs in one embodiment of the present invention; Figure 2 This is a system block diagram of a power grid engineering cost fluctuation tracing system in one embodiment of the present invention; The attached figures are labeled as follows: 200, Power Grid Engineering Cost Anomaly Tracing System; 201, Engineering Design Parameter Acquisition Module; 202, Probability Distribution Construction Module; 203, Engineering Cost Prediction Model Construction Module; 204, Cost Jump Variable Calculation Module; 205, Expectation Sensitivity Calculation Module; 206, Expectation Sensitivity Correction Module. Detailed Implementation
[0027] 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. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0028] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing specific embodiments only and is not intended to limit the invention. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0029] One embodiment of the present invention provides a method for tracing the source of cost fluctuations in power grid engineering projects. For details, please refer to [link to relevant documentation]. Figure 1 , Figure 1 The flowchart shown is a method for tracing the source of changes in power grid engineering costs according to one embodiment of the present invention, including steps S101 to S106, the specific steps of which are as follows: S101. Obtain the engineering design parameters of the power grid project to be evaluated, wherein the engineering design parameters correspond to a current design value, and the current design value is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated.
[0030] In this embodiment, engineering design parameters refer to vectors that can quantitatively describe the physical and environmental characteristics of a power grid project. These vectors include, but are not limited to, topographic and geomorphological parameters, meteorological environmental parameters, and engineering design parameters. For example, topographic and geomorphological parameters may include altitude and slope; meteorological environmental parameters may include basic wind speed, design icing thickness, and thunderstorm days; and engineering design parameters may include tower weight, foundation concrete volume, and conductor cross-sectional area. Each engineering design parameter corresponds to a current design value, which is used to quantitatively describe the physical or environmental characteristics of the power grid project under evaluation in its current design state. In practical applications, multiple engineering design parameters of the power grid project under evaluation can also be obtained to form an engineering design parameter set, which serves as the data basis for subsequent anomaly tracing. To eliminate the influence of different parameter dimensions, the acquired raw data usually needs to be standardized and preprocessed. The specific preprocessing formula is as follows: in, These are the standardized engineering design parameter values. These are the current design values corresponding to the originally collected engineering design parameters. This is the mean value calculated using historical datasets of engineering design parameters. This is the standard deviation calculated from historical data of engineering design parameters.
[0031] It should be noted that the current design values of engineering design parameters are usually derived from the feasibility study report or preliminary design drawings of the power grid project. The standard deviation characterizing uncertainty... This can be obtained through several methods: First, statistical analysis based on historical meteorological data of the region, such as analyzing the variance of wind speed over the past 30 years; second, assignment based on expert experience databases, such as setting a larger standard deviation for areas with unclear geological conditions; and third, based on the allowable deviation range in design specifications, such as the specification allowing a ±5% error in tower weight, from which the standard deviation can be calculated.
[0032] S102. Based on the current design values of the engineering design parameters, construct the uncertainty distribution of the engineering design parameters.
[0033] In this embodiment, because engineering design parameters are affected by measurement errors or design margins, their specific values are usually not definite scalars, but rather random variables that follow a specific probability distribution. For example, when engineering design parameters follow a normal distribution, they can follow a uniform distribution or a normal distribution. When engineering design parameters follow a normal distribution, their probability density function is: In the formula, Let the probability density function be the engineering design parameters. These are the current design values for the engineering design parameters. It is an exponential function. The standard deviation characterizes the uncertainty of engineering design parameters.
[0034] S103. Construct an engineering cost prediction model. When the engineering cost prediction model is an open-source model, traverse the decision tree set of the engineering cost prediction model to obtain a set of split nodes. The set of split nodes includes several nodes with engineering design parameters as splitting features, and each split node corresponds to a splitting threshold.
[0035] In this embodiment, the engineering cost prediction model is a machine learning model pre-trained based on historical power grid engineering data. This model constructs a nonlinear mapping relationship between the aforementioned engineering design parameters and the engineering cost. Preferably, the engineering cost prediction model in this embodiment is based on a decision tree ensemble model, such as an extreme gradient boosting tree or a random forest model. These models are open-source, with a completely transparent and accessible internal structure, facilitating subsequent traversal of the tree structure, extraction of splitting information, calculation of path switching probabilities, and cost jump variables. Furthermore, these models exhibit high prediction accuracy when processing tabular data, and their tree structure contains rich feature interaction information, providing a foundation for subsequent expectation sensitivity calculations. When using the engineering cost prediction model for cost prediction, the model is first loaded onto an electronic device. Specifically, the loading process involves reading the trained model file and its weight parameters into memory, constructing a callable prediction function. This embodiment does not limit the specific electronic device. For example, the electronic device in this embodiment can be a computer; or the electronic device in this embodiment can be a mobile phone; or the electronic device in this embodiment can also be a server.
[0036] In this embodiment, the decision tree set of the engineering cost prediction model is traversed to obtain the split node set. This means traversing all decision trees in the model and identifying all nodes that use the current engineering design parameters as splitting features, forming a split node set. The corresponding splitting thresholds for these splitting nodes are also extracted to form a splitting threshold set; that is, one splitting node corresponds to one splitting threshold. For example, for an engineering cost prediction model built using ensemble tree algorithms such as XGBoost or Random Forest, the model contains hundreds or thousands of decision trees. Each tree consists of multiple splitting nodes and leaf nodes. Each splitting node corresponds to a specific splitting condition: "If the engineering design parameters are less than a preset threshold, proceed to the left subtree; otherwise, proceed to the right subtree." The tree structure can be parsed by traversing the model object (Booster) stored in memory. For each tree, a depth-first search or breadth-first search algorithm is used to traverse all nodes. For each node, its splitting feature number is checked to see if it matches the engineering design parameter number to be analyzed. If they match, the preset threshold of that node is recorded as the splitting threshold. Finally, the extracted tree IDs and splitting thresholds are stored in a structured mapping table, which serves as an intermediate data cache for quick access by the steps, thereby avoiding repeated traversal of the tree structure and greatly improving the real-time performance of the algorithm.
[0037] It should be noted that, regarding the determination of node thresholds, for parameters with clearly defined physical value ranges, physical boundaries are used as cutoff points. Taking the main parameters of power grid engineering as an example: the lower physical limit of basic wind speed V is 15 m / s, and the upper physical limit is 50 m / s, based on GB50009 Code for Loads on Building Structures; the lower physical limit of icing thickness I is 0 mm, and the upper physical limit is 40 mm, based on DL / T5551 Code for Design of Transmission Lines; the lower physical limit of snow load is 0 kN / m², and the upper physical limit is 1.5 kN / m², based on regional meteorological statistics; the lower physical limit of altitude H is 0 m, and the upper physical limit is 4000 m, based on the actual distribution range of the project. For parameters without clearly defined physical boundaries, the 3σ principle is used for cutoff.
[0038] S104. Based on the uncertainty distribution of the engineering design parameters, calculate the path switching probability of the engineering design parameters at each split node and the cost jump variable caused by crossing the split threshold.
[0039] In this embodiment, the path switching probability refers to the probability that when the current design value of the engineering design parameter fluctuates within the local constraint space, its value will cross a splitting threshold, thereby causing a change in the prediction path of the engineering cost prediction model. A change in the path means that the leaf node where the corresponding value of the engineering design parameter ultimately falls changes, leading to a jump in the predicted cost value. The cost jump refers to the instantaneous jump magnitude of the cost prediction value output by the engineering cost prediction model when the current design value of the engineering design parameter crosses a node threshold during fluctuation.
[0040] In one embodiment, when the engineering design parameters follow a normal distribution, the path switching probability is obtained by calculating the cumulative probability that the current design value of the engineering design parameters exceeds the splitting threshold; When the engineering design parameters do not follow a normal distribution, the path switching probability is obtained by calculating the proportion of the fluctuation range of the engineering design parameters that covers the splitting threshold.
[0041] In this embodiment, when the engineering design parameters follow a normal distribution, the cumulative probability of the current design value of the engineering design parameters exceeding the splitting threshold during fluctuations is calculated. The formula for calculating this cumulative probability is as follows: In the formula, For engineering design parameter values across the first The path switching probability of a split threshold, The cumulative distribution function of the standard normal distribution. For the first A splitting threshold, This is the current design value. The standard deviation of the uncertainty of engineering design parameters.
[0042] If the engineering design parameters do not conform to a normal distribution, for example, if they follow a uniform distribution, the path switching probability is calculated by determining the proportion of the fluctuation range of the engineering design parameters that covers the node threshold when the parameters fluctuate. If non-parametric methods such as kernel density estimation are used to describe the uncertainty of the engineering design parameters, the probability quality of the fluctuation range is calculated through numerical integration.
[0043] In one embodiment, based on the uncertainty distribution of the engineering design parameters, the cost jump variables caused by the engineering design parameters crossing the splitting threshold at each splitting node are calculated, including: When the current design value fluctuates within the local constraint space, after crossing each split threshold, the weighted average of all leaf nodes in the left subtree of each split node is calculated to obtain the corresponding first weighted average. Calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. Based on the first and second weighted average values of each split node, the corresponding weighted average difference is obtained, and the weighted average difference is determined as the cost jump variable of each split node.
[0044] In this embodiment, when the cost jump variable occurs, the difference between the weighted average of all leaf nodes in the left subtree of each split node and the weighted average of all leaf nodes in the right subtree is calculated when the current design value fluctuates across the split threshold corresponding to each split node in the local constraint space. The weighted average in this embodiment refers to the weighted average of all possible prediction results under the left or right subtree of the split node. Calculating the weighted average of all leaf nodes in the left subtree requires the predicted value and weighting coefficient of each leaf node. The predicted value of each leaf node is determined during the training phase of the cost prediction model, and the weighting coefficient is determined by the sample coverage of that leaf node. For example, for gradient boosting tree (GBDT) or XGBoost models, the predicted value is calculated based on the sum of the first derivative (gradient) and the second derivative (Hessian matrix) of all training samples falling on that leaf node. The calculation formula is: In the formula, For predicted values, This is the sum of the gradients of all samples falling within this leaf node. Let be the sum of the second derivatives of all samples falling within that leaf node. This is the regularization parameter.
[0045] When calculating the weighted average of the left (or right) subtree, the probability of occurrence varies depending on the number of samples contained in each leaf node. Therefore, the sum of the second derivatives of the samples or the number of samples is used as the weighting coefficient. For example, assuming the left subtree contains M leaf nodes, the formula for calculating the weighted average of the left subtree is: In the formula, For the first The predicted value of each leaf node. For the first The coverage (weight coefficient) of each leaf node.
[0046] The weighted average calculated using the above formula represents the expected average cost contribution after the current design value fluctuates and enters the left subtree through the split node. After calculating the weighted average of the right subtree using the same formula, the difference between the two is the cost jump variable brought about by the split node.
[0047] It should be further explained that when traversing each split node and constructing the mapping table of tree number and split threshold, the cost jump variable of each split node is calculated at the same time, and the cost jump variable, tree number and split threshold are stored in a structured mapping table.
[0048] S105. Calculate the expected sensitivity of the engineering design parameters by using the path switching probability and cost jump variable corresponding to each split node.
[0049] In one embodiment, the expected sensitivity of the engineering design parameters is calculated using the path switching probability and cost jump variable corresponding to each split node, including: Calculate the difference between the splitting threshold at each splitting node and the current design value to obtain the corresponding difference result; The ratio of the difference result corresponding to each split node to the cost jump variable is determined as the unit distance response intensity; The expected sensitivity of the engineering design parameters is obtained by summing the product of the unit distance response intensity and the path switching probability corresponding to each split node.
[0050] In this embodiment, the expected sensitivity is not a mathematical derivative in the traditional sense, because the tree model is not differentiable at the threshold. Instead, it is a probability-weighted average response intensity. Its physical meaning is: considering parameter uncertainty, the expected cost change caused by a one-unit change in engineering design parameters. This index is obtained by weighting and synthesizing each potential jump event. The specific formula for calculating the expected sensitivity is: In the formula, To change the quantity for the purpose of cost, For the first The path switching probability of each split node For the first Cost jump variables of each split node For the first The splitting threshold of each splitting node. These are the current design parameters.
[0051] It should be noted that the unit distance response intensity refers to the ratio of the calculated cost jump variable to the difference between the split threshold and the current design value. The unit distance response intensity acts similarly to the concept of field strength in physics; that is, the larger the jump amplitude and the closer to the current point, the more significant the impact of the node threshold on the sensitivity of the current design value. Multiplying by the probability path switching probability is to weight this intensity based on its existence. If the probability of crossing the node threshold is very small—for example, if the split threshold is extremely far from the current design value, exceeding the 3σ range—then even if the jump amplitude is large, its contribution to the expected sensitivity will be attenuated to negligible by the probability term. This design cleverly solves the sensitivity calculation problem caused by the stepped response of the tree model, achieving smoothing and continuity of local sensitivity.
[0052] It should be noted that expected sensitivity is not the expected change in construction cost in the traditional sense, but rather an indicator of the strength of the expected marginal response. Its design purpose is to quantify the comprehensive impact of parameters on construction cost within a range of uncertainty. Specifically, for each splitting threshold, its sensitivity contribution term is defined as: in, For the first Sensitivity contribution term for each threshold, Node threshold The probability of being surpassed. For crossing node thresholds Cost jump variable at time For the first A splitting threshold, This represents the current design value, where |·| indicates taking the absolute value.
[0053] The physical meaning of this sensitivity contribution is: the probability of a node threshold being crossed, multiplied by the cost response rate per unit distance when that threshold is crossed. The sum of the contributions for each threshold yields the comprehensive sensitivity index of the parameter at the current location. Each contribution measures the local response characteristics at different threshold locations, rather than the cumulative response over the same parameter's variation. The probability of being crossed decays rapidly as the node threshold moves further away from the current design value, and the distance normalization factor... Further reducing the weight of the far-end threshold, the combined effect of both factors results in good convergence of the summation result. From an engineering application perspective, this indicator answers the question: how many sensitive threshold boundaries exist around the parameter, and the combined influence of these boundaries, rather than "how much the cost changes after a specific change in the parameter." The latter should use deterministic calculations rather than probabilistic weighting. In existing technologies, if the expected cost change in the traditional sense needs to be calculated, the following integral form should be used. The expected sensitivity index in this embodiment has a positive correlation with the aforementioned expected cost change, but the calculation is simpler and can identify the independent contribution of each threshold, resulting in better interpretability.
[0054] To clarify the calculation process in step 105, a specific numerical calculation example is provided below: Assume we want to analyze the sensitivity of the parameter "ice thickness" to the "tower construction cost." The input conditions are set as follows: the current design value of the parameter is 10mm, and the standard deviation of the parameter uncertainty σ = 2mm. The construction cost prediction model contains only two relevant decision trees, extracting two splitting thresholds. The first splitting threshold is 12mm, corresponding to a cost jump variable of +500,000 yuan, meaning that if the ice thickness exceeds 12mm, the cost increases by 500,000 yuan. The second splitting threshold is 9mm, corresponding to a cost jump variable of -300,000 yuan, meaning that if the ice thickness is less than 9mm, the cost decreases by 300,000 yuan; that is, changing from 9mm to 10mm increases the cost by 300,000 yuan. Then, the difference between the current design value and the first splitting threshold, along with the path switching probability, is calculated. The difference is 12 - 10 = 2mm, or 1σ. In a standard normal distribution, the cumulative probability from 0 to 1σ is approximately 0.3413, therefore the path switching probability is 0.3413. Next, the difference between the current design value and the second splitting threshold, along with the path switching probability, is calculated. The difference is 9-10=-1mm, or 0.5σ. In a standard normal distribution, the cumulative probability from 0 to 0.5σ is approximately 0.1915, therefore the path switching probability is 0.1915. Then, the unit response intensity is calculated. The unit distance response intensity corresponding to the first splitting node is 50 / 2=250,000 yuan / mm. The unit distance response intensity corresponding to the second splitting node is -30 / -1=300,000 yuan / mm. The expected sensitivity is (0.3413*25)+(0.1915*30)=142,775 yuan / mm. The calculation results show that near the current design value, every 1mm increase in icing thickness is expected to increase the tower cost by approximately 142,800 yuan. This value comprehensively considers the probability of future excessive icing leading to enhanced design, and has strong engineering guiding significance.
[0055] S106. Using a non-uniform sampling method, the expected sensitivity is corrected to obtain the corrected expected sensitivity. Based on the corrected expected sensitivity, it is determined whether the engineering design parameters are parameters that cause abnormal costs.
[0056] In this embodiment, the non-uniform sampling method refers to denser sampling near the critical splitting threshold. This sampling method can capture more subtle local nonlinear features, thereby correcting or refining the sensitivity matrix. Although the desired sensitivity can be obtained analytically as described in steps S101 to S105, in some extreme cases, such as when the threshold distribution is extremely non-uniform, the result of the analytical method may be too smooth. Therefore, the non-uniform sampling method is used to correct the desired sensitivity. Furthermore, the correction method proposed in this embodiment is also applicable to pure black-box models where the tree structure cannot be obtained; it is only necessary to know the locations of potential transition points.
[0057] In one embodiment, a non-uniform sampling method is used to correct the desired sensitivity to obtain a corrected desired sensitivity, including: By using a non-uniform sampling method, data is sampled within the local constraint space of the current design value to obtain engineering design parameter sampling data. The engineering design parameter sampling data is divided into multiple sampling data groups, which are then input into the engineering cost prediction model for prediction to obtain the corresponding cost prediction value. A partial linear model was obtained by fitting the data from each sampled data set and each cost prediction value. Determine the tangent slope of the local piecewise linear model at the current design parameters, and then sum the tangent slope and the desired sensitivity in a weighted manner to obtain the corrected desired sensitivity.
[0058] In this embodiment, the engineering design parameter sampling data refers to the data obtained by constructing a non-uniform sampling grid within the local constraint space of the current design value and sampling within the grid. This sampling grid has a higher sampling density near the splitting threshold and a lower sampling density far from the splitting threshold. The constructed engineering design parameter sampling data is then used to probe the local response of the model; that is, the engineering design parameter sampling data is input into the engineering cost prediction model for prediction, and the corresponding prediction results are obtained. For example, the engineering design parameter data is divided into multiple groups, and each group is input into the engineering cost prediction model for prediction, obtaining the cost prediction value corresponding to each group. Then, linear fitting is performed using each group and the corresponding cost prediction value to obtain a local piecewise linear model. In this embodiment, the local piecewise linear model means that instead of attempting to fit the entire local space with a straight line, the fitted line is allowed to break at the splitting threshold. The specific fitting form of the local piecewise linear model can be expressed as: in, This is the projected cost. Data sampling for engineering design parameters, The intercept is... Based on the slope, For node threshold The slope change at a given point, where ReLU is the rectified linear unit function.
[0059] The above parameters can be solved by minimizing the prediction error (such as mean squared error, MSE) for a local piecewise linear model. This piecewise fitting can accurately depict the different sensitivity characteristics of the parameters in different intervals. For example, the sensitivity is 0 when the icing is less than 10 mm, but it spikes to 50 once it exceeds 10 mm.
[0060] If the expected sensitivity obtained in step 105 provides a globally average trend, then the local piecewise linear model in this embodiment can provide a more location-specific correction value. The specific correction strategy is as follows: a weighted average is taken between the expected sensitivity and the slope of the tangent line of the local piecewise linear model at the current design value to obtain the corrected expected sensitivity. The specific expression for the corrected expected sensitivity is: In the formula, The confidence weights depend on the goodness of fit of the sampling points. The slope of the tangent line for the current design parameters. For expected sensitivity.
[0061] If a piecewise linear model shows that the current design parameters are exactly in a flat region between two thresholds, and the expected sensitivity is high, the diagnostic system can output more precise suggestions: "Although increasing the current parameters will lead to potential risks (high expected sensitivity), the cost is stable within the current ±1mm range (low local slope), and it is recommended that the design margin be controlled within 1mm." Through this correction, this embodiment not only provides a qualitative conclusion on whether the parameters are sensitive, but also provides a quantitative boundary on the range of sensitivity, greatly improving the granularity and practical value of anomaly tracing.
[0062] In one embodiment, a non-uniform sampling method is used to sample data within the local constraint space of the current design value to obtain engineering design parameter sampling data, including: The local constraint space is divided into several basic intervals, and the basic sampling density of each basic interval is determined. The splitting thresholds that are in the local constraint space are selected to obtain the splitting thresholds to be processed; The neighborhood radius will be set with each split threshold to be processed as the center, and the sampling density within the neighborhood radius will be set to N times the base sampling density. Set the sampling density that is not within the neighborhood radius to K times the base sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
[0063] The non-uniform sampling method in this embodiment constructs a non-uniform sampling grid through the following steps: The local constraint space is divided into several basic intervals, and the basic sampling density of each basic interval is determined. Then, the splitting thresholds falling within the local constraint space are identified to obtain the splitting thresholds to be processed. A neighborhood radius is set with each splitting threshold as the center. Within the neighborhood radius, the sampling density is set to N times the basic sampling density. Regions not within the neighborhood radius are sparsely sampled, i.e., their sampling density is set to 0.1 times the basic sampling density. It should be noted that N is an integer greater than 1, such as 5 times or 10 times, and K is a positive number greater than 0 and less than 1, such as 0.1 or 0.2. The specific values can be determined according to actual needs. This non-uniform sampling grid can be constructed by transforming the probability density function. For example, a mixed distribution can be constructed as the sampling distribution, which consists of a wide-range uniform distribution and several Gaussian distributions centered on the node thresholds. Sampling from this mixed distribution naturally achieves the effect of "more samples near the threshold and fewer samples in blank areas."
[0064] In one embodiment, when the constructed engineering cost prediction model is a closed-source model, the expected sensitivity can be obtained through the following steps: Construct physical coupling constraint conditions consisting of hard constraints and soft constraints. Hard constraints characterize the physical and logical relationships or engineering mandatory rules that the engineering design parameters must satisfy, while soft constraints characterize the statistical correlation of the engineering design parameters. Random sampling is performed on the current design value within the local constraint space to obtain a candidate sample set, which consists of several candidate sample data. Candidate sample data that does not meet the hard constraints are removed from the candidate sample set, and candidate sample data that does not meet the soft constraints are corrected or reduced in weight to obtain the effective sample set. The cost prediction model is used to predict the effective sample set to obtain a set of predicted cost values. By fitting the effective sample set and the cost prediction set, a locally weighted linear regression model is obtained, and the regression coefficients of the locally weighted linear regression model are used as the expected sensitivity.
[0065] In this embodiment, since the engineering cost prediction model is a closed-source model, meaning the internal tree structure of the model cannot be obtained, interaction can only be achieved through the input / output interface. While traditional locally linear embedding methods are usable, they often overlook the inherent physical constraints between power grid engineering parameters. For example, high-altitude areas are typically accompanied by high wind speeds, leading to generated disturbance samples that do not conform to actual engineering conditions, resulting in false sensitivity calculations. Therefore, this embodiment introduces physical coupling constraints to force the sampling process to follow physical laws, ensuring the authenticity and reliability of sensitivity calculations. The specific implementation process is as follows: constructing physical coupling constraints. Physical coupling constraints are not simply numerical range restrictions, but rather refer to the logical relationships or statistical dependencies between parameters. Specifically, this dependency can be expressed as hard constraints or soft constraints. Hard constraints can be described by logical expressions. For example, for transmission line engineering, there is a strong correlation between "icing zone type" and "altitude," and the expression for its constraint is: IF(Altitude>2000)THEN(Ice_Thickness>=10) The physical meaning of this constraint is: when the altitude exceeds 2000 meters, the designed ice thickness cannot be less than 10 millimeters.
[0066] Soft constraints are described using multidimensional joint probability distributions or conditional probability tables. For example, the relationship between "basic wind speed" and "terrain roughness" can be expressed as follows: P_wind_terrain(v,type)=P(Wind_Speed=v|Terrain_Type=type) The specific numerical example of this constraint is as follows: when the terrain is Class B (plain), the probability of strong winds exceeding 30 m / s is relatively high; while when the terrain is Class D (densely populated urban area), the probability of the same wind speed is extremely low due to ground friction.
[0067] It should be noted that the methods for constructing these constraints can be achieved through expert knowledge base transformation or historical data mining, that is, by converting empirical formulas in standards such as the "Technical Specification for Meteorological Survey of Power Engineering" into computer-readable rules. Alternatively, Bayesian network algorithms can be used to learn the structured dependencies between parameters from historical engineering databases.
[0068] In this embodiment, the candidate sample set is obtained by random sampling within the local constraint space of the current design value. Then, physical coupling constraints are used to filter or correct the data in the candidate sample set, generating a valid sample set that conforms to physical laws. This is because if random sampling is performed without constraints when generating perturbation samples to probe model sensitivity, it is likely to generate adversarial sample data that violates physical common sense, such as "3000 meters altitude but 0 mm ice cover or swamp but rock-embedded foundation." The prediction results of the engineering prediction model on these adversarial samples are often extremely unstable and have no reference value. The process of filtering or correcting the candidate sample set using physical coupling constraints in this embodiment is as follows: Each sample data in the candidate sample set is traversed, and sample data that violates hard constraints is directly removed. Sample data that violates soft constraints, i.e., sample data in regions with extremely low conditional probability, is moved to a high-probability region using the Markov chain Monte Carlo method, or its weight in subsequent fitting is reduced. Sample data that conforms to hard or soft constraints are retained, ultimately yielding a valid sample set. Each sample in the valid sample set represents a physically real engineering design scenario.
[0069] In this embodiment, after obtaining the effective sample set, it is input into the engineering cost prediction model for prediction and the corresponding cost response prediction value is output. Since the sample set has eliminated physically impossible noise, the obtained cost response prediction value can more realistically reflect the model's behavior within the normal working domain. A local linear hyperplane is fitted using the effective sample set and the corresponding cost response prediction values. To further improve the fitting accuracy, locally weighted linear regression is preferred for fitting, resulting in a locally weighted linear regression model. The core idea is that samples closer to the current design value have a greater impact on the fitting result. The specific calculation formula for the locally weighted linear regression model is as follows: in, For the regression coefficient vector, The matrix consisting of the effective sample set, This is a vector of predicted cost response values. It is a diagonal weight matrix.
[0070] In this embodiment, the diagonal elements of the diagonal weight matrix determine the weights of the corresponding sample data. The diagonal elements are preferably calculated using a Gaussian kernel function. The diagonal elements can also be obtained by combining the physical conditional probability in the physical coupling constraints. This means that a sample must not only be close to the current point, but also have a high probability of physically occurring in order to dominate the sensitivity calculation. The expression is: In the formula, The values corresponding to the diagonal elements. The value corresponding to the current design parameters is the distance between the sample data and the actual values. This represents the physical conditional probability.
[0071] Through this dual-weighting mechanism, the calculated regression coefficients not only possess mathematical local optimality but also engineering physics rationality, thus effectively avoiding the misleading influence of spurious sensitivity. For example, it can correctly identify that "although the model shows that reducing foundation depth can save money, this is not feasible in soft soil areas (areas with high probability of physical constraints)," thereby suppressing or correcting this in the sensitivity values.
[0072] In one embodiment, when the constructed engineering cost prediction model is a closed-source model, the engineering cost prediction model is subjected to logical anomaly verification, including: Construct a cost hierarchy transmission structure for the power grid engineering project to be evaluated. The cost hierarchy transmission structure includes the engineering design parameter layer, the engineering sub-item cost layer, and the total engineering cost layer. Calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer to obtain the expected sensitivity of the first layer; Calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer of expected sensitivity; calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. Based on the first-level sensitivity and the second-level sensitivity, the indirect expected sensitivity is obtained, and the consistency residual between the direct expected sensitivity and the indirect expected sensitivity is calculated. If the consistency residual is greater than the preset residual threshold, it is determined that there is an abnormal transmission logic in the engineering cost prediction model.
[0073] In this embodiment, if the engineering cost prediction model is a closed-source model, it is difficult to verify whether its internal logic conforms to common sense in engineering. For example, a certain parameter may lead to an increase in the cost of a component, but the total cost predicted by the model may decrease; this "logical inversion" is unacceptable. This embodiment constructs a hierarchical transmission structure and uses the chain rule to perform bidirectional verification of the propagation of sensitivity between different levels, thereby building a firewall for model quality. The specific process of verifying the transmission logic anomalies of the engineering cost prediction model is as follows: According to the "Regulations on Budget Preparation and Calculation for Power Grid Engineering Construction" commonly used in the power industry, the flat data of power grid engineering projects is reconstructed into a hierarchical structure with tree-like logical relationships, namely, a cost hierarchical transmission structure, which includes an engineering design parameter layer, an engineering sub-item cost layer, and a total engineering cost layer. The engineering design parameter layer contains the source variables affecting the cost, such as the unit price of steel for iron towers, conductor cross-sections, and the amount of earthwork excavated for foundations. The engineering sub-item cost layer is an intermediate layer in the cost composition, usually corresponding to the unit project or sub-project in the budget estimate table. For example, the cost of the main body of the project can be subdivided into site transportation costs, earthwork costs, foundation costs, pole and tower costs, and overhead line costs. The total project cost layer is the final summary result, such as static investment or dynamic investment. The key to constructing this structure is to clarify the hierarchical relationship between each layer. For example, it should be clarified that the parameter of foundation excavation volume only directly affects earthwork costs and foundation costs, and has no direct physical relationship with overhead line costs. This structural relationship is usually stored in the system in the form of an adjacency matrix or a directed acyclic graph. Then, based on the chain rule, the first-level sensitivity of the engineering design parameter layer to the engineering sub-item cost layer is combined with the second-level sensitivity of the engineering sub-item cost layer to the total project cost layer to obtain the indirect expected sensitivity. Then, the direct expected sensitivity of the engineering design parameter layer to the total project cost layer is calculated, and the consistency residual is calculated based on the indirect expected sensitivity and the direct expected sensitivity. If the consistency residual exceeds the preset residual threshold, it is determined that the anomaly tracing result obtained through the engineering cost prediction model has a transmission logic abnormality, and manual verification of the parameters is recommended. It should be noted that the first-level sensitivity refers to the sensitivity of the parameters to the cost of each sub-item, which can be obtained through the methods in steps 101 to 105, or by calculating the expected sensitivity in this embodiment. The second-level sensitivity refers to the sensitivity of the cost of each sub-item to the total cost. In power grid engineering, the total cost is usually a linear weighted sum of the costs of each sub-item, so this sensitivity is usually the weight. The direct expected sensitivity refers to the sensitivity of the parameters to the total cost obtained using the total cost prediction model through the methods in steps 101 to 105, or by calculating the parameters in this embodiment. In an ideal linear system, the direct expected sensitivity should be strictly equal to the indirect expected sensitivity. However, in complex machine learning models, since the models may be trained separately (i.e., the total cost model and the sub-item models are independent), or there may be nonlinear feature interactions within the models, there is often a deviation between the two.
[0074] It should be noted that the formula for calculating the consistency residual is: In the formula, Represents absolute value. To directly expect sensitivity, This is for indirect expectation sensitivity.
[0075] The preset residual threshold can be set as a specific proportion of the total sensitivity amplitude, such as 5% or 10%, or based on the statistical error distribution of the historical validation set. The transmission logic anomaly verification method proposed in this embodiment utilizes the accounting identity property of "the sum of its parts equals the whole" in engineering cost data to constrain and supervise the behavior of the closed-source model. If a parameter's consistency residual is found to be extremely large during the tracing process, it often indicates two situations: first, the total cost model has learned some erroneous spurious correlation; second, the sub-item model has missed key influence paths, such as missing the impact of tower material unit price on transportation costs. This provides extremely precise guidance for model optimization and data governance.
[0076] In one embodiment, after obtaining the desired sensitivity, the method further includes: Construct an optimization problem with the objective of minimizing parameter perturbation and the constraints of cost and physical coupling. Based on the expected sensitivity, the optimization problem is solved to obtain the minimum parameter disturbance, which is then set as the safety margin of the engineering design parameters. Based on the safety margin, engineering rectification measures were obtained.
[0077] In this embodiment, after obtaining the desired sensitivity, a counterfactual search is performed within the local constraint space to find the minimum parameter disturbance required to restore the cost increment to a normal level. This minimum parameter disturbance is defined as the safety margin of the engineering design parameters. Specifically, an objective function is constructed with the goal of minimizing the parameter disturbance. This objective function is: In the formula, The parameter is the disturbance amount.
[0078] The constraints are: In the formula, For normal cost targets, Within the physically constrained feasible range. Then, the expectation sensitivity is used to solve this optimization problem, and the approximate solution formula is: in, The recommended parameter adjustment vector, For normal cost targets, For the current projected cost, For expected sensitivity.
[0079] The solved parameter adjustment vector This refers to the safety margin. For example, suppose the current project cost is 500,000 yuan too high. Calculations show that the expected sensitivity of the tower material's unit weight is the highest, at 50,000 yuan / ton. A counterfactual search might suggest reducing the tower material's unit weight by 10 tons. Therefore, 10 tons represents the safety margin of the current design value. If the designers assess that a 10-ton reduction is impossible (e.g., due to structural strength limitations), it indicates that the current high cost is rigid and unavoidable; if the designers believe it can be optimized, a concrete path to cost reduction has been found. This indicator directly transforms the abstract sensitivity into concrete engineering rectification measures.
[0080] This embodiment can also measure the total fluctuation range of the cost forecast by calculating the total uncertainty variance. The sources of this fluctuation are mixed: on the one hand, the input engineering design parameters themselves have errors (such as inaccurate geological surveys), which is an objective physical uncertainty; on the other hand, the structure or parameter estimation of the prediction model itself also has errors (such as fitting bias caused by insufficient training data), which is an epistemological model uncertainty.
[0081] To distinguish between these two, this embodiment employs a variance decomposition-based method, similar to the idea behind Sobol global sensitivity analysis. The specific decomposition formula is as follows: in, For the total variance, Variance represents the cost fluctuation caused by fluctuations in engineering design parameters; The model uncertainty variance represents the cost fluctuation caused by insufficient model accuracy, such as the instability of decision tree split points. This is an interaction term between the two, and is usually small and negligible.
[0082] The total variance can be calculated by sampling simultaneously in both the parameter space and the model parameter space. The parameter uncertainty variance can be obtained by fixing the model parameters and changing only the input parameters. The model uncertainty variance can be calculated by fixing the input parameters and changing only the model structure.
[0083] Diagnostic conclusions are drawn by calculating the proportion of parameter uncertainty variance or model uncertainty variance in the total variance: if the proportion of parameter uncertainty variance is high, it indicates that the cost risk mainly comes from the uncertainty of the design input, and the survey accuracy should be improved; if the model uncertainty variance is high, it indicates that the risk comes from the prediction tool itself, and training data should be increased or the algorithm should be optimized.
[0084] In this embodiment, a sensitivity stability index is also introduced. By quantifying the fluctuation of sensitivity within a local range, high-risk or unreliable expected sensitivities are identified, thereby avoiding misleading engineering decisions. The specific process is as follows: multiple resampling is performed within the local constraint space of the engineering design parameters, and the expected sensitivity is recalculated after each resampling, thus obtaining the expected sensitivity set corresponding to the engineering design parameter. Based on this expected sensitivity set, the statistical variance or coefficient of variation is calculated as the sensitivity stability index. If the sensitivity stability index exceeds the corresponding threshold, the corresponding engineering design parameter is marked as a high-risk parameter. In this embodiment, the bootstrap method or micro-perturbation method can be used during resampling. For example, a microscopic local space is defined within the smallest neighborhood of the current design parameter. K groups of samples are randomly selected within this microscopic local space, for example, K=50. For each group of samples, the expected sensitivity calculation method in this embodiment is called to calculate the corresponding expected sensitivity. The calculation process of the statistical variance or coefficient of variation in this embodiment can refer to the calculation process of existing technologies, and will not be repeated in this embodiment. The sensitivity stability index exceeding a certain threshold can be set empirically, for example, 0.5. If it exceeds the threshold, it indicates that the parameter is on the edge of the model's decision boundary; even a tiny change in input can cause drastic fluctuations in sensitivity (such as jumping from extremely positive to extremely negative). Manual review of the model's rationality in this region is recommended. This index allows users to clearly identify which parameters have correct sensitivities and which are questionable. This has extremely high risk control value for power grid engineering cost management involving huge investments.
[0085] This embodiment addresses the sensitivity calculation distortion caused by the step-like response of tree models by employing a probability-weighted expected sensitivity calculation method. By analyzing the splitting threshold and cost jump variables within the model and combining them with the uncertainty distribution of parameters, discrete numerical jumps are transformed into continuous expected response strengths. This effectively overcomes the gradient failure defect of traditional difference methods at non-smooth interfaces and achieves accurate quantification of sensitivity.
[0086] This embodiment addresses the lack of physical constraints in data-driven sampling by introducing a physical coupling constraint mechanism. During the sampling process, it forcibly integrates the logical dependencies between parameters such as altitude and weather, eliminating adversarial samples that violate engineering common sense. This ensures that the source analysis is based on a realistic and feasible physical scenario, avoiding erroneous attribution caused by spurious correlations. To address the risk of opaque model logic, this embodiment establishes a bidirectional consistency verification system based on a hierarchical transmission structure. Utilizing the chain rule, it compares the direct sensitivity of parameters to the total cost with the indirect sensitivity transmitted through sub-items, accurately identifying and intercepting logical inversions that violate the principle that "the sum of the parts equals the whole," thus achieving a leap from black-box prediction to reliable diagnosis.
[0087] This invention also provides a power grid engineering cost anomaly tracing system, which is used to implement the power grid engineering cost anomaly tracing method of this embodiment. Figure 2 A flowchart of the power grid engineering cost fluctuation traceability system 200 according to an embodiment of the present invention includes: The engineering design parameter acquisition module 201 is used to acquire the engineering design parameters of the power grid project to be evaluated. Each engineering design parameter corresponds to a current design value, which is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated. The probability distribution construction module 202 constructs the uncertainty distribution of the engineering design parameters based on the current design values of the engineering design parameters; The engineering cost prediction model construction module 203 is used to construct the engineering cost prediction model. When the engineering cost prediction model is an open source model, the decision tree set of the engineering cost prediction model is traversed to obtain the split node set. The split node set includes several nodes with engineering design parameters as split features, and each split node corresponds to a split threshold. The cost jump variable calculation module 204 is used to calculate the path switching probability of the engineering design parameters at each split node and the cost jump variable caused by crossing the split threshold, based on the uncertainty distribution of the engineering design parameters. The expected sensitivity calculation module 205 is used to calculate the expected sensitivity of the engineering design parameters by using the path switching probability and cost jump variable corresponding to each split node. The expected sensitivity correction module 206 is used to correct the expected sensitivity using a non-uniform sampling method to obtain the corrected expected sensitivity. Based on the corrected expected sensitivity, it is determined whether the engineering design parameters are parameters that cause abnormal costs.
[0088] In one embodiment, the expected sensitivity calculation module 205 includes a path switching probability determination unit, wherein, The path switching probability determination unit is used to calculate the cumulative probability that the current design value of the engineering design parameter exceeds the splitting threshold when the engineering design parameter follows a normal distribution, and to calculate the proportion of the fluctuation range of the engineering design parameter that covers the splitting threshold when the engineering design parameter does not follow a normal distribution.
[0089] In one embodiment, the cost jump variable calculation module 204 includes: The first weighted average calculation unit is used to calculate the weighted average of all leaf nodes of the left subtree of each split node after crossing each split threshold when the current design value fluctuates within the local constraint space, so as to obtain the corresponding first weighted average. The second weighted average calculation unit is used to calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. The weighted average difference calculation unit is used to obtain the corresponding weighted average difference based on the first weighted average and the second weighted average of each split node, and to determine the weighted average difference as the cost jump variable of each split node.
[0090] In one embodiment, the desired sensitivity calculation module 205 includes: The difference result calculation unit is used to calculate the difference between the splitting threshold at each splitting node and the current design value, and obtain the corresponding difference result; The unit distance response intensity determination unit is used to determine the ratio of the difference result corresponding to each split node to the cost jump variable as the unit distance response intensity; The expected sensitivity determination unit is used to accumulate the product of the unit distance response intensity and the path switching probability corresponding to each split node to obtain the expected sensitivity of the engineering design parameters.
[0091] In one embodiment, the desired sensitivity correction module 206 includes: The engineering design parameter sampling unit is used to sample data within the local constraint space of the current design value using a non-uniform sampling method to obtain engineering design parameter sampling data. The cost prediction unit is used to divide the engineering design parameter sampling data into multiple sampling data groups, input them into the engineering cost prediction model for prediction, and obtain the corresponding cost prediction value. The fitting unit is used to fit the sampled data sets and the cost prediction values to obtain a local piecewise linear model. The correction unit is used to determine the tangent slope of the local piecewise linear model at the current design parameters, and to obtain the corrected expected sensitivity by weighted summation of the tangent slope and the expected sensitivity.
[0092] In one embodiment, the engineering design parameter sampling unit includes: The basic sampling density determination sub-unit is used to divide the local constraint space into several basic intervals and determine the basic sampling density of each basic interval. The filtering sub-unit is used to filter out the splitting thresholds that are in the local constraint space, and obtain the splitting thresholds to be processed. The first sampling density setting subunit is used to set a neighborhood radius centered on each splitting threshold to be processed, and set the sampling density within the neighborhood radius to be N times the base sampling density. The first sampling density setting subunit is used to set the sampling density that is not within the neighborhood radius to K times the base sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
[0093] In one embodiment, when the engineering cost prediction model is an open-source model, the expected sensitivity is obtained through the power grid engineering cost anomaly tracing system of this embodiment. When the engineering cost prediction model is a closed-source model, the expected sensitivity calculation module 205 further includes: The physical coupling constraint determination unit is used to construct physical coupling constraint conditions consisting of hard constraints and soft constraints. Hard constraints characterize the physical logical relationships or engineering mandatory rules that the engineering design parameters must satisfy, while soft constraints characterize the statistical correlation of the engineering design parameters. The candidate sample set determination unit is used to randomly sample the current design value within the local constraint space to obtain a candidate sample set, wherein the candidate sample set consists of several candidate sample data. The effective sample set determination unit is used to remove candidate sample data that does not meet the hard constraints from the candidate sample set, and to correct or reduce the weight of candidate sample data that does not meet the soft constraints to obtain the effective sample set. The cost prediction value set determination unit is used to predict the effective sample set using the engineering cost prediction model to obtain the cost prediction value set; The expected sensitivity determination unit is used to fit the effective sample set and the cost prediction value set to obtain a locally weighted linear regression model, and the regression coefficient of the locally weighted linear regression model is used as the expected sensitivity.
[0094] In one embodiment, the expected sensitivity calculation module 205 further includes: The cost hierarchy transmission structure determination unit is used to construct the cost hierarchy transmission structure of the power grid project to be evaluated. The cost hierarchy transmission structure includes the engineering design parameter layer, the engineering sub-item cost layer, and the total engineering cost layer. The first layer of expected sensitivity determination unit is used to calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer, and obtain the first layer of expected sensitivity; The direct expected sensitivity determination unit is used to calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer of expected sensitivity, and to calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. The consistency residual determination unit is used to obtain the indirect expected sensitivity based on the first-level sensitivity and the second-level sensitivity, and to calculate the consistency residual between the direct expected sensitivity and the indirect expected sensitivity. The transmission logic anomaly judgment unit is used to determine that there is a transmission logic anomaly in the engineering cost prediction model if the consistency residual is greater than a preset residual threshold.
[0095] In one embodiment, the power grid engineering cost fluctuation traceability system further includes: The optimization problem construction module is used to construct optimization problems with the objective of minimizing parameter perturbation and the constraints of cost and physical coupling. The safety margin determination module is used to solve the optimization problem based on the expected sensitivity, obtain the minimum parameter disturbance, and set the minimum parameter disturbance as the safety margin of the engineering design parameters. The rectification measures determination module is used to determine engineering rectification measures based on safety margins.
[0096] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., SSD), etc.
[0097] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed, it can include the processes of the embodiments of the above methods.
[0098] The embodiments described above are merely preferred embodiments of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various improvements and substitutions without departing from the technical principles of this invention, and these improvements and substitutions should also be considered within the scope of protection of this application. Therefore, the scope of protection of this patent application should be determined by the scope of the claims.
Claims
1. A method for tracing a power grid engineering cost transaction, characterized in that, include: Obtain the engineering design parameters of the power grid project to be evaluated, wherein each engineering design parameter corresponds to a current design value, and the current design value is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated; Based on the current design values of the engineering design parameters, construct the uncertainty distribution of the engineering design parameters; Based on the constructed engineering cost prediction model, a set of split nodes is obtained, wherein the set of split nodes includes several nodes with the engineering design parameters as splitting features, and each split node corresponds to a splitting threshold; Based on the uncertainty distribution of the engineering design parameters, calculate the path switching probability of the engineering design parameters at each of the split nodes and the cost jump variable caused by crossing the split threshold; The expected sensitivity of the engineering design parameters is obtained by using the path switching probability and the cost jump variable corresponding to each of the split nodes. The expected sensitivity is corrected using a non-uniform sampling method to obtain a corrected expected sensitivity. Based on the corrected expected sensitivity, it is determined whether the engineering design parameter is a parameter that causes abnormal cost.
2. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 1, characterized in that, When the engineering design parameters follow a normal distribution, the path switching probability is obtained by calculating the cumulative probability that the current design value of the engineering design parameters exceeds the splitting threshold; When the engineering design parameters do not follow a normal distribution, the path switching probability is obtained by calculating the proportion of the fluctuation range of the engineering design parameters that covers the splitting threshold.
3. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 1, characterized in that, The step of calculating the cost jump variable caused by the engineering design parameters crossing the split threshold at each of the split nodes, based on the uncertainty distribution of the engineering design parameters, includes: When the current design value fluctuates within the local constraint space, after crossing each of the split thresholds, the weighted average of all leaf nodes of the left subtree of each split node is calculated to obtain the corresponding first weighted average. Calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. Based on the first weighted average and the second weighted average of each split node, the corresponding weighted average difference is obtained, and the weighted average difference is determined as the cost jump variable of each split node.
4. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 1, characterized in that, The process of calculating the expected sensitivity of the engineering design parameters using the path switching probability corresponding to each of the split nodes and the cost jump variable includes: Calculate the difference between the splitting threshold and the current design value at each splitting node to obtain the corresponding difference result; The ratio of the difference result corresponding to each split node to the cost jump variable is determined as the unit distance response intensity; The expected sensitivity of the engineering design parameters is obtained by summing the product of the unit distance response intensity corresponding to each split node and the path switching probability.
5. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 3, characterized in that, The step of using a non-uniform sampling method to correct the desired sensitivity to obtain the corrected desired sensitivity includes: Using a non-uniform sampling method, data is sampled within the local constraint space of the current design value to obtain engineering design parameter sampling data; The engineering design parameter sampling data is divided into multiple sampling data groups, which are then input into the engineering cost prediction model for prediction to obtain the corresponding cost prediction value. A partial linear model is obtained by fitting the sampled data sets and the predicted cost values. Determine the tangent slope of the local piecewise linear model at the current design parameters, and then sum the tangent slope with respect to the desired sensitivity to obtain the corrected desired sensitivity.
6. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 5, characterized in that, The method of using non-uniform sampling to sample data within the local constraint space of the current design value to obtain engineering design parameter sampling data includes: The local constraint space is divided into several basic intervals, and the basic sampling density of each basic interval is determined. The splitting thresholds that are located in the local constraint space are selected to obtain the splitting thresholds to be processed; The neighborhood radius is set with each of the aforementioned splitting thresholds to be processed as the center, and the sampling density within the neighborhood radius is set to N times the base sampling density; The sampling density that is not within the neighborhood radius is set to K times the base sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
7. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 1, characterized in that, When the engineering cost prediction model is an open-source model, the expected sensitivity is obtained by the power grid engineering cost anomaly tracing method as described in any one of claims 1-6. When the engineering cost prediction model is a closed-source model, the expected sensitivity can be obtained through the following steps: Construct a physical coupling constraint condition consisting of hard constraints and soft constraints, wherein the hard constraints characterize the physical logical relationship or engineering mandatory rule that the engineering design parameters need to satisfy, and the soft constraints characterize the statistical correlation of the engineering design parameters; Random sampling is performed on the current design value within the local constraint space to obtain a candidate sample set, wherein the candidate sample set consists of several candidate sample data; Candidate sample data that do not meet the hard constraints are removed from the candidate sample set, and candidate sample data that do not meet the soft constraints are corrected or downweighted to obtain the effective sample set. The engineering cost prediction model is used to predict the effective sample set to obtain a set of predicted cost values; By fitting the effective sample set and the cost prediction set, a locally weighted linear regression model is obtained, and the regression coefficients of the locally weighted linear regression model are used as the expected sensitivity.
8. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 7, characterized in that, When the project cost prediction model is a closed-source model, the project cost prediction model is subjected to logical anomaly verification, including: A cost hierarchy transmission structure is constructed for the power grid engineering project to be evaluated. The cost hierarchy transmission structure includes an engineering design parameter layer, an engineering sub-item cost layer, and a total engineering cost layer. Calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer to obtain the first layer of expected sensitivity; Calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer expected sensitivity; calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. Based on the first-level sensitivity and the second-level sensitivity, the indirect expected sensitivity is obtained, and the consistency residual between the direct expected sensitivity and the indirect expected sensitivity is calculated. If the consistency residual is greater than the preset residual threshold, it is determined that the engineering cost prediction model has a transmission logic anomaly.
9. The method for tracing the source of cost fluctuations in power grid engineering as described in claim 7, characterized in that, After obtaining the desired sensitivity, the process also includes: Construct an optimization problem with the goal of minimizing parameter perturbation and with constraints on cost and the physical coupling condition as the conditions; Based on the expected sensitivity, the optimization problem is solved to obtain the minimum parameter perturbation, and the minimum parameter perturbation is set as the safety margin of the engineering design parameters. Based on the stated safety margin, engineering rectification measures are derived.
10. A system for tracing cost fluctuations in power grid engineering projects, characterized in that, include: The engineering design parameter acquisition module is used to acquire the engineering design parameters of the power grid project to be evaluated. The engineering design parameter corresponds to a current design value, which is used to quantitatively describe the physical or environmental characteristics of the power grid project to be evaluated. The probability distribution construction module constructs the uncertainty distribution of the engineering design parameters based on the current design values of the engineering design parameters; The engineering cost prediction model construction module is used to obtain a set of split nodes based on the constructed engineering cost prediction model. The set of split nodes includes several nodes with the engineering design parameters as splitting features, and each split node corresponds to a splitting threshold. The cost jump variable calculation module is used to calculate the path switching probability of the engineering design parameters at each of the split nodes and the cost jump variable caused by crossing the split threshold, based on the uncertainty distribution of the engineering design parameters. The expected sensitivity calculation module is used to calculate the expected sensitivity of the engineering design parameters by using the path switching probability and the cost jump variable corresponding to each of the split nodes. The expected sensitivity correction module is used to correct the expected sensitivity using a non-uniform sampling method to obtain the corrected expected sensitivity, and to determine whether the engineering design parameter is a parameter that causes abnormal cost based on the corrected expected sensitivity.
11. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, The expected sensitivity calculation module includes a path switching probability determination unit, wherein, The path switching probability determination unit is used to obtain the path switching probability by calculating the cumulative probability that the current design value of the engineering design parameter exceeds the splitting threshold when the engineering design parameter follows a normal distribution, and by calculating the proportion of the fluctuation range of the engineering design parameter covering the splitting threshold when the engineering design parameter does not follow a normal distribution.
12. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, The cost jump variable calculation module includes: The first weighted average calculation unit is used to calculate the weighted average of all leaf nodes of the left subtree of each split node after crossing each split threshold when the current design value fluctuates within the local constraint space, so as to obtain the corresponding first weighted average. The second weighted average calculation unit is used to calculate the weighted average of all leaf nodes in the right subtree of each split node to obtain the second weighted average. The weighted average difference calculation unit is used to obtain the corresponding weighted average difference based on the first weighted average and the second weighted average of each of the split nodes, and to determine the weighted average difference as the cost jump variable of each of the split nodes.
13. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, The expected sensitivity calculation module includes: The difference result calculation unit is used to calculate the difference between the splitting threshold and the current design value at each splitting node, and obtain the corresponding difference result; The unit distance response intensity determination unit is used to determine the ratio of the difference result corresponding to each of the split nodes to the cost jump variable as the unit distance response intensity; The expected sensitivity determination unit is used to accumulate the product of the unit distance response intensity corresponding to each of the split nodes and the path switching probability to obtain the expected sensitivity of the engineering design parameters.
14. The power grid engineering cost fluctuation traceability system as described in claim 12, characterized in that, The desired sensitivity correction module includes: An engineering design parameter sampling unit is used to sample data within the local constraint space of the current design value using a non-uniform sampling method to obtain engineering design parameter sampling data. The cost prediction unit is used to divide the engineering design parameter sampling data into multiple sampling data groups, input them into the engineering cost prediction model for prediction, and obtain the corresponding cost prediction value. A fitting unit is used to fit the sampled data sets and the cost prediction values to obtain a local piecewise linear model. The correction unit is used to determine the tangent slope of the local segmental linear model at the current design parameters, and to perform a weighted summation of the tangent slope and the desired sensitivity to obtain the corrected desired sensitivity.
15. The power grid engineering cost fluctuation traceability system as described in claim 14, characterized in that, The engineering design parameter sampling unit includes: The basic sampling density determination subunit is used to divide the local constraint space into several basic intervals and determine the basic sampling density of each basic interval; A filtering subunit is used to filter out the splitting thresholds that are in the local constraint space to obtain the splitting thresholds to be processed; The first sampling density setting subunit is used to set a neighborhood radius centered on each of the split thresholds to be processed, and set the sampling density within the neighborhood radius to be N times the basic sampling density; The first sampling density setting subunit is used to set the sampling density that is not within the neighborhood radius to K times the basic sampling density, where N is an integer greater than 1 and K is a positive number greater than 0 and less than 1.
16. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, When the engineering cost prediction model is an open-source model, the expected sensitivity is obtained through the power grid engineering cost anomaly tracing system as described in any one of claims 10-15. When the engineering cost prediction model is a closed-source model, the expected sensitivity calculation module further includes: The physical coupling constraint determination unit is used to construct physical coupling constraint conditions consisting of hard constraints and soft constraints, wherein the hard constraints characterize the physical logical relationship or engineering mandatory rule that the engineering design parameters need to satisfy, and the soft constraints characterize the statistical correlation of the engineering design parameters. A candidate sample set determination unit is used to randomly sample the current design value within the local constraint space to obtain a candidate sample set, wherein the candidate sample set consists of several candidate sample data. The effective sample set determination unit is used to remove candidate sample data that does not meet the hard constraints from the candidate sample set, and to modify or reduce the weight of the candidate sample data that does not meet the soft constraints to obtain the effective sample set. The cost prediction value set determination unit is used to predict the effective sample set using the engineering cost prediction model to obtain the cost prediction value set; The expected sensitivity determination unit is used to fit the effective sample set and the cost prediction value set to obtain a locally weighted linear regression model, and to use the regression coefficients of the locally weighted linear regression model as the expected sensitivity.
17. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, The expected sensitivity calculation module further includes: The cost hierarchy transmission structure determination unit is used to construct the cost hierarchy transmission structure of the power grid project to be evaluated. The cost hierarchy transmission structure includes an engineering design parameter layer, an engineering sub-item cost layer, and a total engineering cost layer. The first layer of expected sensitivity determination unit is used to calculate the sensitivity of the engineering design parameter layer to the engineering sub-item cost layer, and obtain the first layer of expected sensitivity; The direct expected sensitivity determination unit is used to calculate the sensitivity of the project sub-item cost layer to the project total cost layer to obtain the second layer of expected sensitivity, and to calculate the sensitivity of the project design parameter layer to the project total cost layer to obtain the direct expected sensitivity. A consistency residual determination unit is used to obtain an indirect expected sensitivity based on the first-level sensitivity and the second-level sensitivity, and to calculate the consistency residual between the direct expected sensitivity and the indirect expected sensitivity; The transmission logic anomaly judgment unit is used to determine that the engineering cost prediction model has a transmission logic anomaly if the consistency residual is greater than a preset residual threshold.
18. The power grid engineering cost fluctuation traceability system as described in claim 10, characterized in that, Also includes: The optimization problem construction module is used to construct an optimization problem with the goal of minimizing parameter perturbation and with the constraints of cost and the physical coupling condition as constraints. The safety margin determination module is used to solve the optimization problem based on the expected sensitivity, obtain the minimum parameter disturbance, and set the minimum parameter disturbance as the safety margin of the engineering design parameters. The rectification measures determination module is used to obtain engineering rectification measures based on the safety margin.
