A method and device for quality management of power grid data
Through error testing and optimization of the deep learning network, a data recognition network is constructed, which solves the problem of single and subjectivity of existing data quality evaluation methods, improves the efficiency and accuracy of power grid data quality management, and reduces computing resource requirements.
Patent Information
- Application Number
- CN202210347875.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-04-01
AI Technical Summary
The existing data quality evaluation methods are too single, the evaluation indicators are not comprehensive enough, and are repetitive and subjective, and cannot guarantee scientificity and effectiveness. This results in a high threshold for data quality governance, large computing resource requirements, large errors, and negative impact. Data analysis results.
By testing the pre-built deep learning network, the error is determined and a data identification network is constructed. The network is used to classify power grid data, optimize the network structure and algorithm, reduce errors, and improve the efficiency of data quality management.
It achieves targeted optimization of network structure and algorithms, improves the efficiency of data quality governance, reduces computing resource requirements, improves data management capabilities and system operation and maintenance efficiency, and ensures the quality of data assets.
Smart Images

Figure CN114841242B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid data security, and in particular to a method and device for quality management of power grid data. Background Art
[0002] Data collation is the preliminary data preprocessing work in the process of mining and refining data value. Studies have shown that more than 80% of the work of many big data analysis tasks is spent on data collation, which brings huge manpower costs to data analysis. More importantly, due to the lack of systematic and theoretical support, the quality of data collation varies greatly, which brings great uncertainty to the results of data analysis and greatly affects the mining and refining of big data value. Therefore, it is necessary to attach importance to data collation, an important basic work in the data quality governance link.
[0003] Compared with traditional data quality governance, data quality governance has significant big data technology characteristics in terms of software implementation, but the methodology is basically the same from the planning and coordination of governance, the business and technical goals of governance results, to data quality improvement, privacy and security control, etc. On the other hand, the current computing and data storage capabilities are far from keeping up with the exponential growth of data scale and the increasing real-time response requirements.
[0004] The level of data quality represents the degree to which data meets consumer expectations. Data quality evaluation is an important part of data quality management. It bears the heavy responsibility of discovering data problems and is the driving force and vane for improving data quality. Although the big data center has carried out data governance work such as data quality rule sorting, verification, and tracking, the amount of access data is increasing, and the business rules and technical rules are also diverse. It is necessary to carry out data quality detection and evaluation technology research and application based on big data approximate computing and artificial intelligence technology, and explore the use of artificial intelligence technology to lower the threshold of data governance. At present, data quality evaluation only analyzes data accuracy and completeness at the indicator level, and has not explored the implementation method of the indicator in depth. The data quality evaluation method is too single and the evaluation indicators are not comprehensive enough. The existing data quality evaluation model analyzes data from multiple aspects such as correctness, completeness, uniqueness, accuracy and effectiveness, but the evaluation indicators are repetitive, the evaluation rules are too simple, and the implementation method of the indicators is not operational. The weight of the evaluation indicators is highly subjective, and the calculation method has many constraints, which cannot guarantee the scientificity and effectiveness of data quality evaluation.
[0005] In this case, approximate computing, as an effective solution, can reduce the resource requirements, computing time and energy consumption of large-scale computing while ensuring user service quality requirements, and speed up processing. Therefore, it is widely used in large-scale processing construction scenarios and is considered to be an indispensable key technology in the big data era.
[0006] However, in the existing approximate calculation methods, only a small part of the data will produce large errors in the approximate calculation, and the large errors caused by these small amounts of data are the main reason for the deterioration of the overall application effect. Therefore, the present invention aims to distinguish the different performances of using and not using the approximate calculation strategy when constructing a neural network structure for the test data generated by the approximate calculation, so as to perform approximate calculation on the network parameters in a targeted manner, with the aim of minimizing the global error. Summary of the invention
[0007] In order to overcome the above-mentioned defects, the present invention proposes a method and device for quality management of power grid data.
[0008] In a first aspect, a quality management method for power grid data is provided, and the quality management method for power grid data includes:
[0009] Testing the pre-built deep learning network that has been approximately calculated to obtain an error generated by the pre-built deep learning network that has been approximately calculated;
[0010] Determining a data recognition network based on errors generated by the pre-built deep learning network after the approximate calculation;
[0011] The data recognition network is used to classify the power grid data.
[0012] Preferably, the error determination data recognition network based on the pre-built deep learning network after approximate calculation comprises:
[0013] If the error generated by the pre-built deep learning network after approximate calculation is not greater than twice the preset error limit, the pre-built deep learning network after approximate calculation is used as the data recognition network; otherwise, the pre-built deep learning network without approximate calculation is used as the data recognition network.
[0014] Preferably, the training process of the pre-built deep learning network includes:
[0015] Obtain positive sample data and negative sample data corresponding to real power grid data;
[0016] The positive sample data is expanded using a normal distribution rule, and the negative sample data is expanded using a random distribution rule;
[0017] Use the expanded positive sample data and negative sample data to construct a training data set;
[0018] The initial deep learning network is trained using the training data set to obtain the pre-constructed deep learning network.
[0019] Furthermore, the deep learning network comprises N parallel CNN networks with the same weights.
[0020] Furthermore, the process of obtaining the pre-built deep learning network through approximate calculation includes:
[0021] Step S11. quantize the parameters of each parallel CNN network using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0022] Step S12. quantize the parameters of the first parallel CNN network using the first quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0023] Step S13. quantize the parameters of the first parallel CNN network using the initialization quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the first quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0024] Step S14. quantize the parameters of the first parallel CNN network using the second quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0025] Step S15. Calculate the quality index of the deep learning network obtained in steps S11, S12, S13 and S14 based on the output accuracy and computational cost of the deep learning network obtained in steps S11, S12, S13 and S14;
[0026] Step S16: Obtain the deep learning network with the largest quality index.
[0027] Furthermore, the initialization quantization precision is 64 bits, the first quantization precision is 32 bits, and the second quantization precision is 16 bits.
[0028] Furthermore, the process of acquiring the pre-built deep learning network through approximate calculation also includes:
[0029] Step S21. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the initial attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0030] Step S22. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index as the first attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0031] Step S23. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the second attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0032] Step S24. Calculate the quality index of the deep learning network obtained in steps S21, S22 and S23 based on the output accuracy and computational cost of the deep learning network obtained in steps S21, S22 and S23;
[0033] Step S25: Obtain the deep learning network with the largest quality index.
[0034] Furthermore, the vector for initializing the attention removal weight is ([a 11 , a 12 ...a 1N ],[a 21 , a 22 ...a 2N ]...[a i1 , a i2 ...a iN ]...[a N1 , a N2 ...a NN ]) where j∈[1,M], a ij =1;
[0035] The vector of the first attention removal weight is [b 11 , b 12 ...b 1N ],[b 21 , b 22 ...b 2N ]...[b i1 , b i2 ...b iN ]...[b N1 , b N2 ...bNN ]),in,
[0036] The vector of the second attention removal weight is ([c 12 , c 12 ...c 1N ],[c 21 , c 22 ...c 2N ]...[c i1 , c i2 ...c iN ]...[c N1 , c N2 ...c NN ]),in,
[0037] Furthermore, the quality index is equal to normalize1*normalize2, wherein normalize1 is the output accuracy and normalize2 is the calculation cost.
[0038] In a second aspect, a quality management device for power grid data is provided, wherein the quality management device for power grid data comprises:
[0039] A testing module, used for testing the pre-built deep learning network after approximate calculation, and obtaining an error generated by the pre-built deep learning network after approximate calculation;
[0040] A determination module, configured to determine a data recognition network based on an error generated by the pre-built deep learning network after the approximate calculation;
[0041] A classification module is used to classify the power grid data using the data recognition network.
[0042] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0043] The present invention relates to the field of power grid data security technology, and specifically provides a method and device for quality management of power grid data, including: testing a pre-built deep learning network that has been approximated to obtain the error generated by the pre-built deep learning network that has been approximated; determining a data identification network based on the error generated by the pre-built deep learning network that has been approximated; and classifying power grid data using the data identification network. The technical solution provided by the present invention can establish a targeted and optimized network structure and algorithm, can solve this specific type of big data application with guaranteed quality and quantity, serve data quality management applications such as data entity identification, provide solid technical support for data management work, and improve data asset quality, data management capabilities, and system R&D and operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flowchart of the main steps of the quality management method of power grid data according to an embodiment of the present invention;
[0045] Figure 2 It is a main structural block diagram of the quality management device of the power grid data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0048] Example 1
[0049] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a method for quality management of power grid data according to an embodiment of the present invention. Figure 1 As shown, the quality management method of power grid data in the embodiment of the present invention mainly includes the following steps:
[0050] Step S101: testing the pre-built deep learning network after approximate calculation to obtain an error generated by the pre-built deep learning network after approximate calculation;
[0051] Step S102: determining a data recognition network based on the error generated by the pre-built deep learning network after approximate calculation;
[0052] Step S103: using the data identification network to classify the power grid data.
[0053] In this example, the error determination data recognition network based on the pre-built deep learning network after approximate calculation includes:
[0054] If the error generated by the pre-built deep learning network after approximate calculation is not greater than twice the preset error limit, the pre-built deep learning network after approximate calculation is used as the data recognition network; otherwise, the pre-built deep learning network without approximate calculation is used as the data recognition network.
[0055] In this example, the training process of the pre-built deep learning network includes:
[0056] Obtain positive sample data and negative sample data corresponding to real power grid data;
[0057] The positive sample data is expanded using a normal distribution rule, and the negative sample data is expanded using a random distribution rule;
[0058] Use the expanded positive sample data and negative sample data to construct a training data set;
[0059] The initial deep learning network is trained using the training data set to obtain the pre-constructed deep learning network.
[0060] In one embodiment, the deep learning network comprises N parallel CNN networks with the same weights.
[0061] In one embodiment, the process of acquiring the pre-built deep learning network through approximate calculation includes:
[0062] Step S11. quantize the parameters of each parallel CNN network using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0063] Step S12. quantize the parameters of the first parallel CNN network using the first quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0064] Step S13. quantize the parameters of the first parallel CNN network using the initialization quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the first quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0065] Step S14. quantize the parameters of the first parallel CNN network using the second quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0066] Step S15. Calculate the quality index of the deep learning network obtained in steps S11, S12, S13 and S14 based on the output accuracy and computational cost of the deep learning network obtained in steps S11, S12, S13 and S14;
[0067] Step S16: Obtain the deep learning network with the largest quality index.
[0068] In one implementation, the initialization quantization precision is 64 bits, the first quantization precision is 32 bits, and the second quantization precision is 16 bits.
[0069] In one embodiment, the process of acquiring the pre-built deep learning network through approximate calculation further includes:
[0070] Step S21. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the initial attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0071] Step S22. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index as the first attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0072] Step S23. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the second attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0073] Step S24. Calculate the quality index of the deep learning network obtained in steps S21, S22 and S23 based on the output accuracy and computational cost of the deep learning network obtained in steps S21, S22 and S23;
[0074] Step S25: Obtain the deep learning network with the largest quality index.
[0075] In one embodiment, the vector for initializing the attention removal weights is ([a 11 a12...a 1N ],[a 21 , a 22 ...a 2N ]...[a i1 , a i2 ...a iN ]...[a N1 , a N2 ...a NN ]), where j∈[1,M], a ij =1;
[0076] The vector of the first attention removal weight is ([b 11 , b 12 ...b 1N ],[b 21 , b 22 ...b 2N ]...[b i1 , b i2 ...b iN ]...[b N1 , b N2 ...b NN ]),in,
[0077] The vector of the second attention removal weight is ([c 11 , c 12 ...c 1N ],[c 21 , c 22 ...c 2N ]...[c i1 , c i2 ...c iN ]...[c N1 , c N2 ...c NN ]),in,
[0078] In one implementation, the quality indicator is equal to normalize1*normalize2, where normalize1 is the output accuracy and normalize2 is the computational cost.
[0079] Based on the above scheme, the present invention provides a most effective implementation method, which specifically includes:
[0080] 1) First, K real data are collected, including K1 positive samples and K2 negative samples, and K1+K2=K. For the K1 positive samples, the data is expanded to N1 approximate data according to the normal distribution rule; for the K2 negative samples, the data is expanded to N2 approximate data according to the random distribution rule, and a total of N1+N2=N approximate data is obtained.
[0081] 2) Convert the N pieces of approximate data into training data that can be used by the neural network, with the aim of making them conform to the input and output characteristics of the selected neural network model.
[0082] 3) After the collected data is converted, it will be used as training data for the neural network. This patent proposes a network training method and structure for approximate calculations of parallel convolutional neural networks, characterized in that the deep learning network system can be designed at a configurable quality level, that is, the computational cost and computational accuracy are weighed and configured according to demand. Specifically, in the process of training parallel CNN networks, the difference accuracy quantization method obtained through training is used on each CNN network to approximate the output of the parallel CNN network (such as classifier accuracy, etc.) to the original overall network quality, and the weights of the neuron modules that have the least impact on the output quality are identified and marked on the parallel CNN network through the attention removal mechanism.
[0083] 4) When a project using approximate computing is actually running on an edge computing device, the original model that has not undergone approximate computing and the approximate model that has undergone approximate computing will first be deployed to the corresponding edge computing device, and preliminary testing will be carried out together with computing devices such as the CPU. When the hardware receives an input data, it will make a choice: that is, if it is believed that this approximate model will produce an error on the edge computing device that is more than twice the set error limit, the data will be selected to the model that has not undergone approximate computing, and the data will flow to other devices to obtain the result on the original model; otherwise, the data will be selected to the approximate model, and the approximate model will calculate the result corresponding to this input and return it to the CPU.
[0084] Example 2
[0085] Based on the same inventive concept, the present invention also provides a quality management device for power grid data, such as Figure 2 As shown, the quality management device of the power grid data includes:
[0086] A testing module, used for testing the pre-built deep learning network after approximate calculation, and obtaining an error generated by the pre-built deep learning network after approximate calculation;
[0087] A determination module, configured to determine a data recognition network based on an error generated by the pre-built deep learning network after the approximate calculation;
[0088] A classification module is used to classify the power grid data using the data recognition network.
[0089] Preferably, the error determination data recognition network based on the pre-built deep learning network after approximate calculation comprises:
[0090] If the error generated by the pre-built deep learning network after approximate calculation is not greater than twice the preset error limit, the pre-built deep learning network after approximate calculation is used as the data recognition network; otherwise, the pre-built deep learning network without approximate calculation is used as the data recognition network.
[0091] Preferably, the training process of the pre-built deep learning network includes:
[0092] Obtain positive sample data and negative sample data corresponding to real power grid data;
[0093] The positive sample data is expanded using a normal distribution rule, and the negative sample data is expanded using a random distribution rule;
[0094] Use the expanded positive sample data and negative sample data to construct a training data set;
[0095] The initial deep learning network is trained using the training data set to obtain the pre-constructed deep learning network.
[0096] Furthermore, the deep learning network comprises N parallel CNN networks with the same weights.
[0097] Furthermore, the process of obtaining the pre-built deep learning network through approximate calculation includes:
[0098] Step S11. quantize the parameters of each parallel CNN network using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0099] Step S12. quantize the parameters of the first parallel CNN network using the first quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0100] Step S13. quantize the parameters of the first parallel CNN network using the initialization quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the first quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0101] Step S14. quantize the parameters of the first parallel CNN network using the second quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network;
[0102] Step S15. Calculate the quality index of the deep learning network obtained in steps S11, S12, S13 and S14 based on the output accuracy and computational cost of the deep learning network obtained in steps S11, S12, S13 and S14;
[0103] Step S16: Obtain the deep learning network with the largest quality index.
[0104] Furthermore, the initialization quantization precision is 64 bits, the first quantization precision is 32 bits, and the second quantization precision is 16 bits.
[0105] Furthermore, the process of acquiring the pre-built deep learning network through approximate calculation also includes:
[0106] Step S21. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the initial attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0107] Step S22. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index as the first attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0108] Step S23. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the second attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network;
[0109] Step S24. Calculate the quality index of the deep learning network obtained in steps S21, S22 and S23 based on the output accuracy and computational cost of the deep learning network obtained in steps S21, S22 and S23;
[0110] Step S25: Obtain the deep learning network with the largest quality index.
[0111] Furthermore, the vector for initializing the attention removal weight is ([a 11 ,a 12 ...a 1N ],[a 21 , a 22 ...a 2N ]...[a i1 , a i2 ...a iN ]...[a N1 , a N2 ...a NN ]), where j∈[1,N], a ij =1;
[0112] The vector of the first attention removal weight is ([b 11 , b 12 ...b 1N ],[b 21 , b 22 ...b 2N ]...[b i1 , b i2 ...b iN ]...[b N1 , b N2 ...b NN ]),in,
[0113] The vector of the second attention removal weight is [c 11 , c 12 ...c 1N ],[c 21 , c 22 ...c 2N ]...[c i1 , c i2 ...c iN ]...[cN1 , c N2 ...c NN ]),in,
[0114] Furthermore, the quality index is equal to normalize1*normalize2, wherein normalize1 is the output accuracy and normalize2 is the calculation cost.
[0115] Example 3
[0116] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function, so as to implement the steps of a quality management method for power grid data in the above embodiment.
[0117] Example 4
[0118] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of a quality management method for power grid data in the above embodiment.
[0119] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0120] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A quality management method for power grid data, characterized in that: The method comprises: Testing the pre-built deep learning network that has been approximately calculated to obtain an error generated by the pre-built deep learning network that has been approximately calculated; Determining a data recognition network based on errors generated by the pre-built deep learning network after the approximate calculation; Classifying power grid data using the data identification network; The deep learning network is a parallel CNN network comprising N networks with the same weights; The process of obtaining the pre-built deep learning network through approximate calculation includes: Step S11. quantize the parameters of each parallel CNN network using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network; Step S12. quantize the parameters of the first parallel CNN network using the first quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network; Step S13. quantize the parameters of the first parallel CNN network using the initialization quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the first quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network; Step S14. quantize the parameters of the first parallel CNN network using the second quantization accuracy, quantize the parameters of the remaining parallel CNN networks using the initialization quantization accuracy, and test the processed deep learning network to obtain the output accuracy and computational cost of the processed deep learning network; Step S15. Calculate the quality index of the deep learning network obtained in steps S11, S12, S13 and S14 based on the output accuracy and computational cost of the deep learning network obtained in steps S11, S12, S13 and S14; Step S16. Obtaining a deep learning network with the largest quality index; The process of obtaining the pre-built deep learning network through approximate calculation also includes: Step S21. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the initial attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network; Step S22. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index as the first attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network; Step S23. Update the attention removal weight of each parallel CNN network in the deep learning network with the largest quality index to the second attention removal weight, and test the processed deep learning network to obtain the output accuracy and computational cost of the test of the processed deep learning network; Step S24. Calculate the quality index of the deep learning network obtained in steps S21, S22 and S23 based on the output accuracy and computational cost of the deep learning network obtained in steps S21, S22 and S23; Step S25: Obtain the deep learning network with the largest quality index.
2. The method according to claim 1, characterized in that The error determination data recognition network generated based on the pre-built deep learning network after approximate calculation includes: If the error generated by the pre-built deep learning network after approximate calculation is not greater than twice the preset error limit, the pre-built deep learning network after approximate calculation is used as the data recognition network; otherwise, the pre-built deep learning network without approximate calculation is used as the data recognition network.
3. The method according to claim 1, characterized in that The training process of the pre-built deep learning network includes: Obtain positive sample data and negative sample data corresponding to real power grid data; The positive sample data is expanded using a normal distribution rule, and the negative sample data is expanded using a random distribution rule; Use the expanded positive sample data and negative sample data to construct a training data set; The initial deep learning network is trained using the training data set to obtain the pre-constructed deep learning network.
4. The method according to claim 1, characterized in that The initialization quantization precision is 64 bits, the first quantization precision is 32 bits, and the second quantization precision is 16 bits.
5. The method according to claim 1, characterized in that The vector for initializing the attention removal weight is ([a 11 ,a 12 …a 1N ],[a 21 ,a 22 …a 2N ]…[a i1 ,a i2 …a iN ]…[a N1 ,a N2 …a NN ]), where j∈[1,N], a ij =1; The vector of the first attention removal weight is ([b 11 ,b 12 …b 1N ],[b 21 ,b 22 …b 2N ]…[b i1 ,b i2 …b iN ]…[b N1 ,b N2 …b NN ]),in, The vector of the second attention removal weight is ([c 11 ,c 12 …c 1N ],[c 21 ,c 22 …c 2N ]…[c i1 ,c i2 …c iN ]…[c N1 ,c N2 …c NN ]),in, 6. The method according to claim 1, characterized in that The quality index is equal to normalize1*normalize2, where normalize1 is the output accuracy and normalize2 is the calculation cost.
7. A device for the quality management method of power grid data according to any one of claims 1 to 6, characterized in that: The device comprises: A testing module, used for testing the pre-built deep learning network after approximate calculation, and obtaining an error generated by the pre-built deep learning network after approximate calculation; A determination module, configured to determine a data recognition network based on an error generated by the pre-built deep learning network after the approximate calculation; A classification module is used to classify the power grid data using the data recognition network.
Citation Information
Patent Citations
Deep neural network model compression training method, device and apparatus and medium
CN111488985A
Fault detection method for neural network processor
CN112115009A
Network model quantization method and electronic apparatus
US20220036162A1
Ai inference hardware resource scheduling
US20220083389A1
