A method and system for estimating fixed loss in light load area based on regression model
Through the method based on the regression model, the problem of data quality and historical data representativeness limitations in the existing technology is solved, a more accurate and adaptable fixed damage estimation in the lightly loaded station area is achieved, and the economy and power supply quality of the power system are improved. .
Patent Information
- Application Number
- CN202311667288.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-06
AI Technical Summary
The existing methods for estimating fixed damage in lightly loaded station areas based on empirical models and statistical models are limited by data quality and historical data representativeness, and are difficult to apply on large-scale data sets, resulting in low accuracy and low universality.
A method based on the regression model is used to establish a linear regression model by acquiring and cleaning the historical data of the platform area, and use ridge regression to train the model, and obtain a pre-trained linear regression model to estimate the fixed loss of the platform area. This method takes into account the differences in electricity consumption among different users within the Taiwan area and can automatically adjust to adapt to changing electricity consumption conditions.
It improves the accuracy and adaptability of fixed damage estimation in lightly loaded station areas, can be effectively applied on large-scale data sets, and enhances the economy and power supply quality of the power system.
Smart Images

Figure CN117674121B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fixed loss estimation in a substation, and in particular relates to a method and system for estimating fixed loss in a light-load substation based on a regression model. Background Art
[0002] In the existing power system, the estimation of fixed losses in light-loaded areas is an important issue. Light-loaded areas refer to areas where users within the power supply range consume relatively little electricity. Their fixed losses are usually high, which will affect the economic efficiency of the power system. Therefore, accurately estimating the fixed losses in light-loaded areas is of great significance for improving the economic efficiency of the power system and optimizing the power supply quality.
[0003] In order to solve this problem, some research has been devoted to developing more effective technical solutions. Among them, the most important methods include estimation methods based on empirical models and statistical models. However, these methods have their limitations:
[0004] 1. Estimation methods based on empirical models: These models mainly rely on historical data to establish the fixed loss model of the lightly loaded area. However, the accuracy of this model is largely limited by the data quality and the representativeness of the historical data. In addition, if the power consumption of users in the area changes, or new users join or leave, then the model needs to be readjusted to adapt it to the new situation.
[0005] 2. Estimation methods based on statistical models: These models use statistical principles to predict the solid loss in light-load areas by establishing a large number of characteristic variables. However, this model requires a lot of data preprocessing work, such as feature selection, data cleaning, etc., which makes its application on large-scale data sets difficult. In addition, these models usually cannot take into account the differences in electricity consumption among different users within the area, which may lead to a decrease in the accuracy of the estimation results. Summary of the invention
[0006] The purpose of the present invention is to provide a method and system for estimating fixed loss in the light load area based on a regression model, so as to solve the problems in the prior art of estimation methods based on empirical models and statistical models, which are limited by data quality and representativeness of historical data, are difficult to apply to large-scale data sets, and have low universality and accuracy.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a method for estimating fixed loss in a light load area based on a regression model, which specifically comprises the following steps:
[0009] Collecting first power quantity and power loss data of the substation; the first power quantity is power supply of the substation or power consumption of the user;
[0010] Input the collected first power and area loss power data into a pre-trained linear regression model to obtain an estimated value of the area fixed loss;
[0011] Outputting an estimated value of fixed loss in the station area;
[0012] The pre-trained linear regression model is obtained by the following steps:
[0013] Acquire historical data of the substation, wherein the historical data of the substation includes: first power, substation loss power, voltage drop loss power and substation voltage drop predicted line loss rate;
[0014] Cleaning the acquired historical data of the substation area to obtain cleaned historical data of the substation area;
[0015] According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established by regression modeling to obtain a linear regression model;
[0016] The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model.
[0017] Optionally, the step of cleaning the acquired historical data of the substation area to obtain the cleaned historical data of the substation area specifically includes:
[0018] Filter out the substations whose first electricity is greater than 0, whose area electricity loss is greater than 0, whose number of non-empty values of the area voltage drop predicted line loss rate is greater than 3, whose area electricity loss is greater than the voltage drop electricity loss and whose valid points are greater than 9, and obtain the substations that have been screened;
[0019] The valid points refer to the number of dates on which the power loss of the substation is greater than the power loss of the voltage drop, after deduplication of all dates on which the first power is greater than 0 and the power loss of the substation is greater than 0;
[0020] Among the substations that have been screened, the data between the mean of the residual error of the power loss in the substation plus or minus 3 times the standard deviation of the power loss in the substation are selected as the cleaned power loss data of the substation;
[0021] The historical data of the cleaned substation includes the power loss data of the cleaned substation and the first power data of the corresponding substation.
[0022] Optionally, the step of establishing a relationship model between the power loss in the substation and the first power by regression modeling based on the cleaned substation historical data to obtain a linear regression model specifically includes:
[0023] The established linear regression model is as follows:
[0024] Y=ω0+ω1*X+ω2*X2
[0025] Where: Y is the power loss in the substation; X is the first power; ω0 is the fixed loss; ω1 is the regression coefficient of the first power; ω2 is the quadratic regression coefficient of the first power.
[0026] Optionally, the step of training the linear regression model by using ridge regression to obtain a pre-trained linear regression model specifically includes:
[0027] Ridge regression loss function:
[0028]
[0029] Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss;
[0030] Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized:
[0031]
[0032] The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
[0033] In a second aspect, the present invention provides a light load area fixed loss estimation system based on a regression model, comprising:
[0034] A data acquisition module, used to collect first power quantity and power loss data of the substation; the first power quantity is power supply of the substation or power consumption of the user;
[0035] A data processing module, used for inputting the first power and area loss power data collected by the data acquisition module into a pre-trained linear regression model to obtain an estimated value of fixed loss in the area;
[0036] An output module, used for outputting the estimated value of the fixed loss of the station area;
[0037] The pre-trained linear regression model in the data processing module is obtained by the following steps:
[0038] Acquire historical data of the substation, wherein the historical data of the substation includes: first power, substation loss power, voltage drop loss power and substation voltage drop predicted line loss rate;
[0039] Cleaning the acquired historical data of the substation area to obtain cleaned historical data of the substation area;
[0040] According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established by regression modeling to obtain a linear regression model;
[0041] The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model.
[0042] Optionally, the step of cleaning the acquired historical data of the substation area to obtain the cleaned historical data of the substation area specifically includes:
[0043] Filter out the substations whose first electricity is greater than 0, whose area electricity loss is greater than 0, whose number of non-empty values of the area voltage drop predicted line loss rate is greater than 3, whose area electricity loss is greater than the voltage drop electricity loss and whose valid points are greater than 9, and obtain the substations that have been screened;
[0044] The valid points refer to the number of dates on which the power loss of the substation is greater than the power loss of the voltage drop, after deduplication of all dates on which the first power is greater than 0 and the power loss of the substation is greater than 0;
[0045] Among the substations that have been screened, the data between the mean of the residual error of the power loss in the substation plus or minus 3 times the standard deviation of the power loss in the substation are selected as the cleaned power loss data of the substation;
[0046] The historical data of the cleaned substation includes the power loss data of the cleaned substation and the first power data of the corresponding substation.
[0047] Optionally, the step of establishing a relationship model between the power loss in the substation and the first power by regression modeling based on the cleaned substation historical data to obtain a linear regression model specifically includes:
[0048] The established linear regression model is as follows:
[0049] Y=ω0+ω1*X+ω2*X 2
[0050] Where: Y is the power loss in the substation; X is the first power; ω0 is the fixed loss; ω1 is the regression coefficient of the first power; ω2 is the quadratic regression coefficient of the first power.
[0051] Optionally, the step of training the linear regression model by using ridge regression to obtain a pre-trained linear regression model specifically includes:
[0052] Ridge regression loss function:
[0053]
[0054] Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss;
[0055] Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized:
[0056]
[0057] The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
[0058] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the method for estimating fixed loss in a light-load area based on a regression model.
[0059] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the method for estimating fixed loss in a light-load area based on a regression model is implemented.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] The present invention provides a method and system for estimating fixed loss in a light-loaded area based on a regression model, specifically comprising: first obtaining a pre-trained linear regression model: obtaining historical data of the area and cleaning it to obtain cleaned historical data of the area; establishing a linear regression model by regression modeling based on the cleaned historical data of the area; training the linear regression model using ridge regression to obtain a pre-trained linear regression model. Collecting first power and area loss power data; the first power is the power supply of the area or the power consumption of the user; inputting the collected first power and area loss power data into the pre-trained linear regression model to obtain an estimated value of fixed loss in the area.
[0062] In view of the fact that the existing estimation method based on empirical model is limited by the data quality and representativeness of historical data, the present invention proposes a method based on regression model. The method adopts polynomial regression model, which can adapt to the nonlinear relationship between the power loss and the first power in the substation area, and improves the accuracy of the model. In addition, when the power consumption of users in the substation area changes, or new users join or leave, the model can automatically adjust to adapt to the new situation.
[0063] Secondly, in order to solve the problem that the existing estimation methods based on statistical models are difficult to apply to large-scale data sets, the present invention makes the application of regression models to large-scale data sets feasible by using efficient data preprocessing methods and feature selection techniques. In addition, the model used in the present invention takes into account the differences in electricity consumption among different users within the substation area, so that the model can more accurately estimate the fixed losses in light-loaded substation areas.
[0064] In summary, the present invention provides a method and system for estimating fixed losses in light-load areas based on a regression model, which can solve the problems in the prior art of estimation methods based on empirical models and statistical models, which are limited by data quality and representativeness of historical data, are difficult to apply on large-scale data sets, and have low universality and accuracy. It can more accurately estimate the fixed losses in light-load areas, improve the economy of the power system and optimize the power supply quality, and has strong adaptability and universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0066] Figure 1 This is a flow chart of a method for estimating fixed loss in a light-load area based on a regression model of the present invention;
[0067] Figure 2 A flow chart of a method for obtaining a pre-trained linear regression model in the present invention;
[0068] Figure 3 This is a structural diagram of a fixed loss estimation system for a light load area based on a regression model of the present invention;
[0069] Figure 4 The present invention is a structural block diagram of an electronic device. DETAILED DESCRIPTION
[0070] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.
[0071] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.
[0072] Example 1
[0073] The present invention provides a method for estimating fixed losses in light-loaded areas based on a regression model. A linear regression model is established through polynomial regression using historical area power loss data and first power data, wherein the first power is the area power supply or user power consumption. Specifically, the area power loss is taken as the dependent variable, and the first power and the square of the first power are taken as independent variables to establish a linear regression model. Among them, the intercept term is the fixed loss. Then, the ridge regression loss function is used to optimize the model, and the complexity of the model is constrained by introducing a regularization term to reduce overfitting and underfitting.
[0074] Specifically, a method for estimating fixed loss in a light load area based on a regression model of the present invention comprises the following steps:
[0075] Establish and train the model to obtain a pre-trained linear regression model, which specifically includes the following steps:
[0076] First, historical data of the substation is collected: including the first electricity, the substation lost electricity, the substation voltage drop predicted line loss rate and the voltage drop loss electricity and other information. The first electricity is the power supply of the substation or the user's electricity consumption.
[0077] Clean the collected historical data of the station area:
[0078] (1) Substation cleaning: Filter out the substations whose first power is greater than 0, whose substation power loss is greater than 0, whose number of non-empty values of the predicted line loss rate of the voltage drop is greater than 3, whose substation power loss is greater than the voltage drop power loss and whose valid points are greater than 9.
[0079] The valid points refer to the number of dates on which the substation power loss is greater than the voltage drop power loss, after deduplication of all dates on which the first power is greater than 0 and the substation power loss is greater than 0.
[0080] (2) Cleaning of power loss data in the substation. Compared with directly using the mean plus or minus 3 times the standard deviation or using rules for cleaning, the data cleaning rate is high and unscientific. This solution uses the quadratic regression of the power loss in the substation on the first power to find the relationship between the power loss in the substation and the first power, and then performs ridge regression fitting to reduce overfitting and underfitting. Data other than the residual mean of the power loss in the substation plus or minus 3 times the standard deviation of the power loss in the substation are eliminated. By eliminating outlier data, the accuracy and reliability of the model can be improved.
[0081] According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established through regression modeling. For fixed loss, the relationship between the substation power loss and the first power is a polynomial relationship, so the substation power loss is used as the dependent variable, the first power and the square of the first power are used as independent variables, and a linear regression model is established as follows:
[0082] Y=ω0+ω1*X+ω2*X 2
[0083] Where: Y is the power loss in the substation, X is the first power, ω0 is the intercept term, i.e., fixed loss, ω1 is the regression coefficient of the first power, and ω2 is the quadratic regression coefficient of the first power.
[0084] Ridge regression is used to train the model. Among the regression models, there are multiple linear regression, ridge regression, elastic network, LASSO, support vector machine, random forest, neural network, etc. Considering the model's ability to handle the situation where the number of data is less than the number of independent variables and the modeling effect, the ridge regression model is finally selected. Ridge regression constrains the complexity of the model by introducing a penalty term in the objective function, thereby reducing overfitting and underfitting. Specifically, the mean square error is used as the objective function, and a regularization term is added, where λ is the regularization parameter used to control the strength of the penalty term.
[0085] Ridge regression loss function:
[0086]
[0087] Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss.
[0088] Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized:
[0089]
[0090] The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
[0091] Model evaluation and optimization. Use methods such as cross-validation to evaluate the performance of the model, and adjust and optimize based on the evaluation results. You can calculate indicators such as the model's prediction error and goodness of fit to evaluate the model's performance.
[0092] Fixed loss estimates:
[0093] Firstly, the data of the first power and the power loss in the substation area are collected;
[0094] Input the collected first power and area loss power data into a pre-trained linear regression model to obtain an estimated value of the area fixed loss;
[0095] Output the estimated value of fixed loss of the station area.
[0096] The 90-day data of three light-load areas in a certain region are selected as an example.
[0097] The pre-trained linear regression model in the present invention is used to estimate the fixed loss value. First, data cleaning is performed to remove outliers. Fixed loss estimation uses the power loss of the substation to regress the power supply of the substation, and the gradient descent method is used to optimize the parameters. The intercept term is estimated through the optimized ridge regression model, and the intercept term is the fixed loss.
[0098] The fixed loss estimation values obtained by using the model of the present invention, the empirical model and the statistical model are compared with the actual fixed loss values, and the mean absolute percentage errors (MAPE) of the three models are calculated. The calculation results are compared as shown in Table 1 below:
[0099] Table 1 Comparison of calculation results
[0100]
[0101] It can be seen from the table that the average absolute percentage error of the estimated value of fixed loss in the light load area by the method adopted by the present invention is within 10%, and the average absolute percentage error of the estimated value of fixed loss in the light load area estimated by the empirical model and the statistical model is above 15%. It can be seen that the fixed loss estimation method for the light load area provided by the present invention has strong accuracy and reliability.
[0102] Example 2
[0103] A fixed loss estimation system for a light load area based on a regression model, specifically comprising:
[0104] The data acquisition module is used to collect the first power quantity and the power loss data of the substation; the first power quantity is the power supply of the substation or the power consumption of the user.
[0105] The data processing module is used to input the first power and area loss power data collected by the data acquisition module into a pre-trained linear regression model to obtain an estimated value of fixed loss in the area.
[0106] The pre-trained linear regression model is obtained by the following steps:
[0107] The historical data of the substation area is obtained, and the historical data of the substation area includes: the first power, the power loss of the substation area, the power loss due to the voltage drop, and the predicted line loss rate of the voltage drop in the substation area.
[0108] Clean the acquired historical data of the area to obtain the cleaned historical data of the area:
[0109] 1) Screen out the substations whose first power is greater than 0, whose area power loss is greater than 0, whose number of non-empty values of the area voltage drop predicted line loss rate is greater than 3, whose area power loss is greater than the voltage drop loss power and whose valid points are greater than 9, and obtain the screened substations;
[0110] The valid points refer to the number of dates on which the power loss of the substation is greater than the power loss of the voltage drop, after deduplication of all dates on which the first power is greater than 0 and the power loss of the substation is greater than 0;
[0111] 2) In the selected substations, the data between the residual mean of the substation power loss plus or minus 3 times the standard deviation of the substation power loss is selected as the cleaned substation power loss data;
[0112] The historical data of the cleaned substation includes the power loss data of the cleaned substation and the first power data of the corresponding substation.
[0113] According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established through regression modeling, and a linear regression model is obtained:
[0114] The established linear regression model is as follows:
[0115] Y=ω0+ω1*X+ω2*X 2
[0116] Where: Y is the power loss in the substation; X is the first power; ω0 is the fixed loss; ω1 is the regression coefficient of the first power; ω2 is the quadratic regression coefficient of the first power.
[0117] The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model:
[0118] Ridge regression loss function:
[0119]
[0120] Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss;
[0121] Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized:
[0122]
[0123] The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
[0124] The output module is used to output the estimated value of the fixed loss of the station area.
[0125] Example 3
[0126] See also Figure 4 As shown, the present invention also provides an electronic device 100 for implementing a method for estimating fixed loss in a light-load area based on a regression model; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104.
[0127] The memory 101 can be used to store the computer program 103. The processor 102 implements the steps of the method for estimating fixed loss in the light-load area based on a regression model described in Example 1 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 101 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0128] The at least one processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 102 may be a microprocessor or any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100.
[0129] The memory 101 in the electronic device 100 stores a plurality of instructions to implement a method for estimating fixed loss in a light-load area based on a regression model, and the processor 102 can execute the plurality of instructions to implement:
[0130] Collecting first power quantity and power loss data of the substation; the first power quantity is power supply of the substation or power consumption of the user;
[0131] Input the collected first power and area loss power data into a pre-trained linear regression model to obtain an estimated value of the area fixed loss;
[0132] Outputting an estimated value of fixed loss in the station area;
[0133] The pre-trained linear regression model is obtained by the following steps:
[0134] Acquire historical data of the substation, wherein the historical data of the substation includes: first power, substation loss power, voltage drop loss power and substation voltage drop predicted line loss rate;
[0135] Cleaning the acquired historical data of the substation area to obtain cleaned historical data of the substation area;
[0136] According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established by regression modeling to obtain a linear regression model;
[0137] The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model.
[0138] Example 4
[0139] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory).
[0140] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented 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.
[0141] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does 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 estimating fixed loss in a light load area based on a regression model, characterized in that: The specific steps include: Collecting first power quantity and power loss data of the substation; the first power quantity is power supply of the substation or power consumption of the user; Input the collected first power and area loss power data into a pre-trained linear regression model to obtain an estimated value of the area fixed loss; Outputting an estimated value of fixed loss in the station area; The pre-trained linear regression model is obtained by the following steps: Acquire historical data of the substation, wherein the historical data of the substation includes: first power, substation loss power, voltage drop loss power and substation voltage drop predicted line loss rate; Cleaning the acquired historical data of the substation area to obtain cleaned historical data of the substation area; According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established by regression modeling to obtain a linear regression model; The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model; The step of establishing a relationship model between the power loss in the area and the first power by regression modeling based on the historical data of the cleaned area to obtain a linear regression model specifically includes: The established linear regression model is as follows: Y=ω0+ω1*X+ω2*X 2 Where: Y is the power loss in the substation; X is the first power; ω0 is the fixed loss; ω1 is the regression coefficient of the first power; ω2 is the quadratic regression coefficient of the first power; The step of cleaning the acquired historical data of the substation area to obtain the cleaned historical data of the substation area specifically includes: Filter out the substations whose first electricity is greater than 0, whose area electricity loss is greater than 0, whose number of non-empty values of the area voltage drop predicted line loss rate is greater than 3, whose area electricity loss is greater than the voltage drop electricity loss and whose valid points are greater than 9, and obtain the substations that have been screened; The valid points refer to the number of dates on which the power loss of the substation is greater than the power loss of the voltage drop, after deduplication of all dates on which the first power is greater than 0 and the power loss of the substation is greater than 0; Among the substations that have been screened, the data between the mean of the residual error of the power loss in the substation plus or minus 3 times the standard deviation of the power loss in the substation are selected as the cleaned power loss data of the substation; The historical data of the cleaned substation includes the power loss data of the cleaned substation and the first power data of the corresponding substation.
2. According to the method for estimating fixed loss in a light load area based on a regression model in claim 1, it is characterized in that: The step of using ridge regression to train the linear regression model to obtain a pre-trained linear regression model specifically includes: Ridge regression loss function: Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss; Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized: The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
3. A fixed loss estimation system for light load area based on regression model, characterized in that: include: A data acquisition module, used for collecting the first power quantity and the power loss data of the substation; The first amount of electricity is the power supply of the area or the electricity consumption of the user; A data processing module, used for inputting the first power and area loss power data collected by the data acquisition module into a pre-trained linear regression model to obtain an estimated value of fixed loss in the area; An output module, used for outputting the estimated value of the fixed loss of the station area; The pre-trained linear regression model in the data processing module is obtained by the following steps: Acquire historical data of the substation, wherein the historical data of the substation includes: first power, substation loss power, voltage drop loss power and substation voltage drop predicted line loss rate; Cleaning the acquired historical data of the substation area to obtain cleaned historical data of the substation area; According to the historical data of the cleaned substation, a relationship model between the substation power loss and the first power is established by regression modeling to obtain a linear regression model; The linear regression model is trained using ridge regression to obtain a pre-trained linear regression model; The step of establishing a relationship model between the power loss in the area and the first power by regression modeling based on the historical data of the cleaned area to obtain a linear regression model specifically includes: The established linear regression model is as follows: Y=ω0+ω1*X+ω2*X 2 Where: Y is the power loss in the substation; X is the first power; ω0 is the fixed loss; ω1 is the regression coefficient of the first power; ω2 is the quadratic regression coefficient of the first power; The step of cleaning the acquired historical data of the substation area to obtain the cleaned historical data of the substation area specifically includes: Filter out the substations whose first electricity is greater than 0, whose area electricity loss is greater than 0, whose number of non-empty values of the area voltage drop predicted line loss rate is greater than 3, whose area electricity loss is greater than the voltage drop electricity loss and whose valid points are greater than 9, and obtain the substations that have been screened; The valid points refer to the number of dates on which the power loss of the substation is greater than the power loss of the voltage drop, after deduplication of all dates on which the first power is greater than 0 and the power loss of the substation is greater than 0; Among the substations that have been screened, the data between the mean of the residual error of the power loss in the substation plus or minus 3 times the standard deviation of the power loss in the substation are selected as the cleaned power loss data of the substation; The historical data of the cleaned substation includes the power loss data of the cleaned substation and the first power data of the corresponding substation.
4. According to the light load area fixed loss estimation system based on regression model in claim 3, it is characterized in that: The step of using ridge regression to train the linear regression model to obtain a pre-trained linear regression model specifically includes: Ridge regression loss function: Where: y i is the actual power loss, ω T x i is the predicted value of power loss, λ is the regularization parameter, and the intercept term is the fixed loss; Using the gradient descent optimization method to minimize the ridge regression loss function, we can find the size of ω when the ridge regression cost function is minimized: The first electric quantity regression coefficient ω1 and the first electric quantity quadratic regression coefficient ω2 which minimize the cost function of the ridge regression are obtained as the first electric quantity regression coefficient and the first electric quantity quadratic regression coefficient of the pre-trained linear regression model to obtain the pre-trained linear regression model.
5. An electronic device, characterized in that: It comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a method for estimating fixed loss in a light-load area based on a regression model as described in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, it implements the method for estimating fixed loss in the light-load area based on a regression model as described in any one of claims 1 to 2.
