Method, device, electronic device and medium for identifying abnormal household change relationship
By acquiring data from the electricity consumption collection system, establishing a feature matrix and inputting it into the identification model, the problem of low efficiency in identification of household-to-change relationships in the existing technology is solved, fast and accurate abnormal identification is achieved, and costs are reduced.
Patent Information
- Application Number
- CN202110495567.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-05-07
AI Technical Summary
In the existing technology, the identification of household change relationships mainly relies on manual judgment, which results in high time consumption, high cost, and low efficiency.
By acquiring electricity consumption data and meter data from the electricity consumption collection system, establishing a feature matrix and inputting it into the pre-trained household-variation relationship abnormality identification model, we can quickly determine the abnormal relationship between user meters, meter boxes and the station area.
It realizes rapid abnormal identification of the power consumption relationship between the station area and the user meter, and the station area and the meter box, improves the identification efficiency and accuracy, and reduces the manpower and calculation costs.
Smart Images

Figure CN113297539B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of power grid data processing, and in particular to a method, device, electronic device and medium for identifying abnormal household-to-household relationship. Background Art
[0002] Accurate distribution network topology is the basis for refined management of power companies. As an important division for power management departments to finely manage low-voltage users, the substation refers to the power supply range or area of a transformer. With the rapid development of cities, some substations have temporary changes in lines, which make the meter box and substation relationship files not updated in time or record errors. Incorrect meter box and substation relationship will affect a large number of marketing businesses such as power outage notifications, substation line losses, equipment management, fault warranty, business expansion, etc. The main method for identifying meter box and substation relationship errors is manual on-site judgment or batch installation of hardware judgment.
[0003] The drawback of the existing solution is that each judgment needs to be done manually, which takes a long time and has high financial costs. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, device, electronic device and medium for identifying abnormal household change relationships.
[0005] In a first aspect, the present disclosure provides a method for identifying abnormal household change relationships, the method comprising:
[0006] Acquire at least one power consumption data and the electric meter data of the substation to which the power consumption data belongs from the power consumption collection system; wherein the power consumption data includes the user meter power consumption data and / or the meter box power consumption data;
[0007] Establishing a feature matrix according to the power consumption data and the electric meter data of the substation to which the power consumption data belongs;
[0008] The feature matrix is input into a pre-trained household change relationship anomaly recognition model, and based on the output of the household change relationship anomaly recognition model, the abnormal relationship between the user table and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs is determined.
[0009] Optionally, establishing a feature matrix according to the power consumption data and the electric meter data of the substation to which the power consumption data belongs includes:
[0010] Determine a first power line loss value and a second power line loss value according to the power consumption data and the meter data of the substation to which the power consumption data belongs; wherein the power consumption data includes power consumption data of at least two preset collection moments, the meter data of the substation to which the power consumption data belongs includes power consumption data of all user meters or power consumption data of meter boxes in the substation, the first power line loss value is determined according to at least one of the total meter data of the substation, the power consumption data of all user meters in the substation, and the power consumption data of all meter boxes in the substation, and the second power line loss value is determined according to the first power line loss value and the power consumption data;
[0011] Determine a characteristic sample unit according to the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power consumption line loss value, and the second power consumption line loss value;
[0012] A feature matrix is established according to the feature sample units.
[0013] Optionally, before inputting the feature matrix into a pre-trained household change relationship anomaly recognition model, the method further includes:
[0014] Select a target area from the candidate areas of the power consumption collection system, obtain the total meter data, meter box power consumption data and user meter power consumption data in the target area, and obtain user meter power consumption data and meter box power consumption data in adjacent areas of the target area;
[0015] Establishing a household-to-household relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meters in the target area, and the electricity consumption data of the user meters and the electricity consumption data of the meter box in the adjacent areas of the target area;
[0016] Among them, the household change relationship anomaly recognition model includes a first recognition model and / or a second recognition model.
[0017] Optionally, the establishing of a household-to-cell relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of user meters in the target area, and the electricity consumption data of user meters and the electricity consumption data of the meter box in an adjacent area of the target area comprises:
[0018] Determine a first user table data set according to the total table data of the target area and the fitting value of the user table power consumption data in the target area;
[0019] Select at least one user table power consumption data in the adjacent substation, and add it to the first user table data set; and determine the first user power consumption line loss value according to the total table data of the target substation and the first user table data set;
[0020] Select any user table from the first user table data set as a suspected user table, and remove the electricity usage data of the suspected user table from the first user table data set to obtain a second user table data set;
[0021] Determine at least one second user power line loss value according to the target area's total meter data and the second user table data set;
[0022] Establish at least one first feature sample unit according to the total meter data of the target area, the first user's power line loss value, the second user's power line loss value, and the suspected user meter power consumption data corresponding to the second user's power line loss value;
[0023] Determine a first sample label according to whether the suspected user table corresponding to the second user's power line loss value in the first feature sample unit belongs to a target station area or an adjacent station area;
[0024] A first data set is established based on the first feature sample unit and the first sample label to construct a first recognition model.
[0025] Optionally, the establishing of a household-to-cell relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of user meters in the target area, and the electricity consumption data of user meters and the electricity consumption data of the meter box in an adjacent area of the target area comprises:
[0026] Determine a first electric meter box electricity consumption data set according to the fitting values of the total meter data and the electric meter box electricity consumption data of the target substation;
[0027] Select at least one electric meter box electricity consumption data in the adjacent area, and add it to the first electric meter box electricity consumption data set; and determine the first electric meter box power consumption line loss value according to the total meter data of the target area and the first electric meter box electricity consumption data set;
[0028] Selecting any one electric meter box from the first electric meter box electricity usage data set as a suspected electric meter box, and removing the suspected electric meter box electricity usage data from the first electric meter box electricity usage data set to obtain a second electric meter box electricity usage data set;
[0029] Determine at least one second electric meter box power line loss value according to the total meter data of the target area and the second electric meter box power consumption data set;
[0030] Establish at least one second feature sample unit based on the total meter data of the target area, the first meter box power line loss value, the second meter box power line loss value, and the suspected meter box power consumption data corresponding to the second meter box power line loss value;
[0031] Determine a second sample label according to whether the suspected electric meter box corresponding to the electric line loss value of the second electric meter box in the second feature sample unit belongs to the target area or the adjacent area;
[0032] A second data set is established based on the second feature sample unit and the second sample label to construct a second recognition model.
[0033] Optionally, determining the abnormal relationship between the user table and the substation to which the power consumption data belongs according to the output of the household change relationship abnormality identification model includes:
[0034] Determine a first predicted probability that the relationship between the user table and the substation to which the power consumption data belongs is abnormal according to the output of the first recognition model;
[0035] If it is detected that the first predicted probability is less than a preset probability threshold, it is determined that there is no abnormality in the relationship between the user table and the transformer substation to which the power consumption data belongs;
[0036] Determining the abnormal relationship between the electric meter box and the substation to which the electric consumption data belongs according to the output of the household-to-household relationship abnormality recognition model includes:
[0037] Determine a second predicted probability that the relationship between the electric meter box and the substation to which the electric consumption data belongs is abnormal according to the output of the second recognition model;
[0038] If it is detected that the second predicted probability is less than the preset probability threshold, it is determined that there is no abnormality in the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs.
[0039] Optionally, the method further includes:
[0040] If it is detected that the first predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the user table and the transformer substation of the power consumption data is abnormal, and a user table relationship abnormality signal is generated;
[0041] If it is detected that the second predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs is abnormal, and an electric meter box relationship abnormality signal is generated.
[0042] In a second aspect, the present disclosure further provides a device for identifying abnormal household change relationships, including:
[0043] A data acquisition module, used to acquire at least one power consumption data and the electric meter data of the substation to which the power consumption data belongs from the power consumption collection system; wherein the power consumption data includes the user meter power consumption data and / or the meter box power consumption data;
[0044] A feature matrix building module, used to build a feature matrix according to the power consumption data and the electric meter data of the substation to which the power consumption data belongs;
[0045] The abnormal relationship determination module is used to input the feature matrix into a pre-trained household change relationship abnormality recognition model, and determine the abnormal relationship between the user table and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs according to the output of the household change relationship abnormality recognition model.
[0046] Optionally, a feature matrix building module is specifically used to:
[0047] Determine a first power line loss value and a second power line loss value according to the power consumption data and the meter data of the substation to which the power consumption data belongs; wherein the power consumption data includes power consumption data of at least two preset collection moments, the meter data of the substation to which the power consumption data belongs includes power consumption data of all user meters or power consumption data of meter boxes in the substation, the first power line loss value is determined according to at least one of the total meter data of the substation, the power consumption data of all user meters in the substation, and the power consumption data of all meter boxes in the substation, and the second power line loss value is determined according to the first power line loss value and the power consumption data;
[0048] Determine a characteristic sample unit according to the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power consumption line loss value, and the second power consumption line loss value;
[0049] A feature matrix is established according to the feature sample units.
[0050] Optionally, it also includes: a model building module;
[0051] The data acquisition module is further used to select a target area from the candidate areas of the power consumption collection system, obtain the total meter data, the electricity consumption data of the meter box and the electricity consumption data of the user meters in the target area, and obtain the electricity consumption data of the user meters and the electricity consumption data of the meter boxes in the adjacent areas of the target area;
[0052] A model building module, used to build a household-to-cell relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, and the electricity consumption data of the user meter in the adjacent area of the target area and the electricity consumption data of the meter box;
[0053] Among them, the household change relationship anomaly recognition model includes a first recognition model and / or a second recognition model.
[0054] Optional, model building module, specifically for:
[0055] Determine a first user table data set according to the total table data of the target area and the fitting value of the user table power consumption data in the target area;
[0056] Select at least one user table power consumption data in the adjacent substation, and add it to the first user table data set; and determine the first user power consumption line loss value according to the total table data of the target substation and the first user table data set;
[0057] Select any user table from the first user table data set as a suspected user table, and remove the electricity usage data of the suspected user table from the first user table data set to obtain a second user table data set;
[0058] Determine at least one second user power line loss value according to the target area's total meter data and the second user table data set;
[0059] Establish at least one first feature sample unit according to the total meter data of the target area, the first user's power line loss value, the second user's power line loss value, and the suspected user meter power consumption data corresponding to the second user's power line loss value;
[0060] Determine a first sample label according to whether the suspected user table corresponding to the second user's power line loss value in the first feature sample unit belongs to a target station area or an adjacent station area;
[0061] A first data set is established based on the first feature sample unit and the first sample label to construct a first recognition model.
[0062] Optional, model building module, specifically for:
[0063] Determine a first electric meter box electricity consumption data set according to the fitting values of the total meter data and the electric meter box electricity consumption data of the target substation;
[0064] Select at least one electric meter box electricity consumption data in the adjacent area, and add it to the first electric meter box electricity consumption data set; and determine the first electric meter box power consumption line loss value according to the total meter data of the target area and the first electric meter box electricity consumption data set;
[0065] Selecting any one electric meter box from the first electric meter box electricity usage data set as a suspected electric meter box, and removing the suspected electric meter box electricity usage data from the first electric meter box electricity usage data set to obtain a second electric meter box electricity usage data set;
[0066] Determine at least one second electric meter box power consumption line loss value according to the total meter data of the target area and the second electric meter box power consumption data set;
[0067] Establish at least one second feature sample unit based on the total meter data of the target area, the first meter box power line loss value, the second meter box power line loss value, and the suspected meter box power consumption data corresponding to the second meter box power line loss value;
[0068] Determine a second sample label according to whether the suspected electric meter box corresponding to the electric line loss value of the second electric meter box in the second feature sample unit belongs to the target area or the adjacent area;
[0069] A second data set is established based on the second feature sample unit and the second sample label to construct a second recognition model.
[0070] Optionally, the abnormal relationship determination module is specifically used to:
[0071] Determine a first predicted probability that the relationship between the user table and the substation to which the power consumption data belongs is abnormal according to the output of the first recognition model;
[0072] If it is detected that the first predicted probability is less than a preset probability threshold, it is determined that there is no abnormality in the relationship between the user table and the transformer substation to which the power consumption data belongs;
[0073] The abnormal relationship determination module is specifically used for:
[0074] Determine a second predicted probability that the relationship between the electric meter box and the substation to which the electric consumption data belongs is abnormal according to the output of the second recognition model;
[0075] If it is detected that the second predicted probability is less than the preset probability threshold, it is determined that there is no abnormality in the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs.
[0076] Optionally, also include:
[0077] An abnormal signal generating module, configured to determine that the relationship between the user table and the transformer substation to which the power consumption data belongs is abnormal, and generate a user table relationship abnormality signal if it is detected that the first predicted probability is greater than or equal to the preset probability threshold;
[0078] The abnormal signal generating module is also used to determine that the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs is abnormal, and generate an electric meter box relationship abnormal signal if it is detected that the second predicted probability is greater than or equal to the preset probability threshold.
[0079] In a third aspect, the present disclosure further provides an electronic device, the electronic device comprising:
[0080] one or more processors;
[0081] a storage device for storing one or more programs,
[0082] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the household change relationship anomaly identification methods described in the embodiments of the present invention.
[0083] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any one of the household change relationship anomaly identification methods described in the embodiments of the present invention.
[0084] Compared with the prior art, the technical solution provided by the disclosed embodiment has the following advantages: the acquired data can be processed first to obtain a feature matrix, and then the feature matrix can be input into a pre-trained recognition model for rapid judgment, thereby efficiently and quickly realizing abnormal judgment of the power consumption relationship between the substation and the user meter, and between the substation and the meter box. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0086] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0087] Figure 1 It is a flowchart of a method for identifying abnormal household change relationships provided by an embodiment of the present disclosure;
[0088] Figure 2 It is a flowchart of another method for identifying abnormal household change relationships provided by an embodiment of the present disclosure;
[0089] Figure 3 It is a flowchart of another method for identifying abnormal household change relationships provided by an embodiment of the present disclosure;
[0090] Figure 4 It is a structural schematic diagram of a household change relationship abnormality identification device provided by an embodiment of the present disclosure;
[0091] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0092] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0093] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0094] Figure 1 A flowchart of a method for identifying abnormal household change relationships provided in an embodiment of the present disclosure. This embodiment can be applied to the situation of quickly distinguishing the electricity consumption relationship between a substation and a user meter, or between a substation and an electric meter box. The method of this embodiment can be executed by a device for identifying abnormal household change relationships, which can be implemented in hardware and / or software and can be configured in an electronic device. The method for identifying abnormal household change relationships described in any embodiment of the present application can be implemented. Figure 1 As shown, the method specifically includes the following:
[0095] S110, acquiring at least one electricity consumption data and the electric meter data of the substation to which the electricity consumption data belongs from the electricity consumption collection system; wherein the electricity consumption data includes the user meter electricity consumption data and / or the meter box electricity consumption data.
[0096] In this embodiment, the storage table in the power consumption collection system records the daily user meter power consumption data and meter box power consumption data, so that the data to be used can be directly and quickly found in the subsequent use. Among them, each data stored in the storage table has a corresponding identifier and a usage date. For example, a user meter power consumption data corresponds to a user identifier and the usage date of the data.
[0097] A substation is both a physical and a logical concept. Physically, a substation has a total meter, under which multiple user meters are connected. The total meter power consumption is equal to the sum of the power consumption of all the user meters connected to it and the line loss power. Multiple user meters in a substation are divided into multiple groups according to the region, and each group is installed in a meter box. There is no real meter in the meter box to aggregate all the user meters in the meter box, but the power consumption of all user meters in the meter box can be accumulated as the meter box power consumption for easy management. A substation may contain multiple user meters, a substation may contain one or more meter boxes, and a meter box may also contain multiple user meters.
[0098] S120: Establish a feature matrix based on the electricity consumption data and the meter data of the substation to which the electricity consumption data belongs.
[0099] In this embodiment, the storage format of electricity consumption data and the meter data of the substation to which the electricity consumption data belongs is converted into a form that can be effectively connected with the household transformer relationship anomaly recognition model, so that the user transformer relationship anomaly recognition model can be used to effectively identify whether the relationship between the user meter (or meter box) and the household transformer of the substation to which the electricity consumption data belongs is abnormal.
[0100] S130, inputting the feature matrix into a pre-trained household change relationship anomaly recognition model, and determining the abnormal relationship between the user meter and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs, based on the output of the household change relationship anomaly recognition model.
[0101] Since the relationship between the user table or meter box and its corresponding substation (i.e., the household-to-substation relationship) stored in the power consumption collection system is manually entered in advance, after a period of time, the user table connection substation may change, and these stored information cannot be updated in time, which will cause the household-to-substation relationship recorded in the power consumption collection system to be incorrect, thereby affecting the subsequent power consumption analysis; therefore, it is very important to make effective judgments on the household-to-substation relationship at regular intervals. In the prior art, when identifying abnormal household-to-substation relationships, it mainly relies on manual unified collection of the data to be identified, and uses the multivariate linear regression method to model each substation one by one to select abnormal household-to-substation relationships; since this method requires a lot of manpower and calculations when implemented, it has the problems of slow calculation speed and low efficiency.
[0102] Therefore, this embodiment pre-establishes a household-to-household relationship anomaly recognition model that can quickly identify electricity consumption relationships, so as to solve the problem in the prior art that a large amount of manpower and computational recognition is required, resulting in high computational complexity and low efficiency, thereby effectively improving recognition efficiency and accuracy.
[0103] In this embodiment, when it is detected that the ownership relationship between the electricity consumption data and the meter data of the substation to which it belongs is wrong, it is considered that the ownership relationship between the user meter or meter box and the substation is abnormal, and there is an abnormal household change relationship.
[0104] The disclosed embodiment obtains at least one electricity consumption data and the meter data of the substation to which the electricity consumption data belongs from the electricity consumption collection system; wherein the electricity consumption data includes the electricity consumption data of the user table and / or the electricity consumption data of the meter box; a feature matrix is established according to the electricity consumption data and the meter data of the substation to which the electricity consumption data belongs; the feature matrix is input into a pre-trained household-to-substation relationship anomaly recognition model, and according to the output of the household-to-substation relationship anomaly recognition model, the abnormal relationship between the user table and the substation to which the electricity consumption data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity consumption data belongs is determined. This embodiment can first process the acquired data to obtain a feature matrix, and then input the feature matrix into a pre-trained recognition model for rapid judgment, thereby efficiently and rapidly realizing the abnormal discrimination of the electricity consumption relationship between the substation and the user table, and between the substation and the meter box.
[0105] Figure 2 1 is a flow chart of another method for identifying abnormal household change relationships provided by an embodiment of the present disclosure. This embodiment is further expanded and optimized on the basis of the above embodiment, and can be combined with any optional solution in the above technical solution. Figure 2 As shown, the method includes:
[0106] S210. Acquire at least one electricity consumption data and the electric meter data of the substation to which the electricity consumption data belongs from the electricity consumption collection system; wherein the electricity consumption data includes the user meter electricity consumption data and / or the meter box electricity consumption data.
[0107] S220: Determine a first power line loss value and a second power line loss value according to the power consumption data and the power meter data of the substation to which the power consumption data belongs.
[0108] Among them, the electricity consumption data includes electricity consumption data of at least two preset collection times, the meter data of the substation to which the electricity consumption data belongs includes the electricity consumption data of all user meters or the electricity consumption data of meter boxes in the substation, the first line loss value is determined based on at least one of the total meter data of the substation, the electricity consumption data of all user meters in the substation and the electricity consumption data of all meter boxes in the substation, and the second line loss value is determined based on the first line loss value and the electricity consumption data.
[0109] In this embodiment, theoretically, the sum of the total meter data of the substation area and the electricity consumption data of the user meters connected to it and registered should be equal. In fact, due to the inevitable loss of transmission power lines and other power grid equipment during the transmission process, the total meter data of the substation area is always inconsistent with the sum of the point data of all the user meters connected to it; considering the factors such as the change of substation topology, the access of unregistered user meters, and the migration of registered user meters, this inconsistency effect will be more obvious. This inconsistency effect is collectively referred to as "power consumption line loss value" when modeling.
[0110] S230, determining a characteristic sample unit according to the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power consumption line loss value and the second power consumption line loss value; and establishing a characteristic matrix according to the characteristic sample unit.
[0111] In this embodiment, the total meter data of the substation to which the electricity consumption data belongs, the electricity consumption data, the first power consumption line loss value and the second power consumption line loss value are used as feature sample units, and then the feature sample units are arranged in chronological order according to different collection moments of the electricity consumption data, and the feature sample units are organized in the form of a feature matrix; for example, feature sample units corresponding to N consecutive (for example, N=60) electricity consumption data collection moments are selected and arranged in sequence to establish a feature matrix.
[0112] Exemplarily, the characteristic matrix may be Z rows and 4 columns, where Z may be obtained by selecting different collection time periods in the power consumption collection system; the characteristic matrix may be seen as follows.
[0113]
[0114] Exemplarily, the first column in the feature matrix A may be electricity consumption data; the second column may be the total table data of the substation to which the electricity consumption data belongs; the third column may be the first power consumption line loss value; and the fourth column may be the second power consumption line loss value.
[0115] This embodiment integrates the power loss value into the feature matrix, which can make the established feature matrix more realistically reflect the power consumption relationship between the user meter and the substation total meter, thereby effectively improving the accuracy of the input parameters of the household-to-substation relationship anomaly identification model.
[0116] S240, inputting the feature matrix into a pre-trained household change relationship anomaly recognition model, and determining the abnormal relationship between the user meter and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs, based on the output of the household change relationship anomaly recognition model.
[0117] Figure 3 1 is a flow chart of another method for identifying abnormal household change relationships provided by the embodiment of the present disclosure. This embodiment is further expanded and optimized on the basis of the above embodiment, and can be combined with any optional solution in the above technical solution. Figure 3 As shown, the method includes:
[0118] S310, acquiring at least one electricity consumption data and the electric meter data of the substation to which the electricity consumption data belongs from the electricity consumption collection system; wherein the electricity consumption data includes the user meter electricity consumption data and / or the meter box electricity consumption data.
[0119] S320: Establish a feature matrix based on the electricity consumption data and the meter data of the substation to which the electricity consumption data belongs.
[0120] S330, selecting a target area from candidate areas of the electricity consumption collection system, obtaining total meter data, electricity consumption data of the meter box and user meter electricity consumption data in the target area, and obtaining user meter electricity consumption data and electricity consumption data of the meter box in adjacent areas of the target area.
[0121] In this embodiment, the power consumption collection system includes multiple storage tables, and the storage tables record the corresponding relationships between different data; illustratively, the power consumption data can be obtained according to the following Table 1.
[0122] Table 1 Schematic table of electricity consumption data
[0123]
[0124] In Table 1, the electricity consumption data is arranged by day, and the total meter data of the substation and the user meter electricity consumption data correspond to the readings of the two meters on that day; the meter categories include user meters (corresponding to the value 2) and total meters of the substation (corresponding to the value 3); if the substation ID and the user meter ID appear in a row of data, it means that the user meter is connected to a meter box in this substation, and there is a corresponding relationship.
[0125] Table 2 below is a schematic diagram of the correspondence between the substation area, meter box and user meter.
[0126] Table 2 Schematic diagram of the correspondence between the substation area, meter box and user meter
[0127] Area Sign User table ID Meter box logo 1989231 187519496 1641229572 1989231 2773199146 1641229572 1989231 187519127 1641229571 1989231 187521760 1641229573 1989231 187519115 1641229575 … … …
[0128] If you want to calculate the electricity consumption data of a certain meter box, you can first filter out all the user table identifiers connected to the meter box corresponding to a certain identifier in Table 2, then use these user table identifiers to obtain the corresponding user table electricity consumption data in Table 1, and then accumulate them to obtain the electricity consumption data of the meter box.
[0129] Obtain the adjacent relationship data of the substation area, including obtaining the data table of the substation area and the adjacent substation area, the data table is shown in Table 3 below.
[0130] Table 3 Schematic diagram of adjacent relationships between substations
[0131] Area Sign Adjacent area 1 Adjacent area 2 Adjacent area 3 … 418 231 112 114 … 419 231 / / … 543 / / / …
[0132] In Table 3 above, each area may have 0, 1, 2 or more adjacent areas; where " / " indicates that the field is empty. If all adjacent area identifiers are " / ", it means that the area has no adjacent areas (for example Figure 3 The middle area is marked as the area corresponding to 543).
[0133] Specifically, according to the adjacent relationship of the substations in Table 3, the substation with the most adjacent substations can be selected as the target substation, and then at least one adjacent substation can be selected from the target substation as the adjacent substation of the target substation.
[0134] S340. Establish a household-change relationship anomaly recognition model based on at least one of the target area's total meter data, meter box electricity usage data, the target area's user meter electricity usage data, and the target area's adjacent areas' user meter electricity usage data and meter box electricity usage data; wherein the household-change relationship anomaly recognition model includes a first recognition model.
[0135] The abnormal household change relationship recognition model may include a first recognition model and / or a second recognition model. The abnormal household change relationship recognition model in this embodiment can effectively identify the corresponding relationship between the user meter (or meter box) and the substation to which it belongs, so as to quickly determine whether the user meter (or meter box) is abnormal.
[0136] In this embodiment, optionally, a household-to-household relationship anomaly recognition model is established based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, the electricity consumption data of the user meter in the adjacent area of the target area, and the electricity consumption data of the meter box, including:
[0137] Determine a first user table data set according to the total table data of the target area and the fitting value of the user table power consumption data in the target area;
[0138] Select at least one user table power consumption data in the adjacent substation area and add it to the first user table data set; and determine the first user power consumption line loss value according to the total table data of the target substation area and the first user table data set;
[0139] Select any user table from the first user table data set as a suspected user table, and remove the electricity usage data of the suspected user table from the first user table data set to obtain a second user table data set;
[0140] Determine at least one second user power line loss value based on the target area's total meter data and the second user table data set;
[0141] Establish at least one first feature sample unit based on the total meter data of the target area, the first user's power line loss value, the second user's power line loss value, and the suspected user meter power consumption data corresponding to the second user's power line loss value;
[0142] Determine the first sample label according to whether the suspected user table corresponding to the second user's power line loss value in the first feature sample unit belongs to the target substation area or the adjacent substation area;
[0143] A first data set is established according to the first feature sample unit and the first sample label to construct a first recognition model.
[0144] Specifically, the total meter data of the target substation on a certain day and the electricity consumption data of all N user meters in the target substation on that day are obtained; then, a linear regression or generalized linear regression algorithm is used to fit the electricity consumption data of the meter box as an independent variable and the total meter data of the target substation as a dependent variable to obtain the fitting coefficient of each independent variable. The regression model is shown as follows (1):
[0145] M=β0+β1Y1+β2Y2+…+β N Y N (1)
[0146] Among them, M represents the total meter reading of the area on a certain day, Y1, Y2, ..., Y N Represents the electricity consumption data of N users, β1, β2, ..., β N It represents the fitting coefficient of N independent variables, and β0 is the intercept of the model.
[0147] If the fitting coefficient of an independent variable is between 0.8 and 1.2, the user table electricity consumption data corresponding to the independent variable is added to the substation user table data set.
[0148] Afterwards, for the target area, one or more user table power consumption data is selected from one of its adjacent areas and added to the area user table data set. Optionally, multiple user table power consumption data can also be selected from multiple adjacent areas and added to the area user table data set.
[0149] Further, when calculating the power loss value of the first user and the power loss value of the second user, the following example can be referred to; set the time window length to T, select the starting date Date, obtain the total meter data of the target area in the time window after the starting date, the power consumption data of a certain user table in the area, the power loss value of the first user and the power loss value of the second user. For example, assuming that the area user table data set contains 30 user tables of the target area and 2 user tables of the adjacent area (the data set contains a total of 32 user tables corresponding to the power consumption data), we can know exactly whether each user table is from the target area or the adjacent area of the target area. Select the starting date as Date = 2019 / 12 / 1, the window T = 60, for a certain user table of the target area, according to the total meter data of the target area on 2019 / 12 / 1 and the other 31 user table data, the power loss value (B) of the first user and the power loss value (C) of the second user of the user table on that day can be calculated respectively, and the calculation method is the following formula (2) and formula (3).
[0150]
[0151] In formula (1), is the first user power loss value of the lth user meter on the jth day, = 1, 2, ..., 32, which is numerically equivalent to the line loss value calculated by assuming that all user meters are connected to the total meter of the target area, M j It is the total meter data of the target area on that day; The j-th day electricity consumption data of the ith user table.
[0152]
[0153] In formula (2), is the line loss value of the second user in the lth user table on the jth day, M j It is the total meter data of the target area on that day; is the electricity consumption data of the i-th user table on the j-th day, is the electricity consumption data of the lth user table on the jth day, l = 1, 2, ..., 32. It can be seen that It is the line loss value calculated by using the data of the target area master meter and the power consumption data of the remaining user meters in the area, assuming that the lth user meter is not connected to the target area master meter.
[0154] It can be seen from formula (2) and formula (3) that the line loss value of the second user in a certain user table can also be calculated based on the line loss value of the first user and the corresponding user power consumption data, that is:
[0155]
[0156] In this way, 32 samples generated by the 60-day power consumption and loss data of the target area starting from 2019 / 12 / 1 can be obtained. Each sample is a matrix of T (T=60) rows and 4 columns, which describes the values of a user table and the total table of the area and related line losses within 60 days. For example, the feature matrix corresponding to the first sample generated by the first user table is as follows:
[0157]
[0158] Each of the 32 user tables in the target area can generate a sample using the electricity consumption data from December 1, 2019 and the 59 days thereafter, for a total of 32 samples. The sample generated by the lth user table is in the following format:
[0159]
[0160] By moving the time window and changing the starting date to 2019 / 12 / 2, a new sample of the target area can be generated. According to the given data scale, a data set can be generated based on the data of the target area and the adjacent areas. Each data in the data set is a matrix with T rows and 4 columns.
[0161] Finally, the meter data corresponding to the target area is labeled "0", and the data of the adjacent area is labeled "1". For example, for the feature matrix generated by the l-th user table, if the l-th user table belongs to the target area, this feature matrix is labeled "0" as a negative sample; if the l-th user table belongs to the adjacent area, this feature matrix is labeled "1" as a positive sample. Finally, the first data set is obtained using all positive and negative samples.
[0162] Furthermore, the first data set can be divided into a training set and a validation set. For example, 80% of the data in the first data set is used as a training set, and the remaining 20% is used as a validation set. The LSTM neural network model is trained using the training set, and the prediction effect of the model is verified using the validation set. If the prediction accuracy of the validation set exceeds the accuracy threshold (for example, 0.8), the initial network model can be confirmed as the first recognition model. In addition, there may be other criteria for determining whether the model is qualified. For example, if the AUC value of the model on the validation set is approximately 0.75, the model is considered to be a qualified model and is used as the first recognition model. This embodiment can accurately obtain the first recognition model to predict whether the household change relationship between the user table and the substation to which it belongs is abnormal.
[0163] In this embodiment, optionally, a household-to-household relationship anomaly recognition model is established based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, the electricity consumption data of the user meter in the adjacent area of the target area, and the electricity consumption data of the meter box, including:
[0164] Determine a first electric meter box electricity consumption data set according to the fitting values of the total meter data and the electric meter box electricity consumption data of the target substation;
[0165] Select at least one electric meter box electricity consumption data in the adjacent area and add it to the first electric meter box electricity consumption data set; and determine the first electric meter box power consumption line loss value according to the total meter data of the target area and the first electric meter box electricity consumption data set;
[0166] Selecting any meter box from the first meter box electricity usage data set as a suspected meter box, and removing the suspected meter box electricity usage data from the first meter box electricity usage data set to obtain a second meter box electricity usage data set;
[0167] Determine at least one second electric meter box power consumption line loss value according to the total meter data of the target area and the second electric meter box power consumption data set;
[0168] Establish at least one second feature sample unit based on the total meter data of the target area, the first meter box power line loss value, the second meter box power line loss value, and the suspected meter box power consumption data corresponding to the second meter box power line loss value;
[0169] Determine the second sample label according to whether the suspected electric meter box corresponding to the electric line loss value of the second electric meter box in the second feature sample unit belongs to the target area or the adjacent area;
[0170] A second data set is established according to the second feature sample unit and the second sample label to construct a second recognition model.
[0171] Among them, according to the fitting value of the total meter data and the electricity consumption data of the meter box in the target substation, the electricity consumption data set of the meter box in the substation is determined, and the following example can be referred to.
[0172] Obtain the total meter data of the target substation on a certain day, as well as the electricity consumption data of all N1 user meters in the target substation on that day; and calculate the electricity consumption data of N meter boxes in the target substation based on the electricity consumption data of all N1 user meters and the registered attribution relationship; then, use linear regression or generalized linear regression algorithm, take the electricity consumption data of the meter box as the independent variable, take the total meter data of the target substation as the dependent variable, fit the multivariate linear regression model, and obtain the fitting coefficient of each independent variable; if the fitting coefficient of an independent variable is between 0.8 and 1.2, then add the electricity consumption data of the meter box corresponding to the independent variable to the electricity consumption data set of the substation meter box.
[0173] For a certain adjacent area of the target area, the electricity consumption data set of the meter boxes of the adjacent area can be obtained according to the calculation method for the target area and its meter boxes. Each meter box in the set can be verified by the multivariate linear regression algorithm to confirm that it has a connection with the adjacent area. Using a random sampling algorithm, one or more meter box electricity consumption data are extracted from the electricity consumption data set of the meter boxes of the adjacent area and added to the electricity consumption data set of the meter boxes of the target area.
[0174] In this embodiment, before calculating the fitting value, it can also include: processing the outlier values and missing values of the total meter data of the target substation; before calculating the electricity consumption data of the meter box, it can also include: processing the outlier values of the user meter electricity consumption data; before fitting the multivariate linear regression model, it can also include: performing variance analysis on the electricity consumption data of the meter box to eliminate abnormal electricity consumption data of the meter box.
[0175] Among them, the total table data of the target substation is processed for outliers and missing values, which may specifically include: for the total table data of the target substation at all times in the storage table, the median Median1 of all the total table data is calculated according to the data collection time, and then the total table data of each target substation is subtracted from Median1 and then the absolute value is taken to obtain a new column of data, the median of the new column is calculated to obtain Median2, MAD=1.4826*Median2, and the threshold is set to Median1-3*MAD to delete the data that is not higher than the threshold in the total table data of the target substation on all dates.
[0176] The outlier processing of the user meter power consumption data may include: obtaining the user meter list of a certain area, and then counting the missing power consumption data of a certain user meter within a certain time period, that is, the number of user meter power data that is 0, empty or not reported; counting the median Median and standard deviation Std of the power consumption missing of all user meters in a certain area. Set the outlier threshold to Median+3*Std, and delete the user meter power consumption data with power consumption data missing exceeding the outlier threshold.
[0177] Performing variance analysis on the electricity consumption data of the meter box may specifically include: calculating the variance of the electricity consumption data of the meter box obtained by adding the electricity consumption data of the user table according to time; illustratively, obtaining the data of each day from 2019 / 12 / 1 to 2020 / 6 / 30 of the meter box identified as ID1, and calculating the variance of these data; if the variance is less than 1, it is considered that the user table contained in the meter box has almost no electricity consumption, and introducing it as an independent variable into the multiple linear regression model will cause the model to be unstable, so the electricity consumption data of this meter box is eliminated to ensure the stable construction of the multiple linear regression model.
[0178] Furthermore, when calculating the power loss value of the first meter box and the power loss value of the second meter box, refer to the following example; set the time window length to T, select the starting date Date, and obtain the total meter data of the target substation for each day in the time window after the starting date, the power consumption data of a certain meter box in the substation, the power loss value of the first meter box, and the power loss value of the second meter box. For example, assuming that the substation meter box data set contains 30 meter boxes in the target substation and 2 meter boxes in the adjacent substation (the data set contains a total of 32 meter boxes corresponding to the power consumption data), we can know exactly whether each meter box is from the target substation or the adjacent substation of the target substation. Select the starting date as Date = 2019 / 12 / 1, window T = 60, for a certain meter box in the target area, according to the total meter data of the target area on 2019 / 12 / 1 and the data of the other 31 meter boxes, the first meter box wire loss value (B) and the second meter box wire loss value (C) of the meter box on that day can be calculated respectively, and the calculation method is the following formula (5) and formula (6).
[0179]
[0180] In formula (5), is the line loss value of the first electric meter box on the jth day of the lth electric meter box, l = 1, 2, ..., 32, which is numerically equivalent to the line loss value calculated by assuming that all electric meter boxes are connected to the total meter of the target area, M j It is the total meter data of the target area on that day; is the electricity consumption data of the i-th meter box on the j-th day.
[0181]
[0182] In formula (6), is the wire loss value of the second electric meter box of the lth electric meter box on the jth day, M j It is the total meter data of the target area on that day; is the electricity consumption data of the i-th meter box on the jth day, is the electricity consumption data of the lth meter box on the jth day, l = 1, 2, ..., 32. It can be seen that It is the line loss value calculated by using the data of the target area master meter and the electricity consumption data of the remaining meter boxes in the area, assuming that the lth meter box is not connected to the target area master meter.
[0183] It can be seen from formula (5) and formula (6) that the wire loss value of the second meter box for a certain meter box can also be calculated based on the wire loss value of the first meter box and the corresponding meter box electricity consumption data, that is:
[0184]
[0185] In this way, 32 samples generated by the 60-day power consumption and loss data of the target area starting from 2019 / 12 / 1 can be obtained. Each sample is a matrix of T (T=60) rows and 4 columns, which describes the values of an electric meter box and the total meter of the area and related line losses within 60 days. For example, the feature matrix corresponding to the first sample generated by the first electric meter box is as follows:
[0186]
[0187] Each of the 32 meter boxes in the target area can generate a sample using the electricity consumption data from December 1, 2019 and the 59 days thereafter, for a total of 32 samples. The sample generated by the lth meter box is in the following format:
[0188]
[0189] By moving the time window and changing the starting date to 2019 / 12 / 2, a new sample of the target area can be generated. According to the given data scale, a data set can be generated based on the data of the target area and the adjacent areas. Each data in the data set is a matrix with T rows and 4 columns.
[0190] Finally, the data of the meter box corresponding to the target area is labeled "0", and the data of the adjacent area is labeled "1". For example, for the feature matrix generated by the l-th meter box, if the l-th meter box belongs to the target area, this feature matrix is labeled "0" as a negative sample; if the l-th meter box belongs to the adjacent area, this feature matrix is labeled "1" as a positive sample. Finally, all positive and negative samples are used to obtain the second data set.
[0191] Furthermore, the second data set can be divided into a training set and a validation set. For example, 80% of the data in the second data set is used as a training set, and the remaining 20% is used as a validation set. The LSTM neural network model is trained using the training set, and the prediction effect of the model is verified using the validation set. If the prediction accuracy of the validation set exceeds the accuracy threshold (for example, 0.8), the initial network model can be confirmed as the second recognition model. In addition, there may be other criteria for determining whether the model is qualified. For example, if the AUC value of the model on the validation set is approximately 0.75, the model is considered to be a qualified model and is used as the first recognition model. This embodiment can obtain a second recognition model for identifying abnormal household change relationships between the meter box and the total meter in the substation area.
[0192] S350, determining a first predicted probability that the relationship between the user table and the substation to which the electricity consumption data belongs is abnormal based on the output of the first recognition model; if it is detected that the first predicted probability is less than a preset probability threshold, determining that there is no abnormality in the relationship between the user table and the substation to which the electricity consumption data belongs.
[0193] In this embodiment, optionally, determining the abnormal relationship between the electric meter box and the substation to which the electricity consumption data belongs according to the output of the household-to-substation abnormality recognition model includes:
[0194] Determine a second prediction probability that the relationship between the electric meter box and the substation to which the electric consumption data belongs is abnormal according to the output of the second recognition model;
[0195] If it is detected that the second predicted probability is less than the preset probability threshold, it is determined that there is no abnormality in the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs.
[0196] Among them, the household change relationship anomaly identification model includes a first identification model and a second identification model; wherein, when the feature matrix is constructed based on the user table electricity consumption data, the feature matrix can be input into the first identification model, and the first identification model will output a probability, which represents the predicted probability of the relationship between the user table and the substation to which it belongs; correspondingly, when the feature matrix is constructed based on the meter box electricity consumption data, the feature matrix can be input into the second identification model, and the second identification model will output a probability, which represents the predicted probability of the relationship between the meter box and the substation to which it belongs.
[0197] In this embodiment, the prediction probability threshold may be a pre-set prediction value, and the prediction value may be given based on an evaluation by a detector of the electricity consumption data. For example, the prediction probability threshold may be set to 0.75.
[0198] When the predicted probability is less than the predicted probability threshold, it can be considered that the relationship between the provider of the electricity consumption data (user meter or meter box) and the substation is correct, thereby effectively realizing the rapid identification of electricity consumption relationships in the electricity consumption collection system.
[0199] In this embodiment, optionally, the method of this embodiment further includes:
[0200] If it is detected that the first predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the user table and the transformer of the area to which the power consumption data belongs is abnormal, and a user table relationship abnormality signal is generated;
[0201] If it is detected that the second predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs is abnormal, and an electric meter box relationship abnormality signal is generated.
[0202] In this embodiment, when it is detected that the predicted probability is greater than or equal to the predicted probability threshold, it can be considered that there is an abnormality in the relationship between the entity providing the electricity consumption data (user meter or meter box) and the substation, and manual detection is required to confirm the correct relationship between the two; an electricity consumption relationship abnormality signal is generated based on the output result of the user-meter relationship abnormality identification model, so that relevant personnel can discover the problem in time and deal with it in time.
[0203] Specifically, the abnormal power consumption relationship signal can be a communication of information to pre-associated detection personnel, such as sending text messages, emails, and system prompts.
[0204] Figure 4 : is a schematic diagram of a structure of a household change relationship abnormality identification device provided by an embodiment of the present disclosure; the device is configured in an electronic device and can implement the household change relationship abnormality identification method described in any embodiment of the present application. The device specifically includes the following:
[0205] The data acquisition module 410 is used to acquire at least one power consumption data and the electric meter data of the substation to which the power consumption data belongs from the power consumption collection system; wherein the power consumption data includes the user meter power consumption data and / or the meter box power consumption data;
[0206] A feature matrix building module 420, configured to build a feature matrix according to the power consumption data and the meter data of the substation to which the power consumption data belongs;
[0207] The abnormal relationship determination module 430 is used to input the feature matrix into a pre-trained household change relationship abnormality recognition model, and determine the abnormal relationship between the user table and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs based on the output of the household change relationship abnormality recognition model.
[0208] In this embodiment, optionally, the feature matrix establishing module 420 is specifically used to:
[0209] Determine a first power line loss value and a second power line loss value according to the power consumption data and the meter data of the substation to which the power consumption data belongs; wherein the power consumption data includes power consumption data of at least two preset collection moments, the meter data of the substation to which the power consumption data belongs includes power consumption data of all user meters or power consumption data of meter boxes in the substation, the first power line loss value is determined according to at least one of the total meter data of the substation, the power consumption data of all user meters in the substation, and the power consumption data of all meter boxes in the substation, and the second power line loss value is determined according to the first power line loss value and the power consumption data;
[0210] Determine a characteristic sample unit according to the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power consumption line loss value, and the second power consumption line loss value;
[0211] A feature matrix is established according to the feature sample units.
[0212] In this embodiment, optionally, it further includes: a model building module;
[0213] The data acquisition module 410 is further used to select a target area from the candidate areas of the power consumption collection system, obtain the total meter data, the meter box power consumption data and the user meter power consumption data in the target area, and obtain the user meter power consumption data and the meter box power consumption data in the adjacent areas of the target area;
[0214] A model building module, used to build a household-to-cell relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, and the electricity consumption data of the user meter in the adjacent area of the target area and the electricity consumption data of the meter box;
[0215] Among them, the household change relationship anomaly recognition model includes a first recognition model and / or a second recognition model.
[0216] In this embodiment, the model building module is optionally used to:
[0217] Determine a first user table data set according to the total table data of the target area and the fitting value of the user table power consumption data in the target area;
[0218] Select at least one user table power consumption data in the adjacent substation, and add it to the first user table data set; and determine the first user power consumption line loss value according to the total table data of the target substation and the first user table data set;
[0219] Select any user table from the first user table data set as a suspected user table, and remove the electricity usage data of the suspected user table from the first user table data set to obtain a second user table data set;
[0220] Determine at least one second user power line loss value according to the target area's total meter data and the second user table data set;
[0221] Establish at least one first feature sample unit according to the total meter data of the target area, the first user's power line loss value, the second user's power line loss value, and the suspected user meter power consumption data corresponding to the second user's power line loss value;
[0222] Determine a first sample label according to whether the suspected user table corresponding to the second user's power line loss value in the first feature sample unit belongs to a target station area or an adjacent station area;
[0223] A first data set is established based on the first feature sample unit and the first sample label to construct a first recognition model.
[0224] In this embodiment, the model building module is optionally used to:
[0225] Determine a first electric meter box electricity consumption data set according to the fitting values of the total meter data and the electric meter box electricity consumption data of the target substation;
[0226] Select at least one electric meter box electricity consumption data in the adjacent area, and add it to the first electric meter box electricity consumption data set; and determine the first electric meter box power consumption line loss value according to the total meter data of the target area and the first electric meter box electricity consumption data set;
[0227] Selecting any one electric meter box from the first electric meter box electricity usage data set as a suspected electric meter box, and removing the suspected electric meter box electricity usage data from the first electric meter box electricity usage data set to obtain a second electric meter box electricity usage data set;
[0228] Determine at least one second electric meter box power consumption line loss value according to the total meter data of the target area and the second electric meter box power consumption data set;
[0229] Establish at least one second feature sample unit based on the total meter data of the target area, the first meter box power line loss value, the second meter box power line loss value, and the suspected meter box power consumption data corresponding to the second meter box power line loss value;
[0230] Determine a second sample label according to whether the suspected electric meter box corresponding to the electric line loss value of the second electric meter box in the second feature sample unit belongs to the target area or the adjacent area;
[0231] A second data set is established based on the second feature sample unit and the second sample label to construct a second recognition model.
[0232] In this embodiment, optionally, the abnormal relationship determination module 430 is specifically configured to:
[0233] Determine a first predicted probability that the relationship between the user table and the substation to which the power consumption data belongs is abnormal according to the output of the first recognition model;
[0234] If it is detected that the first predicted probability is less than a preset probability threshold, it is determined that there is no abnormality in the relationship between the user table and the transformer substation to which the power consumption data belongs;
[0235] The abnormal relationship determination module is specifically used for:
[0236] Determine a second predicted probability that the relationship between the electric meter box and the substation to which the electric consumption data belongs is abnormal according to the output of the second recognition model;
[0237] If it is detected that the second predicted probability is less than the preset probability threshold, it is determined that there is no abnormality in the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs.
[0238] In this embodiment, optionally, it further includes:
[0239] An abnormal signal generating module, configured to determine that the relationship between the user table and the transformer substation to which the power consumption data belongs is abnormal, and generate a user table relationship abnormality signal if it is detected that the first predicted probability is greater than or equal to the preset probability threshold;
[0240] The abnormal signal generating module is also used to determine that the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs is abnormal, and generate an electric meter box relationship abnormal signal if it is detected that the second predicted probability is greater than or equal to the preset probability threshold.
[0241] Through the household-to-user relationship anomaly identification device of the embodiment of the present invention, the acquired data can be processed to obtain a feature matrix, and then the feature matrix can be input into a pre-trained recognition model for rapid judgment, thereby efficiently and quickly realizing the abnormal judgment of the electricity consumption relationship between the substation and the user meter, and the substation and the meter box.
[0242] The device for identifying abnormal household change relationships provided in the embodiment of the present invention can execute the method for identifying abnormal household change relationships provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0243] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530 and an output device 540; the number of the processor 510 in the electronic device can be one or more. Figure 5 A processor 510 is taken as an example; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0244] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the household change relationship abnormality identification method in the embodiment of the present invention. The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, the household change relationship abnormality identification method provided in the embodiment of the present invention is implemented.
[0245] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0246] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 540 may include a display device such as a display screen.
[0247] The embodiment of the present disclosure also provides a storage medium including computer executable instructions, which, when executed by a computer processor, are used to implement the method for identifying abnormal household relationship changes provided by the embodiment of the present disclosure.
[0248] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the household change relationship anomaly identification method provided in any embodiment of the present invention.
[0249] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0250] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0251] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for identifying abnormal household change relationships. It is characterized in that The method comprises: Acquire at least one power consumption data and the electric meter data of the substation to which the power consumption data belongs from the power consumption collection system; wherein the power consumption data includes the user meter power consumption data and / or the meter box power consumption data; Determine a first line loss value and a second line loss value based on the power consumption data and the meter data of the substation to which the power consumption data belongs; wherein the power consumption data includes power consumption data at at least two preset collection moments, the meter data of the substation to which the power consumption data belongs includes power consumption data of all user meters or power consumption data of meter boxes in the substation, the first line loss value is determined based on at least one of the total meter data of the substation, the power consumption data of all user meters in the substation, and the power consumption data of all meter boxes in the substation, and the second line loss value is determined based on the first line loss value and the power consumption data; Determine a characteristic sample unit according to the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power consumption line loss value, and the second power consumption line loss value; Establishing a feature matrix according to the feature sample units; The feature matrix is input into a pre-trained household change relationship anomaly recognition model, and based on the output of the household change relationship anomaly recognition model, the abnormal relationship between the user table and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs is determined.
2. The method according to claim 1, It is characterized in that Before inputting the feature matrix into the pre-trained household change relationship anomaly recognition model, the method further includes: Select a target area from the candidate areas of the power consumption collection system, obtain the total meter data, meter box power consumption data and user meter power consumption data in the target area, and obtain user meter power consumption data and meter box power consumption data in adjacent areas of the target area; Establishing a household-to-household relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meters in the target area, and the electricity consumption data of the user meters and the electricity consumption data of the meter box in the adjacent areas of the target area; Among them, the household change relationship anomaly recognition model includes a first recognition model and / or a second recognition model.
3. The method according to claim 2, It is characterized in that The method of establishing a household-to-household relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, and the electricity consumption data of the user meter in the adjacent area of the target area and the electricity consumption data of the meter box includes: Determine a first user table data set according to the total table data of the target area and the fitting value of the user table power consumption data in the target area; Select at least one user table power consumption data in the adjacent substation, and add it to the first user table data set; and determine the first user power consumption line loss value according to the total table data of the target substation and the first user table data set; Select any user table from the first user table data set as a suspected user table, and remove the electricity usage data of the suspected user table from the first user table data set to obtain a second user table data set; Determine at least one second user power line loss value according to the target area's total meter data and the second user table data set; Establish at least one first feature sample unit according to the total meter data of the target area, the first user's power line loss value, the second user's power line loss value, and the suspected user meter power consumption data corresponding to the second user's power line loss value; Determine a first sample label according to whether the suspected user table corresponding to the second user's power line loss value in the first feature sample unit belongs to a target station area or an adjacent station area; A first data set is established based on the first feature sample unit and the first sample label to construct a first recognition model.
4. The method according to claim 2, It is characterized in that The method of establishing a household-to-household relationship anomaly recognition model based on at least one of the total meter data of the target area, the electricity consumption data of the meter box, the electricity consumption data of the user meter in the target area, and the electricity consumption data of the user meter in the adjacent area of the target area and the electricity consumption data of the meter box includes: Determine a first electric meter box electricity consumption data set according to the fitting values of the total meter data and the electric meter box electricity consumption data of the target substation; Select at least one electric meter box electricity consumption data in the adjacent area, and add it to the first electric meter box electricity consumption data set; and determine the first electric meter box power consumption line loss value according to the total meter data of the target area and the first electric meter box electricity consumption data set; Selecting any one electric meter box from the first electric meter box electricity usage data set as a suspected electric meter box, and removing the suspected electric meter box electricity usage data from the first electric meter box electricity usage data set to obtain a second electric meter box electricity usage data set; Determine at least one second electric meter box power consumption line loss value according to the total meter data of the target area and the second electric meter box power consumption data set; Establish at least one second feature sample unit based on the total meter data of the target area, the first meter box power line loss value, the second meter box power line loss value, and the suspected meter box power consumption data corresponding to the second meter box power line loss value; Determine a second sample label according to whether the suspected electric meter box corresponding to the electric line loss value of the second electric meter box in the second feature sample unit belongs to the target area or the adjacent area; A second data set is established based on the second feature sample unit and the second sample label to construct a second recognition model.
5. The method according to claim 2, It is characterized in that The determining, according to the output of the household change relationship abnormality identification model, the abnormal relationship between the user table and the substation to which the electricity consumption data belongs, comprises: Determine a first predicted probability that the relationship between the user table and the substation to which the power consumption data belongs is abnormal according to the output of the first recognition model; If it is detected that the first predicted probability is less than a preset probability threshold, it is determined that there is no abnormality in the relationship between the user table and the transformer substation to which the power consumption data belongs; Determining the abnormal relationship between the electric meter box and the substation to which the electric consumption data belongs according to the output of the household-to-household relationship abnormality recognition model includes: Determine a second predicted probability that the relationship between the electric meter box and the substation to which the electric consumption data belongs is abnormal according to the output of the second recognition model; If it is detected that the second predicted probability is less than the preset probability threshold, it is determined that there is no abnormality in the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs.
6. The method according to claim 5, It is characterized in that The method further comprises: If it is detected that the first predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the user table and the transformer substation of the power consumption data is abnormal, and a user table relationship abnormality signal is generated; If it is detected that the second predicted probability is greater than or equal to the preset probability threshold, it is determined that the relationship between the electric meter box and the household transformer in the substation to which the electricity consumption data belongs is abnormal, and an electric meter box relationship abnormality signal is generated.
7. A device for identifying abnormal household change relationships, It is characterized in that The device comprises: A data acquisition module, used to acquire at least one power consumption data and the electric meter data of the substation to which the power consumption data belongs from the power consumption collection system; wherein the power consumption data includes the user meter power consumption data and / or the meter box power consumption data; A feature matrix establishment module is used to determine a first power loss value and a second power loss value based on the power consumption data and the meter data of the substation to which the power consumption data belongs; wherein the power consumption data includes power consumption data of at least two preset collection moments, the meter data of the substation to which the power consumption data belongs includes power consumption data of all user meters or power consumption data of meter boxes in the substation, the first power loss value is determined based on at least one of the total meter data of the substation, the power consumption data of all user meters in the substation, and the power consumption data of all meter boxes in the substation, and the second power loss value is determined based on the first power loss value and the power consumption data; determine a feature sample unit based on the power consumption data, the total meter data of the substation to which the power consumption data belongs, the first power loss value, and the second power loss value; establish a feature matrix based on the feature sample units; The abnormal relationship determination module is used to input the feature matrix into a pre-trained household change relationship abnormality recognition model, and determine the abnormal relationship between the user table and the substation to which the electricity usage data belongs, and / or the abnormal relationship between the meter box and the substation to which the electricity usage data belongs according to the output of the household change relationship abnormality recognition model.
8. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for identifying abnormal household change relationships as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for identifying abnormal household change relationships as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Transformer area user-transformer relation abnormity diagnosis method and device
CN112699913A
User-transformer relation identification method based on electricity utilization information acquisition system
CN112751335A
