Frequency modulation auxiliary service market clearing price prediction method and device, and storage medium

By constructing a machine learning-based frequency modulation auxiliary service market clearing price prediction model and using historical data and multiple algorithms to predict the clearing price, it solves the problem of inability to predict accurately in existing technologies and improves the trading returns of market entities.

CN118864022APending Publication Date: 2024-10-29TAIYUAN CITY FENGXING MEASUREMENT & CONTROL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410851719.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technology cannot accurately predict the clearing price of the frequency modulation ancillary service market, which affects the transaction income of market entities.

Method used

Using a method based on machine learning, a prediction model is built by obtaining the correlation coefficient between historical market boundary data and clearing prices, and using random forest, XGboost and lightGBM algorithms for prediction, and combining the error reverse weight entropy weight to determine the prediction value.

Benefits of technology

It achieves accurate quantitative prediction of the market clearing price of frequency modulation ancillary services and increases the trading income of market entities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864022A_ABST
    Figure CN118864022A_ABST
Patent Text Reader

Abstract

The invention provides a frequency modulation auxiliary service market clearing price prediction method and device, and a storage medium, and relates to the technical field of transaction price prediction. The method comprises the steps of obtaining a correlation coefficient between historical market boundary data and historical frequency modulation market clearing prices; based on the correlation coefficient, determining corresponding historical market boundary data and historical frequency modulation market clearing price to train a prediction model constructed based on a preset algorithm; obtaining an initial prediction value based on the trained preset prediction model and the market boundary data of the to-be-predicted day; and processing the initial prediction value according to a preset processing mode to obtain a frequency modulation market price prediction value. According to the scheme, the clearing price of the auxiliary service market can be predicted by analyzing the market boundary data through a numerical analysis method; and establishing a frequency modulation auxiliary service market clearing price combination prediction model based on machine learning, and determining a prediction weight by adopting an error reverse weight entropy weight for prices predicted by various machine learning algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of transaction price prediction, and in particular to a method, device and storage medium for predicting the clearing price of a frequency modulation auxiliary service market. Background Art

[0002] Under the development of the dual carbon goals, the scale of new energy in the country continues to expand. The randomness and volatility of large-scale new energy have brought huge challenges to the frequency stability of the power system. The frequency regulation market in the power auxiliary service market obtains revenue through paid competitive services, stimulates the continuous investment of various types of frequency regulation resources, and becomes an important market mechanism to ensure the frequency stability of the power system. Most of the frequency regulation auxiliary service markets in various provinces across the country adopt a unified market marginal clearing method to carry out frequency regulation resource calls, and the total cost of system frequency regulation auxiliary services is minimized through low-to-high calls and declared price settlement methods. However, most of the frequency regulation market players use manual experience to declare prices in the price declaration process, and the quotations in some periods are far lower than the clearing prices, which affects the individual frequency regulation benefits of the market. How to accurately predict the clearing price of the frequency regulation auxiliary service market and guide various market players to reasonably participate in transaction declarations has become a technical problem that needs to be solved urgently.

[0003] At present, domestic and foreign scholars have conducted little research on the prediction of clearing prices in the frequency regulation ancillary service market. Most of the research focuses on the design of the frequency regulation ancillary service market mechanism, new energy and energy storage frequency regulation control strategies, and the joint clearing of the frequency regulation ancillary service market with the provincial spot market and peak-shaving market. At present, the provincial spot price prediction is relatively mature, and the numerical analysis prediction method has certain practicality. However, in terms of the prediction of clearing prices in the frequency regulation ancillary service market, there is no targeted research using numerical analysis methods to quantitatively analyze the clearing prices of the frequency regulation ancillary service market.

[0004] Therefore, at this stage, it is necessary to design a frequency regulation ancillary service market clearing price combination prediction method based on machine learning to solve the above problems. Summary of the invention

[0005] In view of the shortcomings of the prior art described above, an object of the present invention is to provide a method, device and storage medium for predicting the market clearing price of frequency modulation auxiliary services, so as to solve the problem in the prior art that the market clearing price cannot be accurately predicted through market boundary data.

[0006] To achieve the above object and other related objects, the present invention provides the following solutions:

[0007] In a first aspect, the present invention provides a method for predicting a frequency regulation auxiliary service market clearing price, the method comprising:

[0008] Obtain the correlation coefficient between historical market boundary data and historical FM market clearing prices;

[0009] Based on the correlation coefficient, the corresponding historical market boundary data and historical FM market clearing prices are determined to train the prediction model built based on the preset algorithm;

[0010] Obtain the initial forecast value based on the trained forecast model and the market boundary data of the forecast day;

[0011] The initial prediction value is processed according to a preset processing method to obtain a frequency modulation market price prediction value.

[0012] Optionally, before the step of obtaining the correlation coefficient between the historical market boundary data and the historical frequency modulation market clearing price, the method further includes:

[0013] identifying missing data in the historical market boundary data;

[0014] The missing data are supplemented by a multivariate neighbor algorithm, and its expression is as follows:

[0015]

[0016] Among them, X a,j and X b,j It is represented as the Euclidean distance between the i-th element between dimension a and dimension b in the N-dimensional data of the historical market boundary data. When one or both of the elements in the two dimensions are missing, The value of N is zero, md It represents the number of distances zero.

[0017] Optionally, the step of obtaining the correlation coefficient between the historical market boundary data and the historical frequency modulation market clearing price includes:

[0018] Based on the historical market boundary data, obtaining the values ​​of the n-dimensional matrices at each moment and the average values ​​of the n-dimensional matrices;

[0019] Based on the historical FM market clearing prices, obtaining the FM market clearing price and average price at each moment;

[0020] The correlation coefficient between the historical market boundary data and the historical FM market clearing price is determined based on the values ​​and mean values ​​of the n-dimensional matrices and the FM market clearing price and the average price. The expression is as follows:

[0021]

[0022] Among them, x t,mi , Respectively represent the values ​​and mean of the n-dimensional matrix of market boundary data at time t=1, 2, 3....24, p t,i and are the clearing price and mean of the FM market at time t respectively; r m,t is the correlation coefficient between the market boundary data and the FM market clearing price, satisfying: -1 <r m,t <1.

[0023] Optionally, the prediction model includes:

[0024] Random forest algorithm prediction model;

[0025] XGboost algorithm prediction model;

[0026] lightGBM algorithm prediction model.

[0027] Optionally, before the step of obtaining an initial forecast value based on the random forest algorithm forecast model and the market boundary data of the forecast day, the step includes:

[0028] Constructing the random forest algorithm prediction model based on the random forest algorithm;

[0029] Based on the Bootstrap sampling method, samples are extracted from the historical market boundary data and the historical frequency modulation market clearing prices to train the random forest algorithm prediction model;

[0030] The random forest algorithm prediction model is evaluated based on out-of-bag samples, and the evaluation result is marked as oob_score. The oob score is returned in R 2 , which is expressed as follows:

[0031]

[0032]

[0033] Where u is the residual sum of squares of the historical market clearing price, v is the total sum of squares of the distances between historical market boundary data, N is the number of samples in the predetermined period, i is the sample number, and f is the total sum of squares of the distances between historical market boundary data. i is the model regression value, yi is the real market clearing price of the sample point, is the average of the real market clearing prices.

[0034] Optionally, before the step of obtaining an initial forecast value based on the forecast model of the XGboost algorithm and the market boundary data of the forecast day, the following steps are included:

[0035] Construct the XGboost algorithm prediction model based on the XGboost algorithm;

[0036] The first decision tree based on the XGboost algorithm prediction model is used to fit the sample historical market boundary data and calculate the residual between the actual value and the predicted value;

[0037] Introducing a second decision tree based on the residual to fit the residual;

[0038] When the residual meets a preset value, the introduction of the decision tree is stopped;

[0039] The fitting values ​​of each decision tree are accumulated to obtain the final fitting result of the XGboost algorithm, which is expressed as follows:

[0040]

[0041] Among them, O bj is the objective function, l is the loss function, Ω is the regularization penalty function, y i and are the true value of the market clearing price and the predicted value of the market clearing price of the ith sample output in the sample historical market boundary data. j is the output prediction value of the jth decision tree, and n is the number of samples.

[0042] Optionally, before the step of obtaining the initial forecast value based on the forecast model of the lightGBM algorithm and the market boundary data of the forecast day, the following steps are included:

[0043] The lightGBM algorithm is used to construct the weak model set for prediction based on the lightGBM algorithm, and its expression is as follows:

[0044]

[0045] Among them, L is the loss function; y i Refers to the true value of the market clearing price; Refers to the model-predicted value of the market clearing price in the previous t-1 round; Ω(f t ) refers to the regularization term, including the L1 regularization term and the L2 regularization term, and C is a constant term;

[0046] Where Gain is the gain function, G l is the sum of the first-order derivatives of the left child node; G r is the sum of the first-order derivatives of the right child node; H l is the sum of the second-order derivatives of the left child node; H r is the sum of the second-order derivatives of the right child node; γ refers to the complexity cost generated each time a new leaf node is generated; n is the number of iterative splits of the decision tree.

[0047] Optionally, the step of processing the initial prediction value according to a preset processing method to obtain the frequency modulation market price prediction value includes:

[0048] The initial forecast values ​​obtained by the three forecast models are combined to obtain the frequency regulation auxiliary service market clearing combined forecast value, which is expressed as follows:

[0049]

[0050] Among them, M Z(D+1) M is the combined forecast value of the clearing price of the frequency regulation auxiliary service market in the next day; i(D+1) is the initial forecast value of the market clearing price of the ith algorithm on the next day; M i(D-1) is the error between the predicted value of the inspection-clearing price of the ith algorithm on the previous day and the actual clearing price.

[0051] Optionally, the market boundary data includes at least one of the following: new energy power data, provincial load forecast data, external power data and unit online capacity.

[0052] In a second aspect, the present invention further provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement any of the above-mentioned methods for predicting the market clearing price of frequency modulation auxiliary services.

[0053] The present invention also provides a computer-readable storage medium, characterized in that it is used to store a computer program, wherein when the computer program is executed by a processor, it implements any of the above-mentioned frequency modulation auxiliary service market clearing price prediction methods.

[0054] As described above, the frequency modulation auxiliary service market clearing price prediction method, device and storage medium of the present invention have the following beneficial effects: it is able to use numerical analysis methods to predict the clearing price of the auxiliary service market through accurate and quantitative analysis of market boundary data; establish a market clearing price combination prediction model based on multiple machine learning, and use error inverse weight entropy weight to determine the prediction weight for the prices predicted by the multiple machine learning algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 Shown is an application environment diagram of the frequency regulation auxiliary service market clearing price prediction method of the present invention;

[0057] Figure 2 Shown is a flow chart of a method for predicting the clearing price of a frequency regulation auxiliary service market according to the present invention;

[0058] Figure 3 Shown is a schematic diagram of the process of analyzing the correlation between historical boundary data and historical market clearing prices in the present invention;

[0059] Figure 4 Shown is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0061] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0062] The video tag processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, or it can be integrated on the server 104, or it can be placed on the cloud or other servers. The terminal 102 can send the video to be processed to the server 104. After the server 104 receives the video to be processed, for the video to be processed, the server 104 performs cross-search according to the feature dimensions of at least two modalities based on the modal information of at least two modalities extracted from the video, and determines at least one candidate tag of the video according to the multimodal retrieval tags of the modal information of at least two modalities, and performs tag prediction based on at least one candidate tag and the modal information of at least two modalities to obtain a video tag for the video. The server 104 can feed back the obtained video tag for the video to the terminal 102. In addition, in some embodiments, the video tag processing method can also be implemented independently by the server 104 or the terminal 102. For example, the terminal 102 can directly perform video tag processing on the video to be processed, or the server 104 can obtain the video to be processed from the data storage system and perform video tag processing on the video to be processed.

[0063] The terminal 102 may be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or a cloud server.

[0064] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0065] In an exemplary embodiment, Figure 2 As shown, the present invention provides a method for predicting the clearing price of the frequency regulation auxiliary service market. The method for predicting the clearing price of the frequency regulation auxiliary service market is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate the method, which includes the following steps.

[0066] S1. Obtain the correlation coefficient between historical market boundary data and historical FM market clearing price;

[0067] In order to accurately predict the market-clearing price, it is necessary to understand the correlation between market boundary data and the market-clearing price. Therefore, in an embodiment of the present application, the historical market boundary data and the historical FM market-clearing price are analyzed to determine the correlation coefficient between the market boundary data and the market-clearing price.

[0068] In this embodiment, in order to provide the accuracy of the correlation coefficient between the market boundary data and the market clearing price, after obtaining the historical market boundary data, it is further necessary to identify the historical boundary, so as to determine the missing data in the historical boundary data. For example, the existing market boundary data usually includes: new energy power data, provincial load forecast data, external power data, unit online capacity data, etc., and the data that is easily missing includes: meteorological data, etc. After identifying the missing data, the missing data, such as meteorological data, is predicted by the multivariate neighbor algorithm, and the predicted data information is supplemented to the historical boundary data, wherein the expression for predicting and filling the missing data by the multivariate neighbor algorithm is as follows:

[0069]

[0070] Among them, X a,j and X b,j It is represented as the Euclidean distance between the i-th element between dimension a and dimension b in the N-dimensional data of the historical market boundary data. When one or both of the elements in the two vectors are missing, The value of N is zero, md It represents the number of distances of zero. In one exemplary embodiment, in the historical market boundary data including five dimensions such as new energy power, provincial load forecast, external transmission power, and unit online capacity, for example, the Euclidean distance between the i-th elements in the two dimensions of new energy power and provincial compliance forecast, where the i-th element can be the i-th element after sorting the data, or it can be the i-th element after segmenting all the data according to time. The above five dimensions are only for illustrative purposes. On the basis of the present application, the data of other dimensions are within the protection scope of this application and will not be elaborated here.

[0071] In an embodiment of the present application, when the missing data in the historical boundary data is identified and filled by the multivariate neighbor algorithm, it can further be processed by time period. By identifying the missing data in different time periods, the missing data in the market boundary data of the next day can be identified and filled according to the same time period, thereby improving the accuracy of the market boundary data of the next day and further improving the prediction of the market clearing price of the next day.

[0072] refer to Figure 3 As shown, to obtain the correlation coefficient between the historical boundary data and the historical FM market clearing price, follow the following steps, such as:

[0073] Based on the historical market boundary data, obtaining the values ​​of the n-dimensional matrices at each moment and the average values ​​of the n-dimensional matrices;

[0074] Based on the historical FM market clearing prices, obtaining the FM market clearing price and average price at each moment;

[0075] The correlation coefficient between the historical market boundary data and the historical FM market clearing price is determined based on the values ​​and mean values ​​of the n-dimensional matrices and the FM market clearing price and the average price.

[0076] In an embodiment of the present application, since the market boundary data usually contains multiple dimensions, it corresponds to multiple vector matrices in data statistics, such as data of dimensions such as new energy power, provincial load forecast, external transmission power, and online capacity of units, and each dimension has different changes at each moment. Therefore, before performing correlation analysis, it is further necessary to obtain the values ​​of the n-dimensional matrices and the mean of the n-dimensional matrices at each moment based on the existing historical market boundary data. At the same time, the clearing price at each moment and the average clearing price at each moment are obtained based on the existing historical market clearing price data. The correlation coefficient is obtained by processing the values ​​of the n-dimensional matrices and the mean of the n-dimensional matrices at each moment with the historical market clearing prices and the average clearing prices at the corresponding moments. The expression for this processing is as follows:

[0077]

[0078] Among them, x t,mi , Respectively represent the values ​​and mean values ​​of the n-dimensional matrices of market boundary data at time t=1, 2, 3....24, p t,i and are the FM market clearing price and average value at time t respectively; r m,t is the correlation coefficient between the market boundary data and the FM market clearing price, satisfying: -1 <r m,t <1.

[0079] S2. Determine the corresponding historical market boundary data and historical frequency modulation market clearing price based on the correlation coefficient to train the prediction model constructed based on the preset algorithm;

[0080] In this embodiment, since there may or may not be a correlation between the historical market boundary data and the historical FM market clearing price, when selecting historical data to train the prediction model, it is necessary to select data with a strong correlation between the historical market boundary data and the historical FM market clearing price for training. Based on the above analysis, the correlation coefficient between the historical market boundary data and the historical FM market clearing price ranges between -1 and 1. Further analysis determines that when r m,t >0, it means that there is a positive correlation between the market boundary data and the market clearing price, that is, the higher the market boundary data, the higher the market clearing price. On the contrary, the lower the market boundary data, the lower the market clearing price. When r m,t <0, it means that there is a negative correlation between the market boundary data and the market clearing price, that is, the higher the market boundary data, the lower the market clearing price, and vice versa. m,t= 0, it means that there is no correlation between the market boundary data and the market clearing price. m,t The absolute value of indicates the strength of the correlation. The larger the absolute value, the stronger the correlation, and the smaller the absolute value, the smaller the correlation. Further, in order to clarify the correlation level between market boundary data and market clearing prices, we use r m,t The absolute value of is determined by the range, such as: r m,t The absolute value of 0.4 to 0.6 indicates a moderate correlation, 0.6 to 0.8 indicates a strong correlation, and 0.8 to 1 indicates an extremely strong correlation. Furthermore, when selecting historical data, the correlation coefficient r can be used. m,t Select historical data with strong correlation to train the prediction model.

[0081] S3, obtaining an initial forecast value based on the trained forecast model and the market boundary data of the forecasting day;

[0082] After obtaining the correlation between the market boundary data and the market clearing price, according to the pre-set and trained prediction models, such as the random forest algorithm prediction model, the XGboost algorithm prediction model and the lightGBM algorithm prediction model, the market boundary data of the next day is analyzed to obtain the prediction of the market clearing price of the next day. In the embodiments of the present application, the three prediction models mentioned above are all based on the Python language, and are constructed with the help of the RandomForest, XGBoost and LightGBM algorithms in machine learning. The model parameters are adjusted and optimized on the training set using the grid search method.

[0083] In an exemplary implementation, the random forest algorithm prediction model is constructed based on the random forest algorithm; samples are extracted from the historical market boundary data and the historical frequency modulation market clearing price based on the Bootstrap sampling method to train the random forest algorithm prediction model; the random forest algorithm prediction model is evaluated based on the out-of-bag samples, and the evaluation result is marked as oob_score, and the oob score returns R 2 , which is expressed as follows:

[0084]

[0085] Where u is the residual sum of squares of the historical market clearing price, v is the total sum of squares of the distances between historical market boundary data, N is the number of samples in the predetermined period, for example, a three-day period, a five-day period, i is the sample number, and f is the sample number. i is the model regression value, yi is the real market clearing price of the sample point, is the average of the real market clearing prices.

[0086] In an exemplary implementation, the XGboost algorithm prediction model is constructed based on the XGboost algorithm; the first decision tree based on the XGboost algorithm prediction model is used to fit the sample historical market boundary data and calculate the residual between the actual value and the predicted value; based on the residual, a second decision tree is introduced to fit the residual; when the residual meets the preset value, the introduction of the decision tree is stopped; the fitting values ​​of each decision tree are accumulated to obtain the final fitting result of the XGboost algorithm, and its expression is as follows:

[0087]

[0088] Among them, O bj is the objective function, l is the loss function, Ω is the regularization penalty function, y i and are the true value and predicted value of the market clearing price output by the ith sample in the sample historical market boundary data. j is the output prediction value of the jth decision tree, and n is the number of samples.

[0089] In an exemplary implementation, the lightGBM algorithm is used to construct a weak model set for prediction, and the expression is as follows:

[0090]

[0091] Among them, L is the loss function; y i Refers to the true value of the market clearing price; Refers to the model prediction value of the market clearing price in the previous t-1 round; Ω(f t ) refers to the regularization term, including the L1 regularization term and the L2 regularization term, and C is a constant term;

[0092] Where Gain is the gain function, G l is the sum of the first-order derivatives of the left child node; G r is the sum of the first-order derivatives of the right child node; H l is the sum of the second-order derivatives of the left child node; H r is the sum of the second-order derivatives of the right child node; γ refers to the complexity cost generated each time a new leaf node is generated; n is the number of iterative splits of the decision tree; T is the number of decision trees. The larger the number of iterative splits represented by n, the more accurate the predicted value of the market clearing price.

[0093] S4. Process the initial prediction value according to a preset processing method to obtain a frequency modulation market price prediction value.

[0094] In the embodiment of the present application, since multiple prediction models are used when predicting the market clearing price, it is necessary to process the market price predicted by each prediction model again, for example, by analyzing the error results of the above three prediction models, using the error entropy weight to determine the combined prediction result of the three prediction models, and outputting the combined prediction result as the prediction result of the frequency modulation auxiliary service market clearing price, the expression is as follows:

[0095]

[0096] Among them, M Z(D+1) M is the combined forecast value of the clearing price of the frequency regulation auxiliary service market in the next day; i(D+1) is the initial forecast value of the market clearing price of the ith algorithm on the next day; M i(D-1) is the error between the predicted value of the market clearing price of the ith algorithm on the previous day and the actual value of the market clearing price.

[0097] The present invention also provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement any of the above-mentioned methods for predicting the market clearing price of frequency modulation auxiliary services.

[0098] The present invention also provides a computer-readable storage medium, characterized in that it is used to store a computer program, wherein when the computer program is executed by a processor, it implements any of the above-mentioned frequency modulation auxiliary service market clearing price prediction methods.

[0099] In summary, the method, equipment and device for predicting the clearing price of the frequency regulation service market of the present invention, on the one hand, adopts the multivariate neighbor algorithm to pre-process the missing meteorological data and the predicted missing data, and establishes the correlation analysis index of the clearing price of the new energy, transmission, load and frequency regulation auxiliary service market at the market boundary based on the Pearson correlation theory; on the one hand, adopts three machine learning algorithms to predict the price and determines the prediction weight by using the error reverse weight entropy weight; on the other hand, establishes the frequency regulation auxiliary service market clearing price combination prediction model based on machine learning. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.

[0100] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video tag processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a video tag processing method is implemented.

[0101] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0102] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0103] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0104] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0107] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0108] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0109] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for predicting the clearing price of a frequency modulation auxiliary service market, characterized in that: The method for predicting the clearing price of the frequency regulation ancillary service market includes: Obtain the correlation coefficient between historical market boundary data and historical FM market clearing prices; Based on the correlation coefficient, the corresponding historical market boundary data and historical FM market clearing prices are determined to train the prediction model built based on the preset algorithm; Obtain the initial forecast value based on the trained forecast model and the market boundary data of the forecast day; The initial prediction value is processed according to a preset processing method to obtain a frequency modulation market price prediction value.

2. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 1, characterized in that: Before the step of obtaining the correlation coefficient between the historical market boundary data and the historical FM market clearing price, it also includes: identifying missing data in the historical market boundary data; The missing data is supplemented by a multivariate neighbor algorithm, and its expression is as follows: Among them, X a,j and X b,j It is represented as the Euclidean distance between the i-th element between dimension a and dimension b in the N-dimensional data of the historical market boundary data. When one or both of the elements in the two dimensions are missing, The value of N is zero, md It represents the number of distances zero.

3. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 1, characterized in that: The steps of obtaining the correlation coefficient between the historical market boundary data and the historical FM market clearing price include: Based on the historical market boundary data, obtaining the values ​​of n dimensional matrices at each moment and the average values ​​of the n dimensional matrices; Based on the historical FM market clearing prices, obtaining the FM market clearing price and average price at each moment; The correlation coefficient between the historical market boundary data and the historical FM market clearing price is determined based on the values ​​and mean values ​​of the n-dimensional matrices and the FM market clearing price and the average price. The expression is as follows: Among them, x t,mi , Respectively represent the values ​​of the n-dimensional matrix of market boundary data and the corresponding mean at time t=1, 2, 3....24, p t,i and are the clearing price and mean of the FM market at time t respectively; r m,t is the correlation coefficient between the market boundary data and the FM market clearing price, satisfying: -1 <r m,t <1.

4. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 1, characterized in that: The prediction model includes: Random forest algorithm prediction model; XGboost algorithm prediction model; lightGBM algorithm prediction model.

5. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 4, characterized in that: The steps of obtaining the initial forecast value based on the random forest algorithm forecast model and the market boundary data of the forecasted day include: Constructing the random forest algorithm prediction model based on the random forest algorithm; Based on the Bootstrap sampling method, samples are extracted from the historical market boundary data and the historical frequency modulation market clearing prices to train the random forest algorithm prediction model; The random forest algorithm prediction model is evaluated based on out-of-bag samples, and the evaluation result is marked as oob_score. The oob score is returned in R 2 , which is expressed as follows: Where u is the residual sum of squares of the historical market clearing price, v is the total sum of squares of the distances between historical market boundary data, N is the number of samples in the predetermined period, i is the sample number, and f is the total sum of squares of the distances between historical market boundary data. i is the model regression value, y i is the real market clearing price of the sample point, is the average of the real market clearing prices.

6. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 4, characterized in that: Before the step of obtaining the initial forecast value based on the forecast model of the XGboost algorithm and the market boundary data of the forecast day, it includes: Constructing the XGboost algorithm prediction model based on the XGboost algorithm; fitting the sample historical market boundary data based on the first decision tree of the XGboost algorithm prediction model and calculating the residual between the actual value and the predicted value; Introducing a second decision tree based on the residual to fit the residual; When the residual meets a preset value, the introduction of the decision tree is stopped; The fitting values ​​of each decision tree are accumulated to obtain the final fitting result of the XGboost algorithm, which is expressed as follows: Among them, O bj is the objective function, l is the loss function, Ω is the regularization penalty function, y i and are the true value and predicted value of the market clearing price output by the ith sample in the sample historical market boundary data. j is the output prediction value of the jth decision tree, and n is the number of samples.

7. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 4, characterized in that: Before the step of obtaining the initial forecast value based on the forecast model of the lightGBM algorithm and the market boundary data of the forecast day, it includes: The lightGBM algorithm is used to construct the weak model set for prediction based on the lightGBM algorithm, and its expression is as follows: Among them, L is the loss function; y i Refers to the true value of the market clearing price; Refers to the model-predicted value of the market clearing price in the previous t-1 round; Ω(f t ) refers to the regularization term, including L1 regularization term and L2 regularization term, C is the constant term; Gain is the gain function, G l is the sum of the first-order derivatives of the left child node; G r is the sum of the first-order derivatives of the right child node; H l is the sum of the second-order derivatives of the left child node; H r is the sum of the second-order derivatives of the right child node; γ refers to the complexity cost generated each time a new leaf node is generated; n is the number of iterative splits of the decision tree.

8. The method for predicting the clearing price of the frequency modulation auxiliary service market according to claim 4, characterized in that: The step of processing the initial prediction value according to a preset processing method to obtain a frequency modulation market price prediction value comprises: The initial forecast values ​​obtained by the three forecast models are combined to obtain the frequency regulation auxiliary service market clearing combined forecast value, which is expressed as follows: Among them, M Z(D+1) M is the combined forecast value of the clearing price of the frequency regulation auxiliary service market in the next day; i(D+1) is the initial forecast value of the market clearing price of the ith algorithm on the next day; M i(D-1) is the error between the predicted value of the market clearing price of the ith algorithm on the previous day and the actual value of the market clearing price.

9. The method for predicting the clearing price of the frequency regulation auxiliary service market according to any one of claims 1 to 8, characterized in that: The market boundary data includes at least one of the following: new energy power data, provincial load forecast data, external power data and unit online capacity.

10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the method for predicting the market clearing price of frequency regulation auxiliary services as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method for predicting the market clearing price of frequency regulation auxiliary services according to any one of claims 1 to 9 is implemented.