Prediction of Transient NOx Emissions from a Non-Road Heavy-Duty Diesel Engine Based on the PSO-XGBoost Algorithm
Abstract
1. Introduction
2. Methods
2.1. Engine Parameters
2.2. Experimental Protocol
2.3. Introduction to the Experiment
2.4. Data Processing
2.5. eXtreme Gradient Boosting Algorithm
2.6. Particle Swarm Optimization Algorithm
2.7. Evaluation Metrics
3. Results
3.1. Experimental Results and Analysis
3.2. Comparison of Algorithm Performance
3.3. Model Reliability and Statistical Analysis
4. Conclusions
- (1)
- PCC, SCC, and SHAP analyses were used to evaluate the relationships between engine operating parameters and transient NOx emissions. The results indicate that NOx emissions are governed by multiple coupled factors rather than a single variable. Key input variables include exhaust temperature, engine speed, torque, urea injection quantity, inlet NOx concentration, and fuel-injection-related parameters.
- (2)
- The optimized PSO-XGBoost model achieved high prediction accuracy. On the training set, the R2, MAE, and RMSE values were 0.9989, 1.1577 ppm, and 1.5746 ppm, respectively, while the corresponding values on the test set were 0.9662, 6.3344 ppm, and 8.9682 ppm. Compared with BP, ELM, LightGBM, LSSVR, RF, and standard XGBoost, the proposed model achieved higher prediction accuracy and lower prediction error, demonstrating strong capability in capturing the nonlinear characteristics of transient NOx emissions.
- (3)
- Model reliability was further evaluated using five-fold cross-validation, residual analysis, learning curve analysis, and uncertainty analysis. The results indicate that the PSO-XGBoost model exhibits stable generalization performance, limited systematic bias, and acceptable prediction uncertainty under transient operating conditions. The developed model reduces reliance on conventional experimental methods and provides support for the development of emission control strategies for heavy-duty non-road diesel engines.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Li, M.; Zhang, Y.; Yang, J.; Liu, X.; Li, Z.; Zhang, Q. Investigation on the urea deposit formation and thermal decomposition characteristics in the SCR aftertreatment system of a diesel engine. J. Environ. Sci. 2021, 103, 157–171. [Google Scholar] [CrossRef]
- Li, R.; Yue, T.; Li, G.; Gao, J.; Tong, Y.; Cheng, S.; Li, G.; Hou, C.; Su, W. Global trends on NH3-SCR research for NOx control during 1994–2023: A bibliometric analysis. J. Energy Inst. 2024, 117, 101865. [Google Scholar] [CrossRef]
- Ali, S.; Ali, S.; Ismail, A.; Zahid, M.; Raziq, F.; Qiao, L. Cu-based metal oxide catalysts for NH3-SCR of NOx: From fundamentals to mechanistic insights. Coord. Chem. Rev. 2025, 536, 216676. [Google Scholar] [CrossRef]
- Manisalidis, I.; Stavropoulou, E.; Stavropoulos, A.; Bezirtzoglou, E. Environmental and health impacts of air pollution: A review. Front. Public Health 2020, 8, 14. [Google Scholar] [CrossRef]
- Wang, Z.; Feng, K. NOx emission prediction for heavy-duty diesel vehicles based on improved GWO-BP neural network. Energies 2024, 17, 336. [Google Scholar] [CrossRef]
- Hong, B.; Burghout, W. An Adaptive Estimation Approach for Integrating Real-World Operation Dynamics in Engine-Out NOx Emission Modeling of a Wheel Loader. Emiss. Control. Sci. Technol. 2024, 10, 93–109. [Google Scholar] [CrossRef]
- Sun, J.; Zhang, Z.; Liu, X.; Zheng, H. Reduced methane combustion mechanism and verification, validation, and accreditation (VV&A) in CFD for NO emission prediction. J. Therm. Sci. 2021, 30, 610–623. [Google Scholar]
- Hsieh, M.-F.; Wang, J. Design and experimental validation of an extended Kalman filter-based NOx concentration estimator in selective catalytic reduction system applications. Control. Eng. Pract. 2011, 19, 346–353. [Google Scholar] [CrossRef]
- Chou, C.C.; Chiang, C.J.; Su, Y.H.; Ku, Y.Y. Identification of cross-sensitivity of smart NOx sensors to ammonia in urea-selective catalyst reduction systems via fast Fourier transform. Sens. Mater. 2014, 26, 101–112. [Google Scholar]
- Liu, C.; Pei, Y.; Wu, C.; Zhang, F.; Qin, J. Novel insights into the NOx emissions characteristics in PEMS tests of a heavy-duty vehicle under different payloads. J. Environ. Manag. 2024, 348, 119400. [Google Scholar] [CrossRef]
- Okeleye, S.A.; Thiruvengadam, A.; Perhinschi, M.G.; Carder, D. Data-driven machine learning model of a Selective Catalytic Reduction on Filter (SCRF) in a heavy-duty diesel engine: A comparison of Artificial Neural Network with Tree-based algorithms. Energy 2024, 290, 130117. [Google Scholar] [CrossRef]
- Kim, K.; Lee, T.-H.; Kang, D.-H.; Kwon, H.-B.; Lee, S.-M.; Yoo, S.-J.; Hong, U.-S.; Kim, Y.-J. Ammonia cross-sensitivity elimination method of NOx sensor for UREA-SCR (Selective Catalytic Reduction) system. In Proceedings of the 20th International Conference on Solid-State Sensors, Actuators and Microsystems & Eurosensors XXXIII (Transducers & Eurosensors XXXIII); IEEE: New York, NY, USA, 2019; pp. 1246–1249. [Google Scholar]
- Zhang, H.; Wang, J. NOx sensor ammonia-cross-sensitivity factor estimation in diesel engine selective catalytic reduction systems. J. Dyn. Syst. Meas. Control 2015, 137, 061015. [Google Scholar] [CrossRef]
- Samosir, B.F.; Quach, N.Y.; Chul, O.K.; Lim, O. NOx emissions prediction in diesel engines: A deep neural network approach. Environ. Sci. Pollut. Res. 2024, 31, 713–722. [Google Scholar] [CrossRef]
- Karystinos, V.; Papalambrou, G. Deep long short-term memory neural networks as virtual sensors for marine diesel engine NOx prediction at transient conditions. Int. J. Engine Res. 2024, 25, 1024–1036. [Google Scholar] [CrossRef]
- Norouzi, A.; Shahpouri, S.; Gordon, D.; Shahbakhti, M.; Koch, C.R. Safe deep reinforcement learning in diesel engine emission control. Int. J. Engine Res. 2023, 237, 1440–1453. [Google Scholar] [CrossRef]
- Nguyen Khac, H.; Linh Nguyen, T. A review of applications of machine learning for emissions estimation in diesel engines. In The International Conference on Intelligent Systems & Networks; Springer: Berlin/Heidelberg, Germany, 2024; pp. 651–657. [Google Scholar]
- Khujamberdiev, R.; Cho, H.M. Artificial intelligence in automotives: ANNs’ impact on biodiesel engine performance and emissions. Energies 2025, 18, 438. [Google Scholar] [CrossRef]
- Khurana, S.; Saxena, S.; Jain, S.; Dixit, A. Predictive modeling of engine emissions using machine learning: A review. Mater. Today Proc. 2021, 38, 280–284. [Google Scholar] [CrossRef]
- Wang, G.; Awad, O.I.; Liu, S.; Shuai, S.; Wang, Z. NOx emissions prediction based on mutual information and back propagation neural network using correlation quantitative analysis. Energy 2020, 198, 117286. [Google Scholar] [CrossRef]
- Latinov, M.; Fiorini, N.; Vichi, G.; Innocenti, A.; Danti, P. A machine learning approach for engine model-based control on NOx emissions. SAE Tech. Pap. Series 2023. [Google Scholar] [CrossRef]
- Wang, J.; Zhang, Y.; Xiong, Q.; Ding, X. NOx prediction by cylinder pressure based on RBF neural network in diesel engine. In Proceedings of the 2010 International Conference on Measuring Technology and Mechatronics Automation; IEEE: New York, NY, USA, 2010; pp. 792–795. [Google Scholar]
- Wang, T.; Zhong, W.; Chen, X.; Zhou, G.; Shi, J.; Zhang, B. A mechanism-data hybrid-driven approach to reduce NOx emission and slagging for coal-fired boiler using POD reduced order modeling and XGBoost. Appl. Therm. Eng. 2025, 274, 126709. [Google Scholar] [CrossRef]
- Hoque, K.E.; Hossain, T.; Haque, A.M.; Miah, A.K.; Haque, A. NOx emission predictions in gas turbines through integrated data-driven machine learning approaches. J. Energy Resour. Technol. 2024, 146, 071201. [Google Scholar] [CrossRef]
- Zeng, W.; Fu, J.; Zhou, F.; Yu, J.; Liu, J.; Yuan, K. Prediction of transient NOx emission from a non-road diesel engine using a model combining Bayesian search and Population-based training. Atmos. Environ. 2024, 321, 120350. [Google Scholar] [CrossRef]
- Lee, J.; Kwon, S.; Kim, H.; Keel, J.; Yoon, T.; Lee, J. Machine learning applied to the NOx prediction of diesel vehicles under real driving cycle. Appl. Sci. 2021, 11, 3758. [Google Scholar] [CrossRef]
- Liu, B.; Fei, H.; Wang, L.; Li, X.; Yuan, Z.; Fan, L.; Wang, J. Kalman filter-based estimation method for degraded high-pressure common rail system. Energy 2025, 325, 136228. [Google Scholar] [CrossRef]
- Sharma, V.; Winkler, A.; Norouzi, A.; Guo, H.; Andert, J.; Gordon, D. Safe reinforcement learning-based control for hydrogen diesel dual-fuel engines. IFAC-PapersOnLine 2025, 59, 19–24. [Google Scholar] [CrossRef]
- Yadav, G.K.; Muvvala, P.; Reddy, R. Multi-criteria optimization of common rail direct injection engine parameters with isoamyl alcohol blends using Taguchi–grey relational analysis and artificial neural network. Therm. Sci. Eng. Prog. 2025, 63, 103719. [Google Scholar] [CrossRef]
- Akopov, A.S. A Hybrid Multi-Swarm Particle Swarm Optimization Algorithm for Solving Agent-Based Epidemiological Model. Cybern. Inf. Technol. 2025, 25, 59–77. [Google Scholar] [CrossRef]
- Zhang, X.; Chen, Y.; Cheng, L.; Tian, S.; Liu, L. PSO with segmented mutation for site selection in grid-connected photovoltaic power generation system. Appl. Energy 2025, 377, 124352. [Google Scholar] [CrossRef]
- Fu, C.; Cao, X.; Liang, L.; Su, T.; Guan, W.; Pan, M.; Zhang, Z.; Chen, H.; Zhou, X. Prediction of emission characteristics of diesel/n-hexanol/graphene oxide blended fuels based on fast outlier detection-sparrow search algorithm-bidirectional recurrent neural network. Process Saf. Environ. Prot. 2024, 187, 1076–1096. [Google Scholar] [CrossRef]
- Li, J.; Wan, T.; Huang, H.; Chen, G.; Liang, J.; Lei, B. Prediction and verification of performance and emission characteristics of diesel/natural gas dual-fuel engine based on intelligent algorithm. ACS Omega 2023, 8, 18212–18224. [Google Scholar] [CrossRef]
- Mukaka, M.M. A guide to appropriate use of correlation coefficient in medical research. Malawi Med. J. 2012, 24, 69–71. [Google Scholar]
- Chen, T.; Guestrin, C. XGBoost: A S1calable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef]
- Ali, Z.A.; Abduljabbar, Z.H.; Tahir, H.A.; Sallow, A.B.; Almufti, S.M. eXtreme Gradient Boosting Algorithm with Machine Learning: A Review. Acad. J. Nawroz Univ. 2023, 12, 320–334. [Google Scholar] [CrossRef]
- Burnwal, Y.; Jaiswal, R.C. A Comprehensive Survey on Prediction Models and the Impact of XGBoost. Int. J. Res. Appl. Sci. Eng. Technol. 2023, 11, 1552–1556. [Google Scholar] [CrossRef]
- Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the IEEE International Conference on Neural Networks, Perth, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
- Poli, R.; Kennedy, J.; Blackwell, T. Particle swarm optimization: An overview. Swarm Intell. 2007, 1, 35–37. [Google Scholar] [CrossRef]
- Freitas, D.; Lopes, L.G.; Morgado-Dias, F. Particle Swarm Optimisation: A Historical Review Up to the Current Developments. Entropy 2020, 22, 362. [Google Scholar] [CrossRef]
- Miller, C.; Portlock, T.; Nyaga, D.M.; O’sUllivan, J.M. A review of model evaluation metrics for machine learning in genetics and genomics. Front. Bioinform. 2024, 4, 1457619. [Google Scholar] [CrossRef] [PubMed]
- Ji, T.; Adhab, A.H.; Kanabar, B.; Yadav, A.; Prasad, K.V.; Kalia, R.; Mann, V.S.; Rana, P.K.; Mahdi, M.S.; Mansoor, A.S.; et al. Modeling density of carbon dioxide-saturated polyethylene glycol using machine learning techniques. J. Polym. Eng. 2025, 45, 660–673. [Google Scholar] [CrossRef]
- Li, W.; Li, W.; Busch, A.; Wang, L.; Anggara, F.; Yang, S. Machine learning algorithm to predict methane adsorption capacity of coal. Energy Fuels 2024, 38, 23422–23432. [Google Scholar] [CrossRef]
- Liu, L.; Zhuang, J.; Wang, Y.; Li, P.; Guo, D.; Cheng, X. WD-PSTALSTM: A data-driven hybrid model for prediction of diesel vehicle NOx emissions. Energy AI 2025, 21, 100578. [Google Scholar] [CrossRef]

















| Parameters | Specification |
|---|---|
| Engine model | YTN9 (China YTO Group Corporation Luoyang China) |
| Engine type | Four-stroke, water-cooled diesel engine |
| Number of cylinders | 6 cylinders, inline arrangement |
| Bore × stroke | 114 mm × 145 mm |
| Displacement | 8.9 L |
| Compression ratio | 17.5:1 |
| Calibrated power | 236.9 kW |
| Rated power | 273.4 kW |
| Fuel injection system | BOSCH High-pressure common-rail direct injection |
| Exhaust aftertreatment | DOC + DPF + SCR |
| Symbol | Parameter | Search Boundary |
|---|---|---|
| n_estimators | 50–500 | |
| max_depth | 2–15 | |
| learning_rate | 0.01–0.30 | |
| gamma | 0–10 | |
| subsample | 0.5–1.0 | |
| colsample_bytree | 0.5–1.0 | |
| reg_alpha | 0–10 | |
| reg_lambda | 0.1–20 |
| Category | Parameter | Value/Range |
|---|---|---|
| PSO | Swarm size | 20 |
| Maximum iterations | 50 | |
| Inertia weight | 0.7 | |
| Acceleration coefficient | 1.5 | |
| Fitness function | 5-fold CV RMSE |
| DATA | R2 | MAE | RMSE |
|---|---|---|---|
| Training data set | 0.9989 | 1.1577 | 1.5746 |
| Test data set | 0.9662 | 6.3344 | 8.9682 |
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
Zhang, Z.; Wang, P.; Tang, Z. Prediction of Transient NOx Emissions from a Non-Road Heavy-Duty Diesel Engine Based on the PSO-XGBoost Algorithm. Appl. Sci. 2026, 16, 5632. https://doi.org/10.3390/app16115632
Zhang Z, Wang P, Tang Z. Prediction of Transient NOx Emissions from a Non-Road Heavy-Duty Diesel Engine Based on the PSO-XGBoost Algorithm. Applied Sciences. 2026; 16(11):5632. https://doi.org/10.3390/app16115632
Chicago/Turabian StyleZhang, Zhilong, Pan Wang, and Zhenkai Tang. 2026. "Prediction of Transient NOx Emissions from a Non-Road Heavy-Duty Diesel Engine Based on the PSO-XGBoost Algorithm" Applied Sciences 16, no. 11: 5632. https://doi.org/10.3390/app16115632
APA StyleZhang, Z., Wang, P., & Tang, Z. (2026). Prediction of Transient NOx Emissions from a Non-Road Heavy-Duty Diesel Engine Based on the PSO-XGBoost Algorithm. Applied Sciences, 16(11), 5632. https://doi.org/10.3390/app16115632
