AI power distribution method and system, electronic equipment and storage medium
By identifying and correcting abnormal meteorological values, combining historical meteorological data to construct composite feature vectors, and training the distribution model, the problem of insufficient adaptability of the traditional distribution system in processing abnormal meteorological data is solved, and the prediction accuracy and power grid stability are significantly improved. .
Patent Information
- Application Number
- CN202410967795.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional power distribution management systems fail to fully consider abnormal meteorological data when processing meteorological data, causing the stability and efficiency of the power grid to be affected during extreme or unconventional weather events. They also lack an effective mechanism to identify and process initially observed abnormal values, limiting the This improves the adaptability of the AI power distribution model to changes in complex meteorological conditions.
By initializing the meteorological feature vector and power load feature vector, abnormal meteorological values are identified and corrected, a composite feature vector is constructed based on historical meteorological data, and the power distribution model is trained to improve the adaptability to abnormal meteorological conditions and prediction accuracy.
It significantly improves the adaptability and prediction accuracy of the power distribution system to abnormal meteorological conditions, ensures accurate future power load prediction during abnormal meteorological values, and enhances the stability and efficiency of the power grid.
Smart Images

Figure CN118656748A
Abstract
Description
Technical Field
[0001] The present application relates to the field of power distribution, and specifically to an AI power distribution method, system, electronic device and storage medium. Background Art
[0002] With the rapid development of artificial intelligence technology, it has become possible to perform AI power distribution on distribution cabinets through intelligent means. When processing meteorological data, traditional distribution management systems may fail to fully consider abnormal meteorological data, such as meteorological drift values (too large or too small values) and meteorological missing values (zero values) that interfere with power load forecasting. In the context of frequent extreme or unconventional weather events, this uncertainty may affect the stability and efficiency of the power grid. In addition, during the processing of abnormal meteorological values, there is a lack of effective mechanisms to identify and process abnormal values in the meteorological data observed for the first time. Without the effective integration of historical meteorological data and current observation data, the prediction model of the distribution system may make decisions based only on limited real-time information, ignoring the response experience in historical data. This limits the adaptability of the AI distribution model to changes in complex meteorological conditions. Summary of the invention
[0003] This embodiment provides an AI power distribution method, system, electronic device and storage medium to explore how to improve the adaptability of the AI power distribution model to complex meteorological conditions.
[0004] In a first aspect, the present invention provides an AI power distribution method, comprising: Initialize meteorological characteristic vector and power load characteristic vector; According to the initialized meteorological feature vector, the corrected normal meteorological value is obtained, including: Obtain M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; Detect M initial meteorological values, identify K abnormal meteorological values and MK normal meteorological values Correct the abnormal meteorological values to obtain the corrected meteorological values; Get the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; Obtaining a composite characteristic vector according to the corrected normal meteorological value and the power load characteristic vector; Based on the composite feature vector, a power distribution model is trained; Use the trained power distribution model to adjust the power distribution strategy.
[0005] In some embodiments, detecting M initial meteorological values, identifying K abnormal meteorological values and MK normal meteorological values; including: Obtain M initial meteorological values; Determining a standard deviation of the set of M initial meteorological values according to the M initial meteorological values; A threshold range of initial meteorological values is preset, wherein the minimum value of the threshold range is the difference between the average value of the set and a standard deviations, and the maximum value is the sum of the average value of the set and a standard deviations, ; According to the threshold range, the initial meteorological value within the threshold range is determined to be an abnormal meteorological value, and the initial meteorological value outside the threshold range is determined to be a normal meteorological value.
[0006] In some of the embodiments, the abnormal meteorological value is corrected to obtain the corrected meteorological value, including: Get K abnormal meteorological values in the current year N; For any abnormal meteorological value among the K abnormal meteorological values, a first matching is performed; the first matching is: matching historical time nodes in N-1 historical years to obtain N-1 historical time nodes; Perform the first matching on the K abnormal meteorological values to obtain K first matching sets; wherein any first matching set contains N-1 historical time nodes from different historical years; For any first matching set among the K first matching sets, a second matching is performed; the second matching is: matching historical normal meteorological values at N-1 historical time nodes of any first matching set; Performing the second matching on the K first matching sets to obtain K second matching sets; wherein any second matching set contains N-1 historical normal meteorological values from different historical years; For any abnormal meteorological value among the K abnormal meteorological values, a first conversion is performed to obtain N-1 time weights of any abnormal meteorological value; According to N-1 time weights, determine the corrected meteorological value of any abnormal meteorological value; Perform K first conversions to obtain K corrected meteorological values.
[0007] In some embodiments, a first conversion is performed on any abnormal meteorological value among the K abnormal meteorological values to obtain N-1 time weights of any abnormal meteorological value; including: Obtain N-1 historical time nodes in the second matching set, and the historical years corresponding to the N-1 historical time nodes; Convert the corresponding historical years and historical time nodes into a unified time unit to obtain N-1 historical time nodes of the unified time unit; For any abnormal meteorological value, calculate the time difference between its observation time node and N-1 historical time nodes of unified time units to obtain the N-1 time differences corresponding to any abnormal meteorological value; The N-1 time differences corresponding to any abnormal meteorological value are converted into weights of historical normal meteorological values of corresponding historical years to obtain N-1 time weights.
[0008] In some embodiments, the N-1 time differences corresponding to any abnormal meteorological value are converted into weights of historical normal meteorological values corresponding to historical years to obtain N-1 time weights; including: Get the observation time node of any abnormal meteorological value in the current year N; Calculate the time difference between the observation time node and any historical time node according to the time distance; According to the time difference, the time weight of any abnormal meteorological value in the corresponding historical year is obtained; Repeat the above steps to obtain N-1 time weights.
[0009] In some of the embodiments, determining a corrected meteorological value of any abnormal meteorological value according to N-1 time weights includes: Get the product of any time weight and the historical normal meteorological value of the corresponding historical time node; Summing the N-1 products to determine a weighted total of meteorological values; Summing the N-1 time weights to determine a weighted total time weight; According to the sum of weighted meteorological values and the sum of time weights, the corrected meteorological value corresponding to any abnormal meteorological value is obtained.
[0010] In some of the embodiments, training a power distribution model based on the composite feature vector includes: calculating a mean square error on a validation set of the training.
[0011] Compared with the prior art, the AI power distribution method of the present invention significantly improves the adaptability and prediction accuracy of the power distribution system to abnormal meteorological conditions by integrating historical meteorological data with the correction mechanism of current meteorological observations.
[0012] In a second aspect, the present invention provides an AI power distribution system, comprising: Initialization vector module, used to initialize meteorological characteristic vector and power load characteristic vector; The abnormal meteorological correction module is used to obtain the corrected normal meteorological value according to the initialized meteorological feature vector, including: obtaining M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; detecting the M initial meteorological values, identifying K abnormal meteorological values and MK normal meteorological values, correcting the abnormal meteorological values, and obtaining the corrected meteorological value; obtaining the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; A composite vector construction module is used to obtain a composite feature vector according to the corrected normal meteorological value and the power load feature vector; A model training module, used for training a power distribution model based on a composite feature vector; The power distribution module is used to adjust the power distribution strategy using the trained power distribution model.
[0013] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores at least one computer executable instruction, and the processor is configured to run the computer executable instruction, and when the computer executable instruction is executed by the processor, an AI power distribution method described in the first aspect is implemented.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the AI power distribution method described in the first aspect is implemented.
[0015] Compared with the prior art, the beneficial effects of the AI power distribution system, electronic device and storage medium of the present invention are the same as the beneficial effects of the above-mentioned AI power distribution method, so they will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a flow chart of an AI power distribution method in an embodiment provided by the present invention; Figure 2 A structural block diagram of an AI power distribution system in an embodiment provided by the present invention; Figure 3 A vector diagram of the current year N and historical years in an AI power distribution method according to an embodiment of the present invention; Figure 4 A diagram of an electronic device in an embodiment of the present invention; DETAILED DESCRIPTION
[0017] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0018] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0019] First, define the current year as N and the historical year set as ,in, Indicates the earliest historical year selected, that is, year 1.
[0020] In an embodiment of the present invention, an AI power distribution method is provided. Figure 1-Figure 4 ; Figure 1 is a flow chart of an AI power distribution method of the present invention, the process comprising: Step S1, initializing the meteorological characteristic vector and the power load characteristic vector, specifically: Constructing an initialized meteorological feature vector and an initialized power load feature vector, wherein the meteorological feature vector is characterized by an observation time node and a meteorological value, and the power load feature vector is characterized by a power consumption time node and a power load value; Exemplarily, by initializing and constructing two vectors corresponding to meteorological characteristics and power load characteristics, a mapping between time nodes and corresponding characteristics can be established, thereby establishing a connection between meteorological values and power load values based on the same time nodes.
[0021] refer to Figure 1 , the process also includes: Step S2: Obtain the corrected normal meteorological value according to the initialized meteorological characteristic vector, specifically: S2-1: Obtain M initial meteorological feature vectors for the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; the initial meteorological feature vector is the meteorological feature vector originally observed in the current year N, that is, it may contain error values, abnormal values, missing values, etc. caused by sensor or recording problems, or extreme atypical weather.
[0022] S2-2: Detect M initial meteorological values, identify K abnormal meteorological values and MK normal meteorological values; abnormal meteorological values are the above-mentioned error values, abnormal values, missing values, etc.
[0023] Further, M initial meteorological values are detected, K abnormal meteorological values and MK normal meteorological values are identified, including: Obtain M initial meteorological values; Determining a standard deviation of the set of M initial meteorological values according to the M initial meteorological values; A threshold range of initial meteorological values is preset, wherein the minimum value of the threshold range is the difference between the average value of the set and a standard deviations, and the maximum value is the sum of the average value of the set and a standard deviations, ; According to the threshold range, the initial meteorological value within the threshold range is determined to be an abnormal meteorological value, and the initial meteorological value outside the threshold range is determined to be a normal meteorological value.
[0024] Exemplarily, the process of identifying the abnormal meteorological value can be expressed as: The set of initial meteorological values is ; Therefore, the standard deviation of the set of initial meteorological values is ; in is the number of initial meteorological values, Indicates The first meteorological value, Represents the average of the set of initial meteorological values.
[0025] For each meteorological value in the set , if it satisfies: ,in ; Then it is determined is a normal meteorological value, otherwise it is an abnormal meteorological value; according to the above steps, the abnormal meteorological value and the normal meteorological value in the initial meteorological value can be identified.
[0026] S2-3, correcting the abnormal meteorological value to obtain a corrected meteorological value; Furthermore, the abnormal meteorological values are corrected to obtain corrected meteorological values, including: Get K abnormal meteorological values in the current year N; For any abnormal meteorological value among the K abnormal meteorological values, a first matching is performed; the first matching is: matching historical time nodes in N-1 historical years to obtain N-1 historical time nodes; Perform the first matching on the K abnormal meteorological values to obtain K first matching sets; wherein any first matching set contains N-1 historical time nodes from different historical years; For any first matching set among the K first matching sets, a second matching is performed; the second matching is: matching historical normal meteorological values at N-1 historical time nodes of any first matching set; Performing the second matching on the K first matching sets to obtain K second matching sets; wherein any second matching set contains N-1 historical normal meteorological values from different historical years; For any abnormal meteorological value among the K abnormal meteorological values, a first conversion is performed to obtain N-1 time weights of any abnormal meteorological value; According to N-1 time weights, determine the corrected meteorological value of any abnormal meteorological value; Perform K first conversions to obtain K corrected meteorological values.
[0027] Among them, any abnormal meteorological value among the K abnormal meteorological values performs the first conversion to obtain N-1 time weights of any abnormal meteorological value, including: Obtain N-1 historical time nodes in the second matching set, and the historical years corresponding to the N-1 historical time nodes; Convert the corresponding historical years and historical time nodes into a unified time unit to obtain N-1 historical time nodes of the unified time unit; For any abnormal meteorological value, the time difference between its observation time node and N-1 historical time nodes of unified time units is calculated to obtain N-1 time differences corresponding to any abnormal meteorological value.
[0028] For example, the abnormal meteorological value observation time node of the current year N is selected as: May 14, 2023, then the matching time node of the matching historical year can be: 2022: May 14 2021: May 15 2020: May 18 2019: May 16 The three days before and after the same time point are chosen to avoid abnormal weather in historical time, which may affect the selection of historical normal weather values.
[0029] Time difference with 2022: From May 14, 2022 to the end of 2022: 365 - 140 (number of days from May 15 to the end of the year) = 225 days Add the number of days in the first five months of 2023 (ignoring whether 2023 is a leap year): 151 days Total day difference = 225 + 151 + 1 (from January 1 to May 15, 2023) = 377 days Time difference with 2021: From May 15, 2021 to the end of 2021: 365 - 131 = 234 days Plus 2022: 365 days Add the number of days in the first five months of 2023: 151 days Total day difference = 234 + 365 + 151 = 750 days Similarly, the time difference with 2020: 1115 days Similarly, the time difference with 2019: 1482 days The results show that the cumulative difference in days from the corresponding date of each historical year to May 15, 2023 is 377 days, 750 days, 1115 days and 1482 days respectively.
[0030] The N-1 time differences corresponding to any abnormal meteorological value are converted into weights of historical normal meteorological values of corresponding historical years to obtain N-1 time weights; including: Get the observation time node of any abnormal meteorological value in the current year N; Calculate the time difference between the observation time node and any historical time node according to the time distance; According to the time difference, the time weight of any abnormal meteorological value in the corresponding historical year is obtained; Repeat the above steps to obtain N-1 time weights.
[0031] Among them, according to N-1 time weights, the corrected meteorological value of any abnormal meteorological value is determined, including: Get the product of any time weight and the historical normal meteorological value of the corresponding historical time node; Summing the N-1 products to determine a weighted total of meteorological values; Summing the N-1 time weights to determine a weighted total time weight; According to the sum of weighted meteorological values and the sum of time weights, the corrected meteorological value corresponding to any abnormal meteorological value is obtained.
[0032] For example, for any abnormal meteorological value , (where i represents the i-th abnormal meteorological value), and the corresponding time nodes of N-1 historical normal meteorological values are , the current observation time node is ; Then the N-1 time difference corresponding to any abnormal meteorological value is ;in, Represents the variable for each historical year , which starts from the 1st historical year and ends at the N-1th historical year, increasing by 1 each time. This means that for each abnormal meteorological value , it is necessary to calculate the corresponding historical time node for each of the N-1 historical years The time difference is The value of is all integers from 1 to N-1, so we will get N-1 time differences, each corresponding to a different historical year.
[0033] In this embodiment, the time weight is determined according to the time distance. The farther away from the observation time node of the abnormal meteorological value of the current year N, the lower the weight. Therefore, the linear decreasing weight formula is expressed as: ; in, It is a positive attenuation coefficient, which can be adjusted accordingly according to the adaptability of the selected historical years or the actual parameters.
[0034] For any abnormal meteorological value Through the first and second matching, we obtain N-1 sets of historical normal meteorological values. ; Each The corresponding normal meteorological value of the jth historical year. At the same time, the corresponding N-1 time weights are ,in, Abnormal weather value Compared with historical normal weather values The time weight of the corresponding time node. Therefore, the correlation formula of the corrected meteorological value is expressed as: ; The numerator is the sum of all historical normal weather values multiplied by their respective time weights, and the denominator is the sum of all time weights to ensure the normalization of the weights. In this way, by considering the time proximity of each historical normal value (reflected by the time weight), the current abnormal weather value can be estimated and corrected more reasonably.
[0035] S2-4, obtaining the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N. Exemplarily, through this step, the abnormal meteorological value in the current year N is replaced with the corrected meteorological value, the corrected meteorological value and the normal meteorological value are both defined as the corrected normal meteorological value, and the corrected normal meteorological value is used as the input of subsequent data.
[0036] refer to Figure 1 , the process also includes: Step S3: Obtain a composite feature vector based on the corrected normal meteorological value and the power load feature vector, specifically: S3-1: Obtain a power load characteristic vector for the current year N, wherein the characteristics of the power load characteristic vector for the current year N are a current power consumption time node and a current power load value; S3-2: Using the current power consumption time node as an index, matching the corresponding observation time node; S3-3: Using the corresponding observation time node as an index, matching the corrected normal meteorological value; Exemplarily, steps S3-1 to S3-3 use the current power consumption time node as the observation time node of the currently observed initial meteorological value; then match the corrected normal meteorological value with the observation time node; that is, construct a mapping relationship between the current power consumption time node and the corrected normal meteorological value.
[0037] S3-4: Obtain the historical power load feature vectors of N-1 historical years, wherein the features of the historical power load feature vectors are the historical power time nodes and the historical power load values; illustratively, by obtaining the power load feature vectors of N-1 historical years, the training data set is expanded, so that the model can refer to the power load conditions under similar conditions in the past (i.e., the same or similar time nodes) while learning the data of the current year, thereby increasing the model's ability to understand long-term trends, seasonal changes, and cyclical patterns. Moreover, historical data is an indispensable part of time series analysis, helping the model capture the autocorrelation and trend in the time series, which is particularly important for predicting future power loads.
[0038] S3-5: The current power load value, the corrected normal meteorological value corresponding to the current power load value, the historical power load value, and the historical corrected normal meteorological value corresponding to the historical power consumption time node are constructed into a composite feature vector. Exemplarily, this step forms a high-dimensional composite feature vector by integrating the current power load value of the current year, meteorological characteristics (corrected normal meteorological value corresponding to the current power load value) and corresponding data of historical years (historical power load value and historical corrected normal meteorological value corresponding to the historical power consumption time node). It contains rich information, which not only reflects the impact of immediate meteorological conditions, but also takes into account the historical load response pattern, providing comprehensive input features for the model.
[0039] refer to Figure 1 , the process also includes: Step S4: training the power distribution model according to the composite feature vector, specifically: S4-1: Select a pre-trained deep learning model; S4-2: Using the composite feature vector as input, training a model to predict historical power load values; S4-3: Use the mean square error as the iteration stop condition to obtain the trained power distribution model; Specifically: In steps S4-2 to S4-3, the training steps of the power distribution model are based on the standard process for time series prediction tasks in machine learning, as shown below: ①Data preparation and preprocessing: The sorted composite features (time nodes, power load values, meteorological values, etc.) and target values (historical power load values) form a data set.
[0040] The data set is divided into training set, validation set, and test set, with common proportions of 70%, 15%, and 15%.
[0041] Normalize the data, such as Z-score normalization, to ensure that the features are on the same scale.
[0042] ②Model selection and configuration: Choose a pre-trained model suitable for time series forecasting, such as LSTM, GRU, or Transformer.
[0043] Set the model architecture parameters, including hidden layer size, number of layers, learning rate, batch size, etc.
[0044] ③Model training: The composite feature vector is input to the model, and the model performs forward propagation to predict the historical load.
[0045] The mean square error loss function (MSE) is applied to evaluate the difference between the predicted value and the actual value. The mean square error formula is: ; It reflects the size of the average square difference between the model prediction value and the true value.
[0046] in is the total number of samples, is the true label or actual observation value of the i-th sample, represents the model's predicted value for the i-th sample, It means giving a greater penalty to larger errors.
[0047] Furthermore, the sample size includes at least: Time nodes refer to the time points at which data is recorded. For time series prediction tasks, time is the key to sorting and associating data.
[0048] The power load value, the actual observed value of electricity consumption, is the target variable that the model attempts to predict.
[0049] Meteorological values, data on meteorological conditions related to electricity consumption, such as temperature, humidity, wind speed, precipitation, solar radiation intensity or the total weighted average of the above meteorological data, help the model understand the impact of weather on power load.
[0050] Historical power load values, past power load data, can be historical data for the same time period, Iterate the training and continuously optimize the model until the performance on the validation set no longer improves significantly.
[0051] ④Model evaluation and selection: After each dataset traversal, the MSE indicator of the validation set is used to evaluate the model performance.
[0052] When the MSE on the validation set no longer decreases or reaches a preset threshold, training is stopped.
[0053] This process is a typical framework for training models in the field of machine learning, ensuring that the model can effectively learn data patterns and make accurate predictions.
[0054] refer to Figure 1 , the process also includes: Step S5: Use the trained power distribution model to adjust the power distribution strategy S5-1: Use the composite feature vector containing the corrected normal meteorological values as the input of the trained model and output the predicted trend of future electricity load; S5-2: Develop dynamic power distribution strategies based on the forecast trend of future power load; For example, based on the predicted trend changes in future electricity load, various power generation resources (such as thermal power, hydropower, wind power, solar power, etc.) are dispatched to meet demand, optimize power generation costs and efficiency, and ensure stable power supply.
[0055] Before the load peak is predicted, energy storage equipment (such as battery energy storage stations) is pre-charged, and the stored energy is released during peak hours to smooth the load and reduce peak demand pressure. Users are encouraged to reduce electricity consumption during peak hours (through price incentives, load shifting, etc.) to smooth the load curve.
[0056] An AI power distribution method in this embodiment significantly improves the adaptability and prediction accuracy of the power distribution system to abnormal meteorological conditions by integrating historical meteorological data with the correction mechanism of current meteorological observations. Specifically, by identifying and correcting abnormal meteorological values and combining historical normal meteorological patterns, a more robust prediction model foundation is built, ensuring that accurate future power load predictions can be provided even when abnormal meteorological values are present.
[0057] The embodiment of the present invention also provides an AI power distribution system, which is used to implement the above method embodiment, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for predetermined functions. Although the systems described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0058] like Figure 2 As shown, Figure 2 : is a structural block diagram of an AI power distribution system of the present invention, the system comprising: Initialization vector module 101, used to initialize meteorological characteristic vector and power load characteristic vector; The abnormal meteorological correction module 201 is used to obtain the corrected normal meteorological value according to the initialized meteorological feature vector, including: obtaining M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; detecting the M initial meteorological values, identifying K abnormal meteorological values and MK normal meteorological values, correcting the abnormal meteorological values, and obtaining the corrected meteorological value; obtaining the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; The composite vector construction module 301 is used to obtain a composite feature vector according to the corrected normal meteorological value and the power load feature vector; A model training module 401 is used to train a power distribution model according to the composite feature vector; The power distribution module 501 is used to adjust the power distribution strategy using the trained power distribution model.
[0059] In the above system, the meteorological characteristic vector and the power load characteristic vector are initialized by the initialization vector module 101, the normal meteorological value after correction is obtained by the abnormal meteorological correction module, and then the composite characteristic vector is obtained by the composite vector construction module 301, the distribution model is trained by the model training module 401, and the distribution strategy is adjusted by the distribution module 501, thereby significantly improving the adaptability and prediction accuracy of the distribution system to abnormal meteorological conditions.
[0060] like Figure 4 As shown, an embodiment of the present invention further provides an electronic device, which includes a memory 230 and a processor 210, wherein the memory 230 stores at least one computer executable instruction, and the processor 210 is configured to run the computer executable instruction, and when the computer executable instruction is run by the processor 210, the above-mentioned AI power distribution method is implemented.
[0061] The electronic device may include a processor 210, a communications interface 220, a memory 230, and a communications bus 240, wherein the processor 210, the communications interface 220, and the memory 230 communicate with each other via the communications bus 240. The processor 210 may call the logic instructions in the memory 230 to execute the following method: Initialize meteorological characteristic vector and power load characteristic vector; According to the initialized meteorological feature vector, the corrected normal meteorological value is obtained, including: Obtain M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; Detect M initial meteorological values, identify K abnormal meteorological values and MK normal meteorological values Correct the abnormal meteorological values to obtain the corrected meteorological values; Get the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; Obtaining a composite characteristic vector according to the corrected normal meteorological value and the power load characteristic vector; Based on the composite feature vector, a power distribution model is trained; Use the trained power distribution model to adjust the power distribution strategy.
[0062] In addition, the logic instructions in the above-mentioned memory 230 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0063] The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0064] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0065] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An AI power distribution method, characterized in that: include: Initialize meteorological characteristic vector and power load characteristic vector; According to the initialized meteorological feature vector, the corrected normal meteorological value is obtained, including: Obtain M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; Detect M initial meteorological values, identify K abnormal meteorological values and MK normal meteorological values Correct the abnormal meteorological values to obtain the corrected meteorological values; Get the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; Obtaining a composite characteristic vector according to the corrected normal meteorological value and the power load characteristic vector; Based on the composite feature vector, a power distribution model is trained; Use the trained power distribution model to adjust the power distribution strategy.
2. The AI power distribution method capable of intelligent load balancing according to claim 1, characterized in that: Detect M initial meteorological values, identify K abnormal meteorological values and MK normal meteorological values; including: Obtain M initial meteorological values; Determining a standard deviation of the set of M initial meteorological values according to the M initial meteorological values; A threshold range of initial meteorological values is preset, wherein the minimum value of the threshold range is the difference between the average value of the set and a standard deviations, and the maximum value is the sum of the average value of the set and a standard deviations, ; According to the threshold range, the initial meteorological value within the threshold range is determined to be an abnormal meteorological value, and the initial meteorological value outside the threshold range is determined to be a normal meteorological value.
3. The AI power distribution method capable of intelligent load balancing according to claim 1, characterized in that: Correct the abnormal meteorological values to obtain the corrected meteorological values, including: Get K abnormal meteorological values in the current year N; For any abnormal meteorological value among the K abnormal meteorological values, a first matching is performed; the first matching is: matching historical time nodes in N-1 historical years to obtain N-1 historical time nodes; Perform the first matching on the K abnormal meteorological values to obtain K first matching sets; wherein any first matching set contains N-1 historical time nodes from different historical years; For any first matching set among the K first matching sets, a second matching is performed; the second matching is: matching historical normal meteorological values at N-1 historical time nodes of any first matching set; Performing the second matching on the K first matching sets to obtain K second matching sets; wherein any second matching set contains N-1 historical normal meteorological values from different historical years; For any abnormal meteorological value among the K abnormal meteorological values, a first conversion is performed to obtain N-1 time weights of any abnormal meteorological value; According to N-1 time weights, determine the corrected meteorological value of any abnormal meteorological value; Perform K first conversions to obtain K corrected meteorological values.
4. The AI power distribution method capable of intelligent load balancing according to claim 3, characterized in that: For any abnormal meteorological value among the K abnormal meteorological values, a first conversion is performed to obtain N-1 time weights of any abnormal meteorological value; including: Obtain N-1 historical time nodes in the second matching set, and the historical years corresponding to the N-1 historical time nodes; Convert the corresponding historical years and historical time nodes into a unified time unit to obtain N-1 historical time nodes of the unified time unit; For any abnormal meteorological value, calculate the time difference between its observation time node and N-1 historical time nodes of unified time units to obtain the N-1 time differences corresponding to any abnormal meteorological value; The N-1 time differences corresponding to any abnormal meteorological value are converted into weights of historical normal meteorological values of corresponding historical years to obtain N-1 time weights.
5. The AI power distribution method capable of intelligent load balancing according to claim 4, characterized in that: Converting the N-1 time differences corresponding to any abnormal meteorological value into the weights of the historical normal meteorological values of the corresponding historical years to obtain N-1 time weights; including: Get the observation time node of any abnormal meteorological value in the current year N; Calculate the time difference between the observation time node and any historical time node according to the time distance; According to the time difference, the time weight of any abnormal meteorological value in the corresponding historical year is obtained; Repeat to obtain N-1 time weights.
6. The AI power distribution method capable of intelligent load balancing according to claim 3, characterized in that: According to N-1 time weights, the corrected meteorological value of any abnormal meteorological value is determined; including: Get the product of any time weight and the historical normal meteorological value of the corresponding historical time node; Summing the N-1 products to determine a weighted total of meteorological values; Summing the N-1 time weights to determine a weighted total time weight; According to the sum of weighted meteorological values and the sum of time weights, the corrected meteorological value corresponding to any abnormal meteorological value is obtained.
7. The AI power distribution method capable of intelligent load balancing according to claim 1, characterized in that: Training a power distribution model according to the composite feature vector includes: calculating a mean square error on a validation set of the training.
8. An AI power distribution system, characterized in that: include: Initialization vector module, used to initialize meteorological characteristic vector and power load characteristic vector; The abnormal meteorological correction module is used to obtain the corrected normal meteorological value according to the initialized meteorological feature vector, including: obtaining M initial meteorological feature vectors in the current year N; wherein the features of the M initial meteorological feature vectors are M observation time nodes and M initial meteorological values; detecting the M initial meteorological values, identifying K abnormal meteorological values and MK normal meteorological values, correcting the abnormal meteorological values, and obtaining the corrected meteorological value; obtaining the corrected normal meteorological value including the corrected meteorological value and the normal meteorological value in the current year N; A composite vector construction module is used to obtain a composite feature vector according to the corrected normal meteorological value and the power load feature vector; A model training module, used for training a power distribution model based on a composite feature vector; The power distribution module is used to adjust the power distribution strategy using the trained power distribution model.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores at least one computer executable instruction, the processor is configured to execute the computer executable instruction, and the computer executable instruction, when executed by the processor, implements an AI power distribution method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the video condensing method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Virtual power plant gateway data processing method and system based on edge computing
CN119150705A
