Abnormality detection method, abnormality detection device and storage medium of power system
By using the fusion detection module and optimized detection model in the power system to automatically analyze power information, it solves the problems of low manual analysis efficiency and accuracy dependence on expert knowledge in the existing technology, and realizes the automation and precision of power system anomaly detection. Improved operational safety.
Patent Information
- Application Number
- CN202110700213.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-06-23
AI Technical Summary
In the existing technology, power system anomaly detection relies on manual analysis, which is inefficient and relies on expert knowledge reserves for accuracy, resulting in high cost and unreliability, and cannot meet the needs of enterprises.
The fusion detection module is used to detect abnormalities in the power system. By establishing and optimizing the preset fusion detection model, the power information is automatically analyzed, abnormal detection results are generated, and detection efficiency and accuracy are improved.
It realizes the automation and precision of power system anomaly detection, reduces labor costs, improves the operational safety of the power system, and meets the actual needs of enterprises.
Smart Images

Figure CN113591909B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system detection, and in particular to a power system anomaly detection method, a power system anomaly detection device and a computer-readable storage medium. Background Art
[0002] In modern cities, people's daily electricity consumption mainly relies on the power grid for the transmission of electric energy, so the safe and reliable operation of the power system is very important. With the continuous development of technology, technicians can monitor the normal operation of the power system by monitoring the operating data of power equipment.
[0003] In actual application, since the number of power equipment connected to the power system is very large, the monitored and accumulated power data is very large. Therefore, in the existing technology, on the one hand, the huge power data is stored and anomalies are detected through terminal equipment; on the other hand, the power data is input into the expert system and the corresponding experts manually analyze the power data to diagnose the anomalies of the power system.
[0004] However, although power data can be stored and anomaly detected through terminal devices, anomaly detection in existing technologies still requires manual processing of abnormal data first, such as labeling the characteristics, types, and line endpoints of the abnormal data before entering the terminal device for data analysis; on the other hand, due to the huge amount of power data, the analysis efficiency of abnormal data analysis through expert systems is low, and the accuracy of the analysis is heavily dependent on the knowledge reserves of experts, which is highly unreliable and leads to high labor costs, which cannot meet the actual needs of enterprises. Summary of the invention
[0005] In order to overcome the above-mentioned technical problems existing in the prior art, an embodiment of the present invention provides an anomaly detection method for an electric power system. By adopting a fusion detection module, accurate and automatic anomaly detection is performed on the anomaly of the electric power system, thereby improving the detection efficiency and detection accuracy of anomaly detection and improving the processing efficiency of anomaly handling.
[0006] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides an abnormality detection method for an electric power system, the detection method comprising: obtaining electric power information of the electric power system, the electric power information comprising multiple electric power data; obtaining a preset fusion detection model; analyzing the electric power information based on the preset fusion detection model to obtain analyzed information; processing the analyzed information based on the preset fusion detection model to obtain processed information; and generating an abnormality detection result of the electric power system based on the processed information.
[0007] Preferably, the obtaining of the preset fusion detection model includes: establishing a first initial model and a second initial model; obtaining a preset experimental data set, and generating training data based on the preset experimental data set; training the first initial model based on the training data to obtain the cluster detection model; obtaining the first cluster and the first cluster center of the training data based on the cluster detection model; obtaining the first distance between the training data and the first cluster center; processing the training data based on the first cluster and the first distance to obtain processed training data; training the second initial model based on the processed training data to obtain a classification detection model; performing a fusion operation on the cluster detection model and the classification detection model to obtain the preset fusion detection model.
[0008] Preferably, the detection method also includes: generating test data corresponding to the training data based on the preset experimental data set; processing the test data based on the first cluster and the first distance to obtain processed test data; and verifying the preset fusion detection model based on the processed test data.
[0009] Preferably, after verifying the preset fusion detection model based on the processed test data, the detection method further includes: when the verification result is that the preset fusion detection model does not meet the preset detection requirements, obtaining corresponding optimization parameters based on the verification result; optimizing the preset fusion detection model based on the optimization parameters to obtain an optimized preset fusion detection model.
[0010] Preferably, the analyzing the power information based on the preset fusion detection model to obtain the analyzed information includes: preprocessing the power information to obtain preprocessed information; performing conversion processing on the preprocessed information to obtain converted information; performing clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and second cluster center corresponding to the converted information; obtaining the second distance between each power data and the corresponding second cluster center; and generating the analyzed information based on the power information, the second cluster and the second distance.
[0011] Preferably, the preprocessing of the power information to obtain preprocessed information includes: extracting ratio information of ratio type in the power information; performing a benchmark alignment operation on the ratio information to obtain aligned information; and updating the power information based on the aligned information to obtain preprocessed information.
[0012] Preferably, performing conversion processing on the preprocessed information to obtain converted information includes: acquiring a preset data format; performing data extraction on the preprocessed information to obtain extracted data; performing format conversion on the extracted data based on the preset data format to obtain converted information.
[0013] Preferably, the post-analysis information is processed based on the preset fusion detection model to obtain the processed information, including: classifying the post-analysis information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes the abnormal probability of the power data; and using the classification information as the processed information.
[0014] Preferably, generating an abnormality detection result of the power system based on the processed information includes: obtaining a preset probability threshold; determining whether the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data abnormality when the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data normality when the abnormal probability of the power data is less than or equal to the preset probability threshold.
[0015] Preferably, the detection method also includes: when the abnormal detection result is a data abnormality, obtaining corresponding abnormal data; extracting abnormal parameters of the abnormal data; determining a processing priority of the abnormal data based on the abnormal parameters; and performing a sequential output operation on the abnormal data based on the processing priority.
[0016] Preferably, the abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: obtaining a mapping relationship between the processing priority and the abnormal parameters, and the mapping relationship is characterized as: P=D+k*L; wherein k is a preset slope of the mapping relationship; and determining the processing priority of the abnormal data based on the mapping relationship and the abnormal parameters.
[0017] Correspondingly, the present invention also provides an abnormality detection device for an electric power system, the detection device comprising: a first acquisition unit, used to acquire electric power information of the electric power system, the electric power information comprising multiple electric power data; a second acquisition unit, used to acquire a preset fusion detection model; an analysis unit, used to analyze the electric power information based on the preset fusion detection model to obtain analyzed information; a processing unit, used to process the analyzed information based on the preset fusion detection model to obtain processed information; and a detection unit, used to generate an abnormality detection result of the electric power system based on the processed information.
[0018] Preferably, the second acquisition unit includes: a model building module, which is used to build a first initial model and a second initial model; a data acquisition module, which is used to acquire a preset experimental data set and generate training data based on the preset experimental data set; a first training module, which is used to train the first initial model based on the training data to obtain a cluster detection model; a first intermediate information acquisition module, which is used to acquire the first cluster and the first cluster center of the training data based on the cluster detection model; a second intermediate information acquisition module, which is used to acquire the first distance between the training data and the first cluster center; a data processing module, which is used to process the training data based on the first cluster and the first distance to obtain processed training data; a second training module, which is used to train the second initial model based on the processed training data to obtain a classification detection model; a fusion module, which is used to perform a fusion operation on the cluster detection model and the classification detection model to obtain the preset fusion detection model.
[0019] Preferably, the second acquisition unit also includes a testing module, which is used to: generate test data corresponding to the training data based on the preset experimental data set; process the test data based on the first cluster and the first distance to obtain processed test data; and verify the preset fusion detection model based on the processed test data.
[0020] Preferably, after verifying the preset fusion detection model based on the processed test data, the testing module is also used to: when the verification result is that the preset fusion detection model does not meet the preset detection requirements, obtain corresponding optimization parameters based on the verification result; optimize the preset fusion detection model based on the optimization parameters to obtain the optimized preset fusion detection model.
[0021] Preferably, the analysis unit includes: a preprocessing module, used to preprocess the power information to obtain preprocessed information; a conversion module, used to perform conversion processing on the preprocessed information to obtain converted information; a third intermediate information acquisition module, used to perform clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and second cluster center corresponding to the converted information; a fourth intermediate information acquisition module, used to obtain the second distance between each power data and the corresponding second cluster center; an analysis information generation module, used to generate the analyzed information based on the power information, the second cluster and the second distance.
[0022] Preferably, the preprocessing module is used to: extract ratio information of ratio type from the power information; perform a benchmark alignment operation on the ratio information to obtain aligned information; and update the power information based on the aligned information to obtain preprocessed information.
[0023] Preferably, performing conversion processing on the preprocessed information to obtain converted information includes: acquiring a preset data format; performing data extraction on the preprocessed information to obtain extracted data; performing format conversion on the extracted data based on the preset data format to obtain converted information.
[0024] Preferably, the processing unit includes: a classification module, used to classify the analyzed information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes the abnormal probability of the power data; and a determination module, used to use the classification information as the processed information.
[0025] Preferably, generating an abnormality detection result of the power system based on the processed information includes: obtaining a preset probability threshold; determining whether the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data abnormality when the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data normality when the abnormal probability of the power data is less than or equal to the preset probability threshold.
[0026] Preferably, the detection device also includes a priority processing unit, which includes: an abnormal data acquisition module, used to obtain corresponding abnormal data when the abnormal detection result is data abnormality; an abnormal parameter extraction module, used to extract abnormal parameters of the abnormal data; a priority determination module, used to determine the processing priority of the abnormal data based on the abnormal parameters; and an output module, used to perform sequential output operations on the abnormal data based on the processing priority.
[0027] Preferably, the abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: obtaining a mapping relationship between the processing priority and the abnormal parameters, and the mapping relationship is characterized as: P=D+k*L; wherein k is a preset slope of the mapping relationship; and determining the processing priority of the abnormal data based on the mapping relationship and the abnormal parameters.
[0028] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the power system abnormality detection method provided by the present invention.
[0029] Through the technical solution provided by the present invention, the present invention has at least the following technical effects:
[0030] By improving the existing detection model and adopting the model fusion method to obtain the fused detection model, the defects or shortcomings of a single detection model can be reduced or overcome while taking into account the advantages of each detection model, thereby achieving a more intelligent anomaly detection effect, improving anomaly detection efficiency, and improving detection accuracy; improving anomaly handling efficiency, improving the operational safety of the power system, and meeting the actual needs of the enterprise.
[0031] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0033] Figure 1 is a specific implementation flow chart of the abnormality detection method for the power system provided by an embodiment of the present invention;
[0034] Figure 2 It is a specific implementation flow chart of obtaining a preset fusion detection model in the abnormality detection method of the power system provided by an embodiment of the present invention;
[0035] Figure 3 It is a specific implementation flow chart of analyzing power information to obtain analyzed information in the power system abnormality detection method provided by an embodiment of the present invention;
[0036] Figure 4 It is a structural schematic diagram of an abnormality detection device for a power system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to overcome the above-mentioned technical problems existing in the prior art, an embodiment of the present invention provides an anomaly detection method for an electric power system, which automatically detects anomalies of electric power information based on the fused hybrid model by fusing multiple analysis models, thereby effectively improving the detection efficiency and accuracy of anomaly detection and reducing the manpower cost of the enterprise.
[0038] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0039] The terms "system" and "network" in the embodiments of the present invention can be used interchangeably. "Multiple" means two or more than two. In view of this, "multiple" can also be understood as "at least two" in the embodiments of the present invention. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previous and subsequent associated objects are in an "or" relationship. In addition, it should be understood that in the description of the embodiments of the present invention, the words "first", "second", etc. are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0040] See also Figure 1 The embodiment of the present invention provides a method for detecting abnormality in a power system, the method comprising:
[0041] S10) acquiring power information of the power system, wherein the power information includes a plurality of power data;
[0042] S20) obtaining a preset fusion detection model;
[0043] S30) analyzing the power information based on the preset fusion detection model to obtain analyzed information;
[0044] S40) processing the analyzed information based on the preset fusion detection model to obtain processed information;
[0045] S50) Generate an abnormality detection result of the power system based on the processed information.
[0046] In the prior art, anomaly detection of the power system through a single detection model often has detection advantages in one direction and detection disadvantages in another direction. Therefore, in order to solve the above technical problems, in one possible implementation, before anomaly detection is performed on the power system, a preset fusion detection model based on multiple monitoring models is constructed for the power system. For example, the preset fusion detection model can be formed by fusion of multiple detection models. The above multiple detection models include but are not limited to statistical detection models, clustering detection models, classification detection models, regression detection models, deep neural network detection models, etc. By performing fusion operations on the above detection models, the advantages of each detection model are fully utilized, and the defects of each detection model are improved through other detection models to achieve better power anomaly detection effects.
[0047] See also Figure 2 In the embodiment of the present invention, the step of obtaining a preset fusion detection model includes:
[0048] S21) establishing a first initial model and a second initial model;
[0049] S22) obtaining a preset experimental data set, and generating training data based on the preset experimental data set;
[0050] S23) training the first initial model based on the training data to obtain a cluster detection model;
[0051] S24) acquiring a first cluster and a first cluster center of the training data based on the cluster detection model;
[0052] S25) obtaining a first distance between the training data and the first cluster center;
[0053] S26) processing the training data based on the first cluster and the first distance to obtain processed training data;
[0054] S27) training the second initial model based on the processed training data to obtain a classification detection model;
[0055] S28) performing a fusion operation on the clustering detection model and the classification detection model to obtain the preset fusion detection model.
[0056] In a possible implementation, the detection model to be fused can be determined first. For example, in an embodiment of the present invention, a first initial model and a second initial model are first established, and then a preset experimental data set is obtained. For example, the preset experimental data set can be obtained from a log database of the power system. Since the amount of data in the log database is often large, an ETL tool can be used to export it in batches. After obtaining the preset experimental data set, corresponding training data is generated according to the preset experimental data set, and the first initial model is trained based on the training data, and a corresponding cluster detection model is obtained.
[0057] At this time, the training data is further processed according to the trained clustering detection model. For example, in an embodiment of the present invention, the training data is processed according to the clustering model to obtain a first cluster of the training data and a corresponding first cluster center. Further, a first distance between each training data and the first cluster center is obtained. Then, the training data is processed according to the first cluster and first distance obtained above to obtain processed data for subsequent processing. At this time, the second initial model is trained according to the processed training data to obtain a classification detection model. At this time, the clustering detection model and the classification detection model are fused to obtain a preset fusion detection model after the final fusion.
[0058] In an embodiment of the present invention, the detection model is optimized on the basis of the existing technology, and the detection models with different advantages are integrated to effectively reduce the defects of each detection model itself on the basis of the detection advantages of each detection model, thereby effectively improving the detection accuracy and efficiency of abnormal detection of the power system and meeting the actual abnormal detection needs of the enterprise.
[0059] In an embodiment of the present invention, the detection method also includes: generating test data corresponding to the training data based on the preset experimental data set; processing the test data based on the first cluster and the first distance to obtain processed test data; and verifying the preset fusion detection model based on the processed test data.
[0060] Furthermore, in an embodiment of the present invention, after verifying the preset fusion detection model based on the processed test data, the detection method also includes: when the verification result is that the preset fusion detection model does not meet the preset detection requirements, obtaining corresponding optimization parameters based on the verification result; optimizing the preset fusion detection model based on the optimization parameters to obtain an optimized preset fusion detection model.
[0061] In one possible implementation, in order to ensure that the generated preset fusion detection model has sufficient accuracy and coverage for anomaly detection, in the process of obtaining the above-mentioned preset fusion detection model, while generating training data based on the preset experimental data set, corresponding test data is also generated. For example, the test data can be backup data that is the same as the training data, or it can be test data that is different from the training data. After obtaining the first cluster and the first distance of the training data according to the clustering detection model, the test data can be further processed according to the first cluster and the first distance to obtain the processed test data. At this time, the preset fusion detection model is verified by the processed test data, for example, the processed test data is subjected to anomaly detection by the preset fusion detection model, and the corresponding anomaly detection result is obtained.
[0062] For example, in one embodiment, 10 processed test data are input into the preset fusion detection model for anomaly detection, and anomaly detection results are outputted, indicating that 2 items of data are normal and 8 items of data are abnormal. The above 10 processed test data actually contain 10 abnormal data, that is, the accuracy of the preset fusion detection model is 80%. For example, in an embodiment of the present invention, when the accuracy of the preset fusion detection model is above 90%, it is determined that the preset fusion detection model meets the preset detection requirements, that is, the verification result of the preset fusion detection model obtained in this embodiment does not meet the preset detection requirements. Therefore, the corresponding optimization parameters are obtained according to the above verification results. For example, the preset fusion detection model can be optimized and analyzed according to the above 2 items of data that are misdetected or missed, and the corresponding optimization parameters are obtained. At this time, the preset fusion detection model is optimized according to the optimization parameters, for example, the optimization parameters are replaced with the original parameters to obtain the optimized preset fusion detection model.
[0063] In an embodiment of the present invention, in the process of establishing a preset fusion detection model, the preset fusion detection model is optimized according to relevant indicators of actual detection of the preset fusion detection model, such as the relevant indicators including but not limited to the accuracy and anomaly coverage of the preset fusion detection model, so as to obtain a preset fusion detection model that meets the detection requirements, thereby effectively ensuring sufficient detection accuracy in the subsequent anomaly detection process.
[0064] After creating a qualified preset fusion detection model, start real-time abnormal monitoring of the power system. Figure 3 In an embodiment of the present invention, the analyzing the power information based on the preset fusion detection model to obtain the analyzed information includes:
[0065] S31) preprocessing the power information to obtain preprocessed information;
[0066] S32) performing conversion processing on the pre-processed information to obtain converted information;
[0067] S33) performing clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and a second cluster center corresponding to the converted information;
[0068] S34) acquiring a second distance between each power data and the corresponding second cluster center;
[0069] S35) Generate the analyzed information based on the power information, the second cluster and the second distance.
[0070] In a possible implementation, the power information of the power system is first obtained, and the obtained power information includes multiple power data. In the actual monitoring process of the power system, each line endpoint of the power system periodically collects the power information of each line and stores it in the database. Therefore, in the process of obtaining the above power information, since the amount of power information data stored in the database is huge, the power information can be exported in batches through the ETL tool. However, in the actual application process, since the data at the line endpoint is streaming data, each data is composed of a key-value pair consisting of a line ID and a data record, and the streaming data does not meet the input data format requirements of the detection model, it is necessary to preprocess the acquired power information to meet the input data format requirements of the preset fusion detection model.
[0071] In an embodiment of the present invention, the preprocessing of the power information to obtain preprocessed information includes: extracting ratio information of ratio type in the power information; performing a benchmark alignment operation on the ratio information to obtain aligned information; and updating the power information based on the aligned information to obtain preprocessed information.
[0072] Since the power data in the power system is different from the data in other industries, there are more ratio-type data in the power data. However, the ratio benchmarks of different ratio-type data are different. Therefore, in order to ensure the effectiveness and accuracy of subsequent data analysis and anomaly detection, the ratio information of the ratio type in the power information is first extracted, and then the benchmark alignment operation is performed on the above ratio information. For example, in an embodiment of the present invention, the ratio benchmark of each ratio-type information can be set to 1 to ensure that each ratio-type data has the same reference benchmark to obtain aligned information, and then the power information is updated according to the aligned information, for example, the aligned information and non-ratio-type power information are merged to obtain pre-processed information.
[0073] Furthermore, the data format of the preprocessed information is converted. In an embodiment of the present invention, the conversion processing is performed on the preprocessed information to obtain the converted information, including: obtaining a preset data format; performing data extraction on the preprocessed information to obtain extracted data; and performing format conversion on the extracted data based on the preset data format to obtain converted information.
[0074] In a possible implementation, a preset data format is first obtained, for example, the preset data format may be [serial number, attribute name, attribute value], and then data extraction is performed on the preprocessed information to obtain extracted data, for example, the attribute name and the corresponding attribute value in the preprocessed information may be extracted, and then the extracted data may be format converted according to the preset data format, for example, the data may be stored in the preset format to obtain converted information, see Table 1:
[0075] Serial number Property Name Property Value 1 Time 08.17.49 2 BV_Value 500KV 3 STATUS 1
[0076] Table 1
[0077] At this time, clustering processing is performed on the above-mentioned converted information according to the preset fusion detection model to obtain at least one second cluster and a second cluster center corresponding to the converted information. For example, in an embodiment of the present invention, 5 clusters and corresponding 5 cluster centers are obtained after clustering processing of the converted information. At this time, the second distance between each power data in the power information and the second cluster center is further obtained, and the analyzed information is generated according to the above-mentioned power information, the second cluster and the second distance. For example, the above-mentioned information is packaged to generate the analyzed information. For example, the storage format of the analyzed information is [power data, second cluster, second distance].
[0078] In an embodiment of the present invention, the power data is pre-processed to convert streaming data and randomly stored data into data that can be machine-processed, and the above data is further processed through a clustering model to achieve information gain effect on the power data, thereby effectively reducing the difficulty of subsequent data processing and improving the reliability and accuracy of the data processing process.
[0079] In an embodiment of the present invention, the post-analysis information is processed based on the preset fusion detection model to obtain the processed information, including: classifying the post-analysis information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes the abnormal probability of the power data; and using the classification information as the processed information.
[0080] Furthermore, in an embodiment of the present invention, generating an abnormality detection result of the power system based on the processed information includes: obtaining a preset probability threshold; determining whether the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data abnormality when the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data normality when the abnormal probability of the power data is less than or equal to the preset probability threshold.
[0081] In the prior art, in the process of processing power data by a classification model alone, each power data needs to be manually labeled, such as labeling the type of power data and other information, which requires a lot of manpower, greatly increases the workload of technical personnel, and reduces work efficiency. Therefore, in order to solve the above technical problems, in a possible implementation, the power data is first clustered by a preset fusion detection model to achieve a data gain effect on the power data. On this basis, the preset fusion detection model can directly classify each power data based on the second cluster and the corresponding second distance contained in the analyzed information, and obtain corresponding classification information, such as the classification information including the abnormal probability of each power data.
[0082] At this time, the preset probability threshold is obtained, and it is determined whether the abnormal probability of each of the above power data is greater than the preset probability threshold. For example, in one embodiment, if the abnormal probability of a certain power data is greater than the preset probability threshold, the power data is determined to be abnormal data, and thus the corresponding data abnormality anomaly detection result is generated.
[0083] In the embodiment of the present invention, by adopting the fusion model, the technical effect of effectively overcoming the defects of a single detection model is achieved on the basis of taking into account the advantages of each detection model, thereby realizing intelligent and automated anomaly detection of the power system, effectively improving the detection efficiency and detection accuracy in the anomaly detection process, and meeting the normal detection needs of the enterprise.
[0084] In an embodiment of the present invention, the detection method also includes: when the abnormal detection result is a data abnormality, obtaining corresponding abnormal data; extracting abnormal parameters of the abnormal data; determining a processing priority of the abnormal data based on the abnormal parameters; and performing a sequential output operation on the abnormal data based on the processing priority.
[0085] Further, in an embodiment of the present invention, the abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: obtaining a mapping relationship between the processing priority and the abnormal parameters, and the mapping relationship is represented by: P=D+k*L; wherein k is a preset slope of the mapping relationship; and determining the processing priority of the abnormal data based on the mapping relationship and the abnormal parameters.
[0086] In the prior art, when a certain power data is detected to be abnormal, the abnormal data is often directly input into the expert system for abnormal analysis and abnormal processing. However, in actual application, different abnormalities have different impacts on power lines, and experts need to spend different amounts of time to solve different abnormal data. Therefore, the existing exception processing method will lead to low exception processing efficiency and unreasonable exception processing (more importantly, delayed exception processing, etc.), and therefore cannot meet the actual exception processing needs of enterprises.
[0087] Therefore, in a possible implementation, after obtaining the above-mentioned abnormal detection result, when the abnormal detection result is a data abnormality, the corresponding abnormal data is obtained, and the abnormal parameters of the abnormal data are further extracted. For example, the abnormal parameters include but are not limited to a first abnormal parameter D and a second abnormal parameter L. For example, the first abnormal parameter D is the time consumed to resolve the abnormal data, and the second abnormal parameter L is the impact of the abnormal data on the power system. The abnormal parameters corresponding to each power data can be saved in the database in advance by the technician, and automatically called by the power system when the power data is abnormal data.
[0088] At this time, the mapping relationship between the processing priority of each power data and the abnormal parameter is obtained. In an embodiment of the present invention, the mapping relationship can be characterized as a linear mapping relationship of P=D+k*L, where k is characterized as a preset slope of the mapping relationship. According to the mapping relationship, the processing priority of each abnormal data can be determined. Preferably, in an embodiment of the present invention, the allocation of the processing priority is unique, that is, each processing priority corresponds to only one abnormal data. At this time, a sequential output operation is performed on the abnormal data according to the processing priority, for example, each abnormal data is sequentially output to the expert system according to the processing priority, so as to achieve a technical effect of giving priority to abnormal data with a greater impact, or lagging the processing of abnormal data with a longer consumption time.
[0089] In the embodiment of the present invention, by adopting a priority-based exception handling method, the processing efficiency of abnormal data can be effectively improved, the impact of abnormal data on the power system can be reduced, the operational safety of the power system can be improved, and the actual needs of enterprises can be met.
[0090] The abnormality detection device for a power system provided by an embodiment of the present invention is described below with reference to the accompanying drawings.
[0091] See also Figure 4Based on the same inventive concept, an embodiment of the present invention provides an abnormality detection device for an electric power system, the detection device comprising: a first acquisition unit, used to acquire electric power information of the electric power system, the electric power information comprising multiple electric power data; a second acquisition unit, used to acquire a preset fusion detection model; an analysis unit, used to analyze the electric power information based on the preset fusion detection model to obtain analyzed information; a processing unit, used to process the analyzed information based on the preset fusion detection model to obtain processed information; a detection unit, used to generate an abnormality detection result of the electric power system based on the processed information.
[0092] In an embodiment of the present invention, the second acquisition unit includes: a model building module, which is used to build a first initial model and a second initial model; a data acquisition module, which is used to acquire a preset experimental data set and generate training data based on the preset experimental data set; a first training module, which is used to train the first initial model based on the training data to obtain a cluster detection model; a first intermediate information acquisition module, which is used to acquire a first cluster and a first cluster center of the training data based on the cluster detection model; a second intermediate information acquisition module, which is used to acquire a first distance between the training data and the first cluster center; a data processing module, which is used to process the training data based on the first cluster and the first distance to obtain processed training data; a second training module, which is used to train the second initial model based on the processed training data to obtain a classification detection model; a fusion module, which is used to perform a fusion operation on the cluster detection model and the classification detection model to obtain the preset fusion detection model.
[0093] In an embodiment of the present invention, the second acquisition unit also includes a testing module, which is used to: generate test data corresponding to the training data based on the preset experimental data set; process the test data based on the first cluster and the first distance to obtain processed test data; and verify the preset fusion detection model based on the processed test data.
[0094] In an embodiment of the present invention, after the preset fusion detection model is verified based on the processed test data, the testing module is also used to: when the verification result is that the preset fusion detection model does not meet the preset detection requirements, obtain corresponding optimization parameters based on the verification result; optimize the preset fusion detection model based on the optimization parameters to obtain an optimized preset fusion detection model.
[0095] In an embodiment of the present invention, the analysis unit includes: a preprocessing module, used to preprocess the power information to obtain preprocessed information; a conversion module, used to perform conversion processing on the preprocessed information to obtain converted information; a third intermediate information acquisition module, used to perform clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and second cluster center corresponding to the converted information; a fourth intermediate information acquisition module, used to obtain the second distance between each power data and the corresponding second cluster center; an analysis information generation module, used to generate the analyzed information based on the power information, the second cluster and the second distance.
[0096] In an embodiment of the present invention, the preprocessing module is used to: extract ratio information of the ratio type in the power information; perform a benchmark alignment operation on the ratio information to obtain aligned information; and update the power information based on the aligned information to obtain preprocessed information.
[0097] In an embodiment of the present invention, performing conversion processing on the preprocessed information to obtain converted information includes: obtaining a preset data format; performing data extraction on the preprocessed information to obtain extracted data; performing format conversion on the extracted data based on the preset data format to obtain converted information.
[0098] In an embodiment of the present invention, the processing unit includes: a classification module, which is used to classify the analyzed information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes the abnormal probability of the power data; and a determination module, which is used to use the classification information as the processed information.
[0099] In an embodiment of the present invention, generating an abnormality detection result of the power system based on the processed information includes: obtaining a preset probability threshold; determining whether the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data abnormality when the abnormal probability of the power data is greater than the preset probability threshold; generating an abnormality detection result of data normality when the abnormal probability of the power data is less than or equal to the preset probability threshold.
[0100] In an embodiment of the present invention, the detection device also includes a priority processing unit, which includes: an abnormal data acquisition module, which is used to obtain corresponding abnormal data when the abnormal detection result is data abnormality; an abnormal parameter extraction module, which is used to extract abnormal parameters of the abnormal data; a priority determination module, which is used to determine the processing priority of the abnormal data based on the abnormal parameters; and an output module, which is used to perform sequential output operations on the abnormal data based on the processing priority.
[0101] In an embodiment of the present invention, the abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: obtaining a mapping relationship between the processing priority and the abnormal parameters, and the mapping relationship is characterized as: P=D+k*L; wherein k is a preset slope of the mapping relationship; and determining the processing priority of the abnormal data based on the mapping relationship and the abnormal parameters.
[0102] Furthermore, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the abnormality detection method for the power system described in the present invention is implemented.
[0103] The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical scheme of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0104] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
[0105] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0106] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.
Claims
1. A method for detecting anomalies in a power system, characterized in that: The detection method comprises: Acquiring power information of a power system, wherein the power information includes a plurality of power data; Get the preset fusion detection model; Analyze the power information based on the preset fusion detection model to obtain analyzed information; Processing the analyzed information based on the preset fusion detection model to obtain processed information; generating an abnormality detection result of the power system based on the processed information; The obtaining of a preset fusion detection model includes: Establishing a first initial model and a second initial model; Acquire a preset experimental data set, and generate training data based on the preset experimental data set; Training the first initial model based on the training data to obtain a cluster detection model; Acquire a first cluster and a first cluster center of the training data based on the cluster detection model; Obtaining a first distance between the training data and the first cluster center; Processing the training data based on the first cluster and the first distance to obtain processed training data; Training the second initial model based on the processed training data to obtain a classification detection model; Performing a fusion operation on the clustering detection model and the classification detection model to obtain the preset fusion detection model; The detection method further comprises: When the abnormality detection result is data abnormality, obtaining corresponding abnormal data; Extracting abnormal parameters of the abnormal data; Determining a processing priority of the abnormal data based on the abnormal parameters; performing a sequential output operation on the abnormal data based on the processing priority; The abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: Obtain a mapping relationship between the processing priority and the abnormal parameter, wherein the mapping relationship is characterized as follows: P = D + k * L; Wherein, k is the preset slope of the mapping relationship; Determine a processing priority of the abnormal data based on the mapping relationship and the abnormal parameters; The analyzing the power information based on the preset fusion detection model to obtain analyzed information includes: Preprocessing the power information to obtain preprocessed information; Performing conversion processing on the preprocessed information to obtain converted information; Performing clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and a second cluster center corresponding to the converted information; Acquire a second distance between each power data and the corresponding second cluster center; generating the analyzed information based on the power information, the second cluster, and the second distance; The processing of the analyzed information based on the preset fusion detection model to obtain processed information includes: Classify the analyzed information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes an abnormal probability of the power data; using the classification information as the processed information; The generating the abnormality detection result of the power system based on the processed information includes: Obtaining a preset probability threshold; Determining whether the abnormal probability of the power data is greater than the preset probability threshold; When the abnormal probability of the power data is greater than the preset probability threshold, generating an abnormality detection result of the data abnormality; When the abnormal probability of the power data is less than or equal to the preset probability threshold, an abnormality detection result indicating that the data is normal is generated.
2. The detection method according to claim 1, characterized in that: The detection method further comprises: Generate test data corresponding to the training data based on the preset experimental data set; Processing the test data based on the first cluster and the first distance to obtain processed test data; The preset fusion detection model is verified based on the processed test data.
3. The detection method according to claim 2, characterized in that: After verifying the preset fusion detection model based on the processed test data, the detection method further includes: When the verification result shows that the preset fusion detection model does not meet the preset detection requirements, obtaining corresponding optimization parameters based on the verification result; The preset fusion detection model is optimized based on the optimization parameters to obtain an optimized preset fusion detection model.
4. The detection method according to claim 1, characterized in that: The preprocessing of the power information to obtain preprocessed information includes: Extracting ratio information of ratio type from the power information; Performing a reference alignment operation on the ratio information to obtain aligned information; The power information is updated based on the aligned information to obtain pre-processed information.
5. The detection method according to claim 1, characterized in that: The performing conversion processing on the pre-processed information to obtain converted information includes: Get the preset data format; Performing data extraction on the preprocessed information to obtain extracted data; The extracted data is format converted based on the preset data format to obtain converted information.
6. An abnormality detection device for a power system, characterized in that: The detection device comprises: A first acquisition unit, configured to acquire power information of a power system, wherein the power information includes a plurality of power data; A second acquisition unit, used to acquire a preset fusion detection model; An analysis unit, configured to analyze the power information based on the preset fusion detection model to obtain analyzed information; A processing unit, configured to process the analyzed information based on the preset fusion detection model to obtain processed information; a detection unit, configured to generate an abnormality detection result of the power system based on the processed information; The second acquiring unit includes: A model building module, used for building a first initial model and a second initial model; A data acquisition module, used to acquire a preset experimental data set and generate training data based on the preset experimental data set; A first training module, used for training the first initial model based on the training data to obtain a cluster detection model; A first intermediate information acquisition module, used for acquiring a first cluster and a first cluster center of the training data based on the cluster detection model; A second intermediate information acquisition module, used to acquire a first distance between the training data and the first cluster center; a data processing module, configured to process the training data based on the first cluster and the first distance to obtain processed training data; A second training module, used for training the second initial model based on the processed training data to obtain a classification detection model; A fusion module, used to perform a fusion operation on the cluster detection model and the classification detection model to obtain the preset fusion detection model; The detection device further includes a priority processing unit, and the priority processing unit includes: An abnormal data acquisition module, used for acquiring corresponding abnormal data when the abnormal detection result is data abnormality; An abnormal parameter extraction module, used to extract abnormal parameters of the abnormal data; A priority determination module, used to determine the processing priority of the abnormal data based on the abnormal parameters; An output module, configured to perform a sequential output operation on the abnormal data based on the processing priority; The abnormal parameters include a first abnormal parameter D and a second abnormal parameter L, and determining the processing priority of the abnormal data based on the abnormal parameters includes: Obtain a mapping relationship between the processing priority and the abnormal parameter, wherein the mapping relationship is characterized as follows: P = D + k * L; Wherein, k is the preset slope of the mapping relationship; Determine a processing priority of the abnormal data based on the mapping relationship and the abnormal parameters; The analysis unit comprises: A preprocessing module, used for preprocessing the power information to obtain preprocessed information; A conversion module, used for performing conversion processing on the preprocessed information to obtain converted information; A third intermediate information acquisition module, configured to perform clustering processing on the converted information based on the preset fusion detection model to obtain at least one second cluster and a second cluster center corresponding to the converted information; A fourth intermediate information acquisition module, used to acquire a second distance between each power data and the corresponding second cluster center; an analysis information generating module, configured to generate the analyzed information based on the power information, the second cluster and the second distance; The processing unit comprises: A classification module, configured to classify the analyzed information based on the preset fusion detection model to obtain classification information of each power data, wherein the classification information includes an abnormal probability of the power data; A determination module, configured to use the classification information as the processed information; The generating the abnormality detection result of the power system based on the processed information includes: Obtaining a preset probability threshold; Determining whether the abnormal probability of the power data is greater than the preset probability threshold; When the abnormal probability of the power data is greater than the preset probability threshold, generating an abnormality detection result of the data abnormality; When the abnormal probability of the power data is less than or equal to the preset probability threshold, an abnormality detection result indicating that the data is normal is generated.
7. The detection device according to claim 6, characterized in that: The second acquisition unit further includes a testing module, and the testing module is used to: Generate test data corresponding to the training data based on the preset experimental data set; Processing the test data based on the first cluster and the first distance to obtain processed test data; The preset fusion detection model is verified based on the processed test data.
8. The detection device according to claim 7, characterized in that: After verifying the preset fusion detection model based on the processed test data, the testing module is further used to: When the verification result shows that the preset fusion detection model does not meet the preset detection requirements, obtaining corresponding optimization parameters based on the verification result; The preset fusion detection model is optimized based on the optimization parameters to obtain an optimized preset fusion detection model.
9. The detection device according to claim 6, characterized in that: The pre-processing module is used for: Extracting ratio information of ratio type from the power information; Performing a reference alignment operation on the ratio information to obtain aligned information; The power information is updated based on the aligned information to obtain pre-processed information.
10. The detection device according to claim 6, characterized in that: The performing conversion processing on the pre-processed information to obtain converted information includes: Get the preset data format; Performing data extraction on the preprocessed information to obtain extracted data; The extracted data is format converted based on the preset data format to obtain converted information.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the abnormality detection method for the power system described in any one of claims 1 to 5 is implemented.
