Default electricity consumption behavior identification method and related equipment

By preprocessing, feature extraction and clustering analysis of electricity consumption data of temporary buildings, combined with European-style distance judgment, accurate identification and automatic monitoring of default electricity consumption is achieved, and the problems of inefficiency and identification difficulties in the existing technology are solved. , improves the efficiency and accuracy of power consumption management.

CN119089220APending Publication Date: 2024-12-06BEIJING CHINA POWER INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411085979.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing technology relies on manual inspection, which is inefficient and difficult to cover all temporary buildings, and it is impossible to accurately identify the default electricity usage patterns, resulting in waste of power resources and safety hazards.

Method used

By determining the temporary electricity consumption data of the user to be identified for preprocessing and regular filtering, extracting temporary electricity consumption characteristics, using clustering algorithms for clustering, combining European-style distance to judge default electricity users, real-time monitoring of temporary building electricity consumption and Automatic identification of default electricity use.

Benefits of technology

It improves the efficiency and accuracy of electricity consumption management, can process electricity consumption data of various types and scales, adapt to different temporary buildings and electricity consumption scenarios, and realizes accurate identification and automatic monitoring of default electricity consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089220A_ABST
    Figure CN119089220A_ABST
Patent Text Reader

Abstract

The invention provides a default electricity consumption behavior identification method and related equipment, and the method comprises the steps: determining temporary electricity consumption data of a to-be-identified user, carrying out the preprocessing and rule filtering of the temporary electricity consumption data, and determining a first default suspected electricity consumption user set; performing feature extraction on the temporary power utilization data of the first default suspected power utilization user set, and determining temporary power utilization features; clustering the temporary power utilization characteristics through a clustering algorithm, and determining a second default suspected power utilization user set; and according to the temporary power utilization data of the first default suspected power utilization user set and the temporary power utilization characteristics, determining default power utilization users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method for identifying electricity usage violations and related equipment. Background Art

[0002] With the acceleration of urbanization, temporary buildings play an important role in various engineering projects. However, due to the particularity of temporary building electricity management, the phenomenon of breach of contract often occurs. When the temporary electricity use for construction is over, some electricity users fail to terminate the temporary electricity use in time due to cumbersome procedures or unwillingness to invest in the construction of supporting facilities and pipelines for "temporary electricity conversion to formal electricity use", and even engage in other electricity use behaviors, such as power transfer, which not only wastes electricity resources, but also brings safety hazards.

[0003] However, the existing technology relies on manual inspections, which is inefficient and difficult to cover all temporary buildings. It is also difficult to accurately analyze and judge complex electricity usage behaviors, resulting in the inability to accurately identify default electricity usage patterns. Summary of the invention

[0004] In view of this, the purpose of this application is to propose a method for identifying breach of contract electricity usage behavior and related equipment.

[0005] Based on the above purpose, this application provides a method for identifying a breach of contract electricity usage behavior, including:

[0006] Determine temporary electricity usage data of users to be identified, pre-process and filter the temporary electricity usage data according to rules, and determine a first set of suspected default electricity users;

[0007] Extracting features from temporary electricity usage data of the first set of suspected default electricity users to determine temporary electricity usage features;

[0008] Clustering the temporary electricity usage characteristics by a clustering algorithm to determine a second set of suspected default electricity users;

[0009] Determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

[0010] Optionally, the preprocessing includes: data cleaning, data sorting, data conversion and data standardization;

[0011] The preprocessing and rule filtering of the temporary electricity consumption data to determine a first set of suspected default electricity users includes:

[0012] Determine preset power usage rules, perform rule filtering on the preprocessed temporary power usage data according to the preset power usage rules, determine the users to be identified who meet the preset power usage rules, and determine the users to be identified who meet the preset power usage rules as the temporary power usage data set; wherein the preset power usage rules include: power usage capacity rules and / or power usage type rules.

[0013] Optionally, the temporary electricity consumption characteristics include: the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of change of electricity consumption, the number of electricity consumption mutation points, the monthly average load rate and the electricity consumption fluctuation rate;

[0014] Extracting features from the temporary electricity consumption data of the first set of suspected default electricity users to determine temporary electricity consumption features includes:

[0015] By calculating the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of change of electricity consumption, the number of electricity consumption mutation points, the monthly average load rate and the electricity consumption fluctuation rate of the temporary electricity consumption data of the first set of suspected default electricity users, feature extraction is performed to determine the temporary electricity consumption characteristics.

[0016] Optionally, clustering the temporary electricity usage characteristics by a clustering algorithm to determine a second set of suspected default electricity users includes:

[0017] Clustering the temporary electricity consumption features by K-means++ clustering to determine the cluster center;

[0018] Iterative calculation is performed according to the cluster center, and in response to determining that the number of iterations is satisfied, a current cluster center is determined, and the second set of suspected defaulting electricity users is determined according to the current cluster center.

[0019] Optionally, determining the defaulting electricity user according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics includes:

[0020] The Euclidean distance between the temporary electricity usage data of the first set of suspected default electricity users and the temporary electricity usage characteristics is calculated, and the default electricity users are determined according to the Euclidean distance.

[0021] Optionally, determining the defaulting electricity user according to the Euclidean distance includes:

[0022] In response to determining that the Euclidean distance is less than a preset distance, determining that the user to be identified is a defaulting electricity user;

[0023] In response to determining that the Euclidean distance is not less than a preset distance, it is determined that the user to be identified is a normal electricity user.

[0024] Based on the same inventive concept, the embodiment of the present application also provides a device for identifying a breach of contract electricity usage behavior, including:

[0025] A preprocessing module is configured to determine temporary electricity usage data of users to be identified, preprocess and filter the temporary electricity usage data according to rules, and determine a first set of suspected default electricity users;

[0026] a feature extraction module configured to extract features from the temporary electricity usage data of the first set of suspected default electricity users to determine temporary electricity usage features;

[0027] A clustering module is configured to cluster the temporary electricity usage characteristics by using a clustering algorithm to determine a second set of suspected default electricity users;

[0028] The identification module is configured to determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

[0029] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for identifying a breach of contract in electricity usage as described in any one of the above is implemented.

[0030] Based on the same inventive concept, an embodiment of the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute any of the above-mentioned methods for identifying a breach of contract in electricity usage.

[0031] Based on the same inventive concept, an embodiment of the present application also provides a computer program product, including computer program instructions. When the computer program instructions are executed on a computer, the computer executes any of the above-mentioned methods for identifying breach of contract electricity usage behavior.

[0032] From the above, it can be seen that the method, device, electronic device, storage medium and program product for identifying the behavior of electricity use in violation of the contract provided by the present application include: determining the temporary electricity data of the user to be identified, preprocessing and filtering the temporary electricity data according to the rules, and determining the first set of suspected electricity users in violation of the contract; extracting features from the temporary electricity data of the first set of suspected electricity users in violation of the contract, and determining the temporary electricity features; clustering the temporary electricity features through a clustering algorithm to determine the second set of suspected electricity users in violation of the contract; and determining the electricity users in violation of the contract according to the temporary electricity data and the temporary electricity features of the first set of suspected electricity users in violation of the contract. The present application can deeply understand the electricity consumption behavior and pattern of temporary buildings through clustering analysis, provide strong support for optimizing electricity management, and can process electricity consumption data of various types and sizes, so that the method has strong adaptability and scalability, so as to be applied to various temporary buildings and electricity consumption scenarios. At the same time, the identification of electricity users in violation of the contract by combining the clustering method realizes the real-time monitoring of electricity consumption in temporary buildings and the automatic identification of electricity consumption in violation of the contract, and improves the management efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A schematic diagram of an application scenario of the method for identifying a default electricity usage behavior according to an embodiment of the present application;

[0035] Figure 2 A flowchart of a method for identifying a breach of contract electricity usage behavior according to an embodiment of the present application;

[0036] Figure 3 A schematic diagram of the execution flow of the method for identifying a default electricity usage behavior according to an embodiment of the present application;

[0037] Figure 4 A schematic diagram of a method and device for identifying a breach of contract electricity usage behavior according to an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0041] In order to facilitate understanding of the technical solution of the present application, some technical terms involved in the present application are introduced below.

[0042] K-means++ clustering algorithm is a clustering algorithm improved by K-means clustering algorithm. K-means++ clustering algorithm selects initial centroids through weighted probability distribution, so that these centroids are far away from each other, thereby improving the quality and stability of the final clustering. Specifically, it includes the following steps: (1) Randomly select the first centroid: randomly select a point from the data set as the first cluster center; (2) Calculate the distance and select the next centroid: for each unselected data point, calculate its distance to the selected centroid and assign a weight value based on this distance. Then, use these weight values ​​to select the next centroid through weighted probability distribution. Specifically, the probability of each data point being selected is inversely proportional to its distance to the nearest centroid; (3) Repeat the above process: continue the above steps until k centroids are selected.

[0043] Euclidean distance, also known as Euclidean distance, is a common method to measure the absolute distance between two points in multidimensional space. According to the theorem definition in Euclidean geometry, it is the straight-line distance between two points.

[0044] In order to make the technical solution of the present application clearer and easier to understand, the method for identifying the breach of contract electricity usage behavior provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0045] As mentioned in the background technology section, with the acceleration of urbanization, temporary buildings play an important role in various engineering projects. However, due to the particularity of electricity management for temporary buildings, the phenomenon of electricity use violations often occurs. When the temporary electricity use for construction is completed, some electricity users fail to terminate the temporary electricity use in time due to cumbersome procedures or unwillingness to invest funds in the construction of supporting facilities and pipelines for "temporary electricity conversion to formal electricity use". They even engage in other electricity use behaviors, such as power transfer, which not only causes waste of power resources, but also brings safety hazards. However, the existing technology relies on manual inspections, which is inefficient and difficult to cover all temporary buildings. It is difficult to accurately analyze and judge complex electricity use behaviors, resulting in the inability to accurately identify the electricity use violation pattern.

[0046] In view of this, the embodiments of the present application provide a method, device, electronic device, storage medium and program product for identifying a default electricity usage behavior, including: determining the temporary electricity usage data of the user to be identified, preprocessing and rule filtering the temporary electricity usage data, and determining a first set of suspected default electricity users; extracting features from the temporary electricity usage data of the first set of suspected default electricity users to determine the temporary electricity usage features; clustering the temporary electricity usage features through a clustering algorithm to determine a second set of suspected default electricity users; and determining the default electricity users based on the temporary electricity usage data and the temporary electricity usage features of the first set of suspected default electricity users. The present application can deeply understand the electricity usage behavior and pattern of temporary buildings through cluster analysis, provide strong support for optimizing electricity management, and can process electricity usage data of various types and sizes, so that the method has strong adaptability and scalability, so that it can be applied to various temporary buildings and electricity usage scenarios. At the same time, the identification of default electricity users combined with the clustering method realizes the real-time monitoring of temporary building electricity consumption and the automatic identification of default electricity consumption, which improves management efficiency and accuracy.

[0047] refer to Figure 1, which is a schematic diagram of an application scenario of the method for identifying the default electricity consumption behavior provided in an embodiment of the present application. The application scenario includes a terminal device 101, a server 102, and a data storage system 103. Among them, the terminal device 101, the server 102 and the data storage system 103 can be connected through a wired or wireless communication network. The terminal device 101 includes but is not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The server 102 and the data storage system 103 can both be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0048] The server 102 is used to provide a default electricity usage behavior identification service to the user of the terminal device 101. The terminal device 101 is installed with a client that communicates with the server 102. The user can use the client to input relevant information of the user to be identified, such as the area where the user is located or the user identification of the user to be identified, which can be an ID number. After clicking the identification button, the client sends the relevant information of the user to be identified to the server 102. The server 102 inputs the relevant information of the user to be identified into the trained default electricity usage behavior identification to obtain an identification result of whether the user to be identified is a default electricity user, and sends the identification result to the client. The client displays the identification result to the user to help management personnel identify and manage default electricity users.

[0049] The data storage system 103 stores a large amount of data for identifying the default electricity usage behavior of the user to be identified, including calculation data and calculation methods for processing and identifying temporary electricity usage data. The server 102 can identify the temporary electricity usage data of the user to be identified based on the large amount of data for identifying the default electricity usage behavior of the user to be identified, thereby determining whether the user to be identified is a default user or a temporary user in normal use. Figure 1 The present invention describes the method for identifying the default electricity usage behavior according to the exemplary embodiment of the present application by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0050] like Figure 2 As shown, the method for identifying the electricity usage behavior in violation of the contract includes:

[0051] Step S202: determining temporary electricity usage data of the user to be identified, pre-processing and rule filtering the temporary electricity usage data, and determining a first set of suspected default electricity users;

[0052] Step S204: extracting features from the temporary electricity usage data of the first set of suspected default electricity users to determine temporary electricity usage features;

[0053] Step S206: clustering the temporary electricity usage characteristics by a clustering algorithm to determine a second set of suspected default electricity users;

[0054] Step S208: Determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

[0055] Among them, the first set of suspected default electricity users is the users who are initially considered to be non-defaulting users after the first identification of the users to be identified, and the first set of suspected default electricity users is the non-defaulting users who are left after the first identification of the users to be identified in the first set of suspected default electricity users.

[0056] In step S202, temporary electricity consumption data is the electricity consumption data of temporary users to be identified, which usually refers to electricity consumption in infrastructure construction sites, farmland capital construction, rural breeding, newly added drought relief and flood control, and electricity consumption of newly connected power sources in addition to the household meters set up by the power department. The electricity consumption time is generally 1 year or many years. These data mainly record the electricity usage in these occasions. Specifically, for temporary electricity consumption data of infrastructure construction sites, because the building is in an unfinished state and there is no wiring condition inside, the electricity consumption during the construction of the building until the end of the construction period is called temporary electricity, and the relevant data is called temporary electricity consumption data. The user to be identified is a user who has applied for temporary electricity, and the application time has exceeded the preset time interval from the current time, then the temporary electricity consumption data of the user is obtained, and the temporary electricity consumption data is identified.

[0057] In some implementations, due to the particularity of temporary building electricity management, the phenomenon of electricity use in violation of contract often occurs. When the temporary electricity use for construction is over, some electricity users fail to terminate the temporary electricity use in time due to cumbersome procedures or unwillingness to invest in the construction of supporting facilities and pipelines for "temporary electricity conversion to formal electricity use", and even engage in other electricity use behaviors, such as power transfer, which not only wastes power resources, but also brings safety hazards. Therefore, it is very necessary to identify the temporary electricity data of temporary electricity users, which can reduce the waste of power resources and the safety hazards caused by the waste of power resources.

[0058] In some embodiments, the user to be identified may be one or more users in the area to be checked. The temporary power consumption data of the user to be identified is the power consumption data of the temporary power user to be identified in the past period of time, for example, it may be the power consumption data in the past 1 year or 3 years. The time span obtained may be determined according to the specific situation, and this application does not limit this. For example, when the construction period has lasted for 8 years, the time span obtained may be 5 years or more.

[0059] In some optional implementations, the preprocessing in step S102 includes: data cleaning, data sorting, data conversion and data standardization, and the preset power usage rules include: power usage capacity rules and / or power usage type rules. Figure 3 As shown, the temporary electricity consumption data is preprocessed and filtered by rules to determine the first set of suspected default electricity users, including: firstly, data cleaning, data sorting, data conversion and data standardization are performed on the temporary electricity consumption data, and then the preset electricity consumption rules are determined, and the preprocessed temporary electricity consumption data is filtered by rules according to the preset electricity consumption rules to exclude those that do not meet the preset electricity consumption rules, and then the first set of suspected default electricity users is constructed according to the users to be identified who are initially believed to meet the preset electricity consumption rules. Therefore, the users included in the first set of suspected default electricity users are the users to be identified who are initially believed to meet the preset electricity consumption rules.

[0060] In some optional implementations, temporary electricity consumption data, ledger data, and electricity bill payment data can be subjected to rule filtering processing to determine the first suspected defaulting electricity user. The rule filtering processing includes: performing preliminary filtering on the users to be identified in the target area according to preset rules to preliminarily remove defaulting users. The preset rules include: Rule (1): Determine whether the capacity agreed in the temporary electricity contract signed between the user to be identified and the power company is consistent with the actual operating capacity. If the operating capacity is greater than the capacity agreed in the contract, it means that the temporary building has breached the electricity contract. Rule (2): Determine whether the electricity consumption type of the user to be identified has changed. If it has changed, it means that the temporary building has breached the electricity contract, and the temporary building user is determined to be a defaulting user.

[0061] It should be noted that the above preset rules can be used as a basis for judgment alone, that is, using rule (1) or rule (2) for filtering, or they can be combined as a basis for judgment, that is, rule (1) + rule (2) as a basis for judgment.

[0062] In some optional implementations, the temporary electricity consumption characteristics include: the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of change of electricity consumption, the number of electricity consumption mutation points, the monthly average load rate and the electricity consumption fluctuation rate;

[0063] The extracting features of the temporary electricity usage data of the first set of suspected default electricity users to determine the temporary electricity usage features includes:

[0064] By calculating the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of change of electricity consumption, the number of sudden changes in electricity consumption, the monthly average load rate and the electricity consumption fluctuation rate of the temporary electricity consumption data of any user to be identified in the first set of suspected default electricity users, feature extraction is performed to determine the temporary electricity consumption characteristics.

[0065] Specifically, the month-on-month change rate of monthly electricity consumption is the month-on-month change rate of monthly electricity consumption between the i-th month and the i-1th month, denoted as α. Where X i and X i-1 are the electricity consumption in the ith month and the ith-1st month respectively; the rate of change of electricity consumption in the same month is the rate of change of electricity consumption in the ith month and the ith month of last year (the same period last year), recorded as β, where Y i is the electricity consumption in the i-th month of last year; the standard deviation of electricity consumption is the standard deviation of electricity consumption in the i-th month σ i (Calculated based on the daily electricity consumption of the month), Among them, n i refers to the number of days in the ith month, Refers to the electricity consumption on the jth day of the ith month; the electricity consumption trend is the electricity consumption trend of the ith month T i If the change trend is less than 0, it means that the rate of change of electricity consumption is large. This situation may be caused by the expiration of electricity for temporary buildings. in represents the average electricity consumption in the first half of the i-th month, represents the average power consumption in the second half of the ith month; the power consumption change rate is the power consumption change rate V in the ith month i , reflects the stability of monthly electricity consumption, in and is the average of the electricity consumption in the i-th and i-1 months; the number of electricity consumption mutation points is the number of electricity consumption mutation points in the i-th month in the past year The monthly average load rate is the average load rate of the ith month, r, which represents the customer's electricity consumption pattern and reflects the degree of load fluctuation of the customer in an average sense. Among them, P avg is the average load value of the ith month, P max is the maximum load during this period; the power consumption fluctuation rate is the fluctuation range of the customer's daily power consumption. in is the mean electricity consumption in the ith month, is the maximum electricity consumption in the i-th month.

[0066] In some optional implementations, after extracting features to determine temporary electricity usage characteristics, K-means++ clustering analysis is performed to comprehensively judge indicators such as electricity usage fluctuations, changing trends, and variances. After obtaining suspected clusters, the suspected clusters are judged to be actual default electricity usage clusters by inspecting electricity-using equipment, questioning electricity users, etc., thereby obtaining the final default electricity usage clusters.

[0067] Specifically, clustering the temporary electricity usage characteristics through a clustering algorithm to determine the second set of suspected default electricity users includes: clustering the temporary electricity usage characteristics through K-means++ clustering to determine the cluster center; performing iterative calculations based on the cluster center, determining the current cluster center in response to determining that the number of iterations is met, and determining the second set of suspected default electricity users based on the current cluster center. Cluster analysis can process electricity usage data of various types and sizes, making this method highly adaptable and scalable. Through cluster analysis, we can gain an in-depth understanding of the electricity usage behavior and patterns of temporary buildings, providing strong support for optimizing electricity management. At the same time, it realizes real-time monitoring of temporary building electricity usage and automatic identification of default electricity usage, improving management efficiency and accuracy.

[0068] In some optional implementations, other machine learning algorithms (such as neural networks, support vector machines, etc.) can also be considered for identifying electricity use violations. However, these algorithms usually require more training data and computing resources, and may have problems such as overfitting. In contrast, the cluster analysis method used in the present invention has the advantages of simplicity, efficiency, and reliability, and is more suitable for the practical application of temporary building electricity monitoring.

[0069] In some optional embodiments, determining the defaulting electricity user based on the temporary electricity usage data and the temporary electricity usage characteristics of the first set of suspected defaulting electricity users includes: calculating the Euclidean distance between the temporary electricity usage data and the temporary electricity usage characteristics of any set of suspected defaulting electricity users in the first set of suspected defaulting electricity users, and determining the defaulting electricity user based on the Euclidean distance.

[0070] Among them, the Euclidean distance L is as follows:

[0071]

[0072] in, is the i-th dimension coordinate value of sample 1 (i.e. the user to be identified), is the i-th dimension coordinate value of sample 2 (i.e., cluster center).

[0073] In some optional implementations, determining the defaulting electricity user according to the Euclidean distance includes:

[0074] In response to determining that the Euclidean distance is less than a preset distance, determining that the user to be identified is a defaulting electricity user;

[0075] In response to determining that the Euclidean distance is not less than a preset distance, it is determined that the user to be identified is a normal electricity user.

[0076] In some optional implementations, after determining that the user to be identified is a default electricity user, the type of default electricity use in the temporary building may be further determined, and then manual intervention may be performed according to the type of default electricity use. The types of default electricity use may include the following types:

[0077] (1) Large fluctuations in electricity consumption: The amount of electricity read by the user's meter may fluctuate. This may be because the user adopts different electricity usage strategies in different time periods to avoid electricity charges or monitoring.

[0078] (2) Exceeding normal electricity consumption: When actual electricity consumption significantly exceeds the reported capacity or historical electricity consumption, it may be due to the user's unauthorized addition of electrical equipment or capacity, or other breach of contract such as high-priced and low-connection.

[0079] (3) Re-supply of electricity: Re-supplying electricity without the consent of the power supply enterprise and making profits from it.

[0080] (4) The account is not cancelled in time after the temporary power expires.

[0081] (5) Unauthorized change of electricity usage category: Users change the type of electricity usage without the consent of the power supply company in order to enjoy lower electricity charges.

[0082] (6) Seasonal or cyclical electricity use violations, such as electricity theft during the peak heating season in winter.

[0083] In some optional implementations, after obtaining the default electricity consumption cluster, when judging the user to be identified, it is only necessary to calculate the distance to the cluster center.

[0084] As can be seen from the above, the method for identifying the behavior of electricity use in breach of contract provided by the present application includes: determining the temporary electricity data of the user to be identified, preprocessing and filtering the temporary electricity data according to the rules, and determining the first set of suspected electricity users in breach of contract; extracting features from the temporary electricity data of the first set of suspected electricity users in breach of contract, and determining the temporary electricity features; clustering the temporary electricity features through a clustering algorithm to determine the second set of suspected electricity users in breach of contract; and determining the electricity users in breach of contract based on the temporary electricity data of the first set of suspected electricity users in breach of contract and the temporary electricity features. The present application can deeply understand the electricity consumption behavior and pattern of temporary buildings through cluster analysis, provide strong support for optimizing electricity management, and can process electricity consumption data of various types and sizes, so that the method has strong adaptability and scalability, and can be applied to various temporary buildings and electricity usage scenarios. At the same time, the identification of electricity users in breach of contract combined with the clustering method realizes the real-time monitoring of electricity consumption in temporary buildings and the automatic identification of electricity use in breach of contract, and improves management efficiency and accuracy.

[0085] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0086] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0087] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a device for identifying breach of contract electricity usage behavior.

[0088] refer to Figure 4 The device for identifying the violation of electricity usage behavior comprises:

[0089] The preprocessing module 402 is configured to determine temporary electricity usage data of the user to be identified, preprocess and filter the temporary electricity usage data according to rules, and determine a first set of suspected default electricity users;

[0090] The feature extraction module 404 is configured to extract features from the temporary power usage data of the first set of suspected defaulting power users to determine temporary power usage features;

[0091] The clustering module 406 is configured to cluster the temporary electricity usage characteristics by using a clustering algorithm to determine a second set of suspected default electricity users;

[0092] The identification module 408 is configured to determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

[0093] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0094] The device of the above embodiment is used to implement the corresponding method for identifying the breach of contract electricity usage behavior in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0095] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for identifying the breach of contract in electricity usage described in any of the above embodiments is implemented.

[0096] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0097] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0098] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0099] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0100] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0101] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0102] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0103] The electronic device of the above-mentioned embodiment is used to implement the corresponding method for identifying the breach of contract electricity usage behavior in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0104] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for identifying default electricity usage behavior as described in any of the above embodiments.

[0105] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0106] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for identifying breach of contract electricity usage behavior as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0107] Based on the same inventive concept, corresponding to the method for identifying a default electricity usage behavior described in any of the above embodiments, the present disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the method for identifying a default electricity usage behavior. Corresponding to the execution subject corresponding to each step in each embodiment of the method for identifying a default electricity usage behavior, the processor that executes the corresponding step may belong to the corresponding execution subject.

[0108] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the method for identifying breach of contract electricity usage behavior as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0109] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0110] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0111] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0112] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for identifying electricity use behavior in violation of the law. It is characterized in that include: Determine temporary electricity usage data of users to be identified, pre-process and filter the temporary electricity usage data according to rules, and determine a first set of suspected default electricity users; Extracting features from temporary electricity usage data of the first set of suspected default electricity users to determine temporary electricity usage features; Clustering the temporary electricity usage characteristics by using a clustering algorithm to determine a second set of suspected default electricity users; Determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

2. The method according to claim 1, It is characterized in that The preprocessing includes: data cleaning, data sorting, data conversion and data standardization; The preprocessing and rule filtering of the temporary electricity consumption data to determine a first set of suspected default electricity users includes: Determine preset electricity usage rules, perform rule filtering on the preprocessed temporary electricity usage data according to the preset electricity usage rules, determine the users to be identified who meet the preset electricity usage rules, and determine the users to be identified who meet the preset electricity usage rules as the first set of suspected default electricity users; wherein the preset electricity usage rules include: electricity usage capacity rules and / or electricity usage type rules.

3. The method according to claim 1, It is characterized in that The temporary electricity consumption characteristics include: the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of change of electricity consumption, the number of sudden changes in electricity consumption, the monthly average load rate and the fluctuation rate of electricity consumption; The extracting features of the temporary electricity usage data of the first set of suspected default electricity users to determine the temporary electricity usage features includes: The temporary electricity consumption characteristics are determined by calculating the month-on-month change rate of monthly electricity consumption, the same period change rate of monthly electricity consumption, the standard deviation of electricity consumption, the trend of electricity consumption change, the rate of electricity consumption change, the number of electricity consumption mutation points, the monthly average load rate and the electricity consumption fluctuation rate of the temporary electricity consumption data of the first set of suspected default electricity users, and performing feature extraction.

4. The method according to claim 3, It is characterized in that The step of clustering the temporary electricity usage characteristics by a clustering algorithm to determine a second set of suspected default electricity users includes: Clustering the temporary electricity consumption features by K-means++ clustering to determine the cluster center; Iterative calculation is performed according to the cluster center, and in response to determining that the number of iterations is satisfied, a current cluster center is determined, and the second set of suspected defaulting electricity users is determined according to the current cluster center.

5. The method according to claim 1, It is characterized in that The determining the defaulting electricity user according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics comprises: The Euclidean distance between the temporary electricity usage data of the first set of suspected default electricity users and the temporary electricity usage characteristics is calculated, and the default electricity users are determined according to the Euclidean distance.

6. The method according to claim 1, It is characterized in that The determining the defaulting electricity user according to the Euclidean distance includes: In response to determining that the Euclidean distance is less than a preset distance, determining that the user to be identified is a defaulting electricity user; In response to determining that the Euclidean distance is not less than a preset distance, it is determined that the user to be identified is a normal electricity user.

7. A device for identifying electricity use violations. It is characterized in that include: A preprocessing module is configured to determine temporary electricity usage data of users to be identified and rule filtering, preprocess the temporary electricity usage data, and determine a first set of suspected default electricity users; a feature extraction module configured to extract features from the temporary electricity usage data of the first set of suspected default electricity users to determine temporary electricity usage features; A clustering module is configured to cluster the temporary electricity usage characteristics by using a clustering algorithm to determine a second set of suspected default electricity users; The identification module is configured to determine the defaulting electricity users according to the temporary electricity usage data of the first set of suspected defaulting electricity users and the temporary electricity usage characteristics.

8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method according to any one of claims 1 to 6.

10. A computer program product, comprising computer program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 6.