Method for constructing sensitive information reverse reasoning threat model based on electricity price data
By constructing a reverse inference threat model based on electricity price data, and combining it with DC power flow model, local marginal price theory, and dynamic routing encoder, the problem of identifying the dynamic relationship between electricity price data and grid admittance parameters and assessing privacy leaks was solved, achieving a balance between accurate identification of grid parameters and privacy protection.
Patent Information
- Application Number
- CN202610045282.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-14
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2046-01-14
AI Technical Summary
Existing technologies struggle to effectively capture the dynamic temporal relationship between electricity price data and grid admittance parameters, and lack assessment and protection against privacy leaks during the reverse reasoning process, making it difficult to quantify and implement privacy protection strategies.
A threat model based on sensitive information inverse reasoning using electricity price data is constructed. By combining a DC power flow model, local marginal price theory, and dynamic routing encoder with a differential privacy mechanism, a homogeneous linear equation model between electricity price and grid admittance matrix is established. Dynamic modeling and noise disturbance are then performed to optimize the grid admittance parameter sequence.
It enables accurate identification and dynamic modeling of the complex time-series relationship between electricity price data and grid admittance parameters, quantifies the risk of reverse reasoning, ensures the practicality and accuracy of data, and significantly reduces the risk of sensitive information leakage, achieving a balance between privacy protection and data application.
Smart Images

Figure CN121502826A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart grid analysis, in particular to a method for constructing a sensitive information reverse reasoning threat model based on electricity price data. BACKGROUND
[0002] With the development of power market reform and smart grid, a large number of local marginal and related electricity price data of nodes in grid dispatching and market operation are publicly disclosed prices. Since there is an inherent mathematical correlation between electricity price data and grid physical parameters, attackers or third parties may reconstruct part of the sensitive parameters and structure of the grid by reverse reasoning analysis combined with public electricity prices, shadow prices and other data, to achieve deep mining of the state of the grid, thereby making the grid environment potentially threatened.
[0003] In the prior art, traditional grid state estimation or parameter identification methods rely on static models and are difficult to effectively capture the dynamic timing relationship between electricity price data and grid admittance parameters, and lack means for systematic evaluation and protection of privacy leakage risks in the reverse reasoning process. And the existing differential privacy protection mechanism mainly focuses on simple data perturbation in the application of power system data, lacks a method for joint modeling and optimization combining grid physical laws and electricity price data characteristics, resulting in difficulty in balancing data utility and privacy protection effect, and unable to effectively quantify the threat degree of reverse reasoning, limiting the scientific formulation and implementation of privacy protection strategies.
[0004] Therefore, it is necessary to provide a method for constructing a sensitive information reverse reasoning threat model based on electricity price data to solve the above problems.
[0005] The above information disclosed in the background section is only used to strengthen the understanding of the background of the present disclosure, and therefore it can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0006] The purpose of the present application is to provide a method for constructing a sensitive information reverse reasoning threat model based on electricity price data to solve the problems raised in the background.
[0007] To achieve the above purpose, the present application provides the following technical solutions: A method for constructing a sensitive information reverse reasoning threat model based on electricity price data, comprising the following specific steps: Step 1: Constructing a direct current flow model and a local marginal price theory model, and based on the two constructed mathematical theory models, a homogeneous linear equation model between electricity price and grid admittance matrix is established; Step 2: Extract node features and edge features from the collected relevant power data and vectorize them, input the feature vectors into the dynamic routing encoder, and combine the constructed homogeneous linear equation model to dynamically select and weight the input feature vectors to output the encoded feature sequence of nodes and edges; Step 3: Based on the selective state space model, the encoded feature sequence is modeled in time sequence, and the dynamic relationship between the price data and the admittance matrix is established to output the sequence of grid admittance parameters at each time in the time sequence; Step 4: Based on the output grid admittance parameter sequence, combined with the physical law of power system flow equation, the grid admittance parameter sequence is corrected, and the grid admittance parameter sequence is optimized through loss function constraint; Step 5: According to the optimized grid admittance parameter sequence, introduce the differential privacy mechanism, apply noise disturbance to the public price data, and realize the construction of the inverse reasoning model based on the price data by combining the differential privacy strategy.
[0008] Further, the direct current flow model and the local marginal price theory model are constructed, and the method is as follows: The local marginal price of each period in the electricity market is obtained to reflect the economic signal of the balance of power supply and demand and the congestion status of the grid, and the shadow price of the corresponding line capacity constraint is obtained to reflect the marginal influence of line congestion on price, and according to the obtained grid topology structure information, the number of nodes , the total number of lines and the connection relationship are obtained to form the incidence matrix . Based on the direct current flow model, the node voltage phase angle vector of the grid is , the node injection power vector is , and the node admittance matrix is , so , the node admittance matrix is composed of the incidence matrix and the node admittance inverse vector , where , represents the reciprocal of the reactance of the th line in the grid, is the conductance of the th line where the node is located, is the line index of the node in the grid, and the index ranges from to , covering every line in the grid. Based on the calculation of the admittance matrix, the direct current flow model is constructed, and the formula is: in, This represents the transpose of the incident matrix. The nodal admittance vector. It is a vector A diagonal matrix consisting of diagonal elements. This is the vector of reciprocal reactances of the nodes, that is, the reciprocal of the reactance of each line to which the node is located. Taking the derivative of each element in the matrix one by one, we can obtain the following relationship: , Represented by vector A diagonal matrix consisting of diagonal elements; Based on the relationship between congestion price and shadow price, the Lagrange multiplier corresponding to the line capacity constraint is the shadow price. A theoretical model of local marginal price is constructed by utilizing the mapping relationship between local marginal price and line congestion shadow price. The formula used is as follows: in, Indicates the node at time [time]. The congestion component of the local marginal price. This represents the base price when there is no congestion. A vector containing only 1s, used to convert scalars. Extend to all nodes, yes The transpose of the matrix is used to map line congestion prices to node prices. Indicates that the node is Price shadow based on real-time network congestion. It is the power transmission distribution factor matrix, used to represent the influence factor of the line on the node.
[0009] Furthermore, a homogeneous linear equation model between electricity price and grid admittance matrix is established, based on the following method: Based on the established DC power flow model, the following derivation is performed using the admittance matrix and the incident matrix. The matrix is based on the following formula: in, This represents the inverse of the node admittance matrix, characterizing the response of node power changes to changes in node voltage phase angle. This indicates that changes in node voltage phase angle are converted into changes in line power. based on The relationship between the matrix, admittance matrix, and incident matrix, combined with the mapping relationship between local marginal price and line congestion shadow price, is used to establish the relationship between electricity price and grid admittance. The formula used is as follows: in, This represents the transpose of the inverse matrix of the nodal admittances; The homogeneous linear equations are established by simultaneously solving the relationship between electricity price and grid admittance in a DC power flow model. The formula used is as follows: Among them, the homogeneous linear equation model It is used to calculate the price difference between two nodes at the end of a line, reflecting the difference in electricity prices at both ends of the line; collect Electricity price and shadow price data at different times were used to write the corresponding homogeneous linear equations. These equations were then stacked to form a system of linear equations, which were used to deduce the unknown admittance reciprocal vector. This is to complete the construction of a homogeneous linear equation model between electricity price and grid admittance matrix.
[0010] Furthermore, node and edge features are extracted and vectorized. The input feature vectors are dynamically selected and weighted to output a sequence of node and edge encoded features. The method used is as follows: For the first in the power grid Each node constructs a node feature vector, including but not limited to: the node's local marginal price, node type, and historical node price statistics, which are collectively denoted as... ,in Indicates the first The feature vector of each node The index of the node, and ; for the connection nodes in the power grid With nodes The Each line constructs an edge feature vector, including but not limited to: the congestion shadow price corresponding to the line, the reciprocal of the line reactance, and the line capacity constraint, which are collectively denoted as... ,in Indicates the connection node With nodes No. If the edge feature vectors of a line are given, then the feature vectors of all nodes form a matrix. The matrix is composed of all edge eigenvectors. ; Using the node feature matrix and edge feature matrix as input, and based on the graph structure message passing mechanism of the dynamic routing encoder, combined with power grid topology information, node and edge features are dynamically selected and weighted to update the hidden layer encoding features of nodes and edges. The formula describing this process is as follows: in, This indicates that in the graph neural network... The first in the layer The encoded feature vector of each node, It is an activation function used to enhance the expressive power of the model. Indicates the first The first in the layer The node is the first The dynamic weighting coefficients of the features of each neighboring node, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer node feature linear transformation matrix, This indicates that in the graph neural network... The first in the layer The encoded feature vectors of the neighboring nodes, hour, It is the first The original input feature vectors of the neighboring nodes, Indicates the first The set of neighboring nodes of a node. It is the index of adjacent nodes. Indicates the first In the layer to the first The dynamic weighting coefficients of the edge features, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer edge feature linear transformation matrix, Indicates the first Layer edge The encoded feature vector, For connecting nodes Its neighboring nodes The set of edges; After multiple iterations of the dynamic routing encoder and weighted by physical constraints, the final output is... , ,in and This refers to the encoded feature sequence of nodes and edges.
[0011] Furthermore, time-series modeling is performed on the encoded feature sequence to establish a dynamic relationship between electricity price data and the admittance matrix, so as to output the power grid admittance parameter sequence at each time point within the time series. The method used is as follows: Based on the node-encoded feature sequence and edge-encoded feature sequence output by the dynamic routing encoder, for continuous time intervals... The feature sequences constitute the temporal input set, where Let represent the total number of consecutive time points used for time series analysis. A selective state-space model is constructed, with node and edge encoded feature sequences as observations. The inverse vector of node admittance is taken as the hidden state of the system. The model dynamics are as follows: in, Indicates in The reciprocal vector of the line reactance at time t. In order to be in The change information of the input node at any given time. For process noise, Indicates in The reciprocal vector of the line reactance at time t. For the model's observations, For selective observation mapping function, To observe the noise, Indicates in Encoded feature sequence of time nodes, Indicates in The encoded feature sequence of the edge at time step; Based on the theory of DC power flow and local marginal price, the observation equation is specified as follows: in, , Is The transpose of the inverse of the nodal admittance matrix at time t. Is time in vector A diagonal matrix consisting of diagonal elements. Indicates in The predicted value of the local marginal price at any given time point. Indicates in Predicted value of shadow price for line congestion at any given time; At each time step, the encoded feature sequences of the acquired nodes and edges are combined and substituted into the homogeneous linear equation system constraints, based on the following formula: Among them, for time series observation sets Stacked linear equations and Kalman filtering was used to... The state is updated, and the final output is the sequence of grid admittance parameters at each time point within the time series. .
[0012] Furthermore, by combining the physical laws of the power flow equations, the power grid admittance parameter sequence is corrected, and then optimized through loss function constraints. The method used is as follows: The power grid admittance parameter sequence obtained by reverse reasoning As the initial parameter sequence, the corresponding node admittance matrix is calculated according to the DC power flow model of the power system. The system state is reconstructed using the grid topology and line parameters. Combined with the actual collected local marginal price and line congestion shadow price data, a homogeneous linear equation model is used as physical constraints to evaluate the matching degree between the grid admittance parameters and the electricity price data. By constructing a loss function with physical constraint deviation and electricity price data fitting error as the core, an optimization algorithm is used to adjust the admittance parameter sequence and minimize the loss function. The formula used is as follows: in, This represents the loss function, used to measure the degree of matching between grid admittance parameters and electricity price data. It is the Euclidean norm of a vector, used to measure the magnitude of error. yes Local marginal price data of nodes as actually observed at any given time. yes Real-time observed shadow price data for line congestion. This is a regularization term used to constrain the variation of the inverse vector of the line reactance over time, preventing overfitting. This represents the reciprocal vector of line reactance in the predicted power grid admittance parameter sequence, which is the predicted value of admittance parameters based on the optimization algorithm iteration process. It is an approximate reconstruction of the reciprocal vector of the actual power grid line reactance. The gradient descent method is used to iteratively update the power grid admittance parameter sequence to minimize the loss function. The iteration stops when the degree of matching between the power grid admittance parameters output by the loss function and the electricity price data meets a preset threshold, and the final corrected power grid admittance parameter sequence is output. .
[0013] Furthermore, a differential privacy mechanism is introduced to apply noise perturbation to the publicly available electricity price data. By combining the differential privacy strategy, a threat model for inverse reasoning about sensitive information in the electricity price data is constructed. The method used is as follows: For the local marginal price data of the node actually observed at each moment Introducing the satisfaction - Differential privacy Laplace noise perturbation generates perturbed local marginal price data based on the following formula: in, Indicates in Local marginal disturbance price data at any given time. This represents an independent and identically distributed noise vector; Based on local marginal disturbance price data, observed line congestion shadow price data, and the corrected and optimized power grid admittance parameter sequence, a homogeneous linear equation system is reconstructed. An optimization method is used to inversely infer the admittance parameters, and the optimization objective function is: in, It is used for reverse reasoning of the power grid admittance parameter sequence. The cost function, for Minimization is performed to obtain the inferred values of the grid admittance parameters through reverse reasoning; The inferred values of the grid admittance parameters obtained through reverse reasoning are compared with the optimized and corrected grid admittance parameter values. The mean square error is used to evaluate the accuracy of the reverse reasoning, based on the following formula: in, This represents the mean square error, used to measure the accuracy of the reverse inference of the grid admittance parameters. Indicates the first The line is The inferred power grid admittance value obtained through reverse reasoning at every moment. Indicates the first The line is The power grid admittance parameters are optimized and corrected at all times; the mean square error is... Perform differential privacy strategy analysis. The smaller the value, the higher the accuracy of reverse reasoning, and the greater the risk of sensitive information leakage; conversely, the smaller the value, the higher the accuracy of reverse reasoning. The larger the value, the better the privacy protection. Using electricity price data perturbed by differential privacy mechanism, line congestion shadow price data, and power grid topology information as inputs, an optimization model based on these data is constructed to inversely infer the inferred values of the power grid admittance parameters. The error between the estimated and actual values of the power grid admittance parameters is used as an assessment indicator of privacy leakage risk to complete the construction of the inverse reasoning threat model.
[0014] Compared with the prior art, the beneficial effects of the present invention are: This invention achieves accurate identification and dynamic modeling of the complex temporal relationship between electricity price data and grid admittance parameters by constructing a homogeneous linear equation model based on a DC power flow model, a local marginal price theory model, and a dynamic routing encoder. Furthermore, this invention combines differential privacy mechanisms with grid physical constraints and electricity price data characteristics to design a data perturbation strategy, specifically quantifying the risks of reverse inference. This ensures both the practicality and accuracy of electricity price data while significantly reducing the risk of sensitive information leakage, achieving a balance between privacy protection and data application. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the overall method flow of the present invention. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.
[0017] It should be noted that, unless otherwise defined, the technical or scientific terms used in this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0018] Example: Please see Figure 1 A method for constructing a threat model based on sensitive information from electricity price data through reverse reasoning, comprising the following steps: Step 1: Construct a DC power flow model and a local marginal price theoretical model. Based on the two constructed mathematical theoretical models, establish a homogeneous linear equation model between electricity price and grid admittance matrix. In a specific embodiment of this invention, we construct a basic model based on DC power flow model and local marginal price theory to systematically reflect the physical and economic impact mechanisms of grid node voltage phase angle, power injection, and line capacity constraints on electricity price formation. Furthermore, by deriving the PTDF matrix and establishing a homogeneous linear equation system, and by comprehensively utilizing multi-time electricity price and shadow price data, we achieve reverse reasoning of the grid admittance inverse vector. This method not only improves the accuracy of grid parameter identification and the ability to depict time-series dynamics, but also provides a solid mathematical foundation and model support for the reverse reasoning threat assessment of sensitive information.
[0019] It should be noted that the reason for choosing to construct a DC power flow model and a local marginal price theory model, and combining them to comprehensively construct a homogeneous linear equation model between electricity price and grid admittance matrix, is mainly because the DC power flow model can effectively simplify the calculation of optimal power flow in the grid and reveal the linear relationship between node voltage phase angle and power injection, while the local marginal price theory model closely links the economic signals of the electricity market with the physical constraints of the grid. The combination of the two models achieves an accurate characterization and analytical expression of the relationship between electricity price data and grid admittance parameters, enabling the systematic and efficient reasoning and identification of key physical parameters of the grid using electricity price and shadow price data at multiple times.
[0020] Furthermore, the methods used to construct the DC power flow model and the local marginal price theory model are as follows: This method acquires local marginal prices for different time periods in the electricity market to reflect economic signals indicating the balance of power supply and demand and congestion at each node in the power grid. Correspondingly, it acquires shadow prices for line capacity constraints to reflect the marginal impact of line congestion on prices. Based on the acquired power grid topology information, it determines the number of nodes in the power grid. Total number of lines Their connections constitute the incident matrix. ; Based on the DC power flow model, the node voltage phase angle vector of the power grid is: The node injected power vector is The nodal admittance matrix is Then there is Node admittance matrix From the incident matrix and the inverse vector of nodal admittance Composition, in which , Indicates the first in the power grid The reciprocal of the reactance of the line, The node is located at the first Line susceptance, Index the power grid line where the node is located. from arrive It covers every line in the power grid and constructs a DC power flow model based on the calculated admittance matrix. The formula used is: in, This represents the transpose of the incident matrix. The nodal admittance vector. It is a vector A diagonal matrix consisting of diagonal elements. This is the vector of reciprocal reactances of the nodes, that is, the reciprocal of the reactance of each line to which the node is located. Taking the derivative of each element in the matrix one by one, we can obtain the following relationship: , Represented by vector A diagonal matrix consisting of diagonal elements; Based on the relationship between congestion price and shadow price, the Lagrange multiplier corresponding to the line capacity constraint is the shadow price. A theoretical model of local marginal price is constructed by utilizing the mapping relationship between local marginal price and line congestion shadow price. The formula used is as follows: in, Indicates the node at time [time]. The congestion component of the local marginal price. This represents the base price when there is no congestion. A vector containing only 1s, used to convert scalars. Extend to all nodes, yes The transpose of the matrix is used to map line congestion prices to node prices. Indicates that the node is Price shadow based on real-time network congestion. It is the power transmission distribution factor matrix, used to represent the influence factor of the line on the node.
[0021] Furthermore, a homogeneous linear equation model between electricity price and grid admittance matrix is established, based on the following method: Based on the established DC power flow model, the following derivation is performed using the admittance matrix and the incident matrix. The matrix is based on the following formula: in, This represents the inverse of the node admittance matrix, characterizing the response of node power changes to changes in node voltage phase angle. This indicates that changes in node voltage phase angle are converted into changes in line power. based on The relationship between the matrix, admittance matrix, and incident matrix, combined with the mapping relationship between local marginal price and line congestion shadow price, is used to establish the relationship between electricity price and grid admittance. The formula used is as follows: in, This represents the transpose of the inverse matrix of the nodal admittances; The homogeneous linear equations are established by simultaneously solving the relationship between electricity price and grid admittance in a DC power flow model. The formula used is as follows: Among them, the homogeneous linear equation model It is used to calculate the price difference between two nodes at the end of a line, reflecting the difference in electricity prices at both ends of the line; collect Electricity price and shadow price data at different times were used to write the corresponding homogeneous linear equations. These equations were then stacked to form a system of linear equations, which were used to deduce the unknown admittance reciprocal vector. This is to complete the construction of a homogeneous linear equation model between electricity price and grid admittance matrix.
[0022] Step 2: Extract node and edge features from the collected power data and vectorize them. Input the feature vectors into the dynamic routing encoder. Combine the constructed homogeneous linear equation model to dynamically select and weight the input feature vectors to output the encoded feature sequence of nodes and edges.
[0023] In a specific embodiment of the present invention, by extracting multidimensional features of power grid nodes and lines, and using a dynamic routing encoder combined with a graph structure message passing mechanism for dynamic selection and weighting, efficient expression and deep modeling of complex topological relationships and time-varying features of the power grid are achieved. This not only improves the ability to represent the mapping relationship between electricity price data and power grid physical parameters, but also enhances the model's accuracy in capturing the interaction effects between nodes and changes in line status.
[0024] It should be noted that the reason we perform dynamic weighting and multi-layer encoding on the feature vectors is that the state of each node and line in the power grid is affected by the neighborhood structure and a variety of physical and economic factors. Single or static features are difficult to fully reflect their dynamic changes and interdependencies. By introducing an attention mechanism to achieve dynamic weight allocation, the model can adaptively focus on key information and important connections, avoid noise interference, and improve information transmission efficiency.
[0025] Furthermore, node and edge features are extracted and vectorized. The input feature vectors are dynamically selected and weighted to output a sequence of node and edge encoded features. The method used is as follows: For the first in the power grid Each node constructs a node feature vector, including but not limited to: the node's local marginal price, node type, and historical node price statistics, which are collectively denoted as... ,in Indicates the first The feature vector of each node The index of the node, and ; for the connection nodes in the power grid With nodes The Each line constructs an edge feature vector, including but not limited to: the congestion shadow price corresponding to the line, the reciprocal of the line reactance, and the line capacity constraint, which are collectively denoted as... ,in Indicates the connection node With nodes No. If the edge feature vectors of a line are given, then the feature vectors of all nodes form a matrix. The matrix is composed of all edge eigenvectors. ; Using the node feature matrix and edge feature matrix as input, and based on the graph structure message passing mechanism of the dynamic routing encoder, combined with power grid topology information, node and edge features are dynamically selected and weighted to update the hidden layer encoding features of nodes and edges. The formula describing this process is as follows: in, This indicates that in the graph neural network... The first in the layer The encoded feature vector of each node, It is the sigmoid activation function, used to transform a linear relationship into a non-linear one. Indicates the first The first in the layer The node is the first The dynamic weighting coefficients of the features of each neighboring node, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer node feature linear transformation matrix, This indicates that in the graph neural network... The first in the layer The encoded feature vectors of the neighboring nodes, hour, It is the first The original input feature vectors of the neighboring nodes, Indicates the first The set of neighboring nodes of a node. It is the index of adjacent nodes. Indicates the first In the layer to the first The dynamic weighting coefficients of the edge features, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer edge feature linear transformation matrix, Indicates the first Layer edge The encoded feature vector, For connecting nodes Its neighboring nodes The set of edges; After multiple iterations of the dynamic routing encoder and weighted by physical constraints, the final output is... , ,in and This refers to the encoded feature sequence of nodes and edges.
[0026] Step 3: Based on the selective state-space model, perform time-series modeling on the encoded feature sequence, establish the dynamic relationship between electricity price data and admittance matrix, and output the power grid admittance parameter sequence at each time point in the time series.
[0027] In a specific embodiment of this invention, the encoded feature sequences of nodes and edges output by the dynamic routing encoder are used as observations to construct a selected state-space model. The line susceptance vector is used as the hidden state variable of the system to describe its dynamic change over time. By introducing a continuous time-series input set, and using observation equations based on the DC power flow model and local marginal price theory, the dynamic mapping relationship between electricity price data and grid admittance parameters is concretized into mathematical expressions. Combined with the constraints of a homogeneous linear equation system, a complete time-series linear equation system is formed. The state-space model is then recursively estimated and updated using the Kalman filter algorithm to achieve efficient and accurate inference of the grid admittance parameter sequence at each time step within the time series. We systematically integrate the time-varying dynamic characteristics of grid topology features, market price information, and grid physical parameters. Through the time-series reasoning capabilities of the state-space model and Kalman filter, we accurately capture the changing patterns of grid admittance parameters over time, effectively improving the time-series analysis capability and prediction accuracy of sensitive information reverse reasoning.
[0028] Furthermore, time-series modeling is performed on the encoded feature sequence to establish a dynamic relationship between electricity price data and the admittance matrix, so as to output the power grid admittance parameter sequence at each time point within the time series. The method used is as follows: Based on the node-encoded feature sequence and edge-encoded feature sequence output by the dynamic routing encoder, for continuous time intervals... The feature sequences constitute the temporal input set, where Let represent the total number of consecutive time points used for time series analysis. A selective state-space model is constructed, with node and edge encoded feature sequences as observations. The inverse vector of node admittance is taken as the hidden state of the system. The model dynamics are as follows: in, Indicates in The reciprocal vector of the line reactance at time t. In order to be in The change information of the input node at any given time. For process noise, Indicates in The reciprocal vector of the line reactance at time t. For the model's observations, For selective observation mapping function, To observe the noise, Indicates in Encoded feature sequence of time nodes, Indicates in The encoded feature sequence of the edge at time step; Based on the theory of DC power flow and local marginal price, the observation equation is specified as follows: in, , Is The transpose of the inverse of the nodal admittance matrix at time t. Is time in vector A diagonal matrix consisting of diagonal elements. Indicates in The predicted value of the local marginal price at any given time point. Indicates in Predicted value of shadow price for line congestion at any given time; At each time step, the encoded feature sequences of the acquired nodes and edges are combined and substituted into the homogeneous linear equation system constraints, based on the following formula: Among them, for time series observation sets Stacked linear equations and Kalman filtering was used to... The system is updated, and the final output is a sequence of grid admittance parameters for each time step within the time series. .
[0029] Step 4: Based on the output grid admittance parameter sequence, and combined with the physical laws of the power flow equations of the power system, the grid admittance parameter sequence is corrected, and the grid admittance parameter sequence is optimized through loss function constraints.
[0030] In a specific embodiment of this invention, we correct and optimize the power grid admittance parameter sequence obtained through reverse reasoning by combining the physical laws of power system flow equations. The reason for this correction is that the admittance parameter sequence is the core physical parameter of the power grid model, directly related to the accuracy of power grid state estimation and safe operation. Due to potential issues such as data noise, simplified model assumptions, or incomplete input features during reverse reasoning, the initially estimated admittance parameter sequence often contains biases and errors. Without correction, this can lead to distortions in subsequent analysis and decision-making. Therefore, we employ a loss function based on physical constraints, closely integrating the power grid admittance parameters with actual observed electricity price data and shadow prices. By minimizing physical constraint bias and fitting errors, and introducing a regularization term to prevent overfitting, we iteratively optimize the admittance parameter sequence. This is a crucial means to ensure that the parameter estimation results are scientifically reasonable and meet the actual operating conditions of the power system. The core purpose of this approach is to improve the matching degree between the admittance parameter sequence and the actual power grid operating state, thereby enhancing the reliability and stability of the model.
[0031] Furthermore, by combining the physical laws of the power flow equations, the power grid admittance parameter sequence is corrected, and then optimized through loss function constraints. The method used is as follows: The power grid admittance parameter sequence obtained by reverse reasoning As the initial parameter sequence, the corresponding node admittance matrix is calculated according to the DC power flow model of the power system. The system state is reconstructed using the grid topology and line parameters. Combined with the actual collected local marginal price and line congestion shadow price data, a homogeneous linear equation model is used as physical constraints to evaluate the matching degree between the grid admittance parameters and the electricity price data. By constructing a loss function with physical constraint deviation and electricity price data fitting error as the core, an optimization algorithm is used to adjust the admittance parameter sequence and minimize the loss function. The formula used is as follows: in, This represents the loss function, used to measure the degree of matching between grid admittance parameters and electricity price data. It is the Euclidean norm of a vector, used to measure the magnitude of error. yes Local marginal price data of nodes as actually observed at any given time. yes Real-time observed shadow price data for line congestion. This is a regularization term used to constrain the variation of the inverse vector of the line reactance over time, preventing overfitting. This represents the reciprocal vector of line reactance in the predicted power grid admittance parameter sequence, which is the predicted value of admittance parameters based on the optimization algorithm iteration process. It is an approximate reconstruction of the reciprocal vector of the actual power grid line reactance. The gradient descent method is used to iteratively update the power grid admittance parameter sequence to minimize the loss function. The iteration stops when the degree of matching between the power grid admittance parameters output by the loss function and the electricity price data meets a preset threshold, and the final corrected power grid admittance parameter sequence is output. .
[0032] Step 5: Based on the optimized grid admittance parameter sequence, a differential privacy mechanism is introduced to apply noise perturbation to the publicly available electricity price data. By combining the differential privacy strategy, the reverse reasoning model based on electricity price data is constructed.
[0033] In a specific embodiment of the present invention, by applying Laplace noise perturbation to publicly available local marginal price data, an effective threat model for inverse reasoning of sensitive information in electricity price data is constructed. The importance of this method lies in the fact that, while ensuring the privacy and security of electricity price data, it can still construct an optimized model based on the perturbed data combined with line congestion shadow prices and grid topology information to perform inverse reasoning of admittance parameters. This effectively balances data availability and privacy protection. By minimizing the loss function containing the perturbed price data, the inferred values of grid admittance parameters obtained through inverse reasoning are obtained. The mean square error is used to assess the risk of privacy leakage, quantifying the accuracy of inverse reasoning and the effect of privacy protection. This enables a scientific assessment and control of the threat of sensitive information leakage, thereby improving the security and credibility of power system data sharing.
[0034] It should be noted that the core of the reverse inference threat model construction method lies in analyzing publicly available electricity price data and related market information, utilizing the physical laws and mathematical models of the power system to infer key sensitive parameters within the power grid. First, based on the time-series nodes and line characteristics extracted by the dynamic routing encoder, a state-space model is established, and recursive algorithms such as Kalman filtering are used to achieve a preliminary estimate of the admittance parameters. Second, combining the DC power flow model of the power system and actual electricity price data, the preliminary estimated admittance parameter sequence is optimized and corrected by constructing physical constraints and loss functions to improve the accuracy and physical consistency of parameter estimation. Finally, addressing the issue of potentially publicly available electricity price data in practical applications, a differential privacy mechanism is introduced to perturb the electricity price data, constructing a reverse inference optimization model with privacy protection, and comprehensively evaluating the accuracy of reverse inference and the risk of privacy leakage.
[0035] Furthermore, a differential privacy mechanism is introduced to apply noise perturbation to the publicly available electricity price data. By combining the differential privacy strategy, a threat model for inverse reasoning about sensitive information in the electricity price data is constructed. The method used is as follows: For the local marginal price data of the node actually observed at each moment Introducing the satisfaction - Differential privacy Laplace noise perturbation generates perturbed local marginal price data based on the following formula: in, Indicates in Local marginal disturbance price data at any given time. This represents an independent and identically distributed noise vector; Based on local marginal disturbance price data, observed line congestion shadow price data, and the corrected and optimized power grid admittance parameter sequence, a homogeneous linear equation system is reconstructed. An optimization method is used to inversely infer the admittance parameters, and the optimization objective function is: in, It is used for reverse reasoning of the power grid admittance parameter sequence. The cost function, for Minimization is performed to obtain the inferred values of the grid admittance parameters through reverse reasoning; The inferred values of the grid admittance parameters obtained through reverse reasoning are compared with the optimized and corrected grid admittance parameter values. The mean square error is used to evaluate the accuracy of the reverse reasoning, based on the following formula: in, This represents the mean square error, used to measure the accuracy of the reverse inference of the grid admittance parameters. Indicates the first The line is The inferred power grid admittance value obtained through reverse reasoning at every moment. Indicates the first The line is The power grid admittance parameters are optimized and corrected at all times; the mean square error is... Perform differential privacy strategy analysis. The smaller the value, the higher the accuracy of reverse reasoning, and the greater the risk of sensitive information leakage; conversely, the smaller the value, the higher the accuracy of reverse reasoning. The larger the value, the better the privacy protection. Using electricity price data perturbed by differential privacy mechanism, line congestion shadow price data, and power grid topology information as inputs, an optimization model based on these data is constructed to inversely infer the inferred values of the power grid admittance parameters. The error between the estimated and actual values of the power grid admittance parameters is used as an assessment indicator of privacy leakage risk to complete the construction of the inverse reasoning threat model.
[0036] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0037] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0038] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0039] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for constructing a threat model based on sensitive information from electricity price data through reverse reasoning, characterized in that, The specific steps include: Step 1: Construct a DC power flow model and a local marginal price theoretical model. Based on the two constructed mathematical theoretical models, establish a homogeneous linear equation model between electricity price and grid admittance matrix. Step 2: Extract node and edge features from the collected power data and vectorize them. Input the feature vectors into the dynamic routing encoder. Combine the constructed homogeneous linear equation model to dynamically select and weight the input feature vectors to output the encoded feature sequence of nodes and edges. Step 3: Based on the selective state-space model, perform time-series modeling on the encoded feature sequence, establish the dynamic relationship between electricity price data and admittance matrix, and output the power grid admittance parameter sequence at each time point in the time series; Step 4: Based on the output grid admittance parameter sequence, and combined with the physical laws of the power flow equations of the power system, the grid admittance parameter sequence is corrected, and the grid admittance parameter sequence is optimized through loss function constraints; Step 5: Based on the optimized grid admittance parameter sequence, a differential privacy mechanism is introduced to apply noise perturbation to the publicly available electricity price data. By combining the differential privacy strategy, the reverse reasoning model based on electricity price data is constructed.
2. The method for constructing a threat model based on sensitive information from electricity price data according to claim 1, characterized in that, The methods used to construct the DC power flow model and the local marginal price theory model are as follows: This method acquires local marginal prices for different time periods in the electricity market to reflect economic signals indicating the balance of power supply and demand and congestion at each node in the power grid. Correspondingly, it acquires shadow prices for line capacity constraints to reflect the marginal impact of line congestion on prices. Based on the acquired power grid topology information, it determines the number of nodes in the power grid. Total number of lines Their connections constitute the incident matrix. ; Based on the DC power flow model, the node voltage phase angle vector of the power grid is: The node injected power vector is The nodal admittance matrix is Then there is Node admittance matrix From the incident matrix and the inverse vector of nodal admittance Composition, in which , Indicates the first in the power grid The reciprocal of the reactance of the line, The node is located at the first Line susceptance, Index the power grid line where the node is located. from arrive It covers every line in the power grid and constructs a DC power flow model based on the calculated admittance matrix. The formula used is: in, This represents the transpose of the incident matrix. The nodal admittance vector. It is a vector A diagonal matrix consisting of diagonal elements. This is the vector of reciprocal reactances of the nodes, that is, the reciprocal of the reactance of each line to which the node is located. Taking the derivative of each element in the matrix one by one, we can obtain the following relationship: , Represented by vector A diagonal matrix consisting of diagonal elements; Based on the relationship between congestion price and shadow price, the Lagrange multiplier corresponding to the line capacity constraint is the shadow price. A theoretical model of local marginal price is constructed by utilizing the mapping relationship between local marginal price and line congestion shadow price. The formula used is as follows: in, Indicates the node at time [time]. The congestion component of the local marginal price is used to reflect supply and demand balance and network congestion. This represents the base price when there is no congestion. A vector containing only 1s, used to convert scalars. Extend to all nodes, yes The transpose of the matrix is used to map line congestion prices to node prices. Indicates that the node is Price shadow based on real-time network congestion. It is the power transmission distribution factor matrix, used to represent the influence factor of the line on the node.
3. The method for constructing a threat model based on sensitive information from electricity price data according to claim 2, characterized in that, The homogeneous linear equation model between electricity price and grid admittance matrix is established using the following method: Based on the established DC power flow model, the following derivation is performed using the admittance matrix and the incident matrix. The matrix is based on the following formula: in, This represents the inverse of the node admittance matrix, characterizing the response of node power changes to changes in node voltage phase angle. This means converting changes in node voltage phase angle into changes in line power. based on The relationship between the matrix, admittance matrix, and incident matrix, combined with the mapping relationship between local marginal price and line congestion shadow price, is used to establish the relationship between electricity price and grid admittance. The formula used is as follows: in, This represents the transpose of the inverse of the nodal admittance matrix; The homogeneous linear equations are established by simultaneously solving the relationship between electricity price and grid admittance in a DC power flow model. The formula used is as follows: Among them, the homogeneous linear equation model It is used to calculate the price difference between two nodes at the end of a line, reflecting the price difference of electricity at both ends of the line; collect Electricity price and shadow price data at different times were used to write the corresponding homogeneous linear equations. These equations were then stacked to form a system of linear equations, which were used to deduce the unknown admittance reciprocal vector. This is to complete the construction of a homogeneous linear equation model between electricity price and grid admittance matrix.
4. The method for constructing a threat model based on sensitive information from electricity price data according to claim 3, characterized in that, The node and edge features are extracted and vectorized. The input feature vectors are dynamically selected and weighted to output a sequence of node and edge encoded features. The method used is as follows: For the first in the power grid Each node constructs a node feature vector, including but not limited to: the node's local marginal price, node type, and historical node price statistics, which are collectively denoted as... ,in Indicates the first The feature vector of each node The index of the node, and ; for the connection nodes in the power grid With nodes The Each line constructs an edge feature vector, including but not limited to: the congestion shadow price corresponding to the line, the reciprocal of the line reactance, and the line capacity constraint, which are collectively denoted as... ,in Indicates the connection node With nodes No. If the edge feature vectors of a line are given, then the feature vectors of all nodes form a matrix. The matrix is composed of all edge eigenvectors. ; Using the node feature matrix and edge feature matrix as input, and based on the graph structure message passing mechanism of the dynamic routing encoder, combined with power grid topology information, node and edge features are dynamically selected and weighted to update the hidden layer encoding features of nodes and edges. The formula describing this process is as follows: in, This indicates that in the graph neural network... The first in the layer The encoded feature vector of each node, It is an activation function used to enhance the expressive power of the model. Indicates the first The first in the layer The node is the first The dynamic weighting coefficients of the features of each neighboring node, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer node feature linear transformation matrix, This indicates that in the graph neural network... The first in the layer The encoded feature vectors of the neighboring nodes, hour, It is the first The original input feature vectors of the neighboring nodes, Indicates the first The set of neighboring nodes of a node. It is the index of adjacent nodes. Indicates the first In the layer to the first The dynamic weighting coefficients of the edge features, and satisfying ,and Calculated by the attention mechanism, Indicates the first Layer edge feature linear transformation matrix, Indicates the first Layer edge The encoded feature vector, For connecting nodes Its neighboring nodes The set of edges; After multiple iterations of the dynamic routing encoder and weighted by physical constraints, the final output is... , ,in and This refers to the encoded feature sequence of nodes and edges.
5. The method for constructing a threat model based on sensitive information from electricity price data according to claim 4, characterized in that, Time-series modeling of the encoded feature sequence is performed to establish a dynamic relationship between electricity price data and the admittance matrix, so as to output the power grid admittance parameter sequence at each time point within the time series. The method used is as follows: Based on the node-encoded feature sequence and edge-encoded feature sequence output by the dynamic routing encoder, for continuous time intervals... The feature sequences constitute the temporal input set, where Let represent the total number of consecutive time points used for time series analysis. A selective state-space model is constructed, with node and edge encoded feature sequences as observations. The inverse vector of node admittance is taken as the hidden state of the system. The model dynamics are as follows: in, Indicates in The reciprocal vector of the line reactance at time t. In order to be in The change information of the input node at any given time. For process noise, Indicates in The reciprocal vector of the line reactance at time t. For the model's observations, For selective observation mapping function, To observe the noise, Indicates in Encoded feature sequence of time nodes, Indicates in The encoded feature sequence of the edge at time step; Based on the theory of DC power flow and local marginal price, the observation equation is specified as follows: in, , Is The transpose of the inverse of the nodal admittance matrix at time t. Is time in vector A diagonal matrix consisting of diagonal elements. Indicates in The predicted value of the local marginal price at any given time point. Indicates in Predicted value of shadow price for line congestion at any given time; At each time step, the encoded feature sequences of the acquired nodes and edges are combined and substituted into the homogeneous linear equation system constraints, based on the following formula: Among them, for time series observation sets Stacked linear equations and Kalman filtering was used to... The state is updated, and the final output is the sequence of grid admittance parameters at each time point within the time series. .
6. The method for constructing a threat model based on sensitive information from electricity price data according to claim 5, characterized in that, Based on the physical laws of power flow equations, the power grid admittance parameter sequence is corrected, and then optimized through loss function constraints. The method used is as follows: The power grid admittance parameter sequence obtained by reverse reasoning As the initial parameter sequence, the corresponding node admittance matrix is calculated according to the DC power flow model of the power system. The system state is reconstructed using the grid topology and line parameters. Combined with the actual collected local marginal price and line congestion shadow price data, a homogeneous linear equation model is used as physical constraints to evaluate the matching degree between the grid admittance parameters and the electricity price data. By constructing a loss function with physical constraint deviation and electricity price data fitting error as the core, an optimization algorithm is used to adjust the admittance parameter sequence and minimize the loss function. The formula used is as follows: in, This represents the loss function, used to measure the degree of matching between grid admittance parameters and electricity price data. It is the Euclidean norm of a vector, used to measure the magnitude of error. yes Local marginal price data of nodes as actually observed at any given time. yes Real-time observed shadow price data for line congestion. This is a regularization term used to constrain the variation of the inverse vector of the line reactance over time, preventing overfitting. This represents the reciprocal vector of line reactance in the predicted power grid admittance parameter sequence, which is the predicted value of admittance parameters based on the optimization algorithm iteration process. It is an approximate reconstruction of the reciprocal vector of the actual power grid line reactance. The gradient descent method is used to iteratively update the power grid admittance parameter sequence to minimize the loss function. The iteration stops when the degree of matching between the power grid admittance parameters output by the loss function and the electricity price data meets a preset threshold, and the final corrected power grid admittance parameter sequence is output. .
7. The method for constructing a threat model based on sensitive information from electricity price data according to claim 6, characterized in that, A differential privacy mechanism is introduced to apply noise perturbation to publicly available electricity price data. By combining this with a differential privacy strategy, a threat model for inverse reasoning about sensitive information in the electricity price data is constructed. The method used is as follows: For the local marginal price data of the node actually observed at each moment Introducing satisfaction - Differential privacy Laplace noise perturbation generates perturbed local marginal price data based on the following formula: in, Indicates in Local marginal disturbance price data at any given time. This represents an independent and identically distributed noise vector; Based on local marginal disturbance price data, observed line congestion shadow price data, and the corrected and optimized power grid admittance parameter sequence, a homogeneous linear equation system is reconstructed. An optimization method is used to inversely infer the admittance parameters, and the optimization objective function is: in, It is used for reverse reasoning of the power grid admittance parameter sequence. The cost function, for Minimization is performed to obtain the inferred values of the grid admittance parameters from the reverse inference; The inferred values of the grid admittance parameters obtained through reverse reasoning are compared with the optimized and corrected values. The mean square error is used to evaluate the accuracy of the reverse reasoning, based on the following formula: in, This represents the mean square error, used to measure the accuracy of the reverse inference of the grid admittance parameters. Indicates the first The line is The inferred power grid admittance value obtained through reverse reasoning at every moment. Indicates the first The line is The power grid admittance parameters are optimized and corrected at all times; the mean square error is... Perform differential privacy strategy analysis. The smaller the value, the higher the accuracy of reverse reasoning, and the greater the risk of sensitive information leakage; conversely, the smaller the value, the higher the accuracy of reverse reasoning. The larger the value, the better the privacy protection. Using electricity price data perturbed by differential privacy mechanism, line congestion shadow price data, and power grid topology information as inputs, an optimization model based on these data is constructed to inversely infer the inferred values of the power grid admittance parameters. The error between the estimated and actual values of the power grid admittance parameters is used as an assessment indicator of privacy leakage risk to complete the construction of the inverse reasoning threat model.
Citation Information
Patent Citations
Intelligent micro-grid energy management method and device considering user differential privacy protection
CN119341110A
Power grid line power flow information inference threat assessment method and system
CN119940555A
Electric power data leakage identification method and system based on deep learning
CN120579221A
Electric power system abnormal remote signaling detection method based on graph auto-encoder model
CN120597196A
Topology leakage threat assessment method and device under power grid public data association
CN121327858A