A power grid management method based on artificial intelligence

By using smart meter data processing and wavelet transform technology, electricity consumption and environmental characteristic data are extracted, and load prediction models are trained. This solves the problems of flexibility and accuracy of traditional models, and enables flexible and effective management of power grid load.

CN120410120BActive Publication Date: 2026-01-27刘英
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510639234.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2024-05-30
Filing Date
2025-05-19
Publication Date
2026-01-27
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

Traditional load forecasting models lack flexibility and have low forecasting accuracy, making them unable to adapt to rapid changes in electricity consumption patterns.

Method used

By acquiring electricity consumption data and environmental data collected by smart meters, aggregation and wavelet transform are performed to extract electricity consumption and environmental feature data, train a load prediction model, and make predictions under the condition that the performance test is met.

Benefits of technology

This improves the accuracy and flexibility of load forecasting models, enabling flexible and effective management of power grid load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120410120B_ABST
    Figure CN120410120B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a power grid management method based on artificial intelligence, and belongs to the technical field of artificial intelligence. The method comprises the following steps: acquiring power consumption data collected by a smart power meter and environmental data of a corresponding power consumption area; based on a preset scale, the power consumption data and the environmental data are aggregated respectively to obtain power consumption time series data and environmental time series data; 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; a preset load prediction model is trained based on the power consumption feature data and the environmental feature data; and in the case that the performance test result of the load prediction model meets a 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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence, and in particular to an artificial intelligence-based power grid management method. Background Technology

[0002] The power grid is a crucial component of the power system, responsible for transmitting electricity generated by power plants through transmission lines to various electricity-consuming areas, and then distributing this electricity to end users through the distribution network. To improve the rationality of electricity distribution among different electricity-consuming areas, load forecasting is typically required. This involves predicting electricity consumption in different areas based on weather conditions (temperature, humidity, precipitation, etc.) and historical electricity consumption data, thereby enabling better grid management and improving grid stability. However, with technological advancements and changing lifestyles, traditional load forecasting models may not be able to adapt to the rapid changes in load patterns. These dramatic shifts in electricity consumption patterns pose a challenge to traditional forecasting methods, necessitating a more flexible and effective load forecasting approach. Summary of the Invention

[0003] The main objective of this invention is to provide an artificial intelligence-based smart grid management system and related devices, aiming to solve the problems of lack of flexibility and low prediction accuracy in grid load forecasting methods in related technologies.

[0004] In a first aspect, embodiments of the present invention provide an artificial intelligence-based power grid management method, comprising:

[0005] Acquire electricity consumption data collected by smart meters and environmental data of the corresponding electricity consumption areas;

[0006] The electricity consumption data and the environmental data are aggregated based on a preset scale to obtain electricity consumption time-series data and environmental time-series data.

[0007] Wavelet transform is performed on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient.

[0008] The electricity consumption coefficient and the environmental coefficient are filtered, and the filtered electricity consumption coefficient and environmental coefficient are reconstructed to obtain the electricity consumption characteristic data and the environmental characteristic data.

[0009] The preset load prediction model is trained based on the electricity consumption characteristic data and environmental characteristic data.

[0010] If the performance test results of the load prediction model meet the preset performance conditions, the current electricity consumption data is predicted based on the current environmental data of the electricity consumption area according to the load prediction model.

[0011] This invention provides an artificial intelligence-based power grid management method. This application acquires electricity consumption data collected by smart meters and environmental data of the corresponding electricity application area simultaneously. This allows for the training of a load forecasting model based on the electricity consumption and environmental data, improving the accuracy of the load forecasting model. The electricity consumption data and environmental data are aggregated based on preset scales to obtain electricity consumption time-series data and environmental time-series data, reducing the randomness of the electricity consumption and environmental time-series data and reducing the computational load for subsequent feature extraction. Based on a preset analysis model, features are extracted from the electricity consumption and environmental time-series data to obtain corresponding electricity consumption feature data and environmental feature data. According to the method, electricity consumption time-series data and environmental time-series data are represented by electricity consumption characteristic data and environmental characteristic data to train the load forecasting model; the preset load forecasting model is trained based on the electricity consumption characteristic data and environmental characteristic data, and the realism and accuracy of the load forecasting model are improved by using historically collected electricity consumption characteristic data and environmental characteristic data; when the performance test results of the load forecasting model meet the preset performance conditions, the current electricity consumption data is predicted based on the current environmental data of the electricity consumption area. By using the trained load forecasting model to predict the current electricity consumption data based on the current environmental data, the load of the power grid can be predicted more flexibly and effectively, thereby realizing the management of power grid distribution and supply. Attached Figure Description

[0012] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 A flowchart illustrating an artificial intelligence-based power grid management method provided in an embodiment of the present invention;

[0014] 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;

[0015] Figure 3 This is a schematic block diagram of a terminal device provided in an embodiment of the present invention. Detailed Implementation

[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0017] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0018] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0019] This invention provides an artificial intelligence-based power grid management method. This AI-based power grid management method can be applied to terminal devices, such as tablets, laptops, desktop computers, personal digital assistants, and wearable devices. The terminal device can be a server or a server cluster.

[0020] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0021] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an artificial intelligence-based power grid management method provided in an embodiment of the present invention.

[0022] like Figure 1 As shown, the AI-based power grid management method includes steps S101 to S105.

[0023] Step S101: Obtain the electricity consumption data collected by the smart meter and the environmental data of the corresponding electricity consumption area.

[0024] For example, in the case of setting up smart meters for each household to monitor residents' electricity consumption in order to charge for electricity, this application embodiment collects the electricity consumption data obtained by smart meters to build a load prediction model, thereby avoiding the need to set up additional hardware equipment and reducing implementation costs.

[0025] For example, the electricity consumption data obtained through a smart meter includes the collection time, electricity consumption, and device identifier. The device identifier is used to identify the smart meter that collected the electricity consumption data, and the electricity consumption area to which the smart meter belongs can be determined based on the device identifier. The electricity consumption area is pre-divided according to actual needs. For example, the power supply area corresponding to each substation can be defined as an electricity consumption area, but it is not limited to this and is not restricted here.

[0026] For example, environmental data could be meteorological data such as temperature, humidity, and precipitation obtained from one or more weather stations located within the power consumption area. Specifically, the weather stations are pre-linked to their respective power consumption areas.

[0027] Step S102: Aggregate the electricity consumption data and the environmental data based on a preset scale to obtain electricity consumption time series data and environmental time series data.

[0028] For example, the amount of electricity consumption data obtained in step S102 is large, and it may contain certain user privacy information. In order to facilitate subsequent data processing and protect user electricity consumption privacy, it is necessary to aggregate multiple electricity consumption data with corresponding collection times within an electricity consumption area to obtain the electricity consumption time-series data for that area. Similarly, in order to ensure the synchronization between environmental data and electricity consumption data, environmental data is aggregated based on the same logic to obtain electricity consumption time-series data.

[0029] In some implementations, the aggregation of the electricity consumption data and the environmental data based on a preset scale to obtain electricity consumption time-series data and environmental time-series data includes:

[0030] Based on a preset time scale, the mathematical expectations corresponding to the electricity consumption data and the environmental data within a preset time period are calculated respectively to obtain the expected electricity consumption data and the expected environmental data.

[0031] Based on a preset spatial scale, the sum of the expected electricity consumption data and the mean of the expected environmental data within the preset area are calculated respectively to obtain the electricity consumption time series data and the environmental time series data.

[0032] For example, the electricity consumption data collected by smart meters usually has a relatively detailed time scale, such as collecting electricity consumption data every 15 minutes. In order to reduce the amount of data, a larger time scale can be set when aggregating the data, such as 2 hours.

[0033] For example, the expected data for each set of electricity consumption data and each set of environmental data within the preset time scale are calculated separately to obtain the expected electricity consumption data and the expected environmental data. Specifically, the average electricity consumption of each smart meter over 2 hours is calculated, as well as the average temperature, average humidity, and average precipitation collected by each weather station over 2 hours are calculated.

[0034] For example, to ensure that a set of electricity consumption time-series data and environmental time-series data can comprehensively reflect the electricity consumption and environmental conditions within a given electricity consumption area, the expected electricity consumption data and expected environmental data are aggregated according to a preset spatial scale. This preset spatial scale can correspond to the division of electricity consumption areas, where the electricity consumption area is the preset area; however, it is not limited to this and is not specified here. For instance, the average electricity consumption of each user in the electricity consumption area over a two-hour period is calculated to obtain a value in the electricity consumption time-series data; the average temperature, average humidity, and average precipitation in the electricity consumption area over a two-hour period are calculated to obtain a value in the environmental time-series data; and so on, resulting in a set of time-related electricity consumption time-series data and a set of time-related environmental time-series data.

[0035] In some implementations, the step of calculating the sum of the expected electricity consumption data and the mean of the expected environmental data within a preset spatial scale to obtain the electricity consumption time-series data and the environmental time-series data includes:

[0036] Based on the area identifier of the preset area, the area label corresponding to the electricity consumption time series data is determined to be any one of the following: residential area, office area, and commercial area.

[0037] For example, different types of electricity consumption areas have different characteristics. Residential areas typically experience peak electricity consumption after get off work hours, office areas during work hours, and commercial areas on holidays. To improve the flexibility of smart grid management, when aggregating electricity consumption data based on spatial scales, the types of preset areas can be classified according to their area identifiers. Specifically, the area identifier can be predetermined. The bytes representing the area type are pre-set in the area identifier based on the type of the preset area, thus determining whether the preset area is labeled as a residential area, office area, or commercial area based on the area identifier.

[0038] Step S103: Based on the preset analysis model, feature extraction is performed on the electricity consumption time series data and the environmental time series data to obtain the corresponding electricity consumption feature data and environmental feature data.

[0039] For example, by extracting features from electricity consumption time-series data and environmental time-series data, electricity consumption feature data and environmental feature data that can reflect electricity consumption and environmental conditions can be obtained.

[0040] In some implementations, the step of extracting features from the electricity consumption time-series data and environmental time-series data based on a preset analysis model to obtain corresponding electricity consumption feature data and environmental feature data includes:

[0041] Wavelet transform is performed on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient.

[0042] The electricity consumption coefficient and the environmental coefficient are filtered, and the filtered electricity consumption coefficient and environmental coefficient are reconstructed to obtain the electricity consumption characteristic data and the environmental characteristic data.

[0043] For example, since wavelet transform can analyze time-series data at different time and frequency scales, providing time-frequency localization information of the signal, it is suitable for analyzing non-stationary signals, as it can capture the nonlinear and non-stationary characteristics in load data. Therefore, wavelet transform can be applied to the analysis of electricity consumption characteristic data and environmental characteristic data in the embodiments of this application. Specifically, wavelet transform can filter out high-frequency noise in time-series data, retaining the main information.

[0044] Specifically, the electricity consumption time series data and the environmental time series data are respectively processed by wavelet transform to obtain the decomposed electricity consumption coefficient and environmental coefficient. The electricity consumption coefficient and environmental coefficient can reflect the frequency characteristics in the electricity consumption time series data and the environmental time series data, respectively. High-frequency noise has a higher electricity consumption coefficient or environmental coefficient. The electricity consumption coefficient and environmental coefficient greater than the preset coefficient are filtered out, and the filtered electricity consumption coefficient and environmental coefficient are reconstructed to obtain electricity consumption characteristic data and environmental characteristic data to reflect the electricity consumption situation and the environmental situation, respectively.

[0045] In some implementations, performing wavelet transform on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and environmental coefficient includes:

[0046] The electricity consumption factor and the environmental factor are calculated according to the following formulas:

[0047] d j,k =∑x n ψ j,k (n)

[0048] Where, d j,k x represents the electricity consumption factor or the environmental factor. n ψ represents the nth time series data in the electricity consumption time series data or the environmental time series data. j,k(n) represents the wavelet function, which can be the commonly used Haar wavelet function, Daubechies wavelet function, etc., and j and k represent the preset scale parameter and position parameter, respectively.

[0049] For example, wavelet transform is performed on the electricity consumption time series data and the environmental time series data respectively, and the nth data x in the electricity consumption time series data or the environmental time series data is transformed. n Substituting into the wavelet transform formula, we obtain the electricity consumption coefficient corresponding to the electricity 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 position parameter k represent the scale and position in the wavelet transform, respectively. The scale parameter j determines the scaling degree of the wavelet function and is related to the frequency of the wavelet. In the Discrete Wavelet Transform (DWT) of this application embodiment, the scale parameter j is usually proportional to the center frequency of the wavelet function. A smaller j value corresponds to a higher frequency wavelet, used to capture the high-frequency components of the signal; a larger j value corresponds to a lower frequency wavelet, 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. In the Discrete Wavelet Transform, k usually represents the translation amount of the wavelet function in the time or spatial domain. By changing k, we can analyze the signal at different positions to capture local features.

[0050] For example, multiple wavelet coefficient matrices (j, k) can be pre-set, wavelet transforms can be performed at different scales and locations, and the most suitable j and k values ​​can be selected.

[0051] In some implementations, filtering the electricity consumption coefficient and the environmental coefficient, and reconstructing the filtered electricity consumption coefficient and environmental coefficient to obtain the electricity consumption characteristic data and the environmental characteristic data, includes:

[0052] Filter out power consumption and environmental factors that exceed preset values;

[0053] The filtered electricity consumption coefficient and environmental coefficient are reconstructed according to the following formula:

[0054]

[0055] Where, x' n This represents the nth electricity consumption characteristic data or environmental characteristic data. This indicates the power consumption or environmental factor after filtration. This represents the complex conjugate wavelet function.

[0056] For example, high-frequency components in electricity consumption time series data and environmental time series data can be filtered based on electricity consumption coefficients and environmental coefficients. Specifically, a preset value T can be set in advance to filter out electricity consumption coefficients and environmental coefficients greater than T, retain electricity consumption coefficients and environmental coefficients less than T, and then reconstruct the filtered electricity consumption coefficients and environmental coefficients.

[0057] For example, after extracting useful features and removing noise, a clean load sequence can be reconstructed through the inverse process of wavelet transform, which can then be used as input to a load prediction model. This is achieved through the wavelet function ψ. j,k Complex conjugate wavelet function of (n) The power consumption or environmental factor after filtration Reconstruction is performed, where the wavelet function ψ j,k (n) and complex conjugate wavelet function They have the same scale and location parameters.

[0058] Step S104: Train the preset load prediction model based on the electricity consumption characteristic data and environmental characteristic data.

[0059] For example, the load forecasting model is trained using wavelet transform-processed electricity consumption characteristic data and environmental characteristic data. The load forecasting model can be determined based on algorithms from related technologies, such as regression analysis algorithms, time series analysis algorithms, neural network algorithms, etc., and is not limited here. Taking regression analysis as an example, the method of using wavelet transform combined with regression analysis can be expressed as: Where W(x) is the wavelet-transformed load sequence, and f is the regression function. This is the predicted load value.

[0060] Step S105: If the performance test results of the load prediction model meet the preset performance conditions, predict the current electricity consumption data based on the current environmental data of the electricity consumption area according to the load prediction model.

[0061] For example, to ensure the accuracy of load forecasting, a validation dataset can be pre-set to test the performance of the load forecasting model. If the performance test results of the load forecasting model meet the preset performance conditions, the load forecasting model can then be used to forecast electricity consumption data.

[0062] In some implementations, when the performance test results of the load forecasting model meet preset performance conditions, predicting current electricity consumption data based on the current environmental data of the electricity consumption area using the load forecasting model includes:

[0063] Obtain a preset verification dataset, which includes preset environmental data and preset electricity consumption data;

[0064] Obtain the target electricity consumption determined by the load forecasting model based on the preset environmental data;

[0065] If at least one of the mean square error, root mean square error, and mean absolute error between the target electricity consumption and the preset electricity consumption data is less than a preset threshold, the current electricity consumption data is predicted based on the load prediction model according to the current environmental data of the electricity consumption area.

[0066] For example, the metrics used to evaluate a load forecasting model can be one or more of the mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE).

[0067] Taking the mean square error as an example, the mean square error of the load forecasting model is calculated using the following formula:

[0068]

[0069] Where MSE represents the mean squared error of the load forecasting model, n is the number of samples in the validation dataset, and Y i Y represents the preset electricity consumption data. ' i This represents the target electricity consumption predicted by the load forecasting model. The calculation methods for the root mean square error and mean absolute error can be found in relevant technical documentation and will not be elaborated upon here.

[0070] For example, if the mean square error, root mean square error, and mean absolute error are small, such as less than a preset threshold, it means that the accuracy of the load forecasting model meets the requirements. The load forecasting model can be used to predict the current electricity consumption data based on the current environmental data of the electricity consumption area. The preset threshold can be set separately for the mean square error, root mean square error, and mean absolute error.

[0071] For example, load forecasting models can be trained separately for residential areas, office areas, and commercial areas based on regional labels to improve the targeting and accuracy of smart grid management.

[0072] The artificial intelligence-based power grid management method provided in this invention acquires electricity consumption data collected by smart meters and environmental data of the corresponding electricity application area. Simultaneously, it acquires electricity consumption data and environmental data within the corresponding electricity application area to train a load forecasting model, thereby improving the accuracy of the load forecasting model. The method aggregates the electricity consumption data and environmental data based on preset scales to obtain electricity consumption time-series data and environmental time-series data, reducing the randomness of these data and minimizing the computational load for subsequent feature extraction. Finally, based on a preset analysis model, it extracts features from the electricity consumption time-series data and environmental time-series data to obtain corresponding electricity consumption feature data and environmental feature data. Electricity consumption characteristic data and environmental characteristic data are used to represent electricity consumption time series data and environmental time series data to train the load forecasting model. Based on the electricity consumption characteristic data and environmental characteristic data, a preset load forecasting model is trained, improving the realism and accuracy of the load forecasting model by using historically collected electricity consumption characteristic data and environmental characteristic data. When the performance test results of the load forecasting model meet preset performance conditions, the current electricity consumption data is predicted based on the current environmental data of the electricity consumption area. By using the trained load forecasting model to predict the current electricity consumption data based on the current environmental data, the load of the power grid can be predicted more flexibly and effectively, enabling the management of power grid distribution and supply.

[0073] Please see Figure 2 , Figure 2 This application provides an AI-based smart grid management device 200, which includes a data acquisition module 201 for acquiring electricity consumption data collected by smart meters and environmental data of the corresponding electricity consumption area; a data aggregation module 202 for aggregating the electricity consumption data and the environmental data according to a preset scale to obtain electricity consumption time-series data and environmental time-series data; a data analysis module 203 for extracting features from the electricity consumption time-series data and the environmental time-series data based on a preset analysis model to obtain corresponding electricity consumption feature data and environmental feature data; a model training module 204 for training a preset load prediction model based on the electricity consumption feature data and environmental feature data; and a data prediction module 205 for predicting current electricity consumption data based on the current environmental data of the electricity consumption area, provided that the performance test results of the load prediction model meet preset performance conditions.

[0074] In some implementations, during the process of aggregating the electricity consumption data and the environmental data based on a preset scale to obtain electricity consumption time-series data and environmental time-series data, the data aggregation module 202 processes:

[0075] Based on a preset time scale, the mathematical expectations corresponding to the electricity consumption data and the environmental data within a preset time period are calculated respectively to obtain the expected electricity consumption data and the expected environmental data.

[0076] Based on a preset spatial scale, the sum of the expected electricity consumption data and the mean of the expected environmental data within the preset area are calculated respectively to obtain the electricity consumption time series data and the environmental time series data.

[0077] In some implementations, during the process of calculating the sum of the expected electricity consumption data and the mean of the expected environmental data within a preset area based on a preset spatial scale to obtain the electricity consumption time-series data and the environmental time-series data, the data aggregation module 202 processes:

[0078] Based on the area identifier of the preset area, the area label corresponding to the electricity consumption time series data is determined to be any one of the following: residential area, office area, and commercial area.

[0079] In some implementations, during the process of extracting features from the electricity consumption time-series data and environmental time-series data based on a preset analysis model to obtain corresponding electricity consumption feature data and environmental feature data, the data analysis module 203 processes:

[0080] Wavelet transform is performed on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient.

[0081] The electricity consumption coefficient and the environmental coefficient are filtered, and the filtered electricity consumption coefficient and environmental coefficient are reconstructed to obtain the electricity consumption characteristic data and the environmental characteristic data.

[0082] In some implementations, the data analysis module 203 processes the following during the process of performing wavelet transform on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient:

[0083] The electricity consumption factor and the environmental factor are calculated according to the following formulas:

[0084] d j,k =∑x n ψ j,k (n)

[0085] Where, d j,k x represents the electricity consumption factor or the environmental factor. n ψ represents the nth time series data in the electricity consumption time series data or the environmental time series data. j,k (n) represents the wavelet function, and j and k represent the preset scale parameter and position parameter, respectively.

[0086] In some implementations, the data analysis module 203 processes the following during the process of filtering the electricity consumption coefficient and the environmental coefficient, and reconstructing the filtered electricity consumption coefficient and environmental coefficient to obtain the electricity consumption characteristic data and the environmental characteristic data:

[0087] Filter out power consumption and environmental factors that exceed preset values;

[0088] The filtered electricity consumption coefficient and environmental coefficient are reconstructed according to the following formula:

[0089]

[0090] Where, x' n This represents the nth electricity consumption characteristic data or environmental characteristic data. This indicates the power consumption or environmental factor after filtration. This represents the complex conjugate wavelet function.

[0091] In some implementations, the data prediction module 205, when the performance test results of the load prediction model meet preset performance conditions, performs the following processing during the process of predicting current electricity consumption data based on the current environmental data of the electricity consumption area using the load prediction model:

[0092] Obtain a preset verification dataset, which includes preset environmental data and preset electricity consumption data;

[0093] Obtain the target electricity consumption determined by the load forecasting model based on the preset environmental data;

[0094] If at least one of the mean square error, root mean square error, and mean absolute error between the target electricity consumption and the preset electricity consumption data is less than a preset threshold, the current electricity consumption data is predicted based on the load prediction model according to the current environmental data of the electricity consumption area.

[0095] Please see Figure 3 , Figure 3 This is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention.

[0096] like Figure 3 As shown, the terminal device 300 includes a processor 301 and a memory 302, which are connected by a bus 303, such as an I2C (Inter-integrated Circuit) bus.

[0097] Specifically, processor 301 provides computing and control capabilities to support the operation of the entire terminal device. Processor 301 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0098] Specifically, the memory 302 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.

[0099] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the terminal device to which the embodiments of the present invention are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0100] The processor is used to run a computer program stored in a memory, and when executing the computer program, implements any of the artificial intelligence-based power grid management methods provided in the embodiments of the present invention.

[0101] In one embodiment, the processor is configured to run a computer program stored in memory, and when executing the computer program, perform the following steps:

[0102] Acquire electricity consumption data collected by smart meters and environmental data of the corresponding electricity consumption areas;

[0103] The electricity consumption data and the environmental data are aggregated based on a preset scale to obtain electricity consumption time-series data and environmental time-series data.

[0104] Based on a preset analysis model, feature extraction is performed on the electricity consumption time-series data and the environmental time-series data to obtain corresponding electricity consumption feature data and environmental feature data.

[0105] The preset load prediction model is trained based on the electricity consumption characteristic data and environmental characteristic data.

[0106] If the performance test results of the load prediction model meet the preset performance conditions, the current electricity consumption data is predicted based on the current environmental data of the electricity consumption area according to the load prediction model.

[0107] In some implementations, during the process of aggregating the electricity consumption data and the environmental data based on a preset scale to obtain electricity consumption time-series data and environmental time-series data, the processor 301 performs the following:

[0108] Based on a preset time scale, the mathematical expectations corresponding to the electricity consumption data and the environmental data within a preset time period are calculated respectively to obtain the expected electricity consumption data and the expected environmental data.

[0109] Based on a preset spatial scale, the sum of the expected electricity consumption data and the mean of the expected environmental data within the preset area are calculated respectively to obtain the electricity consumption time series data and the environmental time series data.

[0110] In some implementations, during the process of calculating the sum of the expected electricity consumption data and the mean of the expected environmental data within a preset area based on a preset spatial scale to obtain the electricity consumption time-series data and the environmental time-series data, the processor 301 performs the following:

[0111] Based on the area identifier of the preset area, the area label corresponding to the electricity consumption time series data is determined to be any one of the following: residential area, office area, and commercial area.

[0112] In some implementations, during the process of extracting features from the electricity consumption time-series data and environmental time-series data based on a preset analysis model to obtain corresponding electricity consumption feature data and environmental feature data, the processor 301 performs the following:

[0113] Wavelet transform is performed on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient.

[0114] The electricity consumption coefficient and the environmental coefficient are filtered, and the filtered electricity consumption coefficient and environmental coefficient are reconstructed to obtain the electricity consumption characteristic data and the environmental characteristic data.

[0115] In some embodiments, during the process of performing wavelet transform on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and environmental coefficient, the processor 301 performs the following:

[0116] The electricity consumption factor and the environmental factor are calculated according to the following formulas:

[0117] d j,k =∑x n ψ j,k (n)

[0118] Where, d j,k x represents the electricity consumption factor or the environmental factor. n ψ represents the nth time series data in the electricity consumption time series data or the environmental time series data. j,k (n) represents the wavelet function, and j and k represent the preset scale parameter and position parameter, respectively.

[0119] In some embodiments, during the process of filtering the electricity consumption coefficient and the environmental coefficient, and reconstructing the filtered electricity consumption coefficient and environmental coefficient to obtain the electricity consumption characteristic data and the environmental characteristic data, the processor 301 performs the following:

[0120] Filter out power consumption and environmental factors that exceed preset values;

[0121] The filtered electricity consumption coefficient and environmental coefficient are reconstructed according to the following formula:

[0122]

[0123] Where, x' n This represents the nth electricity consumption characteristic data or environmental characteristic data. This indicates the power consumption or environmental factor after filtration. This represents the complex conjugate wavelet function.

[0124] In some implementations, when the performance test results of the load prediction model meet preset performance conditions, the processor 301 performs the following actions during the process of predicting current electricity consumption data based on the current environmental data of the electricity consumption area using the load prediction model:

[0125] Obtain a preset verification dataset, which includes preset environmental data and preset electricity consumption data;

[0126] Obtain the target electricity consumption determined by the load forecasting model based on the preset environmental data;

[0127] If at least one of the mean square error, root mean square error, and mean absolute error between the target electricity consumption and the preset electricity consumption data is less than a preset threshold, the current electricity consumption data is predicted based on the load prediction model according to the current environmental data of the electricity consumption area.

[0128] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the terminal device described above can be referred to the corresponding process in the aforementioned embodiment of the artificial intelligence-based power grid management method, and will not be repeated here.

[0129] This invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the steps of any of the artificial intelligence-based power grid management methods provided in the specification of this invention.

[0130] The storage medium can be an internal storage unit of the terminal device described in the foregoing embodiments, such as the hard drive or memory of the terminal device. Alternatively, the storage medium can be an external storage device of the terminal device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal device.

[0131] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between 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 collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media 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 technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0132] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0133] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A power grid management method based on artificial intelligence, characterized in that, The method includes: Step S101: Obtain the electricity consumption data collected by the smart meter and the environmental data of the corresponding electricity application area; Step S102: Aggregate the electricity consumption data and the environmental data based on a preset scale to obtain electricity consumption time series data and environmental time series data; Specifically, this includes calculating the mathematical expectations corresponding to the electricity consumption data and the environmental data within a preset time period based on a preset time scale, so as to obtain the expected electricity consumption data and the expected environmental data. Based on a preset spatial scale, the sum of the expected electricity consumption data and the mean of the expected environmental data within a preset area are calculated respectively to obtain the electricity consumption time series data and the environmental time series data. Based on the area identifier of the preset area, the area label corresponding to the electricity consumption time series data is determined to be any one of the following: residential area, office area, and commercial area; Step S103: Based on the preset analysis model, perform feature extraction on the electricity consumption time series data and the environmental time series data to obtain the corresponding electricity consumption feature data and environmental feature data; Specifically, this includes performing wavelet transform on the electricity consumption time-series data and the environmental time-series data to obtain the electricity consumption coefficient and the environmental coefficient: The electricity consumption factor and the environmental factor are calculated according to the following formulas: d j,k =∑x n ψ j,k (n) Where, d j,k x represents the electricity consumption factor or the environmental factor. n ψ represents the nth time series data in the electricity consumption time series data or the environmental time series data. j,k (n) represents the wavelet function, and j and k represent the preset scale parameter and position parameter, respectively; The scale parameter j is proportional to the center frequency of the wavelet function. A smaller j value corresponds to a higher frequency wavelet, used to capture the high-frequency components of the signal; a larger j value corresponds to a lower frequency wavelet, used to capture the low-frequency components or trends of the signal. The position parameter k represents the translation of the wavelet function in the time or spatial domain. By changing k at different positions, the signal can be analyzed to capture local features. Multiple wavelet coefficient matrices (j, k) can be preset to perform wavelet transforms at different scales and positions. Specifically, this includes filtering the electricity consumption coefficient and the environmental coefficient, and reconstructing the filtered electricity consumption coefficient and environmental coefficient to obtain the electricity consumption characteristic data and the environmental characteristic data: Filter out power consumption and environmental factors that exceed preset values; The filtered electricity consumption coefficient and environmental coefficient are reconstructed according to the following formula: Where, x' n This represents the nth electricity consumption characteristic data or environmental characteristic data. This indicates the power consumption or environmental factor after filtration. Represents the complex conjugate wavelet function; Step S104: Train the preset load prediction model based on the electricity consumption characteristic data and environmental characteristic data; Step S105: If the performance test results of the load prediction model meet the preset performance conditions, predict the current electricity consumption data based on the current environmental data of the electricity consumption area according to the load prediction model. Specifically, this includes obtaining a preset verification dataset, which includes preset environmental data and preset electricity consumption data; Obtain the target electricity consumption determined by the load forecasting model based on the preset environmental data; If at least one of the mean square error, root mean square error, and mean absolute error between the target electricity consumption and the preset electricity consumption data is less than a preset threshold, the current electricity consumption data is predicted based on the load prediction model according to the current environmental data of the electricity consumption area.

Citation Information

Patent Citations

  • Electric power information management method and system based on data fusion

    CN116151509A