Intelligent power grid management method based on artificial intelligence
By collecting data from smart meters and using artificial intelligence technology for data processing and model training, it solves the problem of insufficient flexibility and accuracy of traditional power grid load forecasting methods, achieves flexible and accurate prediction of power grid load, and improves power grid management efficiency. .
Patent Information
- Application Number
- CN202410690952.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional power grid load forecasting methods lack flexibility and accuracy and cannot adapt to rapid changes in power consumption patterns, resulting in inefficient power grid management.
Using smart grid management methods based on artificial intelligence, power consumption data and environmental data are collected through smart meters, data aggregation and feature extraction are performed, and load prediction models are trained to achieve flexible and accurate prediction of grid load.
It improves the accuracy and authenticity of load forecasting, enhances the flexibility and effectiveness of power grid management, and supports the optimization of power grid distribution and power supply.
Smart Images

Figure CN118569578A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to a smart grid management method based on artificial intelligence. Background Art
[0002] The power grid is an important part of the power system. It is responsible for transmitting the electricity generated by power plants to various power consumption areas through transmission lines, and then distributing the electricity to end users through distribution networks. In order to improve the rationality of power distribution between different power consumption areas, load forecasting is usually required. For example, the power consumption of different power consumption areas is predicted based on weather conditions (temperature, humidity, precipitation, etc.) and historical power consumption data, so as to better manage the power grid and improve the stability of the power grid. However, with the advancement of science and technology, people's lifestyles are constantly changing. Traditional load forecasting models may not be able to adapt to the rapid changes in load patterns. The huge changes in power consumption patterns have challenged traditional forecasting methods, and a more flexible and effective load forecasting method is urgently needed. Summary of the invention
[0003] The main purpose of the embodiments of the present invention is to provide an intelligent grid management and related devices based on artificial intelligence, aiming to solve the problems of lack of flexibility and low prediction accuracy of grid load forecasting methods in related technologies.
[0004] In a first aspect, an embodiment of the present invention provides a smart grid management method based on artificial intelligence, comprising:
[0005] Obtain electricity consumption data collected by smart meters and environmental data of relevant electricity consumption areas;
[0006] Aggregating the power consumption data and the environment data based on a preset scale to obtain power consumption time series data and environment time series data;
[0007] Based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environment time series data to obtain corresponding power consumption feature data and environment feature data;
[0008] Training a preset load prediction model based on the power consumption characteristic data and the environmental characteristic data;
[0009] When the performance test result of the load prediction model meets the preset performance condition, the current power consumption data is predicted based on the load prediction model according to the current environmental data of the power consumption area.
[0010] In a second aspect, an embodiment of the present invention provides a smart grid management device based on artificial intelligence, comprising:
[0011] A data acquisition module is used to acquire the power consumption data collected by the smart meter and the environmental data of the corresponding power consumption area;
[0012] A data aggregation module, used to aggregate the power consumption data and the environmental data based on a preset scale to obtain power consumption time series data and environmental time series data;
[0013] A data analysis module, used to extract features from the power consumption time series data and the environment time series data based on a preset analysis model to obtain corresponding power consumption feature data and environment feature data;
[0014] A model training module, used for training a preset load forecasting model based on the power consumption characteristic data and the environmental characteristic data;
[0015] The data prediction module is used to predict the current power consumption data based on the load prediction model according to the current environmental data of the power consumption area when the performance test result of the load prediction model meets the preset performance conditions.
[0016] In a third aspect, an embodiment of the present invention further provides a terminal device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any one of the artificial intelligence-based smart grid management methods provided in the specification of the present invention are implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any one of the artificial intelligence-based smart grid management methods provided in the specification of the present invention.
[0018] The embodiment of the present invention provides a smart grid management method based on artificial intelligence. The present application obtains the power consumption data collected by the smart meter and the environmental data of the corresponding power consumption area, and synchronously obtains the power consumption data and environmental data in the corresponding power consumption area, so as to train the load prediction model according to the power consumption data and the environmental data, and improve the accuracy of the load prediction model; based on a preset scale, the power consumption data and the environmental data are respectively aggregated to obtain power consumption time series data and environmental time series data, thereby reducing the randomness of the power consumption time series data and the environmental time series data, and reducing the amount of calculation for subsequent feature extraction; based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environmental time series data to obtain corresponding power consumption feature data and environmental feature data. Data, power consumption time series data and environmental time series data are represented by power consumption characteristic data and environmental characteristic data, so as to train the load forecasting model; based on the power consumption characteristic data and environmental characteristic data, a preset load forecasting model is trained, and according to the power consumption characteristic data and environmental characteristic data collected historically, the authenticity and accuracy of the load forecasting model are improved; when the performance test result of the load forecasting model meets the preset performance conditions, the current power consumption data is predicted according to the current environmental data of the power consumption area based on the load forecasting model, and the current power consumption data is predicted according to the current environmental data through the trained load forecasting model, so as to more flexibly and effectively predict the load of the power grid and realize the management of the power distribution and power supply of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of a flow chart of a smart grid management method based on artificial intelligence provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of the module structure of an artificial intelligence-based smart grid management device provided in an embodiment of the present invention;
[0022] Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0025] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0026] The embodiment of the present invention provides a smart grid management method based on artificial intelligence. The smart grid management method based on artificial intelligence can be applied to a terminal device, and the terminal device can be an electronic device such as a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The terminal device can be a server or a server cluster.
[0027] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0028] Please refer to Figure 1 , Figure 1 A flowchart of an artificial intelligence-based smart grid management method provided in an embodiment of the present invention.
[0029] like Figure 1 As shown, the artificial intelligence-based smart grid management method includes steps S101 to S105.
[0030] Step S101: Obtain electricity consumption data collected by the smart meter and environmental data of the corresponding electricity consumption area.
[0031] Exemplarily, a smart meter is installed for each household to monitor the residents' electricity consumption so that the electricity consumption can be charged. The embodiment of the present application collects the electricity consumption data obtained by the smart meter to form a load forecasting model, thereby avoiding the need for additional hardware equipment and reducing implementation costs.
[0032] Exemplarily, the electricity consumption data obtained by the smart meter includes the collection time, electricity consumption, and device identification, wherein the device identification is used to identify the smart meter that collects the electricity consumption data, and the electricity consumption area to which the smart meter belongs can be determined according to the device identification. The electricity consumption area is pre-divided according to actual needs. For example, the power supply area corresponding to each substation can be determined as a power consumption area, but it is not limited to this and is not limited here.
[0033] For example, the environmental data may be meteorological data such as temperature, humidity, precipitation, etc. acquired by one or more meteorological stations located in the power consumption area. Specifically, the meteorological station is bound to the power consumption area where it is located in advance.
[0034] Step S102: Aggregate the power consumption data and the environment data based on a preset scale to obtain power consumption time series data and environment time series data.
[0035] For example, the amount of electricity consumption data acquired in step S102 is large, and some of the data may contain user privacy. In order to facilitate subsequent data processing and protect user electricity privacy, it is necessary to aggregate multiple electricity consumption data with corresponding collection times in a power consumption area to obtain the electricity consumption time series data of the power consumption area. Similarly, in order to ensure the synchronization of environmental data and electricity consumption data, the environmental data is aggregated based on the same logic to obtain the electricity consumption time series data.
[0036] In some implementations, the aggregating the power consumption data and the environment data based on a preset scale to obtain power consumption time series data and environment time series data includes:
[0037] Based on a preset time scale, respectively calculating the mathematical expectations of the power consumption data and the environmental data within a preset time period to obtain expected power consumption data and expected environmental data;
[0038] Based on a preset spatial scale, the sum of the expected power consumption data and the mean of the expected environment data in a preset area are calculated respectively to obtain the power consumption time series data and the environment time series data.
[0039] For example, the electricity consumption data collected by the smart meter usually has a more detailed time scale, for example, electricity consumption data is collected every 15 minutes. In order to reduce the amount of data, a larger time scale can be set when aggregating the data, for example, 2 hours.
[0040] Exemplarily, the expected data of each set of power consumption data and each set of environmental data within the preset time scale are calculated respectively to obtain the expected power consumption data and the expected environmental data. Specifically, the average power consumption of each smart meter within 2 hours is calculated, and the average temperature, average humidity, average precipitation, etc. collected by each meteorological station within 2 hours are calculated.
[0041] Exemplarily, in order to enable a set of power consumption time series data and environmental time series data to reflect the power consumption and environmental conditions in the power consumption area, the power consumption expected data and environmental expected data are aggregated according to a preset spatial scale. Among them, the preset spatial scale can correspond to the division of the power consumption area, and the power consumption area is the preset area, but it is certainly not limited to this and is not limited here. For example, the sum of the average power consumption of each user in the power consumption area within 2 hours is calculated to obtain a value in the power consumption time series data; the average temperature, average humidity, average precipitation, etc. of the power consumption area within 2 hours are calculated to obtain a value in the environmental time series data; and so on, a set of time-related power consumption time series data and a set of time-related environmental time series data are obtained.
[0042] In some implementations, the sum of the expected power consumption data and the mean of the expected environment data in a preset area are calculated based on a preset spatial scale to obtain the power consumption time series data and the environment time series data, including:
[0043] According to the area identification of the preset area, it is determined that the area label corresponding to the power consumption time series data is any one of: a living area, an office area, and a commercial area.
[0044] Exemplarily, the electricity consumption of different types of electricity consumption areas has different characteristics. For example, the living area usually has a peak electricity consumption period after get off work, the office area usually has a peak electricity consumption period during working hours, and the commercial area usually has a peak electricity consumption period during holidays. In order to improve the flexibility of smart grid management, when aggregating electricity consumption data based on spatial scale, the type of the preset area can be classified according to the area identification of the preset area. Specifically, the area identification can be predetermined, and the byte used to indicate the area type in the area identification is pre-set according to the type of the preset area, so as to determine whether the area label of the preset area is a living area, an office area, or a commercial area according to the area identification of the preset area.
[0045] Step S103: Based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environment time series data to obtain corresponding power consumption feature data and environment feature data.
[0046] Exemplarily, by extracting features from power consumption time series data and environmental time series data, power consumption feature data and environmental feature data that can reflect power consumption conditions and environmental conditions are obtained.
[0047] In some implementations, the feature extraction of the power usage time series data and the environment time series data based on a preset analysis model to obtain corresponding power usage feature data and environment feature data includes:
[0048] Performing wavelet transformation on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient;
[0049] The power consumption coefficient and the environmental coefficient are filtered, and the filtered power consumption coefficient and environmental coefficient are reconstructed to obtain the power consumption characteristic data and the environmental characteristic data.
[0050] Exemplarily, since the wavelet transform can analyze time series data at different times and different frequency scales, and provide time-frequency localization information of the signal, it is suitable for capturing nonlinear and non-stationary characteristics in load data, and is therefore suitable for analyzing non-stationary signals. The wavelet transform can be applied to the analysis of power consumption characteristic data and environmental characteristic data in the embodiment of the present application. Specifically, the high-frequency noise part in the time series data can be filtered through the wavelet transform, and the main information therein can be retained.
[0051] Specifically, the power consumption time series data and the environmental time series data are respectively subjected to wavelet transform to obtain the decomposed power consumption coefficient and environmental coefficient. The power consumption coefficient and the environmental coefficient can respectively reflect the frequency characteristics in the power consumption time series data and the environmental time series data. High-frequency noise has a higher power consumption coefficient or environmental coefficient. The power consumption coefficient and environmental coefficient greater than the preset coefficient are filtered out, and the filtered power consumption coefficient and environmental coefficient are reconstructed to obtain power consumption characteristic data for reflecting the power consumption situation and environmental characteristic data for reflecting the environmental situation.
[0052] In some implementations, performing wavelet transform on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient includes:
[0053] The power consumption coefficient and the environmental coefficient are calculated according to the following formula:
[0054] d j,k =∑x n ψ j,k (n)
[0055] Among them, d j,k represents the power consumption coefficient or the environmental coefficient, x n represents the nth time series data in the power consumption time series data or the environment time series data, ψ j,k(n) represents a wavelet function, and the commonly used Haar wavelet function, Daubechies wavelet function, etc. can be selected. j and k represent the preset scale parameter and position parameter respectively.
[0056] Exemplarily, wavelet transform is performed on the power consumption time series data and the environment time series data respectively, and the nth data x in the power consumption time series data or the environment time series data is converted into n Substituting into the wavelet transform formula, we can obtain the power consumption coefficient corresponding to the power consumption time series data or the environmental coefficient corresponding to the environmental time series data, where ψ j,k (n) represents the wavelet function, the scale parameter j and the position parameter k represent the scale (scale) and position (position) in the wavelet transform respectively, the scale parameter j determines the degree of expansion and contraction of the wavelet function, which is related to the frequency of the wavelet. In the discrete wavelet transform (DWT) of the embodiment of the present application, the scale parameter j is usually proportional to the center frequency of the wavelet function, and a smaller j value corresponds to a wavelet with a higher frequency, which is used to capture the high-frequency components of the signal; a larger j value corresponds to a wavelet with a lower frequency, which is used to capture the low-frequency components or trends of the signal; the position parameter k determines the specific position of the wavelet function on the signal, and in the discrete wavelet transform, k usually represents the translation amount of the wavelet function in the time or space domain. By changing k, we can analyze the signal at different positions to capture local features.
[0057] Exemplarily, a plurality of wavelet coefficient matrices (j, k) may be pre-set, wavelet transforms may be performed at different scales and positions, and the most appropriate j and k values may be selected.
[0058] In some implementations, filtering the power consumption coefficient and the environmental coefficient, and reconstructing the filtered power consumption coefficient and environmental coefficient to obtain the power consumption characteristic data and the environmental characteristic data includes:
[0059] Filter the power consumption coefficient and environmental coefficient that are less than or equal to the preset value;
[0060] The filtered power consumption coefficient and environmental coefficient are reconstructed according to the following formula:
[0061]
[0062] Among them, x n represents the nth environmental characteristic data or environmental characteristic data, Indicates the power consumption coefficient or environmental coefficient after filtering. represents the complex conjugate wavelet function.
[0063] Exemplarily, the high-frequency components in the power consumption time series data and the environmental time series data are filtered according to the power consumption coefficient and the environmental coefficient. Specifically, a preset value T can be set in advance to filter out the power consumption coefficient and the environmental coefficient that are greater than T, retain the power consumption coefficient and the environmental coefficient that are less than T, and reconstruct the filtered power consumption coefficient and the environmental coefficient.
[0064] For example, after extracting useful features and removing noise, a clean load sequence can be reconstructed through the inverse process of wavelet transform for input into the load forecasting model. j,k The complex conjugate wavelet function of (n) The power consumption coefficient or environmental coefficient after filtering Reconstruction is performed, where the wavelet function ψ j,k (n) and the complex conjugate wavelet function have the same scale and location parameters.
[0065] Step S104: training a preset load prediction model based on the power consumption characteristic data and the environmental characteristic data.
[0066] Exemplarily, the load forecasting model is trained using the power consumption characteristic data and environmental characteristic data processed by wavelet transform. The load forecasting model can be determined based on algorithms in related technologies, such as regression analysis algorithms, time series analysis algorithms, neural network algorithms, etc., which are not limited here. Taking the regression analysis algorithm as an example, the method of using wavelet transform combined with regression analysis can be expressed as: Where W(x) is the load sequence after wavelet transformation, f is the regression function, is the predicted load value.
[0067] Step S105: When the performance test result of the load prediction model meets the preset performance condition, the current power consumption data is predicted based on the load prediction model according to the current environmental data of the power consumption area.
[0068] For example, in order to ensure the accuracy of load forecasting, a verification data set may be pre-set to perform performance testing on the load forecasting model. When the performance test results of the load forecasting model meet preset performance conditions, the load forecasting model is used to predict the power consumption data.
[0069] In some embodiments, when the performance test result of the load prediction model meets the preset performance condition, predicting the current power consumption data according to the current environmental data of the power consumption area based on the load prediction model includes:
[0070] Acquire a preset verification data set, wherein the verification data set includes preset environmental data and preset power consumption data;
[0071] Obtaining the target power consumption determined by the load forecasting model according to the preset environmental data;
[0072] When at least one of the mean square error, root mean square error, and mean absolute error between the target power consumption and the preset power consumption data is less than a preset threshold, the current power consumption data is predicted based on the current environmental data of the power consumption area based on the load prediction model.
[0073] Exemplarily, the indicators for evaluating the load forecasting model may be one or more of mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE).
[0074] Taking the mean square error as an example, the mean square error of the load forecasting model is calculated by the following formula:
[0075]
[0076] Where MSE represents the mean square error of the load forecasting model, n is the number of samples in the validation data set, and Y i Indicates preset power consumption data, Y' i The target power consumption predicted by the load forecasting model is shown in Table 1. The calculation method of the root mean square error and the mean absolute error can refer to the calculation formula in the relevant technology, which will not be described in detail here.
[0077] Exemplarily, if the mean square error, root mean square error, and mean absolute error are small, for example, less than a preset threshold, it means that the accuracy of the load forecasting model meets the requirements, and the load forecasting model can be used to predict the current power consumption data based on the current environmental data of the power consumption area. The preset thresholds can be set for the mean square error, root mean square error, and mean absolute error respectively.
[0078] For example, load forecasting models may be trained for living areas, office areas, and commercial areas respectively according to regional labels to improve the pertinence and accuracy of smart grid management.
[0079] The artificial intelligence-based smart grid management method provided by the embodiment of the present invention obtains the power consumption data collected by the smart meter and the environmental data of the corresponding power consumption area, and synchronously obtains the power consumption data and environmental data in the corresponding power consumption area, so as to train the load prediction model according to the power consumption data and the environmental data, and improve the accuracy of the load prediction model; based on a preset scale, the power consumption data and the environmental data are respectively aggregated to obtain power consumption time series data and environmental time series data, thereby reducing the randomness of the power consumption time series data and the environmental time series data, and reducing the amount of calculation for subsequent feature extraction; based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environmental time series data to obtain corresponding power consumption feature data and environmental feature data , the power consumption time series data and the environmental time series data are represented by the power consumption characteristic data and the environmental characteristic data so as to train the load forecasting model; the preset load forecasting model is trained based on the power consumption characteristic data and the environmental characteristic data, and the authenticity and accuracy of the load forecasting model are improved according to the power consumption characteristic data and the environmental characteristic data collected historically; when the performance test result of the load forecasting model meets the preset performance conditions, the current power consumption data is predicted according to the current environmental data of the power consumption area based on the load forecasting model, and the current power consumption data is predicted according to the current environmental data through the trained load forecasting model, so as to more flexibly and effectively predict the load of the power grid and realize the management of the power distribution and power supply of the power grid.
[0080] See also Figure 2 , Figure 2 An artificial intelligence-based smart grid management device 200 is provided for an embodiment of the present application. The artificial intelligence-based smart grid management device 200 includes a data acquisition module 201, which is used to acquire power consumption data collected by smart meters and environmental data of corresponding power consumption areas; a data aggregation module 202, which is used to aggregate the power consumption data and the environmental data based on a preset scale to obtain power consumption time series data and environmental time series data; a data analysis module 203, which is used to extract features of the power consumption time series data and the environmental time series data based on a preset analysis model to obtain corresponding power consumption feature data and environmental feature data; a model training module 204, which is used to train a preset load forecasting model based on the power consumption feature data and the environmental feature data; a data prediction module 205, which is used to predict current power consumption data based on the load forecasting model according to the current environmental data of the power consumption area when the performance test result of the load forecasting model meets the preset performance conditions.
[0081] In some implementations, the data aggregation module 202 processes, during the process of respectively aggregating the power consumption data and the environment data based on the preset scale to obtain the power consumption time series data and the environment time series data:
[0082] Based on a preset time scale, respectively calculating the mathematical expectations of the power consumption data and the environmental data within a preset time period to obtain expected power consumption data and expected environmental data;
[0083] Based on a preset spatial scale, the sum of the expected power consumption data and the mean of the expected environment data in a preset area are calculated respectively to obtain the power consumption time series data and the environment time series data.
[0084] In some implementations, the data aggregation module 202 calculates the sum of the expected power consumption data and the mean of the expected environment data in the preset area based on the preset spatial scale to obtain the power consumption time series data and the environment time series data, and processes:
[0085] According to the area identification of the preset area, it is determined that the area label corresponding to the power consumption time series data is any one of: a living area, an office area, and a commercial area.
[0086] In some implementations, the data analysis module 203 performs feature extraction on the power usage time series data and the environment time series data based on the preset analysis model to obtain corresponding power usage feature data and environment feature data, and processes:
[0087] Performing wavelet transformation on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient;
[0088] The power consumption coefficient and the environmental coefficient are filtered, and the filtered power consumption coefficient and environmental coefficient are reconstructed to obtain the power consumption characteristic data and the environmental characteristic data.
[0089] In some implementations, the data analysis module 203 performs wavelet transformation on the power consumption time series data and the environment time series data to obtain the power consumption coefficient and the environment coefficient, and processes:
[0090] The power consumption coefficient and the environmental coefficient are calculated according to the following formula:
[0091] d j,k =∑x n ψ j,k (n)
[0092] Among them, d j,k represents the power consumption coefficient or the environmental coefficient, x n represents the nth time series data in the power consumption time series data or the environment time series data, ψ j,k (n) represents the wavelet function, j and k represent the preset scale parameter and position parameter respectively.
[0093] In some implementations, the data analysis module 203 processes, during the process of filtering the power consumption coefficient and the environmental coefficient and reconstructing the filtered power consumption coefficient and environmental coefficient to obtain the power consumption characteristic data and the environmental characteristic data:
[0094] Filter the power consumption coefficient and environmental coefficient that are less than or equal to the preset value;
[0095] The filtered power consumption coefficient and environmental coefficient are reconstructed according to the following formula:
[0096]
[0097] Among them, x n represents the nth environmental characteristic data or environmental characteristic data, Indicates the power consumption coefficient or environmental coefficient after filtering. represents the complex conjugate wavelet function.
[0098] In some implementations, when the performance test result of the load prediction model meets the preset performance condition, the data prediction module 205 processes the following in the process of predicting the current power consumption data according to the current environmental data of the power consumption area based on the load prediction model:
[0099] Acquire a preset verification data set, wherein the verification data set includes preset environmental data and preset power consumption data;
[0100] Obtaining the target power consumption determined by the load forecasting model according to the preset environmental data;
[0101] When at least one of the mean square error, root mean square error, and mean absolute error between the target power consumption and the preset power consumption data is less than a preset threshold, the current power consumption data is predicted based on the current environmental data of the power consumption area based on the load prediction model.
[0102] See also Figure 3 , Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention.
[0103] like Figure 3 As shown, the terminal device 300 includes a processor 301 and a memory 302, and the processor 301 and the memory 302 are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.
[0104] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 301 can be a central processing unit (CPU), and the processor 301 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0105] Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0106] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present invention, and does not constitute a limitation on the terminal device to which the embodiment of the present invention is applied. The specific server may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0107] The processor is used to run a computer program stored in a memory, and implement any one of the artificial intelligence-based smart grid management methods provided by an embodiment of the present invention when executing the computer program.
[0108] In one embodiment, the processor is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:
[0109] Obtain electricity consumption data collected by smart meters and environmental data of relevant electricity consumption areas;
[0110] Aggregating the power consumption data and the environment data based on a preset scale to obtain power consumption time series data and environment time series data;
[0111] Based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environment time series data to obtain corresponding power consumption feature data and environment feature data;
[0112] Training a preset load prediction model based on the power consumption characteristic data and the environmental characteristic data;
[0113] When the performance test result of the load prediction model meets the preset performance condition, the current power consumption data is predicted based on the load prediction model according to the current environmental data of the power consumption area.
[0114] In some implementations, the processor 301, in the process of respectively aggregating the power consumption data and the environment data based on the preset scale to obtain the power consumption time series data and the environment time series data, is used to execute:
[0115] Based on a preset time scale, respectively calculating the mathematical expectations of the power consumption data and the environmental data within a preset time period to obtain expected power consumption data and expected environmental data;
[0116] Based on a preset spatial scale, the sum of the expected power consumption data and the mean of the expected environment data in a preset area are calculated respectively to obtain the power consumption time series data and the environment time series data.
[0117] In some implementations, the processor 301 is used to perform the following steps in the process of respectively calculating the sum of the expected power consumption data and the mean of the expected environment data in the preset area based on the preset spatial scale to obtain the power consumption time series data and the environment time series data:
[0118] According to the area identification of the preset area, it is determined that the area label corresponding to the power consumption time series data is any one of: a living area, an office area, and a commercial area.
[0119] In some implementations, the processor 301 is used to perform the following steps in the process of extracting features from the power usage time series data and the environment time series data based on the preset analysis model to obtain corresponding power usage feature data and environment feature data:
[0120] Performing wavelet transformation on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient;
[0121] The power consumption coefficient and the environmental coefficient are filtered, and the filtered power consumption coefficient and environmental coefficient are reconstructed to obtain the power consumption characteristic data and the environmental characteristic data.
[0122] In some implementations, the processor 301, in the process of performing wavelet transform on the power consumption time series data and the environment time series data to obtain the power consumption coefficient and the environment coefficient, is used to execute:
[0123] The power consumption coefficient and the environmental coefficient are calculated according to the following formula:
[0124] d j,k =∑x n ψ j,k(n)
[0125] Among them, d j,k represents the power consumption coefficient or the environmental coefficient, x n represents the nth time series data in the power consumption time series data or the environment time series data, ψ j,k (n) represents the wavelet function, j and k represent the preset scale parameter and position parameter respectively.
[0126] In some implementations, the processor 301, in the process of filtering the power consumption coefficient and the environmental coefficient, and reconstructing the filtered power consumption coefficient and environmental coefficient to obtain the power consumption characteristic data and the environmental characteristic data, is used to execute:
[0127] Filter the power consumption coefficient and environmental coefficient that are less than or equal to the preset value;
[0128] The filtered power consumption coefficient and environmental coefficient are reconstructed according to the following formula:
[0129]
[0130] Among them, x n represents the nth environmental characteristic data or environmental characteristic data, Indicates the power consumption coefficient or environmental coefficient after filtering. represents the complex conjugate wavelet function.
[0131] In some implementations, the processor 301 is configured to execute, in the process of predicting the current power consumption data according to the current environmental data of the power consumption area based on the load prediction model when the performance test result of the load prediction model meets the preset performance condition:
[0132] Acquire a preset verification data set, wherein the verification data set includes preset environmental data and preset power consumption data;
[0133] Obtaining the target power consumption determined by the load forecasting model according to the preset environmental data;
[0134] When at least one of the mean square error, root mean square error, and mean absolute error between the target power consumption and the preset power consumption data is less than a preset threshold, the current power consumption data is predicted based on the current environmental data of the power consumption area based on the load prediction model.
[0135] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the terminal device described above can refer to the corresponding process in the aforementioned embodiment of the smart grid management method based on artificial intelligence, and will not be repeated here.
[0136] An embodiment of the present invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any step of the artificial intelligence-based smart grid management method provided in the description of the embodiment of the present invention.
[0137] The storage medium may be an internal storage unit of the terminal device described in the foregoing embodiment, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc., equipped on the terminal device.
[0138] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0139] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0140] The serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A smart grid management method based on artificial intelligence, It is characterized in that The method comprises: Obtain electricity consumption data collected by smart meters and environmental data of relevant electricity consumption areas; Aggregating the power consumption data and the environment data based on a preset scale to obtain power consumption time series data and environment time series data; Based on a preset analysis model, feature extraction is performed on the power consumption time series data and the environment time series data to obtain corresponding power consumption feature data and environment feature data; Training a preset load prediction model based on the power consumption characteristic data and the environmental characteristic data; When the performance test result of the load prediction model meets the preset performance condition, the current power consumption data is predicted based on the load prediction model according to the current environmental data of the power consumption area.
2. According to the smart grid management method based on artificial intelligence according to claim 1, It is characterized in that The aggregating the power consumption data and the environment data based on the preset scale to obtain power consumption time series data and environment time series data includes: Based on a preset time scale, respectively calculating the mathematical expectations of the power consumption data and the environmental data within a preset time period to obtain expected power consumption data and expected environmental data; Based on a preset spatial scale, the sum of the expected power consumption data and the mean of the expected environment data in a preset area are calculated respectively to obtain the power consumption time series data and the environment time series data.
3. According to the smart grid management method based on artificial intelligence according to claim 2, It is characterized in that The method of calculating the sum of the expected power consumption data and the mean of the expected environment data in a preset area based on a preset spatial scale to obtain the power consumption time series data and the environment time series data includes: According to the area identification of the preset area, it is determined that the area label corresponding to the power consumption time series data is any one of: a living area, an office area, and a commercial area.
4. The smart grid management method based on artificial intelligence according to claim 1, It is characterized in that The feature extraction of the power consumption time series data and the environment time series data based on the preset analysis model to obtain corresponding power consumption feature data and environment feature data includes: Performing wavelet transformation on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient; The power consumption coefficient and the environmental coefficient are filtered, and the filtered power consumption coefficient and environmental coefficient are reconstructed to obtain the power consumption characteristic data and the environmental characteristic data.
5. According to the artificial intelligence-based smart grid management method of claim 4, It is characterized in that The step of performing wavelet transformation on the power consumption time series data and the environment time series data to obtain a power consumption coefficient and an environment coefficient includes: The power consumption coefficient and the environmental coefficient are calculated according to the following formula: d j,k =∑x n ψ j,k (n) Among them, d j,k represents the power consumption coefficient or the environmental coefficient, x n represents the nth time series data in the power consumption time series data or the environment time series data, ψ j,k (n) represents the wavelet function, j and k represent the preset scale parameter and position parameter respectively.
6. The smart grid management method based on artificial intelligence according to claim 4, It is characterized in that The filtering of the power consumption coefficient and the environmental coefficient, and reconstructing the filtered power consumption coefficient and environmental coefficient to obtain the power consumption characteristic data and the environmental characteristic data, includes: Filter the power consumption coefficient and environmental coefficient that are less than or equal to the preset value; The filtered power consumption coefficient and environmental coefficient are reconstructed according to the following formula: Among them, x n represents the nth environmental characteristic data or environmental characteristic data, Indicates the power consumption coefficient or environmental coefficient after filtering. represents the complex conjugate wavelet function.
7. The smart grid management method based on artificial intelligence according to claim 1, It is characterized in that When the performance test result of the load prediction model meets the preset performance condition, predicting the current power consumption data according to the current environmental data of the power consumption area based on the load prediction model includes: Acquire a preset verification data set, wherein the verification data set includes preset environmental data and preset power consumption data; Obtaining the target power consumption determined by the load forecasting model according to the preset environmental data; When at least one of the mean square error, root mean square error, and mean absolute error between the target power consumption and the preset power consumption data is less than a preset threshold, the current power consumption data is predicted based on the current environmental data of the power consumption area based on the load prediction model.
8. A smart grid management device based on artificial intelligence, It is characterized in that The smart grid management device based on artificial intelligence includes: A data acquisition module is used to acquire the power consumption data collected by the smart meter and the environmental data of the corresponding power consumption area; A data aggregation module, used to aggregate the power consumption data and the environmental data based on a preset scale to obtain power consumption time series data and environmental time series data; A data analysis module, used to extract features from the power consumption time series data and the environment time series data based on a preset analysis model to obtain corresponding power consumption feature data and environment feature data; A model training module, used for training a preset load forecasting model based on the power consumption characteristic data and the environmental characteristic data; The data prediction module is used to predict the current power consumption data based on the load prediction model according to the current environmental data of the power consumption area when the performance test result of the load prediction model meets the preset performance conditions.
9. A terminal device, It is characterized in that The terminal device includes a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program and implement the artificial intelligence-based smart grid management method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer storage medium for computer storage, It is characterized in that The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the artificial intelligence-based smart grid management method described in any one of claims 1 to 7.
Citation Information
Cited By
Industrial load flexible control method and system based on AI drive
CN121069835A
