A method and system for fast transmission of smart grid data
Through segmented clustering and trend analysis of smart grid data, and the compression method determined based on the regional industrialization level, the problem of slow multi-dimensional real-time data transmission is solved, the transmission efficiency is improved and the redundancy is reduced.
Patent Information
- Application Number
- CN202410895728.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-05
Smart Images

Figure CN118433259B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and system for rapid transmission of smart grid data. Background Art
[0002] Smart grid data refers to various power network related information collected and analyzed by the smart grid system. These data include the real-time status of power production, transmission and distribution. Therefore, it is particularly important to process smart grid data efficiently and securely before transmitting it. By compressing data for transmission, the demand for network bandwidth can be reduced, data transmission speed can be accelerated, and data storage costs can be reduced.
[0003] At present, when multi-dimensional real-time data in smart grids are compressed and transmitted, the corresponding data are generally all transmitted in time sequence after lossless compression. However, for real-time grid data within a sampling period, some data may be very similar. In this case, simply using lossless compression for transmission will consume a lot of network bandwidth due to the large redundancy of the data, thereby reducing the data transmission speed. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a method and system for rapid transmission of smart grid data. The technical solutions adopted are as follows:
[0005] A method for rapid transmission of smart grid data, the method comprising:
[0006] Collect real-time power grid data within a preset period and pre-process it to obtain multi-dimensional data;
[0007] Segmenting the data according to the distribution characteristics of the multidimensional data, and clustering the data in each segment to obtain multiple result clusters;
[0008] For each result cluster, analyze the trend correlation of different dimensional data in each result cluster to perform cluster segmentation to obtain a new result cluster;
[0009] Determine the necessity of compressing the power grid data in the corresponding region based on the differences in industrialization levels in different regions;
[0010] According to the compression necessity, a corresponding compression method is adopted for the new result cluster, and the real-time power grid data is compressed according to the corresponding compression method before transmission;
[0011] Among them, the method for obtaining a new result cluster is: for each result cluster, calculate the positive correlation index of the data segments of any two dimensions in the result cluster; if the positive correlation index of the data segments of any two dimensions is greater than or equal to the second preset threshold, determine that the data of the two dimensions are positively correlated data; divide the data with positive correlation as a new result cluster; for the data segments of the remaining dimensions, iterate and select and divide other new result clusters according to the above steps.
[0012] Furthermore, the collecting of real-time power grid data within a preset period and preprocessing to obtain multi-dimensional data further includes:
[0013] Through sensors in multiple dimensions, real-time power grid operation data of different dimensions in multiple regions within a preset period is collected;
[0014] Among them, the multiple-dimensional power grid data at least includes: real-time voltage, real-time current, frequency and temperature data;
[0015] Among them, the preset period determines the sampling period according to the working state of the power grid;
[0016] The real-time power grid operation data is mapped to the range of [0, 1] as a characteristic value through function calculation, and multi-dimensional sample space data is established according to the characteristic value time series.
[0017] Furthermore, the data segmentation according to the distribution characteristics of the multidimensional data further includes:
[0018] For the multidimensional sample space data, the longitudinal similarity of the characteristic values of all dimensional data at each sampling moment is calculated, and the segmentation selectivity at the moment is determined according to the longitudinal similarity;
[0019] The multi-dimensional sample space data is segmented by taking the sampling moments at which the segmentation selectivity is greater than or equal to the first preset threshold as segmentation points to obtain segmented data.
[0020] Furthermore, clustering the data in each segment to obtain multiple result clusters further includes:
[0021] Based on each segmented data, the average density of all data points in the data segment is taken as the minimum number of points, and the average radius value formed by the minimum number of points of all data points is taken as the neighborhood radius. Clustering is performed using a density-based clustering method to obtain multiple clustering result clusters.
[0022] Furthermore, for each result cluster, calculating the positive correlation index of data segments of any two dimensions in the result cluster further includes:
[0023] For any two-dimensional data segments, obtain the starting data value and the ending data value of the data segments of the two dimensions in this result cluster;
[0024] Calculate the covariance and standard deviation of the data segments in the two dimensions;
[0025] The positive correlation index of the data segments of the two dimensions is calculated according to the starting data value and the ending data value of the data segments of the two dimensions in the result cluster, the covariance and the standard deviation of the data segments of the two dimensions.
[0026] Furthermore, determining the necessity of compressing the power grid data of the corresponding region according to the difference in industrialization levels of different regions further includes:
[0027] Based on the real-time power grid data of each region, the relative industrialization level of the region is calculated according to the per capita energy consumption of the region and the national per capita energy consumption;
[0028] The relative industrialization degree of the region is used as a weight to calculate the necessity of compressing the new result cluster of the power grid data of the region.
[0029] Furthermore, the adopting a corresponding compression method for the new result cluster according to the compression necessity further includes:
[0030] If the compression necessity is greater than a third preset threshold, applying a first compression method to the new result cluster;
[0031] If the compression necessity is less than or equal to a third preset threshold, a second compression method is applied to the new result cluster.
[0032] Furthermore, compressing the real-time power grid data according to the corresponding compression method and then transmitting it further includes:
[0033] Compressing the data of the new result cluster by a first compression method using a run-length encoding method;
[0034] Using a Huffman coding method, compressing the data of the new result cluster by a second compression method;
[0035] The compressed multi-dimensional power grid data is quickly transmitted with the help of relevant ports.
[0036] A smart grid data rapid transmission system, the system comprising:
[0037] The data acquisition module collects real-time power grid data within a preset period and performs preprocessing to obtain multi-dimensional data;
[0038] A clustering module, used to segment the data according to the distribution characteristics of the multidimensional data, and cluster the data in each segment to obtain multiple result clusters;
[0039] The result cluster segmentation module is used to analyze the trend correlation of different dimensional data in each result cluster, perform cluster segmentation and obtain a new result cluster;
[0040] A compression necessity calculation module is used to determine the necessity of compressing the power grid data of the corresponding region according to the differences in industrialization levels of different regions;
[0041] The compression module is used to adopt a corresponding compression method for the new result cluster according to the compression necessity, and compress the real-time power grid data according to the corresponding compression method before transmission.
[0042] The present invention has the following beneficial effects: the present invention obtains multidimensional data by collecting real-time power grid data within a preset period and performing preprocessing; segments the data according to the distribution characteristics of the multidimensional data, clusters the data in each segment to obtain multiple result clusters; for each result cluster, analyzes the trend correlation of data of different dimensions in each result cluster to perform cluster segmentation to obtain a new result cluster; determines the necessity of compressing power grid data in corresponding regions according to the differences in industrialization levels in different regions; adopts a corresponding compression method for the new result cluster according to the necessity of compression, and compresses the real-time power grid data according to the corresponding compression method before transmitting it. The present invention aims at the problem of slow data transmission speed of smart grid. The multi-dimensional real-time grid data is segmented and clustered, and then clustering is performed based on the data trend correlation of the result clusters. Finally, the necessity of compressing the grid data is determined in combination with the industrialization level of different regions, so that different compression methods are used to quickly transmit the data in the cluster according to the difference in compression necessity. The disadvantage of using pure lossless compression to transmit multi-dimensional real-time grid data, which occupies a large amount of bandwidth due to partial similarity, is optimized, and the data accuracy loss during compression is reduced. The redundancy and bandwidth of the real-time grid data during transmission are reduced for regions with different industrialization levels, and the transmission speed and efficiency of the grid data are improved. The problem of relatively reduced transmission bandwidth and rate due to the existence of redundant similarity data when compressing and transmitting multi-dimensional real-time grid data is solved. Based on the clustering method, different data compression trends are determined by analyzing the aggregation of data in the sample space and the differences in industrialization levels of different regions, and lossless and lossy compression are combined to improve the transmission efficiency of data, thereby reducing the redundancy of data and improving the transmission efficiency of multi-dimensional grid data. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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.
[0044] Figure 1 A flowchart of a method for rapid transmission of smart grid data provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a multi-dimensional sample space established according to a time series of characteristic values provided by an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a smart grid data rapid transmission system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a smart grid data rapid transmission method and system proposed by the present invention 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.
[0048] 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.
[0049] The specific scheme of a method for rapid transmission of smart grid data provided by the present invention is described in detail below with reference to the accompanying drawings.
[0050] In this embodiment, in order to distinguish different compression methods by the local clustering characteristics of data in the multidimensional sample space, the sample data is first segmented and then clustered using DBSCAN, so that data with similar distributions are combined into a result cluster. Then, due to the complex correlations between real-time power grid data of different dimensions, in order to reduce the loss of data accuracy, the trend correlation of multidimensional data in the result cluster can be analyzed for cluster segmentation, and data with similar trends can be divided into the same cluster; finally, based on the impact of the degree of industrialization in different regions on electricity demand, different compression necessities are calculated for the power grid data result clusters in different regions, and then different compression methods are applied to the result clusters according to the size of the compression necessity for subsequent data transmission.
[0051] See also Figure 1 , which shows a method for fast transmission of smart grid data provided by an embodiment of the present invention, the method comprising:
[0052] Step S110: Collect real-time power grid data within a preset period and perform preprocessing to obtain multi-dimensional data.
[0053] In an optional embodiment, step S110 further includes: collecting real-time power grid operation data of different dimensions in multiple regions within a preset period through sensors of multiple dimensions; wherein the multiple-dimensional power grid data includes at least: real-time voltage, real-time current, frequency and temperature data; wherein the preset period determines the sampling period according to the working state of the power grid; mapping the real-time power grid operation data to the range of [0,1] as a characteristic value through function calculation, and establishing multi-dimensional sample space data according to the characteristic value time series.
[0054] Figure 2 A schematic diagram of a multi-dimensional sample space established according to a characteristic value time series provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the preset period can be flexibly adjusted according to the working state of the power grid. Taking the preset period as a sampling period of 6 hours as an example, the real-time voltage, real-time current, frequency, temperature and other data of multiple regions within the preset period are collected through sensors of multiple dimensions. In this embodiment, the sampling interval is set to 1 second, and the real-time sampling data of a sampling period is mapped to the range of [0,1] as the characteristic value through the correlation function, and the sample space is established according to the characteristic value time series. Figure 2 The middle line segments 1 to 4 represent the real-time eigenvalues of power grid data of different dimensions (only four are shown in the figure). Since the data changes in some dimensions are correlated, the corresponding eigenvalues after mapping are relatively similar, that is, the corresponding eigenvalue distributions in the sample space are relatively close, and there are clustering characteristics; therefore, in order to avoid using pure lossless compression to transmit multi-dimensional real-time power grid data, the similarity of some data leads to a large amount of bandwidth occupation, so for this kind of clustered data, lossy compression can be performed before transmission to increase the transmission rate with less loss of data accuracy, while relatively discretely distributed data is transmitted through lossless compression.
[0055] Step S120: segment the data according to the distribution characteristics of the multidimensional data, and cluster the data in each segment to obtain multiple result clusters.
[0056] In an optional embodiment, step S120 further includes: for the multidimensional sample space data, calculating the longitudinal similarity of the characteristic values of all dimensional data at each sampling moment, and determining the segmentation selectivity at that moment based on the longitudinal similarity; using the sampling moments with segmentation selectivity greater than or equal to a first preset threshold as segmentation points to segment the data of the multidimensional sample space data to obtain segmented data.
[0057] Since the clustering method can combine data with similar distribution into one result cluster, but since the sample data is relatively large, global clustering may result in insufficient precision in the division of local clustering result clusters. Therefore, this step segments the time series data before clustering, and then performs clustering in each data segment, so that the clustering results can more accurately reflect the local data distribution.
[0058] Since the sampling time interval of multidimensional data is fixed, the segmentation point can be set to a certain sampling moment. Then it is necessary to determine which sampling moments can be used as segmentation positions. In order to ensure that the change trends of multiple dimensional data at the segmentation points are similar, and at the same time, to ensure that the multidimensional data points corresponding to the segmentation points are relatively closer, so as to complete the data segmentation without losing too much data distribution integrity; therefore, if any sampling All the dimensional data feature values at the moment are arranged from large to small as follows is the number of dimensions. Then there exists the following standard (1):
[0059] ; (1)
[0060] In the formula for The segment selectivity of the time; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension.
[0061] therefore Represents The vertical similarity of all dimensional feature values at the moment, if The smaller the value of The closer the characteristic values of the multidimensional data points at different moments are, the more likely the corresponding moments are to be segmentation points. for The horizontal similarity of the feature values of all dimensions at the moment represents The trend difference statistics of all dimension feature values at this moment. If the data trends of all dimensions at this moment are similar, The smaller the value, the The more likely the moment is to be a segmentation point. Finally, the corresponding segmentation selectivity is calculated for each sampling moment. Value, use The normalization layer normalizes the result to the range of [0,1] to obtain the segment selectivity , the first preset threshold is set to 0.88 according to the empirical value, then select The corresponding sampling moments are used as segmentation points to segment the data in the sample space.
[0062] In an optional embodiment, step S120 further includes: based on each segmented data, taking the average density of all data points in the data segment as the minimum number of points, taking the average radius value formed by the minimum number of points neighborhood of all data points as the neighborhood radius, and using a density-based clustering method to perform clustering to obtain multiple clustering result clusters.
[0063] After obtaining multiple segmented data, a density-based spatial clustering method (DBSCAN clustering method) is used to cluster each segmented data. The input parameters of the DBSCAN clustering method are generally two: (minimum number of points) and (neighborhood radius), this embodiment uses the average density of all data points in each segment as Values of all data points The average radius of the neighborhood is value, thereby obtaining multiple clustering result clusters.
[0064] Step S130: For each result cluster, analyze the trend correlation of data of different dimensions in each result cluster to perform cluster segmentation to obtain a new result cluster.
[0065] In step S120, a corresponding result cluster is obtained for the real-time power grid data in each segment. However, since the real-time power grid data contains data attributes of multiple different dimensions, and there is correlation between the data attributes of each dimension in the real-time power grid data, such as the voltage value will increase with the increase of the current value, and the increase of circuit load will cause the transmission frequency to decrease, and the decrease of frequency will cause the voltage to decrease, etc., and since the real-time amplitude of the correlation change between various electrical parameters varies, the corresponding result cluster in the sample space may group data with different correlations into the same cluster. Then, when lossy compression or decompression is performed based on the result cluster, the data accuracy will be lost due to the difference in data correlation, so cluster division is also required.
[0066] In an optional embodiment, step S130 further includes: for each result cluster, calculating the positive correlation index of the data segments of any two dimensions in the result cluster; if the positive correlation index of the data segments of any two dimensions is greater than or equal to a second preset threshold, determining that the data of the two dimensions are positively correlated data; dividing the positively correlated data as a new result cluster; for the data segments of the remaining dimensions, iteratively selecting and dividing other new result clusters according to the above steps.
[0067] In an optional embodiment, step S130 further includes: for data segments of any two dimensions, obtaining the starting data values and the ending data values of the data segments of the two dimensions in this result cluster; calculating the covariance and the standard deviation of the data segments of the two dimensions; and calculating the positive correlation index of the data segments of the two dimensions based on the starting data values and the ending data values of the data segments of the two dimensions in this result cluster and the covariance and the standard deviation of the data segments of the two dimensions.
[0068] Since power grid data with different correlations may be clustered into the same cluster, in order to distinguish data with different correlations, this step analyzes the power grid time series data of different dimensions in each result cluster and performs cluster segmentation to ensure that the power grid data attributes contained in each cluster show the same correlation, thereby reducing the accuracy loss during compression. This correlation is reflected as an extension trend of the data in the sample space. Therefore, the trend similarity of power grid data of different dimensions in the same cluster can be analyzed, thereby segmenting the power grid data of multiple dimensions within the cluster according to different trends.
[0069] Since the collected real-time power grid data is time series data, the time series data of different dimensions contained in the generated result cluster is presented in the form of data segments. The trend similarity of the data segments corresponding to the real-time power grid data of different dimensions in the result cluster can be analyzed to determine the division rules; then for the data segments corresponding to any dimension of data in a result cluster, , which is different from the data segments of other dimensions in this result cluster The positive correlation index can be expressed as the following formula (2):
[0070] ; (2)
[0071] In the formula The dimension in the result cluster The corresponding data segments and other dimensions Positive correlation index of the corresponding data segment; and The dimensions are The starting and ending data values of the data segment in this result cluster; and They are the starting data value and the ending data value of the data segment of dimension B in this result cluster respectively; For Dimension Corresponding data segments and dimensions The covariance of the corresponding data segment; and are the standard deviations of the two-dimensional data segments respectively.
[0072] therefore Represents the trend characteristics of the two-dimensional data segment. If the trend of the two-dimensional data segment is negatively correlated, The negative the value of , the smaller the corresponding positive correlation index. Represents the degree of correlation between two-dimensional data. The greater the correlation between the two-dimensional data, the The larger the value, the smaller it is; finally use The function maps the result to the range of [0,1], and the second preset threshold is set to 0.88 according to the empirical value, so it can be considered The corresponding two dimensions of the power grid data are positively correlated data, and the others are considered to be related to the dimension The corresponding data have other correlations (negative correlation or no correlation, etc.).
[0073] Since the correlation of real-time power grid data of different dimensions has complex time-dependent characteristics, the dimensions of real-time power grid data contained in different result clusters may not be exactly the same, and there may be positive correlation, negative correlation or no correlation. Therefore, for a certain dimension data in each large result cluster and other dimension data, the positive correlation index is used to select the dimension that is positively correlated with it, and it is divided from the large cluster as a new result cluster. For the data segments of the remaining dimensions, the same method is still used to iteratively select and divide new result clusters.
[0074] Step S140: Determine the necessity of compressing the power grid data of the corresponding region according to the differences in industrialization levels of different regions.
[0075] In an optional embodiment, step S140 further includes: for each region's real-time power grid data, calculating the relative degree of industrialization of the region based on the region's per capita energy consumption and the national per capita energy consumption; using the region's relative degree of industrialization as a weight to calculate the necessity of compressing a new result cluster of the region's power grid data.
[0076] After the result clusters are segmented, the trends of the power grid data in multiple dimensions in each result cluster have a strong positive correlation. Then, the corresponding compression necessity needs to be calculated for the data in each result cluster. Due to the differences in the degree of industrialization in different regions, regions with a high degree of industrialization usually have a greater demand for power grid load, and the production process of industrial activities is often accompanied by a large and rapid change in energy demand, resulting in frequent fluctuations in various power indicators; while remote mountainous areas do not require a large power load, and various power indicators will not fluctuate frequently. Since the multi-source power grid time series data corresponding to regions with a high degree of industrialization have more frequent fluctuations, a large number of result clusters with different trends will be generated in the multidimensional sample space, and a large number of result clusters will generate a larger bandwidth during the compression transmission process, thereby reducing the compression transmission efficiency. Therefore, the standard of lossy compression is appropriately lowered for the power grid data result clusters in highly industrialized areas; correspondingly, the standard of lossy compression is appropriately increased for remote mountainous areas to reduce the degree of data accuracy loss.
[0077] In this embodiment, the necessity of compression of each cluster of power grid data in a certain region can be calculated by taking the industrialization level as the weight and combining the cluster characteristics of the power data result cluster of this region, and the formula is as follows (3):
[0078] ; (3)
[0079] In the formula The result cluster of electricity data for this region The necessity of compression; The result cluster Neidi data points; The result cluster The cluster center of The result cluster The number of data points in ; express and The Euclidean distance of The result cluster The average density of data; The maximum value of the average density of all clusters in all segments of this cluster; represents the per capita energy consumption in this region; It represents the national per capita energy consumption.
[0080] Step S150: adopting a corresponding compression method for the new result cluster according to the necessity of compression, and compressing the real-time power grid data according to the corresponding compression method before transmitting.
[0081] In an optional implementation, step S150 further includes: if the compression necessity is greater than a third preset threshold, applying a first compression method to the new result cluster; if the compression necessity is less than or equal to the third preset threshold, applying a second compression method to the new result cluster.
[0082] The third preset threshold is set to 0.8 based on the empirical value. The first compression method is lossy compression, and the second compression method is lossless compression. In the above formula (3), Represents the result cluster The average Euclidean distance between all data points in the cluster and the cluster center. If this average distance is smaller, it means that all data points in the cluster are closer to the cluster center, then the corresponding data is denser and the compression necessity is greater. Represents the result cluster The relative average density of the data points within The smaller the value, the more clustered the result is. The average density of is greater than that of other clusters, the corresponding data compression is more necessary; Represents the relative industrialization level of this region, and takes it as the weight. The larger the value of, the higher the degree of industrialization in this area, and the greater the necessity of compressing the corresponding power data; normalize the result to the range of [0,1], then select The corresponding result cluster is the result cluster that needs to be lossy compressed.
[0083] In an optional implementation, step S150 further includes: compressing the data of the new result cluster by a first compression method using a run-length encoding method; compressing the data of the new result cluster by a second compression method using a Huffman encoding method; and quickly transmitting the compressed multidimensional power grid data using relevant ports.
[0084] In this embodiment, lossy compression is performed on the result clusters that require high compression, and lossless compression is used for the others. Lossy compression replaces all data in the result cluster with the same value and compresses them by using the run-length encoding principle. The replacement value can represent the distribution of data in the entire cluster. Therefore, if a data point in a new result cluster in the multidimensional sample space is a replacement value, then the Euclidean distance from it to all points in the cluster is required to be the minimum, and the calculation formula is as follows (4):
[0085] ; (4)
[0086] In the formula is the coordinate of the replacement value; For a cluster data points; is the coordinate of any other point in the new result cluster, that is, the coordinate of the point whose value is replaced in the new result cluster; then That is, the Euclidean distance to all data points in this cluster is calculated in the form of coordinates; and the minimum Euclidean distance is taken The corresponding coordinates are the coordinates of the replacement value, and then all the values of this cluster are replaced, so as to use run-length coding for lossy compression; and for lossless compression, methods such as Huffman coding are used. That is, To obtain the minimum Euclidean distance , the coordinates of the corresponding point.
[0087] At this point, the multi-dimensional real-time power grid data can be quickly transmitted through the relevant ports by combining lossless compression with lossy compression in this embodiment. After the transmission is completed, the data can be decompressed according to the timing values corresponding to the real-time data and the relevant decompression method, and finally reverse normalized to obtain the original real-time power grid data.
[0088] By adopting the method of this embodiment, the problem of slow data transmission speed of smart grid is solved. The multi-dimensional real-time power grid data is segmented and clustered, and then clustering is performed based on the data trend correlation of the result clusters. Finally, the necessity of compressing the power grid data is determined in combination with the industrialization level of different regions, so that different compression methods are used for fast transmission of the data within the cluster according to the difference in the necessity of compression. The disadvantage of occupying a large amount of bandwidth due to partial similarity when transmitting multi-dimensional real-time power grid data using pure lossless compression is optimized, and the data accuracy loss during compression is reduced. The redundancy and bandwidth of the real-time power grid data during transmission are reduced for regions with different industrialization levels, and the transmission speed and efficiency of the power grid data are improved. The problem of relatively reduced transmission bandwidth and rate due to the existence of redundant similarity data when compressing and transmitting multi-dimensional real-time power grid data is solved. Based on the clustering method, different data compression trends are determined by analyzing the aggregation of data in the sample space and the differences in industrialization levels in different regions, and lossless and lossy compression are combined to improve the data transmission efficiency, thereby reducing the redundancy of data and improving the transmission efficiency of multi-dimensional power grid data.
[0089] The specific scheme of a smart grid data rapid transmission system provided by the present invention is described in detail below with reference to the accompanying drawings.
[0090] See also Figure 3, which shows a smart grid data rapid transmission system provided by an embodiment of the present invention, the system includes: a data acquisition module 310, a clustering module 320, a result cluster segmentation module 330, a compression necessity calculation module 340 and a compression module 350.
[0091] The data acquisition module 310 acquires real-time power grid data within a preset period and performs preprocessing to obtain multi-dimensional data.
[0092] The clustering module 320 is used to segment the data according to the distribution characteristics of the multi-dimensional data, and cluster the data in each segment to obtain multiple result clusters.
[0093] The result cluster segmentation module 330 is used to analyze the trend correlation of data of different dimensions in each result cluster, perform cluster segmentation, and obtain a new result cluster.
[0094] The compression necessity calculation module 340 is used to determine the necessity of compressing the power grid data of the corresponding region according to the differences in industrialization levels of different regions.
[0095] The compression module 350 is used to adopt a corresponding compression method for the new result cluster according to the necessity of compression, and compress the real-time power grid data according to the corresponding compression method before transmission.
[0096] In an optional embodiment, the data acquisition module 310 is further used to: collect real-time power grid operation data of different dimensions in multiple regions within a preset period through sensors of multiple dimensions; wherein the multiple-dimensional power grid data at least includes: real-time voltage, real-time current, frequency and temperature data; wherein the preset period determines the sampling period according to the working state of the power grid; map the real-time power grid operation data to the range of [0,1] as a characteristic value through function calculation, and establish multi-dimensional sample space data according to the characteristic value time series.
[0097] In an optional embodiment, the clustering module 320 is further used to: calculate the longitudinal similarity of the characteristic values of all dimensional data at each sampling moment for the multidimensional sample space data, and determine the segmentation selectivity at the moment based on the longitudinal similarity; use the sampling moments with segmentation selectivity greater than or equal to the first preset threshold as segmentation points to segment the multidimensional sample space data to obtain segmented data.
[0098] In an optional embodiment, the clustering module 320 is further used to: based on each segmented data, take the average density of all data points in the data segment as the minimum number of points, and take the average radius value formed by the minimum number of points of all data points as the neighborhood radius, and use a density-based clustering method to perform clustering to obtain multiple clustering result clusters.
[0099] In an optional embodiment, the result cluster segmentation module 330 is further used to: for each result cluster, calculate the positive correlation index of the data segments of any two dimensions in the result cluster; if the positive correlation index of the data segments of any two dimensions is greater than or equal to a second preset threshold, determine that the data of the two dimensions are positively correlated data; separate the positively correlated data as a new result cluster; for the data segments of the remaining dimensions, iteratively select and divide other new result clusters according to the above steps.
[0100] In an optional embodiment, the result cluster segmentation module 330 is further used to: for any two-dimensional data segments, obtain the starting data value and the ending data value of the data segments of the two dimensions in this result cluster; calculate the covariance and the standard deviation of the data segments of the two dimensions; and calculate the positive correlation index of the data segments of the two dimensions based on the starting data value and the ending data value of the data segments of the two dimensions in this result cluster and the covariance and the standard deviation of the data segments of the two dimensions.
[0101] In an optional embodiment, the compression necessity calculation module 340 is further used to: for the real-time power grid data of each region, calculate the relative industrialization level of the region according to the per capita energy consumption of the region and the national per capita energy consumption; use the relative industrialization level of the region as a weight to calculate the compression necessity of the new result cluster of the power grid data of the region.
[0102] In an optional embodiment, the compression module 350 is further used to: if the compression necessity is greater than a third preset threshold, apply a first compression method to the new result cluster; if the compression necessity is less than or equal to the third preset threshold, apply a second compression method to the new result cluster.
[0103] In an optional embodiment, the compression module 350 is further used to: compress the data of the new result cluster by applying a first compression method using a run-length encoding method; compress the data of the new result cluster by applying a second compression method using a Huffman encoding method; and quickly transmit the compressed multi-dimensional power grid data using relevant ports.
[0104] The system of this embodiment is used to address the problem of slow data transmission speed of smart grids. By segmenting and clustering multidimensional real-time power grid data, clustering is performed based on the data trend correlation of the result clusters, and finally the necessity of compressing the power grid data is determined in combination with the industrialization level of different regions. Different compression methods are used for fast transmission of the data within the cluster according to the difference in the necessity of compression. The disadvantage of using pure lossless compression to transmit multidimensional real-time power grid data, which occupies a large amount of bandwidth due to partial similarity, is optimized, and the data accuracy loss during compression is reduced. The redundancy and bandwidth of power grid real-time data during transmission are reduced for regions with different industrialization levels, and the transmission speed and efficiency of power grid data are improved. The problem of relatively reduced transmission bandwidth and rate due to the existence of redundant similarity data when compressing and transmitting multidimensional real-time power grid data is solved. Different data compression trends are determined by analyzing the aggregation of data in the sample space and the differences in industrialization levels in different regions based on the clustering method, and lossless and lossy compression are combined to improve data transmission efficiency, thereby reducing data redundancy and improving the transmission efficiency of multidimensional power grid data.
[0105] 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 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.
[0106] 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.
Claims
1. A method for rapid transmission of smart grid data, characterized in that: The method comprises: Collect real-time power grid data within a preset period and pre-process it to obtain multi-dimensional data; Segmenting the data according to the distribution characteristics of the multidimensional data, and clustering the data in each segment to obtain multiple result clusters; For each result cluster, analyze the trend correlation of different dimensional data in each result cluster to perform cluster segmentation to obtain a new result cluster; Determine the necessity of compressing the power grid data in the corresponding region based on the differences in industrialization levels in different regions; According to the compression necessity, a corresponding compression method is adopted for the new result cluster, and the real-time power grid data is compressed according to the corresponding compression method before transmission; The method for obtaining the new result cluster is as follows: for each result cluster, the positive correlation index of the data segments of any two dimensions in the result cluster is calculated; if the positive correlation index of the data segments of any two dimensions is greater than or equal to the second preset threshold, the data of the two dimensions are determined to be positively correlated data; the data with positive correlation is divided out as a new result cluster; for the data segments of the remaining dimensions, other new result clusters are divided iteratively according to the above steps; Wherein, performing data segmentation according to the distribution characteristics of the multidimensional data further comprises: for the multidimensional sample space data, calculating the longitudinal similarity of the characteristic values of all dimensional data at each sampling moment, and determining the segmentation selectivity at the moment according to the longitudinal similarity; using the sampling moment at which the segmentation selectivity is greater than or equal to the first preset threshold as the segmentation point to segment the data of the multidimensional sample space data to obtain segmented data; The calculation formula of the segment selectivity is: ; In the formula for The segment selectivity of the time; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; For normalization; is the number of dimensions at time T; The step of clustering the data in each segment to obtain multiple result clusters further includes: based on each segment data, taking the average density of all data points in the data segment as the minimum number of points, taking the average radius value formed by the minimum number of points of all data points as the neighborhood radius, and performing clustering using a density-based clustering method to obtain multiple cluster result clusters; The calculation formula of the positive correlation index is: ;(2) In the formula The dimension in the result cluster The corresponding data segments and other dimensions Positive correlation index of the corresponding data segment; and The dimensions are The starting and ending data values of the data segment in this result cluster; and They are the starting data value and the ending data value of the data segment of dimension B in this result cluster respectively; For Dimension Corresponding data segments and dimensions The covariance of the corresponding data segment; and are the standard deviations of the two-dimensional data segments respectively; for function; The calculation formula for compression necessity is: ;(3) In the formula The result cluster of electricity data for this region The necessity of compression; The result cluster Neidi data points; The result cluster The cluster center of The result cluster The number of data points in ; express and The Euclidean distance of The result cluster The average density of data; The maximum value of the average density of all clusters in all segments of this cluster; represents the per capita energy consumption in this region; It represents the national per capita energy consumption.
2. A method for rapid transmission of smart grid data according to claim 1, characterized in that: The collecting of real-time power grid data within a preset period and preprocessing to obtain multi-dimensional data further includes: Through sensors in multiple dimensions, real-time power grid operation data of different dimensions in multiple regions within a preset period is collected; Among them, the multiple-dimensional power grid data at least includes: real-time voltage, real-time current, frequency and temperature data; Among them, the preset period determines the sampling period according to the working state of the power grid; The real-time power grid operation data is mapped to the range of [0,1] as a characteristic value through function calculation, and multi-dimensional sample space data is established according to the characteristic value time series.
3. A method for rapid transmission of smart grid data according to claim 1, characterized in that: The adopting a corresponding compression method for the new result cluster according to the compression necessity further comprises: If the compression necessity is greater than a third preset threshold, applying a first compression method to the new result cluster; If the compression necessity is less than or equal to a third preset threshold, a second compression method is applied to the new result cluster.
4. A method for rapid transmission of smart grid data according to claim 3, characterized in that: The compressing the real-time power grid data according to the corresponding compression method and then transmitting it further includes: Compressing the data of the new result cluster by a first compression method using a run-length encoding method; Using a Huffman coding method, compressing the data of the new result cluster by a second compression method; The compressed multi-dimensional power grid data is quickly transmitted with the help of relevant ports.
5. A smart grid data rapid transmission system, characterized in that: The system comprises: The data acquisition module collects real-time power grid data within a preset period and performs preprocessing to obtain multi-dimensional data; A clustering module, used to segment the data according to the distribution characteristics of the multidimensional data, and cluster the data in each segment to obtain multiple result clusters; The result cluster segmentation module is used to analyze the trend correlation of different dimensional data in each result cluster, perform cluster segmentation and obtain a new result cluster; A compression necessity calculation module is used to determine the necessity of compressing the power grid data of the corresponding region according to the differences in industrialization levels of different regions; A compression module, configured to adopt a corresponding compression method for the new result cluster according to the compression necessity, and compress the real-time power grid data according to the corresponding compression method before transmission; Wherein, performing data segmentation according to the distribution characteristics of the multidimensional data further comprises: for the multidimensional sample space data, calculating the longitudinal similarity of the characteristic values of all dimensional data at each sampling moment, and determining the segmentation selectivity at the moment according to the longitudinal similarity; using the sampling moment at which the segmentation selectivity is greater than or equal to the first preset threshold as the segmentation point to segment the data of the multidimensional sample space data to obtain segmented data; The calculation formula of the segment selectivity is: ; In the formula for The segment selectivity of the time; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; for Time The characteristic value of each data dimension; For normalization; is the number of dimensions at time T; The step of clustering the data in each segment to obtain multiple result clusters further includes: based on each segment data, taking the average density of all data points in the data segment as the minimum number of points, taking the average radius value formed by the minimum number of points of all data points as the neighborhood radius, and performing clustering using a density-based clustering method to obtain multiple cluster result clusters; The calculation formula of the positive correlation index is: ;(2) In the formula The dimension in the result cluster The corresponding data segments and other dimensions Positive correlation index of the corresponding data segment; and The dimensions are The starting and ending data values of the data segment in this result cluster; and They are the starting data value and the ending data value of the data segment of dimension B in this result cluster respectively; For Dimension Corresponding data segments and dimensions The covariance of the corresponding data segment; and are the standard deviations of the two-dimensional data segments respectively; for function; The calculation formula for compression necessity is: ;(3) In the formula The result cluster of electricity data for this region The necessity of compression; The result cluster Neidi data points; The result cluster The cluster center of The result cluster The number of data points in ; express and The Euclidean distance of The result cluster The average density of data; The maximum value of the average density of all clusters in all segments of this cluster; represents the per capita energy consumption in this region; It represents the national per capita energy consumption.
