A concentrator with intelligent storage function

By establishing a histogram and target map, determining the initial seed point, and using the region growing algorithm to obtain the sequence to be compressed, the problem of low compression rate of run-length coding is solved, and the compression efficiency of the concentrator power consumption data is improved.

CN118337222BActive Publication Date: 2024-08-30SHANDONG DEYUAN POWER TECHNOLOGY CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410763671.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-30
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In the existing technology, when run-length coding is used to compress a large number of user power consumption sequences collected by a concentrator, the compression rate is low because there are a large number of similar but not completely consistent data in the power consumption sequence, resulting in a relatively high probability of continuous repeated data. small, thereby reducing compression efficiency.

Method used

By obtaining the power consumption sequence, establishing a histogram and obtaining the pre-selected power consumption, constructing a target graph, determining the initial seed point, and using the region growing algorithm to obtain the target power consumption sequence to be compressed, and then perform data compression.

Benefits of technology

The data compression rate is improved and the proportion of repeated and continuous data in the sequence to be compressed is increased, thereby improving the compression efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337222B
    Figure CN118337222B
Patent Text Reader

Abstract

The present invention relates to the technical field of electric power equipment, and in particular to a concentrator with a smart storage function, the concentrator comprising a first acquisition module for acquiring a power consumption sequence; a second acquisition module for establishing a histogram according to the power consumption sequence, and acquiring each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram; a third acquisition module for constructing a target graph according to the power consumption sequence, and obtaining an initial seed point on the target graph according to the pre-selected power and the target graph; a fourth acquisition module for obtaining a target power consumption sequence to be compressed according to the initial seed point; and a data compression module for compressing the target power consumption sequence to be compressed to obtain a compressed file. The present invention can achieve a high compression rate when compressing the target power consumption sequence to be compressed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power equipment, and in particular to a concentrator with an intelligent storage function. Background Art

[0002] A concentrator is a device used to manage and monitor multiple electricity meters. It can receive or collect electricity usage data from multiple smart electricity meters and compress and store the received data. Compressing and storing the received data helps with subsequent data transmission, data trend analysis, and fault diagnosis.

[0003] In the prior art, run-length coding is usually used to compress the data collected by the concentrator. However, if the power consumption sequences of a large number of users collected by the concentrator are directly compressed using run-length coding, the compression rate may be low, because there are usually a large number of similar but not completely consistent data in the power consumption sequences of a large number of users collected by the concentrator, that is, the probability of continuous and repeated power consumption data appearing in the power consumption sequence collected by the concentrator is small, and there may even be no continuous repeated power consumption data in the sequence. The compression rate of run-length coding is high only when there are more continuous repeated data in the sequence. For sequences without continuous repeated data and with a low probability of continuous repeated data appearing, directly using run-length coding for compression will result in a low compression rate. Therefore, improving the compression rate when compressing the power consumption data collected by the concentrator is an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a concentrator with intelligent storage function, and the technical solution adopted is as follows:

[0005] An embodiment of the present invention provides a concentrator with a smart storage function, and the concentrator with a smart storage function includes:

[0006] The first acquisition module is used to acquire the power consumption sequence corresponding to M users received by the concentrator, where M is a positive integer greater than 0;

[0007] A second acquisition module is used to establish a histogram according to the power consumption sequence, and acquire each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram;

[0008] A third acquisition module is used to construct a target graph according to the power consumption sequence, and obtain an initial seed point on the target graph according to the pre-selected power and the target graph;

[0009] A fourth acquisition module, configured to acquire a target power consumption sequence to be compressed according to the initial seed point;

[0010] The data compression module is used to compress the target power consumption sequence to be compressed to obtain a compressed file.

[0011] Preferably, the method for obtaining each pre-selected power consumption includes:

[0012] According to each power consumption on the histogram and the frequency corresponding to each power consumption, a frequency point corresponding to each power consumption is obtained, wherein the horizontal axis value of the frequency point is the power consumption and the vertical axis value is the frequency corresponding to the corresponding power consumption;

[0013] Constructing a two-dimensional space, mapping all frequency points to the two-dimensional space, and sequentially connecting the frequency points corresponding to the respective power consumptions in order of the horizontal coordinate values ​​from small to large, to obtain a characteristic curve;

[0014] For the ath frequency point on the characteristic curve, the frequency point sequence constructed from the a-1th frequency point on the characteristic curve to the aAth frequency point on the characteristic curve is recorded as the left frequency point sequence corresponding to the ath frequency point, and the frequency point sequence constructed from the a+1th frequency point on the characteristic curve to the a+Ath frequency point on the characteristic curve is recorded as the right frequency point sequence corresponding to the ath frequency point, where A is a positive integer;

[0015] According to the ordinate value corresponding to each frequency point on the characteristic curve, the left frequency point sequence corresponding to each frequency point, and the right frequency point sequence corresponding to each frequency point, the repetition similarity degree corresponding to each frequency point on the characteristic curve is obtained;

[0016] The horizontal coordinate values ​​of all frequency points whose repetition similarity degree is greater than or equal to a preset similarity threshold are recorded as the pre-selected electrical quantity.

[0017] Preferably, the method for obtaining the degree of repetition similarity corresponding to each frequency point on the characteristic curve includes:

[0018] Recording a difference sequence of a slope sequence constructed by the slopes between two adjacent frequency points in the left frequency point sequence corresponding to each frequency point as a first difference sequence corresponding to the corresponding frequency point;

[0019] Recording the difference sequence of the slope sequence constructed by the slopes between two adjacent frequency points in the right frequency point sequence corresponding to each frequency point as the second difference sequence corresponding to the corresponding frequency point;

[0020] For the ath frequency point on the characteristic curve, the cumulative sum of all data squares in the first differential sequence corresponding to the ath frequency point is recorded as the first eigenvalue corresponding to the ath frequency point, and the cumulative sum of all data squares in the second differential sequence corresponding to the ath frequency point is recorded as the second eigenvalue corresponding to the ath frequency point; the sum of the first eigenvalue and the second eigenvalue is recorded as the comprehensive eigenvalue corresponding to the ath frequency point;

[0021] The cumulative sum of the power consumption in the power consumption sequence corresponding to all users is recorded as the total power consumption;

[0022] The ratio of the ordinate value of each frequency point to the total amount of electricity consumption is recorded as the proportion value of the corresponding frequency point. The proportion value of each frequency point is multiplied by the inverse of the comprehensive characteristic value corresponding to the corresponding frequency point and then normalized, and the value is recorded as the repetition similarity degree corresponding to the corresponding frequency point.

[0023] Preferably, the method for constructing a target graph comprises:

[0024] A blank map is obtained, and the power consumption in the power consumption sequences corresponding to all users is mapped into the blank map. The mapped blank map is recorded as a target map, and all points in the target map are recorded as feature points, where one feature point corresponds to one power consumption; the power consumption corresponding to all feature points in the b-th row of the target map is the power consumption sequence corresponding to the b-th user, and the sequence constructed by the power consumption corresponding to all feature points in the c-th column of the target map is the sequence constructed by the c-th power consumption in the power consumption sequences corresponding to all users, and the target map is parallel to the horizontal direction.

[0025] Preferably, the method for obtaining the initial seed point on the target graph includes:

[0026] On the target map, all feature points whose power consumption is equal to the pre-selected power consumption are recorded as pre-selected feature points;

[0027] According to the adjacent feature points of each pre-selected feature point on the target graph, a longest growth path feature point sequence corresponding to each pre-selected feature point, a first neighborhood feature point set corresponding to each growth feature point in the longest growth path feature point sequence corresponding to each pre-selected feature point, and a second neighborhood feature point set corresponding to each growth feature point are obtained;

[0028] Obtaining the appropriate growth degree corresponding to each of the pre-selected feature points according to the longest growth path feature point sequence, the first neighborhood feature point set, and the second neighborhood feature point set;

[0029] All pre-selected feature points whose suitable growth degree is greater than or equal to a preset suitable growth degree threshold are recorded as initial seed points.

[0030] Preferably, the method for obtaining the longest growth path feature point sequence corresponding to each of the pre-selected feature points includes:

[0031] For any pre-selected feature point g:

[0032] If in the eight neighborhoods of the pre-selected feature point g, the feature points with the same value of power consumption as that corresponding to g are feature point g1 and feature point g2, then the set constructed by g, g1, and g2 is recorded as the first set;

[0033] If, in the eight neighborhoods of the feature point g2, there is no feature point whose power consumption value is equal to that of g2 and does not belong to the first set, and in the eight neighborhoods of the feature point g1, the feature points whose power consumption value is equal to that of g1 and do not belong to the first set are feature point g11 and feature point g12, then the set constructed by g, g1, g2, g11, and g12 is recorded as the second set;

[0034] If, in the eight neighborhoods of the feature point g11, there is no feature point whose power consumption value is equal to that of g11 and does not belong to the second set, and in the eight neighborhoods of the feature point g12, the feature point whose power consumption value is equal to that of g12 and does not belong to the second set is the feature point g121, then the set constructed by g, g1, g2, g11, g12, and g121 is recorded as the third set;

[0035] If in the eight neighborhoods of the feature point g121, there is no feature point whose value is equal to the power consumption corresponding to g121 and which does not belong to the third set, then the sequence constructed by the feature points g, g1, g12, and g121 is recorded as the longest growth path feature point sequence corresponding to the pre-selected feature point g, and the feature points in the longest growth feature point sequence corresponding to the pre-selected feature point g are all recorded as growth feature points.

[0036] Preferably, the method for obtaining the first neighborhood feature point set and the second neighborhood feature point set includes:

[0037] For the i-th growth feature point in the longest growth path feature point sequence corresponding to any pre-selected feature point:

[0038] In the longest growth path feature point sequence corresponding to the pre-selected feature point, all growth feature points located before the i-th growth feature point are recorded as the first growth feature point;

[0039] The set constructed by all feature points belonging to the eight neighborhoods of the i-th growth feature point and not belonging to the eight neighborhoods of the first growth feature point is recorded as the first neighborhood feature point set corresponding to the i-th growth feature point; the set constructed by the feature points in the first neighborhood feature point set corresponding to the i-th growth feature point that are equal to the power consumption corresponding to the i-th growth feature point is recorded as the second neighborhood feature point set corresponding to the i-th growth feature point.

[0040] Preferably, the method for obtaining the suitable growth degree corresponding to each pre-selected feature point includes:

[0041] For the i-th growth feature point in the longest growth path feature point sequence corresponding to any pre-selected feature point:

[0042] Recording the number of feature points in the first neighborhood feature point set corresponding to the i-th growth feature point as the first characterization value corresponding to the i-th growth feature point, recording the number of feature points in the second neighborhood feature point set corresponding to the i-th growth feature point as the second characterization value corresponding to the i-th growth feature point, and recording the ratio of the second characterization value to the first characterization value as the third characterization value corresponding to the i-th growth feature point;

[0043] For any feature point in the first neighborhood feature point set corresponding to the i-th growth feature point, the absolute value of the difference between the power consumption corresponding to the feature point and the power consumption corresponding to the i-th growth feature point is recorded as the difference value corresponding to the feature point; a sequence constructed by the difference values ​​corresponding to all feature points in the first neighborhood feature point set corresponding to the i-th growth feature point is recorded as the difference value sequence corresponding to the i-th growth feature point;

[0044] The reciprocal of the cumulative sum of all difference values ​​in the difference value sequence is recorded as the fourth characterization value corresponding to the i-th growth feature point; the reciprocal of the variance of the difference value sequence is recorded as the fifth characterization value corresponding to the i-th growth feature point;

[0045] The sum of the third characterization value, the fourth characterization value, and the fifth characterization value corresponding to the i-th growth characteristic point is recorded as the comprehensive characterization value corresponding to the i-th growth characteristic point;

[0046] The normalized value of the cumulative sum of the comprehensive characterization values ​​corresponding to all growth feature points in the longest growth path feature point sequence corresponding to the pre-selected feature point is recorded as the suitable growth degree corresponding to the pre-selected feature point.

[0047] Preferably, the method for obtaining the target power consumption sequence to be compressed includes:

[0048] Performing region growing on the initial seed point to obtain various growth regions;

[0049] Calculate the average power consumption corresponding to all characteristic points in each growth area and record it as the average power consumption corresponding to the corresponding growth area, and use the average power consumption corresponding to each growth area as the target power consumption corresponding to all characteristic points in the corresponding growth area;

[0050] Obtaining an evaluation characteristic value corresponding to the target image according to the minimum circumscribed rectangle of each growth area;

[0051] Determine whether the evaluation feature value is not less than a preset evaluation threshold value. If so, start from the upper left corner of the target image and perform a horizontal snake traversal on the feature points on the target image. Otherwise, start from the upper left corner of the target image and perform a vertical snake traversal on the feature points on the target image, and obtain a target feature point sequence in the order of traversal.

[0052] A sequence constructed by the target power consumption corresponding to each characteristic point in the target characteristic point sequence is recorded as the target power consumption sequence to be compressed.

[0053] Preferably, the method for obtaining the evaluation characteristic value corresponding to the target graph includes:

[0054] For any growth region, the minimum enclosing rectangle L is:

[0055] Obtain four sides L1, L2, L3 and L4 of the minimum circumscribed rectangle L, wherein L1 and L3 are parallel, L2 and L4 are parallel, L1 and L3 are both recorded as first characteristic sides, and L2 and L4 are both recorded as second characteristic sides;

[0056] The angle between the first characteristic side and the horizontal direction is recorded as Q1, and the angle between the second characteristic side and the horizontal direction is recorded as Q2;

[0057] Determine whether Q1 is not greater than Q2. If so, record the first characteristic side as the length of the minimum circumscribed rectangle L, and record the second characteristic side as the width of the minimum circumscribed rectangle L. Otherwise, record the first characteristic side as the width of the minimum circumscribed rectangle L, and record the second characteristic side as the length of the minimum circumscribed rectangle L.

[0058] The ratio of the length to the width of the minimum circumscribed rectangle L is recorded as the initial evaluation value corresponding to the growth area;

[0059] The ratio of the number of feature points located in the growth area to the area of ​​the minimum circumscribed rectangle L is recorded as the first credible factor of the initial evaluation value; for any feature point located in the growth area, the feature points belonging to the eight neighborhoods of the feature point and located in the growth area are all recorded as the target neighborhood feature points corresponding to the feature point, and the number of target neighborhood feature points corresponding to the feature point is recorded as the neighborhood quantity value corresponding to the feature point; the average of the neighborhood quantity values ​​corresponding to all feature points located in the growth area is recorded as the second credible factor of the initial evaluation value; the normalized value of the product of the first credible factor and the second credible factor is recorded as the target credible factor corresponding to the initial evaluation value;

[0060] The product of the initial evaluation value and its corresponding target credibility factor is recorded as the target evaluation value corresponding to the growth area;

[0061] The average of the target evaluation values ​​corresponding to all the growth areas calculated is recorded as the evaluation characteristic value corresponding to the target map.

[0062] Beneficial effects: The present invention includes a first acquisition module for acquiring a sequence of power consumption corresponding to M users received by a concentrator; a second acquisition module for establishing a histogram based on the power consumption sequence, and acquiring each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram; a third acquisition module for constructing a target graph based on the power consumption sequence, and obtaining an initial seed point on the target graph based on the pre-selected power and the target graph; a fourth acquisition module for obtaining a sequence of target power consumption to be compressed based on the initial seed point; a data compression module for compressing the sequence of target power consumption to be compressed to obtain a compressed file. The present invention can make the obtained sequence of target power consumption to be compressed contain more repeated and continuous data based on the initial seed point obtained from the pre-selected power and the target graph, thereby making the compression rate higher when compressing the sequence of target power consumption to be compressed. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] 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.

[0064] Figure 1 This is a structural block diagram of a concentrator with intelligent storage function according to the present invention;

[0065] Figure 2 The growth path directed graph provided by the present invention. DETAILED DESCRIPTION

[0066] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the embodiments of the present invention.

[0067] 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 pertains.

[0068] like Figure 1 As shown, a voltage transformer with a fault identification function provided in this embodiment includes:

[0069] The first acquisition module 01 is used to acquire the power consumption sequence corresponding to M users received by the concentrator, where M is a positive integer greater than 0.

[0070] The main purpose of this embodiment is to make the compression rate of the power consumption sequence of all users received by the concentrator in the target time period higher; and this embodiment takes any concentrator as an example for analysis, and the number of all electric energy meters connected to the concentrator is recorded as M, where M is a positive integer greater than 0; in addition, this embodiment sets an electric energy meter that can only measure the power consumption of one user, so the number of users measured in this embodiment is also M, that is, the concentrator communicates with the electric energy meter through the communication interface connected to the electric energy meter to obtain the power consumption data of the user measured by the electric energy meter.

[0071] For any electric energy meter connected to the concentrator: the sequence constructed by all the power consumption data of the electric energy meter received by the concentrator within the target time period is recorded as the power consumption sequence corresponding to the user measured by the electric energy meter, and the data in the power consumption sequence are all recorded as power consumption.

[0072] Therefore, through the above process, the power consumption sequence corresponding to the user measured by each electric energy meter connected to the concentrator can be obtained, that is, the power consumption sequence corresponding to M users can be obtained.

[0073] In addition, in specific applications, it is necessary to set the length of the target time period and the frequency of the data received by the concentrator according to actual conditions. For example, this embodiment requires that all data from the electric energy meters received or collected by the concentrator be compressed once every month. In this embodiment, the length of the target time period is set to one month, and the frequency of the concentrator receiving data can also be set to 1 hour. That is, the interval between the receiving time of adjacent power consumption in the power consumption sequence corresponding to any user received by the concentrator is 1 hour. As other implementation methods, the implementer can also set the length of the target time period and the frequency of the data received by the concentrator according to actual conditions. For example, the frequency of the data received by the concentrator can be set to 2 hours, and the length of the target time period can be set to two weeks.

[0074] Therefore, this embodiment obtains the power consumption sequence corresponding to all users received by the concentrator through the above process.

[0075] The second acquisition module 02 is used to establish a histogram according to the power consumption sequence, and acquire each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram.

[0076] Since the probability of continuous and repeated electricity consumption data appearing in the electricity consumption sequence collected by the concentrator is relatively small, and there may even be no continuous and repeated electricity consumption data in the sequence, directly compressing the electricity consumption sequence corresponding to the collected users by run-length encoding may result in a low compression rate and may even cause the length of the compressed sequence to become longer. Therefore, in order to improve the compression rate as much as possible and avoid the length of the compressed sequence becoming longer, this embodiment subsequently converts the electricity consumption sequences of all users received or collected into a target graph and then analyzes it to obtain an initial seed point. Based on the initial seed point, the target electricity consumption sequence to be compressed is obtained, and the probability of continuous and repeated electricity consumption data appearing in the target electricity consumption sequence to be compressed is relatively high. Therefore, the compression rate of the target electricity consumption sequence to be compressed is relatively high.

[0077] In addition, since the purpose of obtaining the initial seed point in the present embodiment is to obtain the growth area by using the regional growing algorithm, and the selection of the initial seed point is closely related to the quality of the regional growth, and the growth area obtained after the regional growth is closely related to the subsequent compression rate, the present embodiment will obtain each pre-selected power based on the histogram established by the power consumption sequence, and will subsequently determine the initial seed point based on the pre-selected power, so the specific process of obtaining the pre-selected power is:

[0078] In this embodiment, the set constructed by all power consumption in all power consumption sequences obtained in step S001 is first recorded as a comprehensive power consumption set; then a histogram is constructed according to the frequency of occurrence of each power consumption in the comprehensive power consumption set, and the horizontal axis of the histogram is the power consumption, and the vertical axis is the number of corresponding power consumption in the comprehensive power consumption set.

[0079] The specific method of constructing the histogram is as follows: first, the maximum power consumption in the comprehensive power consumption set is obtained and recorded as K1, the minimum power consumption in the comprehensive power consumption set is recorded as K0, and [K0, k1] is recorded as the power consumption value interval. Since the accuracy of the power consumption that can be collected by the electric energy meter is, that is, the electric energy meter can generally be accurate to two decimal places when collecting the user's power consumption, the group interval is recorded as 0.01 in this embodiment, and then the number of groups can be obtained according to the power consumption value interval and the group interval, and the boundary value of each group is counted, and then the power consumption in the comprehensive power consumption set is classified according to the group boundary, and the frequency of each group is counted, and this embodiment The first group of statistics on the histogram in the example is the frequency of electricity consumption k0 appearing in the comprehensive electricity consumption set, that is, the first group on the histogram is the frequency corresponding to electricity consumption k0, the second group of statistics is the frequency of electricity consumption k0+(0.01*(2-1)) appearing in the comprehensive electricity consumption set, that is, the second group on the histogram is the frequency corresponding to electricity consumption k0+(0.01*(2-1)), and the fth group of statistics is the frequency of electricity consumption k0+(0.01*(f-1)) appearing in the comprehensive electricity consumption set, that is, the fth group on the histogram is the frequency corresponding to electricity consumption k0+(0.01*(2-1)).

[0080] Therefore, through the above process, a histogram can be constructed, and the frequency corresponding to each power consumption on the histogram and each power consumption can be obtained.

[0081] If there is a large frequency value on the histogram, it means that the power consumption corresponding to the frequency value accounts for a large proportion of the comprehensive power consumption sequence and the repetition rate is also high, then the probability value that the power consumption corresponding to the initial seed point is the power consumption corresponding to the frequency value is large; if the difference between the frequency values ​​on both sides of a frequency value on the histogram is small, that is, there is no mutation, then it means that when the subsequent regional growth is performed, if the power consumption corresponding to the initial seed point is the power consumption corresponding to the frequency value, the stability of the regional growth can be guaranteed; if the difference between the frequency values ​​on both sides of a frequency value on the histogram is large, that is, there is a mutation, then it means that when the subsequent regional growth is performed, if the power consumption corresponding to the initial seed point is the power consumption corresponding to the frequency value, it may make it difficult to perform regional growth later. Therefore, based on the above analysis, this embodiment will subsequently obtain the pre-selected power based on the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram, and then determine the initial seed point based on the pre-selected power, specifically:

[0082] Next, this embodiment will obtain the frequency points corresponding to the various power consumptions on the histogram and the frequencies corresponding to the various power consumptions, and the horizontal axis value of the frequency point is the power consumption, and the vertical axis value is the frequency corresponding to the corresponding power consumption; then a two-dimensional space is constructed, all frequency points are mapped to the two-dimensional space, and the frequency points corresponding to the various power consumptions are connected in order from small to large in the horizontal axis value to obtain a characteristic curve.

[0083] For the ath frequency point on the characteristic curve, the frequency point sequence constructed from the a-1th frequency point on the characteristic curve to the aAth frequency point on the characteristic curve is recorded as the left frequency point sequence corresponding to the ath frequency point, and the frequency point sequence constructed from the a+1th frequency point on the characteristic curve to the a+Ath frequency point on the characteristic curve is recorded as the right frequency point sequence corresponding to the ath frequency point; in addition, on the characteristic curve, if the number of frequency points on the left side of the ath frequency point is less than A, then the frequency point sequence constructed from all the frequency points on the left side of the ath frequency point is recorded as the right frequency point sequence corresponding to the ath frequency point. The frequency point sequence is recorded as the left frequency point sequence corresponding to the a-th frequency point. If the number of frequency points on the right side of the a-th frequency point is less than A, then the frequency point sequence constructed by all frequency points on the right side of the a-th frequency point is recorded as the right frequency point sequence corresponding to the a-th frequency point. On the characteristic curve, if there is no frequency point on the left side of the a-th frequency point, then there is no frequency point in the left frequency point sequence corresponding to the a-th frequency point. If there is no frequency point on the right side of the a-th frequency point, then there is no frequency point in the right frequency point sequence corresponding to the a-th frequency point.

[0084] In a specific application, the implementer may set the value of A according to actual conditions. For example, in this embodiment, the value of A is set to 5.

[0085] Next, according to the ordinate value corresponding to each frequency point on the characteristic curve, the left frequency point sequence corresponding to each frequency point, and the right frequency point sequence corresponding to each frequency point, the repetition similarity degree corresponding to each frequency point on the characteristic curve is obtained. The repetition similarity degree is the basis for subsequently obtaining the preset power consumption. Therefore, the process of obtaining the repetition similarity degree in this embodiment is as follows:

[0086] For the ath frequency point on the characteristic curve: the sequence constructed by the slopes between two adjacent frequency points in the left frequency point sequence corresponding to the ath frequency point is recorded as the left slope sequence corresponding to the ath frequency point, the difference sequence of the left slope sequence corresponding to the ath frequency point is calculated and recorded as the first difference sequence corresponding to the ath frequency point, all data in the first difference sequence are recorded as difference values, the m0th slope in the left slope sequence corresponding to the ath frequency point is the slope between the m0th frequency point and the m0+1th frequency point in the left frequency point sequence corresponding to the ath frequency point, the hth difference value in the first difference sequence corresponding to the ath frequency point is the difference between the h+1th slope and the hth slope in the left slope sequence corresponding to the ath frequency point. The difference of slopes; the sequence constructed by the slopes between two adjacent frequency points in the right frequency point sequence corresponding to the a-th frequency point is recorded as the right slope sequence corresponding to the frequency point, the difference sequence of the right slope sequence corresponding to the a-th frequency point is calculated and recorded as the second difference sequence corresponding to the a-th frequency point, all data in the second difference sequence are recorded as difference values, and the m1-th slope in the right slope sequence corresponding to the a-th frequency point is the slope between the m1-th frequency point and the m1+1-th frequency point in the right frequency point sequence corresponding to the a-th frequency point, and the t-th difference value in the second difference sequence corresponding to the a-th frequency point is the difference between the t+1-th slope and the t-th slope in the right slope sequence corresponding to the a-th frequency point.

[0087] For the ath frequency point on the characteristic curve, the cumulative sum of all squares of differential values ​​in the first differential sequence corresponding to the ath frequency point is recorded as the first eigenvalue corresponding to the ath frequency point, and the cumulative sum of squares of differential values ​​in the second differential sequence corresponding to the ath frequency point is recorded as the second eigenvalue corresponding to the ath frequency point; the sum of the first eigenvalue corresponding to the ath frequency point and the corresponding second eigenvalue is recorded as the comprehensive eigenvalue corresponding to the ath frequency point.

[0088] Therefore, the above process can obtain the comprehensive characteristic value corresponding to each frequency point on the characteristic curve. Then the total amount of electricity consumption is obtained, and the cumulative sum of the amount of electricity consumption in the electricity consumption sequence corresponding to all users is recorded as the total amount of electricity consumption, and the total amount of electricity consumption is also the amount of electricity consumption in the comprehensive electricity consumption set.

[0089] Next, the ratio of the ordinate value of each frequency point on the characteristic curve to the total amount of electricity consumption is calculated and recorded as the proportion of the corresponding frequency point. Then, the product of the proportion of each frequency point on the characteristic curve and the inverse of the comprehensive characteristic value corresponding to the corresponding frequency point is obtained, and recorded as the repetition similarity degree corresponding to the corresponding frequency point.

[0090] Therefore, this embodiment can obtain the repetition similarity corresponding to each frequency point on the characteristic curve through the above process, and the greater the value of the repetition similarity, the greater the probability that the horizontal coordinate value of the corresponding frequency point is the preset power consumption; the repetition similarity corresponding to each frequency point on the characteristic curve is calculated according to the following formula:

[0091]

[0092] in, is the degree of repetition similarity corresponding to the ath frequency point on the characteristic curve, is the ordinate value of the ath frequency point on the characteristic curve, is the total amount of electricity consumed, is the number of difference values ​​in the first difference sequence corresponding to the ath frequency point on the characteristic curve, is the number of difference values ​​in the second difference sequence corresponding to the ath frequency point on the characteristic curve, is the hth difference value in the first difference sequence corresponding to the ath frequency point, is the tth difference value in the second difference sequence corresponding to the ath frequency point, and norm() is the normalization function.

[0093] and The bigger, The smaller, the The bigger, The larger it is, the greater the probability that the horizontal coordinate value of the a-th frequency point is the pre-selected power quantity. Conversely, the smaller the probability that the horizontal coordinate value of the a-th frequency point is the pre-selected power quantity.

[0094] Therefore, this embodiment can obtain the degree of repetition similarity corresponding to each frequency point on the characteristic curve through the above process; next, this embodiment obtains the horizontal coordinate values ​​of all frequency points whose repetition similarity is greater than or equal to the preset repetition similarity threshold, and they are all recorded as pre-selected electricity consumption, and the horizontal coordinate value of the characteristic point represents the electricity consumption.

[0095] Therefore, this embodiment can obtain various pre-selected power amounts through the above process, and in specific applications, the implementer needs to set the preset repetition similarity threshold according to actual conditions. For example, this embodiment sets the preset repetition similarity threshold to 0.8.

[0096] The third acquisition module 03 is used to construct a target graph according to the power consumption sequence, and obtain an initial seed point on the target graph according to the pre-selected power consumption and the target graph.

[0097] This embodiment will then obtain a target map based on the power consumption sequence corresponding to the user, and will subsequently determine an initial seed point based on the pre-selected power and the target map. Therefore, the specific process of obtaining the target map is as follows:

[0098] A blank graph is constructed, and the number of points on the blank graph is the total amount of electricity consumption. Then, the electricity consumption in the electricity consumption sequence corresponding to all users obtained in step S001 is mapped to the blank graph, and the mapped blank graph is recorded as the target graph, and the points in the target graph are all recorded as feature points, and one feature point corresponds to one electricity consumption. In addition, the sequence constructed by the electricity consumption corresponding to all feature points in the b-th row on the target graph is the electricity consumption sequence corresponding to the b-th user, and the sequence constructed by the electricity consumption corresponding to all feature points in the c-th column on the target graph is the sequence constructed by the c-th electricity consumption in the electricity consumption sequence corresponding to all users. The origin on the target graph is located at the upper left corner of the target graph, and the electricity consumption corresponding to the feature point with coordinates (c, b) on the target graph is the c-th electricity consumption in the electricity consumption sequence corresponding to the b-th user, b is a positive integer, and the value of b is less than or equal to M. The target graph is parallel to the horizontal direction, c in the coordinates (c, b) is the horizontal coordinate value, and b in the coordinates (c, b) is the vertical coordinate value. In addition, converting the electricity consumption data into a target graph increases the number of adjacent data, thereby increasing the probability of duplication, which is helpful for subsequent analysis.

[0099] Then, on the target graph, all feature points whose power consumption is equal to the pre-selected power consumption are recorded as pre-selected feature points. This embodiment will then obtain the longest growth path feature point sequence corresponding to each pre-selected feature point, and the purpose of obtaining the longest growth path feature point sequence is to subsequently analyze the suitable growth degree corresponding to each pre-selected feature point. The suitable growth degree corresponding to each pre-selected feature point can reflect the possibility that the corresponding pre-selected feature point is the initial seed point. Therefore, the specific process of obtaining the longest growth path feature point sequence corresponding to each pre-selected feature point is as follows:

[0100] For any pre-selected feature point g:

[0101] If in the eight neighborhoods of the pre-selected feature point g, the feature points with the same power consumption value as that corresponding to g are feature point g1 and feature point g2, then the set {g1, g2} constructed by g1 and g2 is recorded as the set of feature points to be analyzed corresponding to the pre-selected feature point g, and the set constructed by g, g1, and g2 is recorded as the first set.

[0102] If in the eight neighborhoods of feature point g2, there is no feature point whose power consumption value is equal to that of g2 and does not belong to the first set, then the set of feature points to be analyzed corresponding to g2 is recorded as an empty set. If in the eight neighborhoods of feature point g1, the feature points whose power consumption value is equal to that of g1 and do not belong to the first set are feature point g11 and feature point g12, then the set {g11, g12} constructed by g11 and g12 is recorded as the set of feature points to be analyzed corresponding to feature point g1, and the set constructed by g, g1, g2, g11, and g12 is recorded as the second set.

[0103] If in the eight neighborhoods of feature point g11, there is no feature point whose power consumption value is equal to that of g11 and does not belong to the second set, then the set of feature points to be analyzed corresponding to g11 is recorded as an empty set; if in the eight neighborhoods of feature point g12, the feature point whose power consumption value is equal to that of g12 and does not belong to the second set is feature point g121, then the set {g121} constructed by g121 is recorded as the set of feature points to be analyzed corresponding to feature point g12, and the set constructed by g, g1, g2, g11, g12, and g121 is recorded as the third set.

[0104] If in the eight neighborhoods of feature point g121, there is no feature point whose value is equal to the power consumption corresponding to g121 and does not belong to the third set, then the sequence constructed by feature points g, g1, g12, and g121 is recorded as the longest growth path feature point sequence corresponding to the pre-selected feature point g, and the feature points in the longest growth feature point sequence corresponding to the pre-selected feature point g are all recorded as growth feature points.

[0105] In addition, this embodiment can also construct a growth path directed graph according to the set of feature points to be analyzed {g1, g2} corresponding to the pre-selected feature point g, the set of feature points to be analyzed {g11, g12} corresponding to the feature point g1, and the set of feature points to be analyzed {g121} corresponding to the feature point g12, and the growth path directed graph is as follows: Figure 2 As shown, Figure 2 The longest path on is from the pre-selected feature point g to the feature point g121. The feature points from the pre-selected feature point g to the feature point g121 include the pre-selected feature point g, the feature point g1, the feature point g12, and the feature point g121. The longest growth path feature point sequence corresponding to the pre-selected feature points is {g, g1, g12, g121}.

[0106] Therefore, through the above process, the longest growth path feature point sequence corresponding to each pre-selected feature point can be obtained, and the feature points in the longest growth feature point sequence corresponding to each pre-selected feature point are all recorded as growth feature points.

[0107] For the feature points of the longest growth path feature point sequence corresponding to each pre-selected feature point, if the number of repetitions in its neighborhood is more, the corresponding degree of growth is stronger, and the cost of subsequent repetition enhancement processing is smaller, and the repetition enhancement processing is performed to make the repeated data on the target map more so that the compression effect is better. Secondly, if the difference between its neighborhood data and itself is lower, the neighborhood transition part is more suitable for growth. Finally, the stronger the concentration of its neighborhood data, the more suitable the growth of some data in the neighborhood. Therefore, this embodiment will next obtain the suitable growth degree corresponding to each pre-selected feature point based on the neighborhood feature points of each growth feature point in the longest growth path feature point sequence corresponding to each pre-selected feature point, specifically:

[0108] For the i-th growth feature point in the longest growth path feature point sequence corresponding to the p-th pre-selected feature point on the target graph:

[0109] In the longest growth path feature point sequence corresponding to the p-th pre-selected feature point, all growth feature points located in front of the ith growth feature point are recorded as the first growth feature point; the set constructed by all feature points belonging to the eight neighborhoods of the ith growth feature point and not belonging to the eight neighborhoods of the first growth feature point is recorded as the first neighborhood feature point set corresponding to the ith growth feature point; the set constructed by the feature points in the first neighborhood feature point set corresponding to the ith growth feature point that are equal to the power consumption value corresponding to the ith growth feature point is recorded as the second neighborhood feature point set corresponding to the ith growth feature point.

[0110] Obtain the number of feature points in the first neighborhood feature point set corresponding to the i-th growth feature point, and record it as the first characterization value corresponding to the i-th growth feature point; obtain the number of feature points in the second neighborhood feature point set corresponding to the i-th growth feature point, and record it as the second characterization value corresponding to the i-th growth feature point; obtain the ratio of the second characterization value corresponding to the i-th growth feature point to its corresponding first characterization value, and record it as the third characterization value corresponding to the i-th growth feature point.

[0111] For any feature point in the first neighborhood feature point set corresponding to the ith growth feature point, calculate the absolute value of the difference between the power consumption corresponding to the feature point and the power consumption corresponding to the ith growth feature point, and record it as the difference value corresponding to the feature point; then, the sequence constructed by the difference values ​​corresponding to all feature points in the first neighborhood feature point set corresponding to the ith growth feature point is recorded as the difference value sequence corresponding to the ith growth feature point. Obtain the reciprocal of the cumulative sum of all difference values ​​in the difference value sequence corresponding to the ith growth feature point, and record it as the fourth characterization value corresponding to the ith growth feature point; calculate the variance of the difference value sequence corresponding to the ith growth feature point, and record the reciprocal of the variance as the fifth characterization value corresponding to the ith growth feature point. Then, calculate the sum of the third characterization value, the fourth characterization value, and the fifth characterization value corresponding to the ith growth feature point, and record it as the comprehensive characterization value corresponding to the ith growth feature point.

[0112] Then, the cumulative sum of the comprehensive characterization values ​​corresponding to all growth feature points in the longest growth path feature point sequence corresponding to the pth pre-selected feature point is calculated, and the cumulative sum of the comprehensive characterization values ​​is normalized, and the cumulative sum of the normalized comprehensive characterization values ​​is recorded as the suitable growth degree corresponding to the pre-selected feature point; the suitable growth degree corresponding to the pth pre-selected feature point is calculated according to the following formula:

[0113]

[0114] in, is the suitable growth degree corresponding to the pth pre-selected feature point, is the number of growth feature points in the longest growth path feature point sequence corresponding to the pth pre-selected feature point, is the number of feature points in the first neighborhood feature point set corresponding to the ith growth feature point in the longest growth path feature point sequence corresponding to the pth pre-selected feature point, and is also the first representation value corresponding to the ith growth feature point. is the number of feature points in the second neighborhood feature point set corresponding to the ith growth feature point in the longest growth path feature point sequence corresponding to the pth preselected feature point, and is also the second representation value corresponding to the ith growth feature point. is the third characterization value corresponding to the i-th growth feature point, is the power consumption corresponding to the ith growth feature point in the longest growth path feature point sequence corresponding to the pth pre-selected feature point, is the power consumption corresponding to the jth feature point in the first neighborhood feature point set corresponding to the i-th growth feature point in the longest growth path feature point sequence corresponding to the p-th pre-selected feature point, is the fourth characterization value corresponding to the i-th growth feature point, is the variance of the difference value sequence corresponding to the i-th growth feature point, is the fifth characterization value corresponding to the i-th growth feature point.

[0115] In this embodiment, when When is larger, it indicates that the number of feature points with the same power consumption as the i-th growth feature point in the first neighborhood feature point set corresponding to the i-th growth feature point is larger, which also indicates that it is more suitable for growth; when The smaller it is, the more suitable it is for growth; The smaller it is, the stronger the concentration of data in the neighborhood of the i-th growth feature point is, and the more suitable it is for growth; therefore, when The bigger, The smaller and The smaller the time, the The larger the value of The value of is between 0 and 1, and The larger the value of , the stronger the growth potential at the p-th pre-selected feature point, the higher the degree of suitability for growth, and the better the effect of subsequent regional growth using the pre-selected feature point as the initial seed point; conversely, the weaker the growth potential at the p-th pre-selected feature point, the lower the degree of suitability for growth, and the worse the effect of subsequent regional growth using the pre-selected feature point as the initial seed point; in addition, the more the number of growth feature points in the longest growth path feature point sequence corresponding to the p-th pre-selected feature point, The value of is relatively larger.

[0116] Therefore, this embodiment can obtain the suitable growth degree corresponding to each pre-selected feature point through the above process; next, it is determined whether the suitable growth degree corresponding to each pre-selected feature point is greater than or equal to the preset suitable growth degree threshold. If so, the corresponding pre-selected feature point is recorded as the initial seed point; and in specific applications, the implementer needs to set the preset suitable growth degree threshold according to the actual situation. For example, this embodiment sets the preset suitable growth degree threshold to 0.6.

[0117] So far, this embodiment has obtained all the initial seed points on the target map through the above process; and the method of selecting the initial seed points in this embodiment can make the subsequent growth area results more complete and larger in scope, thereby making the subsequent compression rate higher.

[0118] The fourth acquisition module 04 is used to acquire the target power consumption sequence to be compressed according to the initial seed point.

[0119] Next, this embodiment will obtain the target power consumption sequence to be compressed based on the initial seed point. There are a large number of continuous and repeated power consumption data in the target power consumption sequence to be compressed, that is, the compression rate of the target power consumption sequence to be compressed is high. Therefore, the specific process of obtaining the target power consumption sequence to be compressed is:

[0120] Regional growth is performed starting from each initial seed point, and each region obtained after the growth is completed is recorded as a growth region. Since the growth or merging of feature points is usually performed through the difference between the power consumption corresponding to each initial seed point and the power consumption corresponding to the adjacent feature points corresponding to the initial seed point, it is necessary to set growth rules when performing regional growth. The growth rules are set in this embodiment as follows: in the eight neighborhoods of the seed point, feature points whose power consumption values ​​differ from those of the seed point within a precision of 0.1 are grown, that is, if the absolute value of the difference between the power consumption of the feature points located in the eight neighborhoods of the seed point and the power consumption of the seed point is less than or equal to 0.1, the feature points located in the eight neighborhoods of the seed point are added to the region.

[0121] Therefore, the segmentation of the target image is achieved through the above process, and each growth area corresponding to the target image is obtained; in order to make the compression rate higher during the subsequent compression, this embodiment will perform repeatability enhancement processing on the target image. The repeatability enhancement processing on the target image refers to improving the repeatability continuity of the data on the target image. The specific process of performing repeatability enhancement processing is:

[0122] The mean power consumption corresponding to all characteristic points in each growth area is calculated and recorded as the mean power consumption corresponding to the corresponding growth area. The mean power consumption corresponding to each growth area is used as the target power consumption corresponding to all characteristic points in the corresponding growth area, that is, each characteristic point on the target map corresponds to a target power consumption. In addition, for the convenience of calculation, this embodiment requires that the value of the target power consumption is only retained to two decimal places.

[0123] Next, the evaluation characteristic value corresponding to the target graph is obtained according to the minimum circumscribed rectangle of the growth area, and the traversal direction is subsequently determined based on the evaluation characteristic value. The traversal direction is a key factor that causes the target power consumption sequence to be compressed to be obtained later to have repeated and continuous power consumption data. Therefore, the specific process of obtaining the evaluation characteristic value in this embodiment is as follows:

[0124] For any growth region, the minimum enclosing rectangle L is:

[0125] The four sides L1, L2, L3 and L4 of the minimum circumscribed rectangle L are obtained, L1 and L3 are parallel, L2 and L4 are parallel, L1 and L3 are both recorded as the first characteristic sides, and L2 and L4 are both recorded as the second characteristic sides; the angle between the first characteristic side and the horizontal direction is recorded as Q1, and the angle between the second characteristic side and the horizontal direction is recorded as Q2; then determine whether Q1 is not greater than Q2, if so, the first characteristic side is recorded as the length of the minimum circumscribed rectangle L, and the second characteristic side is recorded as the width of the minimum circumscribed rectangle L, otherwise, the first characteristic side is recorded as the width of the minimum circumscribed rectangle L, and the second characteristic side is recorded as the length of the minimum circumscribed rectangle L;

[0126] Then, the ratio of the length of the growth area to the width of the growth area is obtained and recorded as the initial evaluation value corresponding to the growth area; then, the ratio of the number of feature points located in the growth area to the area of ​​the minimum circumscribed rectangle of the growth area is obtained and recorded as the first credibility factor of the initial evaluation value corresponding to the growth area; and the more feature points located in the growth area, that is, the larger the value of the first credibility factor, indicates that the credibility of the initial evaluation value corresponding to the growth area is higher.

[0127] For any feature point located in the growth area, the feature points belonging to the eight neighborhoods of the feature point and located in the growth area are obtained, and they are all recorded as the target neighborhood feature points corresponding to the feature point; then the number of target neighborhood feature points corresponding to the feature point is obtained, and recorded as the neighborhood quantity value corresponding to the feature point; the mean of the neighborhood quantity values ​​corresponding to all the feature points in the growth area is calculated, and recorded as the second credibility factor of the initial evaluation value corresponding to the growth area, and the larger the value of the second credibility factor is, the more concentrated the distribution of the feature points in the growth area is, and the higher the credibility of the initial evaluation value corresponding to the growth area is.

[0128] Therefore, through the above process, the first credibility factor and the second credibility factor of the initial evaluation value corresponding to the growth area can be obtained, and the higher the first credibility factor and the second credibility factor, the closer the shape of the growth area is to the minimum circumscribed rectangle of the growth area.

[0129] Next, the product of the first credible factor and the second credible factor of the initial evaluation value corresponding to the growth area is obtained, and the value obtained after normalizing the product of the first credible factor and the second credible factor corresponding to the initial evaluation value corresponding to the growth area is recorded as the target credible factor corresponding to the initial evaluation value corresponding to the growth area; and the product of the calculated initial evaluation value corresponding to the growth area and its corresponding target credible factor is recorded as the target evaluation value corresponding to the growth area, and the average of the calculated target evaluation values ​​corresponding to all growth areas of the target graph is recorded as the evaluation characteristic value corresponding to the target graph.

[0130] Therefore, this embodiment can obtain the evaluation characteristic value corresponding to the target image through the above process; then judge whether the evaluation characteristic value is not less than the preset evaluation threshold value. If so, it is determined that the growth area corresponding to the target image is distributed horizontally as a whole, and starting from the upper left corner of the target image, the feature points on the target image are traversed horizontally in a serpentine manner until all the feature points on the target image are traversed, and then the target feature point sequence is obtained according to the order of traversal; otherwise, it is determined that the growth area corresponding to the target image is distributed vertically as a whole, and starting from the upper left corner of the target image, the feature points on the target image are traversed vertically in a serpentine manner until all the feature points on the target image are traversed, and then the target feature point sequence is obtained according to the order of traversal.

[0131] In addition, the horizontal serpentine traversal is also a horizontal S-shaped traversal, and the vertical serpentine traversal is also a vertical S-shaped traversal; and in specific applications, the implementer needs to set the preset evaluation threshold according to actual conditions. For example, this embodiment sets the preset evaluation threshold to a constant 1.

[0132] Then, a sequence constructed by the target power consumption corresponding to each feature point in the target feature point sequence is obtained and recorded as the target power consumption sequence to be compressed.

[0133] So far, this embodiment has obtained the target power consumption sequence to be compressed.

[0134] The data compression module 05 is used to compress the target power consumption sequence to be compressed to obtain a compressed file.

[0135] Finally, this embodiment uses run-length coding to compress the target power consumption sequence to obtain a compressed file, and the degree of repetition of adjacent data in the target power consumption sequence is greatly improved compared with the original power consumption sequence, which can improve the run-length coding compression efficiency and also improve the storage function of the power meter concentrator for large-scale user power consumption data.

[0136] In summary, this embodiment includes a first acquisition module for acquiring a sequence of power consumption corresponding to M users received by the concentrator; a second acquisition module for establishing a histogram based on the power consumption sequence, and acquiring each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram; a third acquisition module for constructing a target graph based on the power consumption sequence, and obtaining an initial seed point on the target graph based on the pre-selected power and the target graph; a fourth acquisition module for obtaining a sequence of target power consumption to be compressed based on the initial seed point; and a data compression module for compressing the sequence of target power consumption to be compressed to obtain a compressed file. This embodiment enables the obtained sequence of target power consumption to be compressed to have more repeated and continuous data based on the initial seed point obtained from the pre-selected power and the target graph, thereby making the compression rate higher when compressing the sequence of target power consumption to be compressed.

[0137] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A concentrator with intelligent storage function, characterized in that: The concentrator with intelligent storage function includes: The first acquisition module is used to acquire the power consumption sequence corresponding to M users received by the concentrator, where M is a positive integer greater than 0; A second acquisition module is used to establish a histogram according to the power consumption sequence, and acquire each pre-selected power according to the frequency corresponding to each power consumption on the histogram and the frequency corresponding to the adjacent power consumption of each power consumption on the histogram; A third acquisition module is used to construct a target graph according to the power consumption sequence, and obtain an initial seed point on the target graph according to the pre-selected power and the target graph; A fourth acquisition module, configured to acquire a target power consumption sequence to be compressed according to the initial seed point; A data compression module, used for compressing the target power consumption sequence to be compressed to obtain a compressed file; The method for constructing the target graph includes: Obtain a blank map, map the power consumption in the power consumption sequence corresponding to all users to the blank map, record the mapped blank map as the target map, record all points in the target map as feature points, and one feature point corresponds to one power consumption; the power consumption corresponding to all feature points in the b-th row of the target map is the power consumption sequence corresponding to the b-th user, the sequence constructed by the power consumption corresponding to all feature points in the c-th column of the target map is the sequence constructed by the c-th power consumption in the power consumption sequence corresponding to all users, and the target map is parallel to the horizontal direction; The method for obtaining the initial seed point on the target graph includes: On the target map, all feature points whose power consumption is equal to the pre-selected power consumption are recorded as pre-selected feature points; According to the adjacent feature points of each pre-selected feature point on the target graph, a longest growth path feature point sequence corresponding to each pre-selected feature point, a first neighborhood feature point set corresponding to each growth feature point in the longest growth path feature point sequence corresponding to each pre-selected feature point, and a second neighborhood feature point set corresponding to each growth feature point are obtained; Obtaining the appropriate growth degree corresponding to each of the pre-selected feature points according to the longest growth path feature point sequence, the first neighborhood feature point set, and the second neighborhood feature point set; All pre-selected feature points whose suitable growth degree is greater than or equal to a preset suitable growth degree threshold are recorded as initial seed points; The method for obtaining a first neighborhood feature point set and a second neighborhood feature point set includes: For the i-th growth feature point in the longest growth path feature point sequence corresponding to any pre-selected feature point: In the longest growth path feature point sequence corresponding to the pre-selected feature point, all growth feature points located before the i-th growth feature point are recorded as the first growth feature point; Record a set constructed by all feature points belonging to the eight neighborhoods of the i-th growth feature point and not belonging to the eight neighborhoods of the first growth feature point as the first neighborhood feature point set corresponding to the i-th growth feature point; record a set constructed by feature points in the first neighborhood feature point set corresponding to the i-th growth feature point that have a value equal to the power consumption corresponding to the i-th growth feature point as the second neighborhood feature point set corresponding to the i-th growth feature point; The method for obtaining the suitable growth degree corresponding to each pre-selected feature point includes: For the i-th growth feature point in the longest growth path feature point sequence corresponding to any pre-selected feature point: Recording the number of feature points in the first neighborhood feature point set corresponding to the i-th growth feature point as the first characterization value corresponding to the i-th growth feature point, recording the number of feature points in the second neighborhood feature point set corresponding to the i-th growth feature point as the second characterization value corresponding to the i-th growth feature point, and recording the ratio of the second characterization value to the first characterization value as the third characterization value corresponding to the i-th growth feature point; For any feature point in the first neighborhood feature point set corresponding to the i-th growth feature point, the absolute value of the difference between the power consumption corresponding to the feature point and the power consumption corresponding to the i-th growth feature point is recorded as the difference value corresponding to the feature point; a sequence constructed by the difference values ​​corresponding to all feature points in the first neighborhood feature point set corresponding to the i-th growth feature point is recorded as the difference value sequence corresponding to the i-th growth feature point; The reciprocal of the cumulative sum of all difference values ​​in the difference value sequence is recorded as the fourth characterization value corresponding to the i-th growth feature point; the reciprocal of the variance of the difference value sequence is recorded as the fifth characterization value corresponding to the i-th growth feature point; The sum of the third characterization value, the fourth characterization value, and the fifth characterization value corresponding to the i-th growth characteristic point is recorded as the comprehensive characterization value corresponding to the i-th growth characteristic point; The normalized value of the cumulative sum of the comprehensive characterization values ​​corresponding to all growth feature points in the longest growth path feature point sequence corresponding to the pre-selected feature point is recorded as the suitable growth degree corresponding to the pre-selected feature point; Methods for obtaining each pre-selected power consumption include: According to each power consumption on the histogram and the frequency corresponding to each power consumption, a frequency point corresponding to each power consumption is obtained, wherein the horizontal axis value of the frequency point is the power consumption and the vertical axis value is the frequency corresponding to the corresponding power consumption; Constructing a two-dimensional space, mapping all frequency points to the two-dimensional space, and sequentially connecting the frequency points corresponding to the respective power consumptions in order of the horizontal coordinate values ​​from small to large, to obtain a characteristic curve; For the ath frequency point on the characteristic curve, the frequency point sequence constructed from the a-1th frequency point on the characteristic curve to the aAth frequency point on the characteristic curve is recorded as the left frequency point sequence corresponding to the ath frequency point, and the frequency point sequence constructed from the a+1th frequency point on the characteristic curve to the a+Ath frequency point on the characteristic curve is recorded as the right frequency point sequence corresponding to the ath frequency point, where A is a positive integer; According to the ordinate value corresponding to each frequency point on the characteristic curve, the left frequency point sequence corresponding to each frequency point, and the right frequency point sequence corresponding to each frequency point, the repetition similarity degree corresponding to each frequency point on the characteristic curve is obtained; The horizontal coordinate values ​​of all frequency points whose repetition similarity is greater than or equal to a preset similarity threshold are recorded as the pre-selected electrical quantity; The method for obtaining the target power consumption sequence to be compressed includes: Performing region growing on the initial seed point to obtain various growing regions; Calculate the average power consumption corresponding to all characteristic points in each growth area and record it as the average power consumption corresponding to the corresponding growth area, and use the average power consumption corresponding to each growth area as the target power consumption corresponding to all characteristic points in the corresponding growth area; Obtaining an evaluation characteristic value corresponding to the target image according to the minimum circumscribed rectangle of each growth area; Determine whether the evaluation feature value is not less than a preset evaluation threshold value. If so, start from the upper left corner of the target image and perform a horizontal snake traversal on the feature points on the target image. Otherwise, start from the upper left corner of the target image and perform a vertical snake traversal on the feature points on the target image, and obtain a target feature point sequence in the order of traversal. A sequence constructed by the target power consumption corresponding to each characteristic point in the target characteristic point sequence is recorded as the target power consumption sequence to be compressed.

2. A concentrator with intelligent storage function as claimed in claim 1, characterized in that: The method for obtaining the degree of repetition similarity corresponding to each frequency point on the characteristic curve comprises: Recording a difference sequence of a slope sequence constructed by the slopes between two adjacent frequency points in the left frequency point sequence corresponding to each frequency point as a first difference sequence corresponding to the corresponding frequency point; Recording the difference sequence of the slope sequence constructed by the slopes between two adjacent frequency points in the right frequency point sequence corresponding to each frequency point as the second difference sequence corresponding to the corresponding frequency point; For the ath frequency point on the characteristic curve, the cumulative sum of all data squares in the first differential sequence corresponding to the ath frequency point is recorded as the first eigenvalue corresponding to the ath frequency point, and the cumulative sum of all data squares in the second differential sequence corresponding to the ath frequency point is recorded as the second eigenvalue corresponding to the ath frequency point; the sum of the first eigenvalue and the second eigenvalue is recorded as the comprehensive eigenvalue corresponding to the ath frequency point; The cumulative sum of the power consumption in the power consumption sequence corresponding to all users is recorded as the total power consumption; The ratio of the ordinate value of each frequency point to the total amount of electricity consumption is recorded as the proportion value of the corresponding frequency point. The proportion value of each frequency point is multiplied by the inverse of the comprehensive characteristic value corresponding to the corresponding frequency point and then normalized, and the value is recorded as the repetition similarity degree corresponding to the corresponding frequency point.

3. A concentrator with intelligent storage function as claimed in claim 1, characterized in that: The method for obtaining the longest growth path feature point sequence corresponding to each of the pre-selected feature points comprises: For any pre-selected feature point g: If in the eight neighborhoods of the pre-selected feature point g, the feature points with the same value of power consumption as that corresponding to g are feature point g1 and feature point g2, then the set constructed by g, g1, and g2 is recorded as the first set; If, in the eight neighborhoods of the feature point g2, there is no feature point whose power consumption value is equal to that of g2 and does not belong to the first set, and in the eight neighborhoods of the feature point g1, the feature points whose power consumption value is equal to that of g1 and do not belong to the first set are feature point g11 and feature point g12, then the set constructed by g, g1, g2, g11, and g12 is recorded as the second set; If, in the eight neighborhoods of the feature point g11, there is no feature point whose power consumption value is equal to that of g11 and does not belong to the second set, and in the eight neighborhoods of the feature point g12, the feature point whose power consumption value is equal to that of g12 and does not belong to the second set is the feature point g121, then the set constructed by g, g1, g2, g11, g12, and g121 is recorded as the third set; If in the eight neighborhoods of the feature point g121, there is no feature point whose value is equal to the power consumption corresponding to g121 and which does not belong to the third set, then the sequence constructed by the feature points g, g1, g12, and g121 is recorded as the longest growth path feature point sequence corresponding to the pre-selected feature point g, and the feature points in the longest growth feature point sequence corresponding to the pre-selected feature point g are all recorded as growth feature points.

4. A concentrator with intelligent storage function as claimed in claim 1, characterized in that: The method for obtaining the evaluation characteristic value corresponding to the target graph includes: For any growth region, the minimum enclosing rectangle L is: The four sides L1, L2, L3 and L4 of the minimum circumscribed rectangle L are obtained, wherein L1 and L3 are parallel, and L2 and L4 are parallel, L1 and L3 are both recorded as first characteristic sides, and L2 and L4 are both recorded as second characteristic sides; the angle between the first characteristic side and the horizontal direction is recorded as Q1, and the angle between the second characteristic side and the horizontal direction is recorded as Q2; Determine whether Q1 is not greater than Q2. If so, record the first characteristic side as the length of the minimum circumscribed rectangle L, and record the second characteristic side as the width of the minimum circumscribed rectangle L. Otherwise, record the first characteristic side as the width of the minimum circumscribed rectangle L, and record the second characteristic side as the length of the minimum circumscribed rectangle L. The ratio of the length to the width of the minimum circumscribed rectangle L is recorded as the initial evaluation value corresponding to the growth area; The ratio of the number of feature points located in the growth area to the area of ​​the minimum circumscribed rectangle L is recorded as the first credible factor of the initial evaluation value; for any feature point located in the growth area, the feature points belonging to the eight neighborhoods of the feature point and located in the growth area are all recorded as the target neighborhood feature points corresponding to the feature point, and the number of target neighborhood feature points corresponding to the feature point is recorded as the neighborhood quantity value corresponding to the feature point; the average of the neighborhood quantity values ​​corresponding to all feature points located in the growth area is recorded as the second credible factor of the initial evaluation value; the normalized value of the product of the first credible factor and the second credible factor is recorded as the target credible factor corresponding to the initial evaluation value; The product of the initial evaluation value and its corresponding target credibility factor is recorded as the target evaluation value corresponding to the growth area; the average of the calculated target evaluation values ​​corresponding to all growth areas is recorded as the evaluation characteristic value corresponding to the target map.

Citation Information

Patent Citations

  • Intelligent pattern matching method for textile fabric

    CN115311459A

  • Power consumption abnormality detection method, apparatus and terminal, and computer-readable storage medium

    WO2020006841A1