Electricity fee anomaly identification method and system based on dynamic multi-target gravitational search

By combining dynamic multi-objective gravity search and Gaussian regression models with blockchain smart contracts, abnormal electricity bill behavior is identified, which solves the problems of low efficiency and high cost of abnormal electricity bill identification in the existing technology, and achieves high-accuracy identification of electricity bill anomalies.

CN118350680BActive Publication Date: 2024-09-20STATE GRID SHANDONG ELECTRIC POWER CO MARKETING SERVICE CENT (MEASURING CENT)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780363.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-20
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively identify abnormal behavior in electricity bills, especially when the amount of data recorded by abnormal paying users is small. Traditional methods rely on labor costs and are difficult to apply deep learning methods.

Method used

Using a method based on dynamic multi-objective gravity search, by analyzing the characteristics of users' multi-source data on electricity usage, we build user payment behavior portrait categories, and combine the Gaussian regression model and blockchain smart contracts to generate abnormal screening rules for electricity bill collection to identify anomalies. Paying users.

Benefits of technology

It achieves high-accuracy identification of abnormal payment behavior, reduces abnormal behavior in electricity bill channels, improves identification efficiency and accuracy, and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118350680B
    Figure CN118350680B
Patent Text Reader

Abstract

The present invention proposes an abnormal electricity fee identification method and system based on dynamic multi-target gravitational search, which relates to the field of power information processing technology. It includes classifying users into categories; constructing a user payment behavior prediction model; obtaining an abnormal payment amount probability estimate value, an abnormal payment amount threshold value, and an abnormal payment cycle probability estimate value, and an abnormal payment cycle threshold value for the category to which the abnormal payment user record belongs through the user payment behavior prediction model; using a dynamic multi-target gravitational search method, calculating the abnormal payment amount threshold value and abnormal payment cycle threshold value for the category to which the abnormal payment user record does not exist; based on the abnormal payment amount threshold value and abnormal payment cycle threshold value of different user payment behavior portrait categories, construct an abnormal screening rule for electricity fee collection and generate an energy smart contract, and identify abnormal electricity fee payment users through smart contracts. The present invention can achieve high-accuracy identification of abnormal payment behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric power information processing, and in particular relates to a method and system for identifying abnormal electricity charges based on dynamic multi-target gravitational search. Background Art

[0002] In recent years, with the rapid development of information technology, the situation of abnormal activities related to telecommunications networks has become serious. Some people use electricity bill payment channels to carry out abnormal behaviors, which endangers people's property safety and also brings troubles to the lives of the general public. Abnormal behavior in electricity bill payment channels refers to defrauding customers of their money by paying for them.

[0003] Since there is little data on abnormal payment users who use electricity bill payment channels, the currently popular abnormal behavior identification method based on deep learning is difficult to apply. The traditional electricity bill data anomaly detection method summarizes human experience and extracts abnormal screening rules for electricity bill data, which relies on a lot of manpower costs. Summary of the invention

[0004] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a method and system for identifying electricity charge anomalies based on dynamic multi-target gravitational search, analyzes the multi-source data characteristics of user electricity consumption, and obtains the payment amount estimation threshold and payment cycle estimation threshold of different user payment behavior portrait categories in combination with the abnormal payment user record data, thereby generating abnormal behavior screening rules for electricity charge collection, and storing them on the blockchain as energy smart contracts. Through the smart contract, the accounts of abnormal transactions are checked to timely and accurately identify abnormal payment users.

[0005] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0006] A first aspect of the present invention provides a method for identifying abnormal electricity charges based on dynamic multi-target gravitational search.

[0007] The method for identifying abnormal electricity charges based on dynamic multi-objective gravitational search includes the following steps:

[0008] Step 1: Obtain user portrait features, including user electricity usage attribute features and payment behavior features, divide normal payment user sample data and abnormal payment user sample data based on user portrait features, classify users based on normal payment user sample data, and obtain user payment behavior portrait categories, corresponding portrait features, and user payment behavior portrait category sample sets;

[0009] Step 2: Based on the user payment behavior profile category and the user payment behavior profile category sample set, Gaussian regression is used to build a user payment behavior prediction model to estimate the payment amount probability distribution data and the payment cycle probability distribution data;

[0010] Step 3: Assign the sample data of abnormal payment users to the user payment behavior profile category, and obtain the abnormal payment amount probability estimate, abnormal payment amount threshold, abnormal payment cycle probability estimate, and abnormal payment cycle threshold of the category to which the abnormal payment user record belongs through the user payment behavior prediction model;

[0011] Step 4: Using a dynamic multi-objective gravitational search method, based on the nearest grouping of the category to which the user record does not have abnormal payment, calculate the abnormal payment amount threshold and abnormal payment cycle threshold corresponding to the category to which the user record does not have abnormal payment;

[0012] Step 5: Based on the abnormal payment amount threshold and abnormal payment cycle threshold of different user payment behavior profile categories, construct abnormal screening rules for electricity bill collection and generate energy smart contracts, which are stored as blocks on the blockchain. Through smart contracts, accounts with abnormal transactions are checked to identify users with abnormal electricity bill payments.

[0013] The second aspect of the present invention provides an electricity fee anomaly identification system based on dynamic multi-target gravitational search.

[0014] The electricity fee anomaly identification system based on dynamic multi-objective gravitational search includes:

[0015] The user classification module is configured to: obtain user portrait features, including user electricity usage attribute features and payment behavior features, divide normal payment user sample data and abnormal payment user sample data based on the user portrait features, classify users into categories based on the normal payment user sample data, and obtain user payment behavior portrait categories, corresponding portrait features, and user payment behavior portrait category sample sets;

[0016] The prediction model estimation module is configured to: construct a user payment behavior prediction model using Gaussian regression based on the user payment behavior profile category and the user payment behavior profile category sample set, and estimate the payment amount probability distribution data and the payment period probability distribution data;

[0017] The module for estimating the category to which the abnormal payment user record belongs is configured to: assign the sample data of the abnormal payment user to the category of the user payment behavior portrait, and obtain the abnormal payment amount probability estimation value, abnormal payment amount threshold value, abnormal payment cycle probability estimation value, and abnormal payment cycle threshold value of the category to which the abnormal payment user record belongs through the user payment behavior prediction model;

[0018] The module for estimating the category to which the user record does not exist is configured to: adopt a dynamic multi-objective gravitational search method, based on the nearest grouping of the category to which the user record does not exist, calculate the abnormal payment amount threshold and abnormal payment cycle threshold corresponding to the category to which the user record does not exist;

[0019] The smart contract identification module is configured to: construct abnormal screening rules for electricity bill collection based on the abnormal payment amount thresholds and abnormal payment cycle thresholds of different user payment behavior profile categories and generate energy smart contracts, which are stored as blocks on the blockchain. Through smart contracts, accounts with abnormal transactions are checked to identify users with abnormal electricity bill payments.

[0020] One or more of the above technical solutions have the following beneficial effects:

[0021] 1. The present invention proposes a method and system for identifying electricity fee anomalies based on dynamic multi-target gravitational search. By analyzing the characteristics of multi-source data on user electricity consumption, the user payment behavior profile category is characterized, and a user payment behavior prediction model is constructed based on normal user payment sample data. The payment amount estimation threshold and payment cycle estimation threshold of different user payment behavior profile categories are obtained in combination with abnormal payment user record data. The abnormal screening rules for electricity fee collection are generated and stored on the blockchain as energy smart contracts. The accounts of abnormal transactions are checked through smart contracts, and abnormal payment users are identified in a timely and accurate manner, realizing high-accuracy identification of abnormal payment behaviors, thereby effectively reducing abnormal behaviors in electricity fee channels.

[0022] 2. In order to solve the problem that the user's electricity usage characteristics and payment behavior characteristics are multiple and their correlation is complex, resulting in difficulty in classification, the present invention first performs coarse-grained electricity usage attribute classification on the user's electricity usage characteristics. On this basis, the k-means clustering algorithm is used to achieve fine-grained classification of user portraits according to the payment behavior characteristics, and the refined classification and goal-oriented correlation classification between the user's electricity usage characteristics and payment behavior are achieved, providing basic data support for the subsequent identification of abnormal user payment behavior.

[0023] 3. In order to solve the problem that the sample set lacks data on abnormal electricity payment users and the number of abnormal record samples is extremely small, the present invention adopts Gaussian process regression to predict the payment behavior of normal payment users, ensuring that in the absence of abnormal sample data, the Gaussian process regression model regresses and summarizes the multi-dimensional and nonlinear characteristic data distribution law, and based on the idea that the distribution law of nearest neighbor grouping data is similar, finds the user payment behavior portrait category similar to the required category as the abnormal payment threshold for the group where there is no abnormal payment user record. Compared with neural networks and support vector machines, this method has the advantages of strong generalization, easy implementation, fast parameter update, and probabilistic output, which is more in line with the distribution of real data, thereby ensuring that the parameters of the user payment behavior prediction model are fully trained and improving the accuracy of model warning.

[0024] 4. With the passage of time, there is a problem that the data distribution patterns of users' electricity consumption characteristics and payment behavior characteristic data change, which leads to the distortion of the payment amount estimation threshold and payment period estimation threshold based on the formulated rules. The present invention updates the grouping distance based on dynamic multi-target gravitational search. When the characteristic data of the sample set changes, the multi-tendency target gravitational search that changes with time is used to quickly update the distance between groups, thereby maintaining the applicability of the payment amount estimation threshold and the payment period estimation threshold and their closeness to the real judgment threshold, thereby improving the accuracy of identifying abnormal user payment behavior.

[0025] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0027] Figure 1 This is an overall flow chart of Example 1.

[0028] Figure 2 Construct a flow chart for the user payment behavior profile category.

[0029] Figure 3 Flowchart for training a user payment behavior prediction model based on Gaussian regression.

[0030] Figure 4 Flowchart for obtaining nearest neighbor grouping based on dynamic multi-objective gravitational search. DETAILED DESCRIPTION

[0031] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0032] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0033] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0034] Overall concept:

[0035] Since the amount of abnormal payment user record data currently accumulated by using the electricity bill payment channel to carry out abnormal behavior is small, the currently popular abnormal behavior identification method based on deep learning is difficult to apply. Therefore, the present invention:

[0036] Based on the sample set of portrait features of classified normal payment electricity users, Gaussian process regression is used to build a user payment behavior prediction model. Combined with dynamic multi-objective gravitational search, the nearest grouping with different tendency problems is obtained. Through abnormal probability distribution matching, the abnormal payment threshold and abnormal payment cycle threshold of the category without abnormal payment user records are obtained, so as to identify abnormal payment accounts.

[0037] In addition, in order to support the promotion of financial products, it is necessary to ensure the application security and protection of power user data throughout the entire life cycle. Therefore, the present invention:

[0038] Based on blockchain, we carry out practical application of risk prevention and control of electricity bill collection with high privacy multi-source distributed data. Based on the payment amount estimation threshold and payment cycle estimation threshold of different user payment behavior portrait categories, we build abnormal screening rules for electricity bill collection. Based on this, we formulate smart contract templates, check accounts with abnormal transactions through smart contracts, and issue timely warnings to achieve risk prevention and control of abnormal electricity bill collection and payment arrears.

[0039] The present invention can identify abnormal payment behaviors with high accuracy, realize early warning of abnormal behaviors in electricity fee collection and timely stop loss, and is suitable for early warning and daily monitoring of abnormal electricity fees by power grids, with the purpose of identifying electricity fee collection and payment behaviors and preventing abnormal electricity fee events.

[0040] Embodiment 1

[0041] This embodiment discloses a method for identifying abnormal electricity charges based on dynamic multi-target gravitational search.

[0042] like Figure 1 As shown, the method for identifying abnormal electricity charges based on dynamic multi-objective gravitational search includes the following steps:

[0043] A. Sort out the user's electricity consumption attributes and payment behavior characteristics, and summarize the sample data of normal payment users and abnormal payment users, build user portraits based on K-means clustering and classify them, and output the user payment behavior portrait category, portrait features and user payment behavior portrait category sample set;

[0044] B. Based on the user payment behavior profile category and the user payment behavior profile category sample set, Gaussian regression is used to build a user payment behavior prediction model, and the payment amount probability distribution data and payment cycle probability distribution data are output;

[0045] C. Based on the sample data of abnormal payment users obtained in step A, assign them to user payment behavior profile categories, and output the abnormal payment amount probability estimate, abnormal payment amount threshold, abnormal payment cycle probability estimate, and abnormal payment cycle threshold of their category through the user payment behavior prediction model;

[0046] D. Based on step A, different user payment behavior profile categories are obtained, and dynamic multi-target gravity is used to obtain the nearest group of categories without abnormal payment user records. According to the abnormal payment amount probability estimate and abnormal payment cycle probability estimate of the nearest group, the abnormal payment amount threshold and abnormal payment cycle threshold of the category without abnormal payment user records are calculated;

[0047] E. Construct abnormal screening rules for electricity bill collection based on the estimated thresholds of abnormal payment amounts and abnormal payment cycles of different user payment behavior profile categories. Generate energy smart contracts based on the abnormal screening rules for electricity bill collection and store them as blocks on the blockchain. Use smart contracts to check accounts with abnormal transactions to identify and output users with abnormal payments.

[0048] F. According to the list of abnormal payment users output by the energy smart contract, check and determine whether there is any abnormal electricity fee event. If so, generate a new abnormal payment user category record for the event and feedback it to step D to adjust the abnormal payment amount estimation threshold and abnormal payment cycle estimation threshold of the user payment behavior profile category, so as to continuously improve the accuracy of abnormal payment identification.

[0049] The purpose of this embodiment is to identify users with abnormal payment and carry out prevention and control of abnormal behavior in anti-electricity fee channels. To this end, a method for identifying abnormal electricity fees based on dynamic multi-target gravitational search is proposed. By analyzing the characteristics of multi-source data on user electricity consumption, the user payment behavior profile category is characterized, and a user payment behavior prediction model is constructed based on normal user payment sample data. The payment amount estimation threshold and payment cycle estimation threshold of different user payment behavior profile categories are obtained in combination with the abnormal payment user record data. In this way, abnormal screening rules for electricity fee collection are generated and stored on the blockchain as energy smart contracts. Through the smart contract, the accounts of abnormal transactions are checked, and abnormal payment users are identified in a timely and accurate manner, thereby effectively reducing abnormal behavior in electricity fee channels.

[0050] The specific implementation process of the method for identifying abnormal electricity charges based on dynamic multi-target gravitational search of the present invention includes the following steps:

[0051] A. Sort out the users' electricity consumption attributes and payment behavior characteristics, and summarize the sample data of normal payment users and abnormal payment users. Build and classify user portraits based on K-means clustering, and output user payment behavior portrait categories, portrait features, and user payment behavior portrait category sample sets.

[0052] like Figure 2 As shown, the specific process is as follows:

[0053] A1. Sort out the electricity usage attributes and payment behavior characteristics of users, summarize the sample data of normal payment users and abnormal payment users, and classify users into coarse-grained electricity users based on their electricity usage attributes.

[0054] Among them, electricity consumption attribute characteristics include the nature of electricity users.

[0055] According to the nature of electricity users, all electricity users are divided into five categories, and the electricity user classification table is obtained, as shown in the following Table 1.

[0056] Table 1 is the classification table of electricity users

[0057]

[0058] Among them, the user payment behavior characteristics include account information, payment transaction records, risk status and other data characteristics. Among them:

[0059] Account information, including account type, account balance, account status, location, card binding status, activated functions, business transactions (password reset, upgrade or downgrade, report loss and account cancellation); payment transaction records, including payment frequency, payment amount, payment characteristics (sudden increase in transactions in a short period of time, short active period, abnormal transaction time), payment quantity, current electricity price, payment channel; risk status, including judicial investigation and freezing records, abnormal risk level, and account restriction status.

[0060] Furthermore, the sample data of normal payment users and the sample data of abnormal payment users are divided into:

[0061] Based on the user's historical payment record data, the payment data with fixed payment amounts and payment cycles are regarded as sample data of normal payment users; and the users who have been found to have paid on behalf of others are regarded as sample data of abnormal payment users.

[0062] A2. Based on the coarse-grained classification of electricity users, the k-means clustering algorithm is used to perform fine-grained classification within the coarse-grained classification of electricity users according to the acquired account information, payment transaction records, and risk status, and the user payment behavior profile category is output.

[0063] In a coarse-grained classification category of electricity users, a payment behavior data sample set is formed according to the account information, payment transaction records, and risk status obtained from this category, and K initial center points are randomly selected; for each sample point in the data set, the distance between the sample point and the K center points is calculated, and the sample point is divided into the category corresponding to the center point closest to it; after the category division is completed, the center point of the category is re-determined, and the mean of each feature of all samples in the category is used as the value of the feature corresponding to the new center point, that is: the centroid of all samples in the category; repeat the above steps until the points in each cluster no longer change, that is: terminate, and output the user payment behavior portrait category.

[0064] Among them, taking Category E as an example, the user payment behavior portrait includes (weekday office workers, monthly payment), (weekday family residence, monthly payment), (24-hour uninterrupted electricity use, monthly payment), (weekday office workers, quarterly payment), (weekday family residence, quarterly payment), (24-hour uninterrupted electricity use, quarterly payment), (weekday office workers, annual payment), (weekday family residence, annual payment), (24-hour uninterrupted electricity use, annual payment), (vacant type, annual payment), (weekday office workers, advance payment), (weekday family residence, advance payment), (24-hour uninterrupted electricity use, advance payment), (weekday office workers, overdue payment), (weekday family residence, overdue payment), (24-hour uninterrupted electricity use, overdue payment), (vacant type, overdue payment.

[0065] A3. The user's electricity consumption attribute characteristics and payment behavior characteristics are used as the portrait features of the user's payment behavior portrait category, and a sample set of the user's payment behavior portrait category is formed based on the portrait features.

[0066] B. Based on the user payment behavior profile category and the user payment behavior profile category sample set, Gaussian regression is used to build a user payment behavior prediction model, and the payment amount probability distribution data and payment cycle probability distribution data are output.

[0067] like Figure 3 As shown, the specific process is as follows:

[0068] B1. Divide the sample sets of different user payment behavior profile categories into training sample sets and test sample sets, and perform data normalization preprocessing on the sample set data.

[0069] B2. Based on the user payment behavior profile category, a Gaussian process regression model is constructed according to the training sample data, the kernel function is determined, and the initial hyperparameters are defined.

[0070] Gaussian process regression is to establish a mapping relationship between the training input data set X and the output data set Y. : , so that sample data can be input during testing When , the output value can be predicted .in, and Represents 2 different non-empty sets; Is the dimension.

[0071] Assume that the training sample set is:

[0072] ;

[0073] in, is a d-dimensional feature vector, including electricity consumption attribute features and payment behavior features, then the input feature vector of the i-th sample is , It is the two-dimensional output probability distribution data of the user payment behavior profile category, where: is the probability distribution data of the actual payment amount, is the probability distribution data of the payment period, and its corresponding output set that satisfies Gaussian process regression is , the relationship between the two is as follows:

[0074] ;

[0075] in, is an independent Gaussian white noise, which also conforms to the Gaussian distribution, with a mean of 0 and a variance of , denoted as .

[0076] Since the linear combination of two independent Gaussian distributions still satisfies the Gaussian distribution, Y here satisfies the Gaussian distribution, that is:

[0077] ;

[0078] in, represents the Gaussian process function; , Representative calculation The mean function of ,I is The identity matrix of for The covariance matrix of for The kernel function matrix of :

[0079] .

[0080] The kernel function is a square exponential covariance, that is:

[0081] ;

[0082] in, is the squared exponential covariance; is the average distance between the function and the mean function, represents the length of the function's "swing", , at this time, the value range of i and j is 1 and 2.

[0083] B3. Test sample set sample data Input the Gaussian process regression model to obtain the estimated probability distribution data of the payment amount and payment period estimated probability distribution data , estimated probability distribution matrix , based on the Gaussian process assumption , calculate the probability distribution data of the actual payment amount of the test sample data and payment period probability distribution data The true probability distribution matrix composed of With the probability distribution matrix The Gaussian density distribution is used, and the estimated probability value of the payment amount and the estimated probability value of the payment period are obtained according to the joint Gaussian density regression theorem.

[0084] The test sample set sample data Sample data included in the training sample set The Gaussian process with the same distribution can obtain the joint Gaussian density distribution as:

[0085] ;

[0086] in, is the mean of the training sample data; is the mean of the test sample data.

[0087] At this time, the output vector is obtained based on the joint Gaussian density regression theorem , that is, the conditional probability:

[0088] ;

[0089] in, The kernel value vector obtained for the test point data and the training sample point data; The kernel value vector obtained by testing the point data and itself; The kernel value vector obtained for the training sample data and itself.

[0090] The predicted value of is:

[0091] ;

[0092] in, for The predicted value of represents the mean function;

[0093] The variance of , or prediction uncertainty, is:

[0094] ;

[0095] B4. Use the EM algorithm to train the Gaussian process regression model, that is, to find the optimal hyperparameters through training samples , Represents the covariance function until the likelihood expectation value converges to the optimal solution, then the fixed parameters output the user payment behavior prediction model.

[0096] The likelihood function of the Gaussian regression model constructed based on the training sample set data of the user payment behavior profile category is:

[0097] ;

[0098] in, is the number of sample features of the training sample set based on the user payment behavior profile category; is the input training sample set data.

[0099] By maximizing the probability of the above formula, we can obtain the optimal parameters , that is, using the maximum likelihood estimation (Expectation-maximization, EM) method to obtain a set of prediction models that maximize the probability density of user payment behavior. ,make maximum:

[0100] .

[0101] The EM algorithm improves the estimation of the parameters of the user payment behavior prediction model in iterations, and continuously increases the model estimation parameters in each iteration. With the training sample vector The matching probability, that is: each iteration satisfies the above formula , where k represents the number of iterations. This process is obtained by finding the expected E-step and the extreme M-step. The specific method is as follows:

[0102] (1) Step E: For each sample , calculate its probability as:

[0103] ;

[0104] in, Representation sample The Gaussian probability function in the user payment behavior prediction model is defined as follows:

[0105] ;

[0106] , represents the mean function, Representation sample The mean of , represents the covariance matrix, Is the dimension.

[0107] (2) Step M: Maximize the likelihood function to obtain new parameter values:

[0108] ;

[0109] ;

[0110] in, represents the maximization of the likelihood function; It means to find the maximum value; represents the covariance function.

[0111] In step E, we first assume that the parameters of the Gaussian regression model are known, that is, Initially assign values, calculate the posterior probability of the variable (i.e. the expectation of the variable), and then determine the parameters of the Gaussian regression model based on the posterior probability of the variable in step M. Repeat the above two steps until the fluctuation is very small and approximately reaches the extreme value, thus outputting .

[0112] C. Based on the sample data of abnormal payment users obtained in step A, assign them to the user payment behavior portrait category, and use the user payment behavior prediction model to output the abnormal payment amount probability estimate, abnormal payment amount threshold, abnormal payment cycle probability estimate, and abnormal payment cycle threshold of their category.

[0113] More specifically:

[0114] Based on the payment amount and payment cycle characteristics of the sample data of abnormal payment users, the k-means clustering algorithm is used to calculate the distance between the abnormal payment user samples and the payment behavior portrait categories of existing users, and the abnormal payment user samples are classified into the portrait category with the minimum distance value to complete the allocation.

[0115] D. Based on step A, different user payment behavior profile categories are obtained, and dynamic multi-objective gravity is used to obtain the nearest grouping of categories without abnormal payment user records. According to the estimated probability values ​​of abnormal payment amount and abnormal payment cycle of the nearest grouping, the abnormal payment amount threshold and abnormal payment cycle threshold of the category without abnormal payment user records are calculated.

[0116] like Figure 4 As shown, the specific process is as follows:

[0117] D1. Based on the different user payment behavior profile categories obtained in step A, and the estimated probability values ​​of abnormal payment amounts and abnormal payment cycles of the user payment behavior profile categories with abnormal payment user sample data obtained in step C, the gravitational search algorithm is used to define the preference sub-problem.

[0118] Among them, preference sub-questions include three categories, namely: similarity of payment behavior characteristics (excluding payment amount and payment time), similarity of payment amount and similarity of payment time.

[0119] Based on step A, different user payment behavior profile categories are obtained: class and use the gravitational search algorithm to define the preference subproblems.

[0120] The three preference sub-problems of finding the nearest neighbor group using the gravitational search algorithm are:

[0121] ;

[0122] in, Indicates segment time, and defines the segment time unit as hour level; for dimensional decision variables, Indicates the payment amount. represents the payment time, and its domain is ; is the target vector of the 3D nearest neighbor grouping problem; represents the normalized similarity between adjacent groups at segment time t based on feature x; represents the weight parameter of the first preference subproblem, represents the normalized similarity of the first preference subproblem; represents the weight parameter of the second preference subproblem, represents the normalized similarity of the second preference subproblem; represents the weight parameter of the third preference subproblem, Represents the normalized similarity of the third preference subproblem; the Euclidean distance is used to calculate the similarity between features. The greater the similarity, the greater the attraction between groups.

[0123] D2. The gravitational force of other groups on a group generates a moving direction and acceleration, which is used as an adjacent evolution vector for the distance between groups to get closer or farther away. Therefore, the distribution of distance between groups can be optimized according to the weight ratio of the three preference sub-problems, that is, by continuously minimizing Get the nearest group solution for each group and set the number of iterations to , and use gravitational search iteration to solve. The process is:

[0124] ;

[0125] in, For the The predicted solution of the features corresponding to the adjacent evolution vectors; For the The optimal solution of the feature corresponding to the evolution vector; Indicates The optimal solution of the feature corresponding to the evolution vector; For interval A random number between .

[0126] D3. When the movement acceleration between groups is lower than the set threshold or the number of iterations is higher than When, according to Get the Euclidean distance between any two adjacent groups , which will generate Sort by groups to obtain the nearest group of each group.

[0127] D4. For user payment behavior profile categories that do not have abnormal payment user record categories, based on the abnormal payment amount probability estimate value and abnormal payment cycle probability estimate value of the nearest grouping of the abnormal payment user record categories, the user payment behavior prediction model based on Gaussian regression in the category that does not have abnormal payment user record categories is constructed to output the payment amount estimate threshold and payment cycle estimate threshold for the category that does not have abnormal payment user record categories.

[0128] Assuming that there is no abnormal payment situation in the user payment behavior portrait category of (weekday office workers, advance payment type), according to calculation, the nearest category is (24-hour non-stop work, advance payment type) user payment behavior portrait category with 5 abnormal payment users, and the estimated value of abnormal payment cycle is 5 times / day, and the corresponding estimated probability of abnormal payment cycle is 99.96%. Then, the estimated probability of abnormal payment cycle of 99.96% of the user payment behavior portrait category of (24-hour non-stop work, advance payment type) is matched to the user payment behavior prediction model based on Gaussian regression of the user payment behavior portrait category of (weekday office workers, advance payment type), and the payment cycle probability distribution data is output. Among them, the estimated value of abnormal payment cycle corresponding to the abnormal payment cycle exceeding the estimated probability of 99.96% is 4 times / day, and 4 times / day is used as the abnormal payment cycle threshold of the user payment behavior portrait category of (weekday office workers, advance payment type).

[0129] D5. Set a time threshold T. When the accumulated time t exceeds T, determine whether the user payment behavior profile has changed. That is, return to step D2, move the distance between groups based on adjacent evolution vectors, and calculate the Euclidean distance between adjacent user payment behavior profile categories. If the Euclidean distance If the sorting changes, the nearest group of each group is updated.

[0130] E. Construct abnormal screening rules for electricity bill collection based on the abnormal payment amount estimation thresholds and abnormal payment cycle estimation thresholds of different user payment behavior profile categories. Generate energy smart contracts based on the abnormal screening rules for electricity bill collection and store them as blocks on the blockchain. Check the accounts of abnormal transactions through smart contracts to identify and output users with abnormal payments.

[0131] The abnormal screening rules for electricity bill collection are set as follows: user payment behavior profile category (payment amount estimated threshold, payment cycle estimated threshold), such as (weekday office workers, advance payment category) (500, 4 times a day), (weekday family, monthly payment) (500, 5 times a day). In the user payment behavior profile category, if the payment amount estimated threshold or payment cycle estimated threshold is exceeded, an abnormal risk warning for electricity bill collection will be sent.

[0132] An energy smart contract is formulated based on the above screening rules, and the generated energy smart contract is stored as a block on the blockchain. Accounts with abnormal transactions are checked through the smart contract.

[0133] F. According to the list of abnormal payment users output by the energy smart contract, check and determine whether there is any abnormal electricity fee event. If so, generate a new abnormal payment user category record for the event and feedback it to step D to adjust the abnormal payment amount estimation threshold and abnormal payment cycle estimation threshold of the user payment behavior profile category, so as to continuously improve the accuracy of abnormal payment identification.

[0134] The prediction accuracy of the method proposed in this patent is compared with that of the kernel density estimation (KDE) model, the k-nearest neighbors (KNN) model, and the sparse Gaussian process (SGP) model. In the comparative test, the root mean square error (RMSE) and the mean absolute error (MAE) are used as indicators to measure the prediction accuracy of the model, which are defined as follows:

[0135] ;

[0136] ;

[0137] in, is the predicted value of the user's abnormal payment probability, is the actual value of abnormal payment; is the total amount of sample set data.

[0138] The accuracy comparison results of the method proposed in this embodiment and the other three algorithms are shown in Table 2.

[0139] Table 2 shows the comparison results of prediction accuracy

[0140]

[0141] From the comparison results in Table 2, it can be seen that the method of this embodiment has obvious advantages over the other three algorithms, and can accurately predict the abnormal payment amount estimation threshold and abnormal payment period estimation threshold. The experimental results show that the method for identifying electricity bill collection behaviors based on dynamic multi-target gravitational search in this embodiment can effectively warn of the occurrence of abnormal electricity bills, reduce the property losses of users, and continuously improve the prevention and control level, which has very important practical significance for promoting the healthy development of the power industry.

[0142] Embodiment 2

[0143] This embodiment discloses an electricity fee anomaly identification system based on dynamic multi-target gravitational search.

[0144] The electricity fee anomaly identification system based on dynamic multi-objective gravitational search includes:

[0145] The user classification module is configured to: obtain user portrait features, including user electricity usage attribute features and payment behavior features, divide normal payment user sample data and abnormal payment user sample data based on the user portrait features, classify users into categories based on the normal payment user sample data, and obtain user payment behavior portrait categories, corresponding portrait features, and user payment behavior portrait category sample sets;

[0146] The prediction model estimation module is configured to: construct a user payment behavior prediction model using Gaussian regression based on the user payment behavior profile category and the user payment behavior profile category sample set, and estimate the payment amount probability distribution data and the payment period probability distribution data;

[0147] The module for estimating the category to which the abnormal payment user record belongs is configured to: assign the sample data of the abnormal payment user to the category of the user payment behavior portrait, and obtain the abnormal payment amount probability estimation value, abnormal payment amount threshold value, abnormal payment cycle probability estimation value, and abnormal payment cycle threshold value of the category to which the abnormal payment user record belongs through the user payment behavior prediction model;

[0148] The module for estimating the category to which the user record does not exist is configured to: adopt a dynamic multi-objective gravitational search method, based on the nearest grouping of the category to which the user record does not exist, calculate the abnormal payment amount threshold and abnormal payment cycle threshold corresponding to the category to which the user record does not exist;

[0149] The smart contract identification module is configured to: construct abnormal screening rules for electricity bill collection based on the abnormal payment amount thresholds and abnormal payment cycle thresholds of different user payment behavior profile categories and generate energy smart contracts, which are stored as blocks on the blockchain. Through smart contracts, accounts with abnormal transactions are checked to identify users with abnormal electricity bill payments.

[0150] The steps involved in the above embodiment 2 correspond to the method embodiment 1. For the specific implementation, please refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0151] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.

[0152] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for identifying abnormal electricity charges based on dynamic multi-target gravitational search, characterized in that: The following steps are involved: Step 1: Obtain user portrait features, including user electricity usage attribute features and payment behavior features, divide normal payment user sample data and abnormal payment user sample data based on user portrait features, classify users based on normal payment user sample data, and obtain user payment behavior portrait categories, corresponding portrait features, and user payment behavior portrait category sample sets; Step 2: Based on the user payment behavior profile category and the user payment behavior profile category sample set, Gaussian regression is used to build a user payment behavior prediction model to estimate the payment amount probability distribution data and the payment cycle probability distribution data; Step 3: Assign the sample data of abnormal payment users to the user payment behavior profile category, and obtain the abnormal payment amount probability estimate, abnormal payment amount threshold, abnormal payment cycle probability estimate, and abnormal payment cycle threshold of the category to which the abnormal payment user record belongs through the user payment behavior prediction model; Step 4: Use a dynamic multi-objective gravitational search method to obtain the nearest group of the category to which there is no abnormal payment user record. The specific steps are: based on different user payment behavior portrait categories, and the probability estimate of the abnormal payment amount and the probability estimate of the abnormal payment period of the user payment behavior portrait category with abnormal payment user sample data, use the gravitational search algorithm to define the preference sub-problem; optimize the distribution of the distances between each group according to the weight ratio of the preference sub-problem, obtain the nearest group solution of each group by continuously minimizing the target vector, set the number of iterations, and use gravitational search to iterate and solve; when the movement acceleration between each group is lower than the set threshold or the number of iterations, obtain the Euclidean distance between any two adjacent points according to the target vector, sort the generated Euclidean distances, and thus obtain the nearest group of each group; Based on the nearest grouping of the category to which no abnormal payment user record belongs, the abnormal payment amount threshold and abnormal payment cycle threshold corresponding to the category to which no abnormal payment user record belongs are calculated, and the specific steps are: according to the abnormal payment amount probability estimate value and abnormal payment cycle probability estimate value of the nearest grouping of the category to which no abnormal payment user record exists, the user payment behavior prediction model based on Gaussian regression constructed for the category to which no abnormal payment user record exists obtains the payment amount estimate threshold and payment cycle estimate threshold for the category to which no abnormal payment user record exists; Step 5: Based on the abnormal payment amount threshold and abnormal payment cycle threshold of different user payment behavior profile categories, construct abnormal screening rules for electricity bill collection and generate energy smart contracts, which are stored as blocks on the blockchain. Through the smart contract, the accounts of abnormal transactions are checked to identify users with abnormal electricity bill payments. Among them, the abnormal screening rules for electricity bill collection are: in the user payment behavior portrait category, if the payment amount estimated threshold or payment cycle estimated threshold exceeds the set threshold, an abnormal risk warning for electricity bill collection will be sent.

2. The method for identifying abnormal electricity charges based on dynamic multi-target gravitational search according to claim 1, characterized in that: In step one: Based on the user's electricity consumption attribute characteristics, the users are classified into coarse-grained electricity users; According to the characteristics of user payment behavior, the K-means clustering algorithm is used to perform fine-grained classification within the coarse-grained classification category of power users to obtain the user payment behavior portrait category. The payment behavior characteristics include account information, payment transaction records and risk status; Based on the portrait features corresponding to the users in each user payment behavior portrait category, a sample set of user payment behavior portrait categories is formed.

3. The method for identifying abnormal electricity charges based on dynamic multi-target gravitational search according to claim 1, characterized in that: In step 2: The sample sets of different user payment behavior profile categories are divided into training sample sets and test sample sets, and normalized preprocessing is performed; Based on the user payment behavior profile category, a Gaussian process regression model is constructed according to the training sample data, the kernel function is determined, and the initial hyperparameters are defined; The sample data of the test sample set is input into the Gaussian process regression model, and based on the Gaussian process hypothesis and the joint Gaussian density regression theorem, the estimated probability values ​​of the payment amount and the payment period are obtained; The Gaussian process regression model is trained using the EM algorithm until the expected likelihood converges to the optimal solution. The parameters are fixed to obtain a user payment behavior prediction model.

4. The method for identifying abnormal electricity charges based on dynamic multi-target gravitational search according to claim 3, characterized in that: The specific process of obtaining the estimated probability value of the payment amount and the estimated probability value of the payment period is as follows: Based on the sample data of the test sample set, the estimated probability distribution data of the payment amount and the estimated probability distribution data of the payment period are obtained to form an estimated probability distribution matrix; Based on the Gaussian process hypothesis, the actual payment amount probability distribution data and the payment period probability distribution data are combined into a true probability distribution matrix, and the Gaussian density distribution of the true probability distribution matrix of the test sample data and the estimated probability distribution matrix is ​​calculated; According to the joint Gaussian density regression theorem, the estimated probability values ​​of the payment amount and the payment period are obtained.

5. The method for identifying abnormal electricity charges based on dynamic multi-target gravitational search according to claim 1, characterized in that: A time threshold T is set. When the accumulated time t exceeds T, it is determined whether the user payment behavior profile has changed. The inter-group distance is moved based on the adjacent evolution vectors and the Euclidean distance of the adjacent user payment behavior profile categories is calculated. If the Euclidean distance ranking changes, the nearest group of each group is updated.

6. The method for identifying abnormal electricity charges based on dynamic multi-target gravitational search according to claim 1, characterized in that: It also includes step six, which is specifically: Based on the obtained list of abnormal bill paying users, determine whether any abnormal electricity bill event has occurred; If so, a new abnormal payment user category record will be generated for the abnormal electricity charge event, and the record will be fed back to step 4 for iteration to adjust the abnormal payment amount threshold and abnormal payment cycle threshold of the user payment behavior profile category.

7. The electricity fee anomaly identification system based on dynamic multi-target gravitational search is characterized by: include: The user classification module is configured to: obtain user portrait features, including user electricity usage attribute features and payment behavior features, divide normal payment user sample data and abnormal payment user sample data based on the user portrait features, classify users into categories based on the normal payment user sample data, and obtain user payment behavior portrait categories, corresponding portrait features, and user payment behavior portrait category sample sets; The prediction model estimation module is configured to: construct a user payment behavior prediction model using Gaussian regression based on the user payment behavior profile category and the user payment behavior profile category sample set, and estimate the payment amount probability distribution data and the payment period probability distribution data; The module for estimating the category to which the abnormal payment user record belongs is configured to: assign the sample data of the abnormal payment user to the category of the user payment behavior portrait, and obtain the abnormal payment amount probability estimation value, abnormal payment amount threshold value, abnormal payment cycle probability estimation value, and abnormal payment cycle threshold value of the category to which the abnormal payment user record belongs through the user payment behavior prediction model; The module for estimating the category to which the user records without abnormal payment belong is configured as follows: adopting a dynamic multi-objective gravitational search method to obtain the nearest group of the category to which the user records without abnormal payment belong, and the specific steps are as follows: based on different user payment behavior portrait categories, and the estimated probability values ​​of abnormal payment amounts and abnormal payment cycle of the user payment behavior portrait categories with sample data of abnormal payment users, a gravitational search algorithm is used to define preference sub-problems; the distribution of distances between groups is optimized according to the weight ratio of the preference sub-problems, the nearest group solution of each group is obtained by continuously minimizing the target vector, the number of iterations is set, and the gravitational search is used for iterative solution; when the moving acceleration between groups is lower than the set threshold or the number of iterations, the Euclidean distance between any two adjacent points is obtained according to the target vector, and the generated Euclidean distances are sorted to obtain the nearest group of each group; Based on the nearest grouping of the category to which no abnormal payment user records belong, calculate the abnormal payment amount threshold and abnormal payment cycle threshold corresponding to the category to which no abnormal payment user records belong. Based on different user payment behavior portrait categories and the abnormal payment amount probability estimate and abnormal payment cycle probability estimate of the user payment behavior portrait category with abnormal payment user sample data, use the gravitational search algorithm to define the preference sub-problem; optimize the distribution of distances between groups according to the weight ratio of the preference sub-problem, obtain the nearest grouping solution for each group by continuously minimizing the target vector, set the number of iterations, and use the gravitational search iteration to solve; when the movement acceleration between groups is lower than the set threshold or number of iterations, obtain the Euclidean distance between any two adjacent points according to the target vector, sort the generated Euclidean distances, and thus obtain the nearest grouping of each group; The smart contract identification module is configured to: construct abnormal screening rules for electricity bill collection based on abnormal payment amount thresholds and abnormal payment cycle thresholds of different user payment behavior profile categories and generate energy smart contracts, which are stored as blocks on the blockchain. The accounts of abnormal transactions are checked through smart contracts to identify users with abnormal electricity bill payments, wherein the abnormal screening rules for electricity bill collection are: in the user payment behavior portrait category, if the payment amount estimated threshold or payment cycle estimated threshold exceeds the set threshold, an abnormal risk warning for electricity bill collection is sent.

8. The electricity fee anomaly identification system based on dynamic multi-target gravitational search according to claim 7, characterized in that: In the user classification module: Based on the user's electricity consumption attribute characteristics, the users are classified into coarse-grained electricity users; According to the characteristics of user payment behavior, the K-means clustering algorithm is used to perform fine-grained classification within the coarse-grained classification category of power users to obtain the user payment behavior portrait category. The payment behavior characteristics include account information, payment transaction records and risk status; Based on the portrait features corresponding to the users in each user payment behavior portrait category, a sample set of user payment behavior portrait categories is formed.

9. The electricity fee anomaly identification system based on dynamic multi-target gravitational search according to claim 7, characterized in that: In the prediction model estimation module: The sample sets of different user payment behavior profile categories are divided into training sample sets and test sample sets, and normalized preprocessing is performed; Based on the user payment behavior profile category, a Gaussian process regression model is constructed according to the training sample data, the kernel function is determined, and the initial hyperparameters are defined; The sample data of the test sample set is input into the Gaussian process regression model, and based on the Gaussian process hypothesis and the joint Gaussian density regression theorem, the estimated probability values ​​of the payment amount and the payment period are obtained; The Gaussian process regression model is trained using the EM algorithm until the expected likelihood converges to the optimal solution. The parameters are fixed to obtain a user payment behavior prediction model.

10. The electricity fee anomaly identification system based on dynamic multi-target gravitational search according to claim 9, characterized in that: The specific process of obtaining the estimated probability value of the payment amount and the estimated probability value of the payment period is as follows: Based on the sample data of the test sample set, the estimated probability distribution data of the payment amount and the estimated probability distribution data of the payment period are obtained to form an estimated probability distribution matrix; Based on the Gaussian process hypothesis, the actual payment amount probability distribution data and the payment period probability distribution data are combined into a true probability distribution matrix, and the Gaussian density distribution of the true probability distribution matrix of the test sample data and the estimated probability distribution matrix is ​​calculated; According to the joint Gaussian density regression theorem, the estimated probability values ​​of the payment amount and the payment period are obtained.

11. The electricity fee anomaly identification system based on dynamic multi-target gravitational search according to claim 7, characterized in that: A time threshold T is set. When the accumulated time t exceeds T, it is determined whether the user payment behavior profile has changed. The inter-group distance is moved based on the adjacent evolution vectors and the Euclidean distance of the adjacent user payment behavior profile categories is calculated. If the Euclidean distance ranking changes, the nearest group of each group is updated.