Subway platform door fault prediction method based on multi-scale TCN-GRU
By combining the multi-scale TCN-GRU model with Bayesian hyperparameter optimization, the problems of single feature scale and poor noise robustness in subway platform door fault prediction are solved, realizing efficient fault early warning and intelligent operation and maintenance, and improving the safety and efficiency of subway operation.
Patent Information
- Application Number
- CN202611674630.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for predicting subway platform door failures suffer from problems such as limited temporal feature scale, poor noise robustness, reliance on manual tuning of hyperparameters, and insufficient engineering applicability, making it difficult to meet the intelligent operation and maintenance needs under high-density operation.
A multi-scale TCN-GRU model is adopted, which extracts short-term, medium-term, and long-term features through a three-branch parallel multi-scale temporal convolutional network. It combines the SE channel attention mechanism to weight key fault features and achieves automatic parameter tuning through Bayesian hyperparameter optimization. It integrates dual-task output heads to predict fault type and risk probability.
It enables early and accurate prediction of subway platform door malfunctions, significantly improving the lead time and prediction accuracy, reducing operation and maintenance costs, improving operation and maintenance efficiency and safety, and has engineering adaptability.
Smart Images

Figure CN123179247A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent operation and maintenance technology for urban rail transit, and in particular to a method for predicting subway platform door failures based on multi-scale TCN-GRU. Background Technology
[0002] Platform Screen Doors (PSDs) are core safety devices in urban rail transit systems that isolate the platform from the track area, prevent passenger safety risks, reduce environmental control energy consumption, and maintain operational order. Their core components include brushless DC drive motors, self-holding electromagnetic locks, transmission screws, and door mechanisms. Under high-density operation, these doors operate at high frequencies for extended periods, with a single door experiencing thousands of actions per day. They are continuously subjected to mechanical wear, electromagnetic aging, and environmental loads, making them prone to various progressive or sudden failures such as inter-turn short circuits in the motor, rotor demagnetization, bearing pitting, door mechanical jamming, and electromagnetic lock magnetic attenuation.
[0003] The current operation and maintenance model for platform screen doors still relies primarily on periodic manual inspections and post-incident repairs. This results in issues such as delayed fault warnings, unclear root cause identification, and insufficient quantification of health assessments, making it difficult to meet the intelligent operation and maintenance needs of subway systems operating at high density and with high reliability. With the development of sensor acquisition and artificial intelligence technologies, time-series fault prediction methods based on deep learning are gradually being applied to the operation and maintenance of rail transit equipment. However, existing technologies still have the following significant shortcomings in practical engineering implementation: First, the time-series feature scale is singular, resulting in insufficient long-term dependency modeling capabilities. Traditional LSTM, GRU, and single-scale TCN models can only extract time-series features at a single time scale, failing to simultaneously cover multi-scale fault evolution patterns, including second-level instantaneous anomalies, minute-level periodic fluctuations, and hour-level performance degradation. For slowly developing progressive faults such as inter-turn short circuits and magnetic attenuation in motors, single-scale models have weak capture capabilities, leading to insufficient early warning and difficulty in supporting preventive maintenance.
[0004] Second, the key features have low identification accuracy, resulting in poor noise robustness under field conditions. The field sensor data for platform screen doors is high-dimensional and contains various noise sources such as electromagnetic interference, passenger crowding, and environmental vibration. Existing models lack an adaptive focusing mechanism for core fault features such as motor current and lock response time. Noise features easily interfere with model judgment, leading to low feature utilization. Under complex field conditions, prediction accuracy decreases significantly, and the false alarm and false negative rates are high.
[0005] Third, hyperparameters rely heavily on manual tuning, resulting in weak cross-scenario generalization ability. Existing fault prediction models often rely on manual experience to adjust hyperparameters such as the number of network layers, kernel size, and learning rate. Methods like grid search and random search are inefficient for finding optimal performance and struggle to achieve global optimization across platform door data from different lines, models, and operating conditions. When deployed to new lines or equipment, the model adaptation cycle is long, and its insufficient generalization performance hinders large-scale deployment.
[0006] Fourth, the algorithms are disconnected from the physical mechanisms, resulting in insufficient engineering applicability. Most pure algorithm models do not incorporate the physical mechanisms of platform screen door failures, leading to poor interpretability of prediction results and making it difficult for maintenance personnel to understand the root causes of failures. Furthermore, the models have not been engineered to adapt to subway site data acquisition protocols, microservice architectures, and real-time inference performance, making it difficult to directly integrate them into existing intelligent operation and maintenance systems for practical application. Summary of the Invention
[0007] To address the above technical problems, this invention provides a method for predicting subway platform door failures based on multi-scale TCN-GRU, comprising the following steps: Step S1: Collect multi-source time-series operation data of the core components of the subway platform door. The multi-source time-series operation data includes motor analog quantities, lock time quantities, status quantities and fault quantities. Step S2: Perform outlier removal, sample balancing, standardization coding, and anomaly detection preprocessing on the multi-source time series data to obtain standard time series features; Step S3: Construct a three-branch parallel multi-scale temporal convolutional network. The three branches are a short-time feature branch, a medium-time feature branch, and a long-time feature branch. The three branches adopt a dilation rate sequence that increases progressively from small to large. Each branch is composed of stacked causal dilated convolutional layers. The three branches cover fault features at different time scales through different dilation rate sequences. The standard temporal features are input into the three-branch parallel multi-scale temporal convolutional network for processing. Short-time features, medium-time features, and long-time features are extracted and concatenated to obtain multi-scale fused features covering multi-scale temporal dependencies. Step S4: Input the multi-scale fusion features into the SE channel attention module, and dynamically allocate feature channel weights through squeezing, excitation and recalibration operations to weight and enhance key fault features to obtain key fault focused features; key fault features include motor current, unlocking time and current standard deviation; Step S5: Input the key fault focus features into the gated loop unit module to enhance the modeling of time series evolution relationship. After Bayesian hyperparameter optimization, output the fault type, fault risk probability and early warning advance through the dual task output head.
[0008] The technical solution further defined in this invention is: Furthermore, in step S1, the core components include a brushless DC motor and a self-holding electromagnetic lock. The operating parameters of the transmission mechanism and the door are collected synchronously, totaling 66 dimensions of operating parameters. The sampling interval is 200ms, and a single door opening and closing process corresponds to 120 time steps, forming a time series sample with dimensions [120, 66]. Data transmission is based on the MQTT protocol for time stamp synchronization between the edge gateway and the cloud platform. Data storage uses the InfluxDB time series database and adopts a hot and cold data tiering strategy for storage.
[0009] As described above, the subway platform door fault prediction method based on multi-scale TCN-GRU includes the following steps in step S1: The motor simulation parameters are 32-dimensional, including the instantaneous three-phase current of the left and right door motors, bus voltage, motor speed, output torque, peak current, standard deviation of current, and current rise slope, used to reflect the health status of the brushless DC motor; the locking time parameters are 12-dimensional, including the electromagnetic lock unlocking response time, locking response time, holding engagement time, peak unlocking current, and peak locking current, used to reflect the magnetic attenuation and mechanical jamming of the self-holding electromagnetic lock; the state parameters are 18-dimensional, including the door opening / closing command state, limit switch trigger state, real-time door position, door running speed, and obstacle detection state, used to characterize the door's operating conditions and external interference; and the fault parameters are 4-dimensional labeled data, including historical fault type labels, fault occurrence timestamps, fault levels, and fault locations, used for model supervised training.
[0010] As described above, in the subway platform door fault prediction method based on multi-scale TCN-GRU, in step S2, the Tukey box line method is used to remove abnormal data in each feature dimension. Since there are more samples of normal operation of platform doors than samples of failure precursors, random undersampling is performed on the normal operation samples; for the failure precursor samples, the samples are expanded by combining the latent anomaly samples identified by the isolated forest; finally, the failure precursor samples and normal operation samples are matched at a ratio of 1:4. Differentiated coding methods are adopted for different types of features. Z-score standardization is used for continuous analog quantities, which include current, voltage and time quantities. One-Hot coding is used for discrete state quantities, which are converted into 0-1 sparse vectors to adapt to the input format requirements of neural networks. Discrete state quantities include switch state, limit state and fault type. The isolation forest algorithm is used to perform secondary screening on the preprocessed data. By randomly dividing the feature space to isolate outliers, unlabeled latent fault precursor samples can be identified without labeling, and these latent fault precursor samples are added to the positive samples of the training set.
[0011] As described above, in the subway platform door fault prediction method based on multi-scale TCN-GRU, in step S3, the short-time feature branch uses the dilation rate sequence [1,2,4], stacked with 3 layers of causal dilated convolution, with a kernel size of 3 and a single branch output channel number of 64; the receptive field of this branch covers 7 time steps, corresponding to a duration of 1.4 seconds; it captures second-level instantaneous abnormal features, including motor current spikes, unlocking action timeouts, and instantaneous stalls; The mid-time feature branch uses the dilation rate sequence [4,8,16], stacks 3 layers of causal dilation convolution, has a kernel size of 3, and has 64 output channels per branch; the receptive field of this branch covers 28 time steps, corresponding to a duration of 5.6 seconds; and combines continuous door opening and closing sliding window sampling to capture minute-level periodic fluctuation features, including periodic fluctuations in performance and periodic changes in load during continuous door opening and closing. The long-term feature branch uses the dilation rate sequence [16,32,64], stacked with 3 layers of causal dilated convolutions, with a kernel size of 3 and 64 output channels per branch. The receptive field of this branch covers 112 time steps, corresponding to a duration of 22.4 seconds. Combined with a periodic sliding window sampling mechanism with a sliding window step size of 200 time steps, it captures hourly progressive performance degradation features, including the development of inter-turn short circuits in the motor, the attenuation of the electromagnetic lock's magnetic force, and bearing wear. The feature vectors output by the short-term feature branch, the medium-term feature branch, and the long-term feature branch are concatenated along the channel dimension to obtain a multi-scale fusion feature with dimension [T, 192].
[0012] As described above in the subway platform door fault prediction method based on multi-scale TCN-GRU, in step S3, the formula for calculating the receptive field of dilated convolution is: ; Where k is the kernel size and L is the number of convolutional layers. Let be the inflation rate of the i-th layer; the inflation rate sequences of short-term feature branches, medium-term feature branches, and long-term feature branches are designed using this formula to cover the target time scale.
[0013] As described above, in the subway platform door fault prediction method based on multi-scale TCN-GRU, in step S4, the SE channel attention module performs a squeezing operation on the temporal features of each channel through global average pooling to obtain the global representation of the channel; it performs an activation operation through a two-layer fully connected network to learn the nonlinear dependency relationship between channels and output the weights of each channel; it performs a recalibration operation by multiplying the channel weights with the original features channel by channel to automatically increase the feature weights of motor current, unlocking time, and current standard deviation.
[0014] As described above in the subway platform door fault prediction method based on multi-scale TCN-GRU, in step S4, the squeezing operation specifically involves: processing the input features... Perform global average pooling to compress the T time-series feature values of each channel into a single global scalar representation. The calculation formula is as follows: ; Where C represents the total number of feature channels. Let be the eigenvalue of the c-th channel at time t. This represents the global feature after compression of the c-th channel. The feature vector after compression; The activation operation is as follows: The non-linear dependencies between channels are learned through a two-layer fully connected network to generate the weight coefficients for each channel; the first fully connected layer performs dimensionality reduction with a ratio of 16:1, introducing non-linearity through the ReLU activation function; the second fully connected layer performs dimensionality increase, restoring the original number of channels, and normalizing the weights to the [0,1] interval through the Sigmoid activation function; the calculation formula is: ; in, To reduce the dimensionality of fully connected weights, The weights are for increasing the dimensionality of the fully connected components, where r is the dimensionality reduction ratio. It is the ReLU activation function. It is the Sigmoid activation function. This is the output channel weight vector; The recalibration operation specifically involves multiplying the learned channel weights by the original features channel by channel, using the following formula: ; in, This represents the characteristic of channel c after recalibration.
[0015] As described above in the subway platform door fault prediction method based on multi-scale TCN-GRU, the calculation formula for the door control loop unit module in step S5 is as follows: ; in, Let be the input features at time t. This is the hidden state from the previous moment; To reset the gate and control the degree of forgetting of historical information; To update the gate, control the contribution of historical information to the current state; This is the candidate hidden state; This is the final hidden state at the current moment; This is an element-wise multiplication operation. Use the Sigmoid activation function; The number of hidden units in the gated loop unit module is set to 128, the output dimension is [T, 128], the hidden state of the last time step is taken as the global timing representation, and connected to the dual-task output head.
[0016] As described above, in the subway platform door fault prediction method based on multi-scale TCN-GRU, step S5 involves using a Bayesian optimization algorithm to globally optimize the model hyperparameters; employing the TPE sampling strategy of the Optuna framework, with the goal of minimizing the validation set weighted loss, an iterative search is performed within a preset hyperparameter space; the optimized hyperparameters and search space include the number of convolutional layers in the multi-scale temporal convolutional network, the kernel size, the dilation rate, the number of hidden GRU units, the learning rate, and the batch size; The dual-task output header includes a fault type classification header and a fault risk probability header. In the fault type classification header, four states are mapped through a fully connected layer, and a probability distribution is output after passing through a Softmax activation function. The four states are normal, inter-turn short circuit, mechanical jamming, and electromagnetic lock magnetic attenuation. The classification task uses the cross-entropy loss function. In the fault risk probability header, a one-dimensional output is mapped through a fully connected layer, and a continuous value in the range of 0 to 1 is output after passing through a Sigmoid activation function, representing the probability of the corresponding fault occurring within a future period. The regression task uses the mean squared error loss function. The total loss function is the weighted sum of the classification loss and the regression loss. An early warning is triggered when the probability of failure risk is greater than 0.7, and the early warning lead time is output, which is the time difference between the predicted time of failure and the current time.
[0017] The beneficial effects of this invention are: (1) In this invention, a three-branch parallel multi-scale TCN network is used to simultaneously capture instantaneous anomalies at the second level, periodic fluctuations at the minute level, and performance degradation characteristics at the hour level, which fully covers the entire cycle of fault evolution and solves the problem of insufficient long-term dependency modeling of single-scale models, thus greatly extending the early warning lead time. (2) In this invention, the SE channel attention mechanism is used to adaptively weight the core fault features and suppress environmental noise, which solves the problem of low utilization of high-dimensional noise data features and significantly improves the accuracy of fault prediction and the robustness of on-site noise resistance. (3) In this invention, global automatic optimization is achieved through Bayesian hyperparameter optimization, which solves the problems of low efficiency and weak generalization ability of manual parameter tuning, and improves the model's cross-condition adaptability and deployment efficiency. At the same time, the solution combines the physical fault mechanism of platform screen doors and has a complete engineering adaptation design, which can be directly integrated into the subway intelligent operation and maintenance system, support the implementation of predictive maintenance, effectively reduce operation and maintenance costs, and improve the operation safety and operation and maintenance efficiency of platform screen doors. Attached Figure Description
[0018] Figure 1This is a schematic diagram of the overall process of the present invention; Figure 2 This is an overall architecture diagram of the multi-scale TCN-GRU fault prediction model in an embodiment of the present invention; Figure 3 This is a schematic diagram of the overall process of model training and parameter optimization in an embodiment of the present invention; Figure 4 This is a visualization of the fault feature t-SNE dimensionality reduction clustering distribution in an embodiment of the present invention; Figure 5 This is a graph showing the change in model training iteration loss in an embodiment of the present invention; Figure 6 This is a ranking diagram of the contribution of key fault features (SHAP) in an embodiment of the present invention. Detailed Implementation
[0019] This embodiment provides a method for predicting subway platform door failures based on multi-scale TCN-GRU, such as... Figure 1 As shown, it includes the following steps: Step 1: Collect multi-source high-frequency time-series operation data of the core components of the subway platform door. The operation data includes motor analog quantities, lock time quantities, status quantities, and fault quantities.
[0020] The brushless DC motor and self-holding electromagnetic lock of the subway platform door are the core data acquisition objects. The operating parameters of the transmission mechanism and the door are collected synchronously, totaling 66 features. The sampling interval is set to 200ms. A single complete opening and closing process of a single door corresponds to about 120 time steps, forming a time series sample with dimensions [120, 66].
[0021] The collected operational data is divided into four main categories: Motor analog quantities: including 32-dimensional parameters such as three-phase instantaneous current of the left / right door motor, bus voltage, motor speed, output torque, peak current, standard deviation of current, and current rise slope, which are the core characteristics reflecting the health status of the motor.
[0022] Locking time parameters: These include 12 parameters such as the electromagnetic lock unlocking response time, locking response time, holding time, peak unlocking current, and peak locking current. They are key indicators reflecting the attenuation of the electromagnetic lock's magnetic force and mechanical jamming.
[0023] State variables: including 18-dimensional parameters such as door opening / closing command status, limit switch trigger status, real-time door position, door running speed, and obstacle detection status, used to characterize the door's operating conditions and external disturbances.
[0024] Fault quantity: Includes 4-dimensional labeled data such as historical fault type labels, fault occurrence timestamps, fault level, and fault location, which are used for supervised training of the model.
[0025] Data transmission is based on the MQTT protocol to achieve time stamp synchronization between the edge gateway and the cloud platform, ensuring time-series alignment of multi-source data; data storage adopts the InfluxDB time-series database, which supports high-frequency writing and fast range query, and reduces storage costs through a hot and cold data tiering strategy to meet the long-term data storage needs of massive gates across the entire network.
[0026] Step 2: Perform outlier removal, sample balancing, standardized coding, and anomaly detection preprocessing on the time series data to obtain standard time series features.
[0027] The raw collected data contains issues such as outliers, imbalanced samples, inconsistent units of measurement, and insufficient samples with latent faults. Multi-step preprocessing is required to eliminate these interferences and improve model training performance. Preprocessing specifically includes four steps: outlier removal, sample balancing, standardized coding, and anomaly detection augmentation.
[0028] (1) Outlier Removal: Tukey box plotting method is used to remove outlier data in each feature dimension. The specific calculation process is as follows: For each feature dimension, the first quartile Q1 and the third quartile Q3 are calculated, and the interquartile range IQR = Q3 - Q1 is defined. The range of values [Q1 - 1.5 × IQR, Q3 + 1.5 × IQR] is taken as the normal data range. Samples outside this range are judged as outliers and removed. This method does not assume the normality of the data distribution, is suitable for the non-Gaussian distribution of platform screen door operation data, and can effectively eliminate invalid data caused by sensor jumps and electromagnetic pulse interference.
[0029] (2) Sample balancing: There are far more normal platform gate samples than pre-fault samples. Sample imbalance can easily lead to the model biasing towards the majority class and low fault recognition rate. This embodiment adopts a balancing strategy combining "undersampling and oversampling": random undersampling is performed on the normal samples with an excessively high proportion to retain the core distribution features; the pre-fault samples with a small proportion are expanded by combining the latent abnormal samples identified by the isolated forest. Finally, the pre-fault samples and normal samples are matched at a ratio of 1:4, which improves the model's sensitivity to early faults while avoiding overfitting.
[0030] (3) Data standardization and coding: Different coding methods are adopted for different types of characteristics: Z-score standardization is adopted for continuous analog quantities such as current, voltage, and time. The calculation formula is as follows: ; Where x is the original feature value, This is the mean of the feature on the training set. This represents the standard deviation of the feature on the training set. Standardized data has a mean of 0 and a variance of 1, eliminating dimensional differences between different features and improving the convergence speed and stability of the neural network training. Discrete state variables such as switch states, limit states, and fault types are encoded using One-Hot encoding, converting them into 0-1 sparse vectors to adapt to the neural network input format requirements.
[0031] (4) Anomaly detection expansion: The Isolation Forest algorithm is used to perform secondary screening on the preprocessed data. The Isolation Forest isolates anomalies by randomly dividing the feature space, and can identify unlabeled latent fault precursor samples without labeling. These samples are then added to the positive samples in the training set to further enrich the feature distribution in the early stage of fault evolution and improve the model's ability to capture weak early faults.
[0032] Step 3: Input the standard time series features into a three-branch parallel multi-scale TCN network for processing, extract short-time, medium-time and long-time time series features respectively, and splice and fuse them to obtain fused features covering multi-scale time series dependencies.
[0033] Construct a three-branch parallel multi-scale TCN (Temporal Convolutional Network), the structure of which is as follows: Figure 2 As shown, each branch consists of stacked causal dilated convolutional layers. The causal convolution ensures that the output at the current time depends only on the data at the historical time, strictly conforming to the causal constraints of time series prediction. The dilated convolution expands the receptive field by interval sampling, capturing long-range temporal dependencies without increasing the number of convolutional kernel parameters.
[0034] The three branches employ an expansion rate sequence that increases progressively from small to large, each covering fault characteristics at different time scales, as detailed below: (1) Short-term feature branch: The dilation rate sequence [1,2,4] is used to stack 3 layers of causal dilation convolution with a kernel size of 3 and a single branch output channel number of 64. The receptive field of this branch covers 7 time steps, corresponding to a duration of 1.4 seconds, and focuses on capturing instantaneous abnormal features at the second level, such as sudden fault signs such as motor current spikes, unlocking action timeouts, and instantaneous stall.
[0035] (2) Mid-time feature branch: The dilation rate sequence [4,8,16] is used, and 3 layers of causal dilation convolution are stacked. The kernel size is 3, and the number of output channels in a single branch is 64. The receptive field of this branch covers 28 time steps, corresponding to a duration of 5.6 seconds. Combined with continuous door opening and closing sliding window sampling, it can capture minute-level periodic fluctuation features, such as the periodic fluctuation of performance and the periodic change of load during continuous door opening and closing, which are progressive fault mid-term manifestations.
[0036] (3) Long-term feature branch: The dilation rate sequence [16,32,64] is used, and 3 layers of causal dilation convolution are stacked. The kernel size is 3, and the number of output channels in a single branch is 64. The receptive field of this branch covers 112 time steps, corresponding to a duration of 22.4 seconds. Combined with the large-cycle sliding window sampling mechanism with a sliding window step size of 200 time steps (corresponding to 40 seconds), it can capture the gradual performance degradation features at the hourly or even dayly level, such as the development of short circuits between motor turns, the attenuation of electromagnetic lock magnetic force, and the slow deterioration trend of bearing wear.
[0037] The feature vectors output from the three branches are concatenated along the channel dimension to obtain a multi-scale fusion feature with dimensions [T, 192], achieving comprehensive coverage of time-series dependencies in short, medium, and long time periods, and fully depicting the entire cycle evolution of faults from inception to development to outbreak.
[0038] Furthermore, the formula for calculating the receptive field of dilated convolution is: ; Where k is the kernel size and L is the number of convolutional layers. Let be the expansion rate of the i-th layer. This formula allows for the precise design of the expansion rate sequence for each branch, ensuring coverage of the target time scale.
[0039] Step 4: Input the multi-scale fused features into the SE (Squeeze-and-Excitation) channel attention module, dynamically allocate feature channel weights through squeezing-excitation-recalibration operations, and weighted enhance the key fault features to obtain key fault focused features.
[0040] Multi-scale fused features are input into the SE channel attention module. Through a three-step operation of squeezing-excitation-recalibration, the module adaptively learns the importance weights of each feature channel, focusing on key fault features and suppressing noise channels. The principle is as follows: Figure 2 As shown.
[0041] The specific process is as follows: (1) Squeeze operation: for input features Perform global average pooling; where T is the total number of time steps in the temporal dimension, and C is the total number of feature channels. Compress the T temporal feature values of each channel into a global scalar representation to achieve information aggregation in the temporal dimension.
[0042] The calculation formula is: ; in, Let be the eigenvalue of the c-th channel at time t. This represents the global feature after compression of the c-th channel. This is the feature vector after compression.
[0043] (2) Excitation operation: The nonlinear dependencies between channels are learned through two fully connected layers to generate the weight coefficients of each channel. The first fully connected layer performs a dimensionality reduction operation with a dimensionality reduction ratio of 16:1 and introduces nonlinearity through the ReLU activation function; the second fully connected layer performs a dimensionality increase operation to restore the original number of channels and normalizes the weights to the [0,1] interval through the Sigmoid activation function.
[0044] The calculation formula is: ; in, To reduce the dimensionality of fully connected weights, To increase the dimensionality of the fully connected weights, r is the dimensionality reduction ratio, and in this embodiment r=16; It is the ReLU activation function. Use the Sigmoid activation function; This is the output channel weight vector.
[0045] (3) Reweighting operation: The learned channel weights are multiplied with the original features channel by channel to achieve weighted enhancement of key features and suppression of noise features; the calculation formula is: ; in, This represents the characteristic of channel c after recalibration.
[0046] After processing by this module, the weights of feature channels strongly correlated with faults, such as motor current, unlocking time, and current standard deviation, are automatically increased. The weight distribution is highly consistent with the physical fault mechanism of the platform screen door, which not only improves the prediction accuracy but also enhances the interpretability of the model, making it easier for maintenance personnel to understand the root cause of the fault.
[0047] Step 5: Input the key fault focus features into the GRU (Gated Recurrent Unit) memory module to enhance long-term time-series dependency modeling. After Bayesian hyperparameter optimization, the dual-task outputs fault type, fault risk probability, and early warning lead time.
[0048] The attention-enhanced features are input into the GRU module to further capture long-term evolutionary dependencies. GRU is an improved structure of recurrent neural networks, controlling the retention and forgetting of historical information through update and reset gates. Compared to LSTM, it has fewer parameters and faster training speed, making it more suitable for deployment scenarios at the edge of subway systems. The internal structure of a GRU unit is as follows: Figure 2 As shown.
[0049] The core calculation formula for GRU is: ; in, Let be the input features at time t. This is the hidden state from the previous moment; To reset the gate and control the degree of forgetting of historical information; To update the gate, control the contribution of historical information to the current state; This is the candidate hidden state; This is the final hidden state at the current moment; This is an element-wise multiplication operation. This is the Sigmoid activation function.
[0050] In this embodiment, the number of GRU hidden units is set to 128, the output dimension is [T, 128], the hidden state of the last time step is taken as the global timing representation, and connected to the dual-task output head.
[0051] This embodiment employs a Bayesian optimization algorithm to globally optimize the model's hyperparameters, addressing the issues of low efficiency and susceptibility to local optima in manual hyperparameter tuning. Specifically, it utilizes the Optuna framework's TPE (Tree-structured ParzenEstimator) sampling strategy, with the optimization objective of minimizing the validation set weighted loss, and performs iterative searches within a predefined hyperparameter space.
[0052] The optimized hyperparameters and search space include: Number of TCN convolutional layers: 2~4 layers; Kernel size: 3, 5, 7; Base expansion rates for each branch: 1 / 2 / 4, 2 / 4 / 8, 4 / 8 / 16; GRU hidden cell count: 64, 128, 256; Initial learning rate: 1e-4~1e-2 (log space); Batch size: 16, 32, 64.
[0053] Compared to grid search and random search, Bayesian optimization uses historical evaluation results to guide the next sampling, improving hyperparameter tuning efficiency by more than 50%. It can quickly find the optimal combination of hyperparameters that fits the current dataset, significantly improving the model's generalization ability.
[0054] The model employs a dual-task output head, namely a fault type classification head and a fault risk probability head, to simultaneously achieve fault classification and risk probability regression.
[0055] Fault type classification head: Mapped into 4 states through a fully connected layer, and output probability distribution through Softmax activation function. The four states are: normal, motor inter-turn short circuit, mechanical jamming, and electromagnetic lock magnetic force attenuation; the classification task uses cross-entropy loss function.
[0056] Fault risk probability header: Mapped to a 1-dimensional output through a fully connected layer, and output as a continuous value in the range of 0 to 1 after passing through the Sigmoid activation function, representing the risk probability of the corresponding fault occurring in the future; the regression task uses the mean squared error loss function.
[0057] The total loss function is a weighted sum of the classification loss and the regression loss, and the formula is: ; in, For cross-entropy loss, For mean square error loss, , As the weighting coefficient, in this embodiment .
[0058] The early warning mechanism is set to trigger an early warning when the probability of a fault risk is greater than 0.7, and simultaneously outputs the early warning lead time, which is the time difference between the predicted fault occurrence time and the current time, supporting maintenance personnel to arrange spare parts and maintenance plans in advance. The average early warning lead time of this invention is ≥55 minutes, which can fully meet the maintenance needs during subway operation windows.
[0059] Depend on Figure 1 As shown in the flowchart, the method in this embodiment achieves early and accurate prediction of subway platform screen door failures through an end-to-end process of multi-source high-frequency data acquisition, standardized preprocessing, multi-scale feature extraction, attention feature enhancement, GRU modeling, and Bayesian optimization. This solution simultaneously covers multi-scale failure evolution patterns from seconds to hours, automatically focuses on key failure features, and globally optimizes model hyperparameters, effectively improving failure prediction accuracy and early warning lead time, supporting intelligent predictive maintenance of subway platform screen doors.
[0060] As an optional implementation method, to adapt to the engineering implementation requirements of subway sites, this embodiment also includes engineering adaptation design, as detailed below: (1) Multi-protocol data access adaptation: The data acquisition layer is compatible with mainstream industrial protocols such as Modbus-TCP, MQTT, and OPCUA, and can directly connect to the existing DCU (Door Control Unit) acquisition system of the platform door without the need to install additional hardware sensors, thus reducing the cost and difficulty of on-site modification.
[0061] (2) Lightweight inference optimization: The trained model is exported in TensorFlow SavedModel format and combined with INT8 quantization compression technology to reduce the model size and computational load; when deploying, Redis is introduced to cache the features and prediction results of high-frequency doors to avoid repeated calculations and achieve a single door prediction response time of <1s, which meets the performance requirements of real-time early warning for hundreds of doors in the entire network.
[0062] (3) Microservice architecture encapsulation: The prediction service is encapsulated based on the Dubbo+Nacos microservice architecture, providing standardized RESTful API interfaces, supporting service registration and discovery, load balancing and elastic scaling, and can be seamlessly connected to the existing intelligent operation and maintenance platform of the subway and integrated into the existing operation and maintenance process.
[0063] (4) Operation and maintenance visualization output: The output results include fault type, risk probability, early warning lead time, root cause feature contribution ranking, and supporting visualization components such as health trend curve and fault distribution heat map to support operation and maintenance personnel in accurate work assignment, spare parts scheduling and maintenance decision making.
[0064] The overall training and reasoning process is as follows: Figure 3 As shown, it includes a complete chain of data preprocessing, multi-scale TCN feature extraction, attention enhancement, GRU modeling, loss calculation and parameter optimization, online inference and early warning output.
[0065] To verify the effectiveness of the method in this embodiment, experimental verification was conducted using real operational data from 30 platform screen doors of a station on Metro Line 2 in a certain city for six consecutive months. The total data volume was 1.579 million records, including three types of faults: inter-turn short circuit of motor, mechanical jamming, and electromagnetic lock magnetic force attenuation. A total of 1247 fault precursor samples were labeled. The dataset was randomly divided into training set, validation set, and test set in a 7:2:1 ratio.
[0066] To verify the separability of the multi-scale fused features in this model, t-SNE dimensionality reduction and clustering were performed on the high-dimensional temporal features for visualization. The results are as follows: Figure 4 As shown, the cluster boundaries of samples in different operating states are clear, proving that the multi-scale fault features extracted by the method in this embodiment have high discriminative power.
[0067] Three mainstream time-series fault prediction models—LSTM, GRU, and native single-scale TCN—were selected for comparison. Evaluation metrics included: F1-score: A comprehensive measure of the precision and recall of fault classification; a higher value indicates better classification performance. RMSE (Root Mean Square Error): Measures the error in the regression of failure risk probability; the lower the value, the higher the regression accuracy. Average warning lead time: The average time from the triggering of a warning to the actual occurrence of a fault. The larger the value, the earlier the warning.
[0068] The experimental results are shown in Table 1: Table 1
[0069] The curves showing the convergence of training and validation set losses with iteration rounds during model training are as follows: Figure 5As shown, the model training converges stably with no obvious overfitting or underfitting. Experimental results show that the method proposed in this embodiment significantly outperforms traditional models in classification accuracy, regression accuracy, and early warning lead time: the core fault F1-score is improved by 8.1 percentage points compared to LSTM, the fault misclassification rate is reduced by 79.1%, and the average early warning lead time is improved by more than 57%, fully meeting the requirements of subway on-site engineering applications. The contribution of each input feature to the fault prediction results is ranked as follows: Figure 6 As shown, motor current, unlocking and locking time, and current standard deviation are the core fault-sensitive features, which are highly consistent with the physical mechanism of platform door failure, verifying the rationality and interpretability of the model's feature focus.
[0070] In summary, the subway platform door fault prediction method proposed in this embodiment, through multi-scale TCN-GRU fusion, channel attention key feature enhancement, and Bayesian hyperparameter global optimization, effectively solves the problems of single feature scale, delayed early warning, low accuracy, and insufficient generalization in existing technologies. At the same time, it has complete engineering adaptability and can be directly integrated into the subway intelligent operation and maintenance system to help operating units establish predictive maintenance mechanisms, reduce downtime risks and operation and maintenance costs, and improve the safety and efficiency of platform door operation.
[0071] In this embodiment, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the aforementioned method for predicting subway platform door failures based on multi-scale TCN-GRU.
[0072] Specifically, the computer equipment can be an edge gateway, industrial server, cloud server, or similar computing device, deployed at the subway site or operation and maintenance center.
[0073] In this embodiment, a computer-readable storage medium is also provided, which stores a computer program that executes the aforementioned method for predicting subway platform door failures based on multi-scale TCN-GRU.
[0074] Specifically, computer-readable storage media include both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media do not include transient computer-readable media, such as modulated data signals and carrier waves.
[0075] Based on the same inventive concept, this invention also provides a subway platform door fault prediction device based on a multi-scale TCN-GRU. Since the principle by which this device solves the problem is similar to the aforementioned method, repeated details will not be elaborated further. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0076] The subway platform door fault prediction device based on multi-scale TCN-GRU includes: The data acquisition module is used to collect multi-source high-frequency time-series operating data of the core components of the subway platform door. The operating data includes motor analog quantities, lock time quantities, status quantities and fault quantities. The data preprocessing module is used to perform outlier removal, sample balancing, standardization coding, and anomaly detection preprocessing on time-series running data to obtain standard time-series features; The multi-scale feature extraction module is used to extract and fuse short-time, medium-time, and long-time multi-scale temporal features through a three-branch parallel multi-scale TCN network. The feature enhancement module is used to weight and focus multi-scale fused features through the SE channel attention module to obtain key fault-focused features; The fault prediction module is used to model long-term time-series dependencies through the GRU memory module. After Bayesian hyperparameter optimization, it outputs fault type, fault risk probability and early warning lead time in two tasks.
[0077] In one embodiment, the data acquisition module is specifically used to: acquire 66-dimensional operating parameters with a brushless DC motor and a self-holding electromagnetic lock as the core, with a sampling interval of 200ms, synchronously acquire based on the MQTT protocol, and store in layers through InfluxDB.
[0078] In one embodiment, the data preprocessing module is specifically used to: remove outliers using Tukey box-line method; balance fault precursor samples and normal samples at a ratio of 1:4; perform Z-score normalization on analog quantities and One-Hot encoding on state quantities; and expand latent fault samples using isolated forest.
[0079] In one embodiment, the multi-scale feature extraction module is specifically used to: construct three parallel causal dilated convolution branches, extract short, medium and long-term features with dilation rates of [1,2,4], [4,8,16] and [16,32,64] respectively, and concatenate the channels to obtain fused features.
[0080] In one embodiment, the feature enhancement module is specifically used to: adaptively increase the weight of key fault features through global average pooling squeezing, two-layer fully connected excitation, and channel-by-channel weighting calibration.
[0081] In one embodiment, the fault prediction module is specifically used to: enhance long-term time-series dependency modeling through GRU; optimize global hyperparameters using Bayesian optimization; output fault classification and risk probability in dual tasks, and trigger early warning when the threshold is exceeded.
[0082] In one embodiment, the device further includes an engineering deployment module for compatibility with multiple industrial protocol access, model quantization acceleration, microservice encapsulation, and standardized interface output.
[0083] The method in this embodiment achieves the following technical effects: by synchronously capturing full-cycle fault features through multi-scale TCN, and combining channel attention to enhance key information and Bayesian optimization to improve generalization ability, early and accurate warning of subway platform door faults is realized, effectively improving fault prediction accuracy and warning lead time. It can be directly integrated into the subway intelligent operation and maintenance system to support the implementation of predictive maintenance and improve operation and maintenance efficiency and equipment safety.
[0084] Obviously, those skilled in the art should understand that the modules or steps of the above embodiments can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
[0085] In addition to the embodiments described above, the present invention may have other implementations. All technical solutions formed by equivalent substitution or equivalent transformation fall within the protection scope claimed by the present invention.
Claims
1. A method for predicting subway platform door failures based on multi-scale TCN-GRU, characterized in that: Includes the following steps: Step S1: Collect multi-source time-series operation data of the core components of the subway platform door. The multi-source time-series operation data includes motor analog quantities, lock time quantities, status quantities and fault quantities. Step S2: Perform outlier removal, sample balancing, standardization coding, and anomaly detection preprocessing on the multi-source time series data to obtain standard time series features; Step S3: Construct a three-branch parallel multi-scale temporal convolutional network. The three branches are a short-term feature branch, a medium-term feature branch, and a long-term feature branch. The three branches adopt a dilation rate sequence that increases stepwise from small to large. Each branch is composed of stacked causal dilated convolutional layers. The three branches cover fault features at different time scales through different dilation rate sequences. Standard temporal features are input into a three-branch parallel multi-scale temporal convolutional network for processing. Short-time, medium-time and long-time features are extracted and concatenated to obtain multi-scale fused features covering multi-scale temporal dependencies. Step S4: Input the multi-scale fusion features into the SE channel attention module, and dynamically allocate feature channel weights through squeezing, excitation and recalibration operations to weight and enhance key fault features, thereby obtaining key fault focused features; Key fault characteristics include motor current, unlocking time, and current standard deviation; Step S5: Input the key fault focus features into the gated loop unit module to enhance the modeling of time series evolution relationship. After Bayesian hyperparameter optimization, output the fault type, fault risk probability and early warning advance through the dual task output head.
2. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 1, characterized in that: In step S1, the core components include a brushless DC motor and a self-holding electromagnetic lock. The operating parameters of the transmission mechanism and the door are collected synchronously, totaling 66 dimensions of operating parameters. The sampling interval is 200ms, and a single door opening and closing process corresponds to 120 time steps, forming a time series sample with dimensions [120, 66]. Data transmission is based on the MQTT protocol for time stamp synchronization between the edge gateway and the cloud platform. Data storage uses the InfluxDB time series database and adopts a hot and cold data tiering strategy for storage.
3. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 2, characterized in that: In step S1, the motor analog quantities are 32-dimensional parameters, including the instantaneous three-phase current of the left and right door motors, bus voltage, motor speed, output torque, peak current, standard deviation of current, and current rise slope, used to reflect the health status of the brushless DC motor; the locking time quantity is 12-dimensional parameters, including the electromagnetic lock unlocking response time, locking response time, holding engagement time, peak unlocking current, and peak locking current, used to reflect the magnetic attenuation and mechanical jamming of the self-holding electromagnetic lock; the state quantity is 18-dimensional parameters, including the door opening / closing command state, limit switch trigger state, real-time door position, door running speed, and obstacle detection state, used to characterize the door's operating conditions and external interference; The fault data consists of 4-dimensional labeled data, including historical fault type labels, fault occurrence timestamps, fault levels, and fault locations, which are used for supervised training of the model.
4. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 1, characterized in that: In step S2, the Tukey box method is used to remove abnormal data in each feature dimension. Since there are more samples of normal operation of platform doors than samples of failure precursors, random undersampling is performed on the normal operation samples; for the failure precursor samples, the samples are expanded by combining the latent anomaly samples identified by the isolated forest; finally, the failure precursor samples and normal operation samples are matched at a ratio of 1:
4. Differentiated coding methods are adopted for different types of features. Z-score standardization is used for continuous analog quantities, which include current, voltage and time quantities. One-Hot coding is used for discrete state quantities, which are converted into 0-1 sparse vectors to adapt to the input format requirements of neural networks. Discrete state quantities include switch state, limit state and fault type. The isolation forest algorithm is used to perform secondary screening on the preprocessed data. By randomly dividing the feature space to isolate outliers, unlabeled latent fault precursor samples can be identified without labeling, and these latent fault precursor samples are added to the positive samples of the training set.
5. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 1, characterized in that: In step S3, the short-term feature branch uses the dilation rate sequence [1,2,4], stacks 3 layers of causal dilated convolutions, has a kernel size of 3, and has 64 output channels per branch; the receptive field of this branch covers 7 time steps, corresponding to a duration of 1.4 seconds; it captures second-level instantaneous abnormal features, including motor current spikes, unlocking action timeouts, and instantaneous stall. The mid-time feature branch uses the dilation rate sequence [4,8,16], stacks 3 layers of causal dilation convolution, has a kernel size of 3, and has 64 output channels per branch; the receptive field of this branch covers 28 time steps, corresponding to a duration of 5.6 seconds; and combines continuous door opening and closing sliding window sampling to capture minute-level periodic fluctuation features, including periodic fluctuations in performance and periodic changes in load during continuous door opening and closing. The long-term feature branch uses the dilation rate sequence [16,32,64], stacked with 3 layers of causal dilated convolutions, with a kernel size of 3 and 64 output channels per branch. The receptive field of this branch covers 112 time steps, corresponding to a duration of 22.4 seconds. Combined with a periodic sliding window sampling mechanism with a sliding window step size of 200 time steps, it captures hourly progressive performance degradation features, including the development of inter-turn short circuits in the motor, the attenuation of the electromagnetic lock's magnetic force, and bearing wear. The feature vectors output by the short-term feature branch, the medium-term feature branch, and the long-term feature branch are concatenated along the channel dimension to obtain a multi-scale fusion feature with dimension [T, 192].
6. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 5, characterized in that: In step S3, the formula for calculating the receptive field of dilated convolution is: ; Where k is the kernel size and L is the number of convolutional layers. Let be the inflation rate of the i-th layer; the inflation rate sequences of short-term feature branches, medium-term feature branches, and long-term feature branches are designed using this formula to cover the target time scale.
7. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 6, characterized in that: In the SE channel attention module of step S4, a squeezing operation is performed on the temporal features of each channel through global average pooling to obtain the global representation of the channel; an activation operation is performed through a two-layer fully connected network to learn the nonlinear dependency relationship between channels and output the weight of each channel; the channel weights are multiplied with the original features one by one to perform a recalibration operation, which automatically increases the feature weights of motor current, unlocking time and current standard deviation.
8. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 7, characterized in that: In step S4, the squeezing operation specifically involves: processing the input features... Perform global average pooling to compress the T time-series feature values of each channel into a single global scalar representation. The calculation formula is as follows: ; Where C represents the total number of feature channels. Let be the eigenvalue of the c-th channel at time t. This represents the global feature after compression of the c-th channel. The feature vector after compression; The activation operation is as follows: The non-linear dependencies between channels are learned through a two-layer fully connected network to generate the weight coefficients for each channel; the first fully connected layer performs dimensionality reduction with a ratio of 16:1, introducing non-linearity through the ReLU activation function; the second fully connected layer performs dimensionality increase, restoring the original number of channels, and normalizing the weights to the [0,1] interval through the Sigmoid activation function; the calculation formula is: ; in, To reduce the dimensionality of fully connected weights, The weights are for increasing the dimensionality of the fully connected components, where r is the dimensionality reduction ratio. It is the ReLU activation function. It is the Sigmoid activation function. This is the output channel weight vector; The recalibration operation specifically involves multiplying the learned channel weights by the original features channel by channel, using the following formula: ; in, This represents the characteristic of the c-th channel after recalibration.
9. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 8, characterized in that: In step S5, the calculation formula for the gated loop unit module is: ; in, Let be the input features at time t. This is the hidden state from the previous moment; To reset the gate and control the degree of forgetting of historical information; To update the gate, control the contribution of historical information to the current state; This is the candidate hidden state; This is the final hidden state at the current moment; This is an element-wise multiplication operation. Use the Sigmoid activation function; The number of hidden units in the gated loop unit module is set to 128, the output dimension is [T, 128], the hidden state of the last time step is taken as the global timing representation, and connected to the dual-task output head.
10. The subway platform door fault prediction method based on multi-scale TCN-GRU according to claim 9, characterized in that: In step S5, the Bayesian optimization algorithm is used to globally optimize the model hyperparameters; the TPE sampling strategy of the Optuna framework is adopted, with the optimization objective of minimizing the weighted loss of the validation set, and iterative search is performed in the preset hyperparameter space; the optimized hyperparameters and search space include the number of convolutional layers, kernel size, dilation rate, number of hidden units in GRU, learning rate, and batch size of the multi-scale temporal convolutional network. The dual-task output head includes a fault type classification head and a fault risk probability head. In the fault type classification head, it is mapped to four states through a fully connected layer, and the probability distribution is output through the Softmax activation function. The four states are normal, motor inter-turn short circuit, mechanical jamming, and electromagnetic lock magnetic force attenuation. The classification task uses the cross-entropy loss function; in the fault risk probability header, it is mapped to a 1-dimensional output through a fully connected layer, and then outputs a continuous value in the range of 0 to 1 through the Sigmoid activation function, which represents the risk probability of the corresponding fault occurring in the future. The regression task uses the mean squared error loss function; the total loss function is the weighted sum of the classification loss and the regression loss. An early warning is triggered when the probability of failure risk is greater than 0.7, and the early warning lead time is output, which is the time difference between the predicted time of failure and the current time.
