Energy big data processing method and system based on machine learning

Through machine learning-based methods, combined with the ECC encryption algorithm, the encryption level and encryption strength of power data are adaptively obtained, which solves the problem of ECC private keys being easily attacked and improves the security of energy big data.

CN118132657BActive Publication Date: 2024-08-23ECONOMIC TECH RES INST OF STATE GRID HENAN ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410242649.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-08-23
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

The ECC encryption algorithm has the problem that the private key is susceptible to exhaustive attacks and has insufficient ability to withstand quantum computing attacks in energy data processing, resulting in low security of energy big data.

Method used

Through a machine learning-based method, the power consumption data within the time series interval of the power data entity is collected, and the power seasonal fluctuation sparsity index and principal component fit index are constructed. Combined with the ECC encryption algorithm, the encryption level and encryption strength are adaptively obtained, and the private key is corrected. value to improve encryption security.

Benefits of technology

It improves the security of the ECC encryption algorithm, avoids poor encryption effects caused by small private key values, and enhances the overall security of energy big data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118132657B
    Figure CN118132657B
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a method and system for processing energy big data based on machine learning, the method comprising: constructing a seasonal fluctuation sparse index for each time series interval in each energy data entity; calculating the fluctuation characterization strength of each time series interval, and calculating the fluctuation bonding coefficient between each time series interval and each principal component, and obtaining the fluctuation principal component matching index of each time series interval; dividing the power matching undirected graph into each initial clustering cluster, calculating the matching conversion ease coefficient of each comparison node combination in the initial clustering cluster, and calculating the data protection value evaluation index of each energy data entity; calculating the ECC modified private key value of each encryption level, and encrypting the energy data through the ECC encryption algorithm. The present invention adaptively obtains the private key of the ECC encryption algorithm according to the data protection value evaluation index of each energy data entity, thereby improving encryption security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an energy big data processing method and system based on machine learning. Background Art

[0002] As an important part of "Internet +" smart energy, energy big data plays a vital role in promoting my country's energy revolution, helping the country's energy structure transformation, and stimulating the innovative development of the energy industry. In the context of the global trend of urgently needing to achieve energy transformation, "Internet +" smart energy has become a hot topic that has attracted widespread attention in the energy field.

[0003] With the advancement of information technology, power companies have gradually realized intelligent and information management. On this basis, the information data of the power system has also grown rapidly. Power data is the key information data in energy big data. While power big data improves the work quality and efficiency of power companies, it also has significant security issues, which affects the application of power big data. Effectively solving the data security issues of power big data is an important task facing power companies and energy big data management.

[0004] Compared with traditional asymmetric encryption algorithms, the ECC (Elliptic Curve Cryptography) algorithm can provide higher energy data security and better encryption effect when the key length is the same. However, the private key of the ECC encryption algorithm is a random number. When the ECC random number generated by the energy data is small, the energy data private key is easily attacked by exhaustive attacks, and the encrypted energy data's ability to resist quantum computing attacks decreases, resulting in the problem of low security of energy big data. Summary of the invention

[0005] In order to solve the above technical problems, the purpose of the present invention is to provide an energy big data processing method and system based on machine learning. The technical solutions adopted are as follows:

[0006] In a first aspect, an embodiment of the present invention provides an energy big data processing method based on machine learning, the method comprising the following steps:

[0007] For energy data, the power consumption data of each power data entity at the time of collection is collected, and the entity interval power sequence of each time series interval of each power data entity is obtained;

[0008] Construct the power seasonal fluctuation sparse index of each time series interval in each power data entity; calculate the power fluctuation characterization intensity of each time series interval according to the power seasonal fluctuation sparse index of each time series interval and the kurtosis of the power sequence of the entity interval; calculate the power fluctuation adhesion coefficient between each time series interval and each principal component according to the power seasonal fluctuation sparse index, the power fluctuation characterization intensity and the kurtosis of the power sequence of the entity interval, and obtain the power fluctuation principal component fit index of each time series interval;

[0009] According to the matching index of the main components of power fluctuations in each time series interval, an electric power matching undirected graph is constructed, the electric power matching undirected graph is divided into initial clusters, the comparison node combinations of each initial cluster are obtained, and the breadth-first search algorithm is used to obtain all reachable paths between the comparison node combinations, which are recorded as the matching conversion paths; the matching conversion ease coefficient of each comparison node combination is obtained according to the matching conversion paths between the comparison node combinations in the initial clusters and the edge weights between the nodes in the electric power matching undirected graph; the matching similarity coefficients of different electric power data entities are constructed according to the matching conversion ease coefficients of each comparison node combination in all initial clusters combined with the electric power matching undirected graph, and the data protection value evaluation index of each electric power data entity is obtained based on the matching similarity coefficient;

[0010] According to the data protection value assessment index of each power data entity, the encryption level and encryption strength of each power entity are obtained, and the ECC modified private key value of each encryption level is calculated in combination with the original private key value of the ECC encryption algorithm, and the power data is encrypted using the ECC encryption algorithm.

[0011] Preferably, the collecting of power consumption data of each power data entity at the collection time to obtain the entity interval power sequence of each time interval of each power data entity includes:

[0012] The power consumption of each power data entity at each collection moment is collected to form a physical power data sequence of each power data entity. The physical power data sequence is evenly divided into each time series interval. The power consumption of each time series interval constitutes a physical interval power sequence of each time interval, wherein each power data entity is each power energy consumption demand party.

[0013] Preferably, the step of constructing a sparse index of seasonal power fluctuations in each time series interval in each power data entity includes:

[0014] The time series STL decomposition algorithm is used to extract the power season data sequence of the entity interval power sequence. The time value of the data in the power season data sequence is used as the horizontal coordinate, and the power data value is used as the vertical coordinate. The Bayesian curve fitting method is used to obtain the power season fitting curve function, and the power season extreme value sequence is formed by sorting the extreme value points in ascending order according to the horizontal coordinates of the extreme value points.

[0015] Starting from the second extreme point in the power season extreme value sequence, the absolute value of the difference between the power data corresponding to the extreme point in the power season extreme value sequence and the power data corresponding to the extreme point before the extreme point is calculated as the power extreme value fluctuation deviation value of the extreme point, and the power extreme value fluctuation deviation values ​​of all extreme points in the power season extreme value sequence except the first extreme point are sorted in ascending order according to time to form a power extreme value fluctuation deviation sequence;

[0016] The power seasonal fluctuation sparse index G of the mth time series interval in the nth power data entity m The expression is:

[0017]

[0018] In the formula, λ p , p-1 are the time values ​​of the pth and p-1th extreme value points in the power season extreme value sequence, C i is the ith power extreme value fluctuation deviation value in the power extreme value fluctuation deviation sequence, is the mean of all power extreme value fluctuation deviations in the power extreme value fluctuation deviation sequence, P m is the number of extreme points in the electricity seasonal extreme value sequence.

[0019] Preferably, the power fluctuation characterization intensity of each time series interval is calculated according to the power seasonal fluctuation sparse index of each time series interval and the kurtosis of the physical interval power sequence, including:

[0020] The sum of the power seasonal fluctuation sparse index of each time series interval and a preset value greater than zero is calculated, the kurtosis of the physical interval power sequence of each time series interval is calculated, and the ratio of the kurtosis to the sum is used as the power fluctuation characterization intensity of each time series interval.

[0021] Preferably, the calculation of the power fluctuation adhesion coefficient between each time series interval and each principal component, and obtaining the power fluctuation principal component matching index of each time series interval includes:

[0022] The power seasonal fluctuation sparse index, the kurtosis, and the power fluctuation characterization intensity of each time series interval are used to form the power fluctuation feature vector of each time series interval. The power fluctuation feature vectors of each time series interval of the power data entity are sorted in the order of the time series intervals as the rows of the matrix, and different power data entities are used as the columns of the matrix to form a power fluctuation matrix. The power fluctuation matrix is ​​used as the input of the PCA algorithm to obtain the contribution of each principal component;

[0023] The power fluctuation feature vector with the smallest Euclidean distance to each principal component in the dimensionality reduction space is taken as the representative power feature vector of each principal component, and the Euclidean distance between the power fluctuation feature vector and each principal component is calculated, which is recorded as the mapping distance of the power fluctuation feature vector on each principal component;

[0024] The power fluctuation viscosity coefficient between the mth time series interval and the yth principal component in the nth power data entity The expression is:

[0025]

[0026] In the formula, is the mapping distance of the power fluctuation feature vector of the mth time series interval in the nth power data entity on the kth principal component, is the power fluctuation feature vector of the mth time series interval in the nth power data entity, R(y) is the representative power feature vector of the yth principal component, Cos() is the cosine similarity, and α is a preset value greater than zero;

[0027]

[0028] In the formula, is the power fluctuation principal component matching index of the mth time series interval in the nth power data entity, μ k is the contribution of the kth principal component, and Y is the number of principal components.

[0029] Preferably, constructing a power matching undirected graph according to the power fluctuation principal component matching index of each time series interval, dividing the power matching undirected graph into initial clusters, and obtaining a comparison node combination of each initial cluster, includes:

[0030] Take each time series interval of each power data entity as an undirected graph node, calculate the inverse of the absolute value of the difference between the power fluctuation principal component fit index of any two time series intervals, and record it as the principal component fit value;

[0031] All principal component fit values ​​are used as input of the Otsu method, and the output is the fit difference segmentation threshold. Two undirected graph nodes whose principal component fit values ​​are greater than the fit difference segmentation threshold are recorded as connectable node combinations. The principal component fit values ​​between the connectable node combinations are used as the edge weights between the two undirected graph nodes to construct an electric power fit undirected graph.

[0032] The power matching undirected graph is input into the Markov clustering algorithm, and each initial cluster is output. The combination of any two undirected graph nodes of different power data entities belonging to the same initial cluster in the power matching undirected graph is recorded as the comparison node combination of the initial cluster.

[0033] Preferably, the method of obtaining the matching conversion ease coefficient of each comparison node combination according to the matching conversion path between each comparison node combination in the initial clustering cluster and the edge weights between nodes in the power matching undirected graph includes:

[0034] For each matching conversion path between each comparison node combination, the sum of the edge weights between all adjacent undirected graph nodes in the matching conversion path is calculated as the matching weight sum of the matching conversion path, the number of undirected graph nodes passed by each matching conversion path is taken as the matching path length of each matching conversion path, and the ratio of the matching weight sum of each matching conversion path to the matching path length is calculated;

[0035] The sum of the ratios of all matching conversion paths of the comparison node combination is obtained, and the ratio of the sum to the number of matching conversion paths between the comparison node combination is used as the matching conversion ease coefficient of the comparison node combination.

[0036] Preferably, the constructing of the matching similarity coefficients of different power data entities and obtaining the data protection value evaluation index of each power data entity based on the matching similarity coefficients include:

[0037] The similarity coefficient V between the xth power data entity and the zth power data entity x,z The expression is:

[0038]

[0039] Where W x,z (k) is the number of all comparison node combinations of the xth power data entity and the zth power data entity in the kth initial cluster, ω x,z (k) is the number of homomorphisms of the xth power data entity and the zth power data entity in the kth initial cluster, σ(k) is the number of all undirected graph nodes in the kth initial cluster, K is the number of initial clusters, and the homomorphism number is the number of undirected graph nodes belonging to the xth power data entity or the zth power data entity in the kth initial cluster;

[0040] The inverse of the calculation result of the similarity coefficient of fit between each power data entity and other power data entities plus a preset value greater than zero is obtained, and the normalized result of the sum of the inverses of each power data entity and all other power data entities is used as the data protection value evaluation index of each power data entity.

[0041] Preferably, the method of obtaining each encryption level and each power entity encryption strength according to the data protection value evaluation index of each power data entity, and calculating the ECC modified private key value of each encryption level in combination with the original private key value of the ECC encryption algorithm includes:

[0042] The data protection value evaluation index of all power data entities is used as the input of the K-means clustering algorithm, and each cluster is output. Any cluster is taken as an encryption level, and the mean value of the data protection value evaluation index of all power data entities in the cluster is calculated, which is recorded as the power entity encryption strength of the encryption level corresponding to the cluster;

[0043] The maximum value of the power entity encryption strength in all encryption levels is counted, the ratio of the power entity encryption strength of each encryption level to the maximum value is calculated, the sum of 1 and the ratio is obtained, and the rounded value of the product of the sum and the original private key value of the traditional ECC encryption algorithm is used as the ECC modified private key value of each encryption level.

[0044] In a second aspect, an embodiment of the present invention also provides an energy big data processing system based on machine learning, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0045] The present invention has at least the following beneficial effects:

[0046] The present invention constructs a power fluctuation principal component matching index for each time series interval in the power data entity based on the smooth and fluctuating characteristics of power data in the time series interval of the power data entity, in combination with the STL decomposition algorithm and the PCA principal component analysis algorithm, to reflect the correlation matching characteristics between the power data in each time series interval and the principal component. The beneficial effect of the present invention is that the correlation between the power data in the time series interval and the principal component of the entire energy big data center is comprehensively considered, so as to avoid the problem of low efficiency in comparing the power data in a single time series interval with all the power data. The private key value of the ECC encryption algorithm is obtained based on the differences between the power data entities, in combination with the Markov clustering and K-means algorithms. The beneficial effect of the present invention is that the problem of poor encryption processing effect of the energy big data is avoided when the private key value randomly obtained by the ECC encryption algorithm is small. The private key of the ECC encryption algorithm is adaptively obtained according to the data protection value evaluation index of each power data entity, so as to improve the security of the ECC encryption algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1A flowchart of the steps of an energy big data processing method based on machine learning provided by one embodiment of the present invention;

[0049] Figure 2 This is a visualization diagram of the clustering results of the data protection value assessment index of each power data entity. DETAILED DESCRIPTION

[0050] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the energy big data processing method and system based on machine learning proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0051] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0052] The specific scheme of the energy big data processing method and system based on machine learning provided by the present invention is described in detail below with reference to the accompanying drawings.

[0053] See also Figure 1 , which shows a flowchart of a method for processing energy big data based on machine learning provided by an embodiment of the present invention, the method comprising the following steps:

[0054] Energy data includes various types: coal data (coal consumption), natural gas data (natural gas consumption), oil data (oil consumption), and electricity data (electricity consumption), etc. This embodiment takes electricity data as an example to explain the processing of energy data in detail. Other energy data can be processed in the same way as electricity data.

[0055] Step S001, collecting power data and preprocessing it to obtain the entity interval power sequence of each time interval of each power data entity.

[0056] This embodiment aims to process the power data in the energy big data, therefore, the power data is first collected. Each power energy consumption demand party is regarded as a power data entity, and the power data of each power data entity is collected through the database of the energy big data center, and the power consumption data of the power data entity is taken as the power data. The power data mentioned later in this embodiment are all power consumption data, and will not be described in detail later. The power data of each power data entity is collected, and the total collection time is T, where the collection time interval is set to 30 minutes in this embodiment, and the total collection time is 30 days.

[0057] Furthermore, this embodiment takes into account that there may be data missing in the power data of the power data entity during the transmission process. Therefore, this embodiment performs data filling on all acquired power data. There are many existing technologies for data filling. This embodiment adopts the Lagrangian filling method for data filling, wherein the Lagrangian filling method is a well-known technology and will not be described here.

[0058] The power data of each power data entity is sorted in chronological order to construct an entity power data sequence A. The total number of power data entities is N. Secondly, in this embodiment, 1 day is used as a time series interval, and the above entity power data sequence is divided into 30 time series intervals. The data sequence corresponding to each time series interval is recorded as an entity interval power sequence B, and the total number of time series intervals is recorded as M. Among them, A n Represents the entity power data sequence corresponding to the nth electronic data entity in the energy big data center, It represents the entity interval power sequence of the mth time interval in the nth electronic data entity in the energy big data center.

[0059] For other energy data, through the above steps of this embodiment, the entity interval sequence corresponding to the other energy data can be obtained.

[0060] Step S002, based on the stability and fluctuation characteristics of the power data within the time series interval of the power data entity, construct the power fluctuation principal component fit index of each time series interval in the power data entity; obtain the private key value of the ECC encryption algorithm based on the differences between different power data entities to improve the security of the ECC encryption algorithm.

[0061] In the energy big data center, the fluctuation of power data can reflect the unique characteristics of the power data entity. For example, when the factory also uses renewable energy, the supply of renewable energy such as solar energy and wind energy is affected by weather conditions, and its instability will also cause fluctuations in power data. Therefore, when the encryption processing of the power data of the power data entity is poor, once it is obtained by an attacker, there is a great probability that the business information and operation details of the power data entity can be judged, causing significant losses to the power data entity. At the same time, since the ECC encryption algorithm can use a shorter key length and provide a higher encryption effect, it is widely used in the field of data encryption. However, the private key of the ECC encryption algorithm is a random number, and there is a problem that the ECC random number generated by the power data is small, the power data private key is easily attacked by exhaustive attacks, and the security is low. Therefore, the purpose of the present invention is to adaptively obtain the private key of the ECC encryption algorithm according to the data protection value evaluation index of each power data entity, and realize the encryption processing method for power energy big data.

[0062] In the energy big data center, the power data corresponding to the power data entity may have certain fluctuation characteristics. These fluctuation characteristics can reflect the privacy information of the power data entity. For example, when a factory belongs to a power data entity and the factory purchases a batch of new equipment, it is often necessary to debug the equipment before the new equipment officially starts working. This will cause significant fluctuations in the factory's power data.

[0063] The entity interval power sequence corresponding to the mth time series interval of the nth power data entity in the energy big data center As an example, the time series STL (Seasonal and Trend decomposition using Loess) decomposition algorithm is used to input the entity interval power series The output is a seasonal power data series, where the time series STL decomposition algorithm is a well-known technology, and the specific process is not repeated here. For the corresponding power season data sequence, the data time value in the power season data sequence is taken as the horizontal coordinate, and the power data value is taken as the vertical coordinate. The Bayesian curve fitting method is adopted. The input is the power season data sequence, and the output is the power season fitting curve function. The extreme value points of the power fitting curve function are obtained, and the number of extreme value points is counted as P. m , the extreme value points are sorted in ascending order according to their horizontal coordinates, which are recorded as the power season extreme value sequence. The Bayesian curve fitting method is a well-known technology, and the specific process will not be repeated here.

[0064] Furthermore, the absolute value of the difference between the power data corresponding to the ith extreme point in the power seasonal extreme value sequence and the power data corresponding to the i-1th extreme point is calculated, and recorded as the power extreme value fluctuation deviation value of the ith extreme point. It should be noted that i=2,3..,P m The same calculation method as above is used to obtain the power extreme value fluctuation deviation values ​​corresponding to all extreme value points, and all power extreme value fluctuation deviation values ​​are sorted in order from small to large at the time to form a power extreme value fluctuation deviation sequence.

[0065] Based on the above analysis, the power fluctuation representation intensity U of the mth time interval in the nth power data entity can be obtained: m :

[0066]

[0067]

[0068] Among them, G m is the power seasonal fluctuation sparse index of the mth time series interval of the nth power data entity, λ p , p-1are the time values ​​of the pth and p-1th extreme value points in the power season extreme value sequence, C i is the ith power extreme value fluctuation deviation value in the power extreme value fluctuation deviation sequence, is the mean of all power extreme value fluctuation deviations in the power extreme value fluctuation deviation sequence, P m is the number of extreme points in the power season extreme value sequence. When the difference between the power time values ​​corresponding to the two extreme points is larger, that is, (λ p -λ p-1 ) is larger, indicating that the density of extreme points in the power seasonal data series is lower, the fluctuation changes are sparser, and at the same time, the difference between the power extreme value fluctuation deviation and the mean of the power extreme value fluctuation deviation of all extreme points is smaller, that is, The smaller it is, the more stable the power data fluctuation in the power seasonal data series is, and the more significant the stable characteristics are. The sparse index G of power seasonal fluctuation is m The bigger.

[0069] U m is the power fluctuation intensity of the mth time interval in the nth power data entity, is the kurtosis of the entity interval power sequence of the mth time interval in the nth power data entity. α is a preset value greater than zero. Its function is to prevent the denominator from being 0. In this embodiment, the value is 0.001. The steeper the shape of the numerical distribution, that is, The larger the value, the more significant the fluctuation characteristics of the power data of the entity interval power sequence are. The smaller the sparse index of seasonal power fluctuation, that is, G m The smaller the size, the more the physical interval power sequence The less obvious the stable characteristics of power and the more intensive the fluctuations, the greater the power fluctuation intensity U m The bigger.

[0070] According to the above steps, taking the nth power data entity as an example, the power seasonal fluctuation sparse index G corresponding to the mth time series interval is obtained respectively. m , Kurtosis Power fluctuation characterization intensity U m , which constitutes the power fluctuation characteristic vector of the mth time interval Secondly, the power fluctuation feature vectors of all time series intervals in each power data entity are obtained, and the power fluctuation feature vectors corresponding to each time series interval in each power data entity are used as the row vectors of the matrix in the order of appearance of the time series intervals, and different power data entities are used as the column vectors of the matrix to form a power fluctuation matrix with a dimension of N×M. The power fluctuation matrix is ​​used as the input of the principal component analysis PCA (Principal Component Analysis) algorithm, and the output is the principal component power fluctuation matrix of N×Y dimensions and the contribution μ corresponding to each principal component. Y takes the empirical value of 5, wherein the principal component analysis PCA algorithm is a well-known technology, and the specific process is not repeated. Further, for any of the above PCA principal components, the power fluctuation feature vector with the smallest Euclidean distance from each principal component in the dimensionality reduction space is used as the representative power feature vector of the corresponding principal component. For any power fluctuation feature vector, the Euclidean distance between the power fluctuation feature vector and the direction of each principal component is obtained, which is recorded as the mapping distance of the power fluctuation feature vector on each principal component.

[0071] Based on the above analysis, the power fluctuation principal component matching index of the mth time series interval in the nth power data entity can be obtained:

[0072]

[0073]

[0074] in, is the power fluctuation viscosity coefficient between the mth time series interval and the yth principal component in the nth power data entity, is the mapping distance of the power fluctuation feature vector of the mth time series interval in the nth power data entity on the kth principal component, is the power fluctuation characteristic vector of the mth time series interval in the nth power data entity, R(y) is the representative power characteristic vector of the yth principal component, Cos() is the cosine similarity, α is a preset value greater than zero, which is used to prevent the denominator from being 0. In this embodiment, the value is 0.001.

[0075] When the mapping distance of the power fluctuation characteristic vector in the direction of the principal component is smaller, that is, The smaller it is, the smaller the difference between the power fluctuation feature vector and the yth principal component is. At the same time, when the power fluctuation feature and the representative power feature vector of the principal component are larger, that is, The larger it is, the more similar the power fluctuation characteristic vector is to the yth principal component. Its function is to avoid the problem that each power fluctuation characteristic vector in the dimensionality reduction space is far away from the principal component mapping, resulting in a small power fluctuation bonding coefficient.

[0076] is the power fluctuation principal component matching index of the mth time series interval in the nth power data entity, μ k is the contribution of the kth principal component, and Y is the number of principal components. The greater the contribution of the principal component, the more information it contains, the better it can distinguish different power fluctuation feature vectors, the greater the weight, and the greater the power fluctuation bonding coefficient, that is, The larger the value is, the more relevant and sticky the power fluctuation feature vector is to the principal component. The bigger.

[0077] According to the above steps, first, each time series interval in each power data entity is taken as an undirected graph node, and the inverse of the absolute value of the difference between the power fluctuation principal component fit index of any two time series intervals is calculated, recorded as the principal component fit value, and all principal component fit values ​​are used as the input of the Otsu method, and the output is the fit difference segmentation threshold. The two undirected graph nodes whose principal component fit values ​​are greater than the fit difference segmentation threshold are recorded as a connectable node combination. Secondly, the principal component fit values ​​between all connectable node combinations are used as the edge weights between two undirected graph nodes to construct a power fit undirected graph. Furthermore, the power fit undirected graph is input into the Markov clustering algorithm, and K initial clustering clusters are output. Taking the kth initial cluster as an example, obtain the undirected graph structure corresponding to the kth initial cluster in the power conformity undirected graph, record the combination of any undirected graph node in the xth power data entity of the kth initial cluster in the power conformity undirected graph and any undirected graph node in the zth power data entity as the comparison node combination, use the breadth-first search BFS (Breadth-First Search) algorithm to obtain all reachable paths of the above two comparison node combinations, and record each reachable path as a conformity conversion path. Based on the above analysis, the data protection value evaluation index F of the xth power data entity can be obtained. x :

[0078]

[0079]

[0080]

[0081] Among them, L δ (k) is the easy conversion coefficient of the xth power data entity and the zth power data entity in the δth comparison node combination in the kth initial cluster, ρ ξ is the sum of the matching weights of the ξth matching conversion path between the δth comparison node combination, which is obtained by summing the edge weights between all adjacent undirected graph nodes in the matching conversion path, τ ξis the length of the matching path of the ξth matching conversion path between the δth comparison node combination, which is obtained by the number of undirected graph nodes that the matching conversion path passes through, O δ (k) is the number of all matching transition paths between the δth comparison node combinations in the kth initial cluster.

[0082] When the sum of the fit weights in the fit conversion path is larger, that is, ρ ξ The larger the value, the greater the edge weight between any adjacent nodes in the matching conversion path, the higher the node similarity. At the same time, when the matching path length in the matching conversion path is smaller, that is, τ ξ The smaller it is, the fewer other nodes need to be passed through to convert between the comparison node combinations, and the simpler the conversion is, which is consistent with the conversion ease coefficient L. δ (k) is larger.

[0083] V x,z is the similarity coefficient between the xth power data entity and the zth power data entity, W x,z (k) is the number of all comparison node combinations of the xth power data entity and the zth power data entity in the kth initial cluster, ω x,z (k) is the number of homomorphisms between the x-th power data entity and the z-th power data entity in the k-th initial clustering cluster. The acquisition method is to count the number of all undirected graph nodes belonging to the x-th power data entity or the z-th power data entity in the k-th initial clustering cluster. σ(k) is the number of all undirected graph nodes in the k-th initial clustering cluster, and K is the number of initial clustering clusters.

[0084] When the contrast node combinations corresponding to the two power data entities in the cluster are converted to each other more easily, that is, L δ The larger (k) is, the more similar and compatible the two power data entities are. At the same time, when the number of corresponding isomorphisms between the two power data entities in the cluster is greater, that is, The larger the weight, the more the kth cluster can represent the two power data entities to calculate the similarity coefficient. The larger the weight, the more similarity coefficient V x,z The bigger.

[0085] F x is the data protection value assessment index of the x-th power data entity, N is the total number of all power data entities, Norm() is a normalization function, α is a preset value greater than zero, which is used to prevent the denominator from being 0. In this embodiment, the value is 0.001.

[0086] The lower the similarity between the xth power data entity and other power data entities, that is, The larger the value, the more unique and different the x-th power data entity is from other power data entities, the more likely it is to have high value and the more security protection is needed. The data protection value assessment index F x The bigger.

[0087] According to the above steps, the data protection value evaluation index of each power data entity can be obtained. The data protection value evaluation index of all power data entities is used as the input of the K-means clustering algorithm, where the number of clusters is obtained using the elbow method, and the output is C clusters. Any cluster is taken as an encryption level, and the mean value of the data protection value evaluation index of all data elements in the cluster is calculated, which is recorded as the power entity encryption strength. According to the order of power entity encryption strength from large to small, each encryption level is recorded as γ1, γ1, γ1, …, γ C Among them, the clustering result visualization diagram of the data protection value evaluation index F of each power data entity is as follows: Figure 2 As shown, Figure 2 The black squares, gray squares, circles, and triangles in the figure represent different clusters.

[0088] Based on the above analysis, we can get the cth encryption level γ c The ECC corrected private key value

[0089]

[0090] in, is the ECC modified private key value of the cth encryption level, f c is the power entity encryption strength of the cth encryption level, f max It is the maximum value of power entity encryption strength among all encryption levels. is the original private key value of the traditional ECC encryption algorithm, and round[] is the rounding function. The greater the encryption strength and the original ECC private key value, the more likely the power entity is to have high value and the more security protection is needed. The ECC modified private key value The bigger.

[0091] The ECC encryption algorithm is used to encrypt the power data. The input is all the power data of all the power data entities in each encryption level. The ECC modified private key value corresponding to each encryption level is used as the private key of each encryption level during ECC encryption. The output is the ciphertext data of the power data. The ECC encryption algorithm is a well-known technology and the specific process will not be repeated here.

[0092] At this point, the encryption processing of the power data is realized. For other energy data, the same processing method as the power data encryption processing is adopted to complete the processing of the energy data.

[0093] Based on the same inventive concept as the above method, an embodiment of the present invention also provides an energy big data processing system based on machine learning, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above energy big data processing methods based on machine learning are implemented.

[0094] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0095] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0096] 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 principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for processing energy big data based on machine learning, characterized in that: The method comprises the following steps: For energy data, the power consumption data of each power data entity at the time of collection is collected, and the entity interval power sequence of each time series interval of each power data entity is obtained; Construct the power seasonal fluctuation sparse index of each time series interval in each power data entity; calculate the power fluctuation characterization intensity of each time series interval according to the power seasonal fluctuation sparse index of each time series interval and the kurtosis of the power sequence of the entity interval; calculate the power fluctuation adhesion coefficient between each time series interval and each principal component according to the power seasonal fluctuation sparse index, the power fluctuation characterization intensity and the kurtosis of the power sequence of the entity interval, and obtain the power fluctuation principal component fit index of each time series interval; According to the matching index of the main components of power fluctuations in each time series interval, an electric power matching undirected graph is constructed, the electric power matching undirected graph is divided into initial clusters, the comparison node combinations of each initial cluster are obtained, and the breadth-first search algorithm is used to obtain all reachable paths between the comparison node combinations, which are recorded as the matching conversion paths; the matching conversion ease coefficient of each comparison node combination is obtained according to the matching conversion paths between the comparison node combinations in the initial clusters and the edge weights between the nodes in the electric power matching undirected graph; the matching similarity coefficients of different electric power data entities are constructed according to the matching conversion ease coefficients of each comparison node combination in all initial clusters combined with the electric power matching undirected graph, and the data protection value evaluation index of each electric power data entity is obtained based on the matching similarity coefficient; According to the data protection value assessment index of each power data entity, the encryption level and encryption strength of each power entity are obtained, and the ECC modified private key value of each encryption level is calculated in combination with the original private key value of the ECC encryption algorithm, and the power data is encrypted using the ECC encryption algorithm.

2. The energy big data processing method based on machine learning according to claim 1, characterized in that: The collecting of power consumption data of each power data entity at the collection time, and obtaining the entity interval power sequence of each time interval of each power data entity, includes: The power consumption of each power data entity at each collection moment is collected to form a physical power data sequence of each power data entity. The physical power data sequence is evenly divided into each time series interval. The power consumption of each time series interval constitutes a physical interval power sequence of each time interval, wherein each power data entity is each power energy consumption demand party.

3. The energy big data processing method based on machine learning according to claim 2, characterized in that: The constructing of the power seasonal fluctuation sparse index of each time series interval in each power data entity includes: The time series STL decomposition algorithm is used to extract the power season data sequence of the entity interval power sequence. The time value of the data in the power season data sequence is used as the horizontal coordinate, and the power data value is used as the vertical coordinate. The Bayesian curve fitting method is used to obtain the power season fitting curve function, and the power season extreme value sequence is formed by sorting the extreme value points in ascending order according to the horizontal coordinates of the extreme value points. Starting from the second extreme point in the power season extreme value sequence, the absolute value of the difference between the power data corresponding to the extreme point in the power season extreme value sequence and the power data corresponding to the extreme point before the extreme point is calculated as the power extreme value fluctuation deviation value of the extreme point, and the power extreme value fluctuation deviation values ​​of all extreme points in the power season extreme value sequence except the first extreme point are sorted in ascending order according to time to form a power extreme value fluctuation deviation sequence; The power seasonal fluctuation sparse index G of the mth time series interval in the nth power data entity m The expression is: In the formula, λ p , p-1 are the time values ​​of the pth and p-1th extreme value points in the power season extreme value sequence, respectively, and C i is the ith power extreme value fluctuation deviation value in the power extreme value fluctuation deviation sequence, is the mean of all power extreme value fluctuation deviations in the power extreme value fluctuation deviation sequence, P m is the number of extreme points in the electricity seasonal extreme value sequence.

4. The energy big data processing method based on machine learning according to claim 1, characterized in that: The power fluctuation characterization intensity of each time series interval is calculated according to the power seasonal fluctuation sparse index of each time series interval and the kurtosis of the physical interval power sequence, including: The sum of the power seasonal fluctuation sparse index of each time series interval and a preset value greater than zero is calculated, the kurtosis of the physical interval power sequence of each time series interval is calculated, and the ratio of the kurtosis to the sum is used as the power fluctuation characterization intensity of each time series interval.

5. The energy big data processing method based on machine learning according to claim 4 is characterized in that: The calculation of the power fluctuation adhesion coefficient between each time series interval and each principal component, and obtaining the power fluctuation principal component matching index of each time series interval, includes: The power seasonal fluctuation sparse index, the kurtosis, and the power fluctuation characterization intensity of each time series interval are used to form the power fluctuation feature vector of each time series interval. The power fluctuation feature vectors of each time series interval of the power data entity are sorted in the order of the time series intervals as the rows of the matrix, and different power data entities are used as the columns of the matrix to form a power fluctuation matrix. The power fluctuation matrix is ​​used as the input of the PCA algorithm to obtain the contribution of each principal component; The power fluctuation feature vector with the smallest Euclidean distance to each principal component in the dimensionality reduction space is taken as the representative power feature vector of each principal component, and the Euclidean distance between the power fluctuation feature vector and each principal component is calculated, which is recorded as the mapping distance of the power fluctuation feature vector on each principal component; The power fluctuation viscosity coefficient between the mth time series interval and the yth principal component in the nth power data entity The expression is: In the formula, is the mapping distance of the power fluctuation feature vector of the mth time series interval in the nth power data entity on the kth principal component, is the power fluctuation feature vector of the mth time series interval in the nth power data entity, R(y) is the representative power feature vector of the yth principal component, Cos() is the cosine similarity, and α is a preset value greater than zero; In the formula, is the power fluctuation principal component matching index of the mth time series interval in the nth power data entity, μ k is the contribution of the kth principal component, and Y is the number of principal components.

6. The energy big data processing method based on machine learning according to claim 5, characterized in that: The power matching undirected graph is constructed according to the power fluctuation principal component matching index of each time series interval, the power matching undirected graph is divided into initial clusters, and the comparison node combination of each initial cluster is obtained, including: Take each time series interval of each power data entity as an undirected graph node, calculate the inverse of the absolute value of the difference between the power fluctuation principal component fit index of any two time series intervals, and record it as the principal component fit value; All principal component fit values ​​are used as input of the Otsu method, and the output is the fit difference segmentation threshold. Two undirected graph nodes whose principal component fit values ​​are greater than the fit difference segmentation threshold are recorded as connectable node combinations. The principal component fit values ​​between the connectable node combinations are used as the edge weights between the two undirected graph nodes to construct an electric power fit undirected graph. The power matching undirected graph is input into the Markov clustering algorithm, and each initial cluster is output. The combination of any two undirected graph nodes of different power data entities belonging to the same initial cluster in the power matching undirected graph is recorded as the comparison node combination of the initial cluster.

7. The energy big data processing method based on machine learning according to claim 6, characterized in that: The matching conversion ease coefficient of each comparison node combination is obtained according to the matching conversion path between each comparison node combination in the initial clustering cluster and the edge weights between nodes in the power matching undirected graph, including: For each matching conversion path between each comparison node combination, the sum of the edge weights between all adjacent undirected graph nodes in the matching conversion path is calculated as the matching weight sum of the matching conversion path, the number of undirected graph nodes passed by each matching conversion path is taken as the matching path length of each matching conversion path, and the ratio of the matching weight sum of each matching conversion path to the matching path length is calculated; The sum of the ratios of all matching conversion paths of the comparison node combination is obtained, and the ratio of the sum to the number of matching conversion paths between the comparison node combination is used as the matching conversion ease coefficient of the comparison node combination.

8. The energy big data processing method based on machine learning according to claim 1, characterized in that: The constructing of the matching similarity coefficients of different power data entities and obtaining the data protection value evaluation index of each power data entity based on the matching similarity coefficients include: The similarity coefficient V between the xth power data entity and the zth power data entity x,z The expression is: Where W x,z (k) is the number of all comparison node combinations of the xth power data entity and the zth power data entity in the kth initial cluster, ω x,z (k) is the number of homomorphisms of the xth power data entity and the zth power data entity in the kth initial cluster, σ(k) is the number of all undirected graph nodes in the kth initial cluster, K is the number of initial clusters, and the homomorphism number is the number of undirected graph nodes belonging to the xth power data entity or the zth power data entity in the kth initial cluster; The inverse of the calculation result of the similarity coefficient of fit between each power data entity and other power data entities plus a preset value greater than zero is obtained, and the normalized result of the sum of the inverses of each power data entity and all other power data entities is used as the data protection value evaluation index of each power data entity.

9. The energy big data processing method based on machine learning according to claim 8, characterized in that: The method of obtaining each encryption level and each power entity encryption strength according to the data protection value evaluation index of each power data entity and calculating the ECC modified private key value of each encryption level in combination with the original private key value of the ECC encryption algorithm includes: The data protection value evaluation index of all power data entities is used as the input of the K-means clustering algorithm, and each cluster is output. Any cluster is taken as an encryption level, and the mean value of the data protection value evaluation index of all power data entities in the cluster is calculated, which is recorded as the power entity encryption strength of the encryption level corresponding to the cluster; The maximum value of the power entity encryption strength in all encryption levels is counted, the ratio of the power entity encryption strength of each encryption level to the maximum value is calculated, the sum of 1 and the ratio is obtained, and the rounded value of the product of the sum and the original private key value of the traditional ECC encryption algorithm is used as the ECC modified private key value of each encryption level.

10. An energy big data processing system based on machine learning, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.