Fault prediction is critical to the safety of emerging electric vehicles. However, electric vehicle (EV) fault prediction is degraded by sparse temporal observations and severe class imbalance in internet-of-vehicles (IoV) data streams. This paper proposes time-decay dual-attention (TDDA), an elapsed-time-aware, dual-time decay-attention framework that addresses both challenges within a single architecture. Unlike conventional temporal models that neglect irregular observation intervals or rely on content-only attention, TDDA injects temporal information at two complementary levels—a learnable elapsed-time cell decay that modulates recurrent state updates according to sampling gaps and a dual-time attention bias that reweights observations by cumulative elapsed time and local sampling regularity—and complements them with a Time2Vec encoding of input intervals and a class-balanced focal objective trained under deferred reweighting. The framework is evaluated on the CH-BatteryGen benchmark of 500 lithium iron phosphate (LFP) vehicles under the native 10-second telemetry cadence with a 13.3:1 class imbalance against twelve baselines, including five dedicated irregular-sampling architectures, under a unified random-search protocol at three observation-window lengths. TDDA ranks first in window-level macro-F1, the Matthews correlation coefficient (MCC) and area under the precision–recall curve (AUPRC) at every window length, attaining up to 0.7144 macro-F1, and is uniquely robust to the observation horizon: Its macro-F1 varies by at most 0.025 across horizons spanning 640–2560 s, whereas dedicated irregular-sampling baselines collapse when the horizon is extended. Ablations confirm that all three time-aware components contribute substantially, with losses of up to 0.25 macro-F1 when any single component is removed at short windows. These results validate TDDA as an effective, lightweight, interval-aware approach for safety-critical, imbalanced fault diagnosis under sparse IoV monitoring.
Citation: Li Nie, Chunlin Wang, Yazhou Wang, Yi Liu, Lin Lu. Adaptive time-decay recurrent attention for real-time fault prediction under sparse and imbalanced internet-of-vehicles data streams[J]. Electronic Research Archive, 2027, 35(1): 297-327. doi: 10.3934/era.2027011
Fault prediction is critical to the safety of emerging electric vehicles. However, electric vehicle (EV) fault prediction is degraded by sparse temporal observations and severe class imbalance in internet-of-vehicles (IoV) data streams. This paper proposes time-decay dual-attention (TDDA), an elapsed-time-aware, dual-time decay-attention framework that addresses both challenges within a single architecture. Unlike conventional temporal models that neglect irregular observation intervals or rely on content-only attention, TDDA injects temporal information at two complementary levels—a learnable elapsed-time cell decay that modulates recurrent state updates according to sampling gaps and a dual-time attention bias that reweights observations by cumulative elapsed time and local sampling regularity—and complements them with a Time2Vec encoding of input intervals and a class-balanced focal objective trained under deferred reweighting. The framework is evaluated on the CH-BatteryGen benchmark of 500 lithium iron phosphate (LFP) vehicles under the native 10-second telemetry cadence with a 13.3:1 class imbalance against twelve baselines, including five dedicated irregular-sampling architectures, under a unified random-search protocol at three observation-window lengths. TDDA ranks first in window-level macro-F1, the Matthews correlation coefficient (MCC) and area under the precision–recall curve (AUPRC) at every window length, attaining up to 0.7144 macro-F1, and is uniquely robust to the observation horizon: Its macro-F1 varies by at most 0.025 across horizons spanning 640–2560 s, whereas dedicated irregular-sampling baselines collapse when the horizon is extended. Ablations confirm that all three time-aware components contribute substantially, with losses of up to 0.25 macro-F1 when any single component is removed at short windows. These results validate TDDA as an effective, lightweight, interval-aware approach for safety-critical, imbalanced fault diagnosis under sparse IoV monitoring.
| [1] |
Y. Zhao, P. Liu, Z. Wang, L. Zhang, J. Hong, Fault and defect diagnosis of battery for electric vehicles based on big data analysis methods, Appl. Energy, 207 (2017), 354–362. https://doi.org/10.1016/j.apenergy.2017.05.139 doi: 10.1016/j.apenergy.2017.05.139
|
| [2] |
L. Xie, J. Wei, X. Li, C. Chen, H. Chen, G. Dong, Deep learning-enabled fault diagnosis of lithium-ion batteries using real-world vehicle data with gramian angular difference fields, IEEE Trans. Ind. Inf., 21 (2025), 5622–5632. https://doi.org/10.1109/TII.2025.3556068 doi: 10.1109/TII.2025.3556068
|
| [3] |
K. S. K. Chu, K. W. Chew, Y. C. Chang, S. Morris, An open-circuit fault diagnosis system based on neural networks in the inverter of three-phase permanent magnet synchronous motor (PMSM), World Electr. Veh. J., 15 (2024), 71. https://doi.org/10.3390/wevj15020071 doi: 10.3390/wevj15020071
|
| [4] |
S. Benkaihoul, S. Khadar, Y. Özüpak, E. Aslan, M. M. Almalki, M. A. Mossa, Advanced fault classification in induction motors for electric vehicles using a stacking ensemble learning approach, World Electr. Veh. J., 16 (2025), 614. https://doi.org/10.3390/wevj16110614 doi: 10.3390/wevj16110614
|
| [5] |
N. V. Chawla, K. W. Bowyer, L. O. Hall, W. P. Kegelmeyer, SMOTE: Synthetic minority over-sampling technique, J. Artif. Intell. Res., 16 (2002), 321–357. https://doi.org/10.1613/jair.953 doi: 10.1613/jair.953
|
| [6] |
J. Lu, T. Yang, X. Liu, W. Pan, Y. Zhang, Y. Yin, Ensemble hardness harmonize classifier for imbalanced fault classification, in 2024 IEEE 3rd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), IEEE, Changchun, China, (2024), 673–680. https://doi.org/10.1109/EEBDA60612.2024.10485746 |
| [7] |
F. Yang, X. Song, F. Xu, K. L. Tsui, State-of-charge estimation of lithium-ion batteries via long short-term memory network, IEEE Access, 7 (2019), 53792–53799. https://doi.org/10.1109/ACCESS.2019.2912803 doi: 10.1109/ACCESS.2019.2912803
|
| [8] |
D. Li, Z. Zhang, P. Liu, Z. Wang, L. Zhang, Battery fault diagnosis for electric vehicles based on voltage abnormality by combining the long short-term memory neural network and the equivalent circuit model, IEEE Trans. Power Electron., 36 (2021), 1303–1315. https://doi.org/10.1109/TPEL.2020.3008194 doi: 10.1109/TPEL.2020.3008194
|
| [9] |
J. Zhao, X. Feng, J. Wang, Y. Lian, M. Ouyang, A. F. Burke, Battery fault diagnosis and failure prognosis for electric vehicles using spatio-temporal transformer networks, Appl. Energy, 352 (2023), 121949. https://doi.org/10.1016/j.apenergy.2023.121949 doi: 10.1016/j.apenergy.2023.121949
|
| [10] |
B. Gmati, A. B. Rhouma, H. Meddeb, S. Khojet El Khil, Diagnosis of multiple open-circuit faults in three-phase induction machine drive systems based on bidirectional long short-term memory algorithm, World Electr. Veh. J., 15 (2024), 53. https://doi.org/10.3390/wevj15020053 doi: 10.3390/wevj15020053
|
| [11] |
J. Wang, C. Li, Z. Zhou, Demagnetization fault diagnosis for PMSM drive system with dual extended kalman filter, World Electr. Veh. J., 16 (2025), 112. https://doi.org/10.3390/wevj16020112 doi: 10.3390/wevj16020112
|
| [12] |
Y. Jiang, B. Ji, J. Zhang, J. Yan, W. Li, An overview of diagnosis methods of stator winding inter-turn short faults in permanent-magnet synchronous motors for electric vehicles, World Electr. Veh. J., 15 (2024), 165. https://doi.org/10.3390/wevj15040165 doi: 10.3390/wevj15040165
|
| [13] |
L. Wang, F. Zhu, F. Jiang, Y. Yang, Power converter fault detection using MLCA–SpikingShuffleNet, World Electr. Veh. J., 16 (2025), 36. https://doi.org/10.3390/wevj16010036 doi: 10.3390/wevj16010036
|
| [14] |
V. S. R. Kosuru, A. K. Venkitaraman, A smart battery management system for electric vehicles using deep learning-based sensor fault detection, World Electr. Veh. J., 14 (2023), 101. https://doi.org/10.3390/wevj14040101 doi: 10.3390/wevj14040101
|
| [15] |
B. Lim, S. Zohren, Time-series forecasting with deep learning: A survey, Philos. Trans. R. Soc. A, 379 (2021), 20200209. https://doi.org/10.1098/rsta.2020.0209 doi: 10.1098/rsta.2020.0209
|
| [16] |
H. I. Fawaz, G. Forestier, J. Weber, L. Idoumghar, P. A. Muller, Deep learning for time series classification: A review, Data Min. Knowl. Discov., 33 (2019), 917–963. https://doi.org/10.1007/s10618-019-00619-1 doi: 10.1007/s10618-019-00619-1
|
| [17] |
Z. Che, S. Purushotham, K. Cho, D. Sontag, Y. Liu, Recurrent neural networks for multivariate time series with missing values, Sci. Rep., 8 (2018), 6085. https://doi.org/10.1038/s41598-018-24271-9 doi: 10.1038/s41598-018-24271-9
|
| [18] |
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, et al., Attention is all you need, in Advances in Neural Information Processing Systems, 30 (2017), 5998–6008. |
| [19] |
Y. Wei, J. Peng, T. He, C. Xu, J. Zhang, S. Pan, et al., Compatible transformer for irregularly sampled multivariate time series, in 2023 IEEE International Conference on Data Mining (ICDM), IEEE, (2023), 1409–1414. https://doi.org/10.1109/ICDM58522.2023.00183 |
| [20] |
M. Horn, M. Moor, C. Bock, B. Rieck, K. Borgwardt, Set functions for time series, in Proceedings of the 37th International Conference on Machine Learning (ICML), (2020), 4353–4363. |
| [21] |
S. N. Shukla, B. M. Marlin, Multi-time attention networks for irregularly sampled time series, in International Conference on Learning Representations (ICLR), (2021), 14897. |
| [22] |
Z. Zhang, M. Zeman, T. Tsiligkaridis, M. Zitnik, Graph-guided network for irregularly sampled multivariate time series, preprint, arXiv: 2110.05357. |
| [23] |
C. Wu, A. Verl, Parameter identification for fault analysis of permanent magnet synchronous motors based on transient processes, World Electr. Veh. J., 15 (2024), 347. https://doi.org/10.3390/wevj15080347 doi: 10.3390/wevj15080347
|
| [24] |
D. Gao, Y. Wang, X. Zheng, Q. Yang, A fault warning method for electric vehicle charging process based on adaptive deep belief network, World Electr. Veh. J., 12 (2021), 265. https://doi.org/10.3390/wevj12040265 doi: 10.3390/wevj12040265
|
| [25] |
X. Wen, W. Li, Time series prediction based on LSTM-attention-LSTM model, IEEE Access, 11 (2023), 48322–48331. https://doi.org/10.1109/ACCESS.2023.3276628 doi: 10.1109/ACCESS.2023.3276628
|
| [26] |
J. Shi, S. Wang, P. Qu, J. Shao, Time series prediction model using LSTM-Transformer neural network for mine water inflow, Sci. Rep., 14 (2024), 18284. https://doi.org/10.1038/s41598-024-69418-z doi: 10.1038/s41598-024-69418-z
|
| [27] |
Z. Wang, C. Guan, S. Shi, G. Zhang, X. Gu, Motor bearing fault diagnosis based on current signal using time–frequency channel attention, World Electr. Veh. J., 15 (2024), 281. https://doi.org/10.3390/wevj15070281 doi: 10.3390/wevj15070281
|
| [28] |
Y. Zou, X. Zhang, W. Zhao, T. Liu, Rolling bearing fault diagnosis based on optimized VMD combining signal features and improved CNN, World Electr. Veh. J., 15 (2024), 544. https://doi.org/10.3390/wevj15120544 doi: 10.3390/wevj15120544
|
| [29] |
J. Li, W. Zhang, S. Zhang, W. Chen, X. Li, Fault diagnosis method for position sensors in multi-phase brushless DC motor drive systems based on position signals and fault current characteristics, World Electr. Veh. J., 16 (2025), 454. https://doi.org/10.3390/wevj16080454 doi: 10.3390/wevj16080454
|
| [30] |
C. Lou, Z. Jia, Z. Zheng, K. Tu, Sparser is faster and less is more: Efficient sparse attention for long-range transformers, preprint, arXiv: 2406.16747. |
| [31] |
Y. Zhang, Y. Ding, J. Su, L. Yang, Quality-based tool remaining useful life prediction under time-varying processing parameters by windowed sparse-attention transformer, Qual. Reliab. Eng. Int., 42 (2026), 4281–4297. https://doi.org/10.1002/qre.70326 doi: 10.1002/qre.70326
|
| [32] |
T. Y. Lin, P. Goyal, R. Girshick, K. He, P. Dollár, Focal loss for dense object detection, in 2017 IEEE International Conference on Computer Vision (ICCV), IEEE, (2017), 2999–3007. https://doi.org/10.1109/ICCV.2017.324 |
| [33] |
Y. Cui, M. Jia, T. Y. Lin, Y. Song, S. Belongie, Class-balanced loss based on effective number of samples, in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE Computer Society, Los Alamitos, CA, USA, (2019), 4615–4623. https://doi.org/10.1109/CVPR.2019.00475 |
| [34] |
J. Bergstra, Y. Bengio, Random search for hyper-parameter optimization, J. Mach. Learn. Res., 13 (2012), 281–305. |
| [35] |
K. Cao, C. Wei, A. Gaidon, N. Arechiga, T. Ma, Learning imbalanced datasets with label-distribution-aware margin loss, in Advances in Neural Information Processing Systems, 32 (2019). |
Architecture of the proposed TDDA. The model comprises the following: (1) An elapsed-time RNN encoder, (2) one or more time-interval decay attention blocks (dual-time attention), (3) multigranularity pooling (mean/max) combined with the terminal RNN state, and (4) a classification head
Training set imbalance profile: Horizontal bars display the proportional representation of each fault class. Normal operation samples ($ n = 17,640 $, 79.5%) vastly outnumber fault categories. High resistance and low capacity classes contain approximately 1350 samples each (6%), and self-discharge contains 1870 (8.4%). This distribution is preserved across validation and test splits, ensuring consistent imbalance characteristics throughout evaluation
Hyperparameter sensitivity of TDDA-LSTM at $ L = 128 $, measured by validation macro-F1 over the $ 20 $ random-search trials. Each panel varies one hyperparameter while the others are marginalized; the dashed line shows the best value observed at each setting and the solid line the mean$ \pm $standard deviation across the remaining trials