Model training method and device, fault detection method and device and electronic equipment
By constructing a circuit breaker simulation model and a training database, the problem of equipment damage during the circuit breaker fault detection model training process in the existing technology is solved, and the effect of improving fault detection accuracy without damaging the equipment is achieved.
Patent Information
- Application Number
- CN202410846127.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-24
AI Technical Summary
Existing circuit breaker fault detection models are prone to damage transmission system equipment during the training process, resulting in insufficient detection accuracy. A method is urgently needed to improve the accuracy of circuit breaker fault detection without damaging the equipment.
By building a circuit breaker simulation model, obtaining simulation data and fault labels, establishing a training database, and training the target fault detection model based on this, to achieve fault detection of real circuit breakers.
Without damaging the transmission system equipment, the accuracy of circuit breaker fault detection is improved, a more accurate target fault detection model is trained, and the safety and effectiveness of the detection process are ensured.
Smart Images

Figure CN118690653A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing, and in particular to a model training, fault detection method, device and electronic equipment. Background Art
[0002] Circuit breakers (voltage circuit breakers, VCBs) play a key role in power transmission systems, transmitting current in normal conditions and blocking current when faults occur. Improper operation of circuit breakers can cause different stresses on transmission system equipment, greatly reducing the reliability of the power system. Therefore, circuit breaker fault detection is crucial.
[0003] Currently, machine learning models can be used to detect circuit breaker faults. However, the training scheme used for the ML model to improve the accuracy of circuit breaker fault detection has the risk of damaging power transmission system equipment, which needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present invention provide a model training, fault detection method, device and electronic equipment to realize the training of a circuit breaker fault detection model without damaging the power transmission system equipment.
[0005] According to one aspect of the present invention, a model training method is provided, which may include:
[0006] Acquire a circuit breaker simulation model pre-built for a real circuit breaker to be fault-detected, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker;
[0007] Running the circuit breaker simulation model and obtaining operation data of the circuit breaker simulation model;
[0008] Obtaining the fault label corresponding to the operation data, and constructing a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault;
[0009] Based on the training database, a target fault detection model is trained, wherein the target fault detection model is used to realize fault detection of a real circuit breaker.
[0010] According to another aspect of the present invention, a fault detection method is provided, which may include:
[0011] Acquire real operation data generated by a real circuit breaker during operation, and acquire a target fault detection model trained according to the model training method of any embodiment of the present invention;
[0012] The real-time operation data is input into the target fault detection model, and the fault detection of the real circuit breaker is performed according to the output result of the target fault detection model.
[0013] According to another aspect of the present invention, a model training device is provided, which may include:
[0014] A circuit breaker simulation model acquisition module is used to acquire a circuit breaker simulation model pre-built for a real circuit breaker to be subjected to fault detection, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker;
[0015] An operation data acquisition module is used to run the circuit breaker simulation model and acquire operation data of the circuit breaker simulation model;
[0016] A training database construction module is used to obtain a fault label corresponding to the operation data, and to construct a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault;
[0017] The target fault detection model training module is used to train a target fault detection model based on a training database, wherein the target fault detection model is used to implement fault detection of a real circuit breaker.
[0018] According to another aspect of the present invention, a fault detection device is provided, which may include:
[0019] A target fault detection model acquisition module, used to acquire real operation data generated by a real circuit breaker during operation, and to acquire a target fault detection model trained according to a model training method in any embodiment of the present invention;
[0020] The fault detection module is used to input the real-time operation data into the target fault detection model, and perform fault detection on the real circuit breaker according to the output result of the target fault detection model.
[0021] According to another aspect of the present invention, there is provided an electronic device, which may include:
[0022] at least one processor; and
[0023] a memory communicatively connected to at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor implements the model training method or fault detection method provided by any embodiment of the present invention when executing.
[0025] The technical solution of the embodiment of the present invention is to obtain a circuit breaker simulation model pre-built for a real circuit breaker to be detected for faults, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker, and an accurate circuit breaker simulation model can be built through the real circuit breaker;
[0026] Run the circuit breaker simulation model to obtain the operation data of the circuit breaker simulation model. The operation data is obtained through the circuit breaker simulation model to avoid damage to the real circuit breaker; obtain the fault label corresponding to the operation data, and build a training database based on the operation data and the fault label, wherein the fault label characterizes whether the simulated circuit breaker has a fault. A large amount of operation data and fault labels can be obtained through the circuit breaker simulation model to build a complete training database; based on the training database, train to obtain a target fault detection model, wherein the target fault detection model is used to realize the fault detection of the real circuit breaker. By building a training database, a more accurate target fault detection model can be trained. The above technical solution, by running the circuit breaker simulation model to obtain the operation data and then building a training database, can realize the training of the circuit breaker fault detection model without damaging the power transmission system equipment.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 is a flow chart of a model training method provided according to an embodiment of the present invention;
[0030] Figure 2 A circuit breaker research mechanism and simulation model diagram in a model training method provided by an embodiment of the present invention;
[0031] Figure 3 is an initial and final state diagram of a circuit breaker simulation model in a closing operation according to a model training method provided by an embodiment of the present invention;
[0032] Figure 4 is an initial and final state diagram of a circuit breaker simulation model in a gate opening operation according to a model training method provided by an embodiment of the present invention;
[0033] Figure 5 is an operating mechanism diagram in a model training method provided according to an embodiment of the present invention;
[0034] Figure 6 It is a TC comparison diagram of simulated data of a circuit breaker simulation model and experimental data of a real circuit breaker captured in closing and opening operations according to a model training method provided by an embodiment of the present invention;
[0035] Figure 7 A comparison diagram of circuit breaker simulation model operation data under two failure conditions and circuit breaker simulation model operation data under normal conditions in a model training method provided according to an embodiment of the present invention;
[0036] Figure 8 is a target feature map in a model training method provided by an embodiment of the present invention;
[0037] Fig. 9 is a flowchart of another model training method provided according to an embodiment of the present invention;
[0038] Fig.10 is an operation data diagram of a circuit breaker simulation model in another model training method provided by an embodiment of the present invention;
[0039] Fig.11 is a training flow chart of a circuit breaker fault detection model according to a specific example of another model training method provided in an embodiment of the present invention;
[0040] Fig.12 is a data scatter plot of a specific example in another model training method provided by an embodiment of the present invention;
[0041] Fig.13 is a block diagram of a specific example of another model training method provided according to an embodiment of the present invention;
[0042] Fig.14 is a test diagram of a CART method in a closing process according to a specific example of another model training method provided in an embodiment of the present invention;
[0043] Fig.15 is a test diagram of an SVM method in a closing process according to a specific example of another model training method provided in an embodiment of the present invention;
[0044] Fig.16 is a test diagram of the SVM method in the gate opening process according to a specific example of another model training method provided in an embodiment of the present invention;
[0045] Fig.17is a test diagram of the CART method in the gate opening process according to a specific example of another model training method provided in an embodiment of the present invention;
[0046] Fig.18 is a flow chart of a fault detection method provided according to an embodiment of the present invention;
[0047] Fig.19 is a structural block diagram of a model training device provided according to an embodiment of the present invention;
[0048] Fig. 20 is a structural block diagram of a fault detection device provided according to an embodiment of the present invention;
[0049] Fig.21 It is a structural schematic diagram of an electronic device for implementing the model training method or the object representation method of an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] Figure 1 It is a flow chart of a model training method provided in an embodiment of the present invention. This embodiment is applicable to the case of training a target fault detection model. The method can be executed by a model training device provided in an embodiment of the present invention, and the device can be implemented by software and / or hardware. The device can be integrated on an electronic device, and the electronic device can be various user terminals or servers.
[0053] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:
[0054] S110: Acquire a circuit breaker simulation model pre-built for a real circuit breaker to be subjected to fault detection, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker.
[0055] Among them, the real circuit breaker can be understood as a circuit breaker in real operation. VCB plays a key role in the power transmission system to transmit current under normal circumstances and block current when a fault occurs.
[0056] The circuit breaker simulation model can be understood as a simulation model built based on a real circuit breaker using simulation technology. Optionally, the real circuit breaker can be a 72.5kV, SF6 circuit breaker, and the circuit breaker simulation model can be built using simulation software. Specifically, ADAMS software can be used to simulate the actual operating mechanism structure of the real circuit breaker. Circuit breaker failures are mainly operating mechanism failures and mechanical failures, so the simulation focuses on the spring operating mechanism of the circuit breaker. Figure 2 As shown in the research mechanism and simulation model diagram, the motor tightens the closing spring through the worm gear. The closing spring can provide the required energy for the closing operation, thereby tensioning the opening spring during the closing operation. Once the closing signal is received, the latch is released from the main shaft and the closing spring is released by itself. The transfer cam is therefore rotated and hits the transmission rod. At this time, the contact shaft is driven and the circuit breaker is closed. The tensioning and locking of the opening spring are consistent. At the opening signal, the latch is released from the switch shaft and the opening spring is discharged, causing the circuit breaker to open. At the same time, a damper is installed to prevent excessive oscillation. In the simulation process, first, the size, geometry and position of each component in the real circuit breaker are measured. Then it is modeled. Further, the connection between components, constraints, springs, dampers and materials used in each component is defined in ADAMS software. Modeling and analysis of the impact force of the transfer cam on the contact shaft is one of the main difficulties in the analysis of the operating mechanism. During the impact process, a short-term strong force is generated in the contact area, and these impact forces can only work for a few milliseconds at a time. Therefore, during the simulation, ADAMS / Solver uses six coordinates, three translations and three angles to describe the position and orientation of all mechanical system components. The state vector in ADAMS / Solver records the translational and rotational displacements, velocities and accelerations over time. The state vector also includes the current values of the reaction forces and applied forces of each component at the limit position and inertial position. Therefore, the state vector provides a comprehensive description of the mechanical system for mechanical system simulation, making the simulation closer to the function of the actual switchgear. Figure 3 represents the initial and final states of the circuit breaker simulation model during the closing operation. Figure 4 It shows the initial and final states of the circuit breaker simulation model during the opening operation.
[0057] After the circuit breaker simulation model is constructed, the circuit breaker simulation model must be verified. Specifically, a transducer can be used to measure the travel curve (TC) of the circuit breaker simulation model, and the state of the circuit breaker can be evaluated based on the TC. The pole displacement in the y direction is measured in the form of a TC signal, such as Figure 5 As shown, the force generated by the operating mechanism is transmitted to the transfer rod through the transmission rod and the slider crank mechanism, driving the pole to move. Figure 6 The TC comparison chart of the simulation data of the circuit breaker simulation model and the experimental data of the real circuit breaker captured during the closing and opening operations shows that the simulation data is consistent with the actual data movement, and the failure of the opening spring and damper will affect the TC profile. In order to verify the circuit breaker simulation model under fault conditions, the TC profile is not available in all fault modes for the circuit breaker simulation model. To overcome this problem, with the help of previous experimental and simulation data, the changing trends of TC characteristics under different defect conditions, such as operating speed, total stroke, overshoot and undershoot, are verified. Once the opening spring stiffness decreases, its contact speed will decrease, and the overtravel and rebound time will increase. The failure of the damper will increase the damping time, overtravel and rebound. In this regard, Figure 7 The simulation model results of the circuit breaker under the above two failure conditions and the results under normal conditions are shown, where (a) is an opening spring failure in the opening operation and (b) is a damper failure. In addition, the circuit breaker simulation model is also verified in the closing operation, and the contact speed and overtravel decrease with the reduction of the opening spring stiffness. In terms of evaluating the TC variation trend under the failure mode, the simulation results of the circuit breaker simulation model are consistent with the experimental results, including the damper and closing spring failures.
[0058] S120: Run the circuit breaker simulation model to obtain operation data of the circuit breaker simulation model.
[0059] The operation data may be understood as data generated during the operation of the circuit breaker simulation model for characterizing the operation state of the circuit breaker simulation model. Optionally, the TC of the circuit breaker simulation model may be obtained through a sensor as the operation data of the circuit breaker simulation model.
[0060] By running the circuit breaker simulation model, operation data of the circuit breaker simulation model can be obtained.
[0061] S130, obtaining a fault label corresponding to the operation data, and constructing a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault.
[0062] Among them, the fault label can be understood as a label used to characterize whether there is a fault in the operation data and the type of fault. Optionally, the specific fault labels are shown in Table 1:
[0063] Table 1
[0064]
[0065]
[0066] After obtaining the operating data and fault labels, a training database for model training can be constructed to further train the machine learning model using the training database.
[0067] S140. Based on the training database, a target fault detection model is trained, wherein the target fault detection model is used to implement fault detection of a real circuit breaker.
[0068] The target fault detection model can be understood as a model that can detect the fault of a real circuit breaker through the operation data of the real circuit breaker.
[0069] Specifically, after obtaining the training database, the training database can be used to perform supervised training on the machine learning model to obtain the target fault detection model. Optionally, after using the training database to perform supervised training on the machine learning model, multiple machine learning models with different architectures can be trained simultaneously, and the machine learning model with the best training effect is used as the target fault detection model.
[0070] The technical solution of the embodiment of the present invention is to obtain a circuit breaker simulation model pre-built for a real circuit breaker to be detected for faults, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker, and an accurate circuit breaker simulation model can be built through the real circuit breaker;
[0071] Run the circuit breaker simulation model to obtain the operation data of the circuit breaker simulation model. The operation data is obtained through the circuit breaker simulation model to avoid damage to the real circuit breaker; obtain the fault label corresponding to the operation data, and build a training database based on the operation data and the fault label, wherein the fault label characterizes whether the simulated circuit breaker has a fault. A large amount of operation data and fault labels can be obtained through the circuit breaker simulation model to build a complete training database; based on the training database, train to obtain a target fault detection model, wherein the target fault detection model is used to realize the fault detection of the real circuit breaker. By building a training database, a more accurate target fault detection model can be trained. The above technical solution, by running the circuit breaker simulation model to obtain the operation data and then building a training database, can realize the training of the circuit breaker fault detection model without damaging the power transmission system equipment.
[0072] On this basis, an optional technical solution is provided to obtain a fault label corresponding to the operating data, including: obtaining at least one target feature value in the operating data for characterizing the operating state of the circuit breaker simulation model and a target feature represented by at least one target feature value; for each target feature value in the at least one target feature value, obtaining a preset threshold corresponding to the target feature represented by the target feature value, and obtaining a fault label of the operating data under the fault type represented by the target feature based on the target feature value and the preset threshold.
[0073] The target feature can be understood as a feature used to characterize the operating state of the circuit breaker simulation model. Optionally, the target feature can be a curve feature on the TC curve, such as total stroke, overstroke, and rebound. Specifically, the target feature diagram is as follows: Figure 8 As shown, (a) is the target characteristic diagram for closing operation, and (b) is the target characteristic diagram for opening operation. The total travel represents the displacement A between the final state and the initial state of the contact. B represents the difference between the most significant contact displacement and the final position, also known as overtravel. The distance that the contact returns after overtravel exceeds where it finally stopped is called rebound. Time to overtravel D and time to rebound E are two other features considered. In addition to the above features, damping time is also considered during the opening process. This feature shows the time G taken from overtravel to reaching the final position.
[0074] The target feature value can be understood as a specific value of the target feature. Optionally, the target feature value can be used to determine whether the target feature corresponding to the target feature value is abnormal. In the case of abnormality, the specific cause of the fault can be further determined based on the target feature.
[0075] During the data collection process, the target feature values in the operating data and the target features corresponding to the target feature values are obtained. If the circuit breaker is not damaged, these target feature values should be within a specific range, as shown in Table 2.
[0076] Table 2
[0077]
[0078] The target feature values vary between preset ranges under normal conditions, and when a fault occurs, one of these target feature values may exceed the above preset threshold. For example, during the closing process, once the closing spring stiffness drops by more than Ncr, the contacts will not be able to reach the minimum displacement to engage the latch. In this case, the common features of TC do not appear, so the fault can be easily detected. All target feature values in the operating data are extracted, and for the target feature values that exceed the preset threshold, different fault labels are marked according to the target feature corresponding to the target feature value.
[0079] The above technical solution can accurately determine the fault label corresponding to the operating data by extracting the target feature value and target feature in the operating data.
[0080] Fig. 9 It is a flowchart of another model training method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the operation data includes opening operation data and closing operation data, and the circuit breaker simulation model is run to obtain the operation data of the circuit breaker simulation model, including: running the circuit breaker simulation model to perform the opening process, and obtaining the opening operation data generated by the circuit breaker simulation model in the opening process; running the circuit breaker simulation model to perform the closing process, and obtaining the closing operation data generated by the circuit breaker simulation model in the closing process; the fault label includes an opening fault label and a closing fault label, and the opening fault label indicates whether the simulated circuit breaker has a fault in the opening process, and the closing fault label indicates whether the simulated circuit breaker has a fault in the closing process. The training database includes a gate opening training database and a gate closing training database, and the fault labels corresponding to the operation data are obtained. Based on the operation data and the fault labels, a training database is constructed, including: obtaining the gate opening fault labels corresponding to the gate opening operation data, and constructing the gate opening training database based on the gate opening operation data and the gate opening fault labels; obtaining the closing fault labels corresponding to the closing operation data, and constructing the closing training database based on the closing operation data and the closing fault labels; training to obtain a target fault detection model based on the training database, including: training to obtain a target fault detection model based on the gate opening training database and the closing training database. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0081] See also Fig. 9 The method of this embodiment may specifically include the following steps:
[0082] S210: Acquire a circuit breaker simulation model pre-built for a real circuit breaker to be subjected to fault detection, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker.
[0083] S220, running the circuit breaker simulation model to perform an opening process, and obtaining opening operation data generated by the circuit breaker simulation model in the opening process.
[0084] The gate opening operation data can be understood as the operation data generated by the circuit breaker simulation model during the gate opening process. Fig.10 As shown in (b), when the circuit breaker simulation model is in opening operation, different faults generate different opening operation data.
[0085] S230, obtaining a gate opening fault label corresponding to the gate opening operation data, and constructing a gate opening training database based on the gate opening operation data and the gate opening fault label, wherein the gate opening fault label indicates whether there is a fault in the simulated circuit breaker during the gate opening process.
[0086] The opening fault label can be understood as a label used to characterize whether there is a fault in the opening process of the simulated circuit breaker. Optionally, the opening fault label can be used to determine whether the opening operation data corresponding to the opening fault label has a fault, and the specific fault type can be further determined.
[0087] Through the gate opening operation data and gate opening fault labels, a gate opening training database can be constructed to train the machine learning model for fault detection during the gate opening process.
[0088] S240: Run the circuit breaker simulation model to perform a closing process, and obtain closing operation data generated by the circuit breaker simulation model during the closing process.
[0089] The closing operation data can be understood as the operation data generated by the circuit breaker simulation model during the closing process. Fig.10 As shown in (a), when the circuit breaker simulation model is in closing operation, different faults will generate different closing operation data.
[0090] S250, obtaining a closing fault label corresponding to the closing operation data, and constructing a closing training database based on the closing operation data and the closing fault label, wherein the closing fault label indicates whether a fault occurs in the simulated circuit breaker during the closing process.
[0091] The closing fault label can be understood as a label used to characterize whether there is a fault in the closing process of the simulated circuit breaker. Optionally, the closing fault label can be used to determine whether the closing operation data corresponding to the closing fault label has a fault, and the specific fault type can be further determined.
[0092] Through the closing operation data and closing fault labels, a closing training database can be constructed to train the machine learning model for fault detection during the closing process.
[0093] S260. Based on the opening training database and the closing training database, a target fault detection model is trained, wherein the target fault detection model is used to implement fault detection of a real circuit breaker.
[0094] Among them, the machine learning model is trained respectively through the opening training database and the closing training database, so that a target fault detection model can be trained that can perform fault detection during both the opening process and the closing process.
[0095] The above technical solution, by utilizing the opening training database and the closing training database, trains a target fault detection model, so that the target fault detection model can perform fault detection under different working processes, thereby expanding the scope of use of the target fault detection model.
[0096] An optional technical solution, based on a gate opening training database and a gate closing training database, trains a target fault detection model, including: obtaining at least one initial fault detection model, and for each initial fault detection model in the at least one initial fault detection model, training the initial fault detection model based on the gate opening training database and the gate closing training database to obtain a candidate fault detection model; verifying the at least one obtained candidate fault detection model, and determining a target fault detection model from at least one candidate fault detection model based on the verification results corresponding to the at least one candidate fault detection model.
[0097] The initial fault detection model can be understood as an initial machine learning model used for model training. Optionally, the initial fault detection model can be a plurality of machine learning models with different architectures.
[0098] For each initial fault detection model in at least one initial fault detection model, the initial fault detection model is trained based on the opening training database and the closing training database to obtain a candidate fault detection model. Optionally, in the process of training the initial fault detection model, a parallel acceleration module can be used to split the training process into multiple independently running processes so that these processes can be executed simultaneously, and the initial fault detection model is trained in parallel, thereby improving the training efficiency. Specifically, by parallelizing the training process, the hyperparameters of the model can be adjusted more flexibly. The selection of hyperparameters in the machine learning algorithm is crucial to the performance of the model. By conducting experiments in a parallel computing framework, the optimal hyperparameter combination can be found more quickly, thereby improving the accuracy and robustness of the model, so that the trained target fault detection model can better adapt to circuit breakers of different models and specifications, and improve the versatility. At the same time, by using the target fault detection model trained by the parallel acceleration module, the real-time data stream can be processed more quickly through parallel processing, and the circuit breaker fault can be discovered and responded to in time, thereby improving the reliability and stability of the power system. After the candidate fault detection models are obtained through training, the obtained candidate fault detection models may be verified, and a target fault detection model may be determined from at least one candidate fault detection model based on the verification results corresponding to each candidate fault detection model.
[0099] The above technical solution determines the target fault detection model from multiple initial fault detection models obtained through training, which can further improve the performance of the target fault detection model.
[0100] On this basis, optionally, the verification result includes an opening detection performance score and a closing detection performance score, and the method also includes: obtaining an opening verification database and a closing verification database; verifying at least one obtained candidate fault detection model, and determining a target fault detection model from at least one candidate fault detection model based on the verification results corresponding to the at least one candidate fault detection model, including: for each candidate fault detection model in the at least one candidate fault detection model, verifying the candidate fault detection model based on the opening verification database to obtain the opening detection performance score of the candidate fault detection model, and verifying the candidate fault detection model based on the closing verification database to obtain the closing detection performance score of the candidate fault detection model; determining the target fault detection model from at least one candidate fault detection model based on the opening detection performance score and the closing detection performance score corresponding to the at least one candidate fault detection model.
[0101] Among them, each candidate fault detection model is verified by using the obtained gate opening verification database to obtain a gate opening detection performance score used to characterize the fault detection performance of the candidate fault detection model during the gate opening process; and each candidate fault detection model is verified by using the obtained gate closing verification database to obtain a gate closing detection performance score used to characterize the fault detection performance of the candidate fault detection model during the gate closing process. Further, based on the gate opening detection performance score and the gate closing detection performance score corresponding to each fault detection model, a target fault detection model is comprehensively selected from at least one candidate fault detection model.
[0102] The above technical solution, by combining the opening detection performance score and the closing detection performance score, can select a target fault detection model with good fault detection performance under both processes from the candidate fault detection models.
[0103] On this basis, optionally, after obtaining the closing detection performance score of the candidate fault detection model, it also includes: adding the opening detection performance score and the closing detection performance score of the candidate fault detection model to obtain a comprehensive performance score of the candidate fault detection model; based on the opening detection performance score and the closing detection performance score corresponding to at least one candidate fault detection model, determining a target fault detection model from at least one candidate fault detection model, including: determining the candidate fault detection model with the highest comprehensive performance score among at least one candidate fault detection model as the target fault detection model.
[0104] Among them, the opening detection performance score and the closing detection performance score can be added to obtain a comprehensive performance score, and the candidate fault detection model with the highest comprehensive performance score is determined as the target fault detection model.
[0105] In order to better understand the above-mentioned technical solutions as a whole, the following is an exemplary description of them in combination with specific examples. In this specific example, the target fault detection model is a circuit breaker fault detection model. The training process of the circuit breaker fault detection model is as follows: Fig.11 As shown, the specific steps are as follows:
[0106] Step 1: Operating mechanism simulation
[0107] 1. Model the circuit breaker simulation model based on the real circuit breaker in SOLIDWORKS software. ADAMS software defines the connections between components, constraints, springs, dampers, and materials used in each component;
[0108] 2. Perform simulation verification on the circuit breaker simulation model.
[0109] Step 2: Generate a database
[0110] 1. Run the circuit breaker simulation model, and use sensors to record the opening and closing operation data during the opening and closing processes;
[0111] 2. Extract target feature values and target features from the collected opening operation data, determine the opening fault labels corresponding to the opening operation data based on the target feature values and target features, and build an opening training database based on the opening fault labels and the opening operation data; extract target feature values and target features from the collected closing operation data, determine the closing fault labels corresponding to the closing operation data based on the target feature values and target features, and build a closing training database based on the closing fault labels and the closing operation data.
[0112] Step 3: Design of ML-based fault detection system
[0113] 1. Data preprocessing
[0114] Since the selected target features have different units, z-score normalization is used to scale all variables to zero mean and unit variance. The z-score equation is expressed as
[0115]
[0116] in, and σ are the mean and variance of the desired attribute, respectively. n (i) is the normalized value of data X(i). The data scatter plot considering the three features after normalization is as follows: Fig.12 As shown, (a) is a data scatter plot of the closing operation, and (b) is a data scatter plot of the opening operation. Then, each data set is divided into training data and test data in a ratio of 80:20. The validation data accounts for one quarter of the training data and is used to optimize the hyperparameters of the machine learning method.
[0117] 2. Training ML Models
[0118] Use the generated database to train multiple ML models. Including:
[0119] 1) Multilayer Perceptron Neural Network (MLPNN).
[0120] 2) Support vector machine, find the feature space of the optimal separation (maximum boundary) hyperplane between the two classes. When the fault class and the normal class are nonlinearly separable, the nonlinear support vector machine classifier is applied. This method uses a nonlinear kernel function to transform the input vector into a high-dimensional feature space, and then performs linear separation. The specific formula is as follows:
[0121]
[0122] y i (wx i -b)≥1-ξ i
[0123]
[0124] Where w is the normal of the hyperplane in the feature space, b is the bias, N is the number of training data, and ξ i The number of allowed constraint violations is introduced. The number of penalty terms in the cost function associated with misclassified training examples is determined by a constant C, which controls α i The value of y∈{+1,-1} is the label of the input training data, k(x, x i ) is the kernel function, α i is the Lagrange multiplier.
[0125] The linear kernel (SVM-L), polynomial kernel (SVM-P) and radial basis kernel (SVM-R) are used for fault detection. The d-order polynomial kernel and the radial basis kernel with Gaussian function are shown in the following equations.
[0126] k(x,x i )=(xx i +1) d
[0127] k(x,x i )=exp(-||xx i || 2 / σ 2 )
[0128] Where d is the degree of the polynomial, and σ represents the standard deviation of the kernel function and the Gaussian function.
[0129] 3) Classification and regression tree (CART). The tree starts with a node that represents all the data. This node is called the root node. A set of internal and terminal nodes (splits) make up the tree (leaves). Each leaf represents a class in the data set. The nodes of a decision tree have a parent node and two or more child nodes. Attributes are considered master nodes in CART and have greater ability to distinguish between classes. During the training process, various criteria, including the Gini index, information gain, and entropy, establish the superiority of features. After training, from the root node to the leaf node, a decision tree with a binary (yes / no) sequence is formed by branching through multiple decision nodes. To classify the input data, follow the rules from the root to the leaf representing the data class. This method can handle data with multiple features and large data sets. It is also simple to implement and does not require specialized operator knowledge.
[0130] 4) k-nearest neighbor (KNN) and logistic regression (LR). KNN is one of the simplest ML algorithms that classifies data based on the distance between the input data and a certain number of nearby data (k). LR uses a probabilistic approach to classify data, indicating the probability that the data belongs to a class.
[0131] The hyperparameters were determined using the evaluation data. After adjustment, the k value of the KNN method was 5. In the trip / close operation of the LR classifier, the degree of the polynomial kernel was equal to 2. To avoid overfitting, L2 regularization was performed. The coefficient C of SVM-R and SVM-L was 1000 and 10 for the opening and closing operations, respectively. The polynomial degree of SVM-P was 2 and the closure coefficient C was 100. In the opening operation, these values were 3 and 1000. The characteristics of the two MLPNNs obtained are shown in Table 3.
[0132] Table 3
[0133]
[0134] The Adam optimization method is combined with categorical cross entropy as the cost function to train the ML network.
[0135] 3. Select the final model based on the verification data (opening verification database and closing verification database)
[0136] Several machine learning methods were compared and the final method was selected. All the methods were trained using the training data (opening training database and closing training database) and the k-fold cross validation method. Among these methods, the performance of all the methods on the validation data was calculated using the f1 score criterion. The results are shown in a box plot to compare the performance of the methods during closing and opening operations, as shown in Fig.13As shown, (a) is the block diagram of the closing operation and (b) is the block diagram of the opening operation. CART has a higher average f1 score than other methods, and the f1 score changes the least after folding from the results of the closing operation. Except for CART, the KNN method scores higher than other methods. However, the range of variation is relatively large. In this dataset, the support vector machine and LR methods perform poorly. SVM-R performs best in trip mode, but other kernels have lower scores. After SVM-R, CART has a higher average f1 score than other methods. In trip / closing operations, the average f1 scores of MLPNN with hidden layers are all above 90%. It can be seen that adding hidden layers does not significantly improve its performance.
[0137] In summary, based on the reported results, the CART method performed best. In the turn-on operation, SVM showed the best performance. On the other hand, the present invention hopes that the CART method will perform better than other methods when a single method is applied in two CB processes. One of the advantages of decision trees is simplicity. Because they combine explicit queries of the data in an understandable way, decision trees are sometimes easier to read than other classifiers such as neural networks and support vector machines. Combinations of numerical and categorical features, as well as missing attributes, can all be handled by decision trees. Decision trees work similarly to how humans make decisions by asking conditional questions.
[0138] 4. Evaluate performance and test data
[0139] As before, SVM-R performs best in fault detection when the circuit is open and CART performs best in fault detection when the circuit is closed. Therefore, the classification results of the test data using these methods are provided in both opening and closing operations. In the classification results, the main diagonal indicates the number of correctly classified data, while the other diagonals indicate the incorrectly classified data. The left side shows the types and number of actual labels, and the squares show the types and number of predicted labels predicted by the candidate fault detection models obtained through training. The classification accuracy of each class is specified in the last row of the matrix. During the closing process, the CART method only misclassified one data in the "E" class in the dataset. The classification accuracy of all test data was 99.21%. Fig.14 The data classification accuracy of the SVM method is low, and most of the data is incorrectly classified. The classification results are as follows Fig.15 As shown in Figure 2, both methods have good fault detection results in the opening process compared to the closing process. SVM performs better in this mode with an accuracy of 96.4%, as shown in Figure 2. Fig.16 As shown in Figure 2, two data from category “C”, and two data from categories “A” and “D”, are incorrectly classified using this method. Fig.17As shown, CART cannot identify 6 data belonging to categories "C" and "D". In this mode, the overall accuracy is 94.59%.
[0140] In the above specific example, a training database was constructed through a circuit breaker fault simulation model, and in the process of training the ML model using the training database, practical ML-based fault detection methods such as LR, KNN, CART, MLPNN, and SVM with different kernel functions were compared. The results show that CART is the most effective method for detecting shutdown operation faults, with a classification accuracy of 99.21% for test data, and the training of the circuit breaker fault detection model was achieved without damaging the transmission system equipment.
[0141] Fig.18 1 is a flow chart of a fault detection method provided in an embodiment of the present invention. This embodiment can be applied to detecting a real circuit breaker operation fault. The method can be executed by a fault detection device provided in an embodiment of the present invention, which can be implemented by software and / or hardware, and can be integrated in an electronic device, which can be various user terminals or servers.
[0142] See also Fig.18 The method of the embodiment of the present invention specifically includes the following steps:
[0143] S310: Acquire real operation data generated by a real circuit breaker during operation, and acquire a target fault detection model trained by the model training method according to any embodiment of the present invention.
[0144] The actual operation data may be understood as operation data collected during the operation of the actual circuit breaker.
[0145] By acquiring the real operation data and the target fault detection model, the target fault detection model can be used to process the real operation data.
[0146] S320: Input the real-time operation data into the target fault detection model, and perform fault detection on the real circuit breaker according to the output result of the target fault detection model.
[0147] The real-time operation data is input into the target fault detection model, and the target fault detection model can process the real operation data and output the result, so as to realize the fault detection of the real circuit breaker through the real operation data.
[0148] The technical solution of the embodiment of the present invention can realize fault detection of a real circuit breaker according to the output result of the target fault detection model by inputting real operation data into the target fault detection model.
[0149] Fig.19 This is a structural block diagram of a model training device provided in an embodiment of the present invention, and the device is used to execute the model training method provided in any of the above embodiments. The device and the model training method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the model training device can refer to the embodiment of the above model training method. Fig.19 The device may specifically include: a circuit breaker simulation model acquisition module 410, an operation data acquisition module 420, a training database construction module 430 and a target fault detection model training module 440.
[0150] The circuit breaker simulation model acquisition module 410 is used to acquire a circuit breaker simulation model pre-built for a real circuit breaker to be fault-detected, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker;
[0151] An operation data acquisition module 420 is used to operate the circuit breaker simulation model and acquire operation data of the circuit breaker simulation model;
[0152] A training database construction module 430 is used to obtain a fault label corresponding to the operation data, and to construct a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault;
[0153] The target fault detection model training module 440 is used to train a target fault detection model based on a training database, wherein the target fault detection model is used to implement fault detection of a real circuit breaker.
[0154] Optionally, the operation data includes opening operation data and closing operation data, and the operation data acquisition module 420 includes:
[0155] The gate opening operation data obtaining submodule is used to run the circuit breaker simulation model to perform the gate opening process and obtain the gate opening operation data generated by the circuit breaker simulation model during the gate opening process;
[0156] The closing operation data obtaining submodule is used to run the circuit breaker simulation model to perform the closing process and obtain the closing operation data generated by the circuit breaker simulation model during the closing process;
[0157] The fault label includes an opening fault label and a closing fault label. The opening fault label indicates whether the simulated circuit breaker has a fault in the opening process. The closing fault label indicates whether the simulated circuit breaker has a fault in the closing process. The training database includes an opening training database and a closing training database. The training database construction module 430 includes:
[0158] The gate opening training database construction submodule is used to obtain the gate opening fault label corresponding to the gate opening operation data, and to construct the gate opening training database based on the gate opening operation data and the gate opening fault label;
[0159] A closing training database construction submodule is used to obtain the closing fault label corresponding to the closing operation data, and to construct a closing training database based on the closing operation data and the closing fault label;
[0160] The target fault detection model training module 440 includes:
[0161] The target fault detection model obtaining submodule is used to train and obtain the target fault detection model based on the opening training database and the closing training database.
[0162] On this basis, optionally, the target fault detection model obtains submodules, including:
[0163] A candidate fault detection model obtaining unit is used to obtain at least one initial fault detection model, and for each initial fault detection model in the at least one initial fault detection model, train the initial fault detection model based on a switch opening training database and a switch closing training database to obtain a candidate fault detection model;
[0164] The target fault detection model determination unit is used to verify the obtained at least one candidate fault detection model, and determine the target fault detection model from the at least one candidate fault detection model based on the verification result corresponding to the at least one candidate fault detection model.
[0165] On this basis, optionally, the verification results include a gate opening detection performance score and a gate closing detection performance score, and the model training device also includes:
[0166] A closing verification database acquisition module is used to acquire a closing verification database and a closing verification database;
[0167] The target fault detection model determination unit includes:
[0168] A closing detection performance score obtaining subunit is used to verify, for each candidate detection model of at least one candidate fault detection model, the candidate fault detection model based on the opening verification database to obtain the opening detection performance score of the candidate fault detection model, and to verify the candidate fault detection model based on the closing verification database to obtain the closing detection performance score of the candidate fault detection model;
[0169] The target fault detection model determination subunit is used to determine the target fault detection model from at least one candidate fault detection model based on the opening detection performance score and the closing detection performance score respectively corresponding to the at least one candidate fault detection model.
[0170] On this basis, optionally, after obtaining the closing detection performance score of the candidate fault detection model, the model training device further includes:
[0171] A comprehensive performance score obtaining module is used to add the opening detection performance score and the closing detection performance score of the candidate detection model to obtain the comprehensive performance score of the candidate detection model;
[0172] The target fault detection model determination subunit is specifically used to determine, among at least one candidate fault detection model, a candidate fault detection model with the highest comprehensive performance score as the target fault detection model.
[0173] Alternatively, the training database construction module 430 includes:
[0174] A target feature acquisition submodule, used to acquire at least one target feature value used to characterize the operating state of the circuit breaker simulation model and a target feature respectively characterized by at least one target feature value in the operating data;
[0175] The fault label obtaining submodule is used to obtain, for each target feature value in at least one target feature value, a preset threshold corresponding to the target feature represented by the target feature value, and obtain the fault label of the operating data under the fault type represented by the target feature based on the target feature value and the preset threshold.
[0176] The model training device provided by the embodiment of the present invention obtains a circuit breaker simulation model pre-built for a real circuit breaker to be detected for faults through a circuit breaker simulation model acquisition module, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker, and an accurate circuit breaker simulation model can be constructed through the real circuit breaker; through the operation data acquisition module, the circuit breaker simulation model is operated to obtain the operation data of the circuit breaker simulation model, and the circuit breaker simulation model obtains the operation data through the circuit breaker simulation model acquisition module, thereby avoiding damage to the real circuit breaker; through the training database construction module, the fault label corresponding to the operation data is obtained, and a training database is constructed based on the operation data and the fault label, wherein the fault label represents whether the simulated circuit breaker has a fault, and a large amount of operation data and fault labels can be obtained through the circuit breaker simulation model to construct a complete training database; through the target fault detection model training module, a target fault detection model is trained based on the training database, wherein the target fault detection model is used to realize the fault detection of the real circuit breaker, and a more accurate target fault detection model can be trained by constructing the training database. The above-mentioned device obtains operation data by running the circuit breaker simulation model, and then builds a training database, so as to realize the training of the circuit breaker fault detection model without damaging the power transmission system equipment.
[0177] The model training device provided in the embodiment of the present invention can execute the model training method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0178] It is worth noting that in the embodiment of the above-mentioned model training device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0179] Fig. 20 This is a structural block diagram of a fault detection device provided in an embodiment of the present invention. The device is used to execute the fault detection method provided in any of the above embodiments. The device and the object representation method of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the fault detection device, refer to the embodiment of the above fault detection method. Fig. 20 The device may specifically include: a target fault detection model acquisition module 510 and a fault detection module 520.
[0180] The fault detection model acquisition module 510 is used to acquire the real operation data generated by the real circuit breaker during operation, and the target fault detection model trained by the model training method according to any embodiment of the present invention;
[0181] The fault detection module 520 is used to input the real-time operation data into the target fault detection model, and perform fault detection on the real circuit breaker according to the output result of the target fault detection model.
[0182] The fault detection device provided by the embodiment of the present invention inputs real operation data into the target fault detection model through the cooperation between the fault detection model acquisition module and the fault detection module, thereby realizing fault detection of the real circuit breaker according to the output result of the target fault detection model.
[0183] The object representation device provided in the embodiment of the present invention can execute the fault detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0184] It is worth noting that in the embodiment of the above-mentioned fault detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0185] Fig.21A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0186] like Fig.21 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0187] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0188] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a model training method or a fault detection method.
[0189] In some embodiments, the model training method or the fault detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the model training method or the fault detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the model training method or the fault detection method in any other appropriate manner (e.g., by means of firmware).
[0190] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0191] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0192] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0193] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0194] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0195] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0196] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0197] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A model training method, characterized in that: include: Acquire a circuit breaker simulation model pre-built for a real circuit breaker to be subjected to fault detection, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker; Running the circuit breaker simulation model to obtain operation data of the circuit breaker simulation model; Obtaining a fault label corresponding to the operation data, and constructing a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault; Based on the training database, a target fault detection model is trained, wherein the target fault detection model is used to implement fault detection of the real circuit breaker.
2. The method according to claim 1, characterized in that The operation data includes opening operation data and closing operation data, and the operating the circuit breaker simulation model to obtain the operation data of the circuit breaker simulation model includes: Running the circuit breaker simulation model to perform a gate opening process, and obtaining gate opening operation data generated by the circuit breaker simulation model in the gate opening process; Running the circuit breaker simulation model to perform a closing process, and obtaining closing operation data generated by the circuit breaker simulation model in the closing process; The fault label includes an opening fault label and a closing fault label, the opening fault label indicates whether the simulated circuit breaker has a fault in the opening process, and the closing fault label indicates whether the simulated circuit breaker has a fault in the closing process, the training database includes an opening training database and a closing training database, the fault label corresponding to the operation data is obtained, and a training database is constructed based on the operation data and the fault label, including: Obtaining a gate opening fault label corresponding to the gate opening operation data, and constructing a gate opening training database based on the gate opening operation data and the gate opening fault label; Obtaining a closing fault label corresponding to the closing operation data, and constructing a closing training database based on the closing operation data and the closing fault label; The training of a target fault detection model based on the training database includes: Based on the opening training database and the closing training database, a target fault detection model is trained.
3. The method according to claim 2, characterized in that The training to obtain a target fault detection model based on the opening training database and the closing training database includes: Acquire at least one initial fault detection model, and for each of the at least one initial fault detection model, train the initial fault detection model based on the opening training database and the closing training database to obtain a candidate fault detection model; The obtained at least one candidate fault detection model is verified, and based on the verification results respectively corresponding to the at least one candidate fault detection model, a target fault detection model is determined from the at least one candidate fault detection model.
4. The method according to claim 3, characterized in that The verification result includes a gate opening detection performance score and a gate closing detection performance score, and the method further includes: Obtaining a gate opening verification database and a gate closing verification database; The step of verifying the obtained at least one candidate fault detection model and determining a target fault detection model from the at least one candidate fault detection model based on the verification results respectively corresponding to the at least one candidate fault detection model includes: For each candidate fault detection model of the at least one candidate fault detection model, verify the candidate fault detection model based on the opening verification database to obtain an opening detection performance score of the candidate fault detection model, and verify the candidate fault detection model based on the closing verification database to obtain a closing detection performance score of the candidate fault detection model; Based on the opening detection performance score and the closing detection performance score respectively corresponding to the at least one candidate fault detection model, a target fault detection model is determined from the at least one candidate fault detection model.
5. The method according to claim 4, characterized in that After obtaining the closing detection performance score of the candidate fault detection model, the method further includes: Adding the opening detection performance score and the closing detection performance score of the candidate fault detection model to obtain a comprehensive performance score of the candidate fault detection model; The determining a target fault detection model from the at least one candidate fault detection model based on the opening detection performance score and the closing detection performance score respectively corresponding to the at least one candidate fault detection model comprises: The candidate fault detection model with the highest comprehensive performance score among the at least one candidate fault detection model is determined as the target fault detection model.
6. The method according to claim 1, characterized in that The obtaining of the fault label corresponding to the operation data includes: Acquire at least one target feature value in the operation data for characterizing the operation state of the circuit breaker simulation model and a target feature respectively represented by the at least one target feature value; For each target feature value of the at least one target feature value, a preset threshold corresponding to the target feature represented by the target feature value is obtained, and based on the target feature value and the preset threshold, a fault label of the operating data under the fault type represented by the target feature is obtained.
7. A fault detection method, characterized in that: include: Acquire real operation data generated by a real circuit breaker during operation, and acquire a target fault detection model trained according to the model training method of any one of claims 1 to 6; The real-time operation data is input into the target fault detection model, and fault detection is performed on the real circuit breaker according to the output result of the target fault detection model.
8. A model training device, characterized in that: include: A circuit breaker simulation model acquisition module, used to acquire a circuit breaker simulation model pre-built for a real circuit breaker to be fault-detected, wherein the simulated circuit breaker represented by the circuit breaker simulation model is a simulation result of the real circuit breaker; An operation data acquisition module, used to run the circuit breaker simulation model and acquire operation data of the circuit breaker simulation model; A training database construction module, used to obtain a fault label corresponding to the operation data, and to construct a training database based on the operation data and the fault label, wherein the fault label indicates whether the simulated circuit breaker has a fault; A target fault detection model training module is used to train a target fault detection model based on the training database, wherein the target fault detection model is used to implement fault detection of the real circuit breaker.
9. A fault detection device, characterized in that: include: A target fault detection model acquisition module, used to acquire real operation data generated by a real circuit breaker during operation, and to acquire a target fault detection model trained according to the model training method of any one of claims 1 to 6; The fault detection module is used to input the real-time operation data into the target fault detection model, and perform fault detection on the real circuit breaker according to the output result of the target fault detection model.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the model training method as described in any one of claims 1-6, or the fault detection method as described in claim 7.
