A method and system for detecting outliers in electricity market settlement prices
By calculating multiple candidate indicators and Pearson correlation coefficients of electricity market settlement data, an explanatory model for electricity price changes is constructed. This solves the problems of information redundancy and coarse risk classification in existing technologies for monitoring electricity price anomalies, realizes the automated generation of power grid control strategies, and improves the safety and stability of the power system.
Patent Information
- Application Number
- CN202611181007.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-05
- Publication Date
- 2026-11-24
AI Technical Summary
Existing electricity market monitoring methods lack systematic screening and integration of multidimensional influencing factors, cannot effectively eliminate information redundancy, fail to establish a quantitative mapping relationship between abnormal electricity price deviations and specific market scenarios, and cannot transform monitoring results into grid control instructions, resulting in crude risk classification and insufficient response speed.
By acquiring electricity market settlement data, calculating the Pearson correlation coefficients of multiple candidate indicators, screening and forming scenario indicator templates corresponding to different extreme scenarios, constructing an explanation model for electricity price changes, and mapping to the scenario indicator templates when the risk level reaches the preset trigger conditions, calculating the cumulative contribution ratio to identify the type of extreme scenario, and generating power grid control strategies.
It achieves automated closed-loop processing of multi-dimensional perception, factor screening, and scenario diagnosis of electricity price anomalies, accurately identifies the structural causes of electricity price anomalies, and generates automated grid control strategies, thereby improving the safe and stable operation of the power system in a market environment.
Smart Images

Figure CN123159879A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power market monitoring and risk management technology, and relates to a method and system for detecting outliers in power market settlement prices. Background Technology
[0002] With the deepening of electricity market reform, spot markets, medium- and long-term markets, and ancillary service markets have been gradually established and improved, and market pricing mechanisms are playing an increasingly important role in the allocation of electricity resources. However, electricity, as a commodity with special attributes such as the inability to be stored on a large scale and the need for real-time supply and demand balance, is susceptible to the combined effects of various complex factors, including changes in supply and demand, unplanned unit outages, network congestion, strategic behavior of market participants, and external environmental shocks. Under specific market conditions, settlement prices may experience significant abnormal fluctuations in a short period of time. These abnormal fluctuations not only directly affect the economic interests of market participants but may also pose a potential threat to the safe and stable operation of the power system and market fairness. Traditional electricity market monitoring methods often rely on fixed threshold price limit monitoring or simple year-on-year and month-on-month statistical analysis, which are overly simplistic and fail to characterize the structural causes of abnormal electricity prices from multiple dimensions.
[0003] In practical applications, existing monitoring methods have the following obvious shortcomings: First, they lack systematic screening and integration of multi-dimensional influencing factors. Faced with numerous candidate indicators that may affect electricity prices, they fail to effectively eliminate information redundancy, resulting in a bloated and untargeted monitoring system. Second, they fail to establish a quantitative mapping relationship between abnormal deviations in electricity prices and specific market scenarios. They can only issue warning signals for abnormal prices but cannot analyze the root cause of the abnormality. Third, the classification of risk levels is crude, and there is a lack of a tiered early warning system driven by historical data.
[0004] More critically, the existing monitoring of electricity market anomalies is disconnected from the actual grid dispatch and control process. Even if the monitoring system identifies abnormal electricity prices and determines their causes, it cannot translate these into specific, executable grid control instructions. Dispatchers still need to rely on their personal experience to make judgments and decisions, making it difficult to guarantee response speed and the accuracy of control measures, and thus unable to effectively cope with the potential impact of complex market disturbances on the physical operation of the power grid. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for detecting outliers in electricity market settlement prices, in order to solve the problems of unreasonable risk classification and poor monitoring targeting in existing technologies.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for detecting outliers in electricity market settlement prices, comprising: Obtain settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator; Based on the Pearson correlation coefficient, indicators used to construct boundary conditions are selected to form scenario indicator templates corresponding to different extreme scenarios; A model for explaining electricity price changes is constructed, which takes the standardized outlier deviation of each indicator as input and the electricity price change as output. Construct risk level determination rules. When the risk level reaches the preset trigger conditions, map the output of the electricity price change interpretation model to the scenario indicator template. Based on the mapping results, calculate the cumulative contribution ratio corresponding to each extreme scenario. Determine the current extreme scenario type based on the preset determination rules satisfied by the cumulative contribution ratio. Based on the current extreme scenario type, generate and output the corresponding power grid control strategy.
[0007] Furthermore, the acquisition of electricity market settlement data, and the calculation of multiple candidate indicators based on the settlement data, including: The candidate indicators cover price formation, transaction behavior, fee settlement, and supply and demand matching dimensions.
[0008] Furthermore, the step of selecting indicators for constructing boundary conditions based on the Pearson correlation coefficient to form scenario indicator templates corresponding to different extreme scenarios includes: If the absolute value of the Pearson correlation coefficient between two candidate indicators is greater than the first threshold, then only one of the indicators is retained. If the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than the second threshold and less than or equal to the first threshold, then one of the indicators is retained according to the application scenario. If the absolute value of the Pearson correlation coefficient of two candidate indicators is less than or equal to the second threshold, then both indicators are retained.
[0009] Furthermore, before calculating the Pearson correlation coefficient among the candidate indicators, a warning threshold is set for each candidate indicator: Abnormal indicators are identified by comparing the actual value of the indicator in the current period with the warning threshold.
[0010] The step of setting warning thresholds for each of the candidate indicators includes: The interquartile range method is used to calculate the first quartile, third quartile, and interquartile range of the indicator based on historical sample data. Based on the third quartile, the interquartile range, and the preset anomaly coefficient, the high-risk threshold of this indicator is calculated and used as the warning threshold. The abnormality coefficient is dynamically adjusted based on the determined risk level; the higher the risk level, the smaller the abnormality coefficient, so as to tighten the warning threshold.
[0011] Furthermore, the construction of the electricity price change explanation model, which takes the standardized outlier deviation of each indicator as input and the electricity price change as output, includes: The expression for the electricity price change explanation model is:
[0012] in, This indicates the change in electricity prices within a period; This indicates the change or degree of abnormal deviation of the j-th indicator within the corresponding period; This represents the weighting of the indicator's impact on electricity price changes, used to characterize the sensitivity of the indicator's changes to electricity price fluctuations. This is the residual term, used to reflect random disturbances or unobservable factors that are not explicitly included in the model; The formula for calculating standardized outlier deviation is:
[0013] in, This represents the actual value of the j-th index at time t; This represents the mean level of indicator j over the historical sample period; This represents the standard deviation of index j over the historical sample period; It is used to characterize the degree to which the indicator deviates from its historical normal state at the current point in time.
[0014] Furthermore, the construction of risk level determination rules includes: Obtain the absolute value of electricity price changes for historical settlement periods to form a historical sequence; Based on the preset high quantile of historical sequences, determine the boundary warning threshold and extreme trigger threshold; When the absolute value of the change in electricity price is less than the boundary warning threshold, it is determined to be within the normal fluctuation range; When the absolute value of the change in electricity price is greater than or equal to the boundary warning threshold, but less than the extreme trigger threshold, it is determined to be a boundary warning state; When the absolute value of the change in electricity price is greater than or equal to the extreme trigger threshold, it is determined to be an extreme risk state, and the extreme risk state constitutes a preset trigger condition.
[0015] Furthermore, the step of mapping the output of the electricity price change explanation model to the scenario indicator template, and calculating the cumulative contribution percentage corresponding to each extreme scenario based on the mapping result, includes: Based on the electricity price change explanation model, the contribution values of each indicator to the electricity price deviation are obtained. Based on this, according to the constructed scenario indicator template, the indicator contribution values are mapped to different extreme scenario categories, and the cumulative contribution ratio of each scenario is calculated:
[0016] in, This represents the set of metrics corresponding to scenario s. The relative dominance of this scenario in this round of electricity price anomalies is characterized; after the risk triggering condition (ΔP≥T2) is met, a rule-based judgment method based on contribution structure is adopted to identify the extreme scenario type.
[0017] Furthermore, determining the current extreme scenario type based on a preset judgment rule satisfied by the cumulative contribution ratio includes: If there is a scenario with the largest cumulative contribution, and the difference between this cumulative contribution and the cumulative contribution of all other scenarios exceeds a preset difference, then the current extreme scenario type is determined to be a single dominant scenario. If the cumulative contribution ratio of two scenarios both exceed the preset attention value, and the difference between the cumulative contribution ratios of the two scenarios is within the preset range, then the current extreme scenario type is determined to be a double scenario superposition. If the cumulative contribution percentages of three or more scenarios are all at the same preset level and the differences between them are within the preset range, then the current extreme scenario type is determined to be a multi-factor composite scenario. If the preset triggering conditions are met, but the cumulative contribution ratio of all scenarios is lower than the preset attention value or is scattered, then the current extreme scenario type is determined to be an atypical extreme scenario.
[0018] The process of generating and outputting corresponding power grid control strategies based on the current extreme scenario type includes: When the extreme scenario is a supply-demand imbalance, instructions are generated to increase the output of start-up and shutdown units and to raise the spinning reserve capacity threshold. When the extreme scenario is market manipulation, an instruction is generated to limit the bidding capacity of market participants and to trigger a review of the market participants' behavior. When the extreme scenario is power transmission network congestion, generate unit output commands to adjust the power flow section or initiate load-side demand response commands.
[0019] Secondly, the present invention provides a system for detecting outliers in electricity market settlement prices, comprising: The data acquisition module is used to acquire settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator. The indicator template construction module is used to select indicators for constructing boundary conditions based on the Pearson correlation coefficient, forming scenario indicator templates corresponding to different extreme scenarios. The electricity price change explanation model construction module is used to construct an electricity price change explanation model. The electricity price change explanation model takes the standardized outlier deviation of each indicator as input and the electricity price change as output. The output module is used to construct risk level determination rules. When the risk level reaches the preset trigger conditions, the output of the electricity price change interpretation model is mapped to the scenario indicator template. Based on the mapping results, the cumulative contribution ratio corresponding to each extreme scenario is calculated. Based on the preset determination rules satisfied by the cumulative contribution ratio, the current extreme scenario type is determined. The control strategy generation module is used to generate and output the corresponding power grid control strategy based on the current extreme scenario type.
[0020] Furthermore, the data acquisition module is specifically used for: The candidate indicators cover price formation, transaction behavior, fee settlement, and supply and demand matching dimensions.
[0021] Furthermore, the indicator template construction module is specifically used for: If the absolute value of the Pearson correlation coefficient between two candidate indicators is greater than the first threshold, then only one of the indicators is retained. If the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than the second threshold and less than or equal to the first threshold, then one of the indicators is retained according to the application scenario. If the absolute value of the Pearson correlation coefficient of two candidate indicators is less than or equal to the second threshold, then both indicators are retained.
[0022] Furthermore, before calculating the Pearson correlation coefficient among the candidate indicators, a warning threshold is set for each candidate indicator: Abnormal indicators are identified by comparing the actual value of the indicator in the current period with the warning threshold.
[0023] The step of setting warning thresholds for each of the candidate indicators includes: The interquartile range method is used to calculate the first quartile, third quartile, and interquartile range of the indicator based on historical sample data. Based on the third quartile, the interquartile range, and the preset anomaly coefficient, the high-risk threshold of this indicator is calculated and used as the warning threshold. The abnormality coefficient is dynamically adjusted based on the determined risk level; the higher the risk level, the smaller the abnormality coefficient, so as to tighten the warning threshold.
[0024] Furthermore, the electricity price change explanation model construction module is specifically used for: The expression for the electricity price change explanation model is:
[0025] in, This indicates the change in electricity prices within a period; This indicates the change or degree of abnormal deviation of the j-th indicator within the corresponding period; This represents the weighting of the indicator's impact on electricity price changes, used to characterize the sensitivity of the indicator's changes to electricity price fluctuations. This is the residual term, used to reflect random disturbances or unobservable factors that are not explicitly included in the model; The formula for calculating standardized outlier deviation is:
[0026] in, This represents the actual value of the j-th index at time t; This represents the mean level of indicator j over the historical sample period; This represents the standard deviation of index j over the historical sample period; It is used to characterize the degree to which the indicator deviates from its historical normal state at the current point in time.
[0027] Furthermore, the construction of risk level determination rules includes: Obtain the absolute value of electricity price changes for historical settlement periods to form a historical sequence; Based on the preset high quantile of historical sequences, determine the boundary warning threshold and extreme trigger threshold; When the absolute value of the change in electricity price is less than the boundary warning threshold, it is determined to be within the normal fluctuation range; When the absolute value of the change in electricity price is greater than or equal to the boundary warning threshold, but less than the extreme trigger threshold, it is determined to be a boundary warning state; When the absolute value of the change in electricity price is greater than or equal to the extreme trigger threshold, it is determined to be an extreme risk state, and the extreme risk state constitutes a preset trigger condition.
[0028] Furthermore, the output module is specifically used for: Based on the electricity price change explanation model, the contribution values of each indicator to the electricity price deviation are obtained. Based on this, according to the constructed scenario indicator template, the indicator contribution values are mapped to different extreme scenario categories, and the cumulative contribution ratio of each scenario is calculated:
[0029] in, This represents the set of metrics corresponding to scenario s. The relative dominance of this scenario in this round of electricity price anomalies is characterized; after the risk triggering condition ΔP≥T2 is met, a rule-based judgment method based on contribution structure is adopted to identify the extreme scenario type.
[0030] Furthermore, the output module is used for: If there is a scenario with the largest cumulative contribution, and the difference between this cumulative contribution and the cumulative contribution of all other scenarios exceeds a preset difference, then the current extreme scenario type is determined to be a single dominant scenario. If the cumulative contribution ratio of two scenarios both exceed the preset attention value, and the difference between the cumulative contribution ratios of the two scenarios is within the preset range, then the current extreme scenario type is determined to be a double scenario superposition. If the cumulative contribution percentages of three or more scenarios are all at the same preset level and the differences between them are within the preset range, then the current extreme scenario type is determined to be a multi-factor composite scenario. If the preset triggering conditions are met, but the cumulative contribution ratio of all scenarios is lower than the preset attention value or is scattered, then the current extreme scenario type is determined to be an atypical extreme scenario.
[0031] Furthermore, the step of generating and outputting a corresponding power grid control strategy based on the current extreme scenario type includes: When the extreme scenario is a supply-demand imbalance, instructions are generated to increase the output of start-up and shutdown units and to raise the spinning reserve capacity threshold. When the extreme scenario is market manipulation, an instruction is generated to limit the bidding capacity of market participants and to trigger a review of the market participants' behavior. When the extreme scenario is power transmission network congestion, generate unit output commands to adjust the power flow section or initiate load-side demand response commands.
[0032] Thirdly, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for detecting outliers in electricity market settlement prices.
[0033] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for detecting outliers in electricity market settlement prices.
[0034] Compared with the prior art, the present invention has the following technical effects: This invention acquires electricity market settlement data and calculates multiple candidate indicators covering price formation, transaction behavior, cost settlement, and supply-demand matching dimensions, comprehensively capturing potential factors influencing electricity price fluctuations. By calculating the Pearson correlation coefficient among the candidate indicators, it quantifies the linear correlation between indicators, providing an objective basis for subsequent redundant indicator removal. By selecting indicators for constructing boundary conditions based on the Pearson correlation coefficient and forming scenario indicator templates corresponding to different extreme scenarios, it eliminates highly redundant indicators, retaining the most informative independent indicators. Furthermore, it pre-classifies indicators according to business logic into different extreme scenarios such as supply-demand tension, market manipulation, and congestion, establishing a structured mapping foundation from indicators to scenarios.
[0035] By constructing an electricity price change explanation model that uses the standardized abnormal deviation of each indicator as input and the change in electricity price as output, the abnormal deviation of each multi-dimensional indicator can be mathematically correlated with the actual change in electricity price, obtaining the quantitative contribution weight of each indicator to the price deviation, thus providing a quantifiable decomposition tool for anomaly attribution. By constructing risk level determination rules and initiating a scenario type determination process when the risk level reaches a preset trigger condition, unnecessary complex calculations are avoided during normal electricity price fluctuations. Subsequent mapping and determination operations are only performed under extreme risk conditions, achieving a reasonable allocation of computing resources. By mapping the output of the electricity price change explanation model to a scenario indicator template and calculating the cumulative contribution ratio of each extreme scenario based on the mapping results, the dispersed indicator-level contribution values can be aggregated into a scenario-level comprehensive influence indicator, which intuitively reflects the relative importance of various market extreme scenarios in the current electricity price anomaly. By determining the current extreme scenario type based on the preset judgment rules satisfied by the cumulative contribution ratio, the anomaly types that can be automatically identified can cover a variety of complex situations such as single dominant scenarios, dual scenario superposition, multi-factor composite scenarios, and atypical extreme scenarios, enabling market operators or regulatory agencies to accurately grasp the structural causes of abnormal electricity price fluctuations.
[0036] This invention organically integrates the analysis of financial risks in the electricity market with the physical stability control of the power grid. By establishing an automated closed loop from "data analysis → scenario identification → control decision-making," this invention can directly output a matching power grid control strategy the instant an abnormal electricity price scenario is identified. For example, when a "severe supply-demand imbalance scenario" is identified, the system automatically generates instructions to increase the output of fast-moving units and improve reserve capacity; when a "market manipulation scenario" is identified, market intervention is triggered and dispatch principles are temporarily adjusted. This process provides technical support for market risk monitoring to control the transient stability of the power grid, significantly improving the safe and stable operation of the power system in a highly market-driven environment. Attached Figure Description
[0037] Figure 1 This is a flowchart of the present invention. Detailed Implementation
[0038] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0040] Explanation of related terms (1) Extreme conditions: refers to abnormal conditions in the operation of the electricity market caused by external disturbances, system failures, abnormal behavior of market participants, severe supply and demand imbalances, macroeconomic shocks, etc.
[0041] (2) Extreme scenarios: refers to situations where, under extreme conditions, market prices, clearing results, settlement data or settlement items become abnormal, making it difficult for price formation and settlement results to truly reflect supply and demand, costs and market participants’ behavior.
[0042] (3) Boundary conditions: refers to a set of indicators, thresholds and triggering rules used to determine whether the market operation status has changed from normal to risky or extreme.
[0043] (4) Pearson correlation coefficient: a statistic used to measure the degree of linear correlation between two indicators. It is used to identify redundant relationships between candidate indicators.
[0044] (5) Interquartile range method: also known as the IQR method, it constructs anomaly thresholds by using the first quartile, the third quartile, and the interquartile range, and has robustness against single-point extreme value interference.
[0045] (6) Cluster analysis: used to identify structural breakpoints in historical samples of indicators and to help correct interquartile range thresholds.
[0046] (7) Electricity price change explanation model: A linear weighted model with abnormal changes in multidimensional indicators as input and changes in electricity price as output, used to explain which factors drive the deviation of electricity price and the contribution of each factor.
[0047] (8) Ridge regression: A linear regression method with L2 regularization, which can alleviate the problem of unstable regression coefficients caused by multi-indicator collinearity.
[0048] (9) Standardized outlier deviation: refers to the degree of deviation of the current value of an indicator from its historical mean and standard deviation.
[0049] (10) Contribution structure: refers to the explanatory contribution of each indicator to the deviation of electricity price and its cumulative proportion after being classified by scenario.
[0050] (11) Extreme scenario determination: after a risk is triggered, the dominant scenario type of the current abnormal state is identified based on the contribution ratio of each scenario indicator set.
[0051] The present invention will now be described in further detail with reference to the accompanying drawings: Example 1, see Figure 1 In one embodiment of the present invention, a method for detecting outliers in electricity market settlement prices is provided to solve the technical problems in the prior art of being unable to effectively trace the structural causes of electricity price anomalies and being unable to automatically identify the types of abnormal scenarios.
[0052] Specifically, the method for detecting outliers in electricity market settlement prices according to the present invention includes the following steps: S1: Obtain settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator.
[0053] A multi-dimensional candidate indicator pool is constructed, and the correlation between indicators is measured to provide a data foundation for subsequent indicator selection and template construction. Electricity market settlement data refers to the transaction results and fee details generated during the settlement period, including but not limited to day-ahead market clearing prices, real-time market node prices, winning bid volumes for each market participant, transaction contract prices, transmission costs, congestion surplus allocation, and ancillary service compensation fees. This settlement data comes from the electricity market's trading system, dispatching system, and settlement system, and is the most direct reflection of the market's actual operating status. Candidate indicators calculated based on this settlement data are specific statistics or ratios extracted from the original settlement data to characterize the market's operating characteristics in a specific dimension. Specifically, the candidate indicators cover price formation, transaction behavior, fee settlement, and supply-demand matching dimensions. Among them, candidate indicators for the price formation dimension include, but are not limited to, the price difference between the intraday highest and lowest prices, the price dispersion at different times of the same node, the deviation rate between the day-ahead price and the real-time price, and the duration of electricity price peaks at specific nodes; candidate indicators for the trading behavior dimension include, but are not limited to, the ratio of the difference between the bid price and the marginal clearing price, the change in the trading volume share of major market participants, the year-on-year change rate of the bid frequency density, and the frequency of bid withdrawal or modification; candidate indicators for the cost settlement dimension include, but are not limited to, the total amount and allocation ratio of congestion surplus, the marginal cost ratio of ancillary service fees, the fluctuation of the proportion of transmission and distribution prices in total costs, and the month-on-month growth rate of deviation assessment fees; candidate indicators for the supply and demand matching dimension include, but are not limited to, the degree of deviation of the supply and demand ratio from the historical average, the cumulative capacity ratio of forced unit shutdowns, the absolute value of the periodic average of the load forecast error, and the peak-valley value of the new energy output forecast deviation.
[0054] The Pearson correlation coefficient is a statistic that measures the degree of linear correlation between two variables. Its value ranges from -1 to +1, with a value closer to one indicating a stronger linear correlation and a value closer to zero indicating a weaker linear correlation. Calculating the Pearson correlation coefficient between candidate indicators can reveal whether there is significant information overlap between different indicators. If the absolute value of the Pearson correlation coefficient between two candidate indicators is very high, it means that they carry a large amount of redundant information. Including them in the model will not only fail to increase explanatory power but may also lead to model instability and an unnecessary increase in computational complexity.
[0055] S2: Based on the Pearson correlation coefficient, select indicators for constructing boundary conditions to form scenario indicator templates corresponding to different extreme scenarios.
[0056] Candidate indicators are streamlined based on pre-defined correlation strength grading criteria, and the retained core indicators are organized into scenario indicator templates corresponding to different extreme market conditions according to business domain experience and knowledge. It should be noted that the purpose of screening indicators used to construct boundary conditions is to eliminate those that are highly linearly correlated with other indicators, thus contributing redundant information. Here, boundary conditions refer to the range of the indicator set relied upon by the subsequent electricity price change interpretation model and scenario mapping calculations; that is, only indicators that pass the screening will enter the model training and scenario determination process. Screening is not a simple mechanical deletion, but a tiered operation that adopts different processing strategies based on the strength of the correlation coefficient.
[0057] The creation of scenario indicator templates corresponding to different extreme scenarios refers to the pre-assignment of selected indicators to specific extreme scenario categories based on their actual mechanisms of action in abnormal market events and prior business knowledge. Extreme scenarios refer to typical market conditions that lead to abnormally large fluctuations in electricity market settlement prices, such as persistently high prices due to sustained supply and demand tensions, artificial manipulation due to excessive market power, cost-push scenarios due to sudden changes in fuel or primary energy costs, localized price distortions due to severe transmission network congestion, and arbitrage scenarios exploiting loopholes in market rules. Each extreme scenario corresponds to a scenario indicator template, which is a set of indicators containing several key indicators that play a crucial role in analyzing and identifying the scenario.
[0058] S3: Construct an explanatory model for electricity price changes. The explanatory model for electricity price changes takes the standardized outlier deviation of each indicator as input and the electricity price change as output.
[0059] A mathematical model is established to quantitatively correlate abnormal fluctuations in various indicator dimensions with the actual magnitude of electricity price changes. The purpose of constructing the electricity price change explanation model is not simply to predict future electricity price changes, but to perform attribution analysis on electricity price changes that have occurred or are occurring, i.e., to quantify the contribution of each input indicator to the current electricity price change. Standardized abnormal deviation refers to the dimensionless value obtained by subtracting the historical mean from the current value of each indicator and then dividing by its historical standard deviation. The advantage of this standardization is that indicators of different dimensions and orders of magnitude are all measured on the same scale after standardization, making their weight coefficients in the model comparable. The electricity price change, as the output, refers to the actual change in electricity price within the current settlement period compared to the reference base period. The explanation model adopts a linear structure, which assumes that the total change in electricity price can be approximately decomposed into a linear superposition of the contributions of the independent factors represented by each indicator.
[0060] S4: Construct risk level determination rules. When the risk level reaches the preset trigger conditions, map the output of the electricity price change interpretation model to the scenario indicator template. Based on the mapping results, calculate the cumulative contribution ratio corresponding to each extreme scenario. Determine the current extreme scenario type based on the preset determination rules satisfied by the cumulative contribution ratio.
[0061] A quantitative grading standard for the degree of electricity price anomalies is established. When an extreme risk level requiring in-depth intervention is determined, a complete analysis chain from model output to scenario classification is initiated, ultimately automatically identifying the structured scenario type of the current abnormal electricity price fluctuation. Risk level determination rules are constructed to set differentiated handling levels based on the statistical distribution characteristics of historical electricity price fluctuations. This avoids initiating a complex full-process scenario analysis for every minor fluctuation in electricity prices, achieving classified risk management and optimized allocation of computing resources. The preset trigger condition refers to the threshold for reaching an extreme risk state, i.e., the actual change in electricity price exceeds the upper extreme quantile set based on long-term historical data. When the electricity price change triggers this condition, it indicates that the current market environment has significantly deviated from the historical normal operating range, and there are structural anomalies requiring in-depth analysis.
[0062] The output of the electricity price change explanation model is mapped to scenario indicator templates. The independent contribution value of each indicator output by the model to the electricity price deviation is categorized according to one or more scenario templates to which that indicator belongs. The cumulative contribution ratio of each extreme scenario is calculated based on the mapping results. This is done by summing the absolute values of the contribution values of all indicators categorized under the same extreme scenario to obtain the total contribution of that scenario in the current electricity price anomaly. The proportion of this total contribution to the sum of the total contributions of all scenarios is then calculated. Scenarios with a high cumulative contribution ratio indicate that factors such as supply and demand tensions, market manipulation, or blockages play a more significant role in the current electricity price anomaly. The current extreme scenario type is determined based on preset judgment rules satisfied by the cumulative contribution ratio. This involves matching the cumulative contribution ratio of each scenario to predefined category prototypes, such as single dominant scenarios, dual-scenario superposition, multi-factor composite scenarios, or atypical extreme scenarios, thereby completing the transformation from numerical contribution to a structured diagnostic report.
[0063] S5: Generate and execute power grid control strategies based on extreme scenario types.
[0064] Specifically, this scenario-policy mapping library includes, but is not limited to, the following cases: When the current extreme scenario is determined to be a single dominant scenario, and the scenario is a scenario of severe supply and demand imbalance, the power grid control strategy shall include at least: sending an instruction to the automatic generation control system to immediately increase the output plan of the fast-start gas turbine units in the hot standby state within the system; and simultaneously raising the spinning reserve capacity threshold value of each province to cope with subsequent uncertainties.
[0065] When the current extreme scenario is determined to be a market manipulation scenario, the power grid control strategy includes at least: sending a signal to the market management system to temporarily restrict the bid price or winning capacity of the identified specific market entity; and simultaneously notifying the dispatch center to appropriately adjust the upper and lower limits of the entity's output in the subsequent clearing calculation as a preventive control measure.
[0066] When the current extreme scenario is determined to be a severe power transmission network congestion scenario, the power grid control strategy includes at least the following: calculating and generating reverse regulation unit output adjustment instructions based on the sensitivity information of the congestion section, such as requiring upstream units to reduce output and downstream units to increase output; at the same time, if the limit is still exceeded after adjustment, sending instructions to the load control terminal to initiate the precise load shedding or user-side demand response program in the relevant area.
[0067] This invention presents a method for detecting outliers in electricity market settlement prices. By establishing a complete process—from settlement data collection to candidate indicator construction, from correlation coefficient calculation to redundancy screening, from scenario template construction to interpretive model training, and from risk level determination to scenario type identification—this method achieves automated closed-loop processing for multi-dimensional perception, factor screening, quantitative attribution, and scenario diagnosis of abnormal electricity price fluctuations. The method's four steps are progressive and organically coordinated: the first step constructs a full-dimensional indicator pool and measures correlation; the second step simplifies and organizes the indicator set into scenarios; the third step completes a quantitative decomposition model of anomaly contributions; and the fourth step establishes a complete decision-making chain from risk perception to causal diagnosis. Together, these steps achieve a leap from detecting anomalies to understanding them.
[0068] Example 2 provides a method for detecting outliers in electricity market settlement prices, including: This invention establishes a technical process for identifying electricity market price risks and determining extreme scenarios under extreme conditions: First, based on identifying the causes of price distortions such as market participant behavior and technical support system failures, a candidate indicator system is constructed around the entire process of price formation, transaction behavior, fee settlement, and supply and demand matching, starting from actual settlement data and settlement item structure. This system is then used to screen boundary condition indicator templates for different extreme scenarios using Pearson correlation coefficients. Next, the interquartile range method is used to determine the indicator warning thresholds, and cluster analysis is introduced to identify potential structural breakpoints in the indicator distribution. Subsequently, after the boundary conditions are triggered, an explanatory model for electricity price changes is constructed to structurally decompose electricity price changes, calculate the contribution of each indicator to electricity price deviation, and determine the risk level of electricity price deviation based on historical distribution. Finally, the indicator contributions are mapped to scenario indicator templates, the cumulative contribution ratio of each scenario is calculated to identify the dominant extreme scenarios, and the threshold sensitivity is dynamically adjusted according to the risk level, forming a continuous closed loop of boundary identification, risk quantification, scenario attribution, and feedback adjustment.
[0069] Selection and classification of boundary condition indices Based on actual settlement data and a thorough analysis of the electricity market operation mechanism and settlement item structure, indicators were selected across the entire process of price formation, transaction behavior, cost settlement, and supply-demand matching. Taking into account factors such as price fluctuation characteristics, market participant behavior, and the distribution of institutional costs in the electricity market, 27 candidate indicators were initially identified, covering indicators of month-on-month changes, structural proportions, and concentration. These indicators reflect core settlement results such as electricity prices and volumes, while also incorporating key information dimensions such as the composition of settlement costs, market concentration levels, and inter-regional transactions. This systematically characterizes the coupling characteristics of price, volume, and costs in extreme scenarios, laying the foundation for boundary condition construction.
[0070] To improve the independence and representativeness of the indicator system, the Pearson correlation coefficient is used as a common grading standard in statistical analysis and multi-indicator construction. The indicators are graded according to the |r| value, as shown in Table 1.
[0071] Table 1: Suggestions for Classification and Screening of Correlation Strength Among Indicators
[0072] Indicator classification under different extreme scenarios (1) Natural disasters and extreme weather scenarios In natural disasters and extreme weather scenarios, sudden meteorological events (such as blizzards, typhoons, and extreme heat) may trigger problems such as load surges, abnormal power output on the power generation side, and limited transmission channels, thereby disrupting regional power balance, causing drastic fluctuations in electricity prices, and resulting in settlement results deviating from the true supply and demand situation. To reasonably set boundary conditions for such scenarios, four indicators highly correlated with the impact path of meteorological disturbances were selected (as shown in Table 2), covering dimensions such as power generation volatility, load surge, electricity price responsiveness, and cross-regional compensation behavior.
[0073] Table 2: Indicator Selection under Natural Disasters and Extreme Weather Scenarios
[0074] (2) Scenarios of abnormal subject behavior In scenarios involving abnormal market behavior, individual market participants manipulate the clearing results through strategic bidding, capacity restrictions, or inflated bids, causing market prices to deviate from reasonable supply and demand logic in a short period and undermining the fairness of transactions for other market participants. These scenarios essentially represent abuse of market power or distorted bidding behavior, characterized by drastic fluctuations in clearing prices, highly concentrated bidding, and abnormal cost structures. As shown in Table 3, four representative and independent core indicators are selected for constructing the boundary conditions for this type of scenario.
[0075] Table 3: Indicator Selection in Scenarios of Abnormal Subject Behavior
[0076] (3) Supply and demand imbalance scenarios Severe supply-demand imbalance scenarios refer to situations where, within a specific period, factors such as a surge in electricity load, insufficient adjustable resources, or failure of inter-regional regulation cause a significant deviation in the system's supply-demand relationship, leading to a significant increase or drastic fluctuation in clearing prices. These scenarios typically occur during periods of high temperatures, peak electricity consumption, or large-scale maintenance shutdowns, exhibiting typical characteristics of concentrated load, limited regulation, and soaring prices, as shown in Table 4. Four key indicators reflecting system tension, regulation capacity, electricity price response, and demand-side behavior are selected to construct the boundary conditions for this type of scenario.
[0077] Table 4: Indicator Selection for Supply-Demand Imbalance Scenarios
[0078] (4) Technical support system failure scenarios Technical support system failure scenarios refer to situations in the operation of the electricity market where problems such as dispatch system anomalies, settlement link interruptions, communication failures, or data processing malfunctions prevent the normal operation of key processes such as market trading, clearing, and settlement, leading to abnormal market reactions such as price fluctuations, data mismatches, and mistimed bidding. These scenarios typically do not stem directly from changes in supply and demand but are caused by failures in the support systems of the market operation platform. Their core characteristics include sudden changes in market operating parameters, abnormal system regulation responses, and inconsistencies between settlement results and operational status. As shown in Table 5, four key indicators with characterizing capabilities for dispatch behavior, data links, and settlement fee anomalies are selected for constructing the boundary conditions for this type of scenario.
[0079] Table 5: Indicator Selection for Technical Support System Fault Scenarios
[0080] (5) Scenarios involving macro-level social shocks Macroeconomic shock scenarios refer to situations where significant changes occur in the external macroeconomic environment against the backdrop of sudden wars, major energy crises, public safety incidents, or industrial policy adjustments. These changes impact the operating conditions of the power system and the normal functioning of market mechanisms, leading to abnormal market trading behavior, imbalances in the electricity pricing system, and changes in the cost structure. A key characteristic of these scenarios is that the source of the disturbance is not within the market, but its consequences can be reflected through dimensions such as market participation behavior, electricity price change paths, and the intensity of inter-regional transactions. As shown in Table 6, four representative and independent core indicators are selected for constructing the boundary conditions for this type of scenario.
[0081] Table 6: Indicator Selection for Macroeconomic Social Shock Scenarios
[0082] Boundary condition setting (1) Calculation of index threshold and fusion of two methods For the 27 candidate indicators, the interquartile range (IQR) anomaly detection method was used as the actual criterion for determining their warning thresholds. IQR can effectively reduce the impact of individual extreme values on the threshold calculation results and has good robustness; clustering method was used as the auxiliary algorithm.
[0083] The advantage of the IQR method stems from its modeling of the concentrated interval around the median of the distribution, making it less susceptible to interference from single extreme values. Let the index... The first and third quartiles in the historical sample are respectively and :
[0084] The interquartile range is:
[0085] High risk threshold With low risk threshold Defined as:
[0086]
[0087] in For the outlier coefficient, take... To identify outliers that are moderately high. If or If the threshold is not met, the risk level is determined to be high. Furthermore, for certain indicators with clear industry reference standards (such as HHI, CR3, CR5, supply-demand ratio, and reserve ratio), this study directly adopts the industry standard values as the high-risk warning threshold, and no longer calculates them using the IQR method.
[0088] in, .
[0089] At the theoretical level, relying solely on the IQR method may have limited ability to identify clustered anomalies. Specifically, in situations of abnormal market behavior or concentrated pricing, indicators may remain in an elevated range for a period, but their values may not significantly exceed the anomaly boundaries defined by IQR, thus potentially being misjudged as normal. This is because the IQR method essentially identifies single values exceeding the distribution limits. However, in scenarios of abnormal market behavior, some indicators may exhibit multiple consecutive high values over a period during market manipulation or concentrated pricing. While these high values are generally higher than normal, if the interval between them and the normal range does not significantly exceed the normal range, they may be misjudged as normal. If the threshold is exceeded, it may be misjudged as normal.
[0090] Based on the above considerations, this study introduces cluster analysis as an auxiliary analytical tool into the methodological framework to identify potential structural breakpoints in the distribution of indicators. The basic idea is to sort the historical samples of the indicators in descending order, construct adjacent difference sequences, identify the boundary points between high-value intervals and normal intervals using the natural breakpoint method, and form auxiliary thresholds accordingly. First, data sorting and difference sequence construction are performed, sorting the indicator data from largest to smallest to obtain the sequence. Calculate the difference between adjacent elements:
[0091] Natural breakpoint identification, searching for satisfying conditions:
[0092] Location ,in and These are the mean and standard deviation of the difference sequence, respectively. This is the magnification factor (typically taken as 1-2). The position corresponding to this location... As a clustering boundary point This can be considered an auxiliary threshold. This method allows for direct capture of the structural distribution characteristics of indicators under abnormal conditions. In the dual-method fusion stage, the relative difference coefficient between the IQR method threshold and the cluster analysis threshold is first calculated:
[0093] when When the threshold is set, the IQR threshold is directly used as the final threshold; when... When the time is right, take the arithmetic mean of the two:
[0094] The advantage of this dual-method cross-validation approach is that when the index distribution is relatively uniform, the robustness of the IQR method dominates the results; while when cluster anomalies exist, cluster analysis-assisted algorithms can provide corrections, avoiding misjudgments caused by a single method. It should be noted that, limited by the sample size and time span at this stage of the research, this study did not directly use the clustering threshold for warning determination, but rather reserved it as a methodological supplement and a direction for future expansion.
[0095] (2) Construction of an explanatory model for electricity price changes In setting boundary conditions, triggering essentially involves identifying the shift in market operation from a normal to an abnormal state. However, relying solely on a single indicator exceeding a boundary or threshold is insufficient to answer crucial questions such as which factors drive the current electricity price fluctuations, the contribution of each factor, and whether the structure conforms to a specific extreme scenario. To quantitatively characterize the impact of different indicator anomalies on electricity price changes under boundary condition triggering, an explanatory model for electricity price changes is further constructed based on indicator anomaly identification, performing a structural decomposition analysis of electricity price fluctuations. This model takes abnormal changes in multidimensional indicators as input and electricity price changes as output, measuring the relative contribution of various factors to electricity price fluctuations, thus achieving a structured decomposition and interpretable analysis of electricity price changes.
[0096] The electricity price change explanation model adopts a linear weighted form, and its basic expression is as follows:
[0097] in: This indicates the change in electricity prices within a period; This indicates the change or degree of abnormal deviation of the j-th indicator within the corresponding period; This represents the weighting of the indicator's impact on electricity price changes, used to characterize the sensitivity of the indicator's changes to electricity price fluctuations. This is the residual term, used to reflect random disturbances or unobservable factors that are not explicitly included in the model.
[0098] To ensure the comparability of different indicators in terms of units, fluctuation scales, and numerical ranges, the explanatory model does not directly use the original indicator values or simple year-on-year comparisons as input. Instead, it uses standardized outlier deviations constructed based on historical statistical characteristics. Its definition is:
[0099] in, This represents the actual value of the j-th indicator at time t (e.g., the monthly settlement period); This represents the mean level of indicator j over the historical sample period; This represents the standard deviation of index j over the historical sample period; This is used to characterize the degree of deviation of the indicator from its historical normal state at the current point in time. In this way, the model not only focuses on the absolute magnitude of the indicator's change, but also emphasizes its degree of deviation from the historical normal state, thereby better reflecting the impact of extreme or abnormal conditions on electricity prices.
[0100] After model estimation is completed, electricity price changes can be represented as the sum of contributions from various indicators, where the explanatory contribution of the j-th indicator to electricity price changes is: By comparing and normalizing the various contribution components, the main driving forces and structural characteristics of electricity price deviations can be characterized. This contribution decomposition result not only explains the causes of electricity price fluctuations at a single point in time, but also provides a quantitative basis for analyzing structural differences under different extreme scenarios.
[0101] (3) Determination of risk level of electricity price deviation Monthly electricity price change As the basic variable for risk assessment, its absolute value is used. This characterizes the intensity of electricity price fluctuations. Based on this, and combined with historical samples... Based on the statistical distribution characteristics, a multi-level risk threshold system is constructed. Specifically, the quantile method is used to determine the risk cutoff point: [The text then abruptly shifts to a different topic:] ...in historical samples... The 90th quantile as the boundary warning threshold The 97.5th quantile is used as the extreme trigger threshold. This method does not require the introduction of additional empirical parameters and can adaptively reflect the inherent scale of electricity price fluctuations in different regions and time periods, exhibiting good robustness and generalizability.
[0102]
[0103] Based on the above thresholds, electricity price changes are divided into three risk level ranges: when When the price fluctuation is within the normal range, it indicates that the electricity price change is within the historically acceptable range; when... When the situation is deemed a boundary warning state, it means that electricity prices have shown significant anomalies, and further analysis of potential risk sources is needed, taking into account the indicator structure. If the situation is as described above, it is considered an extreme risk state, indicating that the market operation has significantly deviated from the normal state, and it is necessary to activate the extreme scenario identification and subsequent response mechanism.
[0104] To facilitate subsequent analysis, the risk level assessment results were further organized into a structured data table. An example of this table retains the original... Based on the numerical values, corresponding threshold levels and risk level labels are provided simultaneously, offering a unified input interface for subsequent extreme scenario type identification and differentiated settlement mechanism design. See the table below.
[0105] Table 7: Risk Level Determination Table
[0106] To verify the applicability and effectiveness of the explanatory model in actual business operations, a scenario of artificially created abnormal disturbances was constructed based on settlement data from Shanxi Province and typical months with fluctuations (such as July, November, and December). Specifically, some sensitive indicators were artificially inflated to simulate indicator deviations under extreme market conditions. This disturbance data was then input into a pre-trained ridge regression model, and the model's output ΔP value and the explanatory share of each indicator were observed. In the example, the observed electricity price increase was 0.576 yuan / MWh, with the supply-demand ratio contributing 0.208 yuan / MWh (36.1%), the start-up compensation cost contributing 0.108 yuan / MWh (18.8%), the month-on-month deviation in electricity consumption contributing 0.080 yuan / MWh (13.9%), the HHI contributing 0.108 yuan / MWh (18.8%), and the remaining indicators contributing 0.072 yuan / MWh (12.4%). The results show that the model can characterize the magnitude of electricity price deviations and reveal the relative influence of risk factors.
[0107] Furthermore, based on settlement data, several representative triggering scenarios were constructed to simulate abnormal changes in indicators under typical scenarios such as supply and demand tension, market forces exercised, extreme weather impacts, and multiple factors superimposed. These simulations were then input into an electricity price change explanation model to decompose and analyze the sources of electricity price changes, thereby examining the consistency and structural differences in the explanations provided by the boundary condition model under different scenarios. It can be seen that in different scenario examples: under the supply and demand tension-dominant scenario, the supply-demand ratio and load-side indicators make significant contributions; under the market forces exercised scenario, the proportion of concentration and structural indicators in the explanation increases; under the extreme weather impact scenario, excess electricity consumption, reserve ratio, and system regulation indicators make more significant contributions; and under the multiple factors superimposed scenario, electricity price changes exhibit multi-source driven characteristics. These results demonstrate that the constructed method can reflect the structural differences in abnormal indicators under different extreme conditions and provides support for scenario determination.
[0108] Threshold feedback mechanism based on risk outcomes To ensure a seamless logical connection between boundary condition identification and risk assessment, a threshold feedback mechanism based on risk outcomes is introduced, building upon existing methods for identifying anomalies. This mechanism dynamically adjusts the sensitivity of anomaly identification: in the original indicator warning threshold setting based on the interquartile range method, the interquartile range coefficient k is extended from a fixed constant to an adjustable parameter, adaptively adjusted according to the risk level output by the electricity price change interpretation model. See the table below.
[0109] Table 8: Risk Level Threshold Feedback
[0110] different Example calculations for the value (taking a leveled-off electricity ratio of 1.16 as an example) are shown in the table below.
[0111] Table 9: Examples of Calculations
[0112] Through the The dynamic adjustment can improve the sensitivity of indicator anomaly identification when the system is in a high-risk state and capture potential disturbance sources in advance; while avoiding excessive warnings when the system is running smoothly, thus balancing the accuracy and stability of the warnings.
[0113] Extreme scenario determination Having completed the identification of anomalies in indicators and the interpretation of electricity price changes, it is necessary to further clarify how to determine the type of extreme scenarios under risk-triggered conditions. It is important to emphasize that the electricity price deviation ΔP output by the electricity price change interpretation model is primarily used to characterize the level of risk intensity; it does not contain direct information on the causes or types of risks. Therefore, the determination of extreme scenarios should be decoupled from the determination of risk intensity: the former answers whether a significant risk has occurred and its severity, while the latter answers which type of factor primarily drives the risk.
[0114] Based on the electricity price change explanation model, the contribution values of each indicator to the deviation of electricity prices can be obtained. Based on this, following the scenario indicator template constructed earlier, the indicator contribution values are mapped to different extreme scenario categories, and the cumulative contribution percentage for each scenario is calculated:
[0115] in, This represents the set of metrics corresponding to scenario s. This is used to characterize the relative dominance of this scenario in the current round of electricity price anomalies. After the risk triggering condition (ΔP≥T2) is met, a rule-based judgment method based on contribution structure is used to identify the extreme scenario type. The specific judgment rules are shown in the table below.
[0116] Through the above rules, the determination of extreme scenarios is transformed from a qualitative judgment of whether an anomaly exists to a quantitative identification process based on contribution structure. When the contribution ratio of a certain scenario is structurally dominant, it can be identified as the dominant extreme scenario in the current abnormal state; when the contributions of multiple scenarios are close or simultaneously significant, it is determined to be a scenario superposition or a multi-factor composite situation. For abnormal states that are difficult to stably correspond to existing templates, they are uniformly classified as atypical extreme scenarios to avoid overfitting or forced attribution.
[0117] This determination method does not rely on additional classification models or introduce new empirical parameters. Instead, it directly identifies scenarios based on the output of the electricity price change interpretation model, ensuring the consistency and reproducibility of the methodology. Furthermore, the determination results can be seamlessly integrated with subsequent indicator backtracking analysis and feedback adjustment mechanisms, providing a basis for differentiated design of settlement mechanisms in extreme scenarios.
[0118] Table 10: Judgment Rules
[0119] In another embodiment of the present invention, an outlier detection system for electricity market settlement prices is provided, which can be used to implement the above-mentioned method for detecting outliers in electricity market settlement prices. Specifically, the electricity market settlement price outlier detection system includes: The data acquisition module is used to acquire settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator. The indicator template construction module is used to select indicators for constructing boundary conditions based on the Pearson correlation coefficient, forming scenario indicator templates corresponding to different extreme scenarios. The electricity price change explanation model construction module is used to construct an electricity price change explanation model. The electricity price change explanation model takes the standardized outlier deviation of each indicator as input and the electricity price change as output. The output module is used to construct risk level determination rules. When the risk level reaches the preset trigger conditions, the output of the electricity price change interpretation model is mapped to the scenario indicator template. Based on the mapping results, the cumulative contribution ratio corresponding to each extreme scenario is calculated. Based on the preset determination rules satisfied by the cumulative contribution ratio, the current extreme scenario type is determined.
[0120] In one possible implementation, the data acquisition module is specifically used to: cover the price formation dimension, transaction behavior dimension, fee settlement dimension, and supply and demand matching dimension of candidate indicators.
[0121] In one possible implementation, the indicator template construction module is specifically used to: retain only one indicator if the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than a first threshold; retain one indicator according to the application scenario if the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than a second threshold and less than or equal to the first threshold; and retain both indicators if the absolute value of the Pearson correlation coefficient of two candidate indicators is less than or equal to the second threshold.
[0122] In one possible implementation, the indicator template construction module is further specifically used for: setting a warning threshold for each candidate indicator before calculating the Pearson correlation coefficient among them; and identifying abnormal indicators by comparing the current actual value of the indicator with the warning threshold. The step of setting a warning threshold for each candidate indicator includes: using the interquartile range method to calculate the first quartile, third quartile, and interquartile range of the indicator based on historical sample data; calculating a high-risk threshold for the indicator based on the third quartile, the interquartile range, and a preset anomaly coefficient, as the warning threshold; and dynamically adjusting the value of the anomaly coefficient according to the determined risk level; wherein, the higher the risk level, the smaller the value of the anomaly coefficient, so that the warning threshold is tightened.
[0123] In one possible implementation, the output module is specifically used to construct risk level determination rules, including: obtaining the absolute value of electricity price changes in historical settlement periods to form a historical sequence; determining boundary warning thresholds and extreme trigger thresholds based on preset high quantiles of the historical sequence; determining a normal fluctuation range when the absolute value of electricity price changes is less than the boundary warning threshold; determining a boundary warning state when the absolute value of electricity price changes is greater than or equal to the boundary warning threshold and less than the extreme trigger threshold; and determining an extreme risk state when the absolute value of electricity price changes is greater than or equal to the extreme trigger threshold, with the extreme risk state constituting a preset trigger condition. It is also specifically used to calculate the cumulative contribution ratio for each scenario.
[0124] The module division in this embodiment of the invention is illustrative and represents only one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the invention can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0125] In another embodiment of the present invention, a computer device is provided, comprising a processor and a memory. The memory stores a computer program, which includes program instructions. The processor executes the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in the computer storage medium to achieve a corresponding method flow or corresponding function. The processor described in this embodiment of the present invention can be used in the operation of a method for detecting outliers in electricity market settlement prices.
[0126] In another embodiment of the present invention, a storage medium is provided, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the electricity market settlement price outlier detection method in the above embodiments.
[0127] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0128] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0129] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0130] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for detecting outliers in electricity market settlement prices, characterized in that, include: Obtain settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator; Based on the Pearson correlation coefficient, indicators used to construct boundary conditions are selected to form scenario indicator templates corresponding to different extreme scenarios; A model for explaining electricity price changes is constructed, which takes the standardized outlier deviation of each indicator as input and the electricity price change as output. Construct risk level determination rules. When the risk level reaches the preset trigger conditions, map the output of the electricity price change interpretation model to the scenario indicator template. Based on the mapping results, calculate the cumulative contribution ratio corresponding to each extreme scenario. Determine the current extreme scenario type based on the preset determination rules satisfied by the cumulative contribution ratio. Based on the current extreme scenario type, generate and output the corresponding power grid control strategy.
2. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The process involves acquiring settlement data from the electricity market and calculating multiple candidate indicators based on this data, including: The candidate indicators cover price formation, transaction behavior, fee settlement, and supply and demand matching dimensions.
3. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The step of selecting indicators for constructing boundary conditions based on the Pearson correlation coefficient to form scenario indicator templates corresponding to different extreme scenarios includes: If the absolute value of the Pearson correlation coefficient between two candidate indicators is greater than the first threshold, then only one of the indicators is retained. If the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than the second threshold and less than or equal to the first threshold, then one of the indicators is retained according to the application scenario. If the absolute value of the Pearson correlation coefficient of two candidate indicators is less than or equal to the second threshold, then both indicators are retained.
4. The method for detecting outliers in electricity market settlement prices according to claim 3, characterized in that, Before calculating the Pearson correlation coefficient among the candidate indicators, a warning threshold is set for each candidate indicator: Abnormal indicators are identified by comparing the actual value of the indicator in the current period with the warning threshold. The step of setting warning thresholds for each of the candidate indicators includes: The interquartile range method is used to calculate the first quartile, third quartile, and interquartile range of the indicator based on historical sample data. Based on the third quartile, the interquartile range, and the preset anomaly coefficient, the high-risk threshold of this indicator is calculated and used as the warning threshold. The abnormality coefficient is dynamically adjusted based on the determined risk level; the higher the risk level, the smaller the abnormality coefficient, so as to tighten the warning threshold.
5. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The aforementioned construction of an explanatory model for electricity price changes, which uses the standardized outlier deviations of each indicator as input and the electricity price change as output, includes: The expression for the electricity price change explanation model is: in, This indicates the change in electricity prices within a period; This indicates the change or degree of abnormal deviation of the j-th indicator within the corresponding period; This represents the weighting of the indicator's impact on electricity price changes, used to characterize the sensitivity of the indicator's changes to electricity price fluctuations. This is the residual term, used to reflect random disturbances or unobservable factors that are not explicitly included in the model; The formula for calculating standardized outlier deviation is: in, This represents the actual value of the j-th index at time t; This represents the mean level of indicator j over the historical sample period; This represents the standard deviation of index j over the historical sample period; It is used to characterize the degree to which the indicator deviates from its historical normal state at the current point in time.
6. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The risk level determination rules include: Obtain the absolute value of electricity price changes for historical settlement periods to form a historical sequence; Based on the preset high quantile of historical sequences, determine the boundary warning threshold and extreme trigger threshold; When the absolute value of the change in electricity price is less than the boundary warning threshold, it is determined to be within the normal fluctuation range; When the absolute value of the change in electricity price is greater than or equal to the boundary warning threshold, but less than the extreme trigger threshold, it is determined to be a boundary warning state; When the absolute value of the change in electricity price is greater than or equal to the extreme trigger threshold, it is determined to be an extreme risk state, and the extreme risk state constitutes a preset trigger condition.
7. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The process of mapping the output of the electricity price change explanation model to the scenario indicator template, and calculating the cumulative contribution percentage corresponding to each extreme scenario based on the mapping results, includes: Based on the electricity price change explanation model, the contribution values of each indicator to the electricity price deviation are obtained. Based on this, according to the constructed scenario indicator template, the indicator contribution values are mapped to different extreme scenario categories, and the cumulative contribution ratio of each scenario is calculated: in, This represents the set of metrics corresponding to scenario s. The relative dominance of this scenario in this round of electricity price anomalies is characterized; after the risk triggering condition ΔP≥T2 is met, a rule-based judgment method based on contribution structure is adopted to identify the extreme scenario type.
8. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The process of generating and outputting corresponding power grid control strategies based on the current extreme scenario type includes: When the extreme scenario is a supply-demand imbalance, instructions are generated to increase the output of start-up and shutdown units and to raise the spinning reserve capacity threshold. When the extreme scenario is market manipulation, an instruction is generated to limit the bidding capacity of market participants and to trigger a review of the market participants' behavior. When the extreme scenario is power transmission network congestion, generate unit output commands to adjust the power flow section or initiate load-side demand response commands.
9. The method for detecting outliers in electricity market settlement prices according to claim 1, characterized in that, The determination of the current extreme scenario type based on the preset judgment rules satisfied by the cumulative contribution ratio includes: If there is a scenario with the largest cumulative contribution, and the difference between this cumulative contribution and the cumulative contribution of all other scenarios exceeds a preset difference, then the current extreme scenario type is determined to be a single dominant scenario. If the cumulative contribution ratio of two scenarios both exceed the preset attention value, and the difference between the cumulative contribution ratios of the two scenarios is within the preset range, then the current extreme scenario type is determined to be a double scenario superposition. If the cumulative contribution percentages of three or more scenarios are all at the same preset level and the differences between them are within the preset range, then the current extreme scenario type is determined to be a multi-factor composite scenario. If the preset triggering conditions are met, but the cumulative contribution ratio of all scenarios is lower than the preset attention value or is scattered, then the current extreme scenario type is determined to be an atypical extreme scenario. The control strategy generation module is used to generate and output the corresponding power grid control strategy based on the current extreme scenario type.
10. A system for detecting outliers in electricity market settlement prices, characterized in that, include: The data acquisition module is used to acquire settlement data from the electricity market, calculate multiple candidate indicators based on the settlement data, and calculate the Pearson correlation coefficient between each candidate indicator. The indicator template construction module is used to select indicators for constructing boundary conditions based on the Pearson correlation coefficient, forming scenario indicator templates corresponding to different extreme scenarios. The electricity price change explanation model construction module is used to construct an electricity price change explanation model. The electricity price change explanation model takes the standardized outlier deviation of each indicator as input and the electricity price change as output. The output module is used to construct risk level determination rules. When the risk level reaches the preset trigger conditions, the output of the electricity price change interpretation model is mapped to the scenario indicator template. Based on the mapping results, the cumulative contribution ratio corresponding to each extreme scenario is calculated. Based on the preset determination rules satisfied by the cumulative contribution ratio, the current extreme scenario type is determined.
11. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The data acquisition module is specifically used for: The candidate indicators cover price formation, transaction behavior, fee settlement, and supply and demand matching dimensions.
12. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The indicator template construction module is specifically used for: If the absolute value of the Pearson correlation coefficient between two candidate indicators is greater than the first threshold, then only one of the indicators is retained. If the absolute value of the Pearson correlation coefficient of two candidate indicators is greater than the second threshold and less than or equal to the first threshold, then one of the indicators is retained according to the application scenario. If the absolute value of the Pearson correlation coefficient of two candidate indicators is less than or equal to the second threshold, then both indicators are retained.
13. The electricity market settlement price outlier detection system according to claim 12, characterized in that, Before calculating the Pearson correlation coefficient among the candidate indicators, a warning threshold is set for each candidate indicator: Abnormal indicators are identified by comparing the actual value of the indicator in the current period with the warning threshold. The step of setting warning thresholds for each of the candidate indicators includes: The interquartile range method is used to calculate the first quartile, third quartile, and interquartile range of the indicator based on historical sample data. Based on the third quartile, the interquartile range, and the preset anomaly coefficient, the high-risk threshold of this indicator is calculated and used as the warning threshold. The abnormality coefficient is dynamically adjusted based on the determined risk level; the higher the risk level, the smaller the abnormality coefficient, so as to tighten the warning threshold.
14. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The electricity price change explanation model construction module is specifically used for: The expression for the electricity price change explanation model is: in, This indicates the change in electricity prices within a period; This indicates the change or degree of abnormal deviation of the j-th indicator within the corresponding period; This represents the weighting of the indicator's impact on electricity price changes, used to characterize the sensitivity of the indicator's changes to electricity price fluctuations. This is the residual term, used to reflect random disturbances or unobservable factors that are not explicitly included in the model; The formula for calculating standardized outlier deviation is: in, This represents the actual value of the j-th index at time t; This represents the mean level of indicator j over the historical sample period; This represents the standard deviation of index j over the historical sample period; It is used to characterize the degree to which the indicator deviates from its historical normal state at the current point in time.
15. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The risk level determination rules include: Obtain the absolute value of electricity price changes for historical settlement periods to form a historical sequence; Based on the preset high quantile of historical sequences, determine the boundary warning threshold and extreme trigger threshold; When the absolute value of the change in electricity price is less than the boundary warning threshold, it is determined to be within the normal fluctuation range; When the absolute value of the change in electricity price is greater than or equal to the boundary warning threshold, but less than the extreme trigger threshold, it is determined to be a boundary warning state; When the absolute value of the change in electricity price is greater than or equal to the extreme trigger threshold, it is determined to be an extreme risk state, and the extreme risk state constitutes a preset trigger condition.
16. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The output module is specifically used for: Based on the electricity price change explanation model, the contribution values of each indicator to the electricity price deviation are obtained. Based on this, according to the constructed scenario indicator template, the indicator contribution values are mapped to different extreme scenario categories, and the cumulative contribution ratio of each scenario is calculated: in, This represents the set of metrics corresponding to scenario s. The relative dominance of this scenario in this round of electricity price anomalies is characterized; after the risk triggering condition ΔP≥T2 is met, a rule-based judgment method based on contribution structure is adopted to identify the extreme scenario type.
17. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The output module is used for: If there is a scenario with the largest cumulative contribution, and the difference between this cumulative contribution and the cumulative contribution of all other scenarios exceeds a preset difference, then the current extreme scenario type is determined to be a single dominant scenario. If the cumulative contribution ratio of two scenarios both exceed the preset attention value, and the difference between the cumulative contribution ratios of the two scenarios is within the preset range, then the current extreme scenario type is determined to be a double scenario superposition. If the cumulative contribution percentages of three or more scenarios are all at the same preset level and the differences between them are within the preset range, then the current extreme scenario type is determined to be a multi-factor composite scenario. If the preset triggering conditions are met, but the cumulative contribution ratio of all scenarios is lower than the preset attention value or is scattered, then the current extreme scenario type is determined to be an atypical extreme scenario.
18. The electricity market settlement price outlier detection system according to claim 10, characterized in that, The process of generating and outputting corresponding power grid control strategies based on the current extreme scenario type includes: When the extreme scenario is a supply-demand imbalance, instructions are generated to increase the output of start-up and shutdown units and to raise the spinning reserve capacity threshold. When the extreme scenario is market manipulation, an instruction is generated to limit the bidding capacity of market participants and to trigger a review of the market participants' behavior. When the extreme scenario is power transmission network congestion, generate unit output commands to adjust the power flow section or initiate load-side demand response commands.
19. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method for detecting outliers in electricity market settlement prices as described in any one of claims 1 to 9.
20. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for detecting outliers in electricity market settlement prices as described in any one of claims 1 to 9.
