Hybrid mechanism and data-driven model-based power plant energy consumption analysis method and device

By integrating mechanism and data-driven model energy consumption analysis methods, the problems of decreased accuracy and insufficient decomposition capacity in hydropower plant energy consumption analysis have been solved. This has enabled adaptive high-precision decomposition and anomaly diagnosis of the entire plant's energy consumption, reducing the workload of manual analysis.

CN123179333APending Publication Date: 2026-11-27GUIZHOU WUJIANG HYDROPOWER DEV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611710734.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing energy consumption analysis methods for hydropower plants cannot adapt to dynamic changes in operating conditions, resulting in decreased fusion accuracy, inability to decompose energy consumption in a fine-grained manner, and inconsistency between the autoencoder of the data-driven model and the training objective of the prediction network, leading to suboptimal feature representation.

Method used

An energy consumption analysis method based on fusion mechanism and data-driven model is adopted. By jointly training the energy consumption model, dynamic fusion weights are generated by combining static operating condition characteristics and operating condition change rate characteristics, and a partitioned residual decomposition model is constructed to achieve adaptive high-precision decomposition and anomaly diagnosis of the entire plant's energy consumption.

Benefits of technology

It achieves stable accuracy in estimating the plant's energy consumption under both steady-state and dynamic conditions, realizes fine-grained decomposition of the plant's energy consumption, and reduces the workload of manual analysis through multi-level anomaly diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179333A_ABST
    Figure CN123179333A_ABST
Patent Text Reader

Abstract

The application discloses a kind of fusion mechanism and data-driven model's hydropower plant energy consumption analysis method and device, it is related to hydropower plant energy consumption analysis technical field, the method includes: using mechanism energy consumption model obtains mechanism sub-item energy consumption and forms mechanism total energy consumption;Run data are input into joint training energy consumption model and obtain data-driven energy consumption;According to static working condition characteristics and working condition change rate characteristics, generate current fusion weight and smooth processing, get smooth weight;According to smooth weight, fuse mechanism total energy consumption and data-driven total energy consumption and get preliminary total energy consumption;According to static working condition characteristics, determine operation working condition partition, using partition residual decomposition model total energy consumption residual is distributed to each energy consumption link;Determine the final sub-item energy consumption of each link and generate analysis result.The application realizes the self-adapting high-precision decomposition of whole plant energy consumption by smoothing dynamic fusion and partition residual compensation, solves the problem that traditional fusion method cannot adapt to working condition dynamic change and cannot accurately decompose total energy consumption to each link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hydropower plant energy consumption analysis and intelligent operation and maintenance technology, specifically to a hydropower plant energy consumption analysis method and device that integrates mechanism and data-driven model. Background Technology

[0002] As a large-scale energy conversion system, the energy consumption of a hydropower plant is extremely complex, involving multiple layers of coupling among various energy-consuming links, such as main transformer losses, high-voltage station service transformer losses, low-voltage station service transformer losses, excitation system losses, generator losses, and station service power system losses. The energy consumption proportion of each link changes dynamically with operating conditions (load level, power factor, ambient temperature, cooling water temperature, etc.), and traditional single-link independent analysis methods are difficult to accurately reflect the true distribution and variation of the plant's overall energy consumption.

[0003] Currently, energy consumption analysis methods for hydropower plants are mainly divided into two categories. The first category is the mechanistic model method, which establishes energy consumption calculation models for each piece of equipment based on physical principles, such as the classic formulas for transformer no-load loss and load loss, the power balance equation of the excitation system, and the calculation formulas for copper and iron losses of generators. This method has strong physical interpretability, but the model parameters are usually based on equipment nameplate parameters or factory tests, which cannot reflect the actual loss characteristics changes after long-term operation, resulting in limited accuracy. The second category is the data-driven method, represented by deep learning models such as Long Short-Term Memory Networks (LSTM) and autoencoders. This method learns energy consumption patterns from historical operating data, achieving higher accuracy but being completely black-box and unable to explain the physical origins of each energy consumption component.

[0004] The most relevant existing technology to this solution is the simple weighted fusion method, which weights the calculation results of the mechanistic model and the prediction results of the data-driven model according to fixed weights or empirical rules to obtain the final energy consumption estimate. However, this method has three main drawbacks: First, fixed weights or empirical rules cannot adapt to the dynamic changes in operating conditions. When a hydropower plant switches from full-load steady-state operation to a rapid load adjustment phase, the relative accuracy of the two models changes significantly, and fixed fusion weights lead to a decrease in accuracy or even fusion oscillations. Second, the total energy consumption output by fusion lacks fine-grained decomposition capabilities, making it impossible to accurately decompose the total energy consumption into specific energy-consuming links, making it difficult for operation and maintenance personnel to locate specific equipment with abnormal energy consumption. Third, the autoencoder and prediction network in the data-driven model are usually trained independently in two stages. The reconstruction goal of the autoencoder is inconsistent with the task goal of the subsequent prediction network, resulting in the encoded feature representation not being optimal for the prediction task. Summary of the Invention

[0005] To address the shortcomings of existing hydropower plant energy consumption analysis methods, such as fixed fusion weights or empirical rules failing to adapt to dynamic changes in operating conditions, the relative accuracy of the two models changes significantly when operating conditions switch, leading to decreased fusion accuracy or even fusion oscillations. Furthermore, the fused total energy consumption output lacks fine-grained decomposition capabilities, failing to accurately decompose total energy consumption into specific energy-consuming components, making it difficult for maintenance personnel to pinpoint specific equipment with abnormal energy consumption. Additionally, the autoencoder and prediction network in the data-driven model employ two-stage independent training, resulting in inconsistencies between the reconstruction objective and the prediction task objective, leading to feature representations that are not optimal for the prediction task. This invention provides a hydropower plant energy consumption analysis method and apparatus based on a fusion mechanism and a data-driven model, achieving adaptive, high-precision decomposition and anomaly diagnosis of the entire plant's energy consumption.

[0006] To address the aforementioned technical problems, this invention provides a method for analyzing the energy consumption of hydropower plants that integrates mechanistic mechanisms and data-driven models, comprising:

[0007] Obtain operational data from each energy-consuming stage of the hydropower plant, use a mechanistic energy consumption model to calculate the mechanistic component energy consumption, and form the total mechanistic energy consumption.

[0008] The running data is input into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task.

[0009] The current fusion weight is generated based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and the current fusion weight is smoothed by combining the historical fusion weights to obtain a smoothed fusion weight.

[0010] The total energy consumption of the mechanism and the total energy consumption of the data-driven process are fused according to the smooth fusion weight to obtain the preliminary total energy consumption.

[0011] Based on the static operating condition characteristics, the operating condition partition is determined, and the partition residual decomposition model corresponding to the operating condition partition is called. The total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption is allocated to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link.

[0012] Based on the mechanistic energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the links, the final energy consumption of each energy-consuming link is determined, and the energy consumption analysis results of the hydropower plant are generated based on the final energy consumption.

[0013] Furthermore, the step of using the mechanistic energy consumption model to calculate the mechanistic component energy consumption and form the total mechanistic energy consumption includes: obtaining the equipment parameters and environmental parameters of the energy-consuming equipment from the operating data. The equipment parameters include the transformer's no-load loss parameters, load loss parameters, load rate, excitation current, excitation voltage, rectification efficiency, stator current, magnetic flux density, and operating frequency. The environmental parameters include ambient temperature and cooling water temperature.

[0014] Based on the no-load loss parameters, the load loss parameters, and the load rate, the transformer's mechanistic energy consumption is calculated; based on the excitation current, the excitation voltage, and the rectification efficiency, the excitation system's mechanistic energy consumption is calculated; based on the stator current, the magnetic flux density, and the operating frequency, the generator stator copper loss, generator iron loss, and generator mechanical loss are calculated respectively, and the generator stator copper loss, generator iron loss, and generator mechanical loss are summed to obtain the generator's mechanistic energy consumption; an ambient temperature correction coefficient is determined according to the correspondence between the ambient temperature and the operating efficiency of the energy-consuming equipment, and a cooling water temperature correction coefficient is determined according to the correspondence between the cooling water temperature and the generator efficiency; using the ambient temperature correction coefficient and the cooling water temperature correction coefficient, the transformer's mechanistic energy consumption, the excitation system's mechanistic energy consumption, and the generator's mechanistic energy consumption are corrected to obtain the mechanistic component energy consumption of each energy-consuming link, and the mechanistic component energy consumption is summarized to form the total mechanistic energy consumption.

[0015] Furthermore, the jointly trained energy consumption model includes an encoder, a decoder, and a temporal prediction network; the end-to-end joint training based on the feature reconstruction task and the energy consumption prediction task includes: extracting electrical features, operational features, environmental features, and temporal features from the operational data, and constructing the electrical features, operational features, environmental features, and temporal features into a temporal feature tensor according to a preset time window;

[0016] The encoder maps the temporal feature tensor to a latent feature representation; the decoder generates a reconstructed temporal feature tensor based on the latent feature representation; the temporal prediction network generates predicted total energy consumption and predicted component energy consumption based on the latent feature representation; the feature reconstruction loss is determined based on the temporal feature tensor and the reconstructed temporal feature tensor, and the energy consumption prediction loss is determined based on the predicted total energy consumption, the predicted component energy consumption, and the corresponding measured energy consumption; the feature reconstruction loss and the energy consumption prediction loss are combined according to the reconstruction loss weight and the prediction loss weight to obtain a joint training loss, and the model parameters of the encoder, the decoder, and the temporal prediction network are updated synchronously based on the joint training loss to obtain the trained joint training energy consumption model.

[0017] Further, it includes: the electrical characteristics include voltage, current, active power, reactive power, and power factor; the operating characteristics include load rate, unit start-up and shutdown status, and load adjustment frequency; the environmental characteristics include ambient temperature, ambient humidity, and cooling water temperature; the time characteristics include hourly cycle encoding, weekly cycle encoding, and seasonal cycle encoding; the time-series prediction network is a long short-term memory network, used to output a total plant energy consumption prediction sequence as the predicted total energy consumption and a sub-item energy consumption prediction sequence corresponding one-to-one with each energy-consuming link as the predicted sub-item energy consumption.

[0018] Further, the step of generating the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and smoothing the current fusion weight by combining it with historical fusion weights to obtain smoothed fusion weights, includes: extracting the load rate, power factor, and ambient temperature at the current moment from the operating data to form the static operating condition characteristics; calculating the first difference of the load rate based on the load rate at the current moment and the load rate at previous moments, and calculating the power factor change rate based on the power factor at the current moment and the power factor at previous moments to form the operating condition change rate characteristics; concatenating the static operating condition characteristics and the operating condition change rate characteristics to form the gated input characteristics; and applying the gated input characteristics to the gated input data. The input features are used to fusion gating network to obtain candidate weights for the mechanistic model and candidate weights for the data-driven model. The candidate weights for the mechanistic model and candidate weights for the data-driven model are normalized so that their sum is 1, resulting in normalized candidate weights. The normalized candidate weights and the historical fusion weights are exponentially smoothed using a preset smoothing coefficient to obtain smoothed weights for the mechanistic model and smoothed weights for the data-driven model. The smoothed weights for the mechanistic model and the smoothed weights for the data-driven model are then combined to form the smoothed fusion weights of the current fusion weights.

[0019] Further, the method includes: the preset smoothing coefficient is set to a value between 0.8 and 0.95; the normalized candidate weights are multiplied by the preset smoothing coefficient, and the corresponding historical fusion weights are multiplied by the difference obtained by subtracting the preset smoothing coefficient from one; the two products are summed to obtain the corresponding smoothed fusion weights; the preliminary total energy consumption is determined by using the product of the mechanism model smoothing weights and the total energy consumption of the mechanism, and the product of the data-driven model smoothing weights and the total energy consumption of the data-driven model.

[0020] Further, the step of determining the operating condition partitions based on static operating condition characteristics, calling the partition residual decomposition model corresponding to the operating condition partitions, and allocating the total energy consumption residual to each energy-consuming link to obtain the link residual allocation value for each energy-consuming link includes: dividing the load rate into load rate intervals, the load rate intervals including a first load rate interval, a second load rate interval, and a third load rate interval; dividing the power factor into power factor intervals, the power factor intervals including a leading power factor interval, a unity power factor neighborhood, and a lagging power factor interval; and establishing nine operating conditions based on the combination of the load rate intervals and the power factor intervals. Operating condition partitioning: For each operating condition partition, a partition residual decomposition model is trained using historical operating condition parameters and historical energy consumption residuals of each operating condition partition; the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption is calculated; based on the combination of the load rate interval to which the current load rate belongs and the power factor interval to which the current power factor belongs, a target operating condition partition is determined from the nine operating condition partitions; the current load rate and the current power factor are used as current operating condition parameters and input into the partition residual decomposition model corresponding to the target operating condition partition to obtain the residual allocation ratio of each energy-consuming link;

[0021] The total energy consumption residual is allocated to each energy-consuming link according to the residual allocation ratio to obtain the link residual allocation value of each energy-consuming link.

[0022] Further, it includes: the first load rate interval, the second load rate interval, and the third load rate interval are respectively intervals with load rates not lower than 0 and less than 40%, load rates not lower than 40% and less than 70%, and load rates not lower than 70% and not higher than 100%; the sum of the residual allocation ratios output by the partition residual decomposition model is 1; the corresponding mechanism-based energy consumption and data-driven energy consumption are fused according to the smoothing fusion weight to obtain preliminary energy consumption, and the preliminary energy consumption is added to the corresponding link residual allocation value to obtain the final energy consumption.

[0023] Further, the step of generating hydropower plant energy consumption analysis results based on the final sub-item energy consumption includes: calculating evaluation indicators based on the final sub-item energy consumption, the evaluation indicators including the energy consumption ratio of each energy-consuming link, energy consumption per unit of power generation, year-on-year change in energy consumption, and month-on-month change in energy consumption; determining the baseline mean and baseline standard deviation based on the rolling historical data corresponding to the evaluation indicators; generating a concern-level warning when the deviation between the evaluation indicator and the baseline mean exceeds twice the baseline standard deviation, and generating an anomaly-level warning when the deviation exceeds three times the baseline standard deviation; responding to the concern-level warning or the anomaly-level warning, determining the abnormal driving factors and corresponding attribution confidence based on the mechanistic residual between actual energy consumption and mechanistic energy consumption and the contribution weight of the jointly trained energy consumption model to the input features; and generating an energy consumption diagnostic report containing energy consumption trends, abnormal energy-consuming links, attribution results, and maintenance recommendations based on the final sub-item energy consumption, warning results, abnormal driving factors, and attribution confidence.

[0024] This invention also provides a hydropower plant energy consumption analysis device that integrates mechanism and data-driven model, comprising:

[0025] The mechanism calculation module is used to acquire the operating data of each energy-consuming link in the hydropower plant, calculate the mechanism sub-item energy consumption using the mechanism energy consumption model, and form the total mechanism energy consumption;

[0026] The data-driven prediction module is used to input the running data into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task.

[0027] The fusion weight module is used to generate the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and to smooth the current fusion weight by combining it with the historical fusion weight to obtain a smoothed fusion weight.

[0028] The dynamic fusion module is used to fuse the total energy consumption of the mechanism and the total energy consumption of the data-driven process according to the smooth fusion weight to obtain a preliminary total energy consumption.

[0029] The residual allocation module is used to determine the operating condition partition based on the static operating condition characteristics, call the partition residual decomposition model corresponding to the operating condition partition, and allocate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link.

[0030] The energy consumption analysis module is used to determine the final energy consumption of each energy-consuming link based on the mechanism-based energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the link, and to generate the hydropower plant energy consumption analysis results based on the final energy consumption.

[0031] The beneficial effects of this invention are as follows:

[0032] 1. This invention organically combines the interpretability of the mechanistic model with the high precision of the data-driven model, and uses a smooth dynamic fusion mechanism to eliminate weight jitter during operating condition switching, so that the plant-wide energy consumption estimation accuracy remains stable under both steady-state and dynamic operating conditions. This solves the problem of accuracy decline caused by the inability of traditional fixed-weight fusion methods to adapt to changes in operating conditions.

[0033] 2. This invention constructs nine operating condition partitions that combine load rate and power factor in two dimensions, and independently fits a residual decomposition model in each partition to accurately allocate the total energy consumption residual to each energy-consuming link, thereby realizing fine-grained decomposition of the plant's energy consumption and solving the defect that traditional global regression cannot characterize the differences in residual distribution under different operating conditions.

[0034] 3. This invention combines feature reconstruction loss and energy consumption prediction loss into a unified joint training objective, enabling the latent feature representation generated by the autoencoder to directly serve the energy consumption prediction task, thus eliminating the suboptimal feature representation problem caused by the inconsistency between the autoencoder reconstruction objective and the prediction task objective in traditional two-stage independent training.

[0035] 4. This invention constructs a fully automated pipeline from mechanism calculation to data-driven prediction, smooth dynamic fusion, partition residual compensation, and multi-level anomaly diagnosis and report generation. It directly outputs energy consumption decomposition results and anomaly diagnosis reports from raw operating data, which greatly reduces the workload and subjectivity of manual analysis. Attached Figure Description

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

[0037] Figure 1 This is a schematic diagram of the overall process of the hydropower plant energy consumption analysis method that integrates mechanism and data-driven model according to the present invention;

[0038] Figure 2 This is a schematic diagram of the process of calculating the total energy consumption of the mechanism in the computer according to the present invention;

[0039] Figure 3 This is a schematic diagram of the dynamic fusion process of the fusion of gating network and exponential smoothing in this invention;

[0040] Figure 4 This is a schematic diagram of the nine-partition and partition residual decomposition process of the present invention;

[0041] Figure 5 This is a schematic diagram of the multi-level energy consumption anomaly diagnosis and standardized report generation process of the present invention;

[0042] Figure 6 This is a schematic diagram of the hydropower plant energy consumption analysis device that integrates mechanism and data-driven model according to the present invention. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0044] Example 1

[0045] like Figure 1 As shown, this invention provides a method for analyzing the energy consumption of hydropower plants that integrates mechanisms and data-driven models, including:

[0046] S1: Obtain operational data for each energy-consuming component of the hydropower plant, use the mechanistic energy consumption model to calculate the mechanistic component energy consumption, and form the total mechanistic energy consumption.

[0047] Real-time operational data from all energy-consuming components of the hydropower plant is collected, including electrical, operational, and environmental parameters of major energy-consuming equipment such as transformers, excitation systems, and generators. The collected operational data undergoes data cleaning and time alignment, removing abnormal jumps and missing segments to ensure consistent timestamps across all components. Using a pre-established mechanistic energy consumption model, based on the physical principles and nameplate parameters of each energy-consuming device, the mechanistic energy consumption of each component is calculated. The mechanistic energy consumption model is based on classical calculations of transformer no-load and load losses, the power balance equation of the excitation system, and the formulas for calculating stator copper and iron losses of the generator, allowing for independent calculations of each energy-consuming component. The mechanistic energy consumption of each component is then summed to obtain the total mechanistic energy consumption of the entire plant.

[0048] S2: Input the running data into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task.

[0049] The collected operational data is constructed into a time-series feature tensor and input into the jointly trained energy consumption model. The jointly trained energy consumption model consists of three components: an encoder, a decoder, and a time-series prediction network. The encoder compresses the high-dimensional time-series feature tensor into a low-dimensional latent feature representation. The decoder reconstructs the original time-series feature tensor from the latent feature representation. The time-series prediction network predicts the total energy consumption of the entire plant and the energy consumption of each energy-consuming component based on the latent feature representation. The feature reconstruction loss and energy consumption prediction loss of the jointly trained energy consumption model are combined into a unified joint training loss for end-to-end backpropagation, synchronously updating all model parameters of the encoder, decoder, and time-series prediction network. Before being deployed online, the jointly trained energy consumption model needs to be trained offline using historical operational data from the hydropower plant. The training dataset covers all typical operating conditions of the entire plant, including operational data under different load levels, different power factor conditions, and different ambient temperatures, ensuring that the model has good generalization ability for all operating conditions. During online inference, the encoder maps the temporal feature tensor of the current moment to a latent feature representation. The temporal prediction network then performs a forward prediction step based on the latent feature representation to output the total energy consumption of the entire plant and the predicted values ​​of each component energy consumption at the current moment. The step size is consistent with the preset time window length.

[0050] S3: Generate the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and smooth the current fusion weight by combining it with the historical fusion weight to obtain a smoothed fusion weight.

[0051] Static operating condition features (load rate, power factor, ambient temperature) and operating condition change rate features (first-order difference of load rate, power factor change rate) are extracted from the operational data and concatenated to form gated input features. These gated input features are then input into a fusion gated network to obtain candidate weights for the mechanistic model and the data-driven model. The candidate weights are normalized so that their sum equals 1. A preset smoothing coefficient is used to exponentially smooth the normalized candidate weights and the historical fusion weights, resulting in smoothed weights for the mechanistic model and the data-driven model, which together form the smoothed fusion weights.

[0052] S4: Combine the total energy consumption of the mechanism with the total energy consumption of the data-driven process according to the smooth fusion weight to obtain the preliminary total energy consumption.

[0053] The total energy consumption calculated by the mechanism and the total energy consumption predicted by the data-driven model are weighted and fused according to the smoothing fusion weights generated by the fusion weights. Specifically, the smoothing weights of the mechanism model and the data-driven model are multiplied by the total energy consumption of the mechanism, and the smoothing weights of the data-driven model are multiplied by the total energy consumption of the data-driven model. The sum of the two products is used to obtain the preliminary total energy consumption. The detailed process of weighted fusion is as follows: the total energy consumption of the mechanism and the total energy consumption of the data-driven model are used as two input quantities, and the smoothing weights of the mechanism model and the data-driven model are used as corresponding weighting coefficients to perform a weighted sum of the total energy consumption of the mechanism and the total energy consumption of the data-driven model. When the smoothing weight of the mechanism model is close to 1, the preliminary total energy consumption is mainly determined by the mechanism model, which is suitable for steady-state conditions where the accuracy of the mechanism model is high; when the smoothing weight of the data-driven model is close to 1, the preliminary total energy consumption is mainly determined by the data-driven model, which is suitable for complex conditions where the advantages of the data-driven model are obvious; when the weights of the two are close to 0.5, the contributions of the two models are equal, and the preliminary total energy consumption is the equilibrium result of the two. The weighted fusion process is executed once at each time step, and the fusion weights are adaptively adjusted according to changes in operating conditions.

[0054] S5: Determine the operating condition partition based on the static operating condition characteristics, call the partition residual decomposition model corresponding to the operating condition partition, and allocate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link.

[0055] Based on the current load rate and power factor intervals, a target operating condition zone is determined from nine operating condition zones. The difference between the preliminary total energy consumption and the measured total energy consumption is used as the total energy consumption residual. The zone residual decomposition model corresponding to the target operating condition zone is called, and the current operating condition parameters are input into the model to obtain the residual allocation ratio for each energy-consuming link. The total energy consumption residual is allocated to each energy-consuming link according to the residual allocation ratio to obtain the link residual allocation value for each energy-consuming link.

[0056] S6: Based on the mechanism-based energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the links, determine the final energy consumption of each energy-consuming link, and generate the hydropower plant energy consumption analysis results based on the final energy consumption.

[0057] The corresponding mechanistic and data-driven energy consumption components are fused separately according to the smoothing fusion weights to obtain the preliminary energy consumption of each energy-consuming link. The preliminary energy consumption of each energy-consuming link is then added to the corresponding link residual allocation value to obtain the final energy consumption of each energy-consuming link. Based on the final energy consumption, evaluation indicators such as the energy consumption ratio, energy consumption per unit of power generation, year-on-year change, and month-on-month change of each energy-consuming link are calculated. Multi-level anomaly diagnosis is performed using rolling historical data baselines to generate an energy consumption diagnostic report that includes energy consumption trends, abnormal energy consumption links, attribution results, and maintenance recommendations. The final energy consumption integrates information from mechanistic calculations, data-driven predictions, and zonal residual compensation, achieving accurate decomposition of the plant's energy consumption at each energy-consuming link level. The generation of energy consumption analysis results is based on the calculation of multi-dimensional evaluation indicators using the final energy consumption, combined with anomaly detection using rolling historical baselines, and finally outputs a complete analysis report including energy consumption structure, trend changes, and anomaly diagnosis.

[0058] Example 2

[0059] like Figure 2 As shown, based on Example 1, the step of using the mechanistic energy consumption model to calculate the mechanistic component energy consumption and form the total mechanistic energy consumption includes:

[0060] S1.1: Obtain the equipment parameters and environmental parameters of the energy-consuming equipment from the operating data. The equipment parameters include the transformer's no-load loss parameters, load loss parameters, load rate, excitation current, excitation voltage, rectification efficiency, stator current, magnetic flux density, and operating frequency. The environmental parameters include ambient temperature and cooling water temperature.

[0061] The hydropower plant's Supervisory Control and Data Acquisition (SCADA) system and sensor networks deployed on each energy-consuming device acquire real-time parameters of major energy-consuming equipment such as transformers, excitation systems, and generators under operating conditions. Transformer no-load and load loss parameters are derived from the equipment's nameplate data or measured values ​​from the most recent no-load and short-circuit tests. The load rate is calculated as the ratio of current active power to rated power. The excitation current and voltage of the excitation system are directly output from the internal measurement channels of the excitation regulator, and the rectification efficiency is taken as the design efficiency value of the excitation rectifier (typically ranging from 0.95 to 0.99). The generator's stator current is acquired in real-time by three-phase current transformers installed at the generator terminals. The magnetic flux density is indirectly determined through the correspondence between the excitation current and the generator's no-load characteristic curve, and the operating frequency is determined by grid frequency measurements. Ambient temperature and cooling water temperature are acquired in real-time by temperature and humidity sensors and cooling water pipeline temperature sensors located within the plant, respectively.

[0062] The raw sensor data collected in the real-time database must undergo data cleaning and preprocessing before it can be used as input for the mechanistic energy consumption model. Specifically, after data cleaning processes such as sliding window filtering, linear interpolation to fill missing values, and reasonableness threshold verification, a multi-source sensor data sequence aligned to the time axis is formed.

[0063] S1.2: Calculate the transformer's mechanical energy consumption based on the no-load loss parameters, the load loss parameters, and the load rate.

[0064] Transformer mechanism energy consumption consists of two parts: no-load loss (iron loss) and load loss (copper loss). No-load loss mainly comprises hysteresis loss and eddy current loss. Under conditions where the operating voltage and grid frequency are essentially constant, the no-load loss value is approximately constant and can be directly taken from the no-load loss parameter value on the transformer nameplate or the measured value from the most recent no-load test. Load loss consists of winding resistance loss and stray loss, and is proportional to the square of the load current. In engineering calculations, it is approximately represented by the product of the load loss parameter and the square of the load rate. Transformer mechanism energy consumption is the sum of no-load loss and load loss. The formula for calculating transformer mechanism energy consumption is defined as follows:

[0065]

[0066] Among them, P tr P0 is the transformer's mechanical energy consumption (kW), and P0 is the transformer's no-load loss parameter (kW, i.e., iron loss, taken from the nameplate or no-load test). k Let β be the rated load loss parameter of the transformer (kW, i.e., copper loss under rated current, taken from the nameplate or short-circuit test), and let β be the transformer load factor (a normalized value between 0 and 1, equal to the ratio of current active power to rated power). When β is 0, the transformer is in an unloaded state, and the mechanistic energy consumption equals the no-load loss; when β is 1, the transformer is in a fully loaded state, and the mechanistic energy consumption is the sum of the no-load loss and the rated load loss. In actual operation, β changes dynamically with the load dispatch instructions of the hydropower plant, and the transformer's mechanistic energy consumption increases non-linearly with the square of β, with a more significant increase in the rate of increase during high-load intervals.

[0067] S1.3: Calculate the energy consumption of the excitation system mechanism based on the excitation current, the excitation voltage and the rectification efficiency.

[0068] The excitation system provides excitation current to the generator to establish a rotating magnetic field. Its energy consumption is the active power absorbed by the excitation power unit from the AC grid. The energy consumption of the excitation system is determined by the DC excitation current, DC excitation voltage, and rectification efficiency. The excitation rectifier converts AC power into DC power to supply the generator rotor windings. The rectified DC power is the product of the DC excitation current and the DC excitation voltage. Due to power losses during rectification, the actual active power absorbed by the excitation system from the AC grid is equal to the DC power divided by the rectification efficiency. The rectification efficiency depends on the rectifier circuit topology. For thyristor rectifiers, the typical value is 0.95 to 0.97, and for uncontrolled diode rectifiers, it is 0.97 to 0.99. The specific value should be based on the equipment design value or the actual measured value on site. The input power of the excitation system increases linearly with the increase of the excitation current. Under the condition of leading power factor, the generator provides reactive power to the system, requiring an increased excitation current. Therefore, the energy consumption of the excitation system mechanism is higher than that under the condition of unity power factor. The energy consumption calculation formula for the excitation system mechanism is defined as follows:

[0069]

[0070] Among them, P ex The excitation system's energy consumption (kW) is the active power absorbed from the AC grid; I ex U is the DC excitation current (A, output from the internal measurement channel of the excitation regulator, which is the rectified DC value); ex The DC excitation voltage (V, output from the internal measurement channel of the excitation regulator, is the rectified DC value); η ex The rectification efficiency (the rectification efficiency ranges from 0.95 to 0.99, and the specific value is subject to the equipment design value or the actual measured value on site).

[0071] S1.4: Based on the stator current, the magnetic flux density, and the operating frequency, calculate the generator stator copper loss, generator iron loss, and generator mechanical loss respectively, and sum the generator stator copper loss, generator iron loss, and generator mechanical loss to obtain the generator mechanism energy consumption.

[0072] Generator energy consumption consists of three parts: stator copper loss, iron loss, and mechanical loss. These correspond to the winding resistance heating loss, core hysteresis and eddy current loss, and bearing and ventilation friction loss during generator operation, respectively. Stator copper loss is related to the stator three-phase winding resistance and the effective value of the stator current. Copper loss is proportional to the square of the stator current. The stator winding resistance needs to be corrected for temperature based on the current winding temperature; the temperature coefficient of resistance for copper windings is taken as 0.00393 degrees Celsius. Generator iron loss includes hysteresis loss and eddy current loss. Hysteresis loss is proportional to the 1.6th power of the magnetic flux density, while eddy current loss is proportional to the square of the magnetic flux density and the square of the operating frequency. In engineering calculations, these are collectively expressed as the iron loss coefficient multiplied by the square of the magnetic flux density multiplied by the 1.3th power of the frequency. The iron loss coefficient is determined by fitting factory iron loss test data. Generator mechanical losses include bearing friction losses, ventilation losses, and brush friction losses. These are calculated at the design value at rated speed. When the speed deviates from the rated value, a correction is made according to the cube of the speed. Speed ​​deviations typically occur during unit start-up and shutdown, and during islanded operation. Of the three components, stator copper losses dominate under high loads, iron losses are approximately constant when the voltage is stable, and mechanical losses mainly change during start-up and shutdown. The calculation formulas for each component are defined as follows:

[0073]

[0074]

[0075]

[0076]

[0077] Among them, P cu For generator stator copper losses (kW), R s For the stator single-phase winding resistance (Ω, corrected for current winding temperature), I s P represents the effective value of the stator current (A). fe For generator iron loss (kW), k fe P is the iron loss coefficient (which depends on the core material and lamination process and is determined by factory testing), B is the air gap magnetic flux density (T), and f is the operating frequency (Hz); mec P represents the mechanical losses of the generator (kW). mec,0 Where n is the design value of mechanical loss at rated speed (kW), n is the actual speed (r / min), and n0 is the rated speed (r / min); P gen This represents the generator's mechanical energy consumption (kW), which is the sum of stator copper losses, iron losses, and mechanical losses. Under the condition of stable operation at the rated frequency of the hydropower plant, f remains essentially constant, and P... fe It mainly varies with the magnetic flux density; P mec P is directly taken at the rated speed.mec,0 When the speed deviates from the rated value, it is corrected according to a cubic relationship.

[0078] S1.5: Determine the ambient temperature correction coefficient based on the correspondence between the ambient temperature and the operating efficiency of the energy-consuming equipment, and determine the cooling water temperature correction coefficient based on the correspondence between the cooling water temperature and the generator efficiency.

[0079] Changes in ambient temperature affect the heat dissipation efficiency and winding resistance of energy-consuming equipment, thus impacting actual operating efficiency. An ambient temperature correction factor of 1 is applied, multiplied by a temperature influence coefficient and the difference between the actual and reference ambient temperatures. The temperature influence coefficient ranges from 5.0 × 10⁻⁴ to 1.0 × 10⁻³ per degree Celsius, corresponding to an efficiency decrease of approximately 0.5% to 1% for every 10°C increase in temperature. The reference ambient temperature is taken as 25°C. When the ambient temperature is higher than the reference temperature, equipment efficiency decreases and losses increase, resulting in an ambient temperature correction factor greater than 1. In this case, the mechanistic energy consumption needs to be adjusted upwards to reflect the additional energy consumption caused by the decrease in efficiency.

[0080] The impact of cooling water temperature on generator efficiency is characterized by a cooling water temperature correction factor. This correction factor is taken as 1 plus the product of the cooling water temperature influence coefficient and the difference between the actual and reference cooling water temperatures. The cooling water temperature influence coefficient ranges from 1.0 × 10⁻⁴ to 3.0 × 10⁻⁴ per degree Celsius, and the reference cooling water temperature is taken as 20℃. When the cooling water temperature rises, the generator stator winding resistance increases, and the cooling effect decreases, leading to reduced generator efficiency and increased losses. In this case, the cooling water temperature correction factor is greater than 1, and the generator's mechanistic energy consumption needs to be corrected upwards. Conversely, when the cooling water temperature is lower than the reference temperature, the generator stator winding resistance decreases, the cooling effect is enhanced, and the generator efficiency increases. In this case, the cooling water temperature correction factor is less than 1, and the generator's mechanistic energy consumption needs to be corrected downwards.

[0081] Taking a typical operating condition of a hydropower plant as an example: the ambient temperature is 35℃, which is 10℃ higher than the reference temperature, and the temperature influence coefficient is taken as 6.0×10. -4 At / ℃, the ambient temperature correction factor is 1 + 6.0 × 10 -4 ×10=1.006, the transformer's functional energy consumption at this temperature is approximately 0.6% higher than the calculated value at the reference temperature; the cooling water temperature is 28℃, which is 8℃ higher than the reference temperature, and the cooling water temperature influence coefficient is taken as 2.0×10. -4 At / ℃, the cooling water temperature correction factor is 1 + 2.0 × 10 -4 ×8=1.0016, the generator mechanism energy consumption under this cooling water temperature condition is about 0.16% higher than the calculated value under the reference temperature. The introduction of the two correction coefficients enables the mechanism model to reflect the dynamic impact of environmental factors on equipment efficiency, making up for the lack of accuracy of the mechanism model based on rated parameters under different environmental conditions.

[0082] S1.6: Using the ambient temperature correction coefficient and the cooling water temperature correction coefficient, the energy consumption of the transformer mechanism, the energy consumption of the excitation system mechanism, and the energy consumption of the generator mechanism are corrected to obtain the energy consumption of each energy-consuming link. The energy consumption of each energy-consuming link is then summarized to form the total energy consumption of the mechanism.

[0083] The transformer mechanism energy consumption, the excitation system mechanism energy consumption, and the generator mechanism energy consumption are each multiplied by their corresponding environmental correction factors for environmental factor correction. The transformer mechanism energy consumption and the excitation system mechanism energy consumption are mainly affected by ambient temperature; therefore, they are multiplied by the aforementioned ambient temperature correction factor to obtain the corrected transformer mechanism energy consumption and excitation system mechanism energy consumption. The generator mechanism energy consumption is affected by both ambient temperature and cooling water temperature; therefore, it is multiplied by the product of the aforementioned ambient temperature correction factor and cooling water temperature correction factor to obtain the corrected generator mechanism energy consumption. Each of the three correction factors deviates from 1 to either side: when the ambient or cooling water temperature is higher than the reference value, equipment efficiency decreases and losses increase; the correction factor is greater than 1, and the mechanism energy consumption is corrected upwards to reflect the additional losses; conversely, when the correction factor is less than 1, the mechanism energy consumption is corrected downwards. The corrected mechanism energy consumption of the three energy-consuming links is summed to form the total mechanism energy consumption of the entire plant.

[0084] Example 3

[0085] Based on Example 1, the jointly trained energy consumption model includes an encoder, a decoder, and a temporal prediction network; the end-to-end joint training based on the feature reconstruction task and the energy consumption prediction task includes:

[0086] S2.1: Extract electrical features, operational features, environmental features, and time features from the operational data, and construct a time-series feature tensor from the electrical features, operational features, environmental features, and time features according to a preset time window.

[0087] Four types of features are extracted from the operational data. Electrical features include voltage, current, active power, reactive power, and power factor; operational features include load rate, unit start-up and shutdown status, and load adjustment frequency; environmental features include ambient temperature, ambient humidity, and cooling water temperature; and temporal features include hourly cycle encoding, weekly cycle encoding, and seasonal cycle encoding. Following a preset time window length (e.g., taking the past 24 time steps, with each time step spaced 15 minutes apart), the four types of features are aligned along the time dimension to construct a three-dimensional time-series feature tensor, with dimensions of (time window length, number of feature categories, and number of feature dimensions). The preset time window length needs to balance prediction timeliness and sequence stability; under typical configurations, the number of feature categories is approximately 15 to 20.

[0088] S2.2: The encoder is used to map the temporal feature tensor into a latent feature representation.

[0089] The encoder employs a multi-layer fully connected neural network or a one-dimensional convolutional neural network to progressively reduce the dimensionality of the high-dimensional temporal feature tensor, compressing it into a low-dimensional latent feature representation. Each hidden layer of the encoder uses the ReLU activation function, with the output dimension of the last layer being much smaller than the input dimension, forming an information bottleneck structure. This latent feature representation retains the core information related to energy consumption prediction and feature reconstruction from the temporal feature tensor while removing redundant noise. The dimensionality reduction process of the encoder achieves information compression through progressive nonlinear transformations; each hidden layer gradually reduces the input dimension, forcing the network to learn the most prominent structural features in the input data.

[0090] S2.3: Use the decoder to generate a reconstructed temporal feature tensor based on the latent feature representation.

[0091] The decoder employs a network structure symmetrical to the encoder, upsampling layer by layer from the low-dimensional latent feature representation to recover a reconstructed temporal feature tensor of the same dimension as the original temporal feature tensor. The decoder's output layer uses a linear activation function, ensuring that the reconstructed values ​​are not limited by the activation function's saturation range, thus guaranteeing accurate backpropagation of reconstruction errors. The decoder's upsampling process is symmetrical to the encoder's dimensionality reduction process, recovering reconstructed features of the same dimension as the original input from the low-dimensional latent feature representation through layer-by-layer dimensionality increase. Each hidden layer of the decoder uses a neuron configuration symmetrical to the encoder's, with the number of neurons in the last layer (output layer) equal to the total dimension of the input features. The output layer uses a linear activation function to avoid saturation range limitations. The reconstruction quality of the decoder is measured by the feature reconstruction loss; the smaller the loss value, the more input structural information the latent feature representation retains.

[0092] S2.4: Using the time-series prediction network, generate the predicted total energy consumption and predicted component energy consumption based on the latent feature representation.

[0093] The time-series prediction network employs LSTM, using the latent feature representation output by the encoder as input and leveraging the memory gating mechanism of LSTM to capture long-term dependencies in the time series. The LSTM network outputs a total plant energy consumption prediction sequence and corresponding sub-item energy consumption prediction sequences for each energy-consuming stage. The number of sub-item energy consumption prediction sequences is the same as the number of energy-consuming stages, with each sequence corresponding to the predicted energy consumption value for one stage. The LSTM network controls the inflow, retention, and outflow of information through three gating structures: input gate, forget gate, and output gate, enabling the network to selectively remember long-term historical information and forget irrelevant time steps. LSTM mitigates the gradient vanishing problem in long-term dependencies through its gating mechanism, making it suitable for the multi-timescale coupling characteristics of hydropower plant energy consumption data. The output of the LSTM network is mapped to specific energy consumption prediction values ​​through fully connected layers; the total energy consumption prediction value corresponds to a scalar output, and each sub-item energy consumption prediction value corresponds to multiple scalar outputs equal to the number of energy-consuming stages.

[0094] S2.5: Determine the feature reconstruction loss based on the temporal feature tensor and the reconstructed temporal feature tensor, and determine the energy consumption prediction loss based on the predicted total energy consumption, the predicted component energy consumption, and the corresponding measured energy consumption.

[0095] Both feature reconstruction loss and energy consumption prediction loss are measured using Mean Squared Error (MSE). The feature reconstruction loss calculates the mean of the squared differences between all corresponding elements in the original temporal feature tensor and the reconstructed temporal feature tensor. This measure assesses the accuracy of the autoencoder's reconstruction of the input features; a smaller loss value indicates that the latent feature representation retains more input structural information. The energy consumption prediction loss calculates the squared differences between the predicted total energy consumption and the measured total energy consumption, as well as between each predicted energy consumption item and its corresponding measured energy consumption item. The mean square of all energy consumption prediction errors is taken as the energy consumption prediction loss value. The energy consumption prediction loss unifies the total energy consumption prediction error and the prediction errors of each energy consumption item into a single loss term. This allows the temporal prediction network to simultaneously optimize the prediction accuracy of both the total plant energy consumption and the energy consumption of each energy-consuming component during training, avoiding the problem of the model focusing only on the accuracy of the total energy consumption while neglecting the quality of the decomposition of individual energy consumption items. The use of the same mean squared error metric for both loss functions facilitates unified gradient propagation and weight updates during joint training.

[0096] S2.6: Combine the feature reconstruction loss and the energy consumption prediction loss according to the reconstruction loss weight and the prediction loss weight to obtain the joint training loss, and update the model parameters of the encoder, the decoder and the temporal prediction network synchronously according to the joint training loss to obtain the trained joint training energy consumption model.

[0097] The feature reconstruction loss and energy consumption prediction loss are weighted and summed according to their respective weights to obtain the joint training loss. The joint training loss L is defined as follows:joint as follows:

[0098]

[0099] Among them, L joint For joint training loss, λ recon To reconstruct the loss weights, L recon For feature reconstruction loss, λ pred To predict the loss weights, L pred This represents the energy consumption prediction loss. The sum of the reconstruction loss weight and the prediction loss weight is 1, with a typical value combination being λ. recon =0.2、λ pred =0.8, which biases the joint training towards the energy consumption prediction task while retaining sufficient reconstruction constraints to ensure the structural integrity of the latent feature representation. During training, the joint training loss is used to simultaneously compute the gradients of all parameters of the encoder, decoder, and temporal prediction network through the backpropagation algorithm. The Adam optimizer is then used to synchronously update all model parameters until the joint training loss converges on the validation set, resulting in the trained joint training energy consumption model.

[0100] The joint training strategy enables the encoder to receive gradient signals from both the reconstruction and prediction tasks simultaneously, thereby preserving the input structure information while adjusting the organization of latent feature representations in a way that is conducive to energy consumption prediction.

[0101] Example 4

[0102] Based on Example 3, the electrical characteristics include voltage, current, active power, reactive power, and power factor; the operational characteristics include load rate, unit start-up and shutdown status, and load adjustment frequency; the environmental characteristics include ambient temperature, ambient humidity, and cooling water temperature; the time characteristics include hourly cycle encoding, weekly cycle encoding, and seasonal cycle encoding; the time-series prediction network is a long short-term memory network, used to output a total plant energy consumption prediction sequence as the predicted total energy consumption and a sub-item energy consumption prediction sequence corresponding to each energy-consuming link as the predicted sub-item energy consumption based on the latent characteristics.

[0103] Specifically, the voltage and current in the electrical characteristics are the measured effective values ​​of the three-phase voltage and three-phase current. The active power and reactive power are obtained by power calculation from the instantaneous values ​​of voltage and current. The power factor is the ratio of active power to apparent power.

[0104] The periodic encoding of time features employs a sine-cosine dual-channel encoding method, mapping linear indices to a two-dimensional circular coordinate system to eliminate the artificial discontinuities introduced by linear integer encoding at the period boundaries. Specifically, the indices of the time variable are multiplied by twice pi and divided by the period length to obtain the phase angle. The sine and cosine of the phase angle are then used to obtain the sine and cosine components, respectively, resulting in two encoded values. This sine-cosine dual-channel encoding ensures that the time features are evenly distributed on the circumference, preserving the periodic continuity of the time variable and avoiding artificial numerical jumps between 23:00 and 0:00 caused by linear encoding steps. This allows the neural network to effectively learn the daily, weekly, and seasonal variations in the energy consumption of hydropower plants.

[0105] The time-series prediction network employs a two-layer Long Short-Term Memory (LSTM) network structure. The first LSTM layer receives the latent feature representation output from the encoder as input, with 128 hidden units. It controls the inflow, retention, and outflow of information through three gating structures: input gate, forget gate, and output gate, capturing short- to medium-term dependencies in the energy consumption time series. The second LSTM layer has 64 hidden units, receiving the hidden state sequence from the first LSTM layer as input, further extracting more abstract time-series features, focusing on the coupling relationships and long-term trends between energy consumption stages. The stacked structure of the two LSTM layers enables the network to perform hierarchical feature extraction of energy consumption data at different time scales. The first layer captures rapid change patterns from minutes to hours, while the second layer captures slow change trends from hours to days. The output layer is mapped to the total energy consumption prediction value and the predicted values ​​of each component's energy consumption through fully connected layers. The total energy consumption prediction value corresponds to one scalar output node, and the predicted values ​​of each component's energy consumption correspond to multiple scalar output nodes equal to the number of energy consumption stages. All nodes share the weight matrix of the same fully connected layer. The prediction time step is consistent with the preset time window length, ensuring that the energy consumption prediction value output at each time step corresponds to the time span of the input time series feature tensor.

[0106] Example 5

[0107] like Figure 3 As shown, based on Example 1, the step of generating the current fusion weight according to the static operating condition characteristics and operating condition change rate characteristics in the operating data, and smoothing the current fusion weight by combining it with the historical fusion weight to obtain a smoothed fusion weight, includes:

[0108] S3.1: Extract the load rate, power factor and ambient temperature at the current moment from the operating data to form the static operating condition characteristics.

[0109] Static operating characteristics reflect the steady-state operating conditions of the hydropower plant at the current moment. The load factor is calculated as the ratio of current active power to rated active power, the power factor as the ratio of active power to apparent power, and the ambient temperature as real-time data collected by temperature sensors located within the plant. These three parameters together constitute a three-dimensional feature vector describing the static attributes of the current operating conditions. The load factor, as a core indicator for measuring the operating load level of the hydropower plant, directly affects the relative accuracy of the mechanistic model and the data-driven model across different load ranges. The power factor reflects the proportional relationship between the generator's reactive power output and active power output. Under conditions of a leading power factor, the proportion of excitation system losses increases, making the accuracy of the mechanistic model's calculation of excitation losses a critical factor. Ambient temperature indirectly affects the energy consumption level of each energy-consuming component by influencing equipment heat dissipation efficiency and winding resistance.

[0110] S3.2: Calculate the first-order difference of the load rate based on the load rate at the current time and the load rate at the previous time, and calculate the power factor change rate based on the power factor at the current time and the power factor at the previous time to form the operating condition change rate characteristic.

[0111] The rate of change of operating conditions reflects the dynamic trend of operating conditions. Let L be the load rate at the current moment. t The load rate at the previous moment is denoted as L. t-1 The first-order difference of the load rate is obtained through L t With L t-1 The difference is calculated, with a positive value indicating an increase in load and a negative value indicating a decrease in load. The absolute value reflects the degree of drastic load change. The power factor at the current moment is denoted as PF. t The power factor at the previous moment is denoted as PF. t-1 The rate of change of power factor is expressed through PF t With PF t-1 The difference calculation reflects the dynamic direction of power factor change. The introduction of the operating condition change rate characteristic enables the fusion gating network to perceive the dynamic trend of operating conditions and adjust the fusion weights in advance during operating condition switching, avoiding a decrease in fusion accuracy due to sudden changes in operating conditions. The absolute value of the operating condition change rate characteristic reflects the severity of the operating condition change. When the absolute value of the change rate is large, it indicates that the system is in a transitional phase of operating condition switching. At this time, the fixed fusion weight method is prone to large fusion errors, while the introduction of the operating condition change rate characteristic allows the fusion gating network to perceive changes in advance and adjust weights accordingly. When the absolute value of the change rate is close to zero, it indicates that the system is in steady-state operation, and the fusion weights are mainly based on the static operating condition characteristics.

[0112] S3.3: Combine the static operating condition feature and the operating condition change rate feature to form a gated input feature.

[0113] The three-dimensional static operating condition feature vector (load rate, power factor, ambient temperature) is concatenated with the two-dimensional operating condition rate of change feature vector (first-order difference of load rate, power factor rate of change) to form a five-dimensional gated input feature vector. This five-dimensional gated input feature comprehensively describes the steady-state operating conditions and dynamic trends of the hydropower plant at the current moment, providing a decision-making basis for the fusion gated network: the first three steady-state dimensions establish operating condition benchmarks, enabling the gated network to determine whether it is currently in a low-load, medium-load, or high-load range, and the leading / neutral / lagging state of the power factor; the latter two dynamic dimensions provide information on the direction and rate of operating condition change, allowing the gated network to predict the direction of operating condition switching in advance through the trend signal of the rate of change before significant changes occur in steady-state conditions. The combination of steady-state and dynamic dimensions allows the gated input feature to simultaneously include the location information and trend information of the current operating condition, enabling the fusion gated network to maintain stable fusion weights during steady-state operation and respond quickly during operating condition switching.

[0114] S3.4: Input the gated input features into the fusion gated network to obtain the candidate weights of the mechanism model and the candidate weights of the data-driven model.

[0115] The fusion-gated network employs a three-layer fully connected feedforward neural network structure. The first layer (input layer) receives five-dimensional gated input features and has 5 neurons. The second layer (hidden layer) contains 16 neurons and uses the ReLU activation function to introduce non-linear mapping capabilities. The third layer (output layer) contains 2 neurons, corresponding to the candidate weights of the mechanistic model and the candidate weights of the data-driven model, respectively. The output layer of the fusion-gated network is followed by a Softmax normalization operation, mapping the output values ​​of the two neurons to non-negative weight values ​​that sum to 1. The forward propagation process of the fusion-gated network can be represented as follows: first, the five-dimensional gated input features are linearly transformed and ReLU activated through the hidden layer to obtain the hidden layer output; then, the hidden layer output is linearly transformed through the output layer to obtain the original values ​​of the two candidate weights; finally, Softmax normalization is performed on the original values ​​of the two candidate weights. Softmax normalization ensures that both candidate weights are between 0 and 1 and sum to 1, representing the relative evaluation of the accuracy of the fusion-gated network for the mechanistic model and the data-driven model under the current conditions. The output layer is followed by a Softmax normalization operation to ensure that the two candidate weights are non-negative and sum to 1, making the physical meaning of the fused weights clear and satisfying the probability normalization constraint. The fusion gating network is trained using supervised learning, aiming to maximize the accuracy of energy consumption estimation after fusion. It uses known mechanistic model errors and data-driven model errors from historical operating data as labels, and updates the network parameters through the backpropagation algorithm, enabling the gating network to learn to automatically determine which model is more reliable under the current operating conditions based on the characteristics of the operating conditions.

[0116] S3.5: Normalize the candidate weights of the mechanism model and the candidate weights of the data-driven model so that the sum of the candidate weights of the mechanism model and the candidate weights of the data-driven model is 1, thus obtaining the normalized candidate weights.

[0117] The raw candidate weights generated by the two neurons in the output layer of the fusion-gated network are subjected to Softmax normalization. Softmax normalization maps the two raw values ​​to a non-negative probability distribution that sums to 1, ensuring that the sum of the two normalized weights is always 1. This guarantees that the contributions of the two models are fully allocated without redundancy or omission during weighted fusion. The specific calculation process of Softmax normalization is as follows: The exponents of the two raw candidate weights output by the fusion-gated network are taken separately. The exponent of the raw candidate weight of the mechanistic model is divided by the sum of the exponents of the two raw candidate weights to obtain the normalized result of the mechanistic model candidate weights. The normalization result of the data-driven model candidate weights is calculated similarly. The two normalized candidate weights are between 0 and 1 and sum to 1, representing the relative evaluation of the prediction accuracy of the fusion-gated network for the mechanistic model and the data-driven model under the current operating conditions. When the normalized mechanistic model candidate weight is close to 1, it indicates that the gated network determines that the mechanistic model is more reliable under the current operating conditions; when the data-driven model candidate weight is close to 1, it indicates that the gated network determines that the data-driven model is more reliable.

[0118] S3.6: Using a preset smoothing coefficient, exponential smoothing is performed on the normalized candidate weights and the historical fusion weights respectively to obtain the mechanism model smoothing weights and the data-driven model smoothing weights. The mechanism model smoothing weights and the data-driven model smoothing weights are combined to form the smoothed fusion weights after the current fusion weights have been smoothed.

[0119] An exponential smoothing mechanism is employed to eliminate step jitter in the fusion weights during condition switching. Exponential smoothing uses the weighted average of the current candidate weights and the historical fusion weights from the previous time step as the smoothing weight for the current time step. The smoothing coefficient controls the relative contribution ratio between the current candidate weights and the historical fusion weights. The smoothing weight for the mechanistic model is obtained by multiplying the preset smoothing coefficient by the normalized mechanistic model candidate weights at the current time step, plus or minus the product of the preset smoothing coefficient and the historical fusion weights of the mechanistic model from the previous time step. Similarly, the smoothing weight for the data-driven model is obtained by multiplying the preset smoothing coefficient by the normalized data-driven model candidate weights at the current time step, plus or minus the product of the preset smoothing coefficient and the historical fusion weights of the data-driven model from the previous time step. The preset smoothing coefficient ranges from 0.8 to 0.95; the normalized candidate weights at the current time step are output from the fusion gating network and normalized using Softmax; and the historical fusion weights from the previous time step are the smoothed fusion weights from the previous time step. When the smoothing coefficient is large (e.g., 0.95), the current candidate weights dominate, and the smoothed fusion weights quickly follow the changes in operating conditions; when the smoothing coefficient is small (e.g., 0.8), the historical fusion weights have a greater impact, and the smoothed fusion weights are more stable. The smoothing weights of the current mechanistic model and the smoothing weights of the data-driven model are combined to form the smoothed fusion weights.

[0120] Example 6

[0121] Based on Example 5, the preset smoothing coefficient is set to 0.8 to 0.95; the normalized candidate weights are multiplied by the preset smoothing coefficient, and the corresponding historical fusion weights are multiplied by the difference obtained by subtracting the preset smoothing coefficient from one. The sum of the two products is used to obtain the corresponding smoothed fusion weights; the preliminary total energy consumption is determined by using the product of the smoothing weights of the mechanism model and the total energy consumption of the mechanism, and the product of the smoothing weights of the data-driven model and the total energy consumption of the data-driven model.

[0122] It should be noted that the preset smoothing coefficient in the exponential smoothing mechanism determines the relative contribution ratio between the current candidate weights and the historical fusion weights. Specifically, the closer the smoothing coefficient is to 1, the more dominant the candidate weights output by the current fusion gating network are in the smoothing result, and the faster the smoothed fusion weights respond to changes in operating conditions. Conversely, the closer the smoothing coefficient is to 0.8, the more historical fusion weights are retained in the smoothing result, and the stronger the temporal stability of the smoothed fusion weights. The normalized candidate weights are multiplied by the preset smoothing coefficient, and the corresponding historical fusion weights are multiplied by the difference between one and the preset smoothing coefficient. The sum of these two products yields the corresponding smoothed fusion weight. The exponential smoothing calculation process is executed once at each time step, ensuring continuous change in the smoothed fusion weights between adjacent time steps and preventing abrupt changes in the fusion result due to jumps in the candidate weights output by the fusion gating network between adjacent time steps. The initial value of the historical fusion weights during the first execution is taken as the first candidate weight. That is, when t=1, the historical fusion weights from the previous time step do not exist, and the candidate weights at the current time step are directly used as the smoothed fusion weights. The exponential smoothing calculation begins from the second time step. During the exponential smoothing iteration process, the influence of the initial candidate weights gradually diminishes after multiple iterations. The smoothed fusion weights gradually converge to a steady-state value dominated by the current operating condition characteristics. The convergence speed is related to the smoothing coefficient. When the smoothing coefficient is 0.95, it takes about 5 to 7 time steps to reach a steady state. When the smoothing coefficient is 0.8, it takes about 2 to 3 time steps to reach a steady state. After convergence, the smoothed fusion weights mainly reflect the compromise between the current operating condition characteristics and the recent historical weights.

[0123] Preferably, the value of the preset smoothing coefficient needs to be adjusted according to the actual operating characteristics of the hydropower plant. The adjustment strategy is divided into two modes: static configuration and dynamic adjustment. In the static configuration mode, the preset smoothing coefficient remains fixed throughout the entire operating cycle. The operation and maintenance personnel determine the optimal fixed value based on the statistical analysis of the operating condition switching frequency and switching amplitude of the hydropower plant's historical operating data. When the hydropower plant's operating conditions change relatively smoothly and load dispatching is mainly characterized by slow ramp-up, the operating condition switching frequency is low, and a smaller value for the smoothing coefficient (such as 0.85) can be selected to maintain high stability of the fusion weight and avoid unnecessary weight adjustments caused by sensor noise or short-term load fluctuations. When the hydropower plant frequently participates in grid peak shaving and load adjustment is frequent, the operating condition switching frequency is high, and a larger value for the smoothing coefficient (such as 0.92) can be selected to enable the fusion weight to respond quickly to changes in operating conditions and ensure that the fusion accuracy does not decrease significantly during the operating condition switching process. In dynamic adjustment mode, the preset smoothing coefficient is no longer fixed at a single value, but is dynamically adjusted according to the current operating condition change rate characteristics. That is, when the absolute value of the operating condition change rate is large, the smoothing coefficient is automatically increased to speed up the weight response speed; when the absolute value of the operating condition change rate is small, the smoothing coefficient is automatically decreased to enhance the weight stability. The dynamic adjustment range of the smoothing coefficient is limited by a preset range (the minimum value is not lower than 0.8, and the maximum value is not higher than 0.95) to ensure that the stability of the smoothing mechanism is not compromised. The preliminary total energy consumption is determined by multiplying the smoothing weight of the mechanistic model by the total energy consumption of the mechanism, and multiplying the smoothing weight of the data-driven model by the total energy consumption of the data-driven model. Multiplying the smoothing weight of the mechanistic model by the total energy consumption of the mechanism yields the mechanistic contribution part, and multiplying the smoothing weight of the data-driven model by the total energy consumption of the data-driven model yields the data-driven contribution part. Summing the two parts gives the preliminary total energy consumption. The preliminary total energy consumption achieves an adaptive weighted balance between the mechanistic model and the data-driven model. When the smooth fusion weights are adjusted due to changes in operating conditions, the preliminary total energy consumption also transitions smoothly, avoiding the problem of a step drop in accuracy that occurs when the fixed weight fusion method switches operating conditions.

[0124] Example 7

[0125] like Figure 4 As shown, based on Example 1, the step of determining the operating condition partition according to the static operating condition characteristics, calling the partition residual decomposition model corresponding to the operating condition partition, and allocating the total energy consumption residual to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link includes:

[0126] S5.1: Divide the load rate into load rate intervals, which include a first load rate interval, a second load rate interval, and a third load rate interval.

[0127] This embodiment divides the entire load rate range from 0 to 100% into three continuous intervals: The first load rate interval corresponds to low load conditions, with a load rate not lower than 0 and less than 40%. At this time, the hydropower plant is operating under light load, and the no-load losses of transformers and generators account for a relatively high proportion of total energy consumption. The second load rate interval corresponds to medium load conditions, with a load rate not lower than 40% and less than 70%. At this time, the load losses of each energy-consuming component increase significantly with increasing load. The third load rate interval corresponds to high load conditions, with a load rate not lower than 70% and not higher than 100%. At this time, the equipment is operating close to full load, and load losses become the main component of energy consumption. The division of load rate intervals is based on the changing patterns of energy consumption characteristics within each load interval: no-load losses dominate in the low load interval, the loss ratio tends to be balanced in the medium load interval, and load losses dominate in the high load interval, with nonlinear effects of the equipment becoming apparent.

[0128] S5.2: Divide the power factor into power factor intervals, which include a leading power factor interval, a unity power factor neighborhood, and a lagging power factor interval.

[0129] This embodiment divides the power factor range from 0.8 leading to 0.8 lagging into three intervals: the leading power factor interval corresponds to a power factor leading by 0.8 to 0.95, where the generator provides reactive power to the system, and the excitation system losses are relatively high. The unit power factor neighborhood corresponds to a power factor close to 1.0 (0.95 leading to 0.95 lagging), where reactive power is approximately zero, and the energy consumption of each energy-consuming component is at its lowest level under the aforementioned power factor conditions. The lagging power factor interval corresponds to a power factor lagging by 0.95 to 0.8, where the system provides reactive power to the generator, and the increased stator current leads to increased copper losses. The division of the power factor intervals is based on the influence of the reactive power flow direction on the energy consumption distribution within each interval: the leading interval has higher excitation losses, the unit neighborhood has the lowest energy consumption, and the lagging interval has increased copper losses.

[0130] S5.3: Establish nine operating condition zones based on the combination of the load rate zone and the power factor zone. For each operating condition zone, train a zone residual decomposition model using the historical operating condition parameters and historical link energy consumption residuals of each operating condition zone.

[0131] The three load rate intervals and three power factor intervals are paired to form nine operating condition zones (3×3). Each operating condition zone corresponds to a specific load rate-power factor combination operating condition; for example, the combination of the first load rate interval and the leading power factor interval corresponds to a low-load leading power factor operating condition. For each operating condition zone, operating condition parameters (including load rate and power factor) and corresponding historical energy consumption residuals from the zone's historical operating data are collected. The residual decomposition model for each zone adopts a multiple linear regression model, using operating condition parameters as input features and the residual allocation ratio of each energy-consuming element as the output objective. The regression model parameters are independently fitted within each zone using the least squares method. After training, each operating condition zone has an independent zone residual decomposition model, which can output the residual allocation ratio of each energy-consuming element based on the changes in operating condition parameters within the zone. The reason for using a multiple linear regression model in the partitioned residual decomposition model is twofold: First, within a fixed operating condition partition, the relationship between the total energy consumption residual and the residual allocation ratio of each energy-consuming link is approximately linear, and the multiple linear regression model has sufficient fitting ability. Second, the parameters of the linear regression model are highly interpretable; each regression coefficient directly reflects the influence of operating condition parameters on the residual allocation ratio, making it easier for maintenance personnel to understand and verify the rationality of the residual allocation results. The historical data volume of each partition needs to cover at least all typical operating condition parameter combinations within that partition to ensure that the estimation of regression model parameters has statistical significance. When the historical data volume in a certain partition is insufficient, data from adjacent partitions are used for supplementary training through weighted transfer learning.

[0132] It should be understood that the selection of the partition boundary thresholds (load rate of 40% and 70%, power factor of 0.95) is based on the following: A load rate of 40% corresponds to the transition area where the ratio of copper loss to iron loss in hydropower plant transformers shifts from iron loss dominance to rapid growth in copper loss. Near this load rate, the energy consumption composition of each energy-consuming link undergoes a significant proportional shift, resulting in significant differences in the residual statistical characteristics between the low-load partition and the medium-load partition. Near a load rate of 70%, the equipment load rate is high enough that the magnetic circuit saturation effect begins to affect the accuracy of iron loss calculation. At the same time, the increased winding temperature leads to a larger deviation between the actual value of copper loss and the mechanistic calculation value based on rated parameters. The residual distribution characteristics of the high-load partition are significantly different from those of the medium-load partition. Independent fitting partition models can more accurately characterize the residual distribution law in this region. A power factor of 0.95 serves as the boundary between the leading power factor range and the neighborhood of unity power factor. It corresponds to the switching point from slight overexcitation to significant overexcitation of the excitation system. When the power factor is below a lead of 0.95, the increased excitation current effect caused by the additional reactive power provided by the excitation system becomes more pronounced, significantly increasing the proportion of excitation system losses in the total energy consumption residual. The above threshold values ​​are applicable to typical hydropower plant operating conditions. In actual deployment, the boundary thresholds can be appropriately adjusted based on the statistical analysis results of the specific power plant's operating data to ensure a relatively balanced historical data sample size within each zone and a more concentrated residual characteristic within each zone.

[0133] When the amount of historical data in a certain partition is insufficient, historical samples are extracted from adjacent partitions and weighted by distance to participate in least squares fitting for supplementary training.

[0134] S5.4: Calculate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption.

[0135] The measured total energy consumption is collected in real time by the power metering device at the hydropower plant, reflecting the actual energy consumption of each energy-consuming stage. The preliminary total energy consumption is the fusion estimate obtained by smoothing and weighting the mechanistic model and the data-driven model. The total energy consumption residual is the difference between the measured total energy consumption and the preliminary total energy consumption, i.e., the measured total energy consumption minus the preliminary total energy consumption. The total energy consumption residual reflects the nonlinear coupling effects and unmodeled factors that cannot be fully captured after the joint fusion of the mechanistic model and the data-driven model. A positive total energy consumption residual indicates that the fusion estimate is too low and needs to be supplemented positively, while a negative residual indicates that the estimate is too high and needs to be reduced negatively. The absolute value of the residual reflects the overall estimation accuracy of the fusion model. The calculation of the total energy consumption residual is performed independently at each time step. As soon as a new measured total energy consumption data point is collected, the corresponding total energy consumption residual is calculated synchronously, providing real-time input for subsequent partition residual allocation. When the total energy consumption residual remains within a small range, it indicates that the fusion model has high accuracy under the current operating conditions, and the residual allocation has a small correction effect on the final energy consumption of individual items. When the total energy consumption residual increases significantly, it indicates that the operating conditions may have changed significantly or the accuracy of the fusion model has decreased.

[0136] S5.5: Determine the target operating condition zone from the nine operating condition zones based on the combination of the load rate zone to which the current load rate belongs and the power factor zone to which the current power factor belongs.

[0137] The load rate is determined based on the current load rate, and the power factor is determined based on the current power factor. These two intervals are combined as an index to find the corresponding target operating condition partition from the nine operating condition partitions. The load rate interval determination uses the upper limit of the first load rate interval (40%) and the upper limit of the second load rate interval (70%) as boundary thresholds: when the load rate is not lower than 0 and less than 40%, it belongs to the first load rate interval; when the load rate is not lower than 40% and less than 70%, it belongs to the second load rate interval; and when the load rate is not lower than 70% and not higher than 100%, it belongs to the third load rate interval. Power factor range determination uses the upper limit of the leading power factor range (leading 0.95) and the lower limit of the lagging power factor range (lagging 0.95) as boundary thresholds: when the power factor leads by 0.8 to 0.95 (inclusive), it is classified into the leading power factor range; when the power factor is between 0.95 leading and 0.95 lagging (inclusive), it is classified into the unit power factor neighborhood; and when the power factor lags by 0.95 to 0.8 (inclusive), it is classified into the lagging power factor range. When the load rate or power factor falls on the range boundary, it is classified into the side with the closer operating condition characteristics according to the preset boundary classification rules: a 40% load rate boundary is classified into the medium load range, a 70% boundary into the high load range, and a power factor of 0.95 into the unit power factor neighborhood, ensuring that each data point has one and only one classification zone.

[0138] S5.6: Using the current load rate and the current power factor as current operating condition parameters, input the partition residual decomposition model corresponding to the target operating condition partition to obtain the residual allocation ratio of each energy-consuming link.

[0139] The current load rate and current power factor are used as two-dimensional input features, which are then input into the pre-trained partition residual decomposition model of the target operating condition partition. The partition residual decomposition model is a multiple linear regression model. For the i-th energy-consuming element, the formula for calculating the residual allocation ratio is as follows:

[0140]

[0141] Where, r i β is the residual allocation ratio for the i-th energy-consuming element. 0,i β is the regression intercept of the i-th energy-consuming element within the target operating condition partition. 1,iβ is the regression coefficient of the i-th energy-consuming element corresponding to the load rate within the target operating condition zone. 2,i L is the regression coefficient of the i-th energy-consuming element corresponding to the power factor within the target operating condition zone. t The load factor (PF) is the current load factor (a normalized value between 0 and 1). t The power factor at the current moment (a normalized value between 0 and 1, with leading being positive and lagging being negative). Each regression coefficient is obtained through least squares fitting during the partition training phase. The fitting objective is to minimize the mean square error between the model's predicted residual allocation ratio and the actual residual allocation ratio in the partition's historical data. The sum of the residual allocation ratios of each energy-consuming element is 1, satisfying the residual conservation constraint, meaning the sum of the residual allocation values ​​of all energy-consuming elements equals the total energy consumption residual, and residual allocation does not introduce additional error. When the residual allocation ratio of a certain energy-consuming element is close to 0, it indicates that the energy consumption estimation error of that element is small within the operating condition partition, and the initial sub-item energy consumption is close to the true value, requiring no significant residual correction. When the residual allocation ratio of a certain energy-consuming element is large, it indicates that the energy consumption estimation error of that element is relatively prominent within the operating condition partition, requiring a larger allocation of residuals for correction. The regression coefficients of the partitioned residual decomposition model vary depending on the operating condition partition: in the low-load leading power factor partition, transformer no-load losses account for a larger proportion, and the absolute value of the regression coefficient corresponding to the transformer is larger; in the high-load lagging power factor partition, generator copper losses and excitation system losses account for a larger proportion, and the absolute values ​​of the regression coefficients corresponding to the generator and excitation system are larger. The output of the multiple linear regression model is a residual allocation ratio vector for each energy-consuming element, with the vector dimension equal to the number of energy-consuming elements, and the sum of all elements being 1.

[0142] S5.7: Allocate the total energy consumption residual to each energy-consuming link according to the residual allocation ratio to obtain the link residual allocation value of each energy-consuming link.

[0143] The residual value for each energy-consuming stage is obtained by multiplying the total energy consumption residual by the residual allocation ratio of each stage. For each stage, the residual allocation value equals the total energy consumption residual multiplied by the residual allocation ratio of that stage, and the sum of the residual allocation values ​​of all stages equals the total energy consumption residual. The residual allocation value can be positive or negative: when the total energy consumption residual is positive, the residual allocation value for each energy-consuming stage is positive, indicating that the initial energy consumption of each stage needs to be adjusted upwards by the absolute value of the residual allocation value; when the total energy consumption residual is negative, the residual allocation value for each stage is negative, indicating that the initial energy consumption of each stage needs to be adjusted downwards.

[0144] The self-consistency verification of the residual allocation values ​​is achieved by summing the residual allocation values ​​of all energy-consuming links and comparing them with the total energy consumption residual. When the deviation exceeds a preset threshold (e.g., 1% of the absolute value of the total energy consumption residual), it indicates that there is a calculation error or model anomaly in the residual allocation process, and the residual allocation needs to be re-executed. The calculation of the residual allocation values ​​is performed synchronously with the calculation of the total energy consumption residual at each time step. As soon as a set of residual allocation ratios is determined, the residual allocation values ​​of each energy-consuming link are calculated immediately, providing real-time residual compensation input for the subsequent determination of the final energy consumption of each item. When the residual allocation value of a certain energy-consuming link deviates significantly from zero for a long period of time, it indicates that the mechanism model or data-driven model of the link has a systematic deviation within the operating condition partition, and the model parameters of the link need to be re-evaluated or the partition residual decomposition model of the operating condition partition needs to be updated.

[0145] Example 8

[0146] This embodiment further explains the details of dividing the load rate interval and power factor interval, as well as the calculation process of the final sub-item energy consumption. The first load rate interval, the second load rate interval, and the third load rate interval are respectively the intervals where the load rate is not lower than 0 and less than 40%, the load rate is not lower than 40% and less than 70%, and the load rate is not lower than 70% and not higher than 100%; the sum of the residual allocation ratios output by the partition residual decomposition model is 1; the corresponding mechanism sub-item energy consumption and data-driven sub-item energy consumption are fused according to the smooth fusion weight to obtain the preliminary sub-item energy consumption, and the preliminary sub-item energy consumption is added to the corresponding link residual allocation value to obtain the final sub-item energy consumption.

[0147] Specifically, the first load rate range, the second load rate range, and the third load rate range are respectively the ranges where the load rate is not lower than 0 and less than 40%, the load rate is not lower than 40% and less than 70%, and the load rate is not lower than 70% and not higher than 100%. The division of the three load rate ranges is based on the changing pattern of energy consumption composition characteristics within each load range of the hydropower plant. In the low load range (0 to 40%), no-load loss is the main factor; in the medium load range (40% to 70%), the ratio of no-load loss to load loss tends to be balanced; and in the high load range (70% to 100%), load loss dominates and the nonlinear effect of the equipment gradually becomes apparent. The three power factor ranges are the leading power factor range (0.8 to 0.95 leading), the unity power factor neighborhood (0.95 leading to 0.95 lagging), and the lagging power factor range (0.95 to 0.8 lagging). The leading range corresponds to the operating conditions where the excitation system losses are high and the stator current is increased. The unity power factor neighborhood corresponds to the operating conditions where the reactive power is close to zero and the energy consumption of each energy-consuming link is the lowest. The lagging range corresponds to the operating conditions where the grid provides reactive power to the generator and the increase in stator current leads to an increase in copper loss. The nine operating condition zones correspond to all combinations of the three load factor ranges and three power factor ranges mentioned above. The historical statistical characteristics of the residual distribution ratios within each zone show significant differences: in the low-load leading power factor zone, transformer no-load losses account for the highest proportion, and residual distribution is biased towards the transformer; in the high-load lagging power factor zone, generator copper losses and excitation system losses account for a relatively high proportion, and residual distribution is biased towards the generator and excitation system; in the medium-load unit power factor neighborhood zone, the energy consumption distribution of each energy-consuming element is relatively balanced, and the residual distribution ratio is relatively uniform. The sum of the residual distribution ratios output by the zone residual decomposition model is 1, satisfying the residual conservation constraint, i.e., the sum of the residual distribution values ​​of all energy-consuming elements equals the total energy consumption residual, and the residual distribution does not introduce additional errors. Compared with the global regression method that uses the same set of regression parameters to fit the historical residual data across the entire range, the zone residual decomposition model independently fits local linear relationships within each zone, eliminating the impact of residual distribution heterogeneity under different operating conditions on regression accuracy.

[0148] The corresponding mechanistic energy consumption and data-driven energy consumption are fused separately according to the smoothing fusion weights to obtain the preliminary energy consumption. The preliminary energy consumption is then added to the corresponding residual allocation value to obtain the final energy consumption. The calculation process for the preliminary energy consumption is as follows: the mechanistic energy consumption of the i-th energy-consuming stage is multiplied by the smoothing weight of the mechanistic model to obtain the mechanistic contribution of that stage; the data-driven energy consumption of the i-th energy-consuming stage is multiplied by the smoothing weight of the data-driven model to obtain the data-driven contribution of that stage; the two parts are summed to obtain the preliminary energy consumption of the i-th energy-consuming stage. This calculation process maintains the same weight system as the calculation of the preliminary total energy consumption, ensuring that the sum of the preliminary energy consumption of each energy-consuming stage equals the preliminary total energy consumption, satisfying the energy conservation constraint. The final energy consumption of the i-th energy-consuming stage is obtained by adding the preliminary energy consumption of that stage to the corresponding residual allocation value. The final energy consumption breakdown integrates information from mechanism calculations, data-driven predictions, and zoned residual compensation, achieving a precise decomposition of the plant's energy consumption at each energy-consuming stage. Self-consistency is verified by the final energy consumption breakdown: the sum of the final energy consumption breakdowns for each energy-consuming stage equals the measured total energy consumption. This means the sum of the mechanism contribution, the data-driven contribution, and the residual compensation is consistent with the measured value, verifying the mathematical self-consistency of the decomposition results. When the final energy consumption breakdown of a certain energy-consuming stage shows an abnormal increase or decrease, the changes in the mechanism-based energy consumption breakdown, the data-driven energy consumption breakdown, and the residual allocation value of that stage can be traced to quickly pinpoint whether the energy consumption anomaly stems from a deviation in the mechanism model, a deviation in the data-driven model prediction, or unreasonable fluctuations in the residual allocation, providing maintenance personnel with a clear direction for investigation.

[0149] Example 9

[0150] like Figure 5 As shown in Example 1, the generation of hydropower plant energy consumption analysis results based on the final sub-item energy consumption includes:

[0151] S6.1: Based on the final sub-item energy consumption calculation evaluation index, the evaluation index includes the energy consumption ratio of each energy consumption link, energy consumption per unit of power generation, year-on-year change in energy consumption, and month-on-month change in energy consumption.

[0152] Based on the final energy consumption of each energy-consuming stage, four types of evaluation indicators are calculated. The energy consumption ratio is the ratio of the final energy consumption of the stated energy-consuming stage to the total energy consumption of the entire plant, reflecting the energy consumption structure distribution of each energy-consuming stage. The energy consumption per unit of electricity generated is the ratio of the final energy consumption of the stated energy-consuming stage to the electricity generated during the same period, reflecting the energy conversion efficiency of the stated stage. The year-on-year change in energy consumption is the difference between the energy consumption of the stated energy-consuming stage at the current moment and the energy consumption under the same operating conditions in the same period last year, reflecting the interannual trend. The month-on-month change in energy consumption is the difference between the energy consumption of the stated energy-consuming stage at the current moment and the energy consumption under the same operating conditions in the previous statistical period, reflecting the short-term trend. These four types of indicators characterize the energy consumption status of each energy-consuming stage from the dimensions of energy consumption structure, energy conversion efficiency, interannual trend, and short-term fluctuation.

[0153] S6.2: Determine the baseline mean and baseline standard deviation based on the rolling historical data corresponding to the evaluation indicators.

[0154] For each evaluation indicator, a 30-day rolling historical data window is established. The indicator values ​​of historical data points within the window are collected, and the mean of all historical data within the window is calculated as the baseline mean. The standard deviation of all historical data within the window is also calculated as the baseline standard deviation. The rolling historical data window slides forward as new data arrives, allowing the baseline mean and baseline standard deviation to adaptively reflect the impact of long-term trends such as equipment aging and seasonal changes on the evaluation indicators. The selection of the 30-day rolling historical data window is based on the typical cycle of hydropower plant operation and maintenance. The 30-day time span is sufficient to cover the complete cycle of different operating conditions, while the window length is not too long, preventing the baseline from being slow to respond to changes in long-term trends such as equipment aging. The baseline mean is calculated using a simple arithmetic mean, suitable for situations where the evaluation indicators are approximately normally distributed within the window. The baseline standard deviation is calculated using the sample standard deviation formula, reflecting the fluctuation range of the evaluation indicators within the window. The sliding step size of the scrolling window is usually one data sampling interval. Each time a new data point is collected, the window slides forward one step, adding the new data point and removing the oldest data point. The baseline mean and baseline standard deviation are then recalculated, enabling the baseline to track the long-term trend of the evaluation indicators in real time.

[0155] S6.3: When the deviation of the evaluation index from the baseline mean exceeds twice the baseline standard deviation, a warning of concern level is generated; when the deviation exceeds three times the baseline standard deviation, an anomaly level warning is generated.

[0156] Differentiated early warning thresholds are set by adopting the 3-sigma principle. When the absolute value of the deviation between the current value of the evaluation indicator and the baseline mean exceeds twice the baseline standard deviation, an attention-level early warning (secondary early warning) is triggered, prompting operation and maintenance personnel to pay attention to the abnormal energy consumption trend of the energy-consuming link. When the absolute value of the deviation exceeds three times the baseline standard deviation, an abnormal-level early warning (primary early warning) is triggered, indicating that there is an obvious energy consumption abnormality in the energy-consuming link and immediate investigation is required. The two-level early warning mechanism enables operation and maintenance personnel to reasonably allocate investigation priorities according to the warning level: conduct daily monitoring for attention-level warnings and emergency handling for abnormal-level warnings. When the absolute value of the deviation between the current value of the evaluation indicator and the baseline mean is within twice the baseline standard deviation, the evaluation indicator is determined to be in a normal fluctuation range, no warning is triggered, the system maintains normal operation, and no energy consumption investigation is required. The differentiated early warning threshold setting based on the 3-sigma principle is grounded in statistical process control theory. Under the assumption that the evaluation indicator follows a normal distribution or an approximately normal distribution, the confidence interval corresponding to twice the baseline standard deviation is approximately 95%, meaning the evaluation indicator falls within this range with a 95% probability when fluctuating normally; the confidence interval corresponding to three times the baseline standard deviation is approximately 99.7%, meaning the probability of the evaluation indicator exceeding this range is extremely low. The attention-level early warning (secondary early warning) is used to indicate that the energy consumption indicator has a deviation trend, requiring operation and maintenance personnel to pay attention but not requiring immediate intervention; the abnormal-level early warning (primary early warning) is used to indicate that the energy consumption indicator has an obvious deviation, requiring operation and maintenance personnel to immediately investigate whether there is equipment failure or operation abnormality in the energy-consuming link.

[0157] S6.4: In response to the attention-level early warning or the abnormal-level early warning, the abnormal driving factor and the corresponding attribution confidence are determined according to the mechanism residual between the actual energy consumption and the mechanism energy consumption, as well as the contribution weight of the joint training energy consumption model to the input features.

[0158] When an early warning is triggered, the abnormal attribution analysis module is started. The abnormal attribution analysis integrates two clues: the first clue is the mechanism residual, that is, the deviation between the actual energy consumption and the mechanism-calculated energy consumption, and the magnitude and direction of the deviation reflect the failure degree of the mechanism assumption or the abnormal degree of the equipment operation state; the second clue is the contribution weight of the joint training energy consumption model to the input features, which is calculated through the attention mechanism of the encoder-decoder structure in the joint training energy consumption model or a feature attribution algorithm (such as the gradient-based integrated gradient method) to obtain the contribution weight of each input feature to the energy consumption prediction result. The attribution confidence represents the credibility of each abnormal driving factor, and is quantified based on the consistency between the feature contribution weight and the mechanism residual. The calculation formula of the attribution confidence is defined as follows:

[0159]

[0160] where c j is the attribution confidence of the j-th input feature, A jThe contribution weight of the j-th input feature to energy consumption prediction (output by the attention mechanism or feature attribution algorithm of the jointly trained energy consumption model), A k The weight representing the contribution of the k-th input feature to energy consumption prediction, where k is the summation index (ranging from 1 to K), ΔE mech K represents the mechanistic residual between actual energy consumption and mechanistic energy consumption, and K is the total number of input features. The attribution confidence score ranges from 0 to 1, and the sum of the attribution confidence scores of all input features is 1. Features with higher attribution confidence scores are more likely to be driving factors causing abnormal energy consumption. Features with attribution confidence scores higher than a preset threshold (e.g., 0.15) are output as abnormal driving factors, along with their corresponding attribution confidence scores.

[0161] Feature contribution weight A j The calculation employs the integrated gradient method, using a zero vector or the historical mean vector of each feature as the baseline input. It integrates the interpolation path between the baseline input and the current actual input, calculating the model output with respect to the integral gradient of the j-th input feature, multiplied by the change of that feature relative to the baseline, as the contribution weight of the j-th feature to the current prediction result. The integral gradient calculation is performed simultaneously with the attribution confidence calculation after the warning is triggered. It is numerically calculated during the inference phase using the Riemann approximation (dividing the integration interval into several small steps and then summing them), with the number of calculation steps ranging from 50 to 300 steps to ensure approximate accuracy. The integrated gradient method satisfies the two axiomatic constraints of completeness and sensitivity, ensuring strict mathematical consistency in the attribution results.

[0162] When no attention-level or abnormal warning is triggered, the abnormal attribution analysis is not performed. Instead, the normal energy consumption analysis result is generated directly based on the final sub-item energy consumption, without outputting abnormal driving factors and attribution confidence information.

[0163] S6.5: Based on the final sub-item energy consumption, early warning results, abnormal driving factors, and attribution confidence, generate an energy consumption diagnosis report that includes energy consumption trends, abnormal energy consumption links, attribution results, and maintenance suggestions.

[0164] The final breakdown of energy consumption data, energy consumption trend changes in each energy-consuming stage, early warning trigger records, a list of abnormal driving factors, and corresponding attribution confidence scores are summarized. Combined with a pre-set maintenance knowledge base, an energy consumption diagnostic report is automatically generated according to a standardized template. The report generation process executes in the following four parts in sequence:

[0165] The first part is an energy consumption overview. Based on the final energy consumption data of each energy-consuming link, it visualizes the total energy consumption of the entire plant and the distribution and trend curves of the energy consumption ratio of each energy-consuming link, enabling operation and maintenance personnel to quickly grasp the overall energy consumption status of the entire plant. The energy consumption ratio is calculated as the ratio of the final energy consumption of each link to the total energy consumption of the entire plant, reflecting the distribution of energy consumption structure; the trend curve shows the recent change trajectory of energy consumption of each link in a time series, and marks the historical baseline mean and baseline standard deviation range, making it easy to intuitively judge whether the energy consumption is within the normal fluctuation range.

[0166] The second part is the marking of abnormal links. Based on the warning triggering record, the energy-consuming links that trigger the attention-level warning or the abnormal-level warning are highlighted in different colors on the energy consumption overview map: attention-level warnings are marked in yellow and abnormal-level warnings are marked in red. The warning triggering time and deviation range are also noted, so that operation and maintenance personnel can quickly identify abnormal links that need to be given priority or handled urgently.

[0167] The third part is the attribution analysis, which summarizes the aforementioned list of anomalous driving factors, sorted from highest to lowest attribution confidence. Each anomalous driving factor is accompanied by its corresponding attribution confidence value and a description of its physical meaning. Features with attribution confidence values ​​higher than a preset threshold (e.g., 0.15) are listed as key driving factors, while features with confidence values ​​lower than the threshold are listed as secondary factors but not included in the conclusion. The attribution analysis also provides supplementary explanations for the direction (positive / negative) of the mechanistic residuals: a positive mechanistic residual suggests that the mechanistic assumptions may be too conservative or that the actual equipment losses are higher than the theoretical values; a negative mechanistic residual suggests that the mechanistic assumptions may be too optimistic or that the equipment's operating efficiency is better than expected.

[0168] The fourth part provides maintenance recommendations. Based on the key anomaly drivers and abnormal energy consumption links identified through attribution analysis, corresponding maintenance plans and operational suggestions are matched from a pre-set maintenance knowledge base. The maintenance knowledge base uses a two-dimensional combination of anomaly drivers and abnormal energy consumption links as index keys, and pre-sets standard maintenance procedures, recommended maintenance cycles, and spare parts replacement suggestions for various typical anomaly scenarios. This allows maintenance personnel to obtain clear diagnostic conclusions and actionable maintenance guidance without starting from scratch.

[0169] When no alert at the level of concern or the level of abnormality is triggered, only the first part of the energy consumption overview is generated, without the abnormal link marking, attribution analysis and maintenance suggestions, as a routine energy consumption analysis report output for normal operation.

[0170] Example 10

[0171] like Figure 6 As shown, the present invention provides a hydropower plant energy consumption analysis device that integrates mechanism and data-driven model, comprising:

[0172] Mechanism calculation module 601 is deployed on edge computing nodes to acquire operational data of various energy-consuming links in the hydropower plant, calculate the mechanism sub-item energy consumption using the mechanism energy consumption model, and form the total mechanism energy consumption.

[0173] The data-driven prediction module 602 is deployed on an edge computing node and is used to input the running data into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task.

[0174] The fusion weight module 603 is deployed on the edge computing node and is used to generate the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the running data, and to smooth the current fusion weight by combining it with the historical fusion weight to obtain a smoothed fusion weight.

[0175] The dynamic fusion module 604 is deployed on the edge computing node and is used to fuse the total energy consumption of the mechanism and the total energy consumption of the data drive according to the smooth fusion weight to obtain the preliminary total energy consumption.

[0176] The residual allocation module 605, deployed on a cloud server, is used to determine the operating condition partition based on the static operating condition characteristics, call the partition residual decomposition model corresponding to the operating condition partition, and allocate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption to each energy-consuming link, thereby obtaining the link residual allocation value of each energy-consuming link.

[0177] The energy consumption analysis module 606, deployed on a cloud server, is used to determine the final energy consumption of each energy-consuming link based on the mechanism-based energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the link, and to generate the hydropower plant energy consumption analysis results based on the final energy consumption.

[0178] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions should all be covered within the scope of protection of the present invention.

Claims

1. A method for analyzing the energy consumption of hydropower plants that integrates mechanism and data-driven models, characterized in that, include: Obtain operational data from each energy-consuming stage of the hydropower plant, use a mechanistic energy consumption model to calculate the mechanistic component energy consumption, and form the total mechanistic energy consumption. The running data is input into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task. The current fusion weight is generated based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and the current fusion weight is smoothed by combining the historical fusion weights to obtain a smoothed fusion weight. The total energy consumption of the mechanism and the total energy consumption of the data-driven process are fused according to the smooth fusion weight to obtain the preliminary total energy consumption. Based on the static operating condition characteristics, the operating condition partition is determined, and the partition residual decomposition model corresponding to the operating condition partition is called. The total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption is allocated to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link. Based on the mechanistic energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the links, the final energy consumption of each energy-consuming link is determined, and the energy consumption analysis results of the hydropower plant are generated based on the final energy consumption.

2. The method for analyzing energy consumption in hydropower plants according to claim 1, characterized in that, The calculation of mechanistic component energy consumption using the mechanistic energy consumption model, and the formation of total mechanistic energy consumption, includes: The equipment parameters and environmental parameters of the energy-consuming equipment are obtained from the operating data. The equipment parameters include the transformer's no-load loss parameters, load loss parameters, load rate, excitation current, excitation voltage, rectification efficiency, stator current, magnetic flux density and operating frequency. The environmental parameters include ambient temperature and cooling water temperature. Based on the no-load loss parameters, the load loss parameters, and the load rate, calculate the transformer's mechanical energy consumption; Based on the excitation current, the excitation voltage, and the rectification efficiency, calculate the energy consumption of the excitation system mechanism. Based on the stator current, the magnetic flux density, and the operating frequency, the generator stator copper loss, generator iron loss, and generator mechanical loss are calculated respectively, and the generator stator copper loss, generator iron loss, and generator mechanical loss are summed to obtain the generator mechanism energy consumption; An ambient temperature correction coefficient is determined based on the relationship between the ambient temperature and the operating efficiency of the energy-consuming equipment, and a cooling water temperature correction coefficient is determined based on the relationship between the cooling water temperature and the generator efficiency. Using the ambient temperature correction coefficient and the cooling water temperature correction coefficient, the energy consumption of the transformer mechanism, the energy consumption of the excitation system mechanism, and the energy consumption of the generator mechanism are corrected to obtain the energy consumption of each energy-consuming link. The energy consumption of each energy-consuming link is then summarized to form the total energy consumption of the mechanism.

3. The method for analyzing energy consumption in hydropower plants according to claim 1, characterized in that, The jointly trained energy consumption model includes an encoder, a decoder, and a temporal prediction network; the end-to-end joint training based on the feature reconstruction task and the energy consumption prediction task includes: Electrical features, operational features, environmental features, and time features are extracted from the operational data, and the electrical features, operational features, environmental features, and time features are constructed into a time-series feature tensor according to a preset time window; The encoder is used to map the temporal feature tensor into a latent feature representation; The decoder is used to generate a reconstructed temporal feature tensor based on the latent feature representation; The time-series prediction network is used to generate predicted total energy consumption and predicted component energy consumption based on the latent feature representation; The feature reconstruction loss is determined based on the temporal feature tensor and the reconstructed temporal feature tensor, and the energy consumption prediction loss is determined based on the predicted total energy consumption, the predicted component energy consumption, and the corresponding measured energy consumption. The feature reconstruction loss and the energy consumption prediction loss are combined according to the reconstruction loss weight and the prediction loss weight to obtain the joint training loss. The model parameters of the encoder, the decoder and the temporal prediction network are updated synchronously according to the joint training loss to obtain the trained joint training energy consumption model.

4. The hydropower plant energy consumption analysis method according to claim 3, characterized in that, include: The electrical characteristics include voltage, current, active power, reactive power, and power factor; the operational characteristics include load rate, unit start-up and shutdown status, and load adjustment frequency; the environmental characteristics include ambient temperature, ambient humidity, and cooling water temperature; the time characteristics include hourly cycle encoding, weekly cycle encoding, and seasonal cycle encoding; the time-series prediction network is a long short-term memory network, used to output a total plant energy consumption prediction sequence as the predicted total energy consumption and a sub-item energy consumption prediction sequence corresponding to each energy-consuming link as the predicted sub-item energy consumption based on the latent characteristics.

5. The method for analyzing energy consumption in hydropower plants according to claim 1, characterized in that, The step of generating the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and smoothing the current fusion weight by combining it with historical fusion weights to obtain a smoothed fusion weight includes: The load rate, power factor, and ambient temperature at the current moment are extracted from the operating data to form the static operating condition characteristics; The first-order difference of the load rate is calculated based on the load rate at the current time and the load rate at the previous time, and the power factor change rate is calculated based on the power factor at the current time and the power factor at the previous time, thus forming the operating condition change rate characteristic. The static operating condition feature and the operating condition change rate feature are combined to form the gated input feature; The gated input features are input into a fusion gated network to obtain candidate weights for the mechanistic model and candidate weights for the data-driven model. The candidate weights of the mechanism model and the candidate weights of the data-driven model are normalized so that the sum of the candidate weights of the mechanism model and the candidate weights of the data-driven model is 1, thus obtaining the normalized candidate weights. The normalized candidate weights and the historical fusion weights are exponentially smoothed using a preset smoothing coefficient to obtain the mechanism model smoothing weights and the data-driven model smoothing weights. The mechanism model smoothing weights and the data-driven model smoothing weights are then combined to form the smoothed fusion weights of the current fusion weights.

6. The method for analyzing energy consumption in hydropower plants according to claim 5, characterized in that, include: The preset smoothing coefficient is between 0.8 and 0.95; the normalized candidate weights are multiplied by the preset smoothing coefficient, and the corresponding historical fusion weights are multiplied by the difference obtained by subtracting the preset smoothing coefficient from one. The sum of the two products is used to obtain the corresponding smoothed fusion weights; the preliminary total energy consumption is determined by using the product of the mechanism model smoothing weights and the total energy consumption of the mechanism, and the product of the data-driven model smoothing weights and the total energy consumption of the data-driven model.

7. The method for analyzing energy consumption in hydropower plants according to claim 1, characterized in that, The step of determining the operating condition partition based on static operating condition characteristics, calling the partition residual decomposition model corresponding to the operating condition partition, and allocating the total energy consumption residual to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link includes: The load rate is divided into load rate intervals, which include a first load rate interval, a second load rate interval, and a third load rate interval. The power factor is divided into power factor intervals, which include a leading power factor interval, a unity power factor neighborhood, and a lagging power factor interval. Nine operating condition zones are established based on the combination of the load rate zone and the power factor zone. For each operating condition zone, a zone residual decomposition model is trained using the historical operating condition parameters and historical link energy consumption residuals of each operating condition zone. Calculate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption; The target operating condition zone is determined from the nine operating condition zones based on the combination of the load rate zone to which the current load rate belongs and the power factor zone to which the current power factor belongs. Using the current load rate and the current power factor as current operating condition parameters, input them into the partition residual decomposition model corresponding to the target operating condition partition to obtain the residual allocation ratio of each energy-consuming link; The total energy consumption residual is allocated to each energy-consuming link according to the residual allocation ratio to obtain the link residual allocation value of each energy-consuming link.

8. The method for analyzing energy consumption in a hydropower plant according to claim 7, characterized in that, include: The first load rate interval, the second load rate interval, and the third load rate interval are respectively the intervals where the load rate is not lower than 0 and less than 40%, the load rate is not lower than 40% and less than 70%, and the load rate is not lower than 70% and not higher than 100%; the sum of the residual allocation ratios output by the partition residual decomposition model is 1; the corresponding mechanism-based energy consumption and data-driven energy consumption are fused according to the smooth fusion weight to obtain the preliminary energy consumption, and the preliminary energy consumption is added to the corresponding link residual allocation value to obtain the final energy consumption.

9. The method for analyzing energy consumption in hydropower plants according to claim 1, characterized in that, The generation of hydropower plant energy consumption analysis results based on the final sub-item energy consumption includes: Based on the final sub-item energy consumption calculation and evaluation indicators, the evaluation indicators include the energy consumption ratio of each energy consumption link, energy consumption per unit of power generation, year-on-year change in energy consumption, and month-on-month change in energy consumption. The baseline mean and baseline standard deviation are determined based on the rolling historical data corresponding to the evaluation indicators. A warning of concern is generated when the deviation of the evaluation indicator from the baseline mean exceeds twice the baseline standard deviation, and an anomaly warning is generated when the deviation exceeds three times the baseline standard deviation. In response to the attention-level warning or the anomaly-level warning, the anomaly driving factors and corresponding attribution confidence are determined based on the mechanistic residual between actual energy consumption and mechanistic energy consumption and the contribution weight of the jointly trained energy consumption model to the input features. Based on the final sub-item energy consumption, early warning results, abnormal driving factors, and attribution confidence, an energy consumption diagnostic report is generated, which includes energy consumption trends, abnormal energy consumption links, attribution results, and maintenance suggestions.

10. A hydropower plant energy consumption analysis device that integrates mechanism and data-driven model, characterized in that, include: The mechanism calculation module is used to acquire the operating data of each energy-consuming link in the hydropower plant, calculate the mechanism sub-item energy consumption using the mechanism energy consumption model, and form the total mechanism energy consumption; The data-driven prediction module is used to input the running data into the joint training energy consumption model to obtain the data-driven component energy consumption and the data-driven total energy consumption. The joint training energy consumption model is jointly trained end-to-end based on the feature reconstruction task and the energy consumption prediction task. The fusion weight module is used to generate the current fusion weight based on the static operating condition characteristics and operating condition change rate characteristics in the operating data, and to smooth the current fusion weight by combining it with the historical fusion weight to obtain a smoothed fusion weight. The dynamic fusion module is used to fuse the total energy consumption of the mechanism and the total energy consumption of the data-driven process according to the smooth fusion weight to obtain a preliminary total energy consumption. The residual allocation module is used to determine the operating condition partition based on the static operating condition characteristics, call the partition residual decomposition model corresponding to the operating condition partition, and allocate the total energy consumption residual between the preliminary total energy consumption and the measured total energy consumption to each energy-consuming link to obtain the link residual allocation value of each energy-consuming link. The energy consumption analysis module is used to determine the final energy consumption of each energy-consuming link based on the mechanism-based energy consumption, the data-driven energy consumption, and the corresponding residual allocation value of the link, and to generate the hydropower plant energy consumption analysis results based on the final energy consumption.