Cloud edge model optimization method, system and device for power system prediction

By using a cloud-edge-device model optimization method, combining power grid physical constraints and historical reliability for multi-dimensional scoring, dynamic pruning and robust calculation, and screening of reliable devices, an optimization closed loop is formed, which solves the robustness and accuracy problems of smart grid time series prediction models.

CN123178971APending Publication Date: 2026-11-27ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611447857.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing smart grid time series prediction models rely on fixed mechanisms, have insufficient aggregation robustness, poor detection stability, and do not incorporate physical verification based on grid characteristics, resulting in poor model performance and a high risk of misjudgment.

Method used

The cloud master station distributes the initial global model parameters, the edge devices train and upload updated parameters, the direction vector is determined by combining the preset pruning norm and mathematical robustness calculation, and multi-dimensional scoring is performed by combining the physical constraints of the power grid and historical reliability to screen trustworthy devices and form a dynamic optimization closed loop.

Benefits of technology

It effectively distinguishes between normal personalized updates and noise updates, improves the stability of anomaly identification, adapts to changes in equipment composition, enhances the fit between the model and the power grid operation rules, realizes dynamic collaborative optimization of equipment credibility and model aggregation strategy, and improves prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178971A_ABST
    Figure CN123178971A_ABST
Patent Text Reader

Abstract

The application discloses a cloud edge model optimization method, system and equipment for power system prediction, wherein parameters are issued by a cloud host station to each edge device for training, and local model update parameters are uploaded; model updating is dynamically cut and robustly calculated to determine a direction vector; a basic trust score is calculated according to the direction vector; a current global model is updated according to the model updating and power grid constraints, and a physical consistency residual is calculated in combination with a residual; a neighborhood consistency score and an update obsolescence are calculated based on a preset electrical neighborhood, and a target trust score is generated in combination with the basic trust score and the physical consistency residual; an aggregation calculation is performed in combination with the target trust score to obtain a global model update parameter; prediction is performed according to the global model update parameter, a new round of optimization updating is triggered, and the iteration is stopped until a target global optimization model is output. The application can solve the technical problems that the existing abnormal detection has poor stability, the influence of power grid characteristics is not considered, the model performance is poor, and misjudgment is prone to occur.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system technology, and in particular to cloud-edge-device model optimization methods, systems and devices for power system forecasting. Background Technology

[0002] With the accelerated pace of energy transition, smart grids have become a core component for improving the flexibility and operational efficiency of distribution networks. Electricity load forecasting and distributed renewable energy output forecasting, as core functions of smart grids, rely on massive amounts of end-user electricity consumption and operational data to support model training. However, user electricity data involves privacy and security concerns, and centralized data collection and processing face compliance risks and user resistance. Therefore, distributed modeling and privacy protection technologies based on a cloud-edge-device architecture have become an important development direction in the smart grid field.

[0003] Existing smart grid time series prediction mainly employs models such as Long Short-Term Memory (LSTM) networks and gated recurrent units (GRUs), with early training primarily conducted centrally in the cloud. The introduction of federated learning technology has enabled a distributed modeling mode of "data not leaving the domain and parameters being trained together." Typical federated averaging algorithms complete global model aggregation through sample weighting. Subsequent research has further introduced a gradient direction angle determination mechanism to identify abnormal updates, thereby improving the model's anti-interference capability and providing a foundational approach for robust federated learning in power grid scenarios.

[0004] However, existing solutions still have some limitations. For example, simple averaging or sample-weighted aggregation methods are difficult to distinguish between personalized updates of normal non-independent identically distributed data and noise updates caused by acquisition failures or communication disturbances. The discrimination method of single-direction angle combined with fixed threshold is easily affected by changes in update amplitude and equipment configuration, resulting in insufficient stability in anomaly identification. In addition, statistical screening is only carried out in the parameter space without combining it with physical laws such as power grid topology and power balance, equipment capacity, and ramping constraints. This can easily lead to incorrect inclusion of statistically consistent data that exceeds physical limits and incorrect deletion of data that deviates in direction but is operationally reasonable. Moreover, model aggregation is disconnected from power grid prediction operations and lacks a closed-loop feedback mechanism based on actual prediction errors. It is impossible to dynamically optimize equipment reliability and aggregation strategies, which restricts the continuous improvement of the robustness and prediction accuracy of the global model. Summary of the Invention

[0005] This application provides a cloud-edge-device model optimization method, system, and device for power system prediction, which addresses the technical problems of existing technologies that rely on fixed mechanisms and have insufficient aggregation robustness, resulting in poor detection stability, and that do not perform physical verification based on power grid characteristics and participate in model collaborative optimization, leading to poor model performance and easy misjudgment.

[0006] In view of this, the first aspect of this application provides a cloud-edge-end model optimization method for power system forecasting, including: The initial global model parameters and training configuration parameters are distributed to each edge device through the cloud main station, prompting the edge device to train the model and upload the local model update parameters. The local model update parameters are dynamically clipped using a preset clipping norm, and the unit direction vector and reference direction vector are determined by combining mathematical robust calculation. A multi-dimensional scoring calculation is performed based on the unit direction vector, the reference direction vector, the median absolute deviation, and the historical reliability of the equipment to obtain a basic reliability score. The cloud master station performs current global model updates and predictive constraint updates based on the local model update parameters and preset power grid physical constraints, and obtains physical consistency residuals by combining residual calculations. The preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. Based on the preset electrical neighborhood and global model version number, the neighborhood consistency score and update staleness are calculated respectively, and the target confidence score is generated by combining the basic confidence score and the physical consistency residual. By combining the target credibility score and the update obsolescence, dynamic credibility device screening and parameter aggregation calculation are performed to update the global model update parameters. The power grid prediction task is executed by distributing the global model update parameters through the cloud master station. The relevant parameters for model optimization are updated based on the generated prediction performance indicators until the preset iteration conditions are met, and then the target global optimization model is output.

[0007] Preferably, the step of distributing the initial global model parameters and training configuration parameters to each edge device via the cloud main station, prompting the edge devices to perform model training and upload local model update parameters, includes: The cloud main station distributes the initial global model parameters and training configuration parameters to each edge device, prompting the edge devices to perform local parameter initialization processing to obtain the local model initial parameters. Based on the initial parameters of the local model, prediction training is performed according to relevant local power grid data to obtain the updated parameters of the local model, which are then uploaded to the cloud main station. The local power grid related data includes local historical load, local meteorological data, and distributed energy data.

[0008] Preferably, the step of dynamically pruning the local model update parameters using a preset pruning norm, and determining the unit direction vector and reference direction vector by combining mathematical robustness calculation, includes: Calculate the pruning upper limit based on the statistics of the current update norm; Within the range of the clipping upper limit, the local model update parameters are dynamically clipped using a preset clipping norm to obtain clipped model update parameters; The update parameters of the cropping model are normalized to generate a unit direction vector; A comprehensive mathematical robustness calculation is performed on the unit direction vector, and then normalized to obtain a reference direction vector. The comprehensive mathematical robustness calculation includes median calculation and truncated mean calculation.

[0009] Preferably, the step of calculating a basic reliability score based on the unit direction vector, the reference direction vector, the median absolute deviation, and the device's historical reliability includes: Cosine similarity calculation is performed based on the unit direction vector and the reference direction vector to obtain the direction consistency score; Based on the updated parameters of the cropping model and the median absolute deviation, the norm deviation is calculated to determine the magnitude deviation. A basic reliability score is obtained by weighting the device's historical reliability, the direction consistency score, the amplitude deviation, and the current sample size.

[0010] Preferably, the step of updating the current global model and predictive constraints through the cloud master station based on the local model update parameters and preset power grid physical constraints, and obtaining the physical consistency residual by combining the residual calculation, includes: The cloud master station divides the edge devices into multiple electrical neighborhoods based on the electrical connection relationship of the target power system to obtain the preset electrical neighborhoods. Multiple physical constraints are configured for each of the preset electrical neighborhoods to generate a set of power grid physical constraints, which includes multiple sets of preset power grid physical constraints. The verification prediction vector is generated by overlaying the local model's update parameters onto the current global model of the cloud main station and combining them with public verification data. The verification prediction vector is substituted into the preset power grid physical constraints to perform residual calculation, and the physical consistency residual is obtained.

[0011] Preferably, the step of calculating the neighborhood consistency score and update staleness based on the preset electrical neighborhood and global model version number, and generating the target confidence score by combining the basic confidence score and the physical consistency residual, includes: Local orientation consistency is calculated within the preset electrical neighborhood, and the aggregation direction of adjacent neighborhoods is compared with the predicted residual of the boundary node to obtain the neighborhood consistency score. The update obsolescence is calculated by analyzing the degree of update lag caused by communication delay based on the global model version number. The target credibility score is generated by combining the basic credibility score, the physical consistency residual, the neighborhood consistency score, and the update staleness.

[0012] Preferably, the step of combining the target trust score and the update staleness to perform dynamic trust device screening and parameter aggregation calculation to update the global model update parameters includes: The screening threshold is dynamically determined based on the median and median absolute deviation of the target credibility scores of all edge devices. Based on the aforementioned screening threshold, trusted devices are divided to determine the set of trusted devices; Based on the target trustworthiness score and update obsolescence, an aggregation contribution analysis is performed on the set of trustworthy devices to obtain the aggregation weight; The global model initial parameters are updated based on the aggregated weights to obtain the global model update parameters.

[0013] Preferably, the step of executing the power grid prediction task by distributing the global model update parameters through the cloud master station, updating the relevant parameters for model optimization based on the generated prediction performance indicators, until a preset iteration condition is met, and then outputting the target globally optimized model, includes: The global model update parameters are distributed through the cloud master station, and the prediction task is performed in combination with the local power grid related data for the next time period to obtain the predicted value; Based on the predicted values ​​and the actual observed values, the prediction error and the number of times physical constraints are exceeded are analyzed to generate prediction performance indicators. Based on the prediction error, update all relevant parameters of the edge device's model optimization until a preset iteration condition is met, then output the target global optimization model.

[0014] The second aspect of this application provides a cloud-edge-device model optimization system for power system forecasting, for performing the method described in the first aspect, including: The initial update unit is used to send the initial global model parameters and training configuration parameters to each edge device through the cloud main station, so that the edge device can train the model and upload the local model update parameters. The clipping calculation unit is used to dynamically clip the local model update parameters using a preset clipping norm, and combine mathematical robust calculation to determine the unit direction vector and the reference direction vector. A multi-dimensional scoring unit is used to perform multi-dimensional scoring calculations based on the unit direction vector, the reference direction vector, the median absolute deviation, and the historical reliability of the equipment to obtain a basic reliability score. The physical analysis unit is used to perform current global model update and prediction constraint update processing based on the local model update parameters and preset power grid physical constraints through the cloud master station, and to obtain physical consistency residuals by combining residual calculations. The preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. The trust enhancement unit is used to calculate the neighborhood consistency score and update staleness based on the preset electrical neighborhood and global model version number, and generate the target trust score by combining the basic trust score and the physical consistency residual. The aggregation and update unit is used to combine the target trust score and the update staleness to perform dynamic trust device screening and parameter aggregation calculation, and update the global model update parameters. The optimization iteration unit is used to execute the power grid prediction task by issuing the global model update parameters from the cloud master station. It updates the relevant parameters for model optimization based on the generated prediction performance indicators until a preset iteration condition is met, at which point it outputs the target globally optimized model.

[0015] A third aspect of this application provides a cloud-edge-device model optimization device for power system forecasting, the device including a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the cloud-edge-device model optimization method for power system forecasting as described in the first aspect, according to the instructions in the program code.

[0016] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This application provides a cloud-edge-device model optimization method for power system forecasting, including: distributing initialized global model initial parameters and training configuration parameters to each edge device via a cloud master station, prompting the edge devices to perform model training and upload local model update parameters; dynamically pruning the local model update parameters using a preset pruning norm and combining it with mathematical robustness calculations to determine the unit direction vector and reference direction vector; performing multi-dimensional scoring calculations based on the unit direction vector, reference direction vector, median absolute deviation, and historical reliability of the devices to obtain a basic reliability score; and updating the current global model and the preset power grid physical constraints via the cloud master station. The prediction constraint update process combines residual calculation to obtain physical consistency residuals. Preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. Based on the preset electrical neighborhood and the global model version number, the neighborhood consistency score and update staleness are calculated respectively. The target confidence score is generated by combining the basic confidence score and the physical consistency residual. Dynamic confidence device screening and parameter aggregation calculation are performed by combining the target confidence score and update staleness to update the global model update parameters. The global model update parameters are distributed through the cloud master station to execute the power grid prediction task. The relevant parameters for model optimization are updated according to the generated prediction performance indicators until the preset iteration conditions are met, and then the target global optimized model is output.

[0017] The cloud-edge-device model optimization method for power system forecasting provided in this application dynamically prunes the local model update parameters using norm pruning, which can suppress the interference of abnormally large value updates. Furthermore, constructing a reference direction vector through robust calculation reduces the influence of a few abnormal updates on the reference direction. Multi-dimensional scoring is performed by combining direction consistency, magnitude deviation, and historical reliability, replacing the existing single-direction angle discrimination. Trustworthy devices are then selected based on the scores, and aggregated according to reliability weights, effectively distinguishing between normal personalized updates and noisy updates. This overcomes the instability problems of fixed thresholds and simple average aggregation techniques, adapts to changes in device composition in different rounds, and improves the stability of anomaly identification. In addition, based on pre-defined electrical neighborhood configuration of power grid physical constraints, the model is transformed into constraint residuals, completing the mapping from parameter space to physical operating space. Simultaneously, neighborhood consistency scores are calculated to supplement consensus discrimination from a topological perspective, reducing both the false inclusion of statistically consistent but physically bounded devices and the false deletion of devices with directional deviations but reasonable operation, ensuring that update selection aligns with power grid operating patterns. Furthermore, by distributing the aggregated global model update parameters to execute the power grid prediction task, and then triggering the next round of model update optimization, an optimization closed loop is formed. This enables dynamic collaborative optimization of equipment reliability and model aggregation strategy, thereby ensuring model performance. Therefore, this application can solve the technical problems of existing technologies that rely on fixed mechanisms and have insufficient aggregation robustness, resulting in poor detection stability, and that fail to perform physical verification based on power grid characteristics and participate in model collaborative optimization, leading to poor model performance and a high risk of misjudgment. Attached Figure Description

[0018] Figure 1 A flowchart illustrating the cloud-edge-device model optimization method for power system forecasting provided in this application embodiment; Figure 2 This is a schematic diagram of the structure of a cloud-edge-device model optimization system for power system prediction provided in an embodiment of this application. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0020] For easier understanding, please refer to Figure 1 The embodiments of the cloud-edge-device model optimization method for power system forecasting provided in this application include: Step 101: The initial global model parameters and training configuration parameters are distributed to each edge device through the cloud main station, prompting the edge devices to train the model and upload the local model to update the parameters.

[0021] It should be noted that this embodiment achieves privacy protection by exchanging model update parameters between the cloud master station and edge devices. Specifically, it designs a distributed model training method based on a cloud-edge joint framework using a federated learning mechanism. This allows multiple edge devices to complete model training locally and then only transmit the model update parameters to the cloud master station server for aggregation. This avoids uploading the original data to the cloud and effectively protects user privacy.

[0022] Therefore, in this embodiment, the cloud master station distributes global model initial parameters and training configuration parameters, prompting the edge devices to upload only the local model update parameters after completing model training, without uploading the local raw data; or uploading training-related parameters or data description parameters, thereby ensuring the privacy of local data.

[0023] Further, step 101 includes: The cloud main station distributes the initial global model parameters and training configuration parameters to each edge device, prompting the edge devices to perform local parameter initialization processing to obtain the local model initial parameters. Based on the initial parameters of the local model, prediction training is performed according to relevant local power grid data to obtain the updated parameters of the local model, which are then uploaded to the cloud main station. Local power grid related data includes local historical load, local meteorological data, and distributed energy data.

[0024] This embodiment implements distributed model training based on a cloud-edge-device federated learning framework. An initial global model for a specific prediction task of the power grid can be pre-built on the cloud master station, and its parameters initialized. This yields the initial parameters of the global model, which can then be used to train the first... t The initial parameters of the global model of the wheel are expressed as follows: The specific forecasting task can be load forecasting or renewable energy output forecasting. There is no limit to the specific grid forecasting task here. It can be designed as needed. The subsequent model co-optimization considering grid characteristics can also be adjusted as necessary according to the different forecasting tasks. This will not be elaborated here.

[0025] Then, the parameters required for model training can be configured to form training configuration parameters. These parameters include, but are not limited to, the training epoch identifier and the current training configuration. The global model initial parameters can then be set. The training configuration parameters are distributed to each edge device participating in this training, enabling them to complete local model parameter initialization and local training preparation, and determine the initial parameters of the local model. Preferably, this can be done from...N Select from a pool of candidate edge devices K These devices constitute the current set of devices participating in the training, denoted as [list of devices]. ,and, .

[0026] The edge device trains the model based on the initial local model and training configuration parameters. The model prediction training is based on local power grid data, specifically including but not limited to locally collected historical load data, local meteorological data, and distributed energy data; for example, it may also include time. After training, the local model update parameters can be obtained. k The local model update parameters of each edge device are denoted as follows: Then calculate the variables for updating parameters of the local model. Update parameters of the local model With updating variables All data is uploaded to the cloud main site. Descriptive parameters such as training completion time can also be uploaded, but the original local data is not uploaded to ensure the privacy of local data.

[0027] Step 102: Dynamically clip the local model update parameters using a preset clipping norm, and determine the unit direction vector and reference direction vector by combining mathematical robust calculation.

[0028] This embodiment designs specific preprocessing methods and robust computation mechanisms to provide standardized input and anti-interference benchmarks for subsequent computational analysis. The preprocessing operation uses a preset clipping norm to achieve dynamic clipping, while the mathematical robust computation performs coordinate or geometric arithmetic operations based on the clipping to determine robust reference directions. Specifically, the norm clipping operation can suppress the excessive dominance of anomalous large updates on subsequent reference directions from the amplitude dimension, and can also map all updates to a unified unit direction space, eliminating amplitude interference for subsequent direction consistency analysis. The calculated robust reference directions construct anomaly-resistant benchmark directions, reducing the pulling interference of a few anomalous devices on the core directions, and serving as the benchmark for subsequent direction consistency analysis.

[0029] Further, step 102 includes: Calculate the pruning upper limit based on the statistics of the current update norm; Within the clipping upper limit, the local model update parameters are dynamically clipped using a preset clipping norm to obtain the clipped model update parameters; The update parameters of the clipping model are normalized to generate a unit direction vector; A comprehensive mathematical robustness calculation is performed on the unit direction vector, followed by normalization, to obtain the reference direction vector. The comprehensive mathematical robustness calculation includes median calculation and truncated mean calculation.

[0030] It should be noted that, because existing technologies rely on a single gradient direction angle and a fixed threshold for anomaly detection, the recognition performance is easily affected by large fluctuations or a small number of abnormal devices, thus impacting the accuracy and reliability of predictions. Therefore, this embodiment designs specific preprocessing methods and robust calculation mechanisms to provide standardized input and anti-interference benchmarks for subsequent calculation and analysis.

[0031] The preprocessing operation employs a preset clipping norm to achieve dynamic clipping, while the mathematical robustness calculation performs coordinate or geometric arithmetic operations based on the clipping to determine robust reference directions. Specifically, the norm clipping operation can suppress the excessive dominance of subsequent reference directions by anomalous large updates in the amplitude dimension, and can also map all updates to a unified unit direction space, eliminating amplitude interference for subsequent direction consistency analysis. The calculated robust reference directions then construct anomaly-resistant baseline directions, reducing the pulling interference of a few anomalous devices on core directions, and serving as the benchmark for subsequent direction consistency analysis.

[0032] Specifically, the update variables are calculated using a preset clipping norm to update the parameters of the local model. Perform L2 norm clipping to obtain the clipping model update parameters. :

[0033] in, This represents the pruning upper limit calculated based on the statistics of the current update norm in this round. To prevent positive numbers with a denominator of zero, the parameters of the clipping model are then updated. By performing normalization, a unit direction vector can be generated. :

[0034] This embodiment performs a comprehensive mathematical robust calculation on the unit direction vector, including median calculation and truncated mean calculation. The median calculation includes coordinate median calculation and geometric median calculation. Based on this mathematical calculation, a robust reference update vector can be obtained. Then, normalization calculation can be performed to obtain the reference direction vector. The normalization calculation is expressed as follows:

[0035] in, For robust reference update vectors, This serves as the reference direction vector. Compared to directly calculating the arithmetic mean, the robust calculation method in this embodiment is better able to reduce the impact of a small number of abnormal devices on the center direction.

[0036] Step 103: Perform multi-dimensional scoring based on the unit direction vector, reference direction vector, median absolute deviation, and historical reliability of the equipment to obtain the basic reliability score.

[0037] The multidimensional scoring calculation in this embodiment includes directional consistency score calculation, amplitude deviation calculation, equipment historical reliability analysis, and sample size distribution. Based on the multidimensional scoring calculation, preliminary abnormal risk quantification can be completed, breaking through the limitations of a single directional angle. The statistical credibility is comprehensively quantified and updated from four aspects: direction, amplitude, historical performance, and data scale. This serves as the preliminary basic credibility score, which is more in line with the characteristics of the actual physical scene, thereby ensuring the reliability of model optimization.

[0038] Further, step 103 includes: Cosine similarity calculation is performed based on the unit direction vector and the reference direction vector to obtain the direction consistency score; Norm deviation is calculated based on the clipping model update parameters and median absolute deviation to determine the magnitude deviation. The basic reliability score is obtained by weighting the device's historical reliability, directional consistency score, amplitude deviation, and current sample size.

[0039] It should be noted that the multidimensional scoring calculation in this embodiment includes directional consistency score calculation, amplitude deviation calculation, equipment historical reliability analysis, and sample size distribution. Based on the multidimensional scoring calculation, preliminary abnormal risk quantification can be completed, breaking through the limitations of a single directional angle. The statistical credibility is comprehensively quantified and updated from four aspects: direction, amplitude, historical performance, and data scale. This serves as the preliminary basic credibility score, which is more in line with the characteristics of the actual physical scene, thereby ensuring the reliability of model optimization.

[0040] Specifically, in this embodiment, cosine similarity calculation can be performed based on the unit direction vector and the reference direction vector to obtain the direction consistency score. :

[0041] Then, norm deviation is calculated based on the clipping model update parameters and median absolute deviation to determine the magnitude deviation. :

[0042] in, This is the median of the norm updated in this round. This represents the median absolute deviation.

[0043] The historical reliability of a device can be determined based on the update process, expressed as: Then, based on the device's historical reliability, directional consistency score, amplitude deviation, and the current sample size in this round... By performing a weighted calculation, the basic credibility score can be obtained. :

[0044] in, , , , These are the weights corresponding to the directional consistency score, amplitude deviation, historical equipment reliability, and current sample size, respectively, and the sum of the four weights is 1. This refers to the set of devices currently participating in the training.

[0045] Step 104: The cloud master station performs current global model update and prediction constraint update processing based on local model update parameters and preset power grid physical constraints, and obtains physical consistency residuals by combining residual calculation. The preset power grid physical constraints are the constraint set configured for each preset electrical neighborhood.

[0046] To adapt to smart grid scenarios, this embodiment extends the statistical judgment of pure parameter space to three dimensions of verification: statistics, physics, and topology, solving the two types of misjudgment problems of pure statistical screening in existing technologies. The entire process can be divided into neighborhood partitioning, physical constraint configuration, and physical consistency analysis. Among them, neighborhood partitioning and physical constraint configuration can establish a mapping between equipment and the physical structure of the power grid, providing spatial boundaries and constraint basis for physical verification. Physical consistency analysis can complete the mapping from model parameter updates to power grid prediction output, and then to physical constraint verification, transforming the abstract update of parameter space into a verifiable physical state of the power grid, and judging the feasibility of the update from the perspective of operational rules.

[0047] Further, step 104 includes: The cloud master station divides the edge devices into multiple electrical neighborhoods based on the electrical connection relationship of the target power system to obtain the preset electrical neighborhoods. Configure various physical constraints for each preset electrical neighborhood to generate a set of power grid physical constraints, which includes multiple sets of preset power grid physical constraints. The verification prediction vector is generated by overlaying the current global model of the cloud main site with the updated parameters of the local model and combining them with public verification data. The verification prediction vector is substituted into the preset power grid physical constraints to calculate the residual, and the physical consistency residual is obtained.

[0048] It should be noted that, to adapt to smart grid scenarios, this embodiment extends the statistical judgment of pure parameter space to three dimensions: statistics, physics, and topology, to solve the two types of misjudgment problems of pure statistical screening in existing technologies. The entire process can be divided into neighborhood partitioning, physical constraint configuration, and physical consistency analysis. Among them, neighborhood partitioning and physical constraint configuration can establish a mapping between equipment and the physical structure of the power grid, providing spatial boundaries and constraint basis for physical verification. Physical consistency analysis can complete the mapping from model parameter updates to power grid prediction output, and then to physical constraint verification, transforming the abstract update of parameter space into a verifiable physical state of the power grid, and judging the feasibility of the update from the perspective of operational rules.

[0049] The cloud master station updates the current global model based on the local model update parameters, such as the initial global model. Then, it makes predictions based on this model and substitutes the prediction results into the constructed power grid physical constraints to realize constraint updates and complete the mapping from parameters to power grid predictions. The physical consistency analysis of the residual calculation can then be further mapped to physical constraint verification.

[0050] The cloud master station will divide the devices participating in this round of model training into multiple electrical neighborhoods based on the electrical connections of feeders, distribution areas, transformers, or microgrids; these are called pre-defined electrical neighborhoods. Then, various physical constraints can be configured for each neighborhood, meaning each neighborhood has a subset of physical constraints, which in turn form the power grid physical constraint set. Grid physical constraint set This includes multiple sets of pre-set power grid physical constraints, each set corresponding to a neighborhood. The pre-set power grid physical constraints include at least power balance constraints, upper and lower limits of equipment capacity constraints, and net load ramping constraints for adjacent time periods. The specific configuration can be based on the power grid operating characteristics; this is just an example and not a limitation.

[0051] The clipped model update parameters are obtained by clipping the local model update parameters. The data will be updated to the current global model by the cloud main site through overlay, and then prediction and verification will be performed based on the common verification data to generate a verification prediction vector. ; the verification prediction vector Substituting these values ​​into the pre-defined power grid physical constraints corresponding to the pre-defined electrical neighborhood, the corresponding power balance residual, capacity over-limit residual, and / or ramp over-limit residual are calculated respectively. Then, a weighted calculation is performed to obtain the physical consistency residual. .

[0052] Step 105: Calculate the neighborhood consistency score and update obsolescence based on the preset electrical neighborhood and global model version number, and generate the target confidence score by combining the basic confidence score and physical consistency residual.

[0053] This embodiment uses neighborhood consistency score calculation to retain reasonable updates that deviate from the global direction but are consistent within the neighborhood and physically feasible. The calculated update staleness penalty, which is a physical difference penalty, can suppress abnormal updates that are consistent with the global direction but lead to physical overreach. Moreover, staleness can be updated, and the decay of staleness can distinguish between communication-delayed updates and malicious abnormal updates, taking into account availability in scenarios with unstable communication.

[0054] Based on the predefined electrical neighborhoods, the local directional consistency of each neighborhood can be calculated. Then, by performing adjacency consistency analysis on all neighborhoods, the corresponding neighborhood consistency score can be determined. The update staleness is calculated based on the global model version number, so version number updates also drive staleness updates, enabling dynamic analysis of update lag caused by communication delays. Next, combining the basic trust score and physical consistency residual calculated above, a comprehensive score can be calculated, achieving trust enhancement processing in the physical and topological dimensions of the power grid to obtain the target trust score.

[0055] Further, step 105 includes: Local orientation consistency is calculated within a pre-defined electrical neighborhood, and the aggregation direction of adjacent neighborhoods is compared with the predicted residual of the boundary node to obtain the neighborhood consistency score. The update obsolescence is calculated by analyzing the degree of update lag caused by communication delay based on the global model version number. The target credibility score is generated by combining the basic credibility score, physical consistency residual, neighborhood consistency score, and update staleness.

[0056] It should be noted that this embodiment can retain reasonable updates that deviate from the global direction but are consistent within the neighborhood and physically feasible through neighborhood consistency score calculation; the physical difference penalty such as the calculated update staleness can suppress abnormal updates that are consistent with the global direction but will lead to physical over-limits. Moreover, the staleness can be updated, and the decay of the staleness can distinguish between communication delay updates and malicious abnormal updates, taking into account the availability in unstable communication scenarios.

[0057] Based on the predefined electrical neighborhoods, the local directional consistency of each neighborhood can be calculated. Then, by performing adjacency consistency analysis on all neighborhoods, the corresponding neighborhood consistency score can be determined. The update staleness is calculated based on the global model version number, so version number updates also drive staleness updates, enabling dynamic analysis of update lag caused by communication delays. Next, combining the basic trust score and physical consistency residual calculated above, a comprehensive score can be calculated, achieving trust enhancement processing in the physical and topological dimensions of the power grid to obtain the target trust score.

[0058] Specifically, local directional consistency is calculated within a predefined electrical neighborhood. By comparing the aggregation directions of adjacent neighborhoods and the predicted residuals of boundary nodes, the resulting neighborhood consistency score can be expressed as follows: Then, based on the current global model version number, the degree of update lag caused by communication latency is analyzed, and the obsoleteness of the current round can be calculated, denoted as update obsoleteness. That is, the obsolescence level changes dynamically based on the version number of the model update cycle.

[0059] Combining basic credibility score Physical consistency residuals Neighborhood consistency score and update obsolescence A comprehensive score can be calculated:

[0060] in, , , These are the weights corresponding to each score. The target credibility score is calculated by subtracting the physical residual penalty from the basic credibility score, adding the neighborhood consensus reward, and subtracting the obsolescence penalty to obtain the most accurate and reliable credibility score.

[0061] It should be noted that the edge device updates with the global model version number required for training, and the cloud master station calculates the version difference and decays the weight of late updates. If the late update still satisfies the physical constraints within its electrical neighborhood and is consistent with the neighborhood direction, it is allowed to participate in the aggregation with a lower weight, thus taking into account both availability and robustness in unstable communication scenarios.

[0062] Step 106: Combine the target credibility score and update staleness to perform dynamic credibility device screening and parameter aggregation calculation, and update the global model update parameters.

[0063] Further, step 106 includes: The screening threshold is dynamically determined based on the median and median absolute deviation of the target credibility scores of all edge devices. Trusted devices are categorized based on screening thresholds to determine the set of trusted devices. The aggregation contribution analysis of the set of trusted devices is performed based on the target trustworthiness score and update obsolescence to obtain the aggregation weight; The initial parameters of the global model are updated based on the aggregated weights to obtain the updated parameters of the global model.

[0064] It should be noted that the calculated target trust score can assess the trustworthiness of edge devices. Therefore, based on this concept, adaptive device filtering and trust aggregation operations can be implemented. From the data sequence consisting of the target trust scores of all edge devices, the corresponding median and median absolute deviation can be selected. Based on the median and median absolute deviation, an adaptive filtering threshold can be determined. According to this adaptive filtering threshold, dynamic filtering of edge devices can be achieved, classifying edge devices into trusted devices and other devices. Specifically, devices with scores not lower than the filtering threshold can be classified as trusted devices, generating a set of trusted devices.

[0065] In the special case where the number of devices in the set of trusted devices is insufficient, this embodiment can automatically adjust the capacity limit or revert to the effective model obtained in the previous round of training, and reduce the historical reliability of devices that were not selected, so that they will not be permanently excluded due to deviation from the devices in a single round of training.

[0066] This embodiment achieves dynamic device screening by using the median and median absolute deviation, rather than based on a fixed threshold. This is more adaptable to the statistical distribution differences under different training rounds and compositions, and can improve the stability of anomaly identification. At the same time, a fallback mechanism is set up to ensure that the training process is not affected or interrupted when the number of sets is insufficient, which is more in line with the characteristics of real-world scenarios.

[0067] Based on the target credibility score and update staleness, an aggregation contribution analysis can be performed on the selected set of credible devices. Specifically, the aggregation contribution of each device is analyzed based on the current sample size, target credibility score, and update staleness to determine the corresponding aggregation weight. The initial parameters of the global model can be updated by weighted calculation based on the aggregation weight, and the update parameters of the global model can be determined.

[0068] This embodiment determines the aggregation weight by comprehensively considering multiple factors, and then updates the model parameters based on the aggregation weight, instead of simply averaging or purely weighting by sample size. This results in higher reliability, with higher-quality data contributing more weight to the aggregation, which can further improve the robustness and accuracy of the global model.

[0069] Step 107: Execute the power grid prediction task by issuing global model update parameters through the cloud master station, update the relevant parameters of model optimization according to the generated prediction performance indicators, until the preset iteration conditions are met, and then output the target global optimization model.

[0070] After aggregation and updating, predictions can be distributed based on the global model update parameters. Specifically, the global model update parameters are distributed by the cloud master station, and the edge devices perform actual power grid prediction tasks based on these parameters, generating corresponding prediction results. Based on the prediction results, prediction performance indicators can be determined. Based on these indicators, a series of dynamic related parameters in the model optimization process are updated, which can trigger a new round of iterative optimization until the preset iteration conditions are met. At this point, the global model aggregated and updated in the cloud master station can be output as the target global optimization model.

[0071] This embodiment deeply integrates model aggregation and updates with power grid prediction performance, forming a complete closed loop of training, screening, aggregation, prediction, and feedback. Robust optimization is achieved through predictable improvement in prediction accuracy and reduction of power grid physical problems.

[0072] Further, step 107 includes: The global model update parameters are distributed from the cloud master station, and the prediction task is performed in combination with the local power grid data for the next time period to obtain the predicted value. Based on the analysis of prediction errors and the number of physical constraint violations between predicted and actual observed values, prediction performance indicators are generated. Based on the prediction error, update all relevant parameters of the edge device's model optimization until the preset iteration conditions are met, then output the target global optimization model.

[0073] In this embodiment, the global model update parameters are aggregated and updated and then distributed to each edge device participating in this round of model training via the cloud master station. The edge devices update their local models based on these parameters and then begin the prediction for the next time period. That is, they perform prediction tasks based on local power grid data to obtain predicted values. Based on the predicted values ​​and the actual observation values ​​obtained from the power grid, the prediction error can be calculated, the number of times the power grid physical constraints are exceeded can be analyzed, and model performance evaluation and power grid physical constraint analysis can be achieved. These concepts are referred to as prediction performance indicators.

[0074] By combining the prediction error in the prediction performance metrics with the marginal contribution of each edge device update, all dynamically updated parameters in the edge devices can be updated. These parameters are related to model optimization, such as device historical reliability, probability / weight of device selection in the next round, norm pruning upper limit, and confidence score weight. Furthermore, if a power grid state exceeds a limit (i.e., a physical constraint exceeds a limit), it can trigger that neighborhood to upload data earlier or retrain the model, while other electrical neighborhoods maintain their original training cycle. In other words, this embodiment can optimize communication efficiency through an event-triggered mechanism. Here, exceeding a power grid state limit can be due to load ramping, power residual, or prediction error exceeding a limit.

[0075] It is understandable that the forecasting tasks performed locally can include electricity load forecasting, renewable energy output forecasting, and / or electricity consumption anomaly identification, etc., and there are no restrictions here; moreover, the local power grid-related data to be prepared can be determined according to the specific forecasting task. In addition, based on the predicted values ​​and the actual observed values, calculations can include not only simple prediction differences, but also mean absolute error, root mean square error, or classification accuracy. Any indicators that can reflect the model's predictive performance can be solved independently, and there are no restrictions here.

[0076] In specific scenarios, the application examples of the method proposed in this embodiment can be adaptively adjusted. For short-term load forecasting of distribution substations, an electrical neighborhood is formed by the smart meters connected to the distribution transformers. The edge server first forms a local reference direction within the substation and calculates the power balance residual between the predicted total load of the substation and the measured power of the transformer; the cloud master station only performs cross-substation aggregation on model updates that pass the substation discrimination and do not increase the transformer capacity residual. When a substation experiences a real load surge due to concentrated charging of electric vehicles, as long as the directions of multiple devices within the substation are consistent and the power residual does not exceed the limit, it is retained even if its direction deviates from the global center.

[0077] For net load forecasting of microgrids with distributed photovoltaic (PV) systems, PV inverters, energy storage devices, and load terminals are grouped into an electrical neighborhood. The physical consistency residual is determined by net load balance, PV rated output, upper limit of energy storage charging and discharging power, and state of charge boundary. When a candidate update causes the predicted output to exceed the rated capacity or the energy storage state of charge to exceed the boundary, its aggregation weight is reduced even if its gradient direction is consistent with the global center.

[0078] The cloud-edge-device model optimization method for power system forecasting provided in this application dynamically prunes the local model update parameters using norm pruning, which can suppress the interference of abnormally large value updates. Furthermore, constructing a reference direction vector through robust calculation reduces the influence of a few abnormal updates on the reference direction. Multi-dimensional scoring is performed by combining direction consistency, magnitude deviation, and historical reliability, replacing the existing single-direction angle discrimination. Trustworthy devices are then selected based on the scores, and aggregated according to reliability weights, effectively distinguishing between normal personalized updates and noisy updates. This overcomes the instability problems of fixed thresholds and simple average aggregation techniques, adapts to changes in device composition in different rounds, and improves the stability of anomaly identification. In addition, based on pre-set electrical neighborhood configuration of power grid physical constraints, the model is transformed into constraint residuals, completing the mapping from parameter space to physical operating space. Simultaneously, neighborhood consistency scores are calculated to supplement consensus discrimination from a topological perspective, reducing both the false inclusion of statistically consistent but physically excessive data and the false deletion of data with directional deviations but reasonable operation, ensuring that update selection aligns with power grid operating patterns. Furthermore, by distributing the aggregated global model update parameters to execute the power grid prediction task, and then triggering the next round of model update optimization, an optimization closed loop is formed. This enables dynamic collaborative optimization of equipment reliability and model aggregation strategy, thereby ensuring model performance. Therefore, the embodiments of this application can solve the technical problems of existing technologies that rely on fixed mechanisms and have insufficient aggregation robustness, resulting in poor detection stability, and that fail to perform physical verification based on power grid characteristics and participate in model collaborative optimization, leading to poor model performance and a high risk of misjudgment.

[0079] For easier understanding, please refer to Figure 2 This application provides an embodiment of a cloud-edge-device model optimization system for power system forecasting, used to perform any of the methods described in the above method embodiments, including: The initial update unit 201 is used to send the initial global model parameters and training configuration parameters to each edge device through the cloud main station, so as to enable the edge devices to train the model and upload the local model update parameters. The clipping calculation unit 202 is used to dynamically clip the local model update parameters using a preset clipping norm, and combined with mathematical robust calculation, to determine the unit direction vector and the reference direction vector. The multidimensional scoring unit 203 is used to perform multidimensional scoring calculations based on the unit direction vector, reference direction vector, median absolute deviation and equipment historical reliability to obtain a basic reliability score. The physical analysis unit 204 is used to perform current global model update and prediction constraint update processing based on local model update parameters and preset power grid physical constraints through the cloud master station, and obtain physical consistency residuals by combining residual calculation. The preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. The credibility enhancement unit 205 is used to calculate the neighborhood consistency score and update staleness based on the preset electrical neighborhood and global model version number, and generate the target credibility score by combining the basic credibility score and physical consistency residual. The aggregation update unit 206 is used to combine the target credibility score and update staleness to perform dynamic credibility device screening and parameter aggregation calculation, and update the global model update parameters. The optimization iteration unit 207 is used to execute the power grid prediction task by issuing global model update parameters through the cloud master station. It updates the relevant parameters of model optimization according to the generated prediction performance indicators until the preset iteration conditions are met, and then outputs the target global optimization model.

[0080] This application also provides a cloud-edge-device model optimization device for power system forecasting, the device including a processor and memory; The memory is used to store program code and transfer the program code to the processor; The processor is used to execute the cloud-edge-device model optimization method for power system forecasting according to the instructions in the program code of the above method embodiment.

[0081] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0082] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0083] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0084] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for executing all or part of the steps of the methods described in the various embodiments of this application through a computer device (which may be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0085] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A cloud-edge-end model optimization method for power system forecasting, characterized in that, include: The initial global model parameters and training configuration parameters are distributed to each edge device through the cloud main station, prompting the edge device to train the model and upload the local model update parameters. The local model update parameters are dynamically clipped using a preset clipping norm, and the unit direction vector and reference direction vector are determined by combining mathematical robust calculation. A multi-dimensional scoring calculation is performed based on the unit direction vector, the reference direction vector, the median absolute deviation, and the historical reliability of the equipment to obtain a basic reliability score. The cloud master station performs current global model updates and predictive constraint updates based on the local model update parameters and preset power grid physical constraints, and obtains physical consistency residuals by combining residual calculations. The preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. Based on the preset electrical neighborhood and global model version number, the neighborhood consistency score and update staleness are calculated respectively, and the target confidence score is generated by combining the basic confidence score and the physical consistency residual. By combining the target credibility score and the update obsolescence, dynamic credibility device screening and parameter aggregation calculation are performed to update the global model update parameters. The power grid prediction task is executed by distributing the global model update parameters through the cloud master station. The relevant parameters for model optimization are updated based on the generated prediction performance indicators until the preset iteration conditions are met, and then the target global optimization model is output.

2. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process of distributing the initial global model parameters and training configuration parameters to each edge device via the cloud main station, prompting the edge devices to perform model training and upload local model update parameters, includes: The cloud main station distributes the initial global model parameters and training configuration parameters to each edge device, prompting the edge devices to perform local parameter initialization processing to obtain the local model initial parameters. Based on the initial parameters of the local model, prediction training is performed according to relevant local power grid data to obtain the updated parameters of the local model, which are then uploaded to the cloud main station. The local power grid related data includes local historical load, local meteorological data, and distributed energy data.

3. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process of dynamically pruning the local model update parameters using a preset pruning norm, and determining the unit direction vector and reference direction vector by combining mathematical robust calculations, includes: Calculate the pruning upper limit based on the statistics of the current update norm; Within the range of the clipping upper limit, the local model update parameters are dynamically clipped using a preset clipping norm to obtain clipped model update parameters; The update parameters of the cropping model are normalized to generate a unit direction vector; A comprehensive mathematical robustness calculation is performed on the unit direction vector, and then normalized to obtain a reference direction vector. The comprehensive mathematical robustness calculation includes median calculation and truncated mean calculation.

4. The cloud-edge-end model optimization method for power system forecasting according to claim 3, characterized in that, The basic reliability score is obtained by multi-dimensional scoring based on the unit direction vector, the reference direction vector, the median absolute deviation, and the historical reliability of the equipment, including: Cosine similarity calculation is performed based on the unit direction vector and the reference direction vector to obtain the direction consistency score; Based on the updated parameters of the cropping model and the median absolute deviation, the norm deviation is calculated to determine the magnitude deviation. A basic reliability score is obtained by weighting the device's historical reliability, the direction consistency score, the amplitude deviation, and the current sample size.

5. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process involves updating the current global model and predictive constraints via the cloud master station based on the local model update parameters and preset power grid physical constraints, and then calculating the physical consistency residuals, including: The cloud master station divides the edge devices into multiple electrical neighborhoods based on the electrical connection relationship of the target power system to obtain the preset electrical neighborhoods. Multiple physical constraints are configured for each of the preset electrical neighborhoods to generate a set of power grid physical constraints, which includes multiple sets of preset power grid physical constraints. The verification prediction vector is generated by overlaying the local model's update parameters onto the current global model of the cloud main station and combining them with public verification data. The verification prediction vector is substituted into the preset power grid physical constraints to perform residual calculation, and the physical consistency residual is obtained.

6. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process of calculating neighborhood consistency score and update staleness based on the preset electrical neighborhood and global model version number, and generating target confidence score by combining the basic confidence score and the physical consistency residual, includes: Local orientation consistency is calculated within the preset electrical neighborhood, and the aggregation direction of adjacent neighborhoods is compared with the predicted residual of the boundary node to obtain the neighborhood consistency score. The update obsolescence is calculated by analyzing the degree of update lag caused by communication delay based on the global model version number. The target credibility score is generated by combining the basic credibility score, the physical consistency residual, the neighborhood consistency score, and the update staleness.

7. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process of combining the target trust score and the update staleness to perform dynamic trust device screening and parameter aggregation calculation, and updating the global model update parameters, includes: The screening threshold is dynamically determined based on the median and median absolute deviation of the target credibility scores of all edge devices. Based on the aforementioned screening threshold, trusted devices are divided to determine the set of trusted devices; Based on the target trustworthiness score and update obsolescence, an aggregation contribution analysis is performed on the set of trustworthy devices to obtain the aggregation weight; The global model initial parameters are updated based on the aggregated weights to obtain the global model update parameters.

8. The cloud-edge-end model optimization method for power system forecasting according to claim 1, characterized in that, The process of executing the power grid prediction task by distributing the global model update parameters through the cloud master station, updating the relevant parameters for model optimization based on the generated prediction performance indicators, and continuing until a preset iteration condition is met, then outputting the target globally optimized model, includes: The global model update parameters are distributed through the cloud master station, and the prediction task is performed in combination with the local power grid related data for the next time period to obtain the predicted value; Based on the predicted values ​​and the actual observed values, the prediction error and the number of times physical constraints are exceeded are analyzed to generate prediction performance indicators. Based on the prediction error, update all relevant parameters of the edge device's model optimization until a preset iteration condition is met, then output the target global optimization model.

9. A cloud-edge-device model optimization system for power system forecasting, used to execute the method according to any one of claims 1-8, characterized in that, include: The initial update unit is used to send the initial global model parameters and training configuration parameters to each edge device through the cloud main station, so that the edge device can train the model and upload the local model update parameters. The clipping calculation unit is used to dynamically clip the local model update parameters using a preset clipping norm, and combine mathematical robust calculation to determine the unit direction vector and the reference direction vector. A multi-dimensional scoring unit is used to perform multi-dimensional scoring calculations based on the unit direction vector, the reference direction vector, the median absolute deviation, and the historical reliability of the equipment to obtain a basic reliability score. The physical analysis unit is used to perform current global model update and prediction constraint update processing based on the local model update parameters and preset power grid physical constraints through the cloud master station, and to obtain physical consistency residuals by combining residual calculations. The preset power grid physical constraints are a set of constraints configured for each preset electrical neighborhood. The trust enhancement unit is used to calculate the neighborhood consistency score and update staleness based on the preset electrical neighborhood and global model version number, and generate the target trust score by combining the basic trust score and the physical consistency residual. The aggregation and update unit is used to combine the target trust score and the update staleness to perform dynamic trust device screening and parameter aggregation calculation, and update the global model update parameters. The optimization iteration unit is used to execute the power grid prediction task by issuing the global model update parameters through the cloud master station, and update the relevant parameters of model optimization according to the generated prediction performance index until the preset iteration conditions are met, and then output the target global optimization model.

10. A cloud-edge-device model optimization device for power system forecasting, characterized in that, The device includes a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the cloud-edge-device model optimization method for power system forecasting as described in any one of claims 1-8, according to the instructions in the program code.