Electricity theft identification method and system based on multi-technology integration
Through the multi-technology integration of electricity theft behavior identification methods, the ant colony algorithm is used to optimize the deep belief network, combined with the regression model to process the electricity consumption data, and establish the ROC curve, which solves the problem of insufficient identification of electricity theft behavior in the existing technology and improves the security of power supply. performance and reliability, providing effective criteria for power inspection.
Patent Information
- Application Number
- CN202110577797.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-05-26
AI Technical Summary
It is difficult to effectively identify and prevent electricity theft with existing technology, the anti-electricity theft devices on the market cannot provide double protection, and power inspectors lack strong criteria for substantial prevention.
A multi-technology fusion power-stealing behavior identification method is used to obtain user power consumption data for dimensionality reduction and unsupervised pre-training. The ant colony algorithm is used to optimize the parameters of the deep confidence network, combined with the regression model for weighting processing, and a ROC curve is established to determine the best solution. The optimal detection threshold is used to determine whether the user's electricity consumption behavior is normal.
It improves the safety and reliability of power supply, provides new criteria for power inspectors, enhances the ability to analyze and judge electricity theft, and improves the level of prevention.
Smart Images

Figure CN113379049B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electricity consumption detection, and in particular to a method and system for identifying electricity theft by integrating multiple technologies. Background Art
[0002] With the rapid development of the economy, electricity consumption has increased significantly, and various types of electricity theft have become increasingly serious. Electricity theft is characterized by concealment, dispersion and diversification. In the past, electricity thieves were mainly private and collective organizations. Now, electricity theft has begun to show a trend of diversified development. High-energy-consuming enterprises and some state-owned institutions have also experienced electricity theft. The increase in the number of electricity thefts has caused an increase in line losses, seriously damaging the legitimate rights and interests of power supply companies and disrupting the normal order of electricity supply and use. In response to the problem of electricity theft, relevant power workers have conducted a large number of experimental studies, such as using physical methods to optimize the structure of the meter box and change the material of the meter box to weaken the interference caused by high-frequency signals and strong magnetic signals to a certain extent, but it has limited effect on improving power loss, and the level of electricity theft prevention and management has not been effectively improved. The anti-theft devices launched on the market can supervise customers' electricity consumption, but the analysis and judgment of electricity theft cannot achieve double protection, and power inspectors cannot obtain strong evidence to substantially prevent electricity theft. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for identifying electricity theft behavior by integrating multiple technologies, so as to identify electricity usage behavior based on the user's electricity usage data and enhance the safety and reliability of power supply.
[0004] To achieve the above objectives, an embodiment of the present invention provides a multi-technology-integrated electricity theft behavior identification method, including:
[0005] Obtaining electricity consumption data of several known users, and using part of the electricity consumption data as training samples and the other part as test samples;
[0006] Performing dimensionality reduction processing on the training samples to obtain dimensionality reduction data;
[0007] Using a network model to perform unsupervised pre-training on the dimension reduction data to obtain trained training samples and network parameters;
[0008] Selecting the trained training samples to fine-tune the network parameters and obtaining the output of the weak classifier;
[0009] Performing weighted processing on the output of the weak classifier to obtain an abnormal detection threshold of the user to be tested;
[0010] The optimal detection threshold of the network model is calculated, and whether the user's electricity usage behavior is normal is determined by comparing the abnormal detection threshold with the optimal detection threshold.
[0011] Preferably, the unsupervised pre-training of the dimension reduction data using a network model to obtain trained training samples and network parameters includes:
[0012] Using an ant colony algorithm to globally optimize the network parameters of a deep belief network, and importing the optimal result into the deep belief network;
[0013] The deep belief network with updated parameters is used to perform unsupervised training on the dimension reduction data, and the trained network parameters are imported into the weak classifier.
[0014] Preferably, performing weighted processing on the output of the weak classifier to obtain an abnormality detection threshold of the user to be tested includes:
[0015] Using a regression model to sparse the weak classifier to obtain an external weight;
[0016] The weak classifier is weighted according to the external weight to obtain an abnormal detection threshold of the user to be tested.
[0017] Preferably, the calculating the optimal detection threshold of the network model includes:
[0018] The test samples are imported into the weighted weak classifier for detection output, and the number of first samples in which the normal power consumption data is detected as normal, the number of second samples in which the normal power consumption data is detected as abnormal, the number of third samples in which the abnormal power consumption data is detected as abnormal, and the number of fourth samples in which the abnormal power consumption data is detected as normal are counted;
[0019] Calculating a false positive rate according to the first number of samples and the second number of samples;
[0020] Calculating a detection rate according to the third sample number and the fourth sample number;
[0021] A ROC curve is established according to the detection rate and the false positive rate, and an optimal detection threshold is determined according to the ROC curve.
[0022] The embodiment of the present invention also provides a multi-technology integrated electricity theft behavior identification system, including:
[0023] A data acquisition module is used to acquire electricity consumption data of several known users, and use part of the electricity consumption data as training samples and the other part as test samples;
[0024] A dimension reduction module, used for performing dimension reduction processing on the training samples to obtain dimension reduction data;
[0025] A training module, used to perform unsupervised pre-training on the dimension reduction data using a network model to obtain trained training samples and network parameters;
[0026] A fine-tuning module, used to select trained training samples to fine-tune the network parameters and obtain the output of the weak classifier;
[0027] A weighted processing module, used to perform weighted processing on the output of the weak classifier to obtain an abnormal detection threshold of the user to be tested;
[0028] The judgment module is used to calculate the optimal detection threshold of the network model, and judge whether the user's power consumption behavior is normal by comparing the abnormal detection threshold and the optimal detection threshold.
[0029] Preferably, the training module includes:
[0030] An optimization module, used to perform global optimization on the network parameters of the deep belief network using an ant colony algorithm, and import the optimal result into the deep belief network;
[0031] The import module is used to perform unsupervised training on the dimension reduction data using the deep belief network with updated parameters, and import the trained network parameters into the weak classifier.
[0032] Preferably, the weighted processing module includes:
[0033] A sparse processing module, used for sparsely processing the weak classifier using a regression model to obtain an external weight;
[0034] The detection module is used to weight the weak classifier according to the external weight to obtain an abnormal detection threshold of the user to be tested.
[0035] Preferably, the judging module comprises:
[0036] A statistical module, used for importing the test samples into the weighted weak classifier for detection output, and counting the first sample number of normal power consumption data detected as normal, the second sample number of normal power consumption data detected as abnormal, the third sample number of abnormal power consumption data detected as abnormal, and the fourth sample number of abnormal power consumption data detected as normal;
[0037] A false positive rate acquisition module, used for calculating the false positive rate according to the first number of samples and the second number of samples;
[0038] A detection rate acquisition module, used to calculate the detection rate according to the third sample number and the fourth sample number;
[0039] The curve building module is used to build a ROC curve according to the detection rate and the false positive rate, and determine the optimal detection threshold according to the ROC curve.
[0040] The embodiment of the present invention further provides a multi-technology integrated electricity theft behavior identification device, which is applied to the multi-technology integrated electricity theft behavior identification method in any of the above embodiments.
[0041] An embodiment of the present invention further provides a computer terminal device, comprising one or more processors and a memory. The memory is coupled to the processor and is used to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-technology fusion electricity theft behavior identification method as described in any of the above embodiments.
[0042] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for identifying electricity theft by integrating multiple technologies as described in any of the above embodiments is implemented.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] The present invention obtains the electricity consumption data of known users in the past year, divides the collected samples into samples to be tested and samples to be trained, and uses the principal component analysis algorithm to reduce the dimension of the training samples to reduce the computational difficulty for subsequent training; then uses the deep belief network to perform unsupervised training on the user data after dimension reduction, and uses the ant colony algorithm to provide the optimal network parameters for the deep belief network to meet the training needs of the deep belief network, so as to output the best abnormal detection threshold of the user to be tested; finally, simulates dynamic detection of the sample to be tested to output an intuitive ROC curve, and judges whether the relationship between its maximum value and the abnormal detection threshold of the user to be tested conforms to normal electricity consumption behavior. According to the output judgment result, a new criterion is provided for power inspectors to enhance the safety and reliability of power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 It is a flowchart of a method for identifying electricity theft by integrating multiple technologies provided by a certain embodiment of the present invention;
[0047] Figure 2 It is a structural diagram of a system for identifying electricity theft by integrating multiple technologies provided by an embodiment of the present invention;
[0048] Figure 3 It is a schematic diagram of the structure of a computer terminal device provided by a certain embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.
[0051] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0052] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0053] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.
[0054] The identification of electricity theft behavior is to find patterns from the existing state data and use these patterns to predict the unobservable state. The identification of electricity theft behavior at different time scales can be achieved through data modeling and analysis.
[0055] See also Figure 1 , Figure 1 A flowchart of a method for identifying electricity theft using multiple technologies provided by an embodiment of the present invention. The method for identifying electricity theft using multiple technologies provided by this embodiment includes the following steps:
[0056] S110, obtaining electricity usage data of several known users, and using part of the electricity usage data as training samples and the other part as test samples.
[0057] S120, performing dimensionality reduction processing on the training samples to obtain dimensionality reduced data.
[0058] S130, using the network model to perform unsupervised pre-training on the dimension reduction data to obtain trained training samples and network parameters.
[0059] S140, selecting the trained training samples to fine-tune the network parameters and obtaining the output of the weak classifier.
[0060] S150, performing weighted processing on the output of the weak classifier to obtain an abnormality detection threshold of the user to be tested.
[0061] S160, calculating the optimal detection threshold of the network model, and determining whether the user's electricity usage behavior is normal by comparing the abnormal detection threshold and the optimal detection threshold.
[0062] In a specific embodiment, step S110 includes: collecting hourly electricity consumption data of each user in the past year as original reference data; randomly dividing the electricity consumption data of the known users into two parts of samples, wherein the users of one part of the users are used as the training samples X in the training model. R , and another part of users as test samples X T .
[0063] In a specific embodiment, step S120 includes: R The electricity consumption data of the users included in the data are divided according to the time scale of 30 consecutive days to obtain X J =(x1, x2, ..., x 720 ),and Using the principal component analysis algorithm PCA to analyze X J The dimension reduction process is: X F =(x f1 , x f2 , …, x fk ).
[0064] Further explanation of PCA on X J The process of dimensionality reduction is as follows:
[0065] Calculate n-dimensional sample X J The variance of the projected data is obtained by J the degree of dispersion;
[0066]
[0067] make
[0068] Among them, X J is the original sample data, v is X J The projection unit vector of , N is the number of samples.
[0069] (2) The optimization problem of PCA dimensionality reduction is modeled as follows:
[0070]
[0071] (3) The Lagrange equation is used to solve the optimal value as follows:
[0072] f(v,λ)=v T C X v-λ(||v||-1)=v T C X v-λ(v T v-1)
[0073] Differentiate f(v, λ) and solve as follows:
[0074]
[0075] Therefore, maxσ 2 =maxv T C X v=maxv T λv=maxλ
[0076] (4) The contribution rate of the projection data to the original sample data is calculated as follows:
[0077]
[0078] When r tends to 1, it means that there are k (k ≤ n) groups of projection data that can fully represent the original sample data, that is, through PCA on X J After dimensionality reduction, we get X F =(x f1 , x f2 , …, x fk ).
[0079] In a specific embodiment, step S130 includes: firstly, using the ant colony algorithm AG to calculate the network parameters θ={w ij ,b i ,c j} to perform global optimization and import the optimal result A1 into the DBN network; secondly, use the DBN network model to reduce the dimension of k training samples X F =(x f1 , x f2 , …, x fk ) to perform unsupervised training, import the trained network parameters A2 into n weak classifiers; then use the Sampling algorithm to extract the training samples X R Take a small amount of samples in the middle cycle and get
[0080] The optimization process of the AG algorithm is further described as follows:
[0081] (1) The probability of change of network parameter θ at a certain time t is calculated as:
[0082]
[0083] Where n∈J S (m), J S (m) is the set composed of the changing trend of network parameters θ, τ mn (t) is the pheromone concentration in the changing trend, γ mn (t) is the heuristic information, that is, the information of the original network parameter θ, α is the heuristic factor of the pheromone concentration, β is the expected value of the heuristic factor, m and n are the starting and ending points of the change respectively, and s is the parameter value of the network parameter θ.
[0084] (2) Update the pheromone concentration to:
[0085] τ mn (t+1)=(1-ρ)τ mn (t)+Δτ mn (t)
[0086] Where:
[0087] Among them, Δτ mn (t) is the pheromone increment value, is the residual pheromone value, Q is the pheromone intensity value, L s is the length of the changing path, and ρ is the pheromone volatilization factor.
[0088] (3) When the probability of network parameter θ changing When the minimum value is reached, the corresponding pheromone concentration is obtained, which is the optimal result A1 of the DBN network parameter θ, where w ij is the weight, representing the relationship between the input layer and the hidden layer in the DBN network model, b i is the bias vector of the input layer, c j is the bias vector of the hidden layer.
[0089] It should be noted that the process of unsupervised training of samples using the DBN network model includes:
[0090] a. Set the parameter values in the DBN network model, such as: the number of neurons in the input layer is 40, the number of neurons in the first hidden layer is 50, the number of neurons in the second hidden layer is 20, the number of neurons in the output layer is 1, the learning rate is 0.3, the momentum term is 0.3, the batch size is 10, the number of iterations is 20, and the target error value is 0.0001;
[0091] b. Import sample data and perform normalization:
[0092]
[0093] c. The output of the computational network model is:
[0094]
[0095] d. Calculate the error of the network model:
[0096]
[0097] e. Use the error value E to adjust the weight w ij To make corrections:
[0098]
[0099] Where η is the learning rate.
[0100] f. According to the corrected weight w ij Adjust b i and c j , and finally output the trained network parameters A2.
[0101] In a specific embodiment, step S140 includes: fine-tuning the trained network parameters using part of the training samples, and obtaining the output of the weak classifier;
[0102] Specifically, the mth weak classifier is selected from n weak classifiers, The network parameter A2 in the mth weak classifier is fine-tuned to A3, and the output value Y of each weak classifier for the training sample XR is obtained. ij ) k×n .
[0103] In a specific embodiment, step S150 includes: using the regression model LASSO to sparse the weak classifier to obtain the external weight β = {β1, β2, ..., β n}, weight the weak classifiers and obtain the model output by As the anomaly detection threshold of the model for a single time point of the i-th user to be tested.
[0104] Further explain the process of sparse weighting of the regression model LASSO:
[0105] (1) The calculation formula of the regression model LASSO algorithm is:
[0106]
[0107] Among them, β j is the external weight of the jth weak classifier, λ∈[0,+∞) is the penalty factor, l i is the label of the i-th training sample;
[0108] (2) Obtain the external weights of the weak classifier as β = {β1,β2,...,β n}, and weight the output values of each weak classifier to obtain
[0109] In a specific embodiment, step S160 includes: firstly, the test sample X in the first step is T Used to simulate dynamic detection, using test sample X T Model output And sample label LT draws the model for the test sample X T The ROC curve of the test result; secondly, the best critical point on the ROC curve is obtained, which is the best detection threshold y0 of the detection model; it is determined whether the best detection threshold y0 is greater than the abnormal detection threshold of the i-th user to be tested If so, it is judged that the electricity usage behavior of the i-th user to be tested is normal; if not, it is judged that the electricity usage behavior of the i-th user is abnormal.
[0110] The calculation process of the optimal detection threshold of the detection model is further explained as follows:
[0111] First of all, it should be noted that if the detection threshold is too low, the detection model will tend to judge the power consumption data as abnormal, resulting in an increase in the false positive rate; if the detection threshold is too high, the detection model will tend to judge the power consumption data as normal, resulting in a decrease in the detection rate. The selection of the optimal detection threshold will determine the quality of power theft detection.
[0112] (1) Calculate the detection rate as: T PR =T P / (T P +F N )
[0113] Among them, T P is the number of samples of abnormal power consumption data detected as abnormal, F N The abnormal electricity consumption data is the number of samples detected as normal.
[0114] (2) Calculate the false positive rate: F PR =F P / (F P +T N )
[0115] Among them, F P is the number of samples of normal power consumption data detected as abnormal, T N The normal electricity consumption data is the number of samples detected as normal.
[0116] (3) Take the test sample X T The detection rate of the test results is the horizontal axis, and the test sample X TThe false positive rate of the detection result is used as the ordinate to establish the ROC curve, and the point (0,1) is defined as the perfect detection point. The point closest to the point (0,1) on the ROC curve is selected, and the detection result corresponding to this point is used as the optimal detection threshold y0.
[0117] See also Figure 2 , Figure 2 A schematic diagram of the structure of a system for identifying electricity theft by integrating multiple technologies provided in an embodiment of the present invention. The parts in this embodiment that are the same as those in the above embodiment will not be repeated here. The system for identifying electricity theft by integrating multiple technologies provided in this embodiment includes:
[0118] The data acquisition module 210 is used to acquire the electricity usage data of several known users, and use part of the electricity usage data as training samples and the other part as test samples.
[0119] The dimension reduction module 220 is used to perform dimension reduction processing on the training samples to obtain dimension reduced data.
[0120] The training module 230 is used to perform unsupervised pre-training on the dimension reduction data using the network model to obtain trained training samples and network parameters.
[0121] The fine-tuning module 240 is used to select the trained training samples to fine-tune the network parameters and obtain the output of the weak classifier.
[0122] The weighted processing module 250 is used to perform weighted processing on the output of the weak classifier to obtain the abnormal detection threshold of the user to be tested.
[0123] The judgment module 260 is used to calculate the optimal detection threshold of the network model and judge whether the user's power consumption behavior is normal by comparing the abnormal detection threshold and the optimal detection threshold.
[0124] Furthermore, the training module 230 includes:
[0125] The optimization module 231 is used to use the ant colony algorithm to perform global optimization on the network parameters of the deep belief network and import the optimal result into the deep belief network.
[0126] The import module 232 is used to perform unsupervised training on the dimension reduction data using the deep belief network with updated parameters, and import the trained network parameters into the weak classifier.
[0127] Furthermore, the weighted processing module 250 includes:
[0128] The sparse processing module 251 is used to sparse the weak classifiers using the regression model to obtain external weights.
[0129] The detection module 252 is used to weight the weak classifier according to the external weight to obtain the abnormal detection threshold of the user to be tested.
[0130] Further, the determination module 260 includes:
[0131] A statistical module 261 is used to import the test samples into the weighted weak classifier for detection output, and to count the first sample number of normal power consumption data detected as normal, the second sample number of normal power consumption data detected as abnormal, the third sample number of abnormal power consumption data detected as abnormal, and the fourth sample number of abnormal power consumption data detected as normal;
[0132] A false positive rate acquisition module 262, configured to calculate a false positive rate according to the first number of samples and the second number of samples;
[0133] A detection rate acquisition module 263, configured to calculate a detection rate according to the third sample number and the fourth sample number;
[0134] The curve building module 264 is used to build a ROC curve according to the detection rate and the false detection rate, and determine the optimal detection threshold according to the ROC curve.
[0135] See also Figure 3 An embodiment of the present invention provides a computer terminal device, comprising one or more processors and a memory. The memory is coupled to the processor and is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-technology fusion electricity theft behavior identification method as described in any of the above embodiments.
[0136] The processor is used to control the overall operation of the computer terminal device to complete all or part of the steps of the above-mentioned multi-technology integrated electricity theft behavior identification method. The memory is used to store various types of data to support the operation of the computer terminal device, and these data may include, for example, instructions for any application or method used to operate on the computer terminal device, as well as application-related data. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk.
[0137] In an exemplary embodiment, the computer terminal device can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned multi-technology fusion electricity theft behavior identification method and achieve the same technical effect as the above-mentioned method.
[0138] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the multi-technology integrated electricity theft behavior identification method in any of the above embodiments are implemented. For example, the computer-readable storage medium can be the above-mentioned memory including program instructions, and the above-mentioned program instructions can be executed by a processor of a computer terminal device to complete the above-mentioned multi-technology integrated electricity theft behavior identification method and achieve the same technical effect as the above-mentioned method.
[0139] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A multi-technology integrated electricity theft behavior identification method, characterized in that: include: Obtaining electricity consumption data of several known users, and using part of the electricity consumption data as training samples and the other part as test samples; Performing dimensionality reduction processing on the training samples to obtain dimensionality reduction data; Using a network model to perform unsupervised pre-training on the dimension reduction data to obtain trained training samples and network parameters; Selecting the trained training samples to fine-tune the network parameters and obtaining the output of the weak classifier; Performing weighted processing on the output of the weak classifier to obtain an abnormal detection threshold of the user to be tested; Calculating the optimal detection threshold of the network model, and judging whether the user's electricity usage behavior is normal by comparing the abnormal detection threshold with the optimal detection threshold; The method of performing unsupervised pre-training on the dimension reduction data using a network model to obtain trained training samples and network parameters includes: Using an ant colony algorithm to globally optimize the network parameters of the deep belief network model, and importing the optimal result into the deep belief network model; Using the deep belief network model with updated parameters to perform unsupervised training on the dimension reduction data, and importing the trained network parameters into the weak classifier; The method of using the ant colony algorithm to globally optimize the network parameters of the deep belief network model includes: Calculate the probability of network parameter changes at a certain moment; Updating the pheromone concentration involved in the network parameter change probability calculation process; Obtain the pheromone concentration corresponding to when the probability of network parameter change reaches the minimum value as the optimal result of the network parameter; Among them, the calculation formula for the probability of network parameter change is: ; In the formula, , is the network parameter The set composed of the changing trend of is the pheromone concentration in the changing trend, is the heuristic information, that is, the original network parameters Information, is the heuristic factor of pheromone concentration, is the expected value of the heuristic factor, m and n are the starting and ending points of the change, and s is the network parameter The parameter values in ; The update formula for pheromone concentration is; ; ; In the formula, is the pheromone increment value, is the residual pheromone value, Q is the pheromone intensity value, is the length of the changing path, It is the volatile factor of pheromone; The method of performing unsupervised training on the dimension reduction data using the deep belief network model after parameter update includes: Setting the parameter values in the deep belief network model; Importing training samples and performing normalization processing on the training samples; Calculating an output of the deep belief network model; Calculating an error value of the deep belief network model; According to the error value, modifying the weights of the deep belief network model; Adjusting the input layer bias vector and the hidden layer bias vector of the deep belief network model according to the corrected weights to obtain trained network parameters; The normalization formula for normalizing the training samples is: ; In the formula, Represents the normalization result of training samples; represents training samples; Represents the maximum value among all training samples; Represents the minimum value among all training samples; The output formula of the deep belief network model is: ; In the formula, represents the output of the deep belief network model; The error value calculation formula is: ; In the formula, Indicates the error value; represents the prediction output of the deep belief network model; Represents the standard output of the Deep Belief Network model; The correction formula for correcting the weights of the deep belief network model according to the error value is: ; In the formula, Represents the weights of the deep belief network model; is the learning rate.
2. The multi-technology-integrated electricity theft behavior identification method according to claim 1 is characterized in that: The step of performing weighted processing on the output of the weak classifier to obtain an abnormality detection threshold of the user to be tested includes: Using a regression model to sparse the weak classifier to obtain an external weight; The weak classifier is weighted according to the external weight to obtain an abnormal detection threshold of the user to be tested.
3. The multi-technology-integrated electricity theft behavior identification method according to claim 1 is characterized in that: The calculating of the optimal detection threshold of the network model comprises: The test samples are imported into the weighted weak classifier for detection output, and the number of first samples in which the normal power consumption data is detected as normal, the number of second samples in which the normal power consumption data is detected as abnormal, the number of third samples in which the abnormal power consumption data is detected as abnormal, and the number of fourth samples in which the abnormal power consumption data is detected as normal are counted; Calculating a false positive rate according to the first number of samples and the second number of samples; Calculating a detection rate according to the third sample number and the fourth sample number; A ROC curve is established according to the detection rate and the false positive rate, and an optimal detection threshold is determined according to the ROC curve.
4. A multi-technology integrated electricity theft behavior identification system, characterized in that: include: A data acquisition module is used to acquire electricity consumption data of several known users, and use part of the electricity consumption data as training samples and the other part as test samples; A dimension reduction module, used for performing dimension reduction processing on the training samples to obtain dimension reduction data; A training module, used to perform unsupervised pre-training on the dimension reduction data using a network model to obtain trained training samples and network parameters; A fine-tuning module, used to select trained training samples to fine-tune the network parameters and obtain the output of the weak classifier; A weighted processing module, used to perform weighted processing on the output of the weak classifier to obtain an abnormal detection threshold of the user to be tested; A judgment module, used to calculate the optimal detection threshold of the network model, and judge whether the user's power consumption behavior is normal by comparing the abnormal detection threshold with the optimal detection threshold; The training module comprises: An optimization module, used to perform global optimization on the network parameters of the deep belief network model using an ant colony algorithm, and import the optimal result into the deep belief network model; An import module, used to perform unsupervised training on the dimension reduction data using the deep belief network model with updated parameters, and import the trained network parameters into the weak classifier; The method of performing unsupervised training on the dimension reduction data using the deep belief network model after parameter update includes: Setting the parameter values in the deep belief network model; Importing training samples and performing normalization processing on the training samples; Calculating an output of the deep belief network model; Calculating an error value of the deep belief network model; According to the error value, modifying the weights of the deep belief network model; Adjusting the input layer bias vector and the hidden layer bias vector of the deep belief network model according to the corrected weights to obtain trained network parameters; The normalization formula for normalizing the training samples is: ; In the formula, Represents the normalization result of training samples; represents training samples; Represents the maximum value among all training samples; Represents the minimum value among all training samples; The output formula of the deep belief network model is: ; In the formula, represents the output of the deep belief network model; The error value calculation formula is: ; In the formula, Indicates the error value; represents the prediction output of the deep belief network model; Represents the standard output of the Deep Belief Network model; The correction formula for correcting the weights of the deep belief network model according to the error value is: ; In the formula, Represents the weights of the deep belief network model; is the learning rate.
5. The multi-technology-integrated electricity theft identification system according to claim 4 is characterized in that: The weighted processing module comprises: A sparse processing module, used for sparsely processing the weak classifier using a regression model to obtain an external weight; The detection module is used to weight the weak classifier according to the external weight to obtain an abnormal detection threshold of the user to be tested.
6. The multi-technology-integrated electricity theft identification system according to claim 4 is characterized in that: The judging module comprises: A statistical module, used for importing the test samples into the weighted weak classifier for detection output, and counting the first sample number of normal power consumption data detected as normal, the second sample number of normal power consumption data detected as abnormal, the third sample number of abnormal power consumption data detected as abnormal, and the fourth sample number of abnormal power consumption data detected as normal; A false positive rate acquisition module, used for calculating the false positive rate according to the first number of samples and the second number of samples; A detection rate acquisition module, used to calculate the detection rate according to the third sample number and the fourth sample number; The curve building module is used to build a ROC curve according to the detection rate and the false positive rate, and determine the optimal detection threshold according to the ROC curve.
7. A computer terminal device, characterized in that: include: one or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-technology fusion electricity theft behavior identification method as described in any one of claims 1 to 3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multi-technology integrated electricity theft behavior identification method as described in any one of claims 1 to 3 is implemented.
