Prior-Knowledge-Guided Graph Attention Network for Fault Diagnosis of Engine Valve Clearance
Abstract
1. Introduction
- A prior-knowledge-guided directed graph is constructed by treating event-centered vibration windows as graph nodes and connecting them according to the physical occurrence sequence of the working cycle. This design preserves the physical correspondence between vibration segments and valve-related events.
- A GAT-based diagnostic model is developed to learn discriminative graph-level representations from the constructed event-driven graph samples. The learned attention weights are further visualized, providing an interpretable basis for analyzing event-to-event relationships related to valve-clearance faults.
- Fault simulation experiments are conducted on an eight-cylinder diesel engine test bench under full-load conditions. The results verify that the proposed event-driven graph modeling strategy achieves effective small-sample diagnostic performance and provides clearer physical interpretability.
2. Related Work
2.1. Mathematical Notation of Graph
2.2. Graph Neural Networks
2.3. Graph Attention Network (GAT)
3. The Proposed Diesel Fault Diagnosis Method Based on a GAT
3.1. Overview
3.2. Constructing Affinity Graphs from Time Series Based on Prior Knowledge
3.2.1. Analysis of Diesel Engine Vibration Signal Characteristics
- Exhaust valve opening: Towards the end of the power stroke, the exhaust valve opens in advance, allowing the high-temperature and high-pressure exhaust gas after combustion to start being discharged, providing favorable initial conditions for the subsequent exhaust stroke, while reducing the pressure inside the cylinder and alleviating the upward resistance of the piston.
- Intake valve opening: When the exhaust stroke is not yet completed, the intake valve opens in advance, forming a valve overlap area with the exhaust valve. This helps to utilize the negative pressure generated by the exhaust gas flowing out to draw fresh air into the cylinder, thereby enhancing the ventilation efficiency.
- Exhaust valve closure: After the intake stroke begins, the exhaust valve closes with a delay, further enhancing the complete discharge of exhaust gases and, in conjunction with the intake process, creating a more efficient air replacement effect, thereby improving the intake quality.
- Intake valve closure: The intake valve closes when the intake stroke is completed and the compression stroke is about to begin. This moment is slightly later than the bottom dead center. The delayed closure can increase the air intake volume in the cylinder by taking advantage of the intake inertia, thereby improving the compression efficiency and combustion effect.
- Ignition: Before the end of the compression stroke, the fuel self-ignites through high-pressure fuel injection, generating high-temperature and high-pressure gas that pushes the piston to do work. This is a key node for energy conversion in the entire four-stroke cycle, marking the beginning of the power stroke.
3.2.2. The Construction of Graph Based on Prior Knowledge
3.3. Fault Diagnosis Based on the GAT
- (1)
- Feature extraction module
- (2)
- Feature Compression module
- (3)
- Fault Classification module
4. Experimental Validation
4.1. Experimental Setup
4.2. Data Description
4.3. Model HyperParameters Setting
4.4. Fault Classification Results
5. Discussion
5.1. The Influence of Graph Topologies on Model Performance
5.2. Comparison with Other Fault Diagnosis Methods
5.3. Interpretability Analysis: Visualization of Attention Weights
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Zhan, X.; Bai, H.; Yan, H.; Wang, R.; Guo, C.; Jia, X. Diesel Engine Fault Diagnosis Method Based on Optimized VMD and Improved CNN. Processes 2022, 10, 2162. [Google Scholar] [CrossRef]
- Myung, C.L.; Choi, K.H.; Hwang, I.G.; Lee, K.H.; Park, S. Effects of valve timing and intake flow motion control on combustion and time-resolved HC & NOx formation characteristics. Int. J. Automot. Technol. 2009, 10, 161–166. [Google Scholar] [CrossRef]
- Karamangil, M.I.; Avci, A.; Bilal, H. Investigation of the effect of different carbon film thickness on the exhaust valve. Heat Mass Transf. 2008, 44, 587–598. [Google Scholar] [CrossRef]
- Forsberg, P.; Hollman, P.; Jacobson, S. Wear mechanism study of exhaust valve system in modern heavy duty combustion engines. Wear 2011, 271, 2477–2484. [Google Scholar] [CrossRef]
- Tharanga, K.L.P.; Liu, S.; Zhang, S.; Wang, Y. Diesel Engine Fault Diagnosis with Vibration Signal. J. Appl. Math. Phys. 2020, 8, 2031–2042. [Google Scholar] [CrossRef]
- Flett, J.; Bone, G.M. Fault detection and diagnosis of diesel engine valve trains. Mech. Syst. Signal Process. 2016, 72–73, 316–327. [Google Scholar] [CrossRef]
- El Aziz Ahmed, E.A.; Ibrahim, R.A.; Abdelsalam, A.K. A Comparative Analysis for Machine Learning-based Short-Term Load Forecasting Techniques. In Proceedings of the 2023 IEEE 6th International Electrical and Energy Conference (CIEEC), Hefei, China, 12–14 May 2023; pp. 1166–1171. [Google Scholar] [CrossRef]
- Mushtaq, S.; Islam, M.M.M.; Sohaib, M. Deep Learning Aided Data-Driven Fault Diagnosis of Rotatory Machine: A Comprehensive Review. Energies 2021, 14, 5150. [Google Scholar] [CrossRef]
- Yang, Y.; Haque, M.M.M.; Bai, D.; Tang, W. Fault Diagnosis of Electric Motors Using Deep Learning Algorithms and Its Application: A Review. Energies 2021, 14, 7017. [Google Scholar] [CrossRef]
- Attallah, O.; Ibrahim, R.A.; Zakzouk, N.E. A lightweight deep learning framework for transformer fault diagnosis in smart grids using multiple scale CNN features. Sci. Rep. 2025, 15, 14505. [Google Scholar] [CrossRef]
- Yuan, B.; Li, Y.; Chen, S. Efficient Gearbox Fault Diagnosis Based on Improved Multi-Scale CNN with Lightweight Convolutional Attention. Sensors 2025, 25, 2636. [Google Scholar] [CrossRef] [PubMed]
- Hinton, G.E.; Osindero, S.; Teh, Y.-W. A Fast Learning Algorithm for Deep Belief Nets. Neural Comput. 2006, 18, 1527–1554. [Google Scholar] [CrossRef]
- Chen, Z.; Li, W. Multisensor Feature Fusion for Bearing Fault Diagnosis Using Sparse Autoencoder and Deep Belief Network. IEEE Trans. Instrum. Meas. 2017, 66, 1693–1702. [Google Scholar] [CrossRef]
- Shao, H.; Jiang, H.; Zhang, X.; Niu, M. Rolling bearing fault diagnosis using an optimization deep belief network. Meas. Sci. Technol. 2015, 26, 115002. [Google Scholar] [CrossRef]
- Qin, S.J. Survey on data-driven industrial process monitoring and diagnosis. Annu. Rev. Control 2012, 36, 220–234. [Google Scholar] [CrossRef]
- Jia, F.; Lei, Y.; Lin, J.; Zhou, X.; Lu, N. Deep Neural Networks: A Promising Tool for Fault Characteristic Mining and Intelligent Diagnosis of Rotating Machinery with Massive Data. Mech. Syst. Signal Process. 2016, 72–73, 303–315. [Google Scholar] [CrossRef]
- Tamilselvan, P.; Wang, P. Failure diagnosis using deep belief learning based health state classification. Reliab. Eng. Syst. Saf. 2013, 115, 124–135. [Google Scholar] [CrossRef]
- Lei, Y.; Yang, B.; Jiang, X.; Jia, F.; Li, N.; Nandi, A.K. Applications of machine learning to machine fault diagnosis: A review and roadmap. Mech. Syst. Signal Process. 2020, 138, 106587. [Google Scholar] [CrossRef]
- Zhang, W.; Peng, G.; Li, C.; Chen, Y.; Zhang, Z. A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signals. Sensors 2017, 17, 425. [Google Scholar] [CrossRef] [PubMed]
- Wei, Q.; Tian, X.; Cui, L.; Zheng, F.; Liu, L. WSAFormer-DFFN: A model for rotating machinery fault diagnosis using 1D window-based multi-head self-attention and deep feature fusion network. Eng. Appl. Artif. Intell. 2023, 124, 106633. [Google Scholar] [CrossRef]
- Bengio, Y.; Courville, A.; Vincent, P. Representation Learning: A Review and New Perspectives. IEEE Trans. Pattern Anal. Mach. Intell. 2013, 35, 1798–1828. [Google Scholar] [CrossRef]
- Randall, R.B.; Antoni, J. Rolling element bearing diagnostics—A tutorial. Mech. Syst. Signal Process. 2011, 25, 485–520. [Google Scholar] [CrossRef]
- Zhao, R.; Yan, R.; Chen, Z.; Mao, K.; Wang, P.; Gao, R.X. Deep learning and its applications to machine health monitoring. Mech. Syst. Signal Process. 2019, 115, 213–237. [Google Scholar] [CrossRef]
- Patil, C.; Theotokatos, G.; Tsitsilonis, K. Data-driven model for marine engine fault diagnosis using in-cylinder pressure signals. J. Mar. Eng. Technol. 2025, 24, 70–82. [Google Scholar] [CrossRef]
- Bronstein, M.M.; Bruna, J.; LeCun, Y.; Szlam, A.; Vandergheynst, P. Geometric Deep Learning: Going beyond Euclidean data. IEEE Signal Process. Mag. 2017, 34, 18–42. [Google Scholar] [CrossRef]
- Wang, C.; Wang, Y.; Wang, Y.; Li, X.; Chen, Z. Richly connected spatial–temporal graph neural network for rotating machinery fault diagnosis with multi-sensor information fusion. Mech. Syst. Signal Process. 2025, 225, 112230. [Google Scholar] [CrossRef]
- Chen, Z.; Zeng, X.; Li, W.; Liao, G. Machine fault classification using deep belief network. In Proceedings of the 2016 IEEE International Instrumentation and Measurement Technology Conference Proceedings, Taipei, Taiwan, 23–26 May 2016; pp. 1–6. [Google Scholar] [CrossRef]
- Zhang, L.; Zhou, F.; Duan, P.; Yuan, X. Fault diagnosis of mobile robot based on dual-graph convolutional network with prior fault knowledge. Adv. Eng. Inform. 2024, 62, 102865. [Google Scholar] [CrossRef]
- Li, T.; Zhao, Z.; Sun, C.; Yan, R.; Chen, X. Multireceptive Field Graph Convolutional Networks for Machine Fault Diagnosis. IEEE Trans. Ind. Electron. 2021, 68, 12739–12749. [Google Scholar] [CrossRef]
- Jia, M.; Liu, Y.; Xu, D.; Yang, T.; Yao, Y. Topology-Informed Graph Convolutional Network for Fault Diagnosis. In Proceedings of the 2022 IEEE 11th Data Driven Control and Learning Systems Conference (DDCLS), Chengdu, China, 3–5 August 2022; pp. 595–599. [Google Scholar] [CrossRef]
- Zhou, J.; Cui, G.; Hu, S.; Zhang, Z.; Yang, C.; Liu, Z.; Wang, L.; Li, C.; Sun, M. Graph neural networks: A review of methods and applications. AI Open 2020, 1, 57–81. [Google Scholar] [CrossRef]
- Yu, X.; Tang, B.; Zhang, K. Fault Diagnosis of Wind Turbine Gearbox Using a Novel Method of Fast Deep Graph Convolutional Networks. IEEE Trans. Instrum. Meas. 2021, 70, 6502714. [Google Scholar] [CrossRef]
- Zhang, D.; Stewart, E.; Entezami, M.; Roberts, C.; Yu, D. Intelligent acoustic-based fault diagnosis of roller bearings using a deep graph convolutional network. Measurement 2020, 156, 107585. [Google Scholar] [CrossRef]
- Gao, Y.; Zhong, Z.; Ma, M.; Zhang, Z.; Zhang, Y.; Wang, C.; Wang, Z. Physics-Embedded Recurrent Graph Neural Network for Fault Diagnosis of Complex Systems. IEEE Access 2024, 12, 122426–122436. [Google Scholar] [CrossRef]
- Xiao, L.; Yang, X.; Yang, X. A graph neural network-based bearing fault detection method. Sci. Rep. 2023, 13, 5286. [Google Scholar] [CrossRef] [PubMed]
- Li, T.; Zhou, Z.; Li, S.; Sun, C.; Yan, R.; Chen, X. The emerging graph neural networks for intelligent fault diagnostics and prognostics: A guideline and a benchmark study. Mech. Syst. Signal Process. 2022, 168, 108653. [Google Scholar] [CrossRef]
- Wu, W.; Song, C.; Zhao, J.; Xu, Z. Physics-Informed Gated Recurrent Graph Attention Unit Network for Anomaly Detection in Industrial Cyber-Physical Systems. Inf. Sci. 2023, 629, 618–633. [Google Scholar] [CrossRef]
- Liu, J.; Chen, S.; Cai, M.; Shao, H.; Gui, W. Semi-Heterogeneous Graph-Perception Network With Gradient-Weighted Class Activation Mapping for Class-Incremental Industrial Fault Recognition and Root Cause Diagnosis. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 16825–16839. [Google Scholar] [CrossRef]
- Tao, L.; Liu, H.; Zhang, J.; Su, X.; Li, S.; Hao, J.; Lu, C.; Suo, M.; Wang, C. Associated Fault Diagnosis of Power Supply Systems Based on Graph Matching: A Knowledge and Data Fusion Approach. Mathematics 2022, 10, 4306. [Google Scholar] [CrossRef]
- Scarselli, F.; Gori, M.; Tsoi, A.C.; Hagenbuchner, M.; Monfardini, G. The Graph Neural Network Model. IEEE Trans. Neural Netw. 2009, 20, 61–80. [Google Scholar] [CrossRef]
- Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. arXiv 2017, arXiv:1609.02907. [Google Scholar] [CrossRef]
- Defferrard, M.; Bresson, X.; Vandergheynst, P. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. arXiv 2017. [Google Scholar] [CrossRef]
- Xu, K.; Ba, J.; Kiros, R.; Cho, K.; Courville, A.; Salakhutdinov, R.; Zemel, R.; Bengio, Y. Show, Attend and Tell: Neural Image Caption Generation with Visual Attention. arXiv 2016, arXiv:1502.03044. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. arXiv 2023, arXiv:1706.03762. [Google Scholar]
- Yang, X.; Bi, F.; Cheng, J.; Tang, D.; Shen, P.; Bi, X. A Multiple Attention Convolutional Neural Networks for Diesel Engine Fault Diagnosis. Sensors 2024, 24, 2708. [Google Scholar] [CrossRef]
- Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Liò, P.; Bengio, Y. Graph Attention Networks. arXiv 2018, arXiv:1710.10903. [Google Scholar] [CrossRef]
- Jin, C.; Zhao, W.; Liu, Z.; Lee, J.; He, X. A vibration-based approach for diesel engine fault diagnosis. In Proceedings of the 2014 International Conference on Prognostics and Health Management, Cheney, WA, USA, 22–25 June 2014; pp. 1–9. [Google Scholar] [CrossRef]
- Hu, B.; Liu, J.; Liu, S.; Li, B.; Lei, X. Simultaneous multi-parameter identification algorithm for clearance-type nonlinearity. Mech. Syst. Signal Process. 2020, 139, 106423. [Google Scholar] [CrossRef]
- Fan, S.; Cai, Y.; Zhang, Z.; Wang, J.; Shi, Y.; Li, X. Adaptive Convolution Sparse Filtering Method for the Fault Diagnosis of an Engine Timing Gearbox. Sensors 2023, 24, 169. [Google Scholar] [CrossRef]
- Hu, Z.; Lv, C.; Hang, P.; Huang, C.; Xing, Y. Data-Driven Estimation of Driver Attention Using Calibration-Free Eye Gaze and Scene Features. IEEE Trans. Ind. Electron. 2022, 69, 1800–1808. [Google Scholar] [CrossRef]
- Badawi, B.; Shahin, M.; Kolosy, M.; Shedied, S.; Elmaihy, A. Identification of Diesel Engine Cycle Events using Measured Surface Vibration. In Small Engine Technology Conference & Exposition; SAE International: San Antonio, TX, USA, 2006. [Google Scholar] [CrossRef]
- Elamin, F.; Fan, Y.; Gu, F.; Ball, A. Diesel Engine Valve Clearance Detection Using Acoustic Emission. Adv. Mech. Eng. 2010, 2, 495741. [Google Scholar] [CrossRef]
- Jiang, Z.; Mao, Z.; Wang, Z.; Zhang, J. Fault Diagnosis of Internal Combustion Engine Valve Clearance Using the Impact Commencement Detection Method. Sensors 2017, 17, 2916. [Google Scholar] [CrossRef]
- Patel, S.; Torgal, S.; Purohit, T.; Kumar, R.; Singh, D.V.; Kanchan, S.; Soudagar, M.E.M.; Ahamad, T.; Kalam, M.; Patel, M. Impact of variable exhaust valve timing on diesel engine characteristics fueled with waste cooking oil biofuel blends: A numerical analysis. Proc. Inst. Mech. Eng. Part E J. Process Mech. Eng. 2025, 239, 1329–1352. [Google Scholar] [CrossRef]
- Dixit, S.; Verma, N.K. Intelligent Condition-Based Monitoring of Rotary Machines With Few Samples. IEEE Sens. J. 2020, 20, 14337–14346. [Google Scholar] [CrossRef]
- Wang, Z.; Luo, Q.; Chen, H.; Zhao, J.; Yao, L.; Zhang, J.; Chu, F. A high-accuracy intelligent fault diagnosis method for aero-engine bearings with limited samples. Comput. Ind. 2024, 159–160, 104099. [Google Scholar] [CrossRef]
- Zhong, B.; Zhao, M.; Wang, L.; Fu, S.; Zhong, S. DCSN: Focusing on hard samples mining in small-sample fault diagnosis of marine engine. Measurement 2024, 235, 114929. [Google Scholar] [CrossRef]











| Cylinder | Top Dead Center/Deg | Exhaust Valve Open/Deg | Intake Valve Open/Deg | Exhaust Valve Close/Deg | Intake Valve Close/Deg | Spark Plug Ignition/ Deg |
|---|---|---|---|---|---|---|
| A1 | 0 | 122 | 326 | 386 | 580 | 713 |
| Name | Value |
|---|---|
| Complete dataset size | 3000 |
| Number of training samples | 150 |
| Number of testing samples | 1200 |
| Number of training samples for each type | 50 |
| Number of testing samples for each type | 400 |
| Layer Name | Input Shape | Output Shape |
|---|---|---|
| GATConv | [5, 256] | [5, 512] |
| BatchNorm1d | [5, 512] | [5, 512] |
| GATConv | [5, 512] | [5, 512] |
| BatchNorm1d | [5, 512] | [5, 512] |
| Readout | [5, 512] | [1, 512] |
| Linear + ReLU | [1, 512] | [1, 256] |
| Dropout | [1, 256] | [1, 256] |
| Linear | [1, 256] | [1, 3] |
| Softmax | [1, 3] | [1, 3] |
| Parameter | Configuration |
|---|---|
| Batch size | 32 |
| Train epoch | 100 |
| Learning rate | 1 × 10−4 |
| Optimizer | Adam |
| Loss function | Cross-entropy |
| Experiment | Accuracy | F1 | Loss | Convergence Epoch |
|---|---|---|---|---|
| 1 | 0.9750 | 0.9749 | 0.0716 | 9 |
| 2 | 0.9650 | 0.9649 | 0.0987 | 7 |
| 3 | 0.9783 | 0.9783 | 0.0587 | 11 |
| 4 | 0.9850 | 0.9850 | 0.0515 | 11 |
| 5 | 0.9700 | 0.9699 | 0.0742 | 15 |
| 6 | 0.9917 | 0.9917 | 0.0360 | 9 |
| 7 | 0.9667 | 0.9666 | 0.1237 | 10 |
| 8 | 0.9817 | 0.9817 | 0.0621 | 9 |
| 9 | 0.9600 | 0.9598 | 0.1085 | 7 |
| 10 | 0.9717 | 0.9716 | 0.0721 | 14 |
| Average | 0.9745 | 0.9744 | 0.0757 | 10.2 |
| Samples Per Class | Total Number of Training Samples | Test Accuracy |
|---|---|---|
| 60 | 180 | 0.9833 |
| 50 | 150 | 0.9800 |
| 40 | 120 | 0.9733 |
| 30 | 90 | 0.9617 |
| 20 | 60 | 0.9458 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, M.; Wen, J.; Yang, X.; Hu, Y.; Li, X.; Shi, Z. Prior-Knowledge-Guided Graph Attention Network for Fault Diagnosis of Engine Valve Clearance. Sensors 2026, 26, 3565. https://doi.org/10.3390/s26113565
Li M, Wen J, Yang X, Hu Y, Li X, Shi Z. Prior-Knowledge-Guided Graph Attention Network for Fault Diagnosis of Engine Valve Clearance. Sensors. 2026; 26(11):3565. https://doi.org/10.3390/s26113565
Chicago/Turabian StyleLi, Mingyu, Jingqian Wen, Xiaonan Yang, Yaoguang Hu, Xinlong Li, and Zhongjie Shi. 2026. "Prior-Knowledge-Guided Graph Attention Network for Fault Diagnosis of Engine Valve Clearance" Sensors 26, no. 11: 3565. https://doi.org/10.3390/s26113565
APA StyleLi, M., Wen, J., Yang, X., Hu, Y., Li, X., & Shi, Z. (2026). Prior-Knowledge-Guided Graph Attention Network for Fault Diagnosis of Engine Valve Clearance. Sensors, 26(11), 3565. https://doi.org/10.3390/s26113565
