A method and system for diagnosing faults of turnout machines

By constructing a deep convolutional neural network with a residual structure to process and analyze the current curve of the switch machine, the problem of low fault diagnosis accuracy in the existing technology is solved, and higher prediction accuracy and robustness are achieved.

CN112348170BActive Publication Date: 2024-10-15TRAFFIC CONTROL TECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202011248062.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-10
Publication Date
2024-10-15
Estimated Expiration
2040-11-10

AI Technical Summary

Technical Problem

Existing turnout machine fault diagnosis methods are difficult to effectively obtain the local characteristics of time series data, resulting in poor prediction accuracy.

Method used

A deep convolutional neural network with a residual structure is used to construct a fault analysis network model by sampling the current curve with a preset length and enhancing it with the sliding window method, which is used to obtain different phase interaction information and distinguishing characteristics of the current curve.

Benefits of technology

It improves the accuracy and robustness of fault diagnosis, can better learn the difference information between normal and fault samples, and improves the prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112348170B_ABST
    Figure CN112348170B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and system for diagnosing faults of a turnout machine, comprising: obtaining a current curve of the turnout machine; sampling the current curve based on a preset length to obtain current curve data; inputting the current curve data into a fault analysis network model to obtain a fault diagnosis result corresponding to the current curve according to the output result of the fault analysis network model; wherein the fault analysis network model is a deep convolutional neural network with a residual structure. The method and system for diagnosing faults of a turnout machine provided by the embodiment of the present invention, by constructing a deep convolutional neural network with a residual structure, obtains the fault cause corresponding to the fault category with the highest probability, can better extract the interactive information between different phases of the current curve, and thanks to the residual structure and hierarchical normalization, the network structure can be as deep as possible, so as to better learn the difference information between normal and faulty samples and improve the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a turnout machine fault diagnosis method and system. Background Art

[0002] The turnout switch is a switching device for the turnout, which can be used to switch or lock the turnout. The failure of the turnout switch may cause the derailment of the train on the track, resulting in huge economic losses and casualties. The current sequence of the turnout switch can be used to determine the working state of the turnout switch, such as whether it is in a normal working state. If it is in an abnormal working state, it is used to determine which specific abnormal working state it is in.

[0003] The core of judging the working status of the turnout according to the turnout current sequence is to judge whether the current turnout current curve is normal or abnormal based on the historical turnout current curve data. The current turnout machine current sequence fault diagnosis model is mainly divided into two types:

[0004] The first is a matching-based fault diagnosis method. This method performs fault diagnosis by comparing the similarity between the current sample to be evaluated and the fault samples in the historical database. This method first collects a large number of fault sample instances, and then calculates the specified distance metric between the sample to be evaluated and each sample in the fault sample database, generally the dynamic time warping metric (DTW), to find the most similar fault curve and identify its possible fault type. This method cannot abstract the sample features of the fault, and cannot perform correct fault diagnosis when faced with samples that are not in the fault database.

[0005] The second type is a fault diagnosis method based on statistical machine learning and deep learning. This type of method extracts the deep features of the fault samples, trains the classifier, and then classifies the samples to be evaluated. This type of method needs to extract the relevant features of the fault samples and normal samples for learning. However, this method cannot effectively obtain the local characteristics of time series data by relying solely on deep neural networks, resulting in poor prediction accuracy.

[0006] In view of this, it is urgent to improve the existing turnout machine fault diagnosis method to improve the accuracy and robustness of fault prediction. Summary of the invention

[0007] The embodiment of the present invention provides a turnout machine fault diagnosis method and system, which are used to solve the defect in the prior art that the local characteristics of time series data cannot be effectively obtained when diagnosing the turnout machine fault, resulting in poor prediction accuracy.

[0008] In a first aspect, an embodiment of the present invention provides a method for diagnosing a fault of a turnout machine, which mainly includes:

[0009] Acquire a current curve of a turnout machine; sample the current curve based on a preset length to acquire current curve data; input the current curve data into a fault analysis network model to acquire a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model; wherein the fault analysis network model is a deep convolutional neural network with a residual structure.

[0010] Optionally, sampling the current curve based on a preset length to obtain current curve data mainly includes: when the length of the current curve is greater than the preset length, down-sampling the current curve to obtain the current curve data; when the length of the current curve is less than the preset length, up-sampling and interpolating the current curve to obtain the current curve data.

[0011] Optionally, before inputting the current curve data into the fault analysis network model, the method may further include:

[0012] Normal current curve samples and abnormal current curve samples are obtained to construct a current curve sample set; each sample in the current curve sample set is sampled to obtain a current curve data sample set; the current curve data sample set is layered sampled to obtain a current curve data training sample set; the current curve data training sample set is enhanced based on a sliding window method to obtain an enhanced current curve data training sample set; the enhanced current curve data training sample set and the current curve data training sample set are combined to form a model training sample set; the fault analysis network model is pre-trained using the model training sample set and the diagnostic labels corresponding to each sample in the model training sample set.

[0013] Optionally, the enhancing process of the current curve data training sample set based on the sliding window method to obtain the enhanced current curve data training sample set mainly includes:

[0014] Determine the size of the sliding window and the sliding step length; based on the size of the sliding window and the sliding step length, sample any current curve data in the current curve data training sample set to obtain multiple enhanced samples to construct a local sample set; the length of each enhanced sample in the local sample set is the size of the sliding window; after padding each enhanced sample with 0s until the length of the enhanced sample is the preset length, obtain the enhanced current curve data training sample set.

[0015] Optionally, after pre-training the fault analysis network model, the method further includes: verifying the pre-trained fault analysis network model using a current curve data verification set; the current curve data verification set is obtained after stratified sampling of the current curve data sample set.

[0016] Optionally, the structure of the fault analysis network model specifically includes: a total input layer, a first one-dimensional residual block, a maximum pooling layer, a one-dimensional Spatial Dropout layer, a second one-dimensional residual block, a global average pooling layer, a Softmax function layer and a total output layer connected in sequence; the structures of the first one-dimensional residual block and the second one-dimensional residual block are the same.

[0017] Optionally, the structures of the first one-dimensional residual block and the second one-dimensional residual block specifically include: an inter-layer input layer, a first one-dimensional Layer Normailzation layer, a second one-dimensional Layer Normailzation layer, a third one-dimensional Layer Normailzation layer, an Add Layer Normailzation layer and an inter-layer output layer connected in sequence.

[0018] In a second aspect, an embodiment of the present invention further provides a turnout machine fault diagnosis system, which mainly includes a data acquisition unit, a data preprocessing unit and a data analysis unit, wherein:

[0019] A data acquisition unit, used for acquiring a current curve of a turnout machine;

[0020] A data preprocessing unit, used for sampling the current curve based on a preset length to obtain current curve data;

[0021] A data analysis unit, used for inputting the current curve data into a fault analysis network model, so as to obtain a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model;

[0022] Wherein, the fault analysis network model is a deep convolutional neural network with a residual structure.

[0023] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned methods for diagnosing faults of turnout machines are implemented.

[0024] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-mentioned methods for diagnosing faults of turnout machines.

[0025] The turnout machine fault diagnosis method and system provided in the embodiment of the present invention, by constructing a deep convolutional neural network with a residual structure, obtains the fault cause corresponding to the fault category with the highest probability, and can better extract the interactive information between different phases of the current curve. Moreover, thanks to the residual structure and hierarchical normalization, the network structure can be as deep as possible, so as to better learn the difference information between normal and faulty samples and improve the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a flow chart of a method for diagnosing a fault of a turnout machine provided by an embodiment of the present invention;

[0028] Figure 2 This is a schematic diagram of a three-phase current curve timing of a turnout machine provided by an embodiment of the present invention;

[0029] Figure 3 It is a schematic diagram of a flow chart of enhancing a current curve data training sample set provided by an embodiment of the present invention;

[0030] Figure 4 It is a schematic diagram of a data processing flow in a turnout machine fault diagnosis process provided by an embodiment of the present invention;

[0031] Figure 5 It is a structural schematic diagram of a fault analysis network model provided by an embodiment of the invention;

[0032] Figure 6 A schematic diagram of the structure of a turnout machine fault diagnosis system provided by an embodiment of the present invention;

[0033] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] Figure 1 FIG. 1 is a flow chart of a method for diagnosing a fault of a turnout machine provided by an embodiment of the present invention. Figure 1 As shown, the method includes but is not limited to the following steps:

[0036] Step 11, obtaining the current curve of the turnout machine;

[0037] Step 12, sampling the current curve based on a preset length to obtain current curve data;

[0038] Step 13, inputting the current curve data into a fault analysis network model to obtain a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model;

[0039] Wherein, the fault analysis network model is a deep convolutional neural network with a residual structure.

[0040] In an embodiment of the present invention, a current reading device is added to the control circuit of each turnout switch to record the current sequence current of each turnout switch in real time during operation, and draw a corresponding sequence current curve. When it is necessary to diagnose the operating status of the target turnout switch or the fault of the target turnout switch, it is only necessary to retrieve the sequence current curve of the target turnout switch within the target time period, and pre-process the sequence current curve, including sampling with a preset length. Then, the current curve data obtained after pre-processing is input into a pre-trained fault analysis network model to diagnose the fault.

[0041] Among them, since the technical solution of the present application is to use a deep convolutional neural network with a residual structure as a fault analysis network model to analyze the input current curve data and obtain a fault diagnosis result corresponding to the input current curve data, the length of the input current curve data is required to be the same, so as to ensure that the fault analysis network model can accurately obtain the law of sample distribution.

[0042] Among them, the deep convolutional neural network with a residual structure means that in the commonly used deep convolutional neural network model, a residual structure is set to realize the difference between the actual value and the model estimated value (fitting value) as the residual term, which is used to overcome the difficulty in training deeper neural networks and the defects such as gradient disappearance and gradient explosion. The use of residual blocks can train deeper neural networks. Therefore, the fault analysis network model constructed is to form a deeper neural network model by stacking at least one residual block together. On the basis of extracting the deep features of the data without manual feature extraction, the local characteristics of the time series data can be obtained at a deeper level, so as to improve the accuracy of turnout machine fault diagnosis.

[0043] The turnout machine fault diagnosis method provided in the embodiment of the present invention obtains the fault cause corresponding to the fault category with the highest probability by constructing a deep convolutional neural network with a residual structure, and can better extract the interactive information between different phases of the current curve. Moreover, thanks to the residual structure and hierarchical normalization, the network structure can be as deep as possible, so as to better learn the difference information between normal and faulty samples and improve the prediction accuracy.

[0044] Based on the content of the above embodiment, as an optional embodiment, sampling the current curve based on a preset length to obtain current curve data includes:

[0045] When the length of the current curve is greater than the preset length, downsampling the current curve to obtain the current curve data;

[0046] When the length of the current curve is less than the preset length, upsampling and interpolation are performed on the current curve to obtain the current curve data.

[0047] Figure 2 FIG. 1 is a schematic diagram of a data processing flow in a turnout machine fault diagnosis process provided by an embodiment of the present invention. Figure 2 As shown, the unit of the horizontal axis is time step (time step), and the unit of the vertical axis is current unit ampere (A). Figure 2 2 shows the timing curves of the three-phase current of the turnout machine (phase A, phase B and phase C respectively).

[0048] Specifically, since the collected current curve of the turnout machine is a time series curve diagram, in the embodiment of the present invention, the time series curve diagram is analyzed by the fault analysis network model to obtain the fault diagnosis result corresponding to the current curve. Therefore, when the time series curve diagram is input into the fault analysis network model, it needs to be preprocessed to ensure that the data format input into the fault analysis network model is the same.

[0049] Specifically, in the embodiment of the present invention, the collected timing curve graph is first sampled, including: given a preset length parameter L, each timing curve in the timing curve graph is sampled to a specified length L. For samples with a length greater than L, downsampling is performed; for samples with a length less than L, upsampling interpolation is performed.

[0050] The down sampling means that for the timing curve, sampling is performed once at an interval length L, so that the current curve data obtained is the down sampling of the original timing curve.

[0051] The upsampling interpolation refers to: collecting current curve data, upsampling is to convert a signal that is continuous in time and amplitude into a signal that is discrete in time and amplitude under the action of a sampling pulse (length L),

[0052] In fact, both upsampling and downsampling are resampling of the timing curve diagram. By comparing the length of the current curve with the preset length L, the one that is greater than the length L is called upsampling, and the one that is less than the length L is called downsampling. The essence of upsampling is interpolation or interpolation.

[0053] Therefore, the embodiment of the present invention can obtain current curve data with consistent constants by sampling the timing curve diagram of the target turnout machine, so as to unify the data format input into the fault analysis network model, facilitate analysis thereof using the fault analysis network model, and effectively improve the recognition capability of the system.

[0054] Based on the content of the above embodiment, as an optional embodiment, before inputting the current curve data into the fault analysis network model, it also includes:

[0055] Obtain normal current curve samples and abnormal current curve samples, and construct a current curve sample set;

[0056] Sampling each sample in the current curve sample set to obtain a current curve data sample set;

[0057] Performing stratified sampling on the current curve data sample set to obtain a current curve data training sample set;

[0058] Performing enhancement processing on the current curve data training sample set based on a sliding window method to obtain an enhanced current curve data training sample set;

[0059] The enhanced current curve data training sample set and the current curve data training sample set together form a model training sample set;

[0060] The fault analysis network model is pre-trained using the model training sample set and the diagnostic label corresponding to each sample in the model training sample set.

[0061] Specifically, before the embodiment of the present invention uses the fault analysis network model to analyze the current curve data of the target turnout machine, it is necessary to pre-train the fault analysis network model, which specifically includes but is not limited to the following steps:

[0062] First, historical current curve samples of the target turnout machine and other turnout machines of the same type are obtained to construct a current curve sample set, wherein the current curve sample set includes normal current curve samples and abnormal current curve samples.

[0063] Further, based on the method adopted in the above embodiment, each historical current curve sample is sampled using a preset length, and a current curve data sample corresponding to each historical current curve sample is obtained to construct a current curve data sample set. Each current curve data sample is provided with a corresponding fault diagnosis label. For example: if the current curve data sample is a normal current curve sample, the fault diagnosis label is normal; if the current curve data sample is an abnormal current curve sample, the fault diagnosis label is marked with a specific fault type.

[0064] Furthermore, the current curve data sample set constructed in the previous step is subjected to stratified sampling to select a training set and a validation set. It should be noted that in the stratified sampling process, the consistency of the fault sample label ratio in the training set and the test set needs to be maintained, so as to ensure the consistency of the fault sample distribution in the training set and the test set, and further ensure that the trained fault analysis network model can accurately obtain the law of sample distribution.

[0065] The stratified sampling refers to random sampling of each category. Stratified sampling is often used to ensure uniformity and representativeness in the sampling space or type selection. The sampling method within each layer can be simple random sampling or systematic sampling. If there is no special need, random sampling can obtain better samples.

[0066] Furthermore, the current curve data training sample set obtained in the previous step is enhanced based on the sliding window method to obtain an enhanced current curve data training sample set.

[0067] Optionally, the enhancing process of the current curve data training sample set based on the sliding window method to obtain the enhanced current curve data training sample set mainly includes the following steps:

[0068] Determine the size of the sliding window and the sliding step size;

[0069] Based on the size of the sliding window and the sliding step size, sampling any current curve data in the current curve data training sample set, obtaining a plurality of enhanced samples to construct a local sample set;

[0070] The length of each of the enhanced samples in the local sample set is the size of the sliding window;

[0071] After each of the enhanced samples is backfilled with 0s until the length of the enhanced sample reaches the preset length, the enhanced current curve data training sample set is obtained.

[0072] The sliding window algorithm controls the traffic volume by limiting the maximum number of cells that can be received in each time window. In the sliding window algorithm, the time window slides forward once every cell time, and the sliding length is one cell time.

[0073] The data enhancement strategy adopted in the embodiment of the present application mainly includes the following contents:

[0074] First, the sliding window size w and step size k are preset. For the i-th curve T in the current curve data training sample set, i ∈R L×3 For example, local samples in the sliding window are intercepted as enhanced samples, and the sliding window is moved forward according to the step size k to traverse the i-th curve T i , we can get the value of T for the i-th curve i ∈R L×3 The local sample set Where h = [(Lw) / k] + 1, j is an intermediate variable. The length of each sample in the local enhanced sample set of the i-th sample is equal to the size w of the sliding window, which contains the local characteristic information of the sample (i-th curve).

[0075] Figure 3 is a schematic diagram of a flow chart of performing enhancement processing on any current curve data in a current curve data training sample set provided by an embodiment of the present invention, such as Figure 3 As shown, the adopted parameters are w=60, the step size k=30, and the number of local samples acquired by each enhanced sample is 4. Accordingly, the fault diagnosis label of each enhanced sample is the same as the fault diagnosis label of the current curve data.

[0076] Furthermore, each enhanced sample of the i-th sample is backfilled with 0s to a length of L. Such a 0-filling strategy facilitates the subsequent neural network to learn local features during feature extraction.

[0077] The turnout machine fault diagnosis method provided in the embodiment of the present invention first preprocesses the historical time series data and samples each time series data to the same length; then, the local samples of each time series are constructed using the sliding window method, and the local characteristics of the samples are captured at the data level. Thus, the time series data enhancement strategy is used to enhance the capture of the local characteristics of the data by the constructed fault analysis network model by enhancing the training data set, so that the model can better utilize the local characteristics to diagnose the fault. Compared with the case where no data enhancement is performed and the deep neural network is used alone for fault diagnosis, the F1 value is significantly improved.

[0078] Furthermore, in an embodiment of the present invention, after obtaining the enhanced current curve data training sample set, the enhanced current curve data training sample set and the current curve data training sample set are combined to form a model training sample set, and the fault analysis network model is pre-trained using the model training sample set.

[0079] The embodiment of the present invention combines the enhanced current curve data training sample set and the current curve data training sample set that has not been enhanced to form a model training sample set, so as to realize pre-training of the fault analysis network model. While fully taking into account the local characteristics of the samples, the characteristics of the cause data set are not lost, the efficiency of model training is effectively improved, and the robustness and prediction accuracy of the model are improved.

[0080] Based on the content of the above embodiments, as an optional embodiment, after pre-training the fault analysis network model, it also includes: verifying the pre-trained fault analysis network model using a current curve data verification set; the current curve data verification set is obtained after stratified sampling of the current curve data sample set.

[0081] Figure 4 FIG. 1 is a schematic diagram of a data processing flow in a turnout machine fault diagnosis process provided by an embodiment of the present invention. Figure 4 As shown, in the embodiment of the present invention, firstly, multiple normal current curve data and multiple fault current curve data (i.e., abnormal current curve data) are retrieved from the turnout current normal working condition database and the turnout current abnormal working condition database, respectively. Then, all current curve data are preprocessed, including sampling them by interpolation downsampling or upsampling with a preset length L, and padding to the preset length L, so as to construct a current curve data sample set.

[0082] Furthermore, based on inter-layer sampling, the current curve data sample set is inter-layer sampled to obtain a current curve data training sample set and a current curve data verification set. In the layer sampling process, it is necessary to maintain the consistency of the proportion of fault samples in the training set and the test set. This method ensures the consistency of the distribution of the two, thereby ensuring that the model can accurately obtain the law of sample distribution. Among them, the ratio of the current curve data training sample set to the current curve data verification set can be set to 4 to 1.

[0083] Furthermore, all samples in the current curve data training sample set are enhanced in time series data, including:

[0084] Given a sliding window size and a sliding step size, each sample is subjected to sliding window sampling to construct a local sample set.

[0085] Furthermore, the local sample set after timing enhancement and the current curve data training sample set without timing enhancement are used to pre-train the pre-built fault analysis network model. The fault analysis network model after each training is iteratively verified using the current curve data verification set without timing enhancement, and the model parameters are iteratively selected and set according to the verification results.

[0086] The turnout machine fault diagnosis method provided by the embodiment of the present invention maintains the consistency of the fault sample label ratio in the training set and the test set during the stratified sampling process, ensures the consistency of the distribution of the two, and thus ensures that the fault analysis network model can accurately obtain the law of sample distribution, thereby improving the prediction accuracy of the model.

[0087] Based on the contents of the above embodiments, as an optional embodiment, the structure of the fault analysis network model specifically includes: a total input layer (Inputs), a first one-dimensional residual block (Conv1D Residual Block), a maximum pooling layer (MaxPooling 1D), a one-dimensional Spatial Dropout layer, a second one-dimensional residual block (Conv1D ResidualBlock), a global average pooling layer (Global Averaging Pooling 1D), a Softmax function layer and a total output layer (Outputs) connected in sequence; the structures of the first one-dimensional residual block and the second one-dimensional residual block are the same.

[0088] Furthermore, the structures of the first one-dimensional residual block and the second one-dimensional residual block specifically include: an inter-layer input layer, a first one-dimensional Layer Normailzation layer, a second one-dimensional Layer Normailzation layer, a third one-dimensional Layer Normailzation layer, an Add Layer Normailzation layer and an inter-layer output layer connected in sequence.

[0089] Figure 5 is a structural diagram of a fault analysis network model provided by an embodiment of the present invention, such as Figure 5 As shown in FIG. 1 , the network structure of the fault analysis network model is mainly composed of a cascade of Conv-1D residual modules, and its overall framework is as follows: Figure 5 As shown on the right, the residual block (Conv1D Residual Block) structure is Figure 5 The module on the left is shown.

[0090] Assume that the preset length is L, and use L to interpolate or truncate all current curve samples. For the pre-created fault analysis network model, the batch gradient descent algorithm (BGD) is used for training, and the input of the fault analysis network model can be expressed as (BatchSize, L, 3). In this representation, BatchSize represents the number of samples sent in this batch, and common values ​​are 64 or 128; L is the curve length; the value 3 represents the dimension of the curve, which is 3-dimensional because it is a 3-phase current curve.

[0091] For the first one-dimensional residual block (Con1D Residual Block), the input is (BatchSize, L, 3). Due to the use of the residual structure and the same padding strategy, the total output size of the module is still (BatchSize, L, 3).

[0092] Furthermore, after the samples of (BatchSize, L, 3) are input into the maximum pooling layer (MaxPooling1D), if the strides of MaxPooling1D is set to 1 and the pool_size is set to 2, the output size is (BatchSize, L / / 2, 3), where L / / 2 represents the quotient of L divided by pool_size.

[0093] Furthermore, after the sample of (BatchSize, L / / 2, 3) passes through the one-dimensional Spatial Dropout module, some feature dimensions are set to 0. For example, for a certain sample, all values ​​of phase A in the three-phase current are set to 0, and only the values ​​of phases B and C are retained. The purpose of this one-dimensional Spatial Dropout module is to reduce the information redundancy of current signals of different phases. The latitude of the output is the same as the latitude of the input, and the output size after passing through this module is still (BatchSize, L / / 2, 3).

[0094] Furthermore, for the global average pooling layer (Global Averaging Pooling 1D), the module input size is (BatchSize, L / / 2, 3) and the output size is (BatchSize, 1, 3). The module averages the features in the time dimension to obtain the final representation of the sample.

[0095] Furthermore, for the Softmax module, the module input size is (BatchSize, 1, 3) and the output size is (BatchSize, 1, K), where K refers to the number of fault categories of the current fault diagnosis task. This module maps each sample in the Batch to a certain category label to achieve the purpose of classification.

[0096] The turnout machine fault diagnosis method provided in the embodiment of the present invention designs a deep convolutional neural network with a residual structure for the fault diagnosis task, and diagnoses the fault of the turnout machine. It does not require manual feature extraction, and can extract the deep features of the data. It has good adaptability to time series tasks and can deeply extract the intrinsic features of the time series, effectively improving the accuracy of fault diagnosis.

[0097] Figure 6 A schematic diagram of a fault diagnosis system for a turnout machine provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, it mainly includes a data acquisition unit 1, a data preprocessing unit 2 and a data analysis unit 3, wherein:

[0098] The data acquisition unit is mainly used to obtain the current curve of the turnout machine;

[0099] The data preprocessing unit is mainly used to sample the current curve based on a preset length to obtain current curve data;

[0100] The data analysis unit is mainly used to input the current curve data into the fault analysis network model, so as to obtain the fault diagnosis result corresponding to the current curve according to the output result of the fault analysis network model;

[0101] Wherein, the fault analysis network model is a deep convolutional neural network with a residual structure.

[0102] Specifically, when the operating state of the target turnout machine or the fault of the target turnout machine needs to be diagnosed, it is only necessary to retrieve the time-series current curve of the target turnout machine in the target time period and pre-process the time-series current curve, including sampling with a preset length. Then, the current curve data obtained after pre-processing is input into the pre-trained fault analysis network model to diagnose the fault.

[0103] Among them, since the technical solution of the present application is to use a deep convolutional neural network with a residual structure as a fault analysis network model to analyze the input current curve data and obtain a fault diagnosis result corresponding to the input current curve data, the length of the input current curve data is required to be the same to improve the prediction accuracy of the model.

[0104] The turnout machine fault diagnosis system provided in the embodiment of the present invention, by constructing a deep convolutional neural network with a residual structure, obtains the fault cause corresponding to the fault category with the highest probability, and can better extract the interactive information between different phases of the current curve. Moreover, thanks to the residual structure and hierarchical normalization, the network structure can be as deep as possible, so as to better learn the difference information between normal and faulty samples and improve the prediction accuracy.

[0105] It should be noted that the turnout machine fault diagnosis system provided in the embodiment of the present invention can be implemented based on the turnout machine fault diagnosis method described in any of the above embodiments during specific execution, which will not be elaborated in this embodiment.

[0106] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 440, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the fault diagnosis method of the turnout machine, which mainly includes: obtaining the current curve of the turnout machine; sampling the current curve based on a preset length to obtain current curve data; inputting the current curve data into the fault analysis network model to obtain the fault diagnosis result corresponding to the current curve according to the output result of the fault analysis network model; wherein the fault analysis network model is a deep convolutional neural network with a residual structure.

[0107] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0108] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0109] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the turnout machine fault diagnosis method provided by the above-mentioned method embodiments, which mainly includes: obtaining the current curve of the turnout machine; sampling the current curve based on a preset length to obtain current curve data; inputting the current curve data into a fault analysis network model to obtain a fault diagnosis result corresponding to the current curve according to the output result of the fault analysis network model; wherein the fault analysis network model is a deep convolutional neural network with a residual structure.

[0110] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for diagnosing a fault of a turnout machine provided in the above embodiments, which mainly includes: obtaining a current curve of the turnout machine; sampling the current curve based on a preset length to obtain current curve data; inputting the current curve data into a fault analysis network model to obtain a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model; wherein the fault analysis network model is a deep convolutional neural network with a residual structure.

[0111] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for diagnosing faults of a turnout machine, characterized in that: include: Obtain the current curve of the turnout machine; Sampling the current curve based on a preset length to obtain current curve data; Inputting the current curve data into a fault analysis network model to obtain a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model; Wherein, the fault analysis network model is a deep convolutional neural network with a residual structure; Before inputting the current curve data into the fault analysis network model, the method further includes: Acquire normal current curve samples and abnormal current curve samples to construct a current curve sample set; sample each sample in the current curve sample set to acquire a current curve data sample set; perform stratified sampling on the current curve data sample set to acquire a current curve data training sample set; enhance the current curve data training sample set based on a sliding window method to acquire an enhanced current curve data training sample set; combine the enhanced current curve data training sample set and the current curve data training sample set to form a model training sample set; pre-train the fault analysis network model using the model training sample set and the diagnostic labels corresponding to each sample in the model training sample set; The step of performing enhancement processing on the current curve data training sample set based on the sliding window method to obtain an enhanced current curve data training sample set includes: Determine the size of the sliding window and the sliding step length; based on the size of the sliding window and the sliding step length, sample any current curve data in the current curve data training sample set to obtain multiple enhanced samples to construct a local sample set; the length of each enhanced sample in the local sample set is the size of the sliding window; after padding each enhanced sample with 0 until the length of the enhanced sample is the preset length, obtain the enhanced current curve data training sample set; The structure of the fault analysis network model specifically includes: A total input layer, a first one-dimensional residual block, a maximum pooling layer, a one-dimensional Spatial Dropout layer, a second one-dimensional residual block, a global average pooling layer, a Softmax function layer and a total output layer connected in sequence; the first one-dimensional residual block and the second one-dimensional residual block have the same structure; The structures of the first one-dimensional residual block and the second one-dimensional residual block specifically include: The inter-layer input layer, the first one-dimensional Layer Normailzation layer, the second one-dimensional Layer Normailzation layer, the third one-dimensional Layer Normailzation layer, the Add Layer Normailzation layer and the inter-layer output layer are connected in sequence.

2. The turnout machine fault diagnosis method according to claim 1, characterized in that: The sampling of the current curve based on the preset length to obtain current curve data includes: When the length of the current curve is greater than the preset length, downsampling the current curve to obtain the current curve data; When the length of the current curve is less than the preset length, upsampling and interpolation are performed on the current curve to obtain the current curve data.

3. The method for diagnosing faults of a turnout machine according to claim 1, characterized in that: After pre-training the fault analysis network model, the method further includes: Using a current curve data validation set to validate the pre-trained fault analysis network model; The current curve data verification set is obtained by performing stratified sampling on the current curve data sample set.

4. A turnout machine fault diagnosis system, characterized in that: include: A data acquisition unit, used for acquiring a current curve of a turnout machine; A data preprocessing unit, used for sampling the current curve based on a preset length to obtain current curve data; A data analysis unit, used for inputting the current curve data into a fault analysis network model, so as to obtain a fault diagnosis result corresponding to the current curve according to an output result of the fault analysis network model; Wherein, the fault analysis network model is a deep convolutional neural network with a residual structure; Before inputting the current curve data into the fault analysis network model, the method further includes: Acquire normal current curve samples and abnormal current curve samples to construct a current curve sample set; sample each sample in the current curve sample set to acquire a current curve data sample set; perform stratified sampling on the current curve data sample set to acquire a current curve data training sample set; enhance the current curve data training sample set based on a sliding window method to acquire an enhanced current curve data training sample set; combine the enhanced current curve data training sample set and the current curve data training sample set to form a model training sample set; pre-train the fault analysis network model using the model training sample set and the diagnostic labels corresponding to each sample in the model training sample set; The step of performing enhancement processing on the current curve data training sample set based on the sliding window method to obtain an enhanced current curve data training sample set includes: Determine the size of the sliding window and the sliding step length; based on the size of the sliding window and the sliding step length, sample any current curve data in the current curve data training sample set to obtain multiple enhanced samples to construct a local sample set; the length of each enhanced sample in the local sample set is the size of the sliding window; after padding each enhanced sample with 0 until the length of the enhanced sample is the preset length, obtain the enhanced current curve data training sample set; The structure of the fault analysis network model specifically includes: A total input layer, a first one-dimensional residual block, a maximum pooling layer, a one-dimensional Spatial Dropout layer, a second one-dimensional residual block, a global average pooling layer, a Softmax function layer and a total output layer connected in sequence; the first one-dimensional residual block and the second one-dimensional residual block have the same structure; The structures of the first one-dimensional residual block and the second one-dimensional residual block specifically include: The inter-layer input layer, the first one-dimensional Layer Normailzation layer, the second one-dimensional Layer Normailzation layer, the third one-dimensional Layer Normailzation layer, the Add Layer Normailzation layer and the inter-layer output layer are connected in sequence.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the turnout machine fault diagnosis method as claimed in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the turnout machine fault diagnosis method as claimed in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Track switch fault diagnosis method and system based on support vector machine

    CN105787511A

  • Method for diagnosing switch faults based on deep learning model

    CN106709567A

  • Rail plug pin fault detection method and system based on image alignment and detection network model

    CN107292870A

  • Rolling bearing fault diagnosis method based on time-window-slide restricted Boltzmann machine

    CN107451760A

  • Method, device and system for detecting abnormal data of turnout notch monitoring equipment

    CN109711480A