A relay fault detection method and system based on deep learning
Through deep learning, we can predict the resistance and current trends of relays, identify faults, solve the problem of voltage instability in relays caused by resistance fluctuations, and improve the stability and reliability of relays.
Patent Information
- Application Number
- CN202410709604.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-03
AI Technical Summary
The relay is affected by external vibration during operation, resulting in resistance fluctuations and poor coil contact, resulting in reduced electrical contact performance and unstable voltage, affecting the stability and reliability of the relay.
Using a method based on deep learning, the convolutional neural network is used to predict resistance and current trends, identify potential faults, use the predicted resistance and current data to perform voltage calculations, determine voltage instability, and control and adjust through the model adjustment unit to ensure that the relay stability.
By predicting resistance and current trends, identifying potential faults, preventing and solving them in advance, ensuring the stability of the relay, detecting abnormalities in time, avoiding damage caused by excessive voltage fluctuations, and improving the stability and reliability of the relay.
Smart Images

Figure CN118275880B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fault detection, and in particular to a relay fault detection method and system based on deep learning. Background Art
[0002] Relay fault detection based on deep learning can predict the state of the relay, improve the reliability and safety of the relay, and reduce the loss caused by the fault to the relay. In practical applications, the model can also be optimized and adjusted according to the actual situation to obtain better detection results. Since the relay will be affected by external vibration when it is in working state, resistance fluctuation will occur. Resistance fluctuation may cause displacement or vibration of internal components of the relay. Vibration will aggravate the poor contact between the contact points, thereby causing poor contact of the coil of the relay. Poor coil contact may cause the contact points of the relay to be unable to effectively connect or disconnect the circuit, causing the electrical contact performance of the relay to decrease in the closed and open states, reducing the electrical contact performance. When the coil of the relay has poor contact, the resistance value of the current transmission is unstable, affecting the normal operation of the internal circuit of the relay, causing the relay to generate voltage fluctuations and unable to maintain a stable output voltage, resulting in unstable voltage of the relay, reducing the stability of the relay.
[0003] At the same time, the unstable voltage of the relay may cause the relay coil to be affected by the unstable voltage signal, making the working state of the relay unstable, resulting in delayed response failure of the relay and failure to accurately respond to the control signal, reducing the reliability of the relay. In order to avoid delayed response failure of the relay caused by the unstable voltage of the relay, we provide a relay fault detection method and system based on deep learning. Summary of the invention
[0004] The purpose of the present invention is to provide a relay fault detection method and system based on deep learning to solve the problems raised in the above background technology.
[0005] To achieve the above object, one of the objects of the present invention is to provide a relay fault detection method based on deep learning, comprising the following method steps:
[0006] S1, the prediction comparison unit uses a multimeter to obtain historical resistance data, historical current data, the time corresponding to the recorded resistance data and the time corresponding to the recorded current data, and performs resistance trend prediction and current trend prediction, and then obtains predicted resistance data according to the predicted resistance trend data;
[0007] The prediction and comparison unit includes a trend prediction module and a data comparison module;
[0008] The trend prediction module uses a multimeter to obtain historical resistance data and historical current data, and simultaneously obtains the time corresponding to the recorded resistance data and the time corresponding to the recorded current data, and uses a convolutional neural network in deep learning to predict the resistance trend based on the acquired historical resistance data and the time corresponding to the acquired recorded resistance data, and then uses a convolutional neural network in deep learning to predict the current trend based on the acquired historical current data and the time corresponding to the acquired recorded current data;
[0009] The implementation steps of using convolutional neural network in deep learning to predict resistance trend are as follows:
[0010] Step 1: First collect the historical resistance data The time corresponding to the acquired recorded resistance data According to the input requirements of the CNN model, the historical resistance data The time corresponding to the acquired recorded resistance data Convert into a format suitable for CNN model input;
[0011] The historical resistance data obtained The time corresponding to the acquired recorded resistance data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ;
[0012] Step 2: Based on the historical resistance data obtained The time corresponding to the acquired recorded resistance data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build a CNN model;
[0013] Step 3: Prepare the training set The data is input into the CNN model, and the historical resistance data obtained in the CNN model is continuously adjusted. The time corresponding to the acquired recorded resistance data Parameters are set so that the CNN model can better fit the data, and then the trained CNN model is used to predict the resistance trend of the newly acquired recorded resistance data;
[0014] The implementation steps of using convolutional neural network in deep learning to predict current trend are as follows:
[0015] Step 1: First collect the historical current data The time corresponding to the acquired recorded current data ,according to The input requirements of the model are to obtain historical current data The time corresponding to the acquired recorded current data Convert to suitable The format of the model input;
[0016] The historical current data obtained The time corresponding to the acquired recorded current data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ;
[0017] Step 2: Based on the historical current data obtained The time corresponding to the acquired recorded current data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build Model;
[0018] Step 3: Prepare the training set Data input to In the model, by constantly adjusting Historical current data obtained from the model The time corresponding to the acquired recorded current data Parameters, so The model can better fit the data, and then use the trained The model predicts the current trend for the newly acquired recorded resistance data;
[0019] The data comparison module is used to receive the resistance trend data and the predicted current trend data predicted in the trend prediction module, and obtain the predicted resistance data and the corresponding resistance timestamp according to the predicted resistance trend data, combine the predicted resistance data into a predicted resistance set, and then obtain the predicted current data and the corresponding current timestamp according to the predicted current trend data, combine the predicted current data into a predicted current set, and then compare the set standard resistance data with the predicted resistance data in the predicted resistance set data;
[0020] S2, the calculation and judgment unit integrates the predicted resistance data into an inconsistent resistance set, calculates the voltage according to the inconsistent predicted resistance data, combines the calculated voltage data into a calculated voltage set and judges the voltage instability, and the delay detection unit triggers the detection of the response action delay fault of the relay according to the voltage instability command data;
[0021] The calculation and judgment unit includes a voltage calculation module and a stability judgment module;
[0022] The voltage calculation module is used to receive the resistance data and the corresponding resistance timestamp predicted in the data comparison module, and obtain the predicted current set and the corresponding current timestamp from the data comparison module, integrate the predicted resistance data into an inconsistent resistance set, find the predicted current data at the same time point as the corresponding current timestamp according to the predicted resistance data and the corresponding resistance timestamp, and calculate the voltage according to the inconsistent predicted resistance data and the predicted current data at the same time point using Ohm's law, and combine the calculated voltage data into a calculated voltage set;
[0023] The stability judgment module is used to receive the voltage set data calculated in the voltage calculation module, and use the set standard voltage data and the voltage data calculated in the calculated voltage set data to judge the voltage instability situation;
[0024] S3. The model adjustment unit triggers the acquisition of inconsistent resistance set data and establishes a prediction model according to the detection relay response action delay command data. The prediction model calculates the resistance difference according to the data in the inconsistent resistance set data and controls and adjusts the calculated resistance difference data.
[0025] The second object of the present invention is to provide a system for operating the above-mentioned deep learning-based relay fault detection system, including a prediction and comparison unit, a calculation and judgment unit, a delay detection unit, and a model adjustment unit.
[0026] As a further improvement of the technical solution, the specific comparison conditions in the data comparison module include:
[0027] Case ①: When the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp Passed into the calculation and judgment unit;
[0028] Case ②: When the standard resistance data is set With the predicted resistance data When they are consistent, it means that there is no resistance fluctuation in the relay;
[0029]
[0030] Case n, when the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp Passed into the calculation and judgment unit.
[0031] As a further improvement of the technical solution, the implementation steps of calculating the voltage using Ohm's law in the voltage calculation module are as follows:
[0032] Step 1: When obtaining inconsistent predicted resistance data , based on inconsistent predicted resistance data Get the corresponding resistance timestamp , according to the corresponding resistor time stamp Find the current timestamp corresponding to Predicted current data at the same time point ;
[0033] Step 2: Based on inconsistent predicted resistance data Current data with predictions at the same point in time Calculate the voltage and obtain the calculated voltage data , the specific algorithm formula is:
[0034] ;
[0035] ;
[0036]
[0037] .
[0038] As a further improvement of the technical solution, the specific judgment situation in the stability judgment module includes:
[0039] Case 1: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. In the incoming delay detection unit;
[0040] Case 2: When the standard voltage data is set With the calculated voltage data When they are consistent, it means that there is no voltage instability in the relay;
[0041]
[0042] Case j: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. In the inbound delay detection unit.
[0043] As a further improvement of the technical solution, the delay detection unit is used to receive the voltage instability command data of the relay in the stability judgment module, and use the contact state detection method to detect the response action delay fault of the relay.
[0044] As a further improvement of the technical solution, the model adjustment unit includes a model building module, a difference calculation module and a control adjustment module;
[0045] The model building module is used to receive the response action delay command data of the detection relay in the delay detection unit, the model adjustment unit obtains the predicted resistance trend data, the predicted current trend data, the set standard resistance data and the set standard voltage data and the calculated voltage set data from the stability judgment module, and then obtains the inconsistent resistance set data from the voltage calculation module, and predicts the voltage trend according to the calculated voltage data in the calculated voltage set data, and then establishes a prediction model according to the predicted resistance trend data, the predicted current trend data and the predicted voltage trend data, and the prediction model is used to collect the calculated voltage set data, the set standard voltage data, the set standard resistance data and the inconsistent resistance set data;
[0046] The difference calculation module is used to receive data in the model building module. The prediction model calculates the voltage difference between the calculated voltage data in the calculated voltage set data and the set standard voltage data. At the same time, the prediction model calculates the resistance difference between the set standard resistance data and the predicted resistance data in the inconsistent resistance set data that is inconsistent with the set standard resistance data.
[0047] Compared with the prior art, the present invention has the following beneficial effects:
[0048] 1. In the relay fault detection method and system based on deep learning, the trend prediction module obtains historical resistance data, historical current data, the time corresponding to the recorded resistance data, and the time corresponding to the recorded current data, and uses the convolutional neural network in deep learning to predict the resistance trend according to the acquired historical resistance data and the time corresponding to the acquired recorded resistance data, and then uses the convolutional neural network in deep learning to predict the current trend according to the acquired historical current data and the time corresponding to the acquired recorded current data. By predicting the resistance trend, potential fault risks and problems can be identified, prevented and solved in advance, and the stability of the relay can be ensured. At the same time, predicting the current trend can better understand the operating status of the relay, detect abnormal conditions in time, and take corresponding measures.
[0049] 2. In the relay fault detection method and system based on deep learning, the model adjustment unit receives the response action delay command data detected by the delay detection unit, obtains data from the prediction comparison list and the inconsistent resistance set data from the calculation and judgment unit, and establishes a prediction model. The prediction model calculates the resistance difference according to the data in the inconsistent resistance set data, and controls and adjusts the calculated resistance difference data. By calculating the voltage difference and resistance difference through the prediction model, potential problems in the circuit can be discovered in advance, and damage to the relay caused by excessive voltage fluctuations in the coil circuit of the relay can be avoided. The voltage difference and resistance difference are further controlled and adjusted, thereby improving the stability of the relay. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is the overall step diagram of the present invention;
[0051] Figure 2 is an overall block diagram of the present invention;
[0052] Figure 3 It is a block diagram of the prediction comparison unit of the present invention;
[0053] Figure 4 It is a block diagram of the calculation and judgment unit of the present invention;
[0054] Figure 5 This is a block diagram of the model adjustment unit of the present invention.
[0055] The meaning of each number in the figure is:
[0056] 1. Forecast and comparison unit; 11. Trend forecast module; 12. Data comparison module;
[0057] 2. Calculation and judgment unit; 21. Voltage calculation module; 22. Stability judgment module;
[0058] 3. Delay detection unit;
[0059] 4. Model adjustment unit; 41. Model establishment module; 42. Difference calculation module; 43. Control adjustment module. DETAILED DESCRIPTION
[0060] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Example 1
[0062] See also Figure 1-Figure 5 As shown, one of the purposes of this embodiment is to provide a relay fault detection method based on deep learning, including the following method steps:
[0063] S1, the prediction comparison unit 1 uses a multimeter to obtain historical resistance data, historical current data, record the time corresponding to the resistance data and the time corresponding to the current data, and predict the resistance trend and the current trend, and then obtain the predicted resistance data according to the predicted resistance trend data;
[0064] S2, the calculation and judgment unit 2 integrates the predicted resistance data into an inconsistent resistance set, calculates the voltage according to the inconsistent predicted resistance data, combines the calculated voltage data into a calculated voltage set and judges the voltage instability, and the delay detection unit 3 triggers the detection of the relay response action delay fault according to the voltage instability command data;
[0065] S3, the model adjustment unit 4 obtains inconsistent resistance set data and establishes a prediction model according to the trigger of the detection relay response action delay command data. The prediction model calculates the resistance difference according to the data in the inconsistent resistance set data and controls and adjusts the calculated resistance difference data.
[0066] The second object of the present invention is to provide a system for operating the above-mentioned relay fault detection system based on deep learning, comprising a prediction comparison unit 1, a calculation and judgment unit 2, a delay detection unit 3, and a model adjustment unit 4;
[0067] The prediction and comparison unit 1 includes a trend prediction module 11 and a data comparison module 12;
[0068] The trend prediction module 11 uses a multimeter to obtain historical resistance data and historical current data, and simultaneously obtains the time corresponding to the recorded resistance data and the time corresponding to the recorded current data, and uses the convolutional neural network in deep learning to predict the resistance trend according to the acquired historical resistance data and the time corresponding to the acquired recorded resistance data, and then uses the convolutional neural network in deep learning to predict the current trend according to the acquired historical current data and the time corresponding to the acquired recorded current data. By predicting the resistance trend, potential fault risks and problems can be identified, prevented and solved in advance, and the stability of the relay can be ensured. At the same time, the current trend can be predicted to better understand the operating status of the relay, detect abnormal conditions in time, and take corresponding measures;
[0069] The implementation steps of using convolutional neural network in deep learning to predict resistance trend are as follows:
[0070] Step 1: First collect the historical resistance data The time corresponding to the acquired recorded resistance data According to the input requirements of the CNN model, the historical resistance data The time corresponding to the acquired recorded resistance data Convert into a format suitable for CNN model input;
[0071] The historical resistance data obtained The time corresponding to the acquired recorded resistance data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ;
[0072] Step 2: Based on the historical resistance data obtained The time corresponding to the acquired recorded resistance data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build a CNN model;
[0073] Step 3: Prepare the training set The data is input into the CNN model, and the historical resistance data obtained in the CNN model is continuously adjusted. The time corresponding to the acquired recorded resistance data Parameters are set so that the CNN model can better fit the data, and then the trained CNN model is used to predict the resistance trend of the newly acquired recorded resistance data;
[0074] The implementation steps of using convolutional neural network in deep learning to predict current trend are as follows:
[0075] Step 1: First collect the historical current data The time corresponding to the acquired recorded current data ,according to The input requirements of the model are to obtain historical current data The time corresponding to the acquired recorded current data Convert to suitable The format of the model input;
[0076] The historical current data obtained The time corresponding to the acquired recorded current data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ;
[0077] Step 2: Based on the historical current data obtained The time corresponding to the acquired recorded current data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build Model;
[0078] Step 3: Prepare the training set Data input to In the model, by constantly adjusting Historical current data obtained from the model The time corresponding to the acquired recorded current data Parameters, so The model can better fit the data, and then use the trained The model predicts the current trend for the newly acquired recorded resistance data;
[0079] The data comparison module 12 is used to receive the resistance trend data and the predicted current trend data predicted by the trend prediction module 11, and obtain the predicted resistance data and the corresponding resistance timestamp according to the predicted resistance trend data, combine the predicted resistance data into a predicted resistance set, and then obtain the predicted current data and the corresponding current timestamp according to the predicted current trend data, combine the predicted current data into a predicted current set, and then compare the set standard resistance data with the predicted resistance data in the predicted resistance set data;
[0080] Predicted resistance set , is the first predicted resistance data, is the second predicted resistance data, is the nth predicted resistance data, n is the number of resistance data, and n is a constant;
[0081] Predicted Current Collection , is the first predicted current data, is the second predicted current data, is the mth predicted current data, m is the number of current data, and m is a constant;
[0082] The specific comparison conditions in the data comparison module 12 include:
[0083] Case ①: When the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp Passed into calculation and judgment unit 2;
[0084] Case ②: When the standard resistance data is set With the predicted resistance data When they are consistent, it means that there is no resistance fluctuation in the relay;
[0085]
[0086] Case n, when the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp The data is transmitted to the calculation and judgment unit 2.
[0087] The calculation and judgment unit 2 includes a voltage calculation module 21 and a stability judgment module 22;
[0088] The voltage calculation module 21 is used to receive the resistance data and the corresponding resistance timestamp predicted by the data comparison module 12, and obtain the predicted current set and the corresponding current timestamp from the data comparison module 12, integrate the predicted resistance data into an inconsistent resistance set, find the predicted current data at the same time point as the corresponding current timestamp according to the predicted resistance data and the corresponding resistance timestamp, and calculate the voltage according to the inconsistent predicted resistance data and the predicted current data at the same time point using Ohm's law, and combine the calculated voltage data into a calculated voltage set;
[0089] Inconsistent resistor set , The standard resistance data for the first and Inconsistent predicted resistance data , The standard resistance data for the second and Inconsistent predicted resistance data , The standard resistance data set for the i-th Inconsistent predicted resistance data , i is the standard resistance data set The number of inconsistent predicted resistance data, and i is a constant;
[0090] The implementation steps of calculating the voltage using Ohm's law in the voltage calculation module 21 are as follows:
[0091] Step 1: When obtaining inconsistent predicted resistance data , based on inconsistent predicted resistance data Get the corresponding resistance timestamp , according to the corresponding resistor time stamp Find the current timestamp corresponding to Predicted current data at the same time point ;
[0092] Step 2: Based on inconsistent predicted resistance data Current data with predictions at the same point in time Calculate the voltage and obtain the calculated voltage data , the specific algorithm formula is:
[0093] ;
[0094] ;
[0095]
[0096] ;
[0097] Among them, by calculating and analyzing voltage data, voltage fluctuations and instabilities can be discovered in a timely manner, thereby helping to prevent equipment damage or accidents;
[0098] Calculated voltage set , is the voltage data of the first calculation, is the voltage data of the second calculation, is the jth calculated voltage data, j is the number of calculated voltage data, and j is a constant. Due to inconsistent predicted resistance data Current data with predictions at the same point in time To calculate the voltage, the calculated voltage data The corresponding voltage timestamp With the corresponding resistor time stamp , the corresponding current timestamp All at the same point in time;
[0099] The stability judgment module 22 is used to receive the voltage set data calculated by the voltage calculation module 21, and use the set standard voltage data and the voltage data calculated in the calculated voltage set data to judge the voltage instability situation;
[0100] The specific judgment situations in the stability judgment module 22 include:
[0101] Case 1: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. In the incoming delay detection unit 3;
[0102] Case 2: When the standard voltage data is set With the calculated voltage data When they are consistent, it means that there is no voltage instability in the relay;
[0103]
[0104] Case j: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. Incoming delay detection unit 3.
[0105] The delay detection unit 3 is used to receive the voltage instability command data of the relay in the stability judgment module 22, and use the contact state detection method to detect the response action delay fault of the relay. By detecting the response action delay of the relay, it can be understood whether the response speed of the relay meets the requirements, thereby ensuring that the action can be executed in a timely and accurate manner when needed;
[0106] The implementation steps of using the contact state detection method to detect the delay of relay response action:
[0107] Step 1: First, the relay has voltage instability command data , and disconnect all power supplies related to the relay, including the main power supply and any other connected power supplies, wait for the relay to be fully discharged, and ensure that there is no current in the relay or voltage ;
[0108] Step 2: Connect the appropriate current and voltage Source to the input of the relay and derive the rated parameters , according to the rated parameters of the relay Setting the current and voltage Value, turn-on current and voltage source, so that the relay is in normal working condition;
[0109] Step 3: Observe the response of the relay contacts and the action of the relay contacts during the switching state , including whether the contacts are accurately conducting or disconnect , whether the contacts can respond in time Current and voltage The changes in the contact point are then analyzed. Record, paying special attention to the contact from the connection to disconnect or disconnect To connect The switching process;
[0110] And use the recorded results and the relay's normal working conditions during the switching state to When the recorded results are compared with the relay's normal operating conditions during the switching process, the When the performance is inconsistent, it means that there is something wrong with the relay;
[0111] Step 4: Use a timer to record the time from when the contacts are connected to disconnect or disconnect To connect Action time , the recorded contact action time Standard time with normal contact action When the contact action time is compared With standard time When there is a difference, it indicates a time delay in the contact action, and also indicates that there is a response action delay of the relay, and the command data for detecting the response action delay of the relay is transmitted to the model adjustment unit 4;
[0112] The model adjustment unit 4 includes a model building module 41, a difference calculation module 42 and a control adjustment module 43;
[0113] The model building module 41 is used to receive the response action delay command data of the detection relay in the delay detection unit 3, the model adjustment unit 4 obtains the predicted resistance trend data, the predicted current trend data, the set standard resistance data and the set standard voltage data and the calculated voltage set data from the stability judgment module 22 from the data comparison module 12, and then obtains the inconsistent resistance set data from the voltage calculation module 21, and predicts the voltage trend according to the calculated voltage data in the calculated voltage set data, and then establishes a prediction model according to the predicted resistance trend data, the predicted current trend data and the predicted voltage trend data, and the prediction model is used to collect the calculated voltage set data, the set standard voltage data, the set standard resistance data and the inconsistent resistance set data;
[0114] The difference calculation module 42 is used to receive the data in the model building module 41, and the prediction model calculates the voltage difference between the calculated voltage data in the calculated voltage set data and the set standard voltage data, and at the same time, the prediction model calculates the resistance difference between the set standard resistance data and the predicted resistance data in the inconsistent resistance set data that is inconsistent with the set standard resistance data;
[0115] The control and regulation module 43 is used to receive the voltage difference and the resistance difference calculated by the difference calculation module 42 and to control and regulate the voltage difference and the resistance difference.
[0116] Usage process:
[0117] The data comparison module 12 receives the data in the trend prediction module 11 and compares the set standard resistance data with the predicted resistance data in the predicted resistance set data to determine whether the relay has resistance fluctuation. The voltage calculation module 21 receives the predicted resistance data and the corresponding resistance timestamp in the data comparison module 12, and uses Ohm's law to calculate the voltage according to the inconsistent predicted resistance data and the predicted current data at the same time point, and combines the calculated voltage data into a calculated voltage set, and transmits the calculated voltage set to the stability judgment module 22. The stability judgment module 22 uses the set standard voltage data and the calculated voltage data in the calculated voltage set data to judge the voltage instability, and transmits the relay voltage instability command data to the delay detection unit 3, and the delay detection unit 3 detects the response action delay fault of the relay.
[0118] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A relay fault detection method based on deep learning, Features: The method comprises the following steps: S1, prediction and comparison unit (1) uses a multimeter to obtain historical resistance data, historical current data, record the time corresponding to the resistance data and the time corresponding to the current data, and make a resistance trend prediction and a current trend prediction, and then obtain predicted resistance data based on the predicted resistance trend data; The prediction and comparison unit (1) comprises a trend prediction module (11) and a data comparison module (12); The trend prediction module (11) uses a multimeter to obtain historical resistance data and historical current data, and simultaneously obtains the time corresponding to the recorded resistance data and the time corresponding to the recorded current data, and uses a convolutional neural network in deep learning to predict the resistance trend based on the obtained historical resistance data and the time corresponding to the obtained recorded resistance data, and then uses a convolutional neural network in deep learning to predict the current trend based on the obtained historical current data and the time corresponding to the obtained recorded current data; The implementation steps of using convolutional neural network in deep learning to predict resistance trend are as follows: Step 1: First collect the historical resistance data The time corresponding to the acquired recorded resistance data According to the input requirements of the CNN model, the historical resistance data The time corresponding to the acquired recorded resistance data Convert into a format suitable for CNN model input; The historical resistance data obtained The time corresponding to the acquired recorded resistance data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ; Step 2: Based on the historical resistance data obtained The time corresponding to the acquired recorded resistance data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build a CNN model; Step 3: Prepare the training set The data is input into the CNN model, and the historical resistance data obtained in the CNN model is continuously adjusted. The time corresponding to the acquired recorded resistance data Parameters are set so that the CNN model can better fit the data, and then the trained CNN model is used to predict the resistance trend of the newly acquired recorded resistance data; The implementation steps of using convolutional neural network in deep learning to predict current trend are as follows: Step 1: First collect the historical current data The time corresponding to the acquired recorded current data ,according to The input requirements of the model are to obtain historical current data The time corresponding to the acquired recorded current data Convert to suitable The format of the model input; The historical current data obtained The time corresponding to the acquired recorded current data Arrange into sliding window sequence , each sliding window sequence Contains multiple features ; Step 2: Based on the historical current data obtained The time corresponding to the acquired recorded current data Integrate into data sets , dataset Divide into training set and validation set , and then from the sliding window sequence Extract features from , and use multiple convolution kernels to capture the data set Feature information in , and through the extracted features and feature information Build Model; Step 3: Prepare the training set Data input to In the model, by constantly adjusting Historical current data obtained in the model The time corresponding to the acquired recorded current data Parameters, so The model can better fit the data, and then use the trained The model predicts the current trend of the newly acquired recorded resistance data; The data comparison module (12) is used to receive the resistance trend data and the predicted current trend data predicted by the trend prediction module (11), and obtain the predicted resistance data and the corresponding resistance timestamp according to the predicted resistance trend data, combine the predicted resistance data into a predicted resistance set, and then obtain the predicted current data and the corresponding current timestamp according to the predicted current trend data, combine the predicted current data into a predicted current set, and then compare the set standard resistance data with the predicted resistance data in the predicted resistance set data; S2, the calculation and judgment unit (2) integrates the predicted resistance data into an inconsistent resistance set, calculates the voltage according to the inconsistent predicted resistance data, combines the calculated voltage data into a calculated voltage set and judges the voltage instability, and the delay detection unit (3) triggers the detection of the delay fault of the response action of the relay according to the voltage instability command data; The calculation and judgment unit (2) comprises a voltage calculation module (21) and a stability judgment module (22); The voltage calculation module (21) is used to receive the resistance data and the corresponding resistance timestamp predicted by the data comparison module (12), and obtain the predicted current set and the corresponding current timestamp from the data comparison module (12), integrate the predicted resistance data into an inconsistent resistance set, find the predicted current data at the same time point as the corresponding current timestamp based on the predicted resistance data and the corresponding resistance timestamp, calculate the voltage based on the inconsistent predicted resistance data and the predicted current data at the same time point using Ohm's law, and combine the calculated voltage data into a calculated voltage set; The stability judgment module (22) is used to receive the voltage aggregate data calculated in the voltage calculation module (21), and to judge the voltage instability situation by using the set standard voltage data and the voltage data calculated in the calculated voltage aggregate data; S3, the model adjustment unit (4) acquires inconsistent resistance set data and establishes a prediction model according to the triggering command data of the detection relay response action delay, the prediction model calculates the resistance difference according to the data in the inconsistent resistance set data, and controls and adjusts the calculated resistance difference data.
2. A relay fault detection system based on deep learning, the system being used to operate the relay fault detection method based on deep learning according to claim 1, Features: It includes a prediction comparison unit (1), a calculation and judgment unit (2), a delay detection unit (3), and a model adjustment unit (4).
3. The relay fault detection system based on deep learning according to claim 2, Features: The specific comparison conditions in the data comparison module (12) include: Case ①: When the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp The data is transmitted to the calculation and judgment unit (2); Case ②: When the standard resistance data is set With the predicted resistance data When they are consistent, it means that there is no resistance fluctuation in the relay; Case n, when the standard resistance data is set With the predicted resistance data If the inconsistency occurs, it indicates that the relay has resistance fluctuations, which causes the relay coil to have poor contact. and the corresponding resistor timestamp The data is passed to the calculation and judgment unit (2).
4. The relay fault detection system based on deep learning according to claim 3, Features: The voltage calculation module (21) includes the following steps for calculating the voltage using Ohm's law: Step 1: When obtaining inconsistent predicted resistance data , based on inconsistent predicted resistance data Get the corresponding resistance timestamp , according to the corresponding resistor time stamp Find the current timestamp corresponding to Predicted current data at the same time point ; Step 2: Based on inconsistent predicted resistance data Current data with predictions at the same point in time Calculate the voltage and obtain the calculated voltage data , the specific algorithm formula is: ; ; 。 5. The relay fault detection system based on deep learning according to claim 4, Features: The specific judgment conditions in the stability judgment module (22) include: Case 1: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. In the incoming delay detection unit (3); Case 2: When the standard voltage data is set With the calculated voltage data When they are consistent, it means that there is no voltage instability in the relay; Case j: When the standard voltage data is set With the calculated voltage data If the voltage is not consistent, it means that the relay has unstable voltage. In the incoming delay detection unit (3).
6. The relay fault detection system based on deep learning according to claim 5, Features: The delay detection unit (3) is used to receive relay voltage instability command data in the stability judgment module (22), and detect the relay response action delay fault using a contact state detection method.
7. The relay fault detection system based on deep learning according to claim 6, Features: The model adjustment unit (4) comprises a model building module (41), a difference calculation module (42) and a control adjustment module (43); The model building module (41) is used to receive the response action delay command data of the detection relay in the delay detection unit (3), the model adjustment unit (4) obtains the predicted resistance trend data, the predicted current trend data, the set standard resistance data from the data comparison module (12) and the set standard voltage data and the calculated voltage set data from the stability judgment module (22), and then obtains the inconsistent resistance set data from the voltage calculation module (21), and predicts the voltage trend according to the calculated voltage data in the calculated voltage set data, and then establishes a prediction model according to the predicted resistance trend data, the predicted current trend data and the predicted voltage trend data, the prediction model is used to collect the calculated voltage set data, the set standard voltage data, the set standard resistance data and the inconsistent resistance set data; The difference calculation module (42) is used to receive data in the model building module (41), and the prediction model calculates the voltage difference between the calculated voltage data in the calculated voltage set data and the set standard voltage data, and at the same time, the prediction model calculates the resistance difference between the set standard resistance data and the predicted resistance data in the inconsistent resistance set data that is inconsistent with the set standard resistance data; The control and regulation module (43) is used to receive the voltage difference and the resistance difference calculated in the difference calculation module (42) and to control and regulate the voltage difference and the resistance difference.
