A source network load multi-element heterogeneous data fusion method, system and medium
By employing multi-scale feature extraction and multi-task learning, combined with random feature masking and dynamic feature transition, the problems of data redundancy and feature conflict in the source-grid-load-storage system are resolved, thereby improving prediction accuracy, system reliability, and optimization efficiency.
Patent Information
- Application Number
- CN202511567550.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-30
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-10-30
AI Technical Summary
In the source-grid-load-storage system, the prediction objectives of multiple tasks are interconnected and greatly affected by the external environment. The data sources are complex and diverse, with noise, redundancy and uneven feature distribution, which leads to feature conflicts and information redundancy, reducing prediction accuracy and scheduling optimization effect.
By employing multi-scale feature extraction, multi-task learning, random feature masking, and dynamic feature transition, this method integrates diverse and heterogeneous data from the source-grid-load-storage system to achieve effective feature fusion and optimization, suppress redundant or noisy features, enhance the expressive power of shared features, and improve prediction accuracy and robustness.
It significantly improves the prediction accuracy and robustness of multiple tasks such as short-term load forecasting, energy storage system charging and discharging strategy optimization, and transmission equipment overheating risk assessment, enhances the reliability and optimization efficiency of system operation, and solves the prediction and optimization problems in complex multi-task environments.
Smart Images

Figure CN121435124B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data fusion technology, and more specifically, to a method, system, and medium for fusion of heterogeneous data from sources, grids, loads, and storage. Background Technology
[0002] With the rapid development of new energy sources, large-scale energy storage, and smart loads, the power system is gradually evolving towards an integrated model of power generation, grid, load, and storage. Against this backdrop, data generated from the generation, transmission and distribution, load, and energy storage sides exhibit diverse sources, inconsistent time scales, and heterogeneous types. For example, generation-side data includes power output, fuel consumption, and new energy fluctuations; transmission-side data includes voltage, current, and line load factor; load-side data includes electricity consumption curves, power factor, and user-side response information; and energy storage-side data includes state of charge, charge / discharge rates, and energy conversion efficiency.
[0003] However, in a power generation, grid, load, and storage system, the prediction objectives for multiple tasks, such as load, energy storage status, and transmission equipment status, are interconnected and significantly affected by the external environment. Furthermore, the data sources are complex and diverse, leading to problems such as noise, redundancy, and uneven feature distribution. In multi-task learning, directly using all features easily introduces interference information, causing feature conflicts or information redundancy between tasks, thereby reducing prediction accuracy and scheduling optimization effectiveness. To address these issues, this invention proposes a solution. Summary of the Invention
[0004] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a method, system, and medium for fusing multi-source heterogeneous data from the source-grid-load-storage system. By fusing multi-source heterogeneous data from the source-grid-load-storage system and performing multi-task feature learning and dynamic feature transition, the problem of feature conflict and redundancy in the complex multi-task environment of the source-grid-load-storage system can be solved.
[0005] To achieve the above objectives, the present invention provides the following technical solution: A method for fusing heterogeneous data from power grid, load, and storage includes the following steps: acquiring a multi-source dataset of the power grid and extracting multi-scale features from the dataset to obtain a multi-scale feature set; performing multi-task learning on the multi-scale feature set to obtain several task features; randomly masking the several task features according to a preset training round to obtain a task feature masking sequence; extracting the feature masking ratio of the task feature masking sequence and dynamically transitioning the task features based on the feature masking ratio to obtain a task transition feature set; and predicting the state of power grid, load, and storage based on the task transition feature set. In a preferred embodiment, the step of extracting multi-scale features from the multi-source dataset of the power grid to obtain a multi-scale feature set specifically involves: dividing the multi-source dataset of the power grid into several time-scale data according to a preset time axis; performing empirical mode decomposition on the data of each time window to obtain several intrinsic mode function components; extracting the envelope spectrum of each intrinsic mode function component and calculating the geometric center offset of the envelope spectrum at each time scale; and aligning and stitching the geometric center offsets of the envelope spectrum at each time scale to obtain the multi-scale feature set.
[0006] In a preferred embodiment, the step of performing multi-task learning on the multi-scale feature set to obtain several task features specifically involves: obtaining the operational objectives of the source-grid-load-storage system and determining several analysis tasks based on the operational objectives; extracting the feature dimensions of each analysis task from the multi-scale feature set to obtain an initial task feature subset; calculating the feature correlation matrix between different analysis tasks based on the initial task feature subset and identifying shared feature dimensions based on the feature correlation matrix; performing feature transformation on the multi-scale feature set based on the shared feature dimensions to obtain a shared feature basis; performing feature amplification on each analysis task based on the shared feature basis to obtain the task features of each analysis task; and summarizing the task features of all analysis tasks to form a task feature set.
[0007] In a preferred embodiment, the step of amplifying the features of each analysis task based on the shared feature base to obtain the task features of each analysis task specifically involves: for each analysis task, extracting a subset of shared features from the shared feature base; cross-combining the feature dimensions and the subset of shared features of each analysis task to obtain task-specific derived features; and coordinating and adjusting the task-specific derived features based on the feature correlation matrix to obtain the task features of each analysis task.
[0008] In a preferred embodiment, the step of coordinating and adjusting the task-specific derived features based on the feature correlation matrix to obtain the task features of each analysis task specifically involves: identifying the feature interaction regions between analysis tasks based on the feature correlation matrix; coordinating and adjusting the task-specific derived features according to the feature interaction regions to obtain the adjusted task-specific derived features; and merging the adjusted task-specific derived features with the feature dimensions to obtain the task features of each analysis task.
[0009] In a preferred embodiment, the step of randomly masking several task features according to a preset training round to obtain a task feature masking sequence specifically involves: setting a preset number of training rounds and initializing an empty task feature masking sequence; generating a random binary matrix for each training round; randomly assigning 0 or 1 to each element of the binary matrix according to a uniform distribution, where 0 indicates that the corresponding feature is masked; multiplying the random binary matrix element-wise with the task features to obtain the masked task features; adding the masked task features to the task feature masking sequence; and outputting the task feature masking sequence after completing all training rounds.
[0010] In a preferred embodiment, the step of extracting the feature masking ratio of the task feature masking sequence and dynamically transitioning the task features based on the feature masking ratio to obtain a task transition feature set specifically involves: for the task feature masking sequence, calculating the masking ratio of each feature dimension in all training rounds; sorting several task features according to the masking ratio to obtain a core feature subset; and linearly combining the core feature subset to obtain the task transition feature set.
[0011] In a preferred embodiment, the step of predicting the state of source-grid-load-storage based on the task transition feature set specifically involves: matching the task transition feature set with a preset historical state database to obtain several historical feature sequences; extracting the source-grid-load-storage state value corresponding to each historical feature sequence and statistically aggregating the source-grid-load-storage state values; and predicting the current state of source-grid-load-storage based on the aggregation results.
[0012] The technical effects and advantages of the source-grid-load-storage multi-element heterogeneous data fusion method, system, and medium of this invention are as follows: This invention extracts multi-scale features from multi-source data of a power generation, grid, load, and storage system, and incorporates a task feature masking and dynamic feature transition mechanism within a multi-task learning framework. This achieves effective fusion and optimization of features across various analysis tasks, enabling the model to automatically suppress redundant or noisy features and enhance the expressive power of shared features. Consequently, it significantly improves the prediction accuracy and robustness of multiple tasks, including short-term load forecasting, energy storage system charging and discharging strategy optimization, and transmission equipment overheating risk assessment. Simultaneously, the method achieves smooth adjustment and dynamic adaptation of task features through the feature transition mechanism, enhancing stability and generalization ability during multi-task learning and solving the problem of accurate prediction and optimization of power generation, grid, load, and storage systems under complex multi-task environments. Compared to existing technologies, this scheme not only fully utilizes multi-source heterogeneous data but also effectively reduces feature conflicts and information redundancy in multi-task collaborative modeling, thereby significantly improving system reliability, optimization efficiency, and decision support capabilities. Attached Figure Description
[0013] Figure 1This is a flowchart illustrating a multi-source heterogeneous data fusion method for source-grid-load-storage according to the present invention.
[0014] Figure 2 This is a schematic diagram of the structure of a multi-source heterogeneous data fusion system for source, grid, load and storage according to the present invention. Detailed Implementation
[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0016] Example 1, Figure 1 This invention presents a method for fusing heterogeneous data from source, grid, load, and storage systems, comprising the following steps: S1. Obtain the multi-source dataset of the power grid and perform multi-scale feature extraction on the multi-source dataset of the power grid to obtain the multi-scale feature set; In this example, multi-scale feature extraction is performed on the multi-source dataset of the power grid to obtain a multi-scale feature set, specifically: The multi-source dataset of the power grid is divided into several time scales according to a preset time axis; Empirical mode decomposition is performed on the data for each time window to obtain several intrinsic mode function components; Extract the envelope spectrum of each intrinsic mode function component and calculate the geometric center offset of the envelope spectrum at each time scale; The geometric center offsets of the envelope spectrum at each time scale are aligned and stitched together to obtain a multi-scale feature set.
[0017] In this example, the geometric center offset of the envelope spectrum at each time scale is calculated as follows:
[0018] in, Let be the geometric center offset of the envelope spectrum at the j-th time scale. Let j be the total number of frequency points at the j-th time scale. Let k be the frequency value at the k-th frequency point on the j-th time scale. Let $\frac{ ... The preset reference geometric center frequency is the frequency of the j-th time scale.
[0019] It's important to note that, firstly, the collected multi-source power grid data undergoes time-series processing to align data from different sources in time. For example, data such as voltage, current, power, and temperature from generation, transmission, load, and energy storage devices are synchronized using a unified timestamp. Then, different time scales are set according to the analysis objectives and data characteristics, such as second-level, minute-level, hourly, or daily time windows. Taking 24-hour power grid operation data as an example, it can be divided into 1440 minute-level windows or 24-hour-level windows. Each window contains data samples from multiple sources, such as load change curves, voltage fluctuation curves, and energy storage charging and discharging records. This division aims to capture dynamic changes at different time scales; short time windows reflect instantaneous fluctuations, while long time windows reveal trend changes, thus providing multi-level data input for subsequent feature extraction.
[0020] Secondly, within each time window, representative data sequences such as voltage, power, or frequency are selected, and the Empirical Mode Decomposition (EMD) method is used to decompose the signals. EMD is an adaptive decomposition method based on the characteristics of the data itself, which can decompose complex non-stationary signals into several intrinsic mode function (IMF) components at different frequency levels. For example, within an hourly window, the power fluctuation curve, after EMD decomposition, may yield a high-frequency IMF1 (representing instantaneous disturbances), a mid-frequency IMF2 (reflecting scheduling fluctuations), and a low-frequency IMF3 (representing the overall trend). Each IMF component represents the energy distribution and variation pattern of the original signal at different time scales, providing a basis for subsequent extraction of envelope features.
[0021] Furthermore, envelope extraction is performed on each IMF component. This involves detecting local extrema of the signal and interpolating to obtain the envelope curve of that component, reflecting its energy trend over time. Then, spectral analysis is performed on the envelope to obtain the envelope spectrum, which describes the energy distribution in the frequency domain. Next, based on the energy weights of each frequency component in the envelope spectrum, the geometric center offset is calculated to represent the change in the energy centroid relative to the reference frequency at that time scale. For example, within an hourly window, if the low-frequency IMF component of the power signal is biased towards the high-frequency end, the geometric center offset is positive, indicating that the system fluctuates more violently during that period; if it is biased towards the low-frequency end, the offset is negative, indicating that the fluctuation is gentle. In this way, the energy concentration characteristics at different time scales can be quantified.
[0022] Finally, after obtaining the geometric center offsets corresponding to each time scale, these indicators need to be normalized to ensure comparability of data at different scales. Subsequently, the offsets at each time scale are feature-aligned and concatenated in ascending order of time scale to form a multi-scale feature matrix. For example, using minute, hour, and day as three time levels, the offset features can be arranged into a set of feature vectors, with each column representing the energy center of gravity change information at one time scale, and each row a joint description of features at different scales within the same time slice. The concatenated multi-scale feature set retains rapid fluctuation information while incorporating long-term trends, providing a high-dimensional, global feature representation for subsequent multi-task learning, thereby improving the understanding and prediction accuracy of complex operating states.
[0023] S2, perform multi-task learning on the multi-scale feature set to obtain several task features; In this example, multi-task learning is performed on the multi-scale feature set to obtain several task features, specifically: Obtain the operational objectives of the source-grid-load-storage system, and determine several analysis tasks based on these objectives; The feature dimensions of each analysis task are extracted from the multi-scale feature set to obtain the initial task feature subset; Calculate the feature correlation matrix between different analysis tasks based on the initial task feature subset, and identify shared feature dimensions based on the feature correlation matrix; Based on the shared feature dimension, feature transformation is performed on the multi-scale feature set to obtain the shared feature base; Based on the shared feature base, feature augmentation is performed on each analysis task to obtain the task features of each analysis task; Summarize the task characteristics of all analysis tasks to form a task characteristic set.
[0024] In this example, the formula for calculating the feature dimension of each analysis task extracted from the multi-scale feature set is as follows:
[0025] in, Let be the initial task feature subset matrix for the m-th analysis task. It is a multi-scale feature set matrix. A mask matrix is selected to represent the features of the m-th analysis task, and its elements take values of 0 or 1. This is the symbol for element-wise multiplication.
[0026] It should be noted that in the operation of integrated energy generation, grid, load, and storage systems, operational objectives typically refer to the comprehensive performance indicators to be achieved, such as supply and demand balance, optimized energy scheduling, cost minimization, carbon emission control, equipment health maintenance, and operational safety assurance. These objectives reflect the coordination requirements between energy production, transmission, consumption, and storage. The process of obtaining operational objectives is usually determined through scheduling planning, load forecasting, operation and maintenance strategies, or policy constraints. For example, a power grid dispatch center might set "peak shaving and valley filling, improving the renewable energy absorption rate, and reducing energy consumption costs" as operational objectives. Based on these objectives, they can be further broken down into several analytical tasks, such as "load forecasting task," "energy storage optimized scheduling task," "renewable energy output fluctuation analysis task," "voltage stability assessment task," and "equipment health trend prediction task." Each task corresponds to different data concerns and feature dimensions. In this way, the macro-level operational objectives are refined into a set of computable and analyzable tasks, facilitating multi-task parallel modeling in subsequent feature learning.
[0027] Secondly, the multi-scale feature set contains data features from different time scales and sources, such as power fluctuation trends, voltage change rates, energy storage charging and discharging frequencies, and load response characteristics. For each analysis task, it is necessary to select the feature dimensions most relevant to its objective. For example, in the "load forecasting task," features related to changes in electricity demand are mainly extracted, such as the multi-scale energy center offset of historical load curves, weather temperature fluctuation characteristics, and indicators of residential behavior patterns; while the "energy storage optimization scheduling task" focuses more on the rate of change of the state of charge of energy storage devices, the energy distribution of charging and discharging cycles, and the power fluctuation characteristics of the generation side. Through this targeted selection, an initial feature subset can be formed for each task. These subsets reflect the core focus dimensions of different tasks, laying the foundation for the subsequent establishment of a multi-task learning structure.
[0028] Furthermore, after obtaining the initial feature subsets for each analysis task, it is necessary to evaluate their interrelationships to identify potential shared information or dependencies between tasks. To this end, features from different tasks are compared pairwise, and their similarity in terms of trends, energy distribution, temporal correlation, or feature value patterns is statistically analyzed. Taking the "load forecasting task" and the "new energy fluctuation analysis task" as examples, if they have similar envelope spectrum trends in the mid-frequency IMF component of power changes, it indicates a strong correlation between them in terms of energy fluctuation characteristics. These correlations are expressed in matrix form, where each element of the matrix represents the feature similarity or coupling strength between the two tasks. The resulting feature correlation matrix reveals the intrinsic connections between multiple tasks, helping to identify which feature dimensions can be jointly utilized by multiple tasks, thereby improving the overall learning efficiency of the model.
[0029] Furthermore, by utilizing feature correlation matrices, it's possible to determine which feature dimensions exhibit high similarity or consistency across multiple analysis tasks. These features typically reflect common influencing factors across different tasks, such as meteorological conditions, power fluctuation patterns, and regional load change trends. Identifying shared feature dimensions involves threshold filtering and cluster analysis of the matrix, grouping features with correlations exceeding a certain threshold into shared feature groups. For example, if the "load forecasting task" and the "energy storage scheduling task" show strong consistency in hourly power fluctuation offset features, this feature dimension can be defined as a shared dimension. In this way, core features capable of simultaneously describing the behavior of multiple operational objectives can be extracted across different tasks, enabling the model to share a portion of the feature space during subsequent training, thereby improving generalization ability.
[0030] Finally, after identifying the shared feature dimensions, a feature space transformation needs to be performed on the original multi-scale feature set to construct a unified shared feature base. Specifically, these shared dimensions are extracted from the multi-scale feature set and uniformly mapped using methods such as normalization, feature embedding, or dimensionality reduction, allowing different tasks to express their information in the same feature space. For example, voltage fluctuation offsets, power center drift trends, and frequent energy storage switching features across multiple time scales can be fused and mapped to form a set of shared feature basis vectors. These shared feature bases retain the energy distribution characteristics at different time scales and possess cross-task consistency, serving as a common input layer for various analysis tasks in subsequent feature augmentation and collaborative learning, thereby achieving efficient feature sharing and information transfer among multiple tasks.
[0031] In this example, feature augmentation is performed on each analysis task based on the shared feature base to obtain the task features for each analysis task, specifically: For each analysis task, extract a subset of shared features from the shared feature base; By cross-combining the feature dimensions and shared feature subsets of each analysis task, task-specific derived features are obtained. Based on the feature correlation matrix, task-specific derived features are coordinated and adjusted to obtain the task features for each analysis task.
[0032] It is important to note that after obtaining the shared feature base, a subset of features most relevant to the specific analysis task needs to be selected. The shared feature base contains comprehensive features of multi-source information (source, grid, load, and storage) at different time scales, such as power fluctuation trends, energy distribution shifts, load change rates, and energy storage response frequencies. The selected subset of shared features will differ depending on the task. For example, the "load forecasting task" relies more on the multi-scale variation characteristics of the load curve and energy fluctuation characteristics related to meteorological factors; therefore, features reflecting load time-series patterns are selected from the shared feature base. The "energy storage optimization task," on the other hand, emphasizes the charging and discharging patterns of energy storage devices and the energy transfer characteristics corresponding to power fluctuations; therefore, power change trends, energy center shifts, and energy storage frequency features are extracted as the subset of shared features. The extraction process typically combines feature relevance, task objective weights, and data performance to ensure that each task retains the most explanatory shared features, providing high-quality input for subsequent feature fusion and derivation.
[0033] After obtaining the shared feature subset corresponding to each task, it is necessary to cross-combine it with the task's unique feature dimensions to generate task-specific derived features. Task-specific derived features refer to new features formed by fusing, expanding, or reconstructing the interaction between the task's original features and shared features. These new features can better reflect the complex dynamic characteristics or implicit correlations of the task. For example, in the "New Energy Output Fluctuation Analysis Task," cross-combining the energy center offset of power fluctuations in the shared feature subset with the task's unique meteorological data features (such as light intensity and wind speed change rate) can derive new features such as "the degree of influence of wind speed change on power offset" or "the dynamic relationship between light fluctuation and output instability." In the "Load Forecasting Task," combining the long-term energy trend features in the shared feature subset with unique daily load cycle features can generate derived features such as "intraday load growth trend offset."
[0034] In this example, task-specific derived features are coordinated and adjusted based on the feature correlation matrix to obtain the task features for each analysis task, specifically: Based on the feature correlation matrix, identify the feature interaction regions between analysis tasks; Based on the feature interaction region, the task-specific derived features are coordinated and adjusted to obtain the adjusted task-specific derived features. The adjusted task-specific derived features are merged with the feature dimensions to obtain the task features for each analysis task.
[0035] It is important to note that after obtaining the feature correlation matrix between different analysis tasks, it is necessary to analyze the interrelationships of features from different tasks within the matrix to identify feature interaction regions. A feature interaction region refers to a set of features that are significantly correlated or mutually influential in the feature spaces of different analysis tasks. These regions represent information that different tasks may share at the feature level, dynamic relationships of mutual constraints, or potential coupling features. For example, load forecasting and energy storage scheduling may exhibit a high correlation in mid-frequency power fluctuation characteristics. This means that the charging and discharging behavior of energy storage devices directly affects the smoothness of the load-side power curve; this feature interval constitutes a feature interaction region. The identification process typically involves analyzing highly correlated feature combinations in the correlation matrix and clustering them using time scale and energy distribution characteristics to delineate the regions with the strongest feature interactions between tasks. By identifying these interaction regions, the dependencies between different tasks at the feature level can be understood more clearly, providing a foundation for subsequent feature coordination and multi-task collaboration.
[0036] After identifying the feature interaction regions between tasks, it is necessary to coordinate and adjust the task-specific derived features located within these regions to make the value changes of shared or coupled features of different tasks more consistent and the information expression more coordinated. Specifically, this involves weighting, scaling, or compensating the relevant features within the interaction region. For example, when the "new energy fluctuation analysis task" and the "energy storage scheduling task" have a strong interaction relationship in high-frequency power shift features, the feature weights of both can be adjusted so that the fluctuation features of energy storage scheduling appropriately reference the spectral shift trend of new energy output, thereby enhancing the model's global perception of power disturbances. Similarly, when the "load forecasting task" and the "voltage stability assessment task" have overlapping regions in low-frequency energy distribution features, these features can be normalized to ensure that both tasks have a consistent understanding of long-term trends. The task-specific derived features obtained after coordination and adjustment not only more accurately reflect the inherent patterns of the tasks themselves but also achieve dynamic cross-task matching at the data level, helping to improve the overall convergence and predictive stability of the multi-task learning model.
[0037] After completing the feature coordination and adjustment, the adjusted features of each task need to be reintegrated with its original feature dimensions to construct the final task feature set. The merging process is equivalent to combining task-specific feature expressions with coordinated and optimized cross-task features to form a comprehensive feature structure that contains both independent information and synergistic characteristics. For example, in the "energy storage optimization scheduling task," the original feature dimensions might include energy storage charging and discharging status, energy conversion efficiency, etc., while the adjusted features incorporate interactive information from load fluctuations and new energy output. Merging the two yields a task feature set that simultaneously reflects the operating patterns of energy storage itself and the impact of external energy fluctuations. Similarly, in the "load forecasting task," merging the original time-series load features with the adjusted voltage and power fluctuation features allows the model to learn in a broader feature space. In this way, the final task features obtained for each analysis task retain their uniqueness while possessing synergistic information between multiple tasks, providing a more comprehensive input basis for subsequent prediction, evaluation, and optimization.
[0038] S3, randomly mask several task features according to a preset training round to obtain a task feature masking sequence; In this example, several task features are randomly masked according to a preset training round, resulting in a task feature masking sequence, specifically: Set the preset number of training rounds and initialize an empty task feature masking sequence; For each training round, a random binary matrix is generated; Each element in the binary matrix is randomly selected from 0 or 1 according to a uniform distribution, where 0 indicates that the corresponding feature is masked; The random binary matrix is multiplied element-wise with the task features to obtain the masked task features; Add the masked task features to the task feature masking sequence; After completing all training rounds, output the task feature masking sequence.
[0039] It's important to note that before starting model training, a suitable number of training epochs needs to be determined. This number determines the number of times the model randomly masks and reconstructs features at different stages. The number of training epochs is usually determined based on task complexity, data size, and model convergence speed. For example, in the joint modeling of power load forecasting and energy storage optimization, if the data volume is large and the feature dimensions are rich, 100 to 300 training epochs can be set to ensure that the model can fully learn the nonlinear relationships between features. After determining the number of training epochs, an empty task feature masking sequence is initialized to store the feature masking results generated in each training epoch. This sequence is equivalent to a dynamic record structure used to save the task feature state obtained after each masking epoch, providing a data foundation for subsequent calculations of feature masking ratios and dynamic transitions. Through this initialization process, a unified operational framework is established for subsequent feature perturbation and stability evaluation of the model.
[0040] At the start of each training round, a binary matrix with the same dimensions as the task features is randomly generated. Each element in the matrix is independently selected from 0 or 1 with equal probability. An element with a value of 0 indicates that the feature corresponding to that position will be "masked" during this training round, meaning it will not participate in the training for the time being; while an element with a value of 1 indicates that the feature is retained. "Making corresponding features" means temporarily preventing a certain input feature from being used or learned by the model during training to simulate real-world scenarios such as feature loss, noise interference, or feature uncertainty. The purpose of this is to make the model more robust and capable of generalization. For example, if some power fluctuation features are randomly masked from multi-dimensional features such as voltage, power, and temperature, the model can learn to maintain good predictive performance even with incomplete information, thereby enhancing its adaptability to feature redundancy and abnormal fluctuations.
[0041] After generating a random binary matrix, it is multiplied element-wise with the task feature matrix, meaning the multiplication operation is performed at each corresponding position in the matrix. Since the elements in the masking matrix are only 0 or 1, when a position is 0, the corresponding feature value is set to 0, indicating that the feature is masked in this round; when a position is 1, the original feature value remains unchanged. For example, assuming the current task features include load fluctuation trends, voltage offset, and energy storage charging and discharging rates, when the corresponding position in the second column of the random matrix is 0, it means that the voltage offset feature is masked in this round of training, and the model only learns the remaining load and energy storage-related features. In this way, the input feature combination is different in each round of training, thereby achieving diversity in feature perturbations and enabling the model to learn more stable and generalized feature relationships.
[0042] Finally, after the feature masking operation is completed in one round of training, the resulting masked task features are saved to the task feature masking sequence as a feature snapshot of that round of training. This process is repeated in each round of training, gradually forming a sequence set containing the results of multiple rounds of masking. Taking 100 rounds of training as an example, the final task feature masking sequence will contain 100 different masked feature matrices, each reflecting a specific feature missing scenario. This sequence not only provides a statistical basis for subsequently calculating the masking ratio of each feature, but can also be used to analyze which features are frequently retained in multiple rounds of training and which features are easily masked, thereby evaluating the importance and contribution of each feature.
[0043] S4. Extract the feature masking ratio of the task feature masking sequence, and dynamically transition the task features based on the feature masking ratio to obtain the task transition feature set. In this example, the feature masking ratio of the task feature masking sequence is extracted, and the task features are dynamically transitioned based on the feature masking ratio to obtain the task transition feature set, specifically: For the task feature masking sequence, calculate the masking ratio of each feature dimension in all training rounds; Based on the masking ratio, several task features are sorted to obtain a subset of core features; A linear combination of the core feature subsets yields the task transition feature set.
[0044] In this example, for the task feature masking sequence, the masking ratio of each feature dimension across all training rounds is calculated as follows:
[0045] in, Let J be the masking ratio for the j-th feature dimension. The total number of training rounds, Let $\mathbf{j}$ be the masking variable for the $j$-th feature in the $t$-th training round, and its value is either 0 or 1.
[0046] It's important to note that after multiple rounds of training, the task feature masking sequence records whether each feature was masked in each round. At this point, it's necessary to calculate the frequency of each feature being masked across all training rounds, i.e., to calculate the masking ratio for each feature dimension. The masking ratio represents the proportion of times a feature is randomly masked during training out of the total training rounds, reflecting the stability and importance of that feature's participation in multiple rounds of perturbation. For example, if a feature is masked 80 times in 100 training rounds, its masking ratio is 0.8, indicating a low model dependence on that feature; conversely, if the masking ratio is only 0.1, it indicates that the feature is retained in most training rounds and contributes significantly to the model's output. Taking electricity data as an example, assuming the features include "load change rate," "power fluctuation intensity," and "energy storage response rate," if the statistical results show that "power fluctuation intensity" has the lowest masking ratio, it means that this feature consistently plays a crucial role in each training round and has the greatest influence on the final prediction result. Calculating the masking ratio quantifies the stability of each feature during training, providing a basis for the subsequent selection of core features.
[0047] After obtaining the masking ratio for each feature dimension, all features need to be sorted from low to high. The sorting logic is: the lower the masking ratio, the more frequently the feature is retained by the model during training, and the higher its information contribution; the higher the masking ratio, the weaker the feature's impact on the model output or the greater its redundancy. This sorting clearly distinguishes which features are the core driving factors and which features have relatively limited role in prediction. Subsequently, based on the complexity of the task objective or the preset feature retention ratio, a subset of the top-ranked features is selected from the sorting results to construct a core feature subset. For example, in energy storage scheduling analysis, if the sorting results show that the masking ratios for "load fluctuation trend," "energy storage frequency response," and "new energy output change" are the lowest, these three will be included in the core feature subset and used as key inputs for subsequent feature fusion and transition modeling. Through this selection process, the model can focus on high-value features, reduce the interference of invalid or noisy features on the training results, and thus improve prediction efficiency and accuracy.
[0048] After selecting the core feature subset, these features need to be linearly combined to form a task transition feature set. The linear combination process is essentially a weighted fusion of the core features, balancing the influence of different features in the combination, thereby generating transition features that comprehensively reflect the changing trends of multi-source information. Taking multi-source power grid data as an example, if the core feature subset includes three features—load change rate, power offset, and energy storage response delay—their values can be superimposed in a certain proportion through weighted summation to form a new set of composite features. These transition features retain the differences between the original features while exhibiting a smooth overall trend, enabling dynamic connection of feature information between different training stages.
[0049] S5 predicts the state of source-grid-load-storage based on the task transition feature set.
[0050] In this example, state prediction of source-grid-load-storage is performed based on the task transition feature set, specifically as follows: The task transition feature set is matched with a preset historical state database to obtain several historical feature sequences; Extract the source-grid-load-storage state value corresponding to each historical feature sequence, and statistically aggregate the source-grid-load-storage state values; Based on the aggregation results, predict the current state of the source, grid, load, and storage.
[0051] In this example, the source-grid-load-storage state value corresponding to each historical feature sequence is extracted as follows:
[0052] in, Let $\frac{r}{k}$ be the average state value of the $k$-th type of object in the $r$-th historical feature sequence, where $\frac{r}{k}$ includes source, network, load, and storage. To represent the length of the r-th historical feature sequence, Let be the state observation value of the k-th class object in the p-th time slice of the r-th historical feature sequence.
[0053] It's important to note that after obtaining the task transition feature set, the feature patterns within it need to be matched against historical features stored in the historical state database to find the historical records most similar to the current operating characteristics. The pre-set historical state database typically stores a large amount of multi-source feature data collected at different times and under different operating conditions, such as past power generation curves, load change trends, energy storage charging and discharging characteristics, and voltage fluctuation patterns. The matching process can be based on feature similarity, time window adjacency, or energy fluctuation patterns. For example, if the current task transition feature set shows characteristics such as increased power fluctuation amplitude and increased energy storage response delay, the system will retrieve several historical records with similar fluctuation patterns from the database. Each matched historical feature is arranged chronologically, forming a historical feature sequence. A historical feature sequence refers to a continuously recorded multi-dimensional feature trajectory in the historical database, representing the dynamic evolution of various energy elements under similar operating conditions in the past. By acquiring these sequences, the model can extract empirical patterns from history, providing a basis for predicting the current state.
[0054] After obtaining several historical feature sequences, it is necessary to extract the corresponding operating state values for four categories: source, grid, load, and storage. Source-grid-load-storage state values refer to key operating indicators or physical states at each stage of historical operation, such as power output and fuel utilization rate on the generation side, voltage level and line load rate on the transmission side, electricity demand and power factor on the load side, and state of charge, charging / discharging rate, and energy conversion efficiency on the energy storage side. After extracting these state values, statistical aggregation is performed on similar state values from different time periods and different feature sequences to calculate their mean, range of variation, fluctuation frequency, or distribution characteristics. For example, if the current task transition characteristics are similar to a historically high-fluctuation phase of new energy, the power generation output level, energy storage charging rate, and load response at that time are extracted, statistically summarized, and the typical state distribution of source-grid-load-storage under such operating conditions is obtained. Through this aggregation process, the operating state patterns under similar characteristic conditions in history can be obtained, providing data support for predicting the current operating state.
[0055] Finally, after statistically aggregating historical state values, the model uses these aggregation results to predict the current operating state. The core idea of the prediction is that the more similar the current feature pattern is to the historical feature sequence, the more the corresponding aggregated state reflects the current potential trend of state change. Specifically, the model compares the task transition feature set with the aggregated state distribution to identify the best-matching state interval, thereby inferring the possible direction of change in power generation, transmission, load, and energy storage. For example, when the aggregation results indicate that under similar historical conditions, energy storage devices typically transition from charging to discharging, while load demand shows a rapid upward trend, the model predicts that the current stage may also be about to enter an operating state of energy release and load growth.
[0056] Example 2, Figure 2 This invention presents a multi-source, heterogeneous data fusion system for source-grid-load-storage systems, comprising a feature extraction module, a task learning module, a feature masking module, a dynamic transition module, and a state prediction module. The feature extraction module is used to acquire multi-source datasets of the power grid and perform multi-scale feature extraction on the multi-source datasets of the power grid to obtain multi-scale feature sets; The task learning module is used to perform multi-task learning on multi-scale feature sets to obtain several task features; The feature masking module is used to randomly mask several task features according to a preset training round to obtain a task feature masking sequence. The dynamic transition module is used to extract the feature masking ratio of the task feature masking sequence and dynamically transition the task features based on the feature masking ratio to obtain the task transition feature set. The state prediction module is used to predict the state of the source, grid, load, and storage based on the task transition feature set.
[0057] The present invention also includes a computer-readable storage medium storing a computer program that, when executed by a processor, implements a method for fusing heterogeneous data from sources, grids, loads, and storage.
[0058] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0059] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, in the form of a computer program product.
[0060] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0061] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
[0062] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0063] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for fusing heterogeneous data from source, grid, load, and storage, characterized in that, Includes the following steps: Obtain a multi-source dataset of the power grid; the multi-source dataset of the power grid is obtained by aligning the voltage, current, power, frequency, temperature and energy storage state of charge data collected by measuring devices deployed on the generation side, transmission side, load side and energy storage side according to a unified timestamp. The multi-source dataset of the power grid is divided into several time scales according to a preset time axis. Empirical mode decomposition is performed on the time series signals representing voltage, power or frequency in the data of each time scale to obtain several intrinsic mode function components. Extract the envelope spectrum of each intrinsic mode function component, and calculate the geometric center offset of the time scale relative to the preset reference geometric center frequency based on the frequency value of each frequency point in the envelope spectrum and the amplitude of the envelope spectrum at that frequency point. The geometric center offset represents the migration of the energy center of the time series signal to the high-frequency end or the low-frequency end under the time scale. After normalizing the geometric center offsets of each time scale, the features are aligned and stitched together in the order of the time scales to obtain a multi-scale feature set. Multi-task learning is performed on the multi-scale feature set to obtain several task features; Several task features are randomly masked according to a preset training round to simulate the situation where measurement data is missing or disturbed in the source-grid-load-storage system, thus obtaining the task feature masking sequence. Extract the feature masking ratio of the task feature masking sequence, and dynamically transition the task features based on the feature masking ratio to suppress redundant and disturbed feature dimensions, thereby obtaining the task transition feature set. Based on the task transition feature set, the state prediction of source-grid-load-storage is performed to obtain the state prediction result of source-grid-load-storage in at least one of the following: power generation output, transmission equipment load rate, electricity demand and energy storage charge status. The state prediction result is then output to the source-grid-load-storage collaborative scheduling link for load scheduling, energy storage charging and discharging strategy adjustment or transmission equipment overheating risk assessment.
2. The source-grid-load-storage multi-source heterogeneous data fusion method according to claim 1, characterized in that, The multi-task learning of the multi-scale feature set yields several task features, specifically: Obtain the operational objectives of the source-grid-load-storage system, and determine several analysis tasks based on these objectives; The feature dimensions of each analysis task are extracted from the multi-scale feature set to obtain the initial task feature subset; Calculate the feature correlation matrix between different analysis tasks based on the initial task feature subset, and identify shared feature dimensions based on the feature correlation matrix; Based on the shared feature dimension, feature transformation is performed on the multi-scale feature set to obtain the shared feature base; Based on the shared feature base, feature augmentation is performed on each analysis task to obtain the task features of each analysis task; Summarize the task characteristics of all analysis tasks to form a task characteristic set.
3. The source-grid-load-storage multi-element heterogeneous data fusion method according to claim 2, characterized in that, The feature amplification of each analysis task based on the shared feature base to obtain the task features of each analysis task is specifically as follows: For each analysis task, extract a subset of shared features from the shared feature base; By cross-combining the feature dimensions and shared feature subsets of each analysis task, task-specific derived features are obtained. Based on the feature correlation matrix, task-specific derived features are coordinated and adjusted to obtain the task features for each analysis task.
4. The source-grid-load-storage multi-element heterogeneous data fusion method according to claim 3, characterized in that, The coordination and adjustment of task-specific derived features based on the feature correlation matrix to obtain the task features for each analysis task are as follows: Based on the feature correlation matrix, identify the feature interaction regions between analysis tasks; Based on the feature interaction region, the task-specific derived features are coordinated and adjusted to obtain the adjusted task-specific derived features. The adjusted task-specific derived features and feature dimensions are combined to obtain the task features for each analysis task.
5. The source-grid-load-storage multi-source heterogeneous data fusion method according to claim 4, characterized in that, The step of randomly masking several task features according to a preset training round to obtain a task feature masking sequence is as follows: Set the preset number of training rounds and initialize an empty task feature masking sequence; For each training round, a random binary matrix is generated; Each element in the binary matrix is randomly selected from 0 or 1 according to a uniform distribution, where 0 indicates that the corresponding feature is masked; The random binary matrix is multiplied element-wise with the task features to obtain the masked task features; Add the masked task features to the task feature masking sequence; After completing all training rounds, output the task feature masking sequence.
6. The source-grid-load-storage multi-element heterogeneous data fusion method according to claim 5, characterized in that, The process involves extracting the feature masking ratio of the task feature masking sequence and dynamically transitioning the task features based on the feature masking ratio to obtain a task transition feature set, specifically as follows: For the task feature masking sequence, calculate the masking ratio of each feature dimension in all training rounds; Based on the masking ratio, several task features are sorted to obtain a subset of core features; A linear combination of the core feature subsets yields the task transition feature set.
7. The source-grid-load-storage multi-element heterogeneous data fusion method according to claim 6, characterized in that, The state prediction of source-grid-load-storage based on the task transition feature set is as follows: The task transition feature set is matched with a preset historical state database to obtain several historical feature sequences; Extract the source-grid-load-storage state value corresponding to each historical feature sequence, and statistically aggregate the source-grid-load-storage state values; Based on the aggregation results, predict the current state of the source, grid, load, and storage.
8. A source-grid-load-storage multi-element heterogeneous data fusion system, applied to the source-grid-load-storage multi-element heterogeneous data fusion method described in any one of claims 1-7, characterized in that, It includes a feature extraction module, a task learning module, a feature masking module, a dynamic transition module, and a state prediction module. The feature extraction module is used to acquire multi-source datasets of the power grid and perform multi-scale feature extraction on the multi-source datasets of the power grid to obtain multi-scale feature sets; The task learning module is used to perform multi-task learning on multi-scale feature sets to obtain several task features; The feature masking module is used to randomly mask several task features according to a preset training round to obtain a task feature masking sequence. The dynamic transition module is used to extract the feature masking ratio of the task feature masking sequence and dynamically transition the task features based on the feature masking ratio to obtain the task transition feature set. The state prediction module is used to predict the state of the source, grid, load, and storage based on the task transition feature set.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements a source-grid-load-storage multi-element heterogeneous data fusion method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Power system business high-performance heterogeneous computing system
CN117032946A
Multi-task object detection method, electronic device, medium, and vehicle
US20230377325A1
