journal article·2025-08-02Open access

Predicting Relative Density of Pure Magnesium Parts Produced by Laser Powder Bed Fusion Using XGBoost

Kristijan Šket, Snehashis Pal, Janez Gotlih, Mirko Ficko, Igor Drstvenšek

Applied Sciences· Volume 15· Issue 15

Abstract

In this work, Laser Powder Bed Fusion (LPBF), an additive manufacturing (AM) process, was optimised to produce pure magnesium components. The focus of the presented work is on the prediction of the relative product density using the machine learning model XGBoost to improve the production process and thus the usability of the material for practical use. Experimental tests with different parameters, laser power, scanning speed and layer thickness, and fixed parameters, track overlapping and hatching distance, were analysed and resulted in relative material densities between 89.29% and 99.975%. The XGBoost model showed high predictive power, achieving an R2 test result of 0.835, a mean absolute error (MAE) of 0.728 and a root mean square error (RMSE) of 0.982. Feature importance analysis showed that the interaction of laser power and scanning speed had the largest influence on the predictions at 35.9%, followed by laser power × layer thickness at 29.0%. The individual contributions were laser power (11.8%), scanning speed (10.7%), scanning speed × layer thickness (9.0%) and layer thickness (3.6%). These results provide a data-based method for LPBF parameter settings that improve manufacturing efficiency and component performance in the aerospace, automotive and biomedical industries and identify optimal parameter regions for a high density, serving as a pre-optimisation stage.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Additive Manufacturing Materials and Processes · Additive Manufacturing and 3D Printing Technologies · High Entropy Alloys Studies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Mechanical Engineering Maribor, University of Maribor, Smetanova 17, SI-2000 Maribor, Slovenia

Funding

The Slovenian Research and Innovation Agency

References (40)

Show source-provided references
1. Laser Powder Bed Fusion: A State-of-the-Art Review of the Technology, Materials, Properties & Defects, and Numerical Modelling10.1016/j.jmrt.2022.07.121 ↗
2. Amorphous Magnesium Alloy with High Corrosion Resistance Fabricated by Laser Powder Bed Fusion10.1016/j.jallcom.2021.163247 ↗
3. Laser Powder Bed Fusion of Biodegradable Magnesium Alloys: Process, Microstructure and Properties10.1088/2631-7990/ad967e ↗
4. The Potential of SLM Technology for Processing Magnesium Alloys in Aerospace Industry10.1007/s43452-020-00033-1 ↗
5. Magnesium and Its Alloys Applications in Automotive Industry10.1007/s00170-007-1279-2 ↗
6. Magnesium: Properties—Applications—Potential10.1016/S0921-5093(00)01351-4 ↗
7. Laser Additive Manufacturing of Biodegradable Mg-Based Alloys for Biomedical Applications: A Review10.1016/j.jma.2021.12.014 ↗
8. Process Development and Risk Assessment for Processing Magnesium Alloys Using LPBF Technology10.1007/s00501-025-01559-8 ↗
9. Additive Manufacturing of Biodegradable Metals: Current Research Status and Future Perspectives10.1016/j.actbio.2019.04.046 ↗
10. Sharma, S.K., Grewal, H.S., Saxena, K.K., Mohammed, K.A., Prakash, C., Davim, J.P., Buddhi, D., Raju, R., Mohan, D.G., and Tomków, J. (2022). Advancements in the Additive Manufacturing of Magnesium and Aluminum Alloys through Laser-Based Approach. Materials, 15.10.3390/ma15228122 ↗
11. Recent Progress and Perspectives in Additive Manufacturing of Magnesium Alloys10.1016/j.jma.2022.03.001 ↗
12. A New Approach for Manufacturing Stochastic Pure Magnesium Foam by Laser Powder Bed Fusion: Fabrication, Geometrical Characteristics, and Compressive Mechanical Properties10.1002/adem.202100483 ↗
13. Effect of Process Parameters on Surface Integrity of LPBF Ti6Al4V10.1016/j.procir.2022.03.111 ↗
14. Exploring How LPBF Process Parameters Impact the Interface Characteristics of LPBF Inconel 718 Deposited on Inconel 718 Wrought Substrates10.1016/j.optlastec.2024.110571 ↗
15. Systematic Approach to Process Parameter Optimization for Laser Powder Bed Fusion of Low-Alloy Steel Based on Melting Modes10.1007/s00170-023-11377-2 ↗
16. Formation of Keyhole and Lack of Fusion Pores during the Laser Powder Bed Fusion Process10.1016/j.mfglet.2022.01.005 ↗
17. Mitigating Keyhole Pore Formation by Nanoparticles during Laser Powder Bed Fusion Additive Manufacturing10.1016/j.addlet.2022.100068 ↗
18. Understanding Keyhole Induced-Porosities in Laser Powder Bed Fusion of Aluminum and Elimination Strategy10.1016/j.ijmachtools.2022.103977 ↗
19. Metal Vaporization and Its Influence during Laser Powder Bed Fusion Process10.1016/j.matdes.2022.110505 ↗
20. Machine Learning in Additive Manufacturing: A Comprehensive Insight
21. Using Machine Learning to Aid in the Parameter Optimisation Process for Metal-Based Additive Manufacturing10.1108/RPJ-08-2019-0213 ↗
22. Machine-Learning Assisted Laser Powder Bed Fusion Process Optimization for AlSi10Mg: New Microstructure Description Indices and Fracture Mechanisms10.1016/j.actamat.2020.10.010 ↗
23. Chen, T., and Guestrin, C. (2016, January 13). XGBoost: A Scalable Tree Boosting System. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Toronto, ON, Canada. Association for Computing Machinery.10.1145/2939672.2939785 ↗
24. Zou, M., Jiang, W.G., Qin, Q.H., Liu, Y.C., and Li, M.L. (2022). Optimized XGBoost Model with Small Dataset for Predicting Relative Density of Ti-6Al-4V Parts Manufactured by Selective Laser Melting. Materials, 15.10.3390/ma15155298 ↗
25. Progress in Additive Manufacturing and Rapid Prototyping10.1016/S0007-8506(07)63240-5 ↗
26. Single Track Formation in Selective Laser Melting of Metal Powders10.1016/j.jmatprotec.2010.05.010 ↗
27. Analysis of Defect Generation in Ti-6Al-4V Parts Made Using Powder Bed Fusion Additive Manufacturing Processes
28. A Study of the Microstructural Evolution during Selective Laser Melting of Ti-6Al-4V10.1016/j.actamat.2010.02.004 ↗
29. Gibson, I., Rosen, D., and Stucker, B. (2015). Additive Manufacturing Technologies, Springer.10.1007/978-1-4939-2113-3 ↗
30. Additive Manufacturing of Metallic Components—Process, Structure and Properties10.1016/j.pmatsci.2017.10.001 ↗
31. Trevisan, F., Calignano, F., Lorusso, M., Pakkanen, J., Aversa, A., Ambrosio, E., Lombardi, M., Fino, P., and Manfredi, D. (2017). On the Selective Laser Melting (SLM) of the AlSi10Mg Alloy: Process, Microstructure, and Mechanical Properties. Materials, 10.10.3390/ma10010076 ↗
32. Bisong, E. (2019). Introduction to Scikit-Learn. Building Machine Learning and Deep Learning Models on Google Cloud Platform, Apress.10.1007/978-1-4842-4470-8 ↗
33. A Systematic Literature Review: Recursive Feature Elimination Algorithms10.33480/jitk.v9i2.5015 ↗
34. Regularization and Variable Selection Via the Elastic Net10.1111/j.1467-9868.2005.00503.x ↗
35. Marcilio, W.E., and Eler, D.M. (2020, January 7–10). From Explanations to Feature Selection: Assessing SHAP Values as Feature Selection Mechanism. Proceedings of the 2020 33rd SIBGRAPI Conference on Graphics, Patterns and Images (SIBGRAPI), Porto de Galinhas, Brazil.10.1109/SIBGRAPI51738.2020.00053 ↗
36. Experimental Investigation on Selective Laser Melting of Bulk Net-Shape Pure Magnesium10.1080/10426914.2015.1025963 ↗
37. Zhang, T., Zhou, X., Zhang, P., Duan, Y., Cheng, X., Wang, X., and Ding, G. (2022). Hardness Prediction of Laser Powder Bed Fusion Product Based on Melt Pool Radiation Intensity. Materials, 15.10.3390/ma15134674 ↗
38. Multi-Objective Optimization of LPBF Manufacturing with Zn-4Al-1Cu Alloy for Technical Applications10.1016/j.jmapro.2024.12.049 ↗
39. Microhardness and Wear Resistance in Materials Manufactured by Laser Powder Bed Fusion: Machine Learning Approach for Property Prediction10.1016/j.cirpj.2023.03.002 ↗
40. Chen, J., and Chen, B. (2024). Progress in Additive Manufacturing of Magnesium Alloys: A Review. Materials, 17.10.3390/ma17153851 ↗