A power system trigger communication method and device based on a prediction model

By using a power system communication triggering method based on a prediction model, and leveraging gradient boosting decision tree algorithm and similarity calculation, communication is triggered only when the load changes. This solves the problem of inaccurate communication triggering in existing technologies, and achieves resource optimization and improved system stability.

CN119363601BActive Publication Date: 2025-10-21GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411460558.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-10-21
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

Existing technologies cannot trigger communication only when the state of the power system changes, resulting in unnecessary data transmission and resource consumption.

Method used

By using a prediction model-based approach, a power system prediction model is trained using the gradient boosting decision tree algorithm. The similarity of load sequences is calculated by combining Euclidean distance, dynamic time warping, and entropy weighting. Communication is triggered only when the predicted sequence differs significantly from the actual sequence, and gaps in the actual sequence are filled with the previous complete sequence.

Benefits of technology

It optimized the use of communication resources, enhanced the power system's ability to respond to emergencies, ensured the continuity and integrity of data, and improved the stability and decision-making accuracy of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363601B_ABST
    Figure CN119363601B_ABST
Patent Text Reader

Abstract

The application discloses a power system triggered communication method and device based on a prediction model. The application predicts the load by obtaining historical and actual load data and using a pre-trained power system prediction model. If the similarity between the prediction and the actual data is lower than a threshold, the actual data is transmitted; otherwise, the data of the previous period is sent to fill the vacancy of the receiving end. The method improves the efficiency and reliability of power system communication to solve the problem that the system communication cannot be triggered only when the state of the power system changes in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system trigger communication, and in particular to a power system trigger communication method and device based on a prediction model. Background Art

[0002] The power system plays an essential role in maintaining national economic stability, social order, and even national security. However, contemporary power systems face threats from multiple sources, particularly limited communication conditions following unconventional physical attacks, posing significant challenges to their safe and stable operation. Therefore, research is urgently needed on event-triggered communication strategies and interpolation technologies for power systems. These strategies can communicate only when critical events or state changes occur, transmitting essential information and minimizing real-time data transmission and bandwidth requirements.

[0003] However, existing research on power system dynamic sensing methods under limited communication conditions mostly focuses on data compression, reducing the number of transmitted bits. These methods only consider reducing the amount of information transmitted in each round of communication, while the number of communications remains unchanged. This makes it impossible for existing technologies to trigger power system communication only when the state changes. Summary of the Invention

[0004] The present invention provides a method and device for triggering communication of an electric power system based on a prediction model, so as to solve the problem in the prior art that system communication cannot be triggered only when the state of the electric power system changes.

[0005] In a first aspect, the present application provides a method for triggering communication in a power system based on a prediction model, comprising:

[0006] Acquire first historical load data, a first actual load sequence, and a second actual load sequence; wherein the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is a sequence of the second actual load sequence in the previous time period;

[0007] Inputting the first historical load data into a pre-trained power system prediction model so that the power system prediction model outputs a load prediction sequence;

[0008] If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication and sending the second actual load sequence to the receiving end;

[0009] Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

[0010] This application first trains the power system prediction model by using historical load data to ensure the model's ability to accurately predict changes in power load. Then, by comparing the similarity between the predicted sequence and the actual sequence, communication is triggered only when the two differ greatly, effectively reducing unnecessary data transmission and reducing the consumption of communication resources. In addition, when there are gaps between the actual sequences, the gaps are filled with the previous complete sequence to ensure the continuity and integrity of the data, thereby making the power system operation more stable and the decision-making more accurate. This application not only optimizes the use of communication resources, but also enhances the power system's ability to respond to emergencies, so as to solve the problem in the prior art that system communication cannot be triggered only when the power system state changes.

[0011] As a preferred embodiment of the first aspect, the pre-trained neural network is specifically:

[0012] Obtaining second historical load data;

[0013] Inputting the second historical load data into an initial power system prediction model for training, and optimizing the initial power system prediction model using a gradient boosting algorithm until the value of the loss function no longer changes, stopping the training, and obtaining a trained power system prediction model;

[0014] The initial power system prediction model is constructed based on the GBDT algorithm. The initial power system prediction model includes multiple decision trees. During the training process, multiple decision trees are continuously traversed and the prediction results of each decision tree are accumulated.

[0015] In this preferred embodiment, the present application achieves high-precision prediction of power load by using a power system prediction model constructed based on the gradient boosting decision tree (GBDT) algorithm and optimizing it in combination with the gradient boosting algorithm. The initial model uses multiple decision trees to learn historical load data. By continuously traversing these decision trees and accumulating their prediction results, the model can capture complex patterns and trends in the load data. Furthermore, the initial model is finely optimized by the gradient boosting algorithm. The model gradually reduces the value of the loss function during the training process until it reaches a stable state, thereby ensuring the generalization ability and prediction accuracy of the model. This method not only improves the accuracy of power system load prediction, but also enhances the model's adaptability to changes in historical load data, so that in the actual operation of the power system, future load changes can be more effectively predicted, thereby optimizing the allocation of power resources and the operation strategy of the power grid, and improving the operation efficiency and reliability of the power grid.

[0016] As a preferred embodiment of the first aspect, if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows:

[0017] According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated;

[0018] According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated;

[0019] Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance;

[0020] The calculation formula of the similarity distance is:

[0021] D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ),

[0022] Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D ,Y D ) corresponding weight; X D is the second actual load sequence; Y D is the load forecast sequence, D1(X D ,Y D ) is the Euclidean distance, D2(X D , Y D ) is the first DTW distance, D3(X D , Y D ) is the second DTW distance;

[0023] If the similarity distance is greater than a preset threshold, power system communication is triggered.

[0024] In this preferred embodiment, the present application calculates the similarity distance between the load forecast sequence and the second actual load sequence by comprehensively considering the Euclidean distance, the first DTW distance and the second DTW distance. This comprehensive evaluation method can more comprehensively reflect the similarity between the two sequences. The entropy weight method is used to determine the weights of each distance, which ensures the objectivity and scientific nature of the weight distribution, thereby making the similarity evaluation more accurate. When the calculation result of the similarity distance is greater than the preset threshold, it indicates that the predicted sequence is very close to the actual sequence. At this time, the communication mechanism is triggered and the second actual load sequence is sent to the receiving end. The preset threshold is set between zero and one, providing a flexible judgment standard, making the communication trigger more reasonable. This method not only improves communication efficiency and reduces unnecessary data transmission, but also ensures that communication is only carried out when there is a large deviation between the prediction and the actual through accurate similarity evaluation, thereby optimizing resource utilization and enhancing the power system's ability to respond to changes and overall stability.

[0025] As a preferred embodiment of the first aspect, the Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0026] According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated;

[0027] The formula for the Euclidean distance is

[0028]

[0029] Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D , Y D ) is the Euclidean distance.

[0030] In this preferred embodiment, the present application can accurately quantify the deviation of the corresponding sampling points between the load forecast sequence and the second actual load sequence by adopting the Euclidean distance calculation method. The Euclidean distance formula uses the square root of the sum of the squares of the differences between the load forecast value and the actual load value at each moment to represent the distance, thereby evaluating the numerical difference between the two sequences. Specifically, for each time point t, the absolute value of the difference between the load forecast value and the second actual load value is calculated, and then these differences are squared, summed and squared to obtain the Euclidean distance of the entire time series. This calculation method takes into account the differences of all sampling points in the time series and can fully reflect the overall deviation between the forecast sequence and the actual sequence. When the Euclidean distance is small, it indicates that the prediction results of the prediction model are more consistent with the actual load changes; when the Euclidean distance is large, it indicates that there is a large deviation between the prediction results and the actual values. The evaluation mechanism of the present application helps to judge the quality of the prediction and provide a scientific basis for the operation and load management of the power system.

[0031] As a preferred embodiment of the first aspect, the first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0032] The first DTW distance is calculated based on the objective function, the load forecast sequence, and the second actual load sequence;

[0033] The objective function is obtained by determining the movement paths of the dynamic points and ensuring that the cumulative distance of the movement paths is the shortest.

[0034] The formula of the objective function is

[0035]

[0036] Where, is the moving path distance of the e-th dynamic point; D2(X D , Y D ) is the load forecast sequence Y D With the second actual load sequence X D The first DTW distance between them.

[0037] In this preferred embodiment, the first DTW distance mentioned in the present application is realized by the core mechanism of the Dynamic Time Warping (DTW) algorithm, which dynamically adjusts the moving paths of each dynamic point by optimizing an objective function to ensure that the cumulative distance of these paths is the shortest. Specifically, the objective function calculates all possible matching paths between the load forecast sequence and the second actual load sequence, and selects the path that minimizes the sum of the path distances. In this process, the moving path distance of each dynamic point is accumulated to form the first DTW distance, which reflects the overall similarity of the two sequences under the best matching condition. In this way, even if the two sequences are stretched or misaligned in time, the DTW algorithm can effectively evaluate their similarity, thereby providing a reliable measure for the accuracy of power system load forecasting.

[0038] As a preferred embodiment of the first aspect, the second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0039] According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated;

[0040] Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system;

[0041] A second DTW distance is calculated according to the first DTW distance, the first load prediction sequence, and the third actual load sequence.

[0042] In this preferred embodiment, the present application generates a first load forecast sequence and a third actual load sequence by applying the differential method to process the original load forecast sequence and the second actual load sequence. These two new sequences can more sensitively map the load fluctuations of the power system. Then, using these new sequences, combined with the calculation method of the first DTW distance, the second DTW distance is calculated. This process involves evaluating the fluctuation pattern of the time series and dynamically time-warping it with the forecast sequence to find the best time alignment method to obtain the second DTW distance. This calculation method can more accurately reflect the local changes and fluctuations in the load of the power system, enhance the adaptability and responsiveness of the forecast model to dynamic changes in the system, and provide more accurate decision support for the stable operation and load management of the power system.

[0043] In a second aspect, the present application provides a power system trigger communication device based on a prediction model. The power system trigger communication device based on a prediction model includes an acquisition module, an input and output module, and a trigger module;

[0044] The acquisition module is used to acquire first historical load data, a first actual load sequence, and a second actual load sequence; wherein the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is the sequence of the second actual load sequence in the previous time period;

[0045] The input-output module is used to input the first historical load data into a pre-trained power system prediction model so that the power system prediction model outputs a load prediction sequence;

[0046] The trigger module is configured to trigger power system communication and send the second actual load sequence to a receiving end if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold;

[0047] Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

[0048] This device uses two modules to divide the work and coordinate work to better trigger power system communication when the state changes. This application first trains the power system prediction model by using historical load data to ensure the model's accurate prediction ability of power load changes. Then, by comparing the similarity between the predicted sequence and the actual sequence, communication is triggered only when the two differ greatly, effectively reducing unnecessary data transmission and reducing the consumption of communication resources. In addition, when there are gaps between the actual sequences, the gaps are filled with the previous complete sequence to ensure the continuity and integrity of the data, thereby making the power system operation more stable and the decision-making more accurate. This application not only optimizes the use of communication resources, but also enhances the power system's ability to respond to emergencies, so as to solve the problem in the prior art that system communication cannot be triggered only when the power system state changes.

[0049] As a preferred embodiment of the second aspect, the pre-trained neural network is specifically:

[0050] Obtaining second historical load data;

[0051] Inputting the second historical load data into an initial power system prediction model for training, and optimizing the initial power system prediction model using a gradient boosting algorithm until the value of the loss function no longer changes, stopping the training, and obtaining a trained power system prediction model;

[0052] The initial power system prediction model is constructed based on the GBDT algorithm. The initial power system prediction model includes multiple decision trees. During the training process, multiple decision trees are continuously traversed and the prediction results of each decision tree are accumulated.

[0053] In this preferred embodiment, the present application achieves high-precision prediction of power load by using a power system prediction model constructed based on the gradient boosting decision tree (GBDT) algorithm and optimizing it in combination with the gradient boosting algorithm. The initial model uses multiple decision trees to learn historical load data. By continuously traversing these decision trees and accumulating their prediction results, the model can capture complex patterns and trends in the load data. Furthermore, the initial model is finely optimized by the gradient boosting algorithm. The model gradually reduces the value of the loss function during the training process until it reaches a stable state, thereby ensuring the generalization ability and prediction accuracy of the model. This method not only improves the accuracy of power system load prediction, but also enhances the model's adaptability to changes in historical load data, so that in the actual operation of the power system, future load changes can be more effectively predicted, thereby optimizing the allocation of power resources and the operation strategy of the power grid, and improving the operation efficiency and reliability of the power grid.

[0054] As a preferred embodiment of the second aspect, if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows:

[0055] According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated;

[0056] According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated;

[0057] Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance;

[0058] The calculation formula of the similarity distance is:

[0059] D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ),

[0060] Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D , Y D ) corresponding weight; X D is the second actual load sequence; YD is the load forecast sequence, D1(X D , Y D ) is the Euclidean distance, D2(X D , Y D ) is the first DTW distance, D3(X D , Y D ) is the second DTW distance;

[0061] If the similarity distance is greater than a preset threshold, power system communication is triggered.

[0062] In this preferred embodiment, the present application calculates the similarity distance between the load forecast sequence and the second actual load sequence by comprehensively considering the Euclidean distance, the first DTW distance and the second DTW distance. This comprehensive evaluation method can more comprehensively reflect the similarity between the two sequences. The entropy weight method is used to determine the weights of each distance, which ensures the objectivity and scientific nature of the weight distribution, thereby making the similarity evaluation more accurate. When the calculation result of the similarity distance is greater than the preset threshold, it indicates that the predicted sequence is very close to the actual sequence. At this time, the communication mechanism is triggered and the second actual load sequence is sent to the receiving end. The preset threshold is set between zero and one, providing a flexible judgment standard, making the communication trigger more reasonable. This method not only improves communication efficiency and reduces unnecessary data transmission, but also ensures that communication is only carried out when there is a large deviation between the prediction and the actual through accurate similarity evaluation, thereby optimizing resource utilization and enhancing the power system's ability to respond to changes and overall stability.

[0063] As a preferred embodiment of the second aspect, the Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0064] According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated;

[0065] The formula for the Euclidean distance is

[0066]

[0067] Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D , Y D ) is the Euclidean distance.

[0068] In this preferred embodiment, the present application can accurately quantify the deviation of the corresponding sampling points between the load forecast sequence and the second actual load sequence by adopting the Euclidean distance calculation method. The Euclidean distance formula uses the square root of the sum of the squares of the differences between the load forecast value and the actual load value at each moment to represent the distance, thereby evaluating the numerical difference between the two sequences. Specifically, for each time point t, the absolute value of the difference between the load forecast value and the second actual load value is calculated, and then these differences are squared, summed and squared to obtain the Euclidean distance of the entire time series. This calculation method takes into account the differences of all sampling points in the time series and can fully reflect the overall deviation between the forecast sequence and the actual sequence. When the Euclidean distance is small, it indicates that the prediction results of the prediction model are more consistent with the actual load changes; when the Euclidean distance is large, it indicates that there is a large deviation between the prediction results and the actual values. The evaluation mechanism of the present application helps to judge the quality of the prediction and provide a scientific basis for the operation and load management of the power system.

[0069] As a preferred embodiment of the second aspect, the first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0070] The first DTW distance is calculated based on the objective function, the load forecast sequence, and the second actual load sequence;

[0071] The objective function is obtained by determining the movement paths of the dynamic points and ensuring that the cumulative distance of the movement paths is the shortest.

[0072] The formula of the objective function is

[0073]

[0074] Where, is the moving path distance of the e-th dynamic point; D2(X D , Y D ) is the load forecast sequence Y D With the second actual load sequence X D The first DTW distance between them.

[0075] In this preferred embodiment, the first DTW distance mentioned in the present application is realized by the core mechanism of the Dynamic Time Warping (DTW) algorithm, which dynamically adjusts the moving paths of each dynamic point by optimizing an objective function to ensure that the cumulative distance of these paths is the shortest. Specifically, the objective function calculates all possible matching paths between the load forecast sequence and the second actual load sequence, and selects the path that minimizes the sum of the path distances. In this process, the moving path distance of each dynamic point is accumulated to form the first DTW distance, which reflects the overall similarity of the two sequences under the best matching condition. In this way, even if the two sequences are stretched or misaligned in time, the DTW algorithm can effectively evaluate their similarity, thereby providing a reliable measure for the accuracy of power system load forecasting.

[0076] As a preferred embodiment of the second aspect, the second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0077] According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated;

[0078] Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system;

[0079] A second DTW distance is calculated according to the first DTW distance, the first load prediction sequence, and the third actual load sequence.

[0080] In this preferred embodiment, the present application generates a first load forecast sequence and a third actual load sequence by applying the differential method to process the original load forecast sequence and the second actual load sequence. These two new sequences can more sensitively map the load fluctuations of the power system. Then, using these new sequences, combined with the calculation method of the first DTW distance, the second DTW distance is calculated. This process involves evaluating the fluctuation pattern of the time series and dynamically time-warping it with the forecast sequence to find the best time alignment method to obtain the second DTW distance. This calculation method can more accurately reflect the local changes and fluctuations in the load of the power system, enhance the adaptability and responsiveness of the forecast model to dynamic changes in the system, and provide more accurate decision support for the stable operation and load management of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 : A flow chart of an embodiment of a method for triggering communication of a power system based on a prediction model provided by the present application;

[0082] Figure 2: A structural diagram of an embodiment of a power system event-triggered communication process based on a prediction model provided by this application;

[0083] Figure 3 : A structural diagram of an embodiment of a power system triggering communication device based on a prediction model provided in this application. DETAILED DESCRIPTION

[0084] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0085] Example 1

[0086] Please refer to Figure 1 , which is a power system triggering communication method based on a prediction model provided in an embodiment of the present invention.

[0087] In this embodiment, the process of the power system triggering communication method based on the prediction model in this application is described in detail through steps S01-S03.

[0088] S01: Acquire first historical load data, a first actual load sequence, and a second actual load sequence; wherein, the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is the sequence of the second actual load sequence in the previous time period.

[0089] S02: Inputting the first historical load data into a pre-trained power system prediction model, so that the power system prediction model outputs a load prediction sequence.

[0090] As a preferred embodiment of the first embodiment, the pre-trained power system prediction model is obtained by training the initial power system prediction model.

[0091] As a preferred embodiment of the first embodiment, the training process of the initial power system prediction model is specifically as follows:

[0092] (1) The normalized historical power system load data is used as the input of the GBDT prediction model. The collected historical power system load data is normalized and mapped to the range of [0,1] to prevent the prediction accuracy of the model from being reduced by different orders of magnitude. The specific process is as follows:

[0093]

[0094] Among them, z is the original load data, is the load data after normalization, z max is the maximum original load value, z min is the minimum original load value. Assuming that the short-term load of the power system at the i-th moment on the m-th day needs to be predicted, the normalized historical power system load data of the t-period before this moment is selected as the input of the GBDT prediction model.

[0095] (2) Use GBDT algorithm to realize power system load forecasting. GBDT algorithm contains hundreds of decision trees. When using this algorithm to predict power system load, it is necessary to set the initial value for the input sample data and traverse each decision tree. It will continuously adjust and update the predicted value, accumulate the prediction results of each decision tree, and obtain the final power system load prediction value. The specific process is as follows:

[0096] F(x)=F0+(β1+β2+…+β M )[T1(X)+T2(X)+T M (X)],

[0097] Where T() is a weak classifier, the number of which is M; β is a weight coefficient; F() is a strong classifier composed of all weak classifiers. Through several iterations, the number of M weak classifiers is integrated into a strong classifier. Each iteration can reduce the residual of the previous model, and the new model is created in the gradient direction of the residual reduction.

[0098]

[0099] Describe the loss function to determine the gradient of residual reduction. i ) is the short-term load forecast value of the power system output by the model, y i is the actual value.

[0100] (3) The Boosting gradient boosting algorithm is used to solve the problems of slow training speed and large memory usage caused by the need to traverse the sample data countless times during the training process of the GBDT algorithm. It creates the mth weak classifier in the gradient descent direction of the m-1th weak classifier loss function. The specific process is: assuming F(x; Q) is the prediction function, Q = {q0, q1, q2...} is the parameter of the prediction function, and the expression of the prediction function can be obtained by weighted combination of several weak classifiers:

[0101]

[0102] Among them, α is the parameter of the weak classifier; β is the weight coefficient of the weak classifier. By optimizing the above two parameters, the prediction function F can be improved, and the framework of the general Boosting gradient boosting algorithm is finally obtained as follows:

[0103] F m (x) = F m-1 (x)+ρ m h(x;α m ), ρ is a constant.

[0104] Furthermore, using the power system load forecast sequence Design a new event-triggered communication mechanism that only communicates when a key event or state changes. The event-triggered communication mechanism is specifically

[0105] If e(t)≤σ, then

[0106] Where, e(t) is the similarity distance between the power system load forecast sequence and the actual sequence; is the current prediction sequence; is the final communication state value; σ is an adjustable trigger parameter, 0<σ<1. The future state of the power system predicted by the prediction model is used to determine whether the trigger condition is met. When the similarity distance between the power system load forecast sequence and the actual sequence is greater than the set threshold, the trigger condition is met, the system triggers communication, and the actual load sequence of the power system is transmitted from the sending end to the receiving end. represents the triggering time, where t k <t k+1 In order to maintain generality, assuming that the first trigger time is t0 = t(0) = 0, the next trigger time is

[0107] t k+1 =inf{t>t k |e(t)≤σ}.

[0108] In this preferred embodiment, the present application achieves high-precision prediction of power load by using a power system prediction model constructed based on the gradient boosting decision tree (GBDT) algorithm and optimizing it in combination with the gradient boosting algorithm. The initial model uses multiple decision trees to learn historical load data. By continuously traversing these decision trees and accumulating their prediction results, the model can capture complex patterns and trends in the load data. Furthermore, the initial model is finely optimized by the gradient boosting algorithm. The model gradually reduces the value of the loss function during the training process until it reaches a stable state, thereby ensuring the generalization ability and prediction accuracy of the model. This method not only improves the accuracy of power system load prediction, but also enhances the model's adaptability to changes in historical load data, so that in the actual operation of the power system, future load changes can be more effectively predicted, thereby optimizing the allocation of power resources and the operation strategy of the power grid, and improving the operation efficiency and reliability of the power grid.

[0109] S03: If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication and sending the second actual load sequence to a receiving end;

[0110] Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

[0111] As a preferred embodiment of the first embodiment, if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows:

[0112] According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated;

[0113] According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated;

[0114] Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance;

[0115] The calculation formula of the similarity distance is:

[0116] D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ),

[0117] Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D , Y D ) corresponding weight; X D is the second actual load sequence; Y D is the load forecast sequence, D1(X D ,Y D ) is the Euclidean distance, D2(X D , Y D ) is the first DTW distance, D3(X D , Y D ) is the second DTW distance;

[0118] When the similarity distance between the power system load forecast sequence and the actual sequence is greater than the set threshold, it is considered that the power system state has changed, the trigger condition is met, and the system triggers communication.

[0119] In this preferred embodiment, the present application calculates the similarity distance between the load forecast sequence and the second actual load sequence by comprehensively considering the Euclidean distance, the first DTW distance and the second DTW distance. This comprehensive evaluation method can more comprehensively reflect the similarity between the two sequences. The entropy weight method is used to determine the weights of each distance, which ensures the objectivity and scientific nature of the weight distribution, thereby making the similarity evaluation more accurate. When the calculation result of the similarity distance is greater than the preset threshold, it indicates that the predicted sequence is very close to the actual sequence. At this time, the communication mechanism is triggered and the second actual load sequence is sent to the receiving end. The preset threshold is set between zero and one, providing a flexible judgment standard, making the communication trigger more reasonable. This method not only improves communication efficiency and reduces unnecessary data transmission, but also ensures that communication is only carried out when there is a large deviation between the prediction and the actual through accurate similarity evaluation, thereby optimizing resource utilization and enhancing the power system's ability to respond to changes and overall stability.

[0120] As a preferred embodiment of the first embodiment, the Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0121] According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated;

[0122] The formula for the Euclidean distance is

[0123]

[0124] Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D , Y D ) is the Euclidean distance.

[0125] In this preferred embodiment, the present application can accurately quantify the deviation of the corresponding sampling points between the load forecast sequence and the second actual load sequence by adopting the Euclidean distance calculation method. The Euclidean distance formula uses the square root of the sum of the squares of the differences between the load forecast value and the actual load value at each moment to represent the distance, thereby evaluating the numerical difference between the two sequences. Specifically, for each time point t, the absolute value of the difference between the load forecast value and the second actual load value is calculated, and then these differences are squared, summed and squared to obtain the Euclidean distance of the entire time series. This calculation method takes into account the differences of all sampling points in the time series and can fully reflect the overall deviation between the forecast sequence and the actual sequence. When the Euclidean distance is small, it indicates that the prediction results of the prediction model are more consistent with the actual load changes; when the Euclidean distance is large, it indicates that there is a large deviation between the prediction results and the actual values. The evaluation mechanism of the present application helps to judge the quality of the prediction and provide a scientific basis for the operation and load management of the power system.

[0126] As a preferred embodiment of the first embodiment, the first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0127] Step 1: Construct a matrix D of size n×m, whose element d ij for:

[0128]

[0129] Where, d ED ( ) is a distance calculation function, and the present invention adopts Euclidean distance.

[0130] Step 2: Construct set P D To store the point coordinates of all moving paths of the moving point, recorded as For the element d ij The moving point of the position, the position of the element it moves to next time can only be d i+1,j d i,j+1 d i+1,j+1 The position of an element in the element. Repeatedly move the moving point until the moving point reaches element d n,m until.

[0131] Step 3: During the movement of the moving point, the following objective function needs to be satisfied to make its total moving path the shortest:

[0132]

[0133] Where, is the path distance of the e-th point; D2(X D ,Y D ) is the power system load forecast sequence Y D With the actual sequence XD The similarity distance between them is the first DTW distance.

[0134] In this preferred embodiment, the first DTW distance mentioned in the present application is realized by the core mechanism of the Dynamic Time Warping (DTW) algorithm, which dynamically adjusts the moving paths of each dynamic point by optimizing an objective function to ensure that the cumulative distance of these paths is the shortest. Specifically, the objective function calculates all possible matching paths between the load forecast sequence and the second actual load sequence, and selects the path that minimizes the sum of the path distances. In this process, the moving path distance of each dynamic point is accumulated to form the first DTW distance, which reflects the overall similarity of the two sequences under the best matching condition. In this way, even if the two sequences are stretched or misaligned in time, the DTW algorithm can effectively evaluate their similarity, thereby providing a reliable measure for the accuracy of power system load forecasting.

[0135] As a preferred embodiment of the first embodiment, the second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0136] According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated;

[0137] Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system;

[0138] A second DTW distance is calculated based on the first DTW distance, the first load prediction sequence, and the third actual load sequence;

[0139] More specifically, the second DTW distance is calculated as follows: D 、Y D Through forward difference, we can get two sequences X′ that can map the fluctuation situation D , Y′ D , and then describe the local fluctuation characteristics by calculating the DTW distance, and record it as D3(X D ,Y D );D3(X D ,Y D ) is the second DTW distance.

[0140] In this preferred embodiment, the present application generates a first load forecast sequence and a third actual load sequence by applying the differential method to process the original load forecast sequence and the second actual load sequence. These two new sequences can more sensitively map the load fluctuations of the power system. Then, using these new sequences, combined with the calculation method of the first DTW distance, the second DTW distance is calculated. This process involves evaluating the fluctuation pattern of the time series and dynamically time-warping it with the forecast sequence to find the best time alignment method to obtain the second DTW distance. This calculation method can more accurately reflect the local changes and fluctuations in the load of the power system, enhance the adaptability and responsiveness of the forecast model to dynamic changes in the system, and provide more accurate decision support for the stable operation and load management of the power system.

[0141] As a preferred embodiment of the first embodiment, the sending of the first actual load sequence to the receiving end so that the receiving end fills the missing sequence is specifically as follows:

[0142] The missing sequence is replaced by the complete sequence in the period before the missing sequence (i.e., the first actual load sequence), thereby combining multiple sequence segments at the receiving end into a reliable and complete reconstructed sequence. The specific process is as follows:

[0143] x(t k )=x(t k-1 ),

[0144] Among them, x(t k ) is the current missing sequence, x(t k-1 ) is the complete sequence of the period before the missing sequence.

[0145] The overall process of the entire technical solution of this application is as follows Figure 2 As shown, the present application first trains the power system prediction model by using historical load data to ensure the model's ability to accurately predict changes in power load. Then, by comparing the similarity between the predicted sequence and the actual sequence, communication is triggered only when the two differ greatly, effectively reducing unnecessary data transmission and reducing the consumption of communication resources. In addition, when there are gaps between the actual sequences, the gaps are filled with the previous complete sequence to ensure the continuity and integrity of the data, thereby making the power system operation more stable and the decision-making more accurate. The present application not only optimizes the use of communication resources, but also enhances the power system's ability to respond to emergencies, so as to solve the problem in the prior art that system communication cannot be triggered only when the power system state changes.

[0146] Example 2

[0147] Please refer to Figure 3 , which is a power system triggering communication device based on a prediction model provided in an embodiment of the present application.

[0148] In this embodiment, the prediction model-based power system triggered communication device includes an acquisition module 10 , an input / output module 20 , and a trigger module 30 .

[0149] The acquisition module 10 is used to obtain first historical load data, a first actual load sequence and a second actual load sequence; wherein, the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is the sequence of the second actual load sequence in the previous time period.

[0150] The input-output module 20 is used to input the first historical load data into a pre-trained power system prediction model, so that the power system prediction model outputs a load prediction sequence.

[0151] As a preferred embodiment of the second embodiment, the pre-trained power system prediction model is obtained by training the initial power system prediction model.

[0152] As a preferred embodiment of the second embodiment, the training process of the initial power system prediction model is specifically as follows:

[0153] (1) The normalized historical power system load data is used as the input of the GBDT prediction model. The collected historical power system load data is normalized and mapped to the range of [0,1] to prevent the prediction accuracy of the model from being reduced by different orders of magnitude. The specific process is as follows:

[0154]

[0155] Among them, z is the original load data, is the load data after normalization, z max is the maximum original load value, z min is the minimum original load value. Assuming that the short-term load of the power system at the i-th moment on the m-th day needs to be predicted, the normalized historical power system load data of the t-period before this moment is selected as the input of the GBDT prediction model.

[0156] (2) Use GBDT algorithm to realize power system load forecasting. GBDT algorithm contains hundreds of decision trees. When using this algorithm to predict power system load, it is necessary to set the initial value for the input sample data and traverse each decision tree. It will continuously adjust and update the predicted value, accumulate the prediction results of each decision tree, and obtain the final power system load prediction value. The specific process is as follows:

[0157] F(x)=F0+(β1+β2+…+β M )[T1(X)+T2(X)+T M(X)],

[0158] Where T( ) is a weak classifier, the number of which is M; β is a weight coefficient; F( ) is a strong classifier composed of all weak classifiers. Through several iterations, the number of M weak classifiers is integrated into a strong classifier. Each iteration can reduce the residual of the previous model, and the new model is created in the gradient direction of the residual reduction.

[0159]

[0160] Describe the loss function to determine the gradient of residual reduction. i ) is the short-term load forecast value of the power system output by the model, y i is the actual value.

[0161] (3) The Boosting gradient boosting algorithm is used to solve the problems of slow training speed and large memory usage caused by the need to traverse the sample data countless times during the training process of the GBDT algorithm. It creates the mth weak classifier in the gradient descent direction of the m-1th weak classifier loss function. The specific process is: assuming F(x; Q) is the prediction function, Q = {q0, q1, q2...} is the parameter of the prediction function, and the expression of the prediction function can be obtained by weighted combination of several weak classifiers:

[0162]

[0163] Among them, α is the parameter of the weak classifier; β is the weight coefficient of the weak classifier. By optimizing the above two parameters, the prediction function F can be improved, and the framework of the general Boosting gradient boosting algorithm is finally obtained as follows:

[0164] F m (x)=F m-1 (x)+ρ m h(x;α m ), ρ is a constant.

[0165] Furthermore, using the power system load forecast sequence Design a new event-triggered communication mechanism that only communicates when a key event or state changes. The event-triggered communication mechanism is specifically

[0166] If e(t)≤σ, then

[0167] Where, e(t) is the similarity distance between the power system load forecast sequence and the actual sequence; is the current prediction sequence; is the final communication state value; σ is an adjustable trigger parameter, 0<σ<1. The future state of the power system predicted by the prediction model is used to determine whether the trigger condition is met. When the similarity distance between the power system load forecast sequence and the actual sequence is greater than the set threshold, the trigger condition is met, the system triggers communication, and the actual load sequence of the power system is transmitted from the sending end to the receiving end. represents the triggering time, where t k <t k+1 In order to maintain generality, assuming that the first trigger time is t0 = t(0) = 0, the next trigger time is

[0168] t k+1 =inf{t>t k |e(t)≤σ}.

[0169] In this preferred embodiment, the present application achieves high-precision prediction of power load by using a power system prediction model constructed based on the gradient boosting decision tree (GBDT) algorithm and optimizing it in combination with the gradient boosting algorithm. The initial model uses multiple decision trees to learn historical load data. By continuously traversing these decision trees and accumulating their prediction results, the model can capture complex patterns and trends in the load data. Furthermore, the initial model is finely optimized by the gradient boosting algorithm. The model gradually reduces the value of the loss function during the training process until it reaches a stable state, thereby ensuring the generalization ability and prediction accuracy of the model. This method not only improves the accuracy of power system load prediction, but also enhances the model's adaptability to changes in historical load data, so that in the actual operation of the power system, future load changes can be more effectively predicted, thereby optimizing the allocation of power resources and the operation strategy of the power grid, and improving the operation efficiency and reliability of the power grid.

[0170] Trigger module 30: If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, trigger power system communication and send the second actual load sequence to the receiving end;

[0171] Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

[0172] As a preferred embodiment of the second embodiment, if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows:

[0173] According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated;

[0174] According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated;

[0175] Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance;

[0176] The calculation formula of the similarity distance is:

[0177] D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ),

[0178] Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D , Y D ) corresponding weight; X D is the second actual load sequence; Y D is the load forecast sequence, D1(X D , Y D ) is the Euclidean distance, D2(X D , Y D ) is the first DTW distance, D3(X D ,Y D ) is the second DTW distance;

[0179] When the similarity distance between the power system load forecast sequence and the actual sequence is greater than the set threshold, it is considered that the power system state has changed, the trigger condition is met, and the system triggers communication.

[0180] In this preferred embodiment, the present application calculates the similarity distance between the load forecast sequence and the second actual load sequence by comprehensively considering the Euclidean distance, the first DTW distance and the second DTW distance. This comprehensive evaluation method can more comprehensively reflect the similarity between the two sequences. The entropy weight method is used to determine the weights of each distance, which ensures the objectivity and scientific nature of the weight distribution, thereby making the similarity evaluation more accurate. When the calculation result of the similarity distance is greater than the preset threshold, it indicates that the predicted sequence is very close to the actual sequence. At this time, the communication mechanism is triggered and the second actual load sequence is sent to the receiving end. The preset threshold is set between zero and one, providing a flexible judgment standard, making the communication trigger more reasonable. This method not only improves communication efficiency and reduces unnecessary data transmission, but also ensures that communication is only carried out when there is a large deviation between the prediction and the actual through accurate similarity evaluation, thereby optimizing resource utilization and enhancing the power system's ability to respond to changes and overall stability.

[0181] As a preferred embodiment of the second embodiment, the Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0182] According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated;

[0183] The formula for the Euclidean distance is

[0184]

[0185] Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D , Y D ) is the Euclidean distance.

[0186] In this preferred embodiment, the present application can accurately quantify the deviation of the corresponding sampling points between the load forecast sequence and the second actual load sequence by adopting the Euclidean distance calculation method. The Euclidean distance formula uses the square root of the sum of the squares of the differences between the load forecast value and the actual load value at each moment to represent the distance, thereby evaluating the numerical difference between the two sequences. Specifically, for each time point t, the absolute value of the difference between the load forecast value and the second actual load value is calculated, and then these differences are squared, summed and squared to obtain the Euclidean distance of the entire time series. This calculation method takes into account the differences of all sampling points in the time series and can fully reflect the overall deviation between the forecast sequence and the actual sequence. When the Euclidean distance is small, it indicates that the prediction results of the prediction model are more consistent with the actual load changes; when the Euclidean distance is large, it indicates that there is a large deviation between the prediction results and the actual values. The evaluation mechanism of the present application helps to judge the quality of the prediction and provide a scientific basis for the operation and load management of the power system.

[0187] As a preferred embodiment of the second embodiment, the first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0188] Step 1: Construct a matrix D of size n×m, whose element d ij for:

[0189]

[0190] Where, d ED ( ) is a distance calculation function, and the present invention adopts Euclidean distance.

[0191] Step 2: Construct set P D To store the point coordinates of all moving paths of the moving point, recorded as For the element d ij The moving point of the position, the position of the element it moves to next time can only be d i+1,j d i,j+1 d i+1,j+1 The position of an element in the element. Repeatedly move the moving point until the moving point reaches element d n,m until.

[0192] Step 3: During the movement of the moving point, the following objective function needs to be satisfied to make its total moving path the shortest:

[0193]

[0194] Where, is the path distance of the e-th point; D2(X D ,Y D ) is the power system load forecast sequence Y D With the actual sequence XD The similarity distance between them is the first DTW distance.

[0195] In this preferred embodiment, the first DTW distance mentioned in the present application is realized by the core mechanism of the Dynamic Time Warping (DTW) algorithm, which dynamically adjusts the moving paths of each dynamic point by optimizing an objective function to ensure that the cumulative distance of these paths is the shortest. Specifically, the objective function calculates all possible matching paths between the load forecast sequence and the second actual load sequence, and selects the path that minimizes the sum of the path distances. In this process, the moving path distance of each dynamic point is accumulated to form the first DTW distance, which reflects the overall similarity of the two sequences under the best matching condition. In this way, even if the two sequences are stretched or misaligned in time, the DTW algorithm can effectively evaluate their similarity, thereby providing a reliable measure for the accuracy of power system load forecasting.

[0196] As a preferred embodiment of the second embodiment, the second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically:

[0197] According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated;

[0198] Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system;

[0199] A second DTW distance is calculated based on the first DTW distance, the first load prediction sequence, and the third actual load sequence;

[0200] More specifically, the second DTW distance is calculated as follows: D 、Y D Through forward difference, we can get two sequences X′ that can map the fluctuation situation D , Y′ D , and then describe the local fluctuation characteristics by calculating the DTW distance, and record it as D3(X D , Y D );D3(X D , Y D ) is the second DTW distance.

[0201] In this preferred embodiment, the present application generates a first load forecast sequence and a third actual load sequence by applying the differential method to process the original load forecast sequence and the second actual load sequence. These two new sequences can more sensitively map the load fluctuations of the power system. Then, using these new sequences, combined with the calculation method of the first DTW distance, the second DTW distance is calculated. This process involves evaluating the fluctuation pattern of the time series and dynamically time-warping it with the forecast sequence to find the best time alignment method to obtain the second DTW distance. This calculation method can more accurately reflect the local changes and fluctuations in the load of the power system, enhance the adaptability and responsiveness of the forecast model to dynamic changes in the system, and provide more accurate decision support for the stable operation and load management of the power system.

[0202] As a preferred embodiment of the second embodiment, the sending of the first actual load sequence to the receiving end so that the receiving end fills the missing sequence is specifically as follows:

[0203] The missing sequence is replaced by the complete sequence in the period before the missing sequence (i.e., the first actual load sequence), thereby combining multiple sequence segments at the receiving end into a reliable and complete reconstructed sequence. The specific process is as follows:

[0204] x(t k )=x(t k-1 ),

[0205] Among them, x(t k ) is the current missing sequence, x(t k-1 ) is the complete sequence of the period before the missing sequence.

[0206] The overall process of the entire technical solution of this application is as follows Figure 2 As shown, the device uses two modules to divide the work and coordinate the work to better trigger power system communication when the state changes. The present application first trains the power system prediction model by using historical load data to ensure the model's accurate prediction ability of power load changes. Then, by comparing the similarity between the predicted sequence and the actual sequence, communication is triggered only when the two differ greatly, effectively reducing unnecessary data transmission and reducing the consumption of communication resources. In addition, when there are gaps between the actual sequences, the gaps are filled with the previous complete sequence to ensure the continuity and integrity of the data, thereby making the power system operation more stable and the decision-making more accurate. The present application not only optimizes the use of communication resources, but also enhances the power system's ability to respond to emergencies, so as to solve the problem in the prior art that system communication cannot be triggered only when the power system state changes.

[0207] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A power system trigger communication method based on a prediction model, characterized in that: include: Acquire first historical load data, a first actual load sequence, and a second actual load sequence; wherein the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is a sequence of the second actual load sequence in the previous time period; Inputting the first historical load data into a pre-trained power system prediction model so that the power system prediction model outputs a load prediction sequence; If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication and sending the second actual load sequence to the receiving end; Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

2. The power system trigger communication method based on the prediction model according to claim 1, characterized in that: The pre-trained power system prediction model is specifically: Obtaining second historical load data; Inputting the second historical load data into an initial power system prediction model for training, and optimizing the initial power system prediction model using a gradient boosting algorithm until the value of the loss function no longer changes, stopping the training, and obtaining a trained power system prediction model; The initial power system prediction model is constructed based on the GBDT algorithm. The initial power system prediction model includes multiple decision trees. During the training process, multiple decision trees are continuously traversed and the prediction results of each decision tree are accumulated.

3. The power system trigger communication method based on the prediction model according to claim 1, characterized in that: If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows: According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated; According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated; Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance; The calculation formula of the similarity distance is: D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ), Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D , Y D ) corresponding weight; X D is the second actual load sequence; Y D is the load forecast sequence, D1(X D , Y D ) is the Euclidean distance, D2(X D , Y D ) is the first DTW distance, D3(X D , Y D ) is the second DTW distance; If the similarity distance is greater than a preset threshold, power system communication is triggered.

4. The power system trigger communication method based on prediction model according to claim 3, characterized in that: The Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated; The formula for the Euclidean distance is Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D , Y D ) is the Euclidean distance.

5. The power system trigger communication method based on prediction model according to claim 3, characterized in that: The first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: The first DTW distance is calculated based on the objective function, the load forecast sequence, and the second actual load sequence; The objective function is obtained by determining the movement paths of the dynamic points and ensuring that the cumulative distance of the movement paths is the shortest. The formula of the objective function is Where, is the moving path distance of the e-th dynamic point; D2(X D , Y D ) is the load forecast sequence Y D With the second actual load sequence X D The first DTW distance between them.

6. The power system trigger communication method based on prediction model according to claim 3, characterized in that: The second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated; Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system; A second DTW distance is calculated according to the first DTW distance, the first load prediction sequence, and the third actual load sequence.

7. A power system trigger communication device based on a prediction model, characterized in that: Including acquisition module, input and output module and trigger module; The acquisition module is used to acquire first historical load data, a first actual load sequence, and a second actual load sequence; wherein the first actual load sequence and the second actual load sequence are obtained by dividing the actual load data according to a preset time period, and the first actual load sequence is the sequence of the second actual load sequence in the previous time period; The input-output module is used to input the first historical load data into a pre-trained power system prediction model so that the power system prediction model outputs a load prediction sequence; The trigger module is configured to trigger power system communication and send the second actual load sequence to a receiving end if the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold; Otherwise, it is determined that the receiving end has a vacant sequence, and the first actual load sequence is sent to the receiving end, so that the receiving end fills the vacant sequence.

8. The power system trigger communication device based on prediction model according to claim 7, characterized in that: The pre-trained power system prediction model is specifically: Obtaining second historical load data; Inputting the second historical load data into an initial power system prediction model for training, and optimizing the initial power system prediction model using a gradient boosting algorithm until the value of the loss function no longer changes, stopping the training, and obtaining a trained power system prediction model; The initial power system prediction model is constructed based on the GBDT algorithm. The initial power system prediction model includes multiple decision trees. During the training process, multiple decision trees are continuously traversed and the prediction results of each decision tree are accumulated.

9. The power system trigger communication device based on prediction model according to claim 7, characterized in that: If the similarity distance between the load forecast sequence and the second actual load sequence is greater than a preset threshold, triggering power system communication is specifically as follows: According to the load forecast sequence and the second actual load sequence, the Euclidean distance, the first DTW distance and the second DTW distance are calculated; According to the entropy weight method, the weights of the Euclidean distance, the first DTW distance, and the second DTW distance are calculated; Calculate the similarity distance based on the weights, the Euclidean distance, the first DTW distance, and the second DTW distance; The calculation formula of the similarity distance is: D total (X D ,Y D )=r1D1(X D ,Y D )+r2D2(X D ,Y D )+r3D3(X D ,Y D ), Where r1, r2, and r3 are D1(X D , Y D )、D2(X D , Y D )、D3(X D , Y D ) corresponding weight; X D is the second actual load sequence; Y D is the load forecast sequence, D1(X D ,Y D ) is the Euclidean distance, D2(X D ,Y D ) is the first DTW distance, D3(X D , Y D ) is the second DTW distance; If the similarity distance is greater than a preset threshold, power system communication is triggered.

10. The power system trigger communication device based on prediction model according to claim 9, characterized in that: The Euclidean distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: According to the Euclidean distance formula, the Euclidean distance between the sampling points corresponding to the load forecast sequence and the second actual load sequence is calculated; The formula for the Euclidean distance is Where, is the load forecast value at time i; is the second actual load value at time i, D1(X D ,Y D ) is the Euclidean distance.

11. The power system trigger communication device based on prediction model according to claim 9, characterized in that: The first DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: The first DTW distance is calculated based on the objective function, the load forecast sequence, and the second actual load sequence; The objective function is obtained by determining the movement paths of the dynamic points and ensuring that the cumulative distance of the movement paths is the shortest. The formula of the objective function is Where, is the moving path distance of the e-th dynamic point; D2(X D ,Y D ) is the load forecast sequence Y D With the second actual load sequence X D The first DTW distance between them.

12. The power system trigger communication device based on prediction model according to claim 9, characterized in that: The second DTW distance is calculated based on the load forecast sequence and the second actual load sequence, specifically: According to the difference method, the load forecast sequence and the second actual load sequence, a first load forecast sequence and a third actual load sequence are calculated; Wherein, the first load forecast sequence and the third actual load sequence can reflect the fluctuation of the power system; A second DTW distance is calculated according to the first DTW distance, the first load prediction sequence, and the third actual load sequence.

Citation Information

Patent Citations

  • Wind power prediction method and device, equipment and storage medium

    CN114996964A

  • Industrial enterprise short-term load prediction method based on LSTM deep learning

    CN116780524A