A method, device, equipment and medium for predicting the authenticity of load events

By constructing a neural network model to predict the authenticity of industrial user load events, it solves the problem of load identification accuracy under the influence of noise interference and achieves higher load identification accuracy.

CN117458473BActive Publication Date: 2024-09-13POWER SUPPLY SERVICE & MANAGEMENT CENT STATE GRID JIANGXI ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311471546.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2024-09-13
Estimated Expiration
2043-11-07

Smart Images

  • Figure CN117458473B
    Figure CN117458473B
Patent Text Reader

Abstract

The present application relates to the field of industrial electricity technology. A method, device, equipment and medium for predicting the authenticity of load events are disclosed, wherein the method includes: obtaining load event data to be predicted; inputting the load event data to be predicted into a neural network model, predicting whether the load event to be predicted is a real event or a false event, and using the load event data predicted as a real event as the basis for load identification; wherein the method also includes determining at least one application scenario for each type of load event, and obtaining sample data under the at least one application scenario, and performing row vector processing on the authenticity of the load event according to the sample data to obtain a sample set for training and testing the neural network model. The present application is used to identify the authenticity of load events in the sample set for training and testing the neural network model, so that the trained neural network model predicts whether the load event is a real event or a false event, thereby improving the accuracy of load identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial electricity technology, and in particular to a method, device, equipment and medium for predicting the authenticity of load events. Background Art

[0002] On the distribution side of the power grid, industrial users are an important part of power users, and their power load characteristics show a high proportion and diversified development trend, which has an important impact on the upgrade, operation and maintenance of power grid sources, networks, loads and storage. Based on non-intrusive load identification technology, it is possible to use the bus-side electrical information at the industrial user's metering point to identify and monitor the working status, power and other power information of various electrical equipment within the industrial user, understand the power consumption and power consumption patterns of various equipment within the industrial user, and provide more technical means for various needs such as environmental monitoring, energy efficiency services, and abnormal source positioning.

[0003] At present, in the actual application of non-intrusive load identification technology by industrial users, due to the wide variety of equipment and complex noise of industrial users, the existing load identification technology has noise interference when detecting events, and it is impossible to determine whether it is a real event. The traditional cumulative sum algorithm and sequential ratio algorithm cannot handle this situation, which affects the accuracy of load identification. Therefore, in the process of non-intrusive load identification for industrial users, how to reduce noise interference to improve the accuracy of load identification has become a technical problem that technicians in this field need to solve urgently. Summary of the invention

[0004] In view of the above situation, the embodiments of the present application provide a method, apparatus, device and medium for predicting the authenticity of a load event, aiming to solve the above problem or at least partially solve the above problem.

[0005] In a first aspect, a method for predicting the authenticity of a load event is provided, comprising:

[0006] Obtaining load event data to be predicted;

[0007] Inputting the load event data to be predicted into a neural network model, predicting whether the load event is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification;

[0008] The method further includes training and testing the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and row vector processing is performed on the authenticity of the load event based on the sample data to obtain a sample set for training and testing the neural network model.

[0009] In a second aspect, a load event authenticity prediction device is provided, comprising:

[0010] An acquisition module, used for acquiring load event data to be predicted;

[0011] A prediction module, used for inputting the load event data to be predicted into a neural network model, predicting whether the load event to be predicted is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification;

[0012] A training module is used to train and test the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and identification vector row processing is performed on the authenticity of the load event based on the sample data to obtain a sample set for training and testing the neural network model.

[0013] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the load event authenticity prediction method as described above when executing the computer program.

[0014] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the load event authenticity prediction method as described above are implemented.

[0015] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0016] The present invention constructs a neural network model to identify the authenticity of load events in the sample set for training and testing the neural network model, so that the trained neural network model can predict whether the load event is a real event or a false event, and use the load event data of the real event in the subsequent load identification, effectively eliminating the influence of the false load event caused by noise interference on the load event detection, and improving the accuracy of load identification. It solves the difficulties currently encountered in the industrial load identification process and completes the authenticity judgment of the industrial user load event detection data that cannot be completed by the traditional cumulative sum algorithm and sequential ratio algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a schematic diagram of an application environment of a load event authenticity prediction method in one embodiment of the present invention;

[0019] Figure 2 is a flow chart of a method for predicting the authenticity of a load event in one embodiment of the present invention;

[0020] Figure 3 This is a schematic diagram of a specific implementation flow of step S00 in one embodiment of the present invention;

[0021] Figure 4 It is a schematic diagram of a specific implementation process of a basic residual block in one embodiment of the present invention;

[0022] Figure 5 It is a schematic diagram of a specific implementation process of a neural network model in one embodiment of the present invention;

[0023] Figure 6 is a structural schematic diagram of a load event authenticity prediction device in one embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of a structure of a computer device in one embodiment of the present invention;

[0025] Figure 8 It is another structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such use is interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0028] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0029] As mentioned above, in the actual application of non-intrusive load identification technology by current industrial users, due to the wide variety of equipment and complex noise, the existing load identification technology has noise interference when detecting events and cannot determine whether it is a real event. The traditional cumulative sum algorithm and sequential ratio algorithm cannot handle this situation, which affects the accuracy of load identification. In order to solve this technical problem, the embodiment of the present application provides a method for predicting the authenticity of load events.

[0030] The load event authenticity prediction method provided by the embodiment of the present invention can be applied in the following aspects: Figure 1 In an application environment, the device communicates with the server through a network. The server can obtain the load event data to be predicted through the device; input the load event data to be predicted into the neural network model, predict whether the load event to be predicted is a real event or a false event, and use the load event data predicted as a real event as the basis for load identification; wherein the server can also train and test to obtain the neural network model, wherein the server can determine at least one application scenario for each type of load event through the device, and obtain sample data under the at least one application scenario, perform identification row vector processing on the authenticity of the load event according to the sample data, and obtain a sample set for training and testing the neural network model.

[0031] The device side may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server side may be implemented by an independent server or a server cluster consisting of multiple servers. The present invention is described in detail below through specific embodiments.

[0032] See also Figure 2 As shown, Figure 2 A flow chart of a method for predicting the authenticity of a load event provided by an embodiment of the present invention includes the following steps:

[0033] S10: Obtaining load event data to be predicted, wherein the signal of the power supply line of the industrial user is collected as the input signal, and the sequence of active power, reactive power, fifth harmonic and seventh harmonic is extracted as the load event data to be predicted.

[0034] S20: Inputting the load event data to be predicted into a neural network model, predicting whether the load event to be predicted is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification.

[0035] The neural network model can be used to predict whether the load event to be predicted is a real event or a false event, and the load event data of the real event is used in subsequent load identification, thereby improving the accuracy of load identification.

[0036] The method further comprises the following steps:

[0037] S00: Train and test to obtain the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and row vector processing is performed on the authenticity of the load event based on the sample data to obtain a sample set for training and testing the neural network model.

[0038] In this embodiment, the authenticity of the load event is marked in the sample set used for training and testing the neural network model, so that the trained neural network model can predict whether the load event to be predicted is a real event or a false event, and the load event data of the real event is used in the subsequent load identification, effectively eliminating the influence of the false load event caused by noise interference on the load event detection, and improving the accuracy of load identification. The difficulties currently encountered in the industrial load identification process are solved, and the authenticity judgment of the industrial user load event detection data that cannot be completed by the traditional cumulative sum algorithm and sequential ratio algorithm is completed.

[0039] Specifically, in one embodiment, the step S00 determines at least one application scenario for each type of load event, and obtains sample data under the at least one application scenario, such as Figure 3 Shown include:

[0040] S01: Determine the type of load event and at least one application scenario of each type of load event.

[0041] Due to the wide variety of equipment and complex noise of industrial users, load identification technology is seriously interfered by noise, and there have been situations in the identification results where running equipment, non-running equipment, unknown equipment, etc. have not been identified, affecting the accuracy of subsequent load identification. In this embodiment, sample data of different load events are obtained according to the load event type.

[0042] Specifically, step S01 includes:

[0043] Determine the type of load event including existing equipment events and unknown equipment events. Specifically, existing equipment events refer to load events involving equipment that actually exists in the system, and unknown equipment events refer to load events involving equipment that does not exist in the system. For example, in the ceramic industry, the equipment in the system includes fans, cranes, ball mills, mixers, electromagnetic adsorption machines, mud tanks, die production lines, fast drying lamps, glazing machines, waxing machines, balers, etc., then existing equipment events refer to load events involving the above equipment, and unknown equipment events refer to load events that do not involve the above equipment. Specifically, for example, existing equipment events can be load event 1: when the baler is already running, the load event that identifies the baler is running is a real event; it can also be load event 2: when the baler is already running, the load event that identifies the baler is not running is a false event; it can also be load event 3: when the baler is not running, the load event that identifies the baler is not running is a real event; it can also be load event 4: when the baler is not running, the load event that identifies the baler is already running is a false event. An unknown device event may be a load event 5: when the above-mentioned device operates normally, a device other than the above-mentioned device is identified.

[0044] At least one application scenario is designed for each of the existing device events and the unknown device events.

[0045] For example, four application scenarios involving load event 1, load event 2, load event 3, and load event 4 may be designed for existing device events. One application scenario involving load event 5 may be designed for unknown device events.

[0046] S02: Taking each type of the load event as an experimental object, experiment on at least one of the application scenarios to obtain sample data of at least one of the application scenarios, wherein the sample data includes an active power sequence, a reactive power sequence, a fifth harmonic sequence, and a seventh harmonic sequence.

[0047] Specifically, the sample data includes active power sequence, reactive power sequence, fifth harmonic sequence and seventh harmonic sequence. The feature dimension of the sample data is 4, and the sequence length of each dimension is 100. A longer sequence length is conducive to improving the accuracy of the neural network model.

[0048] It should be noted that the sample data of the application scenario corresponding to each type of load event can be obtained through experiments, and historical data can also be used. Whether the load event corresponding to the historical data is a real event or a false event is known in advance.

[0049] Specifically, in one embodiment, the authenticity of the load event is processed by identifying row vectors according to the sample data in step S00 to obtain a sample set for training and testing the neural network model, including:

[0050] The first column of the sample data is labeled with binary classification, wherein 1 represents that the load event is a real event, and 0 represents that the load event is a false event, and the second column of the sample data is labeled with the sample data name. For example, sample data 1, sample data 2, sample data 3, sample data 4, and sample data 5 are obtained for the above-mentioned load event 1, load event 2, load event 3, load event 4, and load event 5, respectively, then sample data 1, sample data 2, sample data 3, sample data 4, and sample data 5 are located in the second column, and the first column corresponding to sample data 1 is set to 1, indicating that sample data 1 is a real event, the first column corresponding to sample data 2 is set to 0, indicating that sample data 2 is a false event, the first column corresponding to sample data 3 is set to 1, indicating that sample data 3 is a real event, the first column corresponding to sample data 4 is set to 0, indicating that sample data 4 is a false event, and the first column corresponding to sample data 5 is set to 0, indicating that sample data 5 is a false event.

[0051] The data of each dimension in each of the sample data is screened and normalized to generate the sample set.

[0052] Normalize the data of each dimension in each sample data, normalize the data of each dimension between (-1, 1), and set the data of each dimension to , the normalized calculation formula used is as follows:

[0053]

[0054] in: is the normalized data, and are the maximum and minimum values ​​of the corresponding dimensions in the sample data, and are the right and left endpoints of the normalized interval.

[0055] Specifically, in one embodiment, after performing row vector processing on the authenticity of the load event according to the sample data in step S00 to obtain a sample set for training and testing the neural network model, the following steps are included:

[0056] The sample data in the sample set is divided into a training set and a test set according to a preset ratio. Specifically, in this embodiment, the sample data in the sample set is divided into a training set and a test set according to a ratio of 8:2.

[0057] The neural network model is trained based on the data of the training set, wherein the cross entropy is used as the loss function. Specifically, the cross entropy loss function expression in this embodiment is as follows:

[0058]

[0059] Among them: X is the predicted value of load event detection, Y is the true value of the sample data, N is the number of samples, and the weights of each network are evaluated by the size of the cross entropy. The fitness of individuals with large cross entropy is small. The smaller the cross entropy, the higher the accuracy. In this embodiment, the threshold of the cross entropy can be 0.5.

[0060] The trained neural network model is tested based on the data of the test set, and whether the trained neural network model meets the test requirements is determined according to the pre-set performance target threshold. Specifically, in this embodiment, when the trained neural network model can meet the pre-set performance target threshold, the trained neural network model meets the test requirements and can predict the authenticity of subsequent load events; when the trained neural network model cannot meet the pre-set performance target threshold, the trained neural network model does not meet the test requirements and further training of the neural network model is required.

[0061] Specifically, in one embodiment, before inputting the load event data to be predicted into the neural network model in step S20 to predict whether the load event to be predicted is a real event or a false event, the method further includes:

[0062] Construct a basic residual block. Specifically, in this embodiment, Figure 4 As shown, including:

[0063] A first convolutional layer is set, wherein the size of the convolution kernel of the first convolutional layer is a first parameter k1=3, and the number of convolutional layer output channels of the first convolutional layer is a second parameter c1=64;

[0064] A second convolutional layer is set, wherein the size of the convolution kernel of the second convolutional layer is a third parameter k2=3, and the number of convolutional layer output channels of the second convolutional layer is a fourth parameter c2=32;

[0065] Set up a batch normalization processing module (Batch Normalization), which is used to normalize the input of each batch, making the neural network more stable and converging faster during the training process, and improving the generalization ability of the neural network model;

[0066] Set the activation function of the activation layer to the Leaky ReLU function.

[0067] The neural network model is constructed based on the basic residual block, wherein the neural network model includes a conversion module, a fully connected layer module, multiple basic residual blocks and multiple bidirectional LSTM modules, multiple basic residual blocks are connected in sequence, multiple bidirectional LSTM modules are connected in sequence, one basic residual block is connected to one bidirectional LSTM module via a reshaping module, the output ends of the basic residual block and the bidirectional LSTM module are connected to the conversion module, the conversion module is connected to the fully connected module, the load event data to be predicted is input into the basic residual block and the bidirectional LSTM module, and the fully connected module outputs whether the load event corresponding to the load event data to be predicted is a real event or a false event. Specifically, Figure 5 As shown, this embodiment includes four basic residual blocks, four bidirectional LSTM (Long Short-Term Memory) modules, a conversion module and a fully connected layer module; wherein the four basic residual blocks are respectively basic residual block 1, basic residual block 2, basic residual block 3, and basic residual block 4, and basic residual block 1, basic residual block 2, basic residual block 3, and basic residual block 4 are connected in sequence; the four bidirectional LSTM modules are respectively bidirectional LSTM module 1, bidirectional LSTM module 2, bidirectional LSTM module 3, and bidirectional LSTM module 4, and bidirectional LSTM module 1, bidirectional LSTM module 2, bidirectional LSTM module 3, and bidirectional LSTM module 4 are connected in sequence. The four basic residual blocks are connected in sequence and are respectively connected to the four bidirectional LSTM modules through the reshaping module, and the reshaping module performs a reshape operation to rearrange and expand the multidimensional array of the basic residual blocks. Specifically, the basic residual block 1 is connected to the bidirectional LSTM module 1 through the reshaping module 1, the basic residual block 2 is connected to the bidirectional LSTM module 2 through the reshaping module 2, the basic residual block 3 is connected to the bidirectional LSTM module 3 through the reshaping module 3, and the basic residual block 4 is connected to the bidirectional LSTM module 4 through the reshaping module 4.

[0068] The four bidirectional LSTM modules are connected in sequence, and the parameters of bidirectional LSTM module 1 are set to N=128, the parameters of bidirectional LSTM module 2 are set to N=128, the parameters of bidirectional LSTM module 3 are set to N=256, and the parameters of bidirectional LSTM module 4 are set to N=256, where N is the number of hidden units of each bidirectional LSTM module.

[0069] The transformation module performs the Falten operation, which is used to expand a multidimensional array into one dimension without changing the order of the elements.

[0070] The fully connected layer module is used to perform linear transformation on the input data and generate output through the activation function. The parameter is set to n=1, where n is the number of output nodes and the activation function is the Leaky ReLU function.

[0071] It can be seen that in the above scheme, the authenticity of the load event is marked in the sample set used to train and test the neural network model, which enables the trained neural network model to predict whether the load event to be predicted is a real event or a false event, and the load event data of the real event is used in the subsequent load identification, effectively eliminating the influence of the false load event caused by noise interference on the load event detection, and improving the accuracy of load identification. It solves the current difficulties encountered in the industrial load identification process and completes the authenticity judgment of the industrial user load event detection data that cannot be completed by the traditional cumulative sum algorithm and sequential ratio algorithm.

[0072] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0073] In one embodiment, a load event authenticity prediction device is provided, and the load event authenticity prediction device corresponds one-to-one to the load event authenticity prediction method in the above embodiment. Figure 6 As shown, the load event authenticity prediction device includes an acquisition module 101, a prediction module 102 and a training module 103. The detailed description of each functional module is as follows:

[0074] An acquisition module 101 is used to acquire load event data to be predicted;

[0075] The prediction module 102 is used to input the load event data to be predicted into the neural network model, predict whether the load event to be predicted is a real event or a false event, and use the load event data predicted as a real event as the basis for load identification;

[0076] The training module 103 is used to train and test the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and the authenticity of the load event is processed by identification vector rows based on the sample data to obtain a sample set for training and testing the neural network model.

[0077] Specifically, the acquisition module 101 is used to:

[0078] The sequences of active power, reactive power, fifth harmonic and seventh harmonic are obtained as load event data to be predicted.

[0079] Specifically, the training module 103 is used to:

[0080] Determine the type of load event and at least one application scenario of each type of load event;

[0081] Taking each type of load event as an experimental object, an experiment is conducted on at least one of the application scenarios to obtain sample data of at least one of the application scenarios, wherein the sample data includes an active power sequence, a reactive power sequence, a fifth harmonic sequence, and a seventh harmonic sequence.

[0082] Specifically, the training module 103 is also used for:

[0083] Based on user instructions, determine the type of load event including existing equipment events and unknown equipment events;

[0084] Based on the user instruction, at least one application scenario is designed for each of the existing device event and the unknown device event.

[0085] Specifically, the training module 103 is also used for:

[0086] Based on the user instruction, the first column of the sample data is marked with a binary classification, wherein 1 represents that the load event is a real event, and 0 represents that the load event is a false event, and the second column of the sample data is marked with the sample data name;

[0087] The data of each dimension in each of the sample data is screened and normalized to generate the sample set.

[0088] Specifically, the training module 103 is also used for:

[0089] Dividing the sample data in the sample set into a training set and a test set according to a preset ratio;

[0090] Training the neural network model based on the data of the training set, wherein cross entropy is used as a loss function;

[0091] The trained neural network model is tested based on the data of the test set, and whether the trained neural network model meets the test requirements is determined according to a preset performance target threshold.

[0092] Specifically, the training module 103 is also used for:

[0093] Based on user instructions, build a basic residual block;

[0094] Based on user instructions, the neural network model is constructed based on the basic residual block, wherein the neural network model includes a conversion module, a fully connected layer module, multiple basic residual blocks and multiple bidirectional LSTM modules, multiple basic residual blocks are connected in sequence, multiple bidirectional LSTM modules are connected in sequence, one basic residual block is connected to one bidirectional LSTM module through a reshaping module, the output ends of the basic residual block and the bidirectional LSTM module are connected to the conversion module, the conversion module is connected to the fully connected module, the load event data to be predicted is input into the basic residual block and the bidirectional LSTM module, and the fully connected module outputs whether the load event corresponding to the load event data to be predicted is a real event or a false event.

[0095] Specifically, the training module 103 is also used for:

[0096] Setting a first convolutional layer, wherein the size of a convolution kernel of the first convolutional layer is a first parameter, and the number of convolutional layer output channels of the first convolutional layer is a second parameter;

[0097] Setting a second convolutional layer, wherein the size of the convolution kernel of the second convolutional layer is a third parameter, and the number of convolutional layer output channels of the second convolutional layer is a fourth parameter;

[0098] Set up batch normalization processing module;

[0099] Set the activation function of the activation layer to the Leaky ReLU function.

[0100] The present invention provides a load event authenticity prediction device, which is used to identify the authenticity of load events in the sample set for training and testing neural network models, so that the trained neural network model can predict whether the load event to be predicted is a real event or a false event, and the load event data of the real event is used in the subsequent load identification, effectively eliminating the influence of false load events caused by noise interference on load event detection, and improving the accuracy of load identification. It solves the difficulties currently encountered in the industrial load identification process and completes the authenticity judgment of industrial user load event detection data that cannot be completed by traditional cumulative sum algorithm and sequential ratio algorithm.

[0101] For the specific definition of the load event authenticity prediction device, please refer to the definition of the load event authenticity prediction method mentioned above, which will not be repeated here. Each module in the above-mentioned load event authenticity prediction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external device end through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a load event authenticity prediction method service side.

[0103] In one embodiment, a computer device is provided. The computer device may be a device end, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a device-side of a load event authenticity prediction method.

[0104] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0105] Obtaining load event data to be predicted;

[0106] Inputting the load event data to be predicted into a neural network model, predicting whether the load event is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification;

[0107] The method further includes training and testing the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and row vector processing is performed on the authenticity of the load event based on the sample data to obtain a sample set for training and testing the neural network model.

[0108] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0109] Obtaining load event data to be predicted;

[0110] Inputting the load event data to be predicted into a neural network model, predicting whether the load event is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification;

[0111] The method further includes training and testing the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and row vector processing is performed on the authenticity of the load event based on the sample data to obtain a sample set for training and testing the neural network model.

[0112] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the device side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0113] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0114] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

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

Claims

1. A method for predicting the authenticity of a load event, characterized in that: include: Obtaining load event data to be predicted; Inputting the load event data to be predicted into a neural network model, predicting whether the load event to be predicted is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification; The method further includes training and testing the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and the authenticity of the load event is processed by identifying row vectors according to the sample data to obtain a sample set for training and testing the neural network model; Before inputting the load event data to be predicted into the neural network model to predict whether the load event to be predicted is a real event or a false event, the method further includes: Construct the basic residual block; The neural network model is constructed based on the basic residual block, wherein the neural network model includes a conversion module, a fully connected module, multiple basic residual blocks and multiple bidirectional LSTM modules, multiple basic residual blocks are connected in sequence, multiple bidirectional LSTM modules are connected in sequence, one basic residual block is connected to one bidirectional LSTM module through a reshaping module, the output ends of the basic residual block and the bidirectional LSTM module are connected to the conversion module, the conversion module is connected to the fully connected module, the load event data to be predicted is input into the basic residual block and the bidirectional LSTM module, and the fully connected module outputs whether the load event corresponding to the load event data to be predicted is a real event or a false event.

2. The method according to claim 1, characterized in that The determining at least one application scenario for each type of load event and obtaining sample data in the at least one application scenario includes: Determine the type of load event and at least one application scenario of each type of load event; Taking each type of load event as an experimental object, an experiment is conducted on at least one of the application scenarios to obtain sample data of at least one of the application scenarios, wherein the sample data includes an active power sequence, a reactive power sequence, a fifth harmonic sequence, and a seventh harmonic sequence.

3. The method according to claim 2, characterized in that The determining of the type of load event and at least one application scenario of each type of load event includes: Determine the types of load events, including existing equipment events and unknown equipment events; At least one application scenario is designed for each of the existing device events and the unknown device events.

4. The method according to claim 1, characterized in that The authenticity of the load event is identified by row vector processing according to the sample data to obtain a sample set for training and testing the neural network model, including: Perform binary classification labeling on the first column of the sample data, wherein 1 represents that the load event is a real event, and 0 represents that the load event is a false event, and perform sample data name labeling on the second column of the sample data; The data of each dimension in each of the sample data is screened and normalized to generate the sample set.

5. The method according to claim 1, characterized in that After the authenticity of the load event is identified by row vector processing according to the sample data to obtain a sample set for training and testing the neural network model, the method includes: Dividing the sample data in the sample set into a training set and a test set according to a preset ratio; Training the neural network model based on the data of the training set, wherein cross entropy is used as a loss function; The trained neural network model is tested based on the data of the test set, and whether the trained neural network model meets the test requirements is determined according to a preset performance target threshold.

6. The method according to claim 1, characterized in that The constructing of the basic residual block comprises: Setting a first convolutional layer, wherein the size of a convolution kernel of the first convolutional layer is a first parameter, and the number of convolutional layer output channels of the first convolutional layer is a second parameter; Setting a second convolutional layer, wherein the size of the convolution kernel of the second convolutional layer is a third parameter, and the number of convolutional layer output channels of the second convolutional layer is a fourth parameter; Set up batch normalization processing module; Set the activation function of the activation layer to the Leaky ReLU function.

7. A load event authenticity prediction device, characterized in that: include: An acquisition module, used for acquiring load event data to be predicted; A prediction module, used for inputting the load event data to be predicted into a neural network model, predicting whether the load event to be predicted is a real event or a false event, and using the load event data predicted as a real event as a basis for load identification; A training module, used for training and testing the neural network model, wherein at least one application scenario is determined for each type of load event, and sample data under the at least one application scenario is obtained, and row vector processing is performed on the authenticity of the load event according to the sample data to obtain a sample set for training and testing the neural network model; The training module is also used to: Based on user instructions, build a basic residual block; Based on user instructions, the neural network model is constructed based on the basic residual block, wherein the neural network model includes a conversion module, a fully connected module, multiple basic residual blocks and multiple bidirectional LSTM modules, multiple basic residual blocks are connected in sequence, multiple bidirectional LSTM modules are connected in sequence, one basic residual block is connected to one bidirectional LSTM module through a reshaping module, the output ends of the basic residual block and the bidirectional LSTM module are connected to the conversion module, the conversion module is connected to the fully connected module, the load event data to be predicted is input into the basic residual block and the bidirectional LSTM module, and the fully connected module outputs whether the load event corresponding to the load event data to be predicted is a real event or a false event.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for predicting the authenticity of a load event according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for predicting the authenticity of a load event according to any one of claims 1 to 6 are implemented.