WO2023274121A1 - Fault detection method and apparatus, and electronic device and computer-readable storage medium - Google Patents

Fault detection method and apparatus, and electronic device and computer-readable storage medium Download PDF

Info

Publication number
WO2023274121A1
WO2023274121A1 PCT/CN2022/101434 CN2022101434W WO2023274121A1 WO 2023274121 A1 WO2023274121 A1 WO 2023274121A1 CN 2022101434 W CN2022101434 W CN 2022101434W WO 2023274121 A1 WO2023274121 A1 WO 2023274121A1
Authority
WO
WIPO (PCT)
Prior art keywords
simulation
circuit
state
signal
tested
Prior art date
Application number
PCT/CN2022/101434
Other languages
French (fr)
Chinese (zh)
Inventor
周昀逸
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023274121A1 publication Critical patent/WO2023274121A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Definitions

  • the present application relates to the technical field of detection, and in particular to a fault detection method, a fault detection device, electronic equipment, and a computer-readable storage medium.
  • the intermittent failure of the circuit system is a kind of intermittent and unpredictable failure that appears and disappears randomly. For example, after the intermittent failure occurs and lasts for a period of time, the circuit system resumes its execution ability without any corrective maintenance operations.
  • the circuit system When it is determined that intermittent faults occur and are in an active period, the circuit system will produce wrong results, which will easily lead to interruption of tasks in the circuit system and cause false alarms; when it is determined that intermittent faults disappear, the circuit system will output correct results , but cannot accurately detect the cause of intermittent faults, resulting in a waste of circuit system resources.
  • An embodiment of the present application provides a fault detection method, including: simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit; collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; And according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, the signal to be tested of the circuit to be tested is detected, and the fault type of the circuit to be tested is determined.
  • An embodiment of the present application provides a fault detection device, including: an acquisition module configured to simulate a circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit; a signal acquisition module configured to perform signal processing on the simulation circuit Acquisition, obtaining a simulation signal set corresponding to the simulation state; and a fault detection module configured to detect the signal to be tested of the circuit to be tested according to the simulation signal set corresponding to the simulation state and a preset detection algorithm, and determine the fault type of the circuit to be tested.
  • An embodiment of the present application provides an electronic device, including: one or more processors; and a memory on which one or more computer programs are stored. When the one or more computer programs are executed by the one or more processors, One or more processors are made to implement the fault detection method in the embodiment of the present application.
  • An embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the fault detection method in the embodiment of the present application is implemented.
  • FIG. 1 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • FIG. 2 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • FIG. 3 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • Fig. 4 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • FIG. 5 shows a structural diagram of a fault detection device provided by an embodiment of the present application.
  • FIG. 6 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the fault detection method and apparatus according to the embodiments of the present application.
  • intermittent faults can easily cause short-term failure of the circuit system.
  • the number of intermittent faults accounts for 70% to 80% of all faults.
  • the circuit system will produce wrong results, which will easily lead to the interruption of tasks in the circuit system. , and will cause false alarms; in the case of intermittent faults, restarting the circuit system will make the intermittent faults disappear, but it is difficult to locate the cause of the intermittent faults; in the case of determining that the intermittent faults disappear, the circuit system will output the correct result , but cannot accurately detect the cause of intermittent faults, resulting in a waste of circuit system resources.
  • the most direct impact of intermittent faults on the communication system is to reduce the communication quality of communication equipment and shorten the service life of communication equipment.
  • a signal processing method based on Ensemble Empirical Mode Decomposition is used to detect faults in the circuit system.
  • the signal processing method based on EEMD after the signal is averaged and decomposed, the obtained Intrinsic Mode Function (IMF) component does not fully conform to the definition of the Intrinsic Mode Function in EEMD; and , only when the number of decompositions is large enough, the added white noise will have a small enough impact on the signal decomposition, but there will still be noise signals, which will affect the accuracy of the judgment of the fault type. Moreover, too many times of decomposing the signal will also lead to prolongation of the signal processing time.
  • IMF Intrinsic Mode Function
  • FIG. 1 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • the fault detection method can be applied to a fault detection device.
  • the fault detection method in the embodiment of the present application may include steps S101 to S103.
  • step S101 the circuit to be tested is simulated to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
  • Different simulation software can be used to simulate the circuit to be tested, so as to obtain a simulated circuit corresponding to the circuit to be tested.
  • the simulation circuit can simulate the circuit to be tested to obtain different working states corresponding to the circuit to be tested.
  • the simulation state of the simulated circuit is used to represent the different working states of the circuit to be tested, which can avoid multiple inspections of the circuit to be tested, avoid damage to the circuit under test.
  • Step S102 collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state.
  • Signal collection can be performed on the simulation circuit according to different simulation states to obtain simulation signal sets under different simulation states.
  • the normal signal set under the normal state can be obtained, and the normal signal set includes a plurality of normal signals; when the simulation state is a fault state, the fault signal under the fault state can be obtained A set, the set of fault signals includes a plurality of fault signals.
  • signal samples can be enriched; using signal samples in a variety of different simulation states can more intuitively observe the working conditions of the simulation circuit in different simulation states, thereby improving the performance of the circuit under test. Fault detection accuracy.
  • Step S103 according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test, and determine the fault type of the circuit under test.
  • the preset detection algorithm is a preset circuit detection algorithm.
  • the detection results corresponding to different simulation states can be obtained, and then the comparison between different detection results can quickly determine the
  • the specific fault state of the circuit can speed up the fault detection speed of the circuit to be tested, improve the accuracy of fault detection of the circuit to be tested, and reduce unnecessary maintenance costs.
  • the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit are obtained, thereby reducing the maintenance of the circuit to be tested, and avoiding damage to the circuit to be tested; performing signal acquisition on the simulation circuit, Obtain the simulation signal set corresponding to the simulation state to enrich the signal samples and improve the detection accuracy of the circuit fault under test; according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test and determine the
  • the fault type of the circuit under test can speed up the fault detection speed of the circuit under test, improve the accuracy of fault detection of the circuit under test, and reduce unnecessary maintenance costs.
  • FIG. 2 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • the fault detection method can be applied to a fault detection device.
  • the fault detection method in the embodiment of the present application may include steps S201 to S203.
  • step S201 the circuit to be tested is simulated to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
  • the emulation of the circuit to be tested and obtaining the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit include: simulating the circuit to be tested according to a simulation algorithm to obtain a simulation circuit, and the simulation circuit includes the switches at the input and output ends of the circuit; obtain the switching time and switching frequency of the switch in the simulation circuit; and simulate the working state of the circuit under test according to the switching time and switching frequency to obtain the simulation state of the simulation circuit.
  • the working state of the circuit to be tested or the simulation state of the simulation circuit includes: any one or more of normal state, intermittent fault state and permanent fault state;
  • the simulation signal set corresponding to the simulation state includes: normal simulation Any one or more of signal collection, intermittent fault simulation signal collection and permanent fault simulation signal collection.
  • the signal acquisition of the simulated circuit can be intuitively observed to obtain the normal simulated signal set, intermittent Any one or several of the fault simulation signal set and the permanent fault simulation signal set can be used to obtain a variety of simulation signals, which can reflect the working conditions of the simulation circuit in different simulation states, and make a contribution to the subsequent processing of the simulation signals in the simulation signal set. Get ready to speed up detection of your circuit under test.
  • step S202 signal collection is performed on the simulation circuit at a preset frequency to obtain a simulation signal set corresponding to the simulation state.
  • Preset frequencies include switching frequencies in simulated circuits.
  • the preset frequency needs to be consistent with the working frequency of the circuit to be tested. For example, if the preset frequency is 5 times per minute, the switching frequency in the simulation circuit is also 5 times per minute to ensure that the simulation The working conditions of the circuit and the circuit under test are consistent; furthermore, the simulation signal set obtained by collecting signals from the simulation circuit can accurately reflect the characteristics of the circuit under test under different working conditions.
  • Step S203 according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test, and determine the fault type of the circuit under test.
  • step S203 in the fault detection method shown in FIG. 2 is the same as step S103 in the fault detection method shown in FIG. 1 above, and will not be repeated here.
  • the simulation circuit including the switches arranged at the input end and the output end of the analog component can be obtained, which can virtualize the circuit to be tested and facilitate the debugging of the circuit to be tested;
  • the switching time and switching frequency of the switch in the simulation circuit and according to the switching time and the switching frequency, simulate the working state of the circuit to be tested, and obtain the simulation state of the simulation circuit, so that the simulation circuit can truly and accurately reflect the difference of the circuit to be tested
  • the working state of the simulation circuit the signal collection of the simulation circuit is carried out at a preset frequency to obtain the simulation signal set corresponding to the simulation state, which can ensure that the working conditions of the simulation circuit and the circuit under test are consistent; and through the simulation signal set corresponding to different simulation states, it can Accurately reflect the characteristics of the circuit under test under different working conditions, and enrich the detection samples; according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test
  • FIG. 3 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • the fault detection method can be applied to a fault detection device.
  • the fault detection method in the embodiment of the present application may include steps S301 to S307.
  • Step S301 simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
  • Step S302 collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state.
  • step S301 and step S302 in the fault detection method shown in FIG. 3 are the same as step S101 and step S102 in the fault detection method shown in FIG. 1 , and will not be repeated here.
  • Step S303 performing empirical mode decomposition on the signal to be tested of the circuit to be tested to obtain a vector to be tested.
  • Empirical mode decomposition is a method of signal decomposition based on the time scale characteristics of the data itself, without presetting any basis functions. This empirical mode decomposition method is especially suitable for the analysis and processing of nonlinear and non-stationary signals.
  • the Intrinsic Mode Function (IMF) component corresponding to the test signal can be obtained, and the IMF component can make the instantaneous frequency of the test signal no longer subject to specific fluctuations Specific fluctuations are unwanted fluctuations formed by asymmetrical waveforms. Then, the IMF component is used as the vector to be tested, so that the signal to be tested can be detected in a more accurate form, and the detection accuracy can be improved.
  • IMF Intrinsic Mode Function
  • Step S304 performing empirical mode decomposition on the simulation signals in the simulation signal set corresponding to the simulation state to obtain an eigenvector matrix corresponding to the simulation state.
  • the corresponding eigenvector matrix can ensure the accuracy of the eigenvector matrix corresponding to the simulation state and facilitate subsequent processing.
  • Step S305 according to the eigenvector matrix corresponding to the simulation state and the preset detection algorithm, determine the fault detection model corresponding to the simulation state.
  • the simulation state includes any one or more of normal state, intermittent fault state and permanent fault state.
  • the preset detection algorithm is used to process the eigenvector matrix corresponding to the simulation state to obtain the fault detection model corresponding to the simulation state, that is, any one or several of the following detection models can be obtained: normal state detection model, intermittent Faulty state detection model and permanent faulty state detection model.
  • the detection methods of the simulation circuit in different simulation states can be refined to improve the detection accuracy of the circuit to be tested.
  • the adopting the preset detection algorithm to process the eigenvector matrix corresponding to the simulation state, and obtaining the fault detection model corresponding to the simulation state includes: adopting the preset detection algorithm to perform preset detection under the intermittent fault state The parameters of the model are estimated until the preset detection model satisfies the preset convergence condition, and the intermittent fault state detection model is obtained.
  • the preset detection model includes an eigenvector matrix.
  • Intermittent faults are the most likely faults in the circuit to be tested.
  • the parameters of the preset detection model under the intermittent fault state are estimated until the preset detection model meets the preset convergence conditions.
  • An intermittent fault state detection model is obtained, and the detection speed of intermittent faults can be accelerated by using the intermittent fault state detection model.
  • the preset detection model includes an eigenvector matrix, and the eigenvector matrix includes a plurality of IMF components.
  • the characteristics of the IMF components can be used, that is, the instantaneous frequency of the signal to be tested can no longer be affected by specific fluctuations through the IMF components. , to meet the stability requirements of the signal to be tested, thereby ensuring the detection accuracy of the circuit to be tested.
  • Step S306 input the vector to be tested into the fault detection model corresponding to the simulation state, and obtain the working state probability corresponding to the circuit to be tested.
  • the simulation state includes any one or more of normal state, intermittent fault state and permanent fault state.
  • the working state probability corresponding to the circuit to be tested may include: the probability that the circuit to be tested is in a normal state, the probability that the circuit to be tested is in an intermittent fault state, and the probability that the circuit to be tested is in a permanent fault state. kind.
  • the input of the vector to be tested into the fault detection model corresponding to the simulation state, and obtaining the probability of the working state corresponding to the circuit to be tested can also be implemented in the following manner: according to the forward-backward algorithm, the vector to be tested is Input to the fault detection model corresponding to the simulation state to obtain the working state probability corresponding to the circuit to be tested.
  • the forward-backward algorithm includes forward probability and backward probability.
  • the forward probability can be expressed as: at time 1 to t, the vector to be tested is input into the fault detection model corresponding to the simulation state, so The obtained probability of the working state corresponding to the circuit under test; the backward probability can be expressed as: from t+1 to the termination moment, input the vector to be tested into the fault detection model corresponding to the simulation state, and obtain the corresponding working state of the circuit under test probability.
  • t is an integer greater than or equal to 1.
  • the obtained fault detection model corresponding to the simulation state has higher detection accuracy , so as to ensure that the vectors to be tested are input into the fault detection model after parameter estimation corresponding to different simulation states, and the obtained working state probability corresponding to the circuit to be tested is more accurate.
  • Step S307 Determine the fault type of the circuit to be tested according to the working state probability corresponding to the circuit to be tested.
  • the working state probability corresponding to the circuit to be tested includes: likelihood probability, which is a probability obtained based on a statistical model, and the collected signal can be statistically processed through the statistical model to ensure that the obtained likelihood probability is more accurate.
  • the determination of the fault type of the circuit under test according to the probability of the working state corresponding to the circuit under test includes: the probability that the circuit under test is in a normal state, the probability that the circuit under test is in an intermittent fault state, and the probability that the circuit under test is in a fault state.
  • the probability of the permanent fault state is sorted to obtain the sorting result; and according to the sorting result, the fault type of the circuit to be tested is determined.
  • the probability that the circuit to be tested is in a normal state is 0.3
  • the probability that the circuit to be tested is in an intermittent fault state is 0.7
  • the probability that the circuit to be tested is in a permanent fault state is 0.2
  • the sorting result is: the corresponding working state probability of the circuit to be tested
  • the order from high to low is: intermittent fault state, normal state and permanent fault state; then it can be determined that the fault type of the circuit under test is intermittent fault at this time.
  • step S304 may also be implemented in the following manner:
  • the simulation signal in the simulation signal set corresponding to the simulation state is used as the original signal; the original signal is processed according to the preset noise signal, and the signal decomposition matrix is obtained.
  • the signal decomposition matrix is a matrix corresponding to the simulation state, and the signal decomposition matrix includes multiple decompositions vector; and according to the signal decomposition matrix, determine the eigenvector matrix corresponding to the simulation state.
  • the simulated signal set corresponding to the simulated state may include: a normal simulated signal set, an intermittent fault simulated signal set, and a permanent fault simulated signal set.
  • the signal decomposition matrix includes: normal state signal decomposition matrix, intermittent fault state signal decomposition matrix and permanent fault state signal decomposition Matrix, the signal decomposition matrix corresponding to each state includes IMF components with m rows and j columns, where m and j are integers greater than or equal to 1.
  • the lengths of the simulation signals in each simulation signal set are the same.
  • the signal decomposition matrix under different simulation states can be obtained, which can reflect the characteristics of the signal under each simulation state in multiple dimensions; and according to the signal decomposition matrix, the eigenvector matrix corresponding to the simulation state can be determined , so that the characteristic information of the eigenvector matrix is richer, and the characteristic information of the collected signal is ensured to be better extracted and processed to facilitate subsequent processing.
  • the preset noise signal includes: first white noise and second white noise, the second white noise is noise with the same amplitude and opposite direction to the first white noise;
  • the preset noise signal according to Processing the original signal to obtain the signal decomposition matrix includes: adding first white noise to the original signal to obtain the first signal to be processed; adding second white noise to the original signal to obtain the second signal to be processed; and according to the first signal to be processed signal and the second signal to be processed, and determine a signal decomposition matrix.
  • Both the first white noise and the second white noise are noises whose power spectral density is constant in the entire frequency domain. Random noise with the same energy density at all frequencies is called white noise. If the first white noise is Gaussian white noise, that is, the amplitude distribution of the first white noise obeys Gaussian distribution, and the power spectral density of the first white noise is evenly distributed; then the second white noise is also Gaussian white noise, but the second The white noise is noise having the same amplitude and opposite direction to the first white noise.
  • the determination of the signal decomposition matrix based on the first signal to be processed and the second signal to be processed may be to perform empirical mode decomposition on the first signal to be processed and the second signal to be processed at the same time, and then analyze the two groups obtained after the decomposition
  • the IMF components are averaged to obtain a signal decomposition matrix. Since the first signal to be processed is the signal obtained by adding the first white noise to the original signal, and the second signal to be processed is the signal obtained by adding the second white noise to the original signal, therefore, the two sets of IMF components obtained after decomposition
  • the average value can offset the white noise added to the original signal, avoid the influence of white noise on the circuit detection, and improve the accuracy of the judgment of the fault type of the circuit under test.
  • the determining the eigenvector matrix corresponding to the simulation state according to the signal decomposition matrix includes: using the energy entropy of the decomposition vector in the signal decomposition matrix as the eigenvector, and the energy entropy of the decomposition vector reflects the frequency band energy of the signal to be processed information; and according to the eigenvectors, determine the eigenvector matrix corresponding to the simulation state.
  • the energy entropy of the decomposition vector reflects the frequency band energy information of the signal to be processed.
  • the IMF component can directly reflect the corresponding changes of different faults.
  • the eigenvector matrix is obtained, which can well reflect the occurrence of different circuit faults through the eigenvector matrix, and quickly determine the fault type of the circuit to be tested.
  • the determining the eigenvector matrix corresponding to the simulation state according to the signal decomposition matrix includes: using the magnitude of the decomposition vector in the signal decomposition matrix as the eigenvector; and determining the eigenvector corresponding to the simulation state according to the eigenvector matrix.
  • the magnitude of the decomposition vector in the signal decomposition matrix is the absolute value of the maximum value of the decomposition vector appearing instantaneously within one cycle.
  • the preset detection algorithm in step S305 includes: maximum expectation algorithm or wavelet decomposition algorithm; the preset detection model includes: discrete hidden Markov model or backpropagation neural network detection model; discrete hidden Markov
  • the parameters of the model include: the observation sequence, the number of simulation states, the initial state probability, the transition probability matrix and the observation probability transition matrix, and the observation sequence includes the eigenvector matrix.
  • the maximum expectation algorithm may include: any one or several of Bayesian inference maximum expectation algorithm (Expectation-Maximization algorithm, EM), EM gradient algorithm and generalized EM algorithm.
  • EM Bayesian inference maximum expectation algorithm
  • the expectation-maximization algorithm can be applied to parameter estimation of Gaussian Mixture Model (GMM) and Hidden Markov Model (HMM).
  • GMM Gaussian Mixture Model
  • HMM Hidden Markov Model
  • the instantaneous frequency of the signal to be measured is no longer affected by the specific fluctuation, and the stability of the observation sequence is guaranteed.
  • the number of simulated states may be three, for example, the simulated states include: normal state, intermittent fault state and permanent fault state.
  • the wavelet decomposition algorithm can also be applied to the analysis and processing of non-stationary signals (eg, simulated signals), so as to obtain accurate analysis results and facilitate the detection of the signal to be tested.
  • non-stationary signals eg, simulated signals
  • the learning process of propagation neural network includes forward learning and reverse learning.
  • the input signal is processed layer by layer from the input layer to the output layer through the hidden layer, and the state of neurons in each layer only affects the state of neurons in the next layer.
  • the error of the network output is attributed to the error of the connection weight.
  • the process of minimizing the cost function is used to complete the mapping from the input layer to the output layer.
  • the cost function can be the sum of the squares of the difference between the expected output and the actual output of the output unit in all input modes.
  • Fig. 4 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
  • the fault detection method can be applied to a fault detection device.
  • the fault detection method in the embodiment of the present application may include steps S401 to S409.
  • Step S401 collecting the voltage signal of the circuit under test to obtain a set of signals under test.
  • step S401 is executed, step S402 is also executed simultaneously.
  • the output voltage of the circuit to be tested is collected, and the obtained voltage signal is divided into multiple groups of signals to be tested, and the length of the signals to be tested is the same as that of the simulated signal obtained through the simulated circuit.
  • the acquisition frequency needs to be the same as that of the simulation circuit, so as to ensure the consistency of the acquisition signal corresponding to the simulation circuit and the voltage signal corresponding to the circuit under test, so that the detection result is more accurate.
  • Step S402 simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
  • the circuit to be tested can be simulated by the simulation software in the following way: connect a switch in series at the input end and output end of the component that may fail, and then simulate the test circuit by changing the switching time and switching frequency of each switch.
  • the circuit to be tested under the intermittent fault state is simulated to obtain the simulation circuit corresponding to the intermittent fault state; On and off, simulating the circuit under test under normal state and the circuit under test under permanent fault state, and obtain the simulation circuit corresponding to normal state and the simulation circuit corresponding to permanent fault state.
  • Step S403 collecting signals from the simulation circuit at a preset frequency to obtain a simulation signal set corresponding to the simulation state.
  • a preset input signal is set, and the preset input signal is input into a simulation circuit corresponding to a different simulation state, and a set of simulation signals corresponding to a different simulation state is collected through a preset test point.
  • the simulated signal set can be expressed as:
  • i represents the serial number of the simulation state (for example, when i is equal to 1, it represents the normal state; when i is equal to 2, it represents the intermittent fault state; when i is equal to 3, it represents the permanent fault state).
  • b represents the number of groups of signals collected in different simulation states, and b is an integer greater than or equal to 1.
  • n represents the number of sample points of each group of simulation signals. Indicates the nth simulation signal of group b collected in state i, and y ib represents the collection of simulation signals of group b collected in state i.
  • Step S404 adding Gaussian white noise to the simulation signals in the simulation signal set, and performing empirical mode decomposition on the signals after adding Gaussian white noise, to obtain IMF components corresponding to each simulation signal.
  • the first white noise (the first white noise can be Gaussian white noise) can be added to the simulated signal in the simulated signal set to obtain the first signal to be processed; then, the second white noise is added to the simulated signal in the simulated signal set noise (the second white noise is a white noise signal with the same amplitude as the first white noise but opposite in direction), to obtain a second signal to be processed.
  • the first white noise can be Gaussian white noise
  • the second white noise is added to the simulated signal in the simulated signal set noise (the second white noise is a white noise signal with the same amplitude as the first white noise but opposite in direction), to obtain a second signal to be processed.
  • the simulation signal x(t) can be obtained by n simulation signals in formula (1)
  • the determined linear signal is used to characterize the variation trend of the simulated signal.
  • two sets of signals can be obtained: the first signal to be processed P i (t) and the second signal to be processed N i (t), the specific calculation formula is shown in formula (2):
  • i represents the serial number of the simulation signal x(t), and i is an integer greater than or equal to 1.
  • Empirical Mode Decomposition is performed on the first signal to be processed P i (t) and the second signal to be processed N i (t).
  • EMD Empirical Mode Decomposition
  • j IMF components that is, j imf′ ik (t) and j imf′′ ik (t).
  • k is an integer greater than or equal to 1 and less than or equal to j, and j is an integer greater than or equal to 1.
  • j is an integer greater than or equal to 1.
  • 2n represents the number of decompositions, and i is an integer greater than or equal to 1 and less than or equal to j.
  • signal acquisition is performed on the simulated circuits in the normal state, intermittent fault state and permanent fault state respectively, each state collects m sets of simulated signal sets, and the simulated signals in each group of simulated signal sets are carried out as above operation, so that the simulation signals in each group of simulation signal sets in each state can be decomposed into j IMF components. Then the IMF feature matrix A i in the three states is obtained as shown in formula (5).
  • Step S405 performing energy entropy calculations on the IMF components corresponding to each simulation signal to obtain an eigenvector matrix.
  • Energy entropy can reflect the degree of confusion of various uncertain factors in the simulation circuit. For example, when the operating state of the simulated circuit changes, the energy entropy of the simulated circuit will change.
  • each obtained IMF component includes the frequency band information corresponding to the simulated signal.
  • the IMF component can directly reflect the change corresponding to different faults. Therefore, the energy entropy calculation is performed on the IMF components corresponding to each simulation signal to obtain the eigenvector matrix, which can well reflect the occurrence of different circuit faults through the eigenvector matrix.
  • steps 1) to 3) and their corresponding formulas can be used to calculate and obtain the eigenvector matrix.
  • Step 1) Set the simulation signal as x(t), and the IMF components corresponding to each simulation signal as C K (t), then use formula (6) to calculate the energy E k corresponding to the kth IMF component:
  • k is an integer greater than or equal to 1.
  • j represents the number of IMF components of each group of simulated signals.
  • Step 2 Select the ratio of the energy E mj of the jth IMF component of the m-th group of simulation signals to the total energy E m of the m-th group of simulation signals as the eigenvector T m , as shown in formula (8):
  • E j represents the number of IMF components of the m-th group of simulation signals
  • E m represents the energy sum of the j IMFs of the m-th group
  • E mj represents the energy of the j-th IMF component of the m-th group of simulation signals.
  • Step 3 According to the m eigenvectors T m corresponding to the m groups of simulation signals, determine the eigenvector matrix C with m rows and j columns, as shown in formula (9).
  • the eigenvector matrix C is obtained, and the energy of the j IMF components corresponding to each group of simulation signals can be clearly seen, so as to quickly determine which specific IMF component energy changes, and then quickly reflect the difference through the eigenvector matrix C.
  • the occurrence of circuit failure is obtained, and the energy of the j IMF components corresponding to each group of simulation signals can be clearly seen, so as to quickly determine which specific IMF component energy changes, and then quickly reflect the difference through the eigenvector matrix C. The occurrence of circuit failure.
  • step S406 the maximum expectation algorithm is used to estimate the parameters of the discrete hidden Markov model in the normal state, the intermittent fault state and the permanent fault state, until the discrete hidden Markov model meets the preset convergence conditions, and three kinds of Three detection models in the state.
  • step S406 is executed, step S407 is also executed simultaneously.
  • Step S407 adding Gaussian white noise to the signal to be tested in the signal set to be tested, and performing empirical mode decomposition on the signal to be tested after adding Gaussian white noise, to obtain a vector to be measured corresponding to the signal to be measured in the signal set to be tested.
  • processing process of the signal to be tested in the signal set to be tested is the same as the process of processing the simulated signal in the simulated signal set in step S404 , and will not be repeated here.
  • the vector to be measured corresponding to the signal set to be measured can be expressed as an IMF component.
  • Step S408 input the vectors to be tested into the normal state detection model, the intermittent fault state detection model and the permanent fault state detection model, respectively, according to the forward-backward algorithm, obtain the probability of the circuit under test being in a normal state, the circuit under test The probability of being in an intermittent fault state and the probability that the circuit under test is in a permanent fault state.
  • the normal state detection model, the intermittent fault state detection model and the permanent fault state detection model are all models obtained by training as follows:
  • a preset detection algorithm for example, Expectation-Maximization algorithm, EM, etc.
  • EM Expectation-Maximization algorithm
  • BPNN Back Propagation Neural Network
  • the parameters of the preset detection model are estimated until the preset detection model meets the preset convergence conditions, and the intermittent fault state detection model is obtained;
  • the preset detection algorithm is used to estimate the parameters of the preset detection model under the permanent fault state respectively, Until the preset detection model satisfies the preset convergence condition, a permanent fault state detection model is obtained.
  • DHMM can be expressed by the following formula (10):
  • DHMM
  • N the number of working states of the circuit under test (for example, the working state corresponding to the circuit under test includes normal state, intermittent fault state and permanent fault state, then N is equal to 3);
  • M the number of observations corresponding to each state ;
  • represents the initial probability of each state;
  • B represents the observation probability transition matrix;
  • A represents the transition probability matrix between different states.
  • a ij represents the conditional probability of the circuit under test transitioning from state q i at time t to state q j at time t+1, and a ij can be calculated using formula (12).
  • Q t represents the state at time t
  • Q t+1 represents the state at time t+1
  • i and j are integers greater than or equal to 1 and less than or equal to N
  • N is an integer greater than or equal to 1.
  • the observation probability transition matrix B can be expressed by formula (14):
  • Q t q j ), that is, b jk represents the probability corresponding to the generated observed value v k in the case of the state q j of the circuit under test at time t.
  • b jk needs to satisfy And, k is an integer greater than or equal to 1 and less than or equal to M.
  • a ij can also be expressed as ⁇ t (i,j), which can be calculated using formula (15):
  • O t represents the state corresponding to the circuit under test at time t
  • q 1 ,q 2 ,...,q N represent the first state, the second state,... ..., the Nth state.
  • ⁇ ), S i represents the hidden state, and backward variable ⁇ t (j) P(O t +1 , O t+2 , . . . , O T
  • q t S i , ⁇ ).
  • the backward variable (also called the local probability) ⁇ t (j) represents the local observation from the time t+1 to the termination time T when the DHMM is known and the circuit under test is in the hidden state S i at time t. sequence probability.
  • each parameter of the DHMM model is estimated to obtain the following parameters: initial probability value (As shown in formula (18)), state transition matrix (as shown in formula (19)) and observation probability transition matrix (As shown in formula (20))
  • the initial probability value state transition matrix and the observation probability transition matrix Determine the model ⁇ under different states for example, a normal state detection model, an intermittent fault state detection model and a permanent fault state detection model can be obtained.
  • the EM algorithm is used to estimate the parameters of the DHMM until the DHMM models in different states meet the preset convergence conditions, so as to obtain the normal state detection model, intermittent fault state detection model and permanent fault State detection model to facilitate subsequent calculation of the probability corresponding to each state.
  • Step S409 sort the probability of the circuit under test being in a normal state, the probability of the circuit under test being in an intermittent fault state, and the probability of the circuit under test being in a permanent fault state, and determine the state with the highest probability as the fault type of the circuit under test.
  • the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit are obtained, the maintenance of the circuit to be tested is reduced, and the damage to the circuit to be tested is avoided; signal acquisition is performed on the simulation circuit , to obtain the simulation signal set corresponding to the simulation state, so as to enrich the signal samples and improve the detection accuracy of the circuit to be tested; to use the same acquisition frequency as that of the simulation circuit to collect the voltage signal of the circuit to be tested, which can ensure that the simulation circuit corresponds to The consistency between the collected signal and the voltage signal corresponding to the circuit under test makes the detection result more accurate; Gaussian white noise is added to the simulated signal in the simulated signal set, and the empirical mode decomposition is performed on the signal after adding Gaussian white noise to obtain For the IMF components corresponding to each simulation signal, the energy entropy calculation is performed on the IMF components corresponding to each simulation signal to obtain the eigenvector matrix.
  • the IMF component in the eigenvector matrix includes the frequency band information corresponding to the simulation signal, it can be obtained through the eigenvector matrix. reflect the occurrence of different circuit faults; then use the eigenvector matrix as the observation sequence, and use the EM algorithm to estimate the parameters of the DHMM until the DHMM models in different states meet the preset convergence conditions, so as to obtain the normal state detection model, The intermittent fault state detection model and the permanent fault state detection model; then according to the forward-backward algorithm, the probability that the circuit under test is in a normal state, the probability that the circuit under test is in an intermittent fault state, and the probability that the circuit under test is in a permanent fault state are respectively obtained. Probability, to use the state with the highest probability as the fault type of the circuit under test to ensure the detection accuracy of the fault type of the circuit under test and reduce unnecessary maintenance costs.
  • the simulation signal set corresponding to the simulation state and the preset detection algorithm detect the signal under test of the circuit under test, determine the fault type of the circuit under test, improve the accuracy of fault detection of the circuit under test, and reduce unnecessary maintenance costs.
  • FIG. 5 shows a structural diagram of a fault detection device provided by an embodiment of the present application.
  • the fault detection device may include an acquisition module 501 , a signal collection module 502 and a fault detection module 503 .
  • the acquisition module 501 is configured to simulate the circuit to be tested to obtain the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit;
  • the signal acquisition module 502 is configured to collect signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; fault detection
  • the module 503 is configured to detect the signal under test of the circuit under test according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, and determine the fault type of the circuit under test.
  • the fault detection device of the present application by obtaining module 501 to simulate the circuit to be tested, obtain the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit, reduce the maintenance of the circuit to be tested, and avoid damage to the circuit to be tested; use signal acquisition Module 502 collects signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state, so as to enrich the signal samples and improve the detection accuracy of the circuit to be tested; use the fault detection module 503 according to the simulation signal set corresponding to the simulation state and the preset detection algorithm , detect the test signal of the test circuit, determine the fault type of the test circuit, speed up the fault detection speed of the test circuit and improve the accuracy of the fault detection of the test circuit, and reduce unnecessary maintenance costs.
  • FIG. 6 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the fault detection method and apparatus according to the embodiments of the present application.
  • the computing device 600 includes an input device 601 , an input interface 602 , a central processing unit 603 , a memory 604 , an output interface 605 , and an output device 606 .
  • the input interface 602, the central processing unit 603, the memory 604, and the output interface 605 are connected to each other through the bus 607, and the input device 601 and the output device 606 are respectively connected to the bus 607 through the input interface 602 and the output interface 605, and then communicate with other components of the computing device 600. Component connections.
  • the input device 601 receives input information from the outside, and transmits the input information to the central processing unit 603 through the input interface 602; the central processing unit 603 processes the input information based on computer-executable instructions stored in the memory 604 to generate output information, temporarily or permanently store the output information in the memory 604, and then transmit the output information to the output device 606 through the output interface 605; the output device 606 outputs the output information to the outside of the computing device 600 for use by the user.
  • the computing device shown in FIG. 6 can be implemented as an electronic device that can include: a memory configured to store a computer program; and a processor configured to run the computer program stored in the memory. program to perform the fault detection method described above.
  • the computing device shown in FIG. 6 can be implemented as a fault detection system, and the fault detection system can include: a memory configured to store a computer program; and a processor configured to run the program stored in the memory. A computer program for performing the fault detection method described above.
  • the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above fault detection method is implemented.
  • Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or object code.
  • ISA instruction set architecture
  • Any logic flow block diagrams in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions.
  • Computer programs can be stored on memory.
  • the memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read-only memory (ROM), random-access memory (RAM), optical memory devices and systems (digital versatile disc DVD or CD), etc.
  • Computer readable media may include non-transitory storage media.
  • the data processor can be of any type suitable for the local technical environment, such as but not limited to general purpose computer, special purpose computer, microprocessor, digital signal processor (DSP), application specific integrated circuit (ASIC), programmable logic device (FGPA) and processors based on multi-core processor architectures.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FGPA programmable logic device

Abstract

Provided in the present application are a fault detection method, a fault detection apparatus, and an electronic device and a computer-readable storage medium. The fault detection method comprises: performing simulation on a circuit to be tested, so as to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit; performing signal collection on the simulation circuit, so as to obtain a simulation signal set corresponding to the simulation state; and according to the simulation signal set corresponding to the simulation state and a preset detection algorithm, performing detection on a signal under test of the circuit to be tested, so as to determine a fault type of the circuit to be tested.

Description

故障检测方法及装置、电子设备和计算机可读存储介质Fault detection method and device, electronic device, and computer-readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年6月28日提交的中国专利申请NO.202110719858.3的优先权,该中国专利申请的内容通过引用的方式整体合并于此。This application claims priority to Chinese Patent Application No. 202110719858.3 filed on June 28, 2021, the contents of which are hereby incorporated by reference in their entirety.
技术领域technical field
本申请涉及检测技术领域,具体涉及故障检测方法、故障检测装置、电子设备和计算机可读存储介质。The present application relates to the technical field of detection, and in particular to a fault detection method, a fault detection device, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
随着检测技术的提高,对于电路系统的永久故障的检测率越来越高,而电路系统的间歇故障的检测率和维修费用的变化相对较小。电路系统的间歇故障是随机出现和消失的一种间歇发生且难以预料的故障,例如,间歇故障在发生并持续一段时间后,不经过任何修复性维护操作,电路系统又自行恢复执行能力。With the improvement of the detection technology, the detection rate of the permanent fault of the circuit system is getting higher and higher, while the detection rate of the intermittent fault of the circuit system and the change of the maintenance cost are relatively small. The intermittent failure of the circuit system is a kind of intermittent and unpredictable failure that appears and disappears randomly. For example, after the intermittent failure occurs and lasts for a period of time, the circuit system resumes its execution ability without any corrective maintenance operations.
在确定间歇故障发生并处于活跃期的情况下,电路系统会产生错误结果,易导致电路系统中的任务中断,且会引发虚假告警;在确定间歇故障消失的情况下,电路系统会输出正确结果,但无法准确地检测出间歇故障的原因,导致电路系统的资源浪费。When it is determined that intermittent faults occur and are in an active period, the circuit system will produce wrong results, which will easily lead to interruption of tasks in the circuit system and cause false alarms; when it is determined that intermittent faults disappear, the circuit system will output correct results , but cannot accurately detect the cause of intermittent faults, resulting in a waste of circuit system resources.
公开内容public content
本申请实施例提供一种故障检测方法,包括:对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态;对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合;以及依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型。An embodiment of the present application provides a fault detection method, including: simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit; collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; And according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, the signal to be tested of the circuit to be tested is detected, and the fault type of the circuit to be tested is determined.
本申请实施例提供一种故障检测装置,包括:获取模块,配置为对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态;信号采集模块,配置为对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合;以及故障检测模块,配置为依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型。An embodiment of the present application provides a fault detection device, including: an acquisition module configured to simulate a circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit; a signal acquisition module configured to perform signal processing on the simulation circuit Acquisition, obtaining a simulation signal set corresponding to the simulation state; and a fault detection module configured to detect the signal to be tested of the circuit to be tested according to the simulation signal set corresponding to the simulation state and a preset detection algorithm, and determine the fault type of the circuit to be tested.
本申请实施例提供一种电子设备,包括:一个或多个处理器;以及存储器,其上存储有一个或多个计算机程序,当一个或多个计算机程序被一个或多个处理器执行时,使得一个或多个处理器实现本申请实施例中的故障检测方法。An embodiment of the present application provides an electronic device, including: one or more processors; and a memory on which one or more computer programs are stored. When the one or more computer programs are executed by the one or more processors, One or more processors are made to implement the fault detection method in the embodiment of the present application.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例中的故障检测方法。An embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the fault detection method in the embodiment of the present application is implemented.
关于本申请的以上实施例和其他方面以及其实现方式,在附图说明、具体实施方式和权利要求中提供更多说明。Regarding the above embodiments and other aspects of the present application and their implementation, more descriptions are provided in the description of the drawings, the detailed description and the claims.
附图说明Description of drawings
图1示出本申请实施例提供的一种故障检测方法的流程示意图。FIG. 1 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
图2示出本申请实施例提供的一种故障检测方法的流程示意图。FIG. 2 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
图3示出本申请实施例提供的一种故障检测方法的流程示意图。FIG. 3 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
图4示出本申请实施例提供的一种故障检测方法的流程示意图。Fig. 4 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application.
图5示出本申请实施例提供的故障检测装置的组成结构图。FIG. 5 shows a structural diagram of a fault detection device provided by an embodiment of the present application.
图6示出能够实现根据本申请实施例的故障检测方法和装置的计算设备的示例性硬件架构的结构图。FIG. 6 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the fault detection method and apparatus according to the embodiments of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the application clearer, the embodiments of the application will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
通过对现有的测试数据的统计,可知间歇故障极易造成电路系 统的短暂失效。一般情况下,间歇故障的发生数量占所有故障的发生数量的70%至80%,在确定间歇故障发生并处于活跃期的情况下,电路系统会产生错误结果,易导致电路系统中的任务中断,且会引发虚假告警;而在发生间歇故障的情况下,重启电路系统会使间歇故障消失,但很难定位间歇故障的产生原因;在确定间歇故障消失的情况下,电路系统会输出正确结果,但无法准确地检测出间歇故障的原因,导致电路系统的资源浪费。在通信系统中,间歇故障对通信系统最直接的影响是降低了通信设备的通信质量,缩短了通信设备的使用寿命。Through the statistics of the existing test data, it can be known that intermittent faults can easily cause short-term failure of the circuit system. In general, the number of intermittent faults accounts for 70% to 80% of all faults. When it is determined that intermittent faults occur and are active, the circuit system will produce wrong results, which will easily lead to the interruption of tasks in the circuit system. , and will cause false alarms; in the case of intermittent faults, restarting the circuit system will make the intermittent faults disappear, but it is difficult to locate the cause of the intermittent faults; in the case of determining that the intermittent faults disappear, the circuit system will output the correct result , but cannot accurately detect the cause of intermittent faults, resulting in a waste of circuit system resources. In the communication system, the most direct impact of intermittent faults on the communication system is to reduce the communication quality of communication equipment and shorten the service life of communication equipment.
在一些处理方式中,会采用基于集合经验模态分解(Ensemble Empirical Mode Decomposition,EEMD)的信号处理方式,对电路系统进行故障检测。但在基于EEMD的信号处理方式中,经过对信号的平均处理并分解后,所获得的本征模函数(Intrinsic Mode Function,IMF)分量并不完全符合EEMD中的本征模函数的定义;并且,只有当分解次数足够多时,添加的白噪声才会对信号分解的影响足够小,但还是会存在噪声信号,从而影响故障类型的判断的准确性。并且,对信号的分解次数过多,还会导致信号处理时间的延长。In some processing methods, a signal processing method based on Ensemble Empirical Mode Decomposition (EEMD) is used to detect faults in the circuit system. However, in the signal processing method based on EEMD, after the signal is averaged and decomposed, the obtained Intrinsic Mode Function (IMF) component does not fully conform to the definition of the Intrinsic Mode Function in EEMD; and , only when the number of decompositions is large enough, the added white noise will have a small enough impact on the signal decomposition, but there will still be noise signals, which will affect the accuracy of the judgment of the fault type. Moreover, too many times of decomposing the signal will also lead to prolongation of the signal processing time.
图1示出本申请实施例提供的一种故障检测方法的流程示意图。该故障检测方法可应用于故障检测装置。如图1所示,本申请实施例中的故障检测方法可以包括步骤S101至S103。FIG. 1 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application. The fault detection method can be applied to a fault detection device. As shown in FIG. 1 , the fault detection method in the embodiment of the present application may include steps S101 to S103.
步骤S101,对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态。In step S101, the circuit to be tested is simulated to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
可以采用不同的仿真软件对待测电路进行仿真,从而获得与待测电路对应的仿真电路。该仿真电路能够模拟待测电路,以获得待测电路对应的不同的工作状态,通过仿真电路的仿真状态来表征待测电路对应的不同的工作状态,能够避免对待测电路的多次检修,避免对待测电路的损害。Different simulation software can be used to simulate the circuit to be tested, so as to obtain a simulated circuit corresponding to the circuit to be tested. The simulation circuit can simulate the circuit to be tested to obtain different working states corresponding to the circuit to be tested. The simulation state of the simulated circuit is used to represent the different working states of the circuit to be tested, which can avoid multiple inspections of the circuit to be tested, avoid damage to the circuit under test.
步骤S102,对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合。Step S102, collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state.
可以根据不同的仿真状态,对仿真电路进行信号采集,获得不同的仿真状态下的仿真信号集合。Signal collection can be performed on the simulation circuit according to different simulation states to obtain simulation signal sets under different simulation states.
例如,在仿真状态为正常状态的情况下,可获得正常状态下的正常信号集合,该正常信号集合包括多个正常信号;在仿真状态为故障状态的情况下,可获得故障状态下的故障信号集合,该故障信号集合包括多个故障信号。For example, when the simulation state is a normal state, the normal signal set under the normal state can be obtained, and the normal signal set includes a plurality of normal signals; when the simulation state is a fault state, the fault signal under the fault state can be obtained A set, the set of fault signals includes a plurality of fault signals.
通过采集不同仿真状态下的仿真信号集合,能够丰富信号样本;使用多种不同仿真状态下的信号样本,能够更直观地观测到仿真电路处于不同仿真状态下的工作情况,从而提升对待测电路的故障的检测准确性。By collecting simulation signal sets in different simulation states, signal samples can be enriched; using signal samples in a variety of different simulation states can more intuitively observe the working conditions of the simulation circuit in different simulation states, thereby improving the performance of the circuit under test. Fault detection accuracy.
步骤S103,依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型。Step S103 , according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test, and determine the fault type of the circuit under test.
预设检测算法是预先设定的电路检测算法。The preset detection algorithm is a preset circuit detection algorithm.
使用该预设检测算法对不同的仿真状态下的仿真信号集合中的仿真信号进行处理,能够获得不同仿真状态对应的检测结果,再通过不同的检测结果之间的对比,能够快速判断出待测电路具体处于何种故障状态,可加快对待测电路的故障检测速度,并提升对待测电路的故障检测的准确性,减少不必要的维修费用。Using the preset detection algorithm to process the simulation signals in the simulation signal set under different simulation states, the detection results corresponding to different simulation states can be obtained, and then the comparison between different detection results can quickly determine the The specific fault state of the circuit can speed up the fault detection speed of the circuit to be tested, improve the accuracy of fault detection of the circuit to be tested, and reduce unnecessary maintenance costs.
在上述故障检测方法中,通过对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态,减少对待测电路的检修,避免对待测电路的损害;对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合,以丰富信号样本,提升对待测电路故障的检测准确性;依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型,加快对待测电路的故障检测速度并提高对待测电路的故障检测的准确性,减少不必要的维修费用。In the above-mentioned fault detection method, by simulating the circuit to be tested, the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit are obtained, thereby reducing the maintenance of the circuit to be tested, and avoiding damage to the circuit to be tested; performing signal acquisition on the simulation circuit, Obtain the simulation signal set corresponding to the simulation state to enrich the signal samples and improve the detection accuracy of the circuit fault under test; according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test and determine the The fault type of the circuit under test can speed up the fault detection speed of the circuit under test, improve the accuracy of fault detection of the circuit under test, and reduce unnecessary maintenance costs.
图2示出本申请实施例提供的一种故障检测方法的流程示意图。该故障检测方法可应用于故障检测装置。如图2所示,本申请实施例中的故障检测方法可以包括步骤S201至S203。FIG. 2 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application. The fault detection method can be applied to a fault detection device. As shown in FIG. 2 , the fault detection method in the embodiment of the present application may include steps S201 to S203.
步骤S201,对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态。In step S201, the circuit to be tested is simulated to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
在一些实施方式中,所述对待测电路进行仿真,获得待测电路 对应的仿真电路和仿真电路的仿真状态包括:依据仿真算法模拟待测电路,获得仿真电路,仿真电路包括设置于模拟元器件的输入端和输出端的开关;获取仿真电路中的开关的开关时间和开关频率;以及依据开关时间和开关频率,模拟待测电路的工作状态,获得仿真电路的仿真状态。In some embodiments, the emulation of the circuit to be tested and obtaining the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit include: simulating the circuit to be tested according to a simulation algorithm to obtain a simulation circuit, and the simulation circuit includes the switches at the input and output ends of the circuit; obtain the switching time and switching frequency of the switch in the simulation circuit; and simulate the working state of the circuit under test according to the switching time and switching frequency to obtain the simulation state of the simulation circuit.
例如,在可能出现故障的元器件的输入端和输出端各串联一个开关,然后,通过改变各个开关的开关时间和开关频率的方式,模拟待测电路在不同的工作状态下的电路工作情况。然后,通过配置各个开关的参数(例如,开关的打开时间、开关的闭合时间以及开关频率等参数),模拟不同工作状态下的待测电路,获得不同工作状态下的仿真电路。For example, connect a switch in series at the input end and output end of the component that may be faulty, and then, by changing the switching time and switching frequency of each switch, simulate the circuit working conditions of the circuit under test under different working conditions. Then, by configuring the parameters of each switch (such as the opening time of the switch, the closing time of the switch, and the switching frequency and other parameters), the circuit under test under different working conditions is simulated, and the simulated circuit under different working conditions is obtained.
通过仿真电路模拟待测电路在不同的工作状态下的工作情况,能够实现对待测电路的快速检测,避免因误操作而导致对待测电路的损害。By simulating the working conditions of the circuit under test under different working conditions through the simulation circuit, the rapid detection of the circuit under test can be realized, and the damage to the circuit under test caused by misoperation can be avoided.
在一些实施方式中,待测电路的工作状态或仿真电路的仿真状态包括:正常状态、间歇故障状态和永久故障状态中的任意一种或几种;仿真状态对应的仿真信号集合包括:正常仿真信号集合、间歇故障仿真信号集合和永久故障仿真信号集合中的任意一种或几种。In some embodiments, the working state of the circuit to be tested or the simulation state of the simulation circuit includes: any one or more of normal state, intermittent fault state and permanent fault state; the simulation signal set corresponding to the simulation state includes: normal simulation Any one or more of signal collection, intermittent fault simulation signal collection and permanent fault simulation signal collection.
需要说明的是,以上对于待测电路的工作状态或仿真电路的仿真状态仅是举例说明,其他未说明的待测电路的工作状态或仿真电路的仿真状态也在本申请的保护范围之内,可根据具体情况具体设定,在此不再赘述。It should be noted that the above is just an example for the working state of the circuit under test or the simulation state of the simulation circuit, and other unexplained working states of the circuit under test or the simulation state of the simulation circuit are also within the protection scope of the present application. It can be specifically set according to specific situations, and will not be repeated here.
在确定仿真电路处于正常状态、间歇故障状态和永久故障状态中的任意一种或几种的情况下,对仿真电路进行信号采集,可直观的对待测电路进行观测,获得正常仿真信号集合、间歇故障仿真信号集合和永久故障仿真信号集合中的任意一种或几种,以获得多样的仿真信号,体现仿真电路在不同仿真状态的工作情况,为后续对仿真信号集合中的仿真信号的处理做好准备,加快对待测电路的检测速度。When it is determined that the simulated circuit is in any one or more of the normal state, intermittent fault state and permanent fault state, the signal acquisition of the simulated circuit can be intuitively observed to obtain the normal simulated signal set, intermittent Any one or several of the fault simulation signal set and the permanent fault simulation signal set can be used to obtain a variety of simulation signals, which can reflect the working conditions of the simulation circuit in different simulation states, and make a contribution to the subsequent processing of the simulation signals in the simulation signal set. Get ready to speed up detection of your circuit under test.
步骤S202,以预设频率对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合。In step S202, signal collection is performed on the simulation circuit at a preset frequency to obtain a simulation signal set corresponding to the simulation state.
预设频率包括仿真电路中的开关频率。Preset frequencies include switching frequencies in simulated circuits.
需要说明的是,预设频率需要与待测电路的工作频率保持一致,例如,预设频率是每分钟通断5次,则仿真电路中的开关频率也是每分钟通断5次,以保证仿真电路与待测电路的工作情况保持一致;进一步地,通过对仿真电路进行信号采集所获得的仿真信号集合能够准确地反映待测电路在不同工作状态下的特征。It should be noted that the preset frequency needs to be consistent with the working frequency of the circuit to be tested. For example, if the preset frequency is 5 times per minute, the switching frequency in the simulation circuit is also 5 times per minute to ensure that the simulation The working conditions of the circuit and the circuit under test are consistent; furthermore, the simulation signal set obtained by collecting signals from the simulation circuit can accurately reflect the characteristics of the circuit under test under different working conditions.
步骤S203,依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型。Step S203 , according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test, and determine the fault type of the circuit under test.
需要说明的是,图2所示的故障检测方法中的步骤S203与上述图1所示的故障检测方法中的步骤S103相同,在此不再赘述。It should be noted that step S203 in the fault detection method shown in FIG. 2 is the same as step S103 in the fault detection method shown in FIG. 1 above, and will not be repeated here.
在上述故障检测方法中,通过依据仿真算法模拟待测电路,获得包括设置于模拟元器件的输入端和输出端的开关的仿真电路,能够使待测电路虚拟化,方便对待测电路的调试;获取仿真电路中的开关的开关时间和开关频率,并依据该开关时间和该开关频率,模拟待测电路的工作状态,获得仿真电路的仿真状态,使仿真电路能够真实准确的反映待测电路的不同的工作状态;以预设频率对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合,可保证仿真电路与待测电路的工作情况保持一致;并通过不同仿真状态对应的仿真信号集合,能够准确的反映待测电路在不同工作状态下的特征,丰富检测样本;依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型,提高对待测电路的故障检测的准确性,减少不必要的维修费用。In the above fault detection method, by simulating the circuit to be tested according to the simulation algorithm, the simulation circuit including the switches arranged at the input end and the output end of the analog component can be obtained, which can virtualize the circuit to be tested and facilitate the debugging of the circuit to be tested; The switching time and switching frequency of the switch in the simulation circuit, and according to the switching time and the switching frequency, simulate the working state of the circuit to be tested, and obtain the simulation state of the simulation circuit, so that the simulation circuit can truly and accurately reflect the difference of the circuit to be tested The working state of the simulation circuit; the signal collection of the simulation circuit is carried out at a preset frequency to obtain the simulation signal set corresponding to the simulation state, which can ensure that the working conditions of the simulation circuit and the circuit under test are consistent; and through the simulation signal set corresponding to different simulation states, it can Accurately reflect the characteristics of the circuit under test under different working conditions, and enrich the detection samples; according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test to determine the fault type of the circuit under test, Improve the accuracy of fault detection of the circuit to be tested and reduce unnecessary maintenance costs.
图3示出本申请实施例提供的故障检测方法的流程示意图。该故障检测方法可应用于故障检测装置。如图3所示,本申请实施例中的故障检测方法可以包括步骤S301至S307。FIG. 3 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application. The fault detection method can be applied to a fault detection device. As shown in FIG. 3 , the fault detection method in the embodiment of the present application may include steps S301 to S307.
步骤S301,对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态。Step S301, simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
步骤S302,对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合。Step S302, collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state.
需要说明的是,图3所示的故障检测方法中的步骤S301和步骤 S302与图1所示的故障检测方法中的步骤S101和步骤S102相同,在此不再赘述。It should be noted that step S301 and step S302 in the fault detection method shown in FIG. 3 are the same as step S101 and step S102 in the fault detection method shown in FIG. 1 , and will not be repeated here.
步骤S303,对待测电路的待测信号进行经验模态分解,获得待测向量。Step S303, performing empirical mode decomposition on the signal to be tested of the circuit to be tested to obtain a vector to be tested.
经验模态分解是依据数据自身的时间尺度特征来进行信号分解的方法,无须预先设定任何基函数,该经验模态分解方法特别适用于对非线性、非平稳信号的分析和处理。Empirical mode decomposition is a method of signal decomposition based on the time scale characteristics of the data itself, without presetting any basis functions. This empirical mode decomposition method is especially suitable for the analysis and processing of nonlinear and non-stationary signals.
通过对待测电路的待测信号进行经验模态分解,能够获得待测信号对应的本征模函数(Intrinsic Mode Function,IMF)分量,该IMF分量能够使待测信号的瞬时频率不再受特定波动的影响,特定波动是通过不对称波形所形成的不必要的波动。然后,将该IMF分量作为待测向量,能够使待测信号以更准确的形式接受检测,提升检测准确性。Through empirical mode decomposition of the test signal of the test circuit, the Intrinsic Mode Function (IMF) component corresponding to the test signal can be obtained, and the IMF component can make the instantaneous frequency of the test signal no longer subject to specific fluctuations Specific fluctuations are unwanted fluctuations formed by asymmetrical waveforms. Then, the IMF component is used as the vector to be tested, so that the signal to be tested can be detected in a more accurate form, and the detection accuracy can be improved.
步骤S304,对仿真状态对应的仿真信号集合中的仿真信号进行经验模态分解,获得仿真状态对应的特征向量矩阵。Step S304, performing empirical mode decomposition on the simulation signals in the simulation signal set corresponding to the simulation state to obtain an eigenvector matrix corresponding to the simulation state.
对仿真状态对应的仿真信号集合中的仿真信号进行经验模态分解,获得各个仿真信号对应的IMF分量,以使仿真信号以更准确的形式呈现,并依据各个仿真信号对应的IMF分量确定仿真状态对应的特征向量矩阵,可保证仿真状态对应的特征向量矩阵的准确性,方便后续处理。Perform empirical mode decomposition on the simulation signals in the simulation signal set corresponding to the simulation state, and obtain the IMF components corresponding to each simulation signal, so that the simulation signals can be presented in a more accurate form, and determine the simulation state according to the IMF components corresponding to each simulation signal The corresponding eigenvector matrix can ensure the accuracy of the eigenvector matrix corresponding to the simulation state and facilitate subsequent processing.
步骤S305,依据仿真状态对应的特征向量矩阵和预设检测算法,确定仿真状态对应的故障检测模型。Step S305, according to the eigenvector matrix corresponding to the simulation state and the preset detection algorithm, determine the fault detection model corresponding to the simulation state.
仿真状态包括:正常状态、间歇故障状态和永久故障状态中的任意一种或几种。The simulation state includes any one or more of normal state, intermittent fault state and permanent fault state.
例如,采用预设检测算法,对仿真状态对应的特征向量矩阵进行处理,获得仿真状态对应的故障检测模型,即,可获得如下检测模型中的任意一种或几种:正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型。For example, the preset detection algorithm is used to process the eigenvector matrix corresponding to the simulation state to obtain the fault detection model corresponding to the simulation state, that is, any one or several of the following detection models can be obtained: normal state detection model, intermittent Faulty state detection model and permanent faulty state detection model.
通过多样性的检测模型,细化仿真电路在不同的仿真状态下的检测方式,能够提升对待测电路的检测准确性。Through a variety of detection models, the detection methods of the simulation circuit in different simulation states can be refined to improve the detection accuracy of the circuit to be tested.
在一些实施方式中,所述采用预设检测算法,对仿真状态对应的特征向量矩阵进行处理,获得仿真状态对应的故障检测模型包括:采用预设检测算法,对间歇故障状态下的预设检测模型的参数进行估计,直至预设检测模型满足预设的收敛条件,获得间歇故障状态检测模型,预设检测模型包括特征向量矩阵。In some embodiments, the adopting the preset detection algorithm to process the eigenvector matrix corresponding to the simulation state, and obtaining the fault detection model corresponding to the simulation state includes: adopting the preset detection algorithm to perform preset detection under the intermittent fault state The parameters of the model are estimated until the preset detection model satisfies the preset convergence condition, and the intermittent fault state detection model is obtained. The preset detection model includes an eigenvector matrix.
间歇故障是待测电路最容易出现的故障,通过采用预设检测算法,对间歇故障状态下的预设检测模型的参数进行估计,直至预设检测模型满足预设的收敛条件的情况下,可获得间歇故障状态检测模型,采用该间歇故障状态检测模型可加快对间歇故障的检测速度。Intermittent faults are the most likely faults in the circuit to be tested. By using the preset detection algorithm, the parameters of the preset detection model under the intermittent fault state are estimated until the preset detection model meets the preset convergence conditions. An intermittent fault state detection model is obtained, and the detection speed of intermittent faults can be accelerated by using the intermittent fault state detection model.
需要说明的是,预设检测模型包括特征向量矩阵,该特征向量矩阵包括多个IMF分量,能够通过IMF分量的特性,即通过IMF分量能够使待测信号的瞬时频率不再受特定波动的影响,满足待测信号的稳定性的要求,进而保证对待测电路的检测准确性。It should be noted that the preset detection model includes an eigenvector matrix, and the eigenvector matrix includes a plurality of IMF components. The characteristics of the IMF components can be used, that is, the instantaneous frequency of the signal to be tested can no longer be affected by specific fluctuations through the IMF components. , to meet the stability requirements of the signal to be tested, thereby ensuring the detection accuracy of the circuit to be tested.
步骤S306,将待测向量输入至仿真状态对应的故障检测模型,获得待测电路对应的工作状态概率。Step S306, input the vector to be tested into the fault detection model corresponding to the simulation state, and obtain the working state probability corresponding to the circuit to be tested.
仿真状态包括:正常状态、间歇故障状态和永久故障状态中的任意一种或几种。则对应地,待测电路对应的工作状态概率可以包括:待测电路处于正常状态的概率、待测电路处于间歇故障状态的概率和待测电路处于永久故障状态的概率中的任意一种或几种。The simulation state includes any one or more of normal state, intermittent fault state and permanent fault state. Correspondingly, the working state probability corresponding to the circuit to be tested may include: the probability that the circuit to be tested is in a normal state, the probability that the circuit to be tested is in an intermittent fault state, and the probability that the circuit to be tested is in a permanent fault state. kind.
通过不同的工作状态概率,能够反映待测电路的实际工作状态的比例,为后续确定待测电路的故障类型做准备。Through different working state probabilities, it can reflect the proportion of the actual working state of the circuit under test, and prepare for the subsequent determination of the fault type of the circuit under test.
在一些实施方式中,所述将待测向量输入至仿真状态对应的故障检测模型,获得待测电路对应的工作状态概率还可以采用如下方式实现:依据前向-后向算法,将待测向量输入至仿真状态对应的故障检测模型,获得待测电路对应的工作状态概率。In some implementations, the input of the vector to be tested into the fault detection model corresponding to the simulation state, and obtaining the probability of the working state corresponding to the circuit to be tested can also be implemented in the following manner: according to the forward-backward algorithm, the vector to be tested is Input to the fault detection model corresponding to the simulation state to obtain the working state probability corresponding to the circuit to be tested.
需要说明的是,前向-后向算法包括前向概率和后向概率,例如,前向概率可以表示为:在1至t时刻,将待测向量输入至仿真状态对应的故障检测模型,所获得的待测电路对应的工作状态概率;后向概率可以表示为:在t+1至终止时刻,将待测向量输入至仿真状态对应的故障检测模型,所获得的待测电路对应的工作状态概率。t为大于 或等于1的整数。It should be noted that the forward-backward algorithm includes forward probability and backward probability. For example, the forward probability can be expressed as: at time 1 to t, the vector to be tested is input into the fault detection model corresponding to the simulation state, so The obtained probability of the working state corresponding to the circuit under test; the backward probability can be expressed as: from t+1 to the termination moment, input the vector to be tested into the fault detection model corresponding to the simulation state, and obtain the corresponding working state of the circuit under test probability. t is an integer greater than or equal to 1.
通过将前向概率和后向概率输入至仿真状态对应的故障检测模型,并对仿真状态对应的故障检测模型进行参数估计,以使获得的仿真状态对应的故障检测模型具有更高的检测准确性,从而保证将待测向量输入至不同的仿真状态对应的参数估计之后的故障检测模型,所获得待测电路对应的工作状态概率更准确。By inputting the forward probability and backward probability into the fault detection model corresponding to the simulation state, and estimating the parameters of the fault detection model corresponding to the simulation state, the obtained fault detection model corresponding to the simulation state has higher detection accuracy , so as to ensure that the vectors to be tested are input into the fault detection model after parameter estimation corresponding to different simulation states, and the obtained working state probability corresponding to the circuit to be tested is more accurate.
步骤S307,依据待测电路对应的工作状态概率,确定待测电路的故障类型。Step S307: Determine the fault type of the circuit to be tested according to the working state probability corresponding to the circuit to be tested.
待测电路对应的工作状态概率包括:似然概率,该似然概率是基于统计模型获得的概率,能够通过统计模型,对采集的信号进行统计处理,以保证获得的似然概率更准确。The working state probability corresponding to the circuit to be tested includes: likelihood probability, which is a probability obtained based on a statistical model, and the collected signal can be statistically processed through the statistical model to ensure that the obtained likelihood probability is more accurate.
在一些实施方式中,所述依据待测电路对应的工作状态概率,确定待测电路的故障类型包括:对待测电路处于正常状态的概率、待测电路处于间歇故障状态的概率和待测电路处于永久故障状态的概率进行排序,获得排序结果;以及依据排序结果,确定待测电路的故障类型。In some embodiments, the determination of the fault type of the circuit under test according to the probability of the working state corresponding to the circuit under test includes: the probability that the circuit under test is in a normal state, the probability that the circuit under test is in an intermittent fault state, and the probability that the circuit under test is in a fault state. The probability of the permanent fault state is sorted to obtain the sorting result; and according to the sorting result, the fault type of the circuit to be tested is determined.
例如,对待测电路处于正常状态的概率为0.3,待测电路处于间歇故障状态的概率为0.7,待测电路处于永久故障状态的概率为0.2,则排序结果为:待测电路对应的工作状态概率由高到低依次是:间歇故障状态、正常状态和永久故障状态;则此时可确定待测电路的故障类型为间歇故障。For example, the probability that the circuit to be tested is in a normal state is 0.3, the probability that the circuit to be tested is in an intermittent fault state is 0.7, and the probability that the circuit to be tested is in a permanent fault state is 0.2, then the sorting result is: the corresponding working state probability of the circuit to be tested The order from high to low is: intermittent fault state, normal state and permanent fault state; then it can be determined that the fault type of the circuit under test is intermittent fault at this time.
通过上述对待测电路可能处于的工作状态对应的概率进行排序,能够清晰展现待测电路具体处于何种工作状态,使待测电路的故障类型一目了然,加快了对待测电路的故障类型的检测速度,提升了故障检测的准确性。By sorting the probabilities corresponding to the possible working states of the circuit to be tested, it is possible to clearly show the specific working state of the circuit to be tested, so that the fault type of the circuit to be tested is clear at a glance, and the detection speed of the fault type of the circuit to be tested is accelerated. Improved accuracy of fault detection.
在一些实施方式中,步骤S304还可以采用如下方式实现:In some implementation manners, step S304 may also be implemented in the following manner:
将仿真状态对应的仿真信号集合中的仿真信号作为原始信号;依据预设噪声信号对原始信号进行处理,获得信号分解矩阵,信号分解矩阵是与仿真状态对应的矩阵,信号分解矩阵包括多个分解向量;以及依据信号分解矩阵,确定仿真状态对应的特征向量矩阵。The simulation signal in the simulation signal set corresponding to the simulation state is used as the original signal; the original signal is processed according to the preset noise signal, and the signal decomposition matrix is obtained. The signal decomposition matrix is a matrix corresponding to the simulation state, and the signal decomposition matrix includes multiple decompositions vector; and according to the signal decomposition matrix, determine the eigenvector matrix corresponding to the simulation state.
仿真状态对应的仿真信号集合可以包括:正常仿真信号集合、间歇故障仿真信号集合和永久故障仿真信号集合。The simulated signal set corresponding to the simulated state may include: a normal simulated signal set, an intermittent fault simulated signal set, and a permanent fault simulated signal set.
分别对正常状态、间歇故障状态和永久故障状态时的仿真电路进行信号采集,对每种状态的仿真电路都采集m组仿真信号集合,并对每组仿真信号集合中的仿真信号进行分解,从而使每种状态下的每组仿真信号集合中的仿真信号都可以被分解为j个IMF分量,则信号分解矩阵中包括:正常状态信号分解矩阵、间歇故障状态信号分解矩阵和永久故障状态信号分解矩阵,每种状态对应的信号分解矩阵都包括m行、j列的IMF分量,m和j均是大于或等于1的整数。每组仿真信号集合中的仿真信号的长度是相同的。Collect signals from the simulation circuits in normal state, intermittent fault state and permanent fault state respectively, collect m sets of simulation signal sets for each state of simulation circuit, and decompose the simulation signals in each set of simulation signal sets, so that So that the simulation signals in each group of simulation signal sets in each state can be decomposed into j IMF components, the signal decomposition matrix includes: normal state signal decomposition matrix, intermittent fault state signal decomposition matrix and permanent fault state signal decomposition Matrix, the signal decomposition matrix corresponding to each state includes IMF components with m rows and j columns, where m and j are integers greater than or equal to 1. The lengths of the simulation signals in each simulation signal set are the same.
通过依据预设噪声信号对原始信号进行处理,获得不同仿真状态下的信号分解矩阵,能够多维度的反映各个仿真状态下的信号的特征;并依据信号分解矩阵,确定仿真状态对应的特征向量矩阵,以使特征向量矩阵的特征信息更丰富,保证采集到的信号的特征信息被更好的提取处理,方便后续处理。By processing the original signal according to the preset noise signal, the signal decomposition matrix under different simulation states can be obtained, which can reflect the characteristics of the signal under each simulation state in multiple dimensions; and according to the signal decomposition matrix, the eigenvector matrix corresponding to the simulation state can be determined , so that the characteristic information of the eigenvector matrix is richer, and the characteristic information of the collected signal is ensured to be better extracted and processed to facilitate subsequent processing.
在一些实施方式中,所述预设噪声信号包括:第一白噪声和第二白噪声,第二白噪声是与第一白噪声的幅度相同且方向相反的噪声;所述依据预设噪声信号对原始信号进行处理,获得信号分解矩阵包括:对原始信号添加第一白噪声,获得第一待处理信号;对原始信号添加第二白噪声,获得第二待处理信号;以及依据第一待处理信号和第二待处理信号,确定信号分解矩阵。In some implementations, the preset noise signal includes: first white noise and second white noise, the second white noise is noise with the same amplitude and opposite direction to the first white noise; the preset noise signal according to Processing the original signal to obtain the signal decomposition matrix includes: adding first white noise to the original signal to obtain the first signal to be processed; adding second white noise to the original signal to obtain the second signal to be processed; and according to the first signal to be processed signal and the second signal to be processed, and determine a signal decomposition matrix.
第一白噪声和第二白噪声均是功率谱密度在整个频域内是常数的噪声。所有频率具有相同能量密度的随机噪声称为白噪声。若第一白噪声是高斯白噪声,即第一白噪声的幅度分布服从高斯分布,而第一白噪声的功率谱密度又是均匀分布的;则第二白噪声也是高斯白噪声,但第二白噪声是与第一白噪声的幅度相同且方向相反的噪声。Both the first white noise and the second white noise are noises whose power spectral density is constant in the entire frequency domain. Random noise with the same energy density at all frequencies is called white noise. If the first white noise is Gaussian white noise, that is, the amplitude distribution of the first white noise obeys Gaussian distribution, and the power spectral density of the first white noise is evenly distributed; then the second white noise is also Gaussian white noise, but the second The white noise is noise having the same amplitude and opposite direction to the first white noise.
所述依据第一待处理信号和第二待处理信号,确定信号分解矩阵,可以是对第一待处理信号和第二待处理信号同时进行经验模态分解,然后再对分解之后得到的两组IMF分量求均值,从而获得信号分解矩阵。由于第一待处理信号是对原始信号添加第一白噪声获得的信 号,而第二待处理信号是对原始信号添加第二白噪声获得的信号,因此,对分解之后得到的两组IMF分量求均值,可以抵消原始信号中加入的白噪声,避免白噪声对电路检测的影响,提升对待测电路的故障类型的判断的准确性。The determination of the signal decomposition matrix based on the first signal to be processed and the second signal to be processed may be to perform empirical mode decomposition on the first signal to be processed and the second signal to be processed at the same time, and then analyze the two groups obtained after the decomposition The IMF components are averaged to obtain a signal decomposition matrix. Since the first signal to be processed is the signal obtained by adding the first white noise to the original signal, and the second signal to be processed is the signal obtained by adding the second white noise to the original signal, therefore, the two sets of IMF components obtained after decomposition The average value can offset the white noise added to the original signal, avoid the influence of white noise on the circuit detection, and improve the accuracy of the judgment of the fault type of the circuit under test.
在一些实施方式中,所述依据信号分解矩阵,确定仿真状态对应的特征向量矩阵包括:将信号分解矩阵中的分解向量的能量熵作为特征向量,分解向量的能量熵反映待处理信号的频段能量信息;以及依据特征向量,确定仿真状态对应的特征向量矩阵。In some embodiments, the determining the eigenvector matrix corresponding to the simulation state according to the signal decomposition matrix includes: using the energy entropy of the decomposition vector in the signal decomposition matrix as the eigenvector, and the energy entropy of the decomposition vector reflects the frequency band energy of the signal to be processed information; and according to the eigenvectors, determine the eigenvector matrix corresponding to the simulation state.
分解向量的能量熵反映待处理信号的频段能量信息。在确定某个仿真信号对应的频段信息发生变更的情况下,可通过IMF分量直接反映出不同故障对应的变化情况。The energy entropy of the decomposition vector reflects the frequency band energy information of the signal to be processed. When it is determined that the frequency band information corresponding to a certain simulated signal has changed, the IMF component can directly reflect the corresponding changes of different faults.
通过对各个仿真信号对应的IMF分量进行能量熵的运算,获得特征向量矩阵,能够通过特征向量矩阵很好地反映不同电路故障的发生情况,快速确定待测电路的故障类型。By calculating the energy entropy of the IMF components corresponding to each simulation signal, the eigenvector matrix is obtained, which can well reflect the occurrence of different circuit faults through the eigenvector matrix, and quickly determine the fault type of the circuit to be tested.
在一些实施方式中,所述依据信号分解矩阵,确定仿真状态对应的特征向量矩阵包括:将信号分解矩阵中的分解向量的幅值作为特征向量;以及依据特征向量,确定仿真状态对应的特征向量矩阵。In some embodiments, the determining the eigenvector matrix corresponding to the simulation state according to the signal decomposition matrix includes: using the magnitude of the decomposition vector in the signal decomposition matrix as the eigenvector; and determining the eigenvector corresponding to the simulation state according to the eigenvector matrix.
信号分解矩阵中的分解向量的幅值,是在一个周期内分解向量在瞬时出现的最大值的绝对值。通过将信号分解矩阵中的分解向量的幅值作为特征向量,能够直接获得各个分解向量的变化情况;依据特征向量,确定仿真状态对应的特征向量矩阵,可直观地确定仿真状态对应的特征向量矩阵中的各个特征向量的变化情况,进而保证特征向量矩阵的直观性,加快对待测电路的检测速度。The magnitude of the decomposition vector in the signal decomposition matrix is the absolute value of the maximum value of the decomposition vector appearing instantaneously within one cycle. By using the magnitude of the decomposition vector in the signal decomposition matrix as the eigenvector, the change of each decomposition vector can be directly obtained; according to the eigenvector, the eigenvector matrix corresponding to the simulation state can be determined intuitively. The changes of each eigenvector in the eigenvector, thereby ensuring the intuitiveness of the eigenvector matrix, and speeding up the detection speed of the circuit to be tested.
在一些实施方式中,步骤S305中的预设检测算法包括:最大期望算法或小波分解算法;预设检测模型包括:离散隐马尔可夫模型或反向传播神经网络检测模型;离散隐马尔可夫模型的参数包括:观测序列、仿真状态的数量、状态初始概率、转移概率矩阵和观测概率转移矩阵,观测序列包括特征向量矩阵。In some embodiments, the preset detection algorithm in step S305 includes: maximum expectation algorithm or wavelet decomposition algorithm; the preset detection model includes: discrete hidden Markov model or backpropagation neural network detection model; discrete hidden Markov The parameters of the model include: the observation sequence, the number of simulation states, the initial state probability, the transition probability matrix and the observation probability transition matrix, and the observation sequence includes the eigenvector matrix.
最大期望算法可以包括:使用了贝叶斯推断的最大期望算法(Expectation-Maximization algorithm,EM)、EM梯度算法和广 义EM算法中的任意一种或几种。最大期望算法可应用于高斯混合模型(Gaussian Mixture Model,GMM)和隐马尔可夫模型(Hidden Markov Model,HMM)的参数估计中。The maximum expectation algorithm may include: any one or several of Bayesian inference maximum expectation algorithm (Expectation-Maximization algorithm, EM), EM gradient algorithm and generalized EM algorithm. The expectation-maximization algorithm can be applied to parameter estimation of Gaussian Mixture Model (GMM) and Hidden Markov Model (HMM).
以特征向量矩阵的形式,作为离散隐马尔可夫模型的观测序列,能够使待测信号的瞬时频率不再受所特定波动的影响,保证观测序列的稳定性。在上述的故障检测方法中,仿真状态的数量可以是3,例如,仿真状态包括:正常状态、间歇故障状态和永久故障状态。通过对状态初始概率、转移概率矩阵和观测概率转移矩阵的分析和处理,使预设检测模型逐渐趋于稳定,直至预设检测模型满足预设的收敛条件,保证训练获得的不同仿真状态对应的故障检测模型的准确性。In the form of the eigenvector matrix, as the observation sequence of the discrete hidden Markov model, the instantaneous frequency of the signal to be measured is no longer affected by the specific fluctuation, and the stability of the observation sequence is guaranteed. In the above fault detection method, the number of simulated states may be three, for example, the simulated states include: normal state, intermittent fault state and permanent fault state. Through the analysis and processing of the initial state probability, transition probability matrix and observation probability transition matrix, the preset detection model gradually tends to be stable until the preset detection model meets the preset convergence conditions, ensuring that the different simulation states obtained by training correspond to Accuracy of the fault detection model.
例如,小波分解算法也可以适用于对非稳定信号(例如,仿真信号)的分析和处理,以获得准确的分析结果,方便对待测信号的检测。For example, the wavelet decomposition algorithm can also be applied to the analysis and processing of non-stationary signals (eg, simulated signals), so as to obtain accurate analysis results and facilitate the detection of the signal to be tested.
传播神经网络的学习过程包括正向学习和反向学习。在正向传播过程中,输入信号从输入层经隐含层逐层处理传向输出层,每一层神经元的状态只影响下一层神经元的状态。但是,如果在输出层不能得到期望的输出值,则把网络输出的错误归结为连接权值的错误。通过把输出层单元的误差逐层向输入层反向传播以分摊给各单元,从而获得各层神经元的参考误差,以便调整相应的连接权值,即反向传播神经网络。通过误差反向传播的学习方式,使用代价函数最小化的过程完成输入层到输出层的映射。而代价函数可以是所有输入模式中的输出单元的期望输出与实际输出之差的平方和。The learning process of propagation neural network includes forward learning and reverse learning. In the forward propagation process, the input signal is processed layer by layer from the input layer to the output layer through the hidden layer, and the state of neurons in each layer only affects the state of neurons in the next layer. However, if the expected output value cannot be obtained at the output layer, the error of the network output is attributed to the error of the connection weight. By backpropagating the error of the output layer unit to the input layer layer by layer to apportion to each unit, so as to obtain the reference error of each layer of neurons, in order to adjust the corresponding connection weights, that is, the backpropagation neural network. Through the learning method of error back propagation, the process of minimizing the cost function is used to complete the mapping from the input layer to the output layer. And the cost function can be the sum of the squares of the difference between the expected output and the actual output of the output unit in all input modes.
本申请中,通过使用小波分解算法对不同的仿真状态对应的特征向量矩阵进行处理,可获得准确的输出信号,再将该输出信号经过反向传播神经网络检测模型的处理,从而使获得的不同的仿真状态下的故障检测模型更准确。In this application, by using the wavelet decomposition algorithm to process the eigenvector matrices corresponding to different simulation states, an accurate output signal can be obtained, and then the output signal is processed by the backpropagation neural network detection model, so that the obtained different The fault detection model under the simulation state is more accurate.
图4示出本申请实施例提供的一种故障检测方法的流程示意图。该故障检测方法可应用于故障检测装置。如图4所示,本申请实施例中的故障检测方法可以包括步骤S401至S409。Fig. 4 shows a schematic flowchart of a fault detection method provided by an embodiment of the present application. The fault detection method can be applied to a fault detection device. As shown in FIG. 4 , the fault detection method in the embodiment of the present application may include steps S401 to S409.
步骤S401,对待测电路进行电压信号的采集,获得待测信号集 合。Step S401, collecting the voltage signal of the circuit under test to obtain a set of signals under test.
需要说明的是,在执行步骤S401的同时,还同时执行步骤S402。It should be noted that, while step S401 is executed, step S402 is also executed simultaneously.
对待测电路的输出电压进行采集,并将获得的电压信号分成多组待测信号,该待测信号的长度与通过仿真电路获得的仿真信号的长度相同。The output voltage of the circuit to be tested is collected, and the obtained voltage signal is divided into multiple groups of signals to be tested, and the length of the signals to be tested is the same as that of the simulated signal obtained through the simulated circuit.
在对待测电路进行信号采集的过程中,采集频率需要与仿真电路的频率相同,以保证仿真电路对应的采集信号和待测电路对应的电压信号的一致性,从而使检测结果更准确。In the process of signal acquisition of the circuit under test, the acquisition frequency needs to be the same as that of the simulation circuit, so as to ensure the consistency of the acquisition signal corresponding to the simulation circuit and the voltage signal corresponding to the circuit under test, so that the detection result is more accurate.
步骤S402,对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态。Step S402, simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit.
通过仿真软件对待测电路进行仿真,可以采用如下方式:在可能出现故障的元器件的输入端和输出端各串联一个开关,然后,通过改变各个开关的开关时间和开关频率的方式,模拟待测电路在正常状态、间歇故障状态和永久故障状态时的电路。The circuit to be tested can be simulated by the simulation software in the following way: connect a switch in series at the input end and output end of the component that may fail, and then simulate the test circuit by changing the switching time and switching frequency of each switch. A circuit in its normal state, intermittent fault state, and permanent fault state.
例如,通过配置各个开关的参数(例如,开关的打开时间、开关的闭合时间以及开关频率等参数),模拟间歇故障状态下的待测电路,获得间歇故障状态对应的仿真电路;通过设置开关的通断,模拟正常状态下的待测电路和永久故障状态下的待测电路,获得正常状态对应的仿真电路和永久故障状态对应的仿真电路。For example, by configuring the parameters of each switch (for example, parameters such as the opening time of the switch, the closing time of the switch, and the switching frequency), the circuit to be tested under the intermittent fault state is simulated to obtain the simulation circuit corresponding to the intermittent fault state; On and off, simulating the circuit under test under normal state and the circuit under test under permanent fault state, and obtain the simulation circuit corresponding to normal state and the simulation circuit corresponding to permanent fault state.
步骤S403,以预设频率对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合。Step S403, collecting signals from the simulation circuit at a preset frequency to obtain a simulation signal set corresponding to the simulation state.
设定预设输入信号,并将该预设输入信号输入至不同的仿真状态对应的仿真电路中,通过预设的测试点,采集不同的仿真状态对应的仿真信号集合。A preset input signal is set, and the preset input signal is input into a simulation circuit corresponding to a different simulation state, and a set of simulation signals corresponding to a different simulation state is collected through a preset test point.
例如,仿真信号集合可采用公式(1)表示为:For example, the simulated signal set can be expressed as:
Figure PCTCN2022101434-appb-000001
Figure PCTCN2022101434-appb-000001
i表示仿真状态的序号(例如,i等于1时,表示正常状态;i等于2时,表示间歇故障状态;i等于3时,表示永久故障状态)。b表示不同仿真状态下采集到的信号的组数,b为大于或等于1的整数。n表示每一组仿真信号的样本点数。
Figure PCTCN2022101434-appb-000002
表示第i状态下采集到的第b组的第 n个仿真信号,y ib表示第i状态下采集到的第b组的仿真信号的集合。
i represents the serial number of the simulation state (for example, when i is equal to 1, it represents the normal state; when i is equal to 2, it represents the intermittent fault state; when i is equal to 3, it represents the permanent fault state). b represents the number of groups of signals collected in different simulation states, and b is an integer greater than or equal to 1. n represents the number of sample points of each group of simulation signals.
Figure PCTCN2022101434-appb-000002
Indicates the nth simulation signal of group b collected in state i, and y ib represents the collection of simulation signals of group b collected in state i.
步骤S404,对仿真信号集合中的仿真信号添加高斯白噪声,并对添加高斯白噪声后的信号进行经验模态分解,获得各个仿真信号对应的IMF分量。Step S404, adding Gaussian white noise to the simulation signals in the simulation signal set, and performing empirical mode decomposition on the signals after adding Gaussian white noise, to obtain IMF components corresponding to each simulation signal.
可以对仿真信号集合中的仿真信号添加第一白噪声(该第一白噪声可以是高斯白噪声),获得第一待处理信号;然后,再对该仿真信号集合中的仿真信号添加第二白噪声(该第二白噪声是与第一白噪声的幅值相同但是方向相反的白噪声信号),获得第二待处理信号。The first white noise (the first white noise can be Gaussian white noise) can be added to the simulated signal in the simulated signal set to obtain the first signal to be processed; then, the second white noise is added to the simulated signal in the simulated signal set noise (the second white noise is a white noise signal with the same amplitude as the first white noise but opposite in direction), to obtain a second signal to be processed.
例如,设定仿真信号为x(t),该仿真信号x(t)可以是通过公式(1)中的n个仿真信号
Figure PCTCN2022101434-appb-000003
确定的线性信号,以表征仿真信号的变化趋势。将一对幅值相等但方向相反的白噪声n i(t)添加到仿真信号x(t)中,可以得到两组信号:即第一待处理信号P i(t)和第二待处理信号N i(t),具体计算公式如公式(2)所示:
For example, if the simulation signal is set to x(t), the simulation signal x(t) can be obtained by n simulation signals in formula (1)
Figure PCTCN2022101434-appb-000003
The determined linear signal is used to characterize the variation trend of the simulated signal. Adding a pair of white noise n i (t) with equal amplitude but opposite directions to the simulated signal x(t), two sets of signals can be obtained: the first signal to be processed P i (t) and the second signal to be processed N i (t), the specific calculation formula is shown in formula (2):
Figure PCTCN2022101434-appb-000004
Figure PCTCN2022101434-appb-000004
i表示仿真信号x(t)的序号,i是大于或等于1的整数。i represents the serial number of the simulation signal x(t), and i is an integer greater than or equal to 1.
然后,再对第一待处理信号P i(t)和第二待处理信号N i(t)进行经验模态分解(Empirical Mode Decomposition,EMD)。例如,采用公式(3)分别对第一待处理信号P i(t)和第二待处理信号N i(t)进行EMD处理,分别获得j个IMF分量,即j个imf′ ik(t)和j个imf″ ik(t)。 Then, Empirical Mode Decomposition (EMD) is performed on the first signal to be processed P i (t) and the second signal to be processed N i (t). For example, using formula (3) to perform EMD processing on the first signal to be processed P i (t) and the second signal to be processed N i (t), respectively, to obtain j IMF components, that is, j imf′ ik (t) and j imf″ ik (t).
Figure PCTCN2022101434-appb-000005
Figure PCTCN2022101434-appb-000005
k是大于或等于1且小于或等于j的整数,j是大于或等于1的整数。并使用公式(4)对第一待处理信号P i(t)和第二待处理信号N i(t)的和值进行2n次分解,获得k阶IMF分量,即IMF kk is an integer greater than or equal to 1 and less than or equal to j, and j is an integer greater than or equal to 1. And use the formula (4) to decompose the sum of the first signal to be processed P i (t) and the second signal to be processed N i (t) 2n times to obtain the k-order IMF component, ie IMF k .
Figure PCTCN2022101434-appb-000006
Figure PCTCN2022101434-appb-000006
2n表示分解次数,i是大于或等于1且小于或等于j的整数。2n represents the number of decompositions, and i is an integer greater than or equal to 1 and less than or equal to j.
在一些实施方式中,分别对正常状态、间歇故障状态和永久故障状态时的仿真电路进行信号采集,每种状态都采集m组仿真信号集合,并对每组仿真信号集合中的仿真信号进行如上操作,从而使每种 状态下的每组仿真信号集合中的仿真信号都可以被分解为j个IMF分量。进而获得3种状态下的IMF特征矩阵A i如公式(5)所示。 In some embodiments, signal acquisition is performed on the simulated circuits in the normal state, intermittent fault state and permanent fault state respectively, each state collects m sets of simulated signal sets, and the simulated signals in each group of simulated signal sets are carried out as above operation, so that the simulation signals in each group of simulation signal sets in each state can be decomposed into j IMF components. Then the IMF feature matrix A i in the three states is obtained as shown in formula (5).
Figure PCTCN2022101434-appb-000007
Figure PCTCN2022101434-appb-000007
m表示采集组数,m是大于或等于1的整数;j表示IMF分量的数量;i表示仿真电路的状态编号,例如,i等于1时表示正常状态,则A 1表示正常状态信号分解矩阵;i等于2时,表示间歇故障状态,则A 2表示间歇故障状态信号分解矩阵;i等于3时,表示永久故障状态,则A 3表示永久故障状态信号分解矩阵。 m represents the number of collection groups, and m is an integer greater than or equal to 1; j represents the quantity of the IMF component; i represents the state number of the simulation circuit, for example, when i equals 1 , it represents a normal state, and A1 represents a normal state signal decomposition matrix; When i is equal to 2, it means intermittent fault state, then A 2 represents the signal decomposition matrix of intermittent fault state; when i is equal to 3, it represents permanent fault state, then A 3 represents the signal decomposition matrix of permanent fault state.
步骤S405,对各个仿真信号对应的IMF分量进行能量熵的运算,获得特征向量矩阵。Step S405, performing energy entropy calculations on the IMF components corresponding to each simulation signal to obtain an eigenvector matrix.
能量熵能够反映仿真电路中的各种不确定因素的混乱程度。例如,当仿真电路的运行状态发生改变时,仿真电路的能量熵就会发生改变。经过步骤S404处理后,所获得的各个IMF分量包括仿真信号对应的频段信息,在确定某个仿真信号对应的频段信息发生变更的情况下,可通过IMF分量直接反映出不同故障对应的变化情况。因此,对各个仿真信号对应的IMF分量进行能量熵的运算,获得特征向量矩阵,能够通过特征向量矩阵很好地反映不同电路故障的发生情况。Energy entropy can reflect the degree of confusion of various uncertain factors in the simulation circuit. For example, when the operating state of the simulated circuit changes, the energy entropy of the simulated circuit will change. After processing in step S404, each obtained IMF component includes the frequency band information corresponding to the simulated signal. When it is determined that the frequency band information corresponding to a certain simulated signal has changed, the IMF component can directly reflect the change corresponding to different faults. Therefore, the energy entropy calculation is performed on the IMF components corresponding to each simulation signal to obtain the eigenvector matrix, which can well reflect the occurrence of different circuit faults through the eigenvector matrix.
例如,可采用步骤1)至3)及其对应的公式计算获得特征向量矩阵。For example, steps 1) to 3) and their corresponding formulas can be used to calculate and obtain the eigenvector matrix.
步骤1)设定仿真信号为x(t),与各个仿真信号对应的IMF分量为C K(t),则采用公式(6)可计算获得第k个IMF分量对应的能量E kStep 1) Set the simulation signal as x(t), and the IMF components corresponding to each simulation signal as C K (t), then use formula (6) to calculate the energy E k corresponding to the kth IMF component:
Figure PCTCN2022101434-appb-000008
Figure PCTCN2022101434-appb-000008
k为大于或等于1的整数。k is an integer greater than or equal to 1.
则j个IMF分量的能量和值E,如公式(7)所示:Then the energy sum E of the j IMF components is shown in formula (7):
E E 1+E 2+…+E j           (7) E E 1 +E 2 +…+E j (7)
j表示每组仿真信号的IMF分量的数量。j represents the number of IMF components of each group of simulated signals.
步骤2)选取第m组仿真信号的第j个IMF分量的能量E mj与该第m组仿真信号的总能量E m的比值,作为特征向量T m,如公式(8) 所示: Step 2) Select the ratio of the energy E mj of the jth IMF component of the m-th group of simulation signals to the total energy E m of the m-th group of simulation signals as the eigenvector T m , as shown in formula (8):
Figure PCTCN2022101434-appb-000009
Figure PCTCN2022101434-appb-000009
j表示第m组仿真信号的IMF分量的数量;E m表示为第m组的j个IMF的能量之和;E mj表示第m组仿真信号的第j个IMF分量的能量。 j represents the number of IMF components of the m-th group of simulation signals; E m represents the energy sum of the j IMFs of the m-th group; E mj represents the energy of the j-th IMF component of the m-th group of simulation signals.
步骤3)根据m组仿真信号对应的m个特征向量T m,确定m行、j列的特征向量矩阵C,如公式(9)所示。 Step 3) According to the m eigenvectors T m corresponding to the m groups of simulation signals, determine the eigenvector matrix C with m rows and j columns, as shown in formula (9).
Figure PCTCN2022101434-appb-000010
Figure PCTCN2022101434-appb-000010
通过上述方法,获得特征向量矩阵C,能够清晰的看到各组仿真信号对应的j个IMF分量的能量,从而快速确定具体哪个IMF分量的能量发生变化,进而通过特征向量矩阵C快速地反映不同电路故障的发生情况。Through the above method, the eigenvector matrix C is obtained, and the energy of the j IMF components corresponding to each group of simulation signals can be clearly seen, so as to quickly determine which specific IMF component energy changes, and then quickly reflect the difference through the eigenvector matrix C. The occurrence of circuit failure.
步骤S406,采用最大期望算法,分别对正常状态、间歇故障状态和永久故障状态下的离散隐马尔可夫模型的参数进行估计,直至离散隐马尔可夫模型满足预设的收敛条件,获得三种状态下的三个检测模型。In step S406, the maximum expectation algorithm is used to estimate the parameters of the discrete hidden Markov model in the normal state, the intermittent fault state and the permanent fault state, until the discrete hidden Markov model meets the preset convergence conditions, and three kinds of Three detection models in the state.
需要说明的是,在执行步骤S406的同时,还同时执行步骤S407。It should be noted that, while step S406 is executed, step S407 is also executed simultaneously.
步骤S407,对待测信号集合中的待测信号添加高斯白噪声,并对添加高斯白噪声后的待测信号进行经验模态分解,获得待测信号集合中待测信号对应的待测向量。Step S407, adding Gaussian white noise to the signal to be tested in the signal set to be tested, and performing empirical mode decomposition on the signal to be tested after adding Gaussian white noise, to obtain a vector to be measured corresponding to the signal to be measured in the signal set to be tested.
需要说明的是,对待测信号集合中的待测信号的处理过程,与步骤S404中对仿真信号集合中的仿真信号的处理过程相同,在此不再赘述。It should be noted that the processing process of the signal to be tested in the signal set to be tested is the same as the process of processing the simulated signal in the simulated signal set in step S404 , and will not be repeated here.
待测信号集合对应的待测向量可以表示为IMF分量。The vector to be measured corresponding to the signal set to be measured can be expressed as an IMF component.
步骤S408,将待测向量分别输入至正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型中,依据前向-后向算法,分别获得待测电路处于正常状态的概率、待测电路处于间歇故障状态的概率和待测电路处于永久故障状态的概率。Step S408, input the vectors to be tested into the normal state detection model, the intermittent fault state detection model and the permanent fault state detection model, respectively, according to the forward-backward algorithm, obtain the probability of the circuit under test being in a normal state, the circuit under test The probability of being in an intermittent fault state and the probability that the circuit under test is in a permanent fault state.
正常状态检测模型、间歇故障状态检测模型和永久故障状态检 测模型均是通过如下方式训练获得的模型:The normal state detection model, the intermittent fault state detection model and the permanent fault state detection model are all models obtained by training as follows:
采用预设检测算法(例如,最大期望算法(Expectation-Maximization algorithm,EM)等)分别对正常状态下的预设检测模型(例如,离散隐马尔可夫模型(Discrete Hidden Markov Model,DHMM)或反向传播神经网络(Back Propagation Neural Network,BPNN)检测模型等)的参数进行估计,直至预设检测模型满足预设的收敛条件,获得正常状态检测模型;采用预设检测算法分别对间歇故障状态下的预设检测模型的参数进行估计,直至预设检测模型满足预设的收敛条件,获得间歇故障状态检测模型;采用预设检测算法分别对永久故障状态下的预设检测模型的参数进行估计,直至预设检测模型满足预设的收敛条件,获得永久故障状态检测模型。A preset detection algorithm (for example, Expectation-Maximization algorithm, EM, etc.) Estimate the parameters of the propagation neural network (Back Propagation Neural Network, BPNN) detection model, etc.) until the preset detection model meets the preset convergence conditions, and obtain the normal state detection model; The parameters of the preset detection model are estimated until the preset detection model meets the preset convergence conditions, and the intermittent fault state detection model is obtained; the preset detection algorithm is used to estimate the parameters of the preset detection model under the permanent fault state respectively, Until the preset detection model satisfies the preset convergence condition, a permanent fault state detection model is obtained.
DHMM可采用如下公式(10)表示:DHMM can be expressed by the following formula (10):
λ=(A,B,π,N,M)           (10)λ=(A,B,π,N,M) (10)
λ表示DHMM;N表示待测电路的工作状态数量(例如,待测电路对应的工作状态包括正常状态、间歇故障状态和永久故障状态,则N等于3);M表示各个状态对应的观测值数目;π表示每个状态的初始概率;B表示观测概率转移矩阵;A表示不同状态之间的转移概率矩阵。以上参数的具体计算方式如下:λ represents DHMM; N represents the number of working states of the circuit under test (for example, the working state corresponding to the circuit under test includes normal state, intermittent fault state and permanent fault state, then N is equal to 3); M represents the number of observations corresponding to each state ; π represents the initial probability of each state; B represents the observation probability transition matrix; A represents the transition probability matrix between different states. The specific calculation method of the above parameters is as follows:
例如,设置M个观测值为:V 1,V 2,…,V M,则待测电路在t时刻对应的观测值可表示为:O t∈(V 1,V 2,…,V M)。不同状态之间的转移概率矩阵A可采用公式(11)表示: For example, if M observation values are set as: V 1 , V 2 ,…,V M , then the corresponding observation value of the circuit under test at time t can be expressed as: O t ∈(V 1 ,V 2 ,…,V M ) . The transition probability matrix A between different states can be expressed by formula (11):
A=(a ij) N*N               (11) A=(a ij ) N*N (11)
a ij表示待测电路由t时刻的状态q i转换至t+1时刻的状态q j的条件概率,a ij可采用公式(12)计算获得。 a ij represents the conditional probability of the circuit under test transitioning from state q i at time t to state q j at time t+1, and a ij can be calculated using formula (12).
a ij=P(Q t+1=q j|Q t=q i)          (12) a ij =P(Q t+1 =q j |Q t =q i ) (12)
Q t表示t时刻的状态,Q t+1表示t+1时刻的状态,i和j均是大于或等于1,且小于或等于N的整数,N为大于或等于1的整数。 Q t represents the state at time t, Q t+1 represents the state at time t+1, i and j are integers greater than or equal to 1 and less than or equal to N, and N is an integer greater than or equal to 1.
设置第i个状态的初始概率为π i,π i可采用公式(13)表示: Set the initial probability of the i-th state as π i , π i can be expressed by formula (13):
π i=P(Q 1=q i)          (13) π i =P(Q 1 =q i ) (13)
待测电路在初始时总是处于正常状态,并且,在确定N等于3的 情况下,可设置初始状态概率矩阵为π i=[1,0,0]。 The circuit to be tested is always in a normal state at the beginning, and when N is determined to be 3, the initial state probability matrix can be set as π i =[1,0,0].
观测概率转移矩阵B可通过公式(14)表示:The observation probability transition matrix B can be expressed by formula (14):
B=(b jk) N*M              (14) B=(b jk ) N*M (14)
b jk=P(O t=v k|Q t=q j),即b jk表示待测电路在t时刻的状态q j的情况下,生成的观测值v k对应的概率。b jk需要满足
Figure PCTCN2022101434-appb-000011
并且,k是大于或等于1,且,小于或等于M的整数。
b jk =P(O t =v k |Q t =q j ), that is, b jk represents the probability corresponding to the generated observed value v k in the case of the state q j of the circuit under test at time t. b jk needs to satisfy
Figure PCTCN2022101434-appb-000011
And, k is an integer greater than or equal to 1 and less than or equal to M.
在一些实施方式中,a ij还可以表示为ξ t(i,j),可采用公式(15)计算获得: In some implementations, a ij can also be expressed as ξ t (i,j), which can be calculated using formula (15):
ξ t(i,j)=P(O,O t=q i,Q t+1=q j|λ)         (15) ξ t (i,j)=P(O,O t =q i ,Q t+1 =q j |λ) (15)
O t表示t时刻的待测电路对应的状态,Q t∈(q 1,q 2,…,q N),q 1,q 2,…,q N分别表示第一状态、第二状态、……、第N状态。 O t represents the state corresponding to the circuit under test at time t, Q t ∈ (q 1 ,q 2 ,…,q N ), q 1 ,q 2 ,…,q N represent the first state, the second state,… ..., the Nth state.
然后,基于前向-后向算法,将前向算法中的前向变量α t(i),以及后向算法中的后向变量β t(j)代入公式(15)可获得更新后的ξ t(i,j),更新后的ξ t(i,j)如公式(16)所示: Then, based on the forward-backward algorithm, the forward variable α t (i) in the forward algorithm and the backward variable β t (j) in the backward algorithm are substituted into formula (15) to obtain the updated ξ t (i, j), the updated ξ t (i, j) is shown in formula (16):
Figure PCTCN2022101434-appb-000012
Figure PCTCN2022101434-appb-000012
前向变量α t(i)=P(O 1,O 2,…,O t,q i=S i|λ),S i表示隐藏状态,后向变量β t(j)=P(O t+1,O t+2,…,O T|q t=S i,λ)。 Forward variable α t (i)=P(O 1 ,O 2 ,...,O t , q i =S i |λ), S i represents the hidden state, and backward variable β t (j)=P(O t +1 , O t+2 , . . . , O T |q t = S i , λ).
进一步地,t时刻待测电路处于q i状态的概率ξ t(i)如公式(17)所示: Furthermore, the probability ξ t (i) of the circuit under test being in state q i at time t is shown in formula (17):
Figure PCTCN2022101434-appb-000013
Figure PCTCN2022101434-appb-000013
需要说明的是,后向变量(也称为局部概率)β t(j)表示的是已知DHMM及t时刻待测电路处于隐藏状态S i,从t+1时刻到终止时刻T的局部观察序列的概率。 It should be noted that the backward variable (also called the local probability) β t (j) represents the local observation from the time t+1 to the termination time T when the DHMM is known and the circuit under test is in the hidden state S i at time t. sequence probability.
然后,对DHMM模型的各个参数进行估计,可获得如下参数:初始概率值
Figure PCTCN2022101434-appb-000014
(如公式(18)所示)、状态转移矩阵
Figure PCTCN2022101434-appb-000015
(如公式(19)所示)和观测概率转移矩阵
Figure PCTCN2022101434-appb-000016
(如公式(20)所示)
Then, each parameter of the DHMM model is estimated to obtain the following parameters: initial probability value
Figure PCTCN2022101434-appb-000014
(As shown in formula (18)), state transition matrix
Figure PCTCN2022101434-appb-000015
(as shown in formula (19)) and observation probability transition matrix
Figure PCTCN2022101434-appb-000016
(As shown in formula (20))
Figure PCTCN2022101434-appb-000017
Figure PCTCN2022101434-appb-000017
Figure PCTCN2022101434-appb-000018
Figure PCTCN2022101434-appb-000018
Figure PCTCN2022101434-appb-000019
Figure PCTCN2022101434-appb-000019
Figure PCTCN2022101434-appb-000020
表示第i个状态转移到其他状态的期望值数量,
Figure PCTCN2022101434-appb-000021
表示从第i个状态转移到第j个状态的期望值数量。
Figure PCTCN2022101434-appb-000020
Indicates the number of expected values that the i-th state transfers to other states,
Figure PCTCN2022101434-appb-000021
Indicates the expected number of transitions from the i-th state to the j-th state.
进一步地,通过初始概率值
Figure PCTCN2022101434-appb-000022
状态转移矩阵
Figure PCTCN2022101434-appb-000023
和观测概率转移矩阵
Figure PCTCN2022101434-appb-000024
确定不同状态下的模型λ,例如,可获得正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型。
Further, through the initial probability value
Figure PCTCN2022101434-appb-000022
state transition matrix
Figure PCTCN2022101434-appb-000023
and the observation probability transition matrix
Figure PCTCN2022101434-appb-000024
Determine the model λ under different states, for example, a normal state detection model, an intermittent fault state detection model and a permanent fault state detection model can be obtained.
通过将特征向量矩阵C作为观测序列,采用EM算法对DHMM的各个参数进行估计,直到不同状态下的DHMM模型满足预设的收敛条件,从而获得正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型,以方便后续对各个状态对应的概率进行计算。By using the eigenvector matrix C as the observation sequence, the EM algorithm is used to estimate the parameters of the DHMM until the DHMM models in different states meet the preset convergence conditions, so as to obtain the normal state detection model, intermittent fault state detection model and permanent fault State detection model to facilitate subsequent calculation of the probability corresponding to each state.
步骤S409,对待测电路处于正常状态的概率、待测电路处于间歇故障状态的概率和待测电路处于永久故障状态的概率进行排序,确定概率最大的状态作为待测电路的故障类型。Step S409, sort the probability of the circuit under test being in a normal state, the probability of the circuit under test being in an intermittent fault state, and the probability of the circuit under test being in a permanent fault state, and determine the state with the highest probability as the fault type of the circuit under test.
在上述的故障检测方法中,通过对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态,减少对待测电路的检修,避免对待测电路的损害;对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合,以丰富信号样本,提升对待测电路的检测准确性;采用与仿真电路的频率相同的采集频率,对待测电路进行电压信号的采集,能够保证仿真电路对应的采集信号和待测电路对应的电压信号的一致性,从而使检测结果更准确;对仿真信号集合中的仿真信号添加高斯白噪声,并对添加高斯白噪声后的信号进行经验模态分解,获得各个仿真信号对应的IMF分量,对各个仿真信号对应的IMF分量进行能量熵的运算,获得特征向量矩阵,因特征向量矩阵中的IMF分量包括仿真信号对应的频段信息,可通过特征向量矩阵很好的反映不同电路故障的发生情况;再将特征向量矩阵作为观测序列,采用EM算法对DHMM的各个参数进行估计,直到不同状态下的DHMM模型满足预设的收敛条件,从而获得正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型;再依据前向-后向算法,分别获得待测电路处于正常状态的概率、待测电路处于间歇故障状态的概率 和待测电路处于永久故障状态的概率,以将概率最大的状态作为待测电路的故障类型,保证对待测电路的故障类型的检测准确性,减少不必要的维修费用。In the above-mentioned fault detection method, by simulating the circuit to be tested, the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit are obtained, the maintenance of the circuit to be tested is reduced, and the damage to the circuit to be tested is avoided; signal acquisition is performed on the simulation circuit , to obtain the simulation signal set corresponding to the simulation state, so as to enrich the signal samples and improve the detection accuracy of the circuit to be tested; to use the same acquisition frequency as that of the simulation circuit to collect the voltage signal of the circuit to be tested, which can ensure that the simulation circuit corresponds to The consistency between the collected signal and the voltage signal corresponding to the circuit under test makes the detection result more accurate; Gaussian white noise is added to the simulated signal in the simulated signal set, and the empirical mode decomposition is performed on the signal after adding Gaussian white noise to obtain For the IMF components corresponding to each simulation signal, the energy entropy calculation is performed on the IMF components corresponding to each simulation signal to obtain the eigenvector matrix. Because the IMF component in the eigenvector matrix includes the frequency band information corresponding to the simulation signal, it can be obtained through the eigenvector matrix. reflect the occurrence of different circuit faults; then use the eigenvector matrix as the observation sequence, and use the EM algorithm to estimate the parameters of the DHMM until the DHMM models in different states meet the preset convergence conditions, so as to obtain the normal state detection model, The intermittent fault state detection model and the permanent fault state detection model; then according to the forward-backward algorithm, the probability that the circuit under test is in a normal state, the probability that the circuit under test is in an intermittent fault state, and the probability that the circuit under test is in a permanent fault state are respectively obtained. Probability, to use the state with the highest probability as the fault type of the circuit under test to ensure the detection accuracy of the fault type of the circuit under test and reduce unnecessary maintenance costs.
依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型,提高对待测电路的故障检测的准确性,减少不必要的维修费用。According to the simulation signal set corresponding to the simulation state and the preset detection algorithm, detect the signal under test of the circuit under test, determine the fault type of the circuit under test, improve the accuracy of fault detection of the circuit under test, and reduce unnecessary maintenance costs.
下面结合附图,详细介绍根据本申请实施例的故障检测装置。图5示出本申请实施例提供的故障检测装置的组成结构图。如图5所示,故障检测装置可以包括获取模块501、信号采集模块502和故障检测模块503。The fault detection device according to the embodiment of the present application will be described in detail below with reference to the accompanying drawings. FIG. 5 shows a structural diagram of a fault detection device provided by an embodiment of the present application. As shown in FIG. 5 , the fault detection device may include an acquisition module 501 , a signal collection module 502 and a fault detection module 503 .
获取模块501配置为对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态;信号采集模块502配置为对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合;故障检测模块503配置为依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型。The acquisition module 501 is configured to simulate the circuit to be tested to obtain the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit; the signal acquisition module 502 is configured to collect signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; fault detection The module 503 is configured to detect the signal under test of the circuit under test according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, and determine the fault type of the circuit under test.
根据本申请的故障检测装置,通过获取模块501对待测电路进行仿真,获得待测电路对应的仿真电路和仿真电路的仿真状态,减少对待测电路的检修,避免对待测电路的损害;使用信号采集模块502对仿真电路进行信号采集,获得仿真状态对应的仿真信号集合,以丰富信号样本,提升对待测电路的检测准确性;使用故障检测模块503依据仿真状态对应的仿真信号集合和预设检测算法,对待测电路的待测信号进行检测,确定待测电路的故障类型,加快对待测电路的故障检测速度并提高对待测电路的故障检测的准确性,减少不必要的维修费用。需要明确的是,本申请并不局限于上文所描述并在图5中示出的特定配置和处理。为了描述的方便和简洁,这里省略了对已知方法的详细描述,并且上述描述的系统、模块和单元的具体工作过程,可以参考前述故障检测方法中的对应过程,在此不再赘述。According to the fault detection device of the present application, by obtaining module 501 to simulate the circuit to be tested, obtain the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit, reduce the maintenance of the circuit to be tested, and avoid damage to the circuit to be tested; use signal acquisition Module 502 collects signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state, so as to enrich the signal samples and improve the detection accuracy of the circuit to be tested; use the fault detection module 503 according to the simulation signal set corresponding to the simulation state and the preset detection algorithm , detect the test signal of the test circuit, determine the fault type of the test circuit, speed up the fault detection speed of the test circuit and improve the accuracy of the fault detection of the test circuit, and reduce unnecessary maintenance costs. To be clear, the present application is not limited to the specific configurations and processes described above and shown in FIG. 5 . For the convenience and brevity of description, the detailed description of the known methods is omitted here, and the specific working process of the above-described systems, modules and units can refer to the corresponding process in the aforementioned fault detection method, which will not be repeated here.
图6示出能够实现根据本申请实施例的故障检测方法和装置的计算设备的示例性硬件架构的结构图。FIG. 6 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the fault detection method and apparatus according to the embodiments of the present application.
如图6所示,计算设备600包括输入设备601、输入接口602、 中央处理器603、存储器604、输出接口605、以及输出设备606。输入接口602、中央处理器603、存储器604、以及输出接口605通过总线607相互连接,输入设备601和输出设备606分别通过输入接口602和输出接口605与总线607连接,进而与计算设备600的其他组件连接。As shown in FIG. 6 , the computing device 600 includes an input device 601 , an input interface 602 , a central processing unit 603 , a memory 604 , an output interface 605 , and an output device 606 . The input interface 602, the central processing unit 603, the memory 604, and the output interface 605 are connected to each other through the bus 607, and the input device 601 and the output device 606 are respectively connected to the bus 607 through the input interface 602 and the output interface 605, and then communicate with other components of the computing device 600. Component connections.
具体地,输入设备601接收来自外部的输入信息,并通过输入接口602将输入信息传送到中央处理器603;中央处理器603基于存储器604中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器604中,然后通过输出接口605将输出信息传送到输出设备606;输出设备606将输出信息输出到计算设备600的外部,供用户使用。Specifically, the input device 601 receives input information from the outside, and transmits the input information to the central processing unit 603 through the input interface 602; the central processing unit 603 processes the input information based on computer-executable instructions stored in the memory 604 to generate output information, temporarily or permanently store the output information in the memory 604, and then transmit the output information to the output device 606 through the output interface 605; the output device 606 outputs the output information to the outside of the computing device 600 for use by the user.
在一些实施方式中,图6所示的计算设备可以被实现为一种电子设备,该电子设备可以包括:存储器,被配置为存储计算机程序;以及处理器,被配置为运行存储器中存储的计算机程序,以执行上述的故障检测方法。In some implementations, the computing device shown in FIG. 6 can be implemented as an electronic device that can include: a memory configured to store a computer program; and a processor configured to run the computer program stored in the memory. program to perform the fault detection method described above.
在一些实施方式中,图6所示的计算设备可以被实现为一种故障检测系统,该故障检测系统可以包括:存储器,被配置为存储计算机程序;以及处理器,被配置为运行存储器中存储的计算机程序,以执行上述的故障检测方法。In some implementations, the computing device shown in FIG. 6 can be implemented as a fault detection system, and the fault detection system can include: a memory configured to store a computer program; and a processor configured to run the program stored in the memory. A computer program for performing the fault detection method described above.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的故障检测方法。The embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above fault detection method is implemented.
以上所述,仅为本申请的示例性实施例而已,并非用于限定本申请的保护范围。一般来说,本申请的多种实施例可以在硬件或专用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。The above descriptions are merely exemplary embodiments of the present application, and are not intended to limit the protection scope of the present application. In general, the various embodiments of the present application can be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software, which may be executed by a controller, microprocessor or other computing device, although the application is not limited thereto.
本申请的实施例可以通过移动装置的数据处理器执行计算机程序指令来实现,例如在处理器实体中,或者通过硬件,或者通过软件和硬件的组合。计算机程序指令可以是汇编指令、指令集架构(ISA) 指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者是以一种或多种编程语言的任意组合编写的源代码或目标代码。The embodiments of the present application may be implemented by a data processor of a mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware. Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or object code.
本申请附图中的任何逻辑流程的框图可以表示程序步骤,或者可以表示相互连接的逻辑电路、模块和功能,或者可以表示程序步骤与逻辑电路、模块和功能的组合。计算机程序可以存储在存储器上。存储器可以具有任何适合于本地技术环境的类型并且可以使用任何适合的数据存储技术实现,例如但不限于只读存储器(ROM)、随机访问存储器(RAM)、光存储器装置和系统(数码多功能光碟DVD或CD光盘)等。计算机可读介质可以包括非瞬时性存储介质。数据处理器可以是任何适合于本地技术环境的类型,例如但不限于通用计算机、专用计算机、微处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、可编程逻辑器件(FGPA)以及基于多核处理器架构的处理器。Any logic flow block diagrams in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. Computer programs can be stored on memory. The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read-only memory (ROM), random-access memory (RAM), optical memory devices and systems (digital versatile disc DVD or CD), etc. Computer readable media may include non-transitory storage media. The data processor can be of any type suitable for the local technical environment, such as but not limited to general purpose computer, special purpose computer, microprocessor, digital signal processor (DSP), application specific integrated circuit (ASIC), programmable logic device (FGPA) and processors based on multi-core processor architectures.
通过示范性和非限制性的示例,上文已提供了对本申请的示范实施例的详细描述。但结合附图和权利要求来考虑,对以上实施例的多种修改和调整对本领域技术人员来说是显而易见的,但不偏离本申请的范围。因此,本申请的恰当范围将根据权利要求确定。The foregoing has provided a detailed description of exemplary embodiments of the present application by way of exemplary and non-limiting examples. However, considering the accompanying drawings and the claims, various modifications and adjustments to the above embodiments are obvious to those skilled in the art, but do not depart from the scope of the present application. Therefore, the proper scope of the application will be determined from the claims.

Claims (17)

  1. 一种故障检测方法,包括:A fault detection method, comprising:
    对待测电路进行仿真,获得所述待测电路对应的仿真电路和所述仿真电路的仿真状态;Simulating the circuit to be tested to obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit;
    对所述仿真电路进行信号采集,获得所述仿真状态对应的仿真信号集合;以及Collecting signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; and
    依据所述仿真状态对应的仿真信号集合和预设检测算法,对所述待测电路的待测信号进行检测,确定所述待测电路的故障类型。According to the simulated signal set corresponding to the simulated state and the preset detection algorithm, the tested signal of the tested circuit is detected to determine the fault type of the tested circuit.
  2. 根据权利要求1所述的方法,其中,所述对待测电路进行仿真,获得所述待测电路对应的仿真电路和所述仿真电路的仿真状态包括:The method according to claim 1, wherein said simulating the circuit to be tested, and obtaining the simulation circuit corresponding to the circuit to be tested and the simulation state of the simulation circuit comprises:
    依据仿真算法模拟所述待测电路,获得所述仿真电路,所述仿真电路包括设置于模拟元器件的输入端和输出端的开关;simulating the circuit to be tested according to a simulation algorithm to obtain the simulation circuit, the simulation circuit including a switch arranged at an input end and an output end of an analog component;
    获取所述仿真电路中的所述开关的开关时间和开关频率;以及obtaining switching times and switching frequencies of the switches in the simulated circuit; and
    依据所述开关时间和所述开关频率,模拟所述待测电路的工作状态,获得所述仿真电路的仿真状态。According to the switching time and the switching frequency, the working state of the circuit under test is simulated to obtain the simulation state of the simulation circuit.
  3. 根据权利要求2所述的方法,其中,所述待测电路的工作状态或所述仿真电路的仿真状态包括:正常状态、间歇故障状态和永久故障状态中的至少一种;The method according to claim 2, wherein the operating state of the circuit to be tested or the simulation state of the simulation circuit comprises: at least one of a normal state, an intermittent fault state and a permanent fault state;
    所述仿真状态对应的仿真信号集合包括:正常仿真信号集合、间歇故障仿真信号集合和永久故障仿真信号集合中的至少一种。The simulated signal set corresponding to the simulated state includes: at least one of a normal simulated signal set, an intermittent fault simulated signal set, and a permanent fault simulated signal set.
  4. 根据权利要求1所述的方法,其中,所述对所述仿真电路进行信号采集,获得所述仿真状态对应的仿真信号集合包括:The method according to claim 1, wherein said collecting signals from said simulation circuit and obtaining a simulation signal set corresponding to said simulation state comprises:
    以预设频率对所述仿真电路进行信号采集,获得所述仿真状态对应的仿真信号集合,所述预设频率包括所述仿真电路中的开关频率。Signal collection is performed on the simulation circuit at a preset frequency to obtain a simulation signal set corresponding to the simulation state, where the preset frequency includes a switching frequency in the simulation circuit.
  5. 根据权利要求1所述的方法,其中,所述依据所述仿真状态对应的仿真信号集合和预设检测算法,对所述待测电路的待测信号进行检测,确定所述待测电路的故障类型包括:The method according to claim 1, wherein, according to the simulation signal set corresponding to the simulation state and the preset detection algorithm, the signal to be tested of the circuit to be tested is detected to determine the fault of the circuit to be tested Types include:
    对所述待测电路的待测信号进行经验模态分解,获得待测向量;performing empirical mode decomposition on the signal to be tested of the circuit to be tested to obtain a vector to be tested;
    对所述仿真状态对应的仿真信号集合中的仿真信号进行经验模态分解,获得所述仿真状态对应的特征向量矩阵;Performing empirical mode decomposition on the simulation signals in the simulation signal set corresponding to the simulation state to obtain the eigenvector matrix corresponding to the simulation state;
    依据所述仿真状态对应的特征向量矩阵和所述预设检测算法,确定所述仿真状态对应的故障检测模型;Determine a fault detection model corresponding to the simulation state according to the eigenvector matrix corresponding to the simulation state and the preset detection algorithm;
    将所述待测向量输入至所述仿真状态对应的故障检测模型,获得所述待测电路对应的工作状态概率;以及Inputting the vector to be tested into a fault detection model corresponding to the simulation state to obtain a working state probability corresponding to the circuit to be tested; and
    依据所述待测电路对应的工作状态概率,确定所述待测电路的故障类型。The fault type of the circuit under test is determined according to the working state probability corresponding to the circuit under test.
  6. 根据权利要求5所述的方法,其中,所述对所述仿真状态对应的仿真信号集合中的仿真信号进行经验模态分解,获得所述仿真状态对应的特征向量矩阵包括:The method according to claim 5, wherein performing empirical mode decomposition on the simulation signals in the simulation signal set corresponding to the simulation state, and obtaining the eigenvector matrix corresponding to the simulation state comprises:
    将所述仿真状态对应的仿真信号集合中的仿真信号作为原始信号;Using the simulation signal in the simulation signal set corresponding to the simulation state as the original signal;
    依据预设噪声信号对所述原始信号进行处理,获得信号分解矩阵,其中,所述信号分解矩阵是与所述仿真状态对应的矩阵,所述信号分解矩阵包括多个分解向量;以及Processing the original signal according to a preset noise signal to obtain a signal decomposition matrix, wherein the signal decomposition matrix is a matrix corresponding to the simulation state, and the signal decomposition matrix includes a plurality of decomposition vectors; and
    依据所述信号分解矩阵,确定所述仿真状态对应的特征向量矩阵。According to the signal decomposition matrix, an eigenvector matrix corresponding to the simulation state is determined.
  7. 根据权利要求6所述的方法,其中,所述预设噪声信号包括:第一白噪声和第二白噪声,所述第二白噪声是与所述第一白噪声的幅度相同且方向相反的噪声;The method according to claim 6, wherein the preset noise signal comprises: a first white noise and a second white noise, and the second white noise is the same in amplitude and opposite in direction to the first white noise noise;
    所述依据预设噪声信号对所述原始信号进行处理,获得信号分解矩阵包括:The processing the original signal according to the preset noise signal, and obtaining the signal decomposition matrix includes:
    对所述原始信号添加所述第一白噪声,获得第一待处理信号;adding the first white noise to the original signal to obtain a first signal to be processed;
    对所述原始信号添加所述第二白噪声,获得第二待处理信号;以及adding the second white noise to the original signal to obtain a second signal to be processed; and
    依据所述第一待处理信号和所述第二待处理信号,确定所述信号分解矩阵。The signal decomposition matrix is determined according to the first signal to be processed and the second signal to be processed.
  8. 根据权利要求6所述的方法,其中,所述依据所述信号分解矩阵,确定所述仿真状态对应的特征向量矩阵包括:The method according to claim 6, wherein, according to the signal decomposition matrix, determining the eigenvector matrix corresponding to the simulation state comprises:
    将所述信号分解矩阵中的分解向量的能量熵作为特征向量,所述分解向量的能量熵反映待处理信号的频段能量信息;以及Using the energy entropy of the decomposition vector in the signal decomposition matrix as a feature vector, the energy entropy of the decomposition vector reflects the frequency band energy information of the signal to be processed; and
    依据所述特征向量,确定所述仿真状态对应的特征向量矩阵。According to the eigenvectors, an eigenvector matrix corresponding to the simulation state is determined.
  9. 根据权利要求6所述的方法,其中,所述依据所述信号分解矩阵,确定所述仿真状态对应的特征向量矩阵包括:The method according to claim 6, wherein, according to the signal decomposition matrix, determining the eigenvector matrix corresponding to the simulation state comprises:
    将所述信号分解矩阵中的分解向量的幅值作为特征向量;以及using the magnitudes of the decomposition vectors in the signal decomposition matrix as eigenvectors; and
    依据所述特征向量,确定所述仿真状态对应的特征向量矩阵。According to the eigenvectors, an eigenvector matrix corresponding to the simulation state is determined.
  10. 根据权利要求5所述的方法,其中,所述依据所述仿真状态对应的特征向量矩阵和所述预设检测算法,确定所述仿真状态对应的故障检测模型包括:The method according to claim 5, wherein, according to the eigenvector matrix corresponding to the simulation state and the preset detection algorithm, determining the fault detection model corresponding to the simulation state comprises:
    采用所述预设检测算法,对所述仿真状态对应的特征向量矩阵进行处理,获得所述仿真状态对应的故障检测模型;以及Using the preset detection algorithm to process the eigenvector matrix corresponding to the simulation state to obtain a fault detection model corresponding to the simulation state; and
    所述仿真状态对应的故障检测模型包括:正常状态检测模型、间歇故障状态检测模型和永久故障状态检测模型中的至少一种。The fault detection model corresponding to the simulation state includes: at least one of a normal state detection model, an intermittent fault state detection model, and a permanent fault state detection model.
  11. 根据权利要求10所述的方法,其中,所述采用所述预设检测算法,对所述仿真状态对应的特征向量矩阵进行处理,获得所述仿真状态对应的故障检测模型包括:The method according to claim 10, wherein, using the preset detection algorithm, processing the eigenvector matrix corresponding to the simulation state, and obtaining the fault detection model corresponding to the simulation state comprises:
    采用所述预设检测算法,对所述间歇故障状态下的预设检测模型的参数进行估计,直至所述预设检测模型满足预设的收敛条件,获得所述间歇故障状态检测模型,所述预设检测模型包括所述特征向量 矩阵。Using the preset detection algorithm to estimate the parameters of the preset detection model in the intermittent fault state until the preset detection model satisfies a preset convergence condition to obtain the intermittent fault state detection model, the The preset detection model includes the feature vector matrix.
  12. 根据权利要求11所述的方法,其中,所述预设检测算法包括:最大期望算法或小波分解算法;The method according to claim 11, wherein the preset detection algorithm comprises: a maximum expectation algorithm or a wavelet decomposition algorithm;
    所述预设检测模型包括:离散隐马尔可夫模型或反向传播神经网络检测模型;其中,所述离散隐马尔可夫模型的参数包括:观测序列、所述仿真状态的数量、状态初始概率、转移概率矩阵和观测概率转移矩阵,所述观测序列包括所述特征向量矩阵。The preset detection model includes: a discrete hidden Markov model or a backpropagation neural network detection model; wherein, the parameters of the discrete hidden Markov model include: an observation sequence, the number of simulation states, and the initial probability of a state , a transition probability matrix and an observation probability transition matrix, the observation sequence includes the eigenvector matrix.
  13. 根据权利要求10至12中任一项所述的方法,其中,所述将所述待测向量输入至所述仿真状态对应的故障检测模型,获得所述待测电路对应的工作状态概率包括:The method according to any one of claims 10 to 12, wherein the inputting the vector to be tested into the fault detection model corresponding to the simulation state, and obtaining the working state probability corresponding to the circuit to be tested comprises:
    依据前向-后向算法,将所述待测向量输入至所述仿真状态对应的故障检测模型,获得所述待测电路对应的工作状态概率。According to the forward-backward algorithm, the vector to be tested is input into the fault detection model corresponding to the simulation state, and the working state probability corresponding to the circuit to be tested is obtained.
  14. 根据权利要求13所述的方法,其中,所述待测电路对应的工作状态概率包括:所述待测电路处于所述正常状态的概率、所述待测电路处于所述间歇故障状态的概率和所述待测电路处于所述永久故障状态的概率;The method according to claim 13, wherein the working state probability corresponding to the circuit under test includes: the probability that the circuit under test is in the normal state, the probability that the circuit under test is in the intermittent fault state, and the probability that the circuit under test is in the permanent fault state;
    所述依据所述待测电路对应的工作状态概率,确定所述待测电路的故障类型包括:The determining the fault type of the circuit under test according to the working state probability corresponding to the circuit under test includes:
    对所述待测电路处于所述正常状态的概率、所述待测电路处于所述间歇故障状态的概率和所述待测电路处于所述永久故障状态的概率进行排序,获得排序结果;以及sorting the probability that the circuit under test is in the normal state, the probability that the circuit under test is in the intermittent fault state, and the probability that the circuit under test is in the permanent fault state, to obtain a ranking result; and
    依据所述排序结果,确定所述待测电路的故障类型。According to the ranking result, the fault type of the circuit under test is determined.
  15. 一种故障检测装置,包括:A fault detection device, comprising:
    获取模块,配置为对待测电路进行仿真,获得所述待测电路对应的仿真电路和所述仿真电路的仿真状态;An acquisition module configured to simulate the circuit to be tested, and obtain a simulation circuit corresponding to the circuit to be tested and a simulation state of the simulation circuit;
    信号采集模块,配置为对所述仿真电路进行信号采集,获得所 述仿真状态对应的仿真信号集合;以及A signal collection module configured to collect signals from the simulation circuit to obtain a simulation signal set corresponding to the simulation state; and
    故障检测模块,配置为依据所述仿真状态对应的仿真信号集合和预设检测算法,对所述待测电路的待测信号进行检测,确定所述待测电路的故障类型。The fault detection module is configured to detect the signal under test of the circuit under test according to the simulation signal set corresponding to the simulation state and a preset detection algorithm, and determine the fault type of the circuit under test.
  16. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    存储器,其上存储有至少一个计算机程序,当所述至少一个计算机程序被所述至少一个处理器执行时,使得所述至少一个处理器实现如权利要求1至14中任一项所述的故障检测方法。A memory having stored thereon at least one computer program which, when executed by said at least one processor, causes said at least one processor to implement a malfunction as claimed in any one of claims 1 to 14 Detection method.
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至14中任一项所述的故障检测方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fault detection method according to any one of claims 1 to 14 is implemented.
PCT/CN2022/101434 2021-06-28 2022-06-27 Fault detection method and apparatus, and electronic device and computer-readable storage medium WO2023274121A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110719858.3A CN115600352A (en) 2021-06-28 2021-06-28 Fault detection method and device, electronic equipment and readable storage medium
CN202110719858.3 2021-06-28

Publications (1)

Publication Number Publication Date
WO2023274121A1 true WO2023274121A1 (en) 2023-01-05

Family

ID=84691387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101434 WO2023274121A1 (en) 2021-06-28 2022-06-27 Fault detection method and apparatus, and electronic device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115600352A (en)
WO (1) WO2023274121A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117349735A (en) * 2023-12-05 2024-01-05 国家电投集团云南国际电力投资有限公司 Fault detection method, device and equipment for direct-current micro-grid and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108535635A (en) * 2018-04-17 2018-09-14 重庆大学 A kind of analog circuit intermittent fault diagnostic method based on EEMD and HMM
CN108563874A (en) * 2018-04-17 2018-09-21 重庆大学 A kind of analog circuit intermittent fault diagnostic method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108535635A (en) * 2018-04-17 2018-09-14 重庆大学 A kind of analog circuit intermittent fault diagnostic method based on EEMD and HMM
CN108563874A (en) * 2018-04-17 2018-09-21 重庆大学 A kind of analog circuit intermittent fault diagnostic method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CAO DUAN-CHAO, KANG JIAN-SHE, ZHAO JIN-SONG , ZHANG XING-HUI: "Application of Gear Fault Diagnosis Method Based on Improved EMD and HMM", NOISE AND VIBRATION CONTROL, vol. 36, no. 11, 1 June 2013 (2013-06-01), pages 208 - 211, XP093022219, ISSN: 1006-1355, DOI: 10.3969/j.issn.1006-1335.2013.03.047 *
GUO MINGWEI, NI SHIHONG, ZHU JIAHAI : "BIT Intermittent Fault Identification Based on EMD-HMM", JOURNAL OF VIBRATION, MEASUREMENT & DIAGNOSIS, vol. 32, no. 3, 1 June 2012 (2012-06-01), pages 467 - 470, XP093022216, ISSN: 1004-6801 *
XU LIJIA, HUANG JIANGUO, WANG HOUJUN: "A Method for the Diagnosis of the Incipient Faults in Analog Circuits Using HMM", JOURNAL OF COMPUTER-AIDED DESIGN & COMPUTER GRAPHICS, GAI-KAN BIAN-WEI-HUI, BEIJING, CN, vol. 22, no. 7, 1 July 2010 (2010-07-01), CN , pages 1215 - 1222, XP009542426, ISSN: 1003-9775 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117349735A (en) * 2023-12-05 2024-01-05 国家电投集团云南国际电力投资有限公司 Fault detection method, device and equipment for direct-current micro-grid and storage medium
CN117349735B (en) * 2023-12-05 2024-03-26 国家电投集团云南国际电力投资有限公司 Fault detection method, device and equipment for direct-current micro-grid and storage medium

Also Published As

Publication number Publication date
CN115600352A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
CN107231436B (en) Method and device for scheduling service
CN106951695B (en) Method and system for calculating residual service life of mechanical equipment under multiple working conditions
CN111459700B (en) Equipment fault diagnosis method, diagnosis device, diagnosis equipment and storage medium
Long et al. Improved diagnostics for the incipient faults in analog circuits using LSSVM based on PSO algorithm with Mahalanobis distance
US11418029B2 (en) Method for recognizing contingencies in a power supply network
KR101872342B1 (en) Method and device for intelligent fault diagnosis using improved rtc(real-time contrasts) method
EP3422517B1 (en) A method for recognizing contingencies in a power supply network
WO2023165006A1 (en) Predictive maintenance method and apparatus for industrial equipment based on health status index, and electronic device
CN111881023B (en) Software aging prediction method and device based on multi-model comparison
WO2023274121A1 (en) Fault detection method and apparatus, and electronic device and computer-readable storage medium
CN109426655A (en) Data analysing method, device, electronic equipment and computer readable storage medium
CN112379325A (en) Fault diagnosis method and system for intelligent electric meter
CN110727553A (en) Method and device for predicting and diagnosing faults of processor system
CN117056678B (en) Machine pump equipment operation fault diagnosis method and device based on small sample
CN113093695A (en) Data-driven SDN controller fault diagnosis system
Yan et al. A practice guide of software aging prediction in a web server based on machine learning
Roy et al. Software reliability allocation of digital relay for transmission line protection using a combined system hierarchy and fault tree approach
CN116859255A (en) Method, device, equipment and medium for predicting state of health of energy storage battery
CN115640542A (en) Intelligent electric energy meter state evaluation method and evaluation device based on Bayesian theory
CN108053093A (en) A kind of k- neighbour's method for diagnosing faults based on the conversion of average influence Value Data
CN112423031B (en) KPI monitoring method, device and system based on IPTV
Jia et al. Using neural networks to forecast available system resources: an approach and empirical investigation
Yan et al. A practice of forecasting software aging in an IIS web server using SVM
CN104573152B (en) A kind of method of the shortening CFD numerical simulation calculation times based on prerun
CN116796031B (en) Fault propagation path identification method based on causality

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831935

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE