Comparative Study of Machine Learning Models for Optimal Prediction of Printed-Line Features in Material Extrusion Additive Manufacturing
Abstract
1. Introduction
2. Experimental Setup and Feature Analysis
2.1. Working Principles and Experimental Design
2.2. Feature Extraction
2.3. Statistical Feature Analysis of the Dataset
3. Methodology
3.1. Modeling Methods
3.2. Selection of Model Hyperparameters
3.3. Dataset Pre-Processing and Model Evaluation
3.4. SHAP-Based Interpretability Analysis
4. Results and Discussion
4.1. Determination of Dataset Division Ratio
4.2. Comparative Analysis of Modeling Performance
4.3. Feature Analysis
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Penumakala, P.K.; Santo, J.; Thomas, A. A Critical Review on the Fused Deposition Modeling of Thermoplastic Polymer Composites. Compos. Part B Eng. 2020, 201, 108336. [Google Scholar] [CrossRef] [Scilit]
- Ahmad, N.N.; Wong, Y.H.; Ghazali, N.N.N. A Systematic Review of Fused Deposition Modeling Process Parameters. Soft Sci. 2022, 2, 11. [Google Scholar] [CrossRef] [Scilit]
- Cano-Vicent, A.; Tambuwala, M.M.; Hassan, S.S.; Barh, D.; Aljabali, A.A.A.; Birkett, M.; Arjunan, A.; Serrano-Aroca, Á. Fused Deposition Modelling: Current Status, Methodology, Applications and Future Prospects. Addit. Manuf. 2021, 47, 102378. [Google Scholar] [CrossRef] [Scilit]
- Kumar, P.; Shamim; Muztaba, M.; Ali, T.; Bala, J.; Sidhu, H.S.; Bhatia, A. Fused Deposition Modeling 3D-Printed Scaffolds for Bone Tissue Engineering Applications: A Review. Ann. Biomed. Eng. 2024, 52, 1184–1194. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Korpela, J.; Kokkari, A.; Korhonen, H.; Malin, M.; Närhi, T.; Seppälä, J. Biodegradable and Bioactive Porous Scaffold Structures Prepared Using Fused Deposition Modeling. J. Biomed. Mater. Res. 2013, 101B, 610–619. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mogan, J.; Harun, W.S.W.; Kadirgama, K.; Ramasamy, D.; Foudzi, F.M.; Sulong, A.B.; Tarlochan, F.; Ahmad, F. Fused Deposition Modelling of Polymer Composite: A Progress. Polymers 2022, 15, 28. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pervaiz, S.; Qureshi, T.A.; Kashwani, G.; Kannan, S. 3D Printing of Fiber-Reinforced Plastic Composites Using Fused Deposition Modeling: A Status Review. Materials 2021, 14, 4520. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nassar, H.; Dahiya, R. Fused Deposition Modeling-Based 3D-Printed Electrical Interconnects and Circuits. Adv. Intell. Syst. 2021, 3, 2100102. [Google Scholar] [CrossRef] [Scilit]
- Mwema, F.M.; Akinlabi, E.T. Basics of Fused Deposition Modelling (FDM). In Fused Deposition Modeling; SpringerBriefs in Applied Sciences and Technology; Springer International Publishing: Cham, Switzerland, 2020; pp. 1–15. [Google Scholar]
- Gao, G.; Xu, F.; Xu, J.; Tang, G.; Liu, Z. A Survey of the Influence of Process Parameters on Mechanical Properties of Fused Deposition Modeling Parts. Micromachines 2022, 13, 553. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pérez, M.; Medina-Sánchez, G.; García-Collado, A.; Gupta, M.; Carou, D. Surface Quality Enhancement of Fused Deposition Modeling (FDM) Printed Samples Based on the Selection of Critical Printing Parameters. Materials 2018, 11, 1382. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bakrani Balani, S.; Mokhtarian, H.; Salmi, T.; Coatanéa, E. An Investigation of the Influence of Viscosity and Printing Parameters on the Extrudate Geometry in the Material Extrusion Process. Polymers 2023, 15, 2202. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Buj-Corral, I.; Domínguez-Fernández, A.; Durán-Llucià, R. Influence of Print Orientation on Surface Roughness in Fused Deposition Modeling (FDM) Processes. Materials 2019, 12, 3834. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gao, J.; Li, W.; Wang, J.; Wang, X.; Sha, C.; Zhao, K. Comprehensive Analysis of Fused Deposition Modeling Process Conditions for Enhancing Mechanical Properties and Surface Quality of 3D-Printed Poly-Ether-Ether-Ketone. Polym. Test. 2024, 134, 108432. [Google Scholar] [CrossRef] [Scilit]
- Birosz, M.T.; Ledenyák, D.; Andó, M. Effect of FDM Infill Patterns on Mechanical Properties. Polym. Test. 2022, 113, 107654. [Google Scholar] [CrossRef] [Scilit]
- Ekşi, S.; Karakaya, C. Effects of Process Parameters on Tensile Properties of 3D-Printed PLA Parts Fabricated with the FDM Method. Polymers 2025, 17, 1934. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mohamed, O.A.; Masood, S.H.; Bhowmik, J.L. Mathematical Modeling and FDM Process Parameters Optimization Using Response Surface Methodology Based on Q-Optimal Design. Appl. Math. Model. 2016, 40, 10052–10073. [Google Scholar] [CrossRef] [Scilit]
- Vyavahare, S.; Kumar, S.; Panghal, D. Experimental Study of Surface Roughness, Dimensional Accuracy and Time of Fabrication of Parts Produced by Fused Deposition Modelling. Rapid Prototyp. J. 2020, 26, 1535–1554. [Google Scholar] [CrossRef] [Scilit]
- Gosset, A.; Barreiro-Villaverde, D.; Becerra Permuy, J.C.; Lema, M.; Ares-Pernas, A.; Abad López, M.J. Experimental and Numerical Investigation of the Extrusion and Deposition Process of a Poly(Lactic Acid) Strand with Fused Deposition Modeling. Polymers 2020, 12, 2885. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rashid, A.A.; Koç, M. Fused Filament Fabrication Process: A Review of Numerical Simulation Techniques. Polymers 2021, 13, 3534. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Behseresht, S.; Park, Y.H.; Love, A.; Valdez Pastrana, O.A. Application of Numerical Modeling and Finite Element Analysis in Fused Filament Fabrication: A Review. Materials 2024, 17, 4185. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ng, W.L.; Goh, G.L.; Goh, G.D.; Ten, J.S.J.; Yeong, W.Y. Progress and Opportunities for Machine Learning in Materials and Processes of Additive Manufacturing. Adv. Mater. 2024, 36, 2310006. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mondal, S.; Shubhra Goswami, S. Machine Learning Techniques for Quality Assurance in Additive Manufacturing Processes. Int. J. AI Mater. Des. 2024, 1, 21. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Kim, Y.; Cui, L.; Moon, S.K.; Choi, J.P. AI-Driven Process Optimization Framework for Enhancing Print Quality in Aerosol Jet Printing. Int. J. Precis. Eng. Manuf.-Green Technol. 2025, 12, 853–867. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Liu, Z.; Yin, S.; Choi, J.P.; Zhang, H. Comparison and Identification of Optimal Machine Learning Model for Rapid Optimization of Printed Line Characteristics of Aerosol Jet Printing Technology. Int. J. Precis. Eng. Manuf.-Green Technol. 2024, 11, 71–87. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Yin, S.; Liu, Z.; Zhang, H. A Machine Learning Framework for Process Optimization in Aerosol Jet 3D Printing. Flex. Print. Electron. 2023, 8, 025017. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Huang, J.; Zhang, X.; Wong, C.-N. Uncertainty Quantification of Aerosol Jet 3D Printing Process Using Non-Intrusive Polynomial Chaos and Stochastic Collocation. Adv. Eng. Inform. 2025, 65, 103175. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Yu, Y.; Liu, X.; Liang, N.; Kim, Y.; Shin, D.; Moon, S.K.; Choi, J.P. Autonomous Printing Process Optimisation and In-Situ Anomaly Detection in Fused Deposition Modelling Using an Integrated Data-Driven Approach. Virtual Phys. Prototyp. 2025, 20, e2545523. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Moon, S.K.; Ngo, T.H.; Tou, J.; Mohamed, A.B.M.Y. A Hybrid Machine Learning Approach for the Quality Optimization of a 3D Printed Sensor. In Proceedings of the 2018 International Conference on Intelligent Rail Transportation (ICIRT); IEEE: Singapore, 2018; pp. 1–5. [Google Scholar]
- Zhang, H.; Cui, L.; Lee, P.-H.; Kim, Y.; Moon, S.K.; Choi, J.P. Data-Driven Autonomous Printing Process Optimization and Real-Time Abnormality Identification in Aerosol Jet-Deposited Droplet Morphology. Virtual Phys. Prototyp. 2024, 19, e2429530. [Google Scholar] [CrossRef] [Scilit]
- ISO/ASTM 52900:2021; Additive Manufacturing—General Principles—Fundamentals and Vocabulary. International Organization for Standardization (ISO): Geneva, Switzerland, 2021.
- Crump, S.S. Apparatus and Method for Creating Three-Dimensional Objects. U.S. Patent 5,121,329, 9 June 1992. Available online: https://patents.google.com/patent/US5121329A (accessed on 10 July 2026).
- ISO/IEC 22989:2022; Information Technology—Artificial Intelligence—Artificial Intelligence Concepts and Terminology. International Organization for Standardization (ISO): Geneva, Switzerland, 2022.
- ISO 21920-2:2021; Geometrical Product Specifications (GPS)—Surface Texture: Profile—Part 2: Terms, Definitions and Surface Texture Parameters. International Organization for Standardization (ISO): Geneva, Switzerland, 2021.
- Liu, G.; Xiong, Y.; Rosen, D.W. Multidisciplinary Design Optimization in Design for Additive Manufacturing. J. Comput. Des. Eng. 2021, 9, 128–143. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Choi, J.P.; Moon, S.K.; Ngo, T.H. A Multi-Objective Optimization Framework for Aerosol Jet Customized Line Width Printing via Small Data Set and Prediction Uncertainty. J. Mater. Process. Technol. 2020, 285, 116779. [Google Scholar] [CrossRef] [Scilit]
- Yang, L.; Shami, A. On Hyperparameter Optimization of Machine Learning Algorithms: Theory and Practice. Neurocomputing 2020, 415, 295–316. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Zhang, Y.; Wen, Y.; Ren, Y. Data-Driven XGBoost Model for Maximum Stress Prediction of Additive Manufactured Lattice Structures. Complex Intell. Syst. 2023, 9, 5881–5892. [Google Scholar] [CrossRef] [Scilit]
- Zou, M.; Jiang, W.-G.; Qin, Q.-H.; Liu, Y.-C.; Li, M.-L. Optimized XGBoost Model with Small Dataset for Predicting Relative Density of Ti-6Al-4V Parts Manufactured by Selective Laser Melting. Materials 2022, 15, 5298. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, Y.; Ding, F.; Tian, W. Optimization of 3D Printing Parameters on Deformation by BP Neural Network Algorithm. Metals 2022, 12, 1559. [Google Scholar] [CrossRef] [Scilit]
- Jin, S.; Iquebal, A.; Bukkapatnam, S.; Gaynor, A.; Ding, Y. A Gaussian Process Model-Guided Surface Polishing Process in Additive Manufacturing. J. Manuf. Sci. Eng. 2020, 142, 011003. [Google Scholar] [CrossRef] [Scilit]
- Nasrin, T.; Pourali, M.; Pourkamali-Anaraki, F.; Peterson, A.M. Active Learning for Prediction of Tensile Properties for Material Extrusion Additive Manufacturing. Sci. Rep. 2023, 13, 11460. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zahmatkeshan, M.H.; Biglari, F.R.; Mollaei Dariani, B. Flexural Optimization in Repair of Notched 3D-Printed PLA with Variable PLA Patches: A Support Vector Regression and Bayesian Optimization Approach for Circular Economy Applications. Appl. Soft Comput. 2026, 201, 115502. [Google Scholar] [CrossRef] [Scilit]
- Dejene, N.D.; Lemu, H.G. Characterisation and Prediction of Mechanical Properties in Laser Powder Bed Fusion-Printed Parts: A Comparative Analysis Using Machine Learning. Mater. Technol. 2024, 39, 2419228. [Google Scholar] [CrossRef] [Scilit]
- Lorenzo, P.R.; Nalepa, J.; Kawulok, M.; Ramos, L.S.; Pastor, J.R. Particle Swarm Optimization for Hyper-Parameter Selection in Deep Neural Networks. In Proceedings of the Genetic and Evolutionary Computation Conference; ACM: Berlin, Germany, 2017; pp. 481–488. [Google Scholar]
- Miranda, L.J.V. PySwarms: A Research Toolkit for Particle Swarm Optimization in Python. J. Open Source Softw. 2018, 3, 433. [Google Scholar] [CrossRef] [Scilit]
- Pedregosa, F.; Pedregosa, F.; Varoquaux, G.; Varoquaux, G.; Org, N.; Gramfort, A.; Gramfort, A.; Michel, V.; Michel, V.; Fr, L.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Yu, A.; Pan, Y.; Yue, L.; Kang, F.; Zhang, J.; Lu, X. Explainable Machine Learning for Hardness Prediction of Laser Powder Bed Fused Ti-6Al-4V and Assisting in Understanding Effects of Process Parameters. J. Alloys Compd. 2024, 1008, 176566. [Google Scholar] [CrossRef] [Scilit]
- Sharma, A.; Saini, R.S.; Kaushik, A.; Okshah, A.; Kuruniyan, M.S.; Gurumurthy, V.; Vyas, R.; Binduhayyim, R.I.H.; Heboyan, A. Machine Learning Based Approach for Surface Roughness Prediction in Precision Dental Prototyping. Sci. Rep. 2025, 15, 32239. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Joseph, V.R. Optimal Ratio for Data Splitting. Stat. Anal. 2022, 15, 531–538. [Google Scholar] [CrossRef] [Scilit]
- Gholamy, A.; Kreinovich, V.; Kosheleva, O. Why 70/30 or 80/20 Relation Between Training and Testing Sets: A Pedagogical Explanation; Departmental Technical Report UTEP-CS-18-09; University of Texas at El Paso: El Paso, TX, USA, 2018; pp. 1–6. Available online: https://scholarworks.utep.edu/cs_techrep/1209/ (accessed on 10 July 2026).
- Reddy, B.V.S.; Shaik, A.M.; Sastry, C.C.; Krishnaiah, J.; Patil, S.; Nikhare, C.P. Performance Evaluation of Machine Learning Techniques in Surface Roughness Prediction for 3D Printed Micro-Lattice Structures. J. Manuf. Process. 2025, 137, 320–341. [Google Scholar] [CrossRef] [Scilit]














| Process Parameters | Experimental Conditions | |||||
|---|---|---|---|---|---|---|
| Print Speed | Flow Rate Multiplier | Nozzle Temperature | Material | Tip Diameter | Working Distance | Bed Temperature |
| 60–900 mm/min | 50–200% | 230–310 °C | ABS | 0.4 mm | 0.2 mm | 100 °C |
| Model | Hyperparameter | Search Range |
|---|---|---|
| XGBoost | learning_rate | [0.01, 0.30] (log scale) |
| n_estimators | [100, 1000] (integer) | |
| max_depth | [2, 8] (integer) | |
| BPNN | alpha (L2) | [1 × 10−6, 1.0] (log scale) |
| hidden_size_1 | [8, 128] (integer) | |
| hidden_size_2 | [0, 64] (integer; 0 = no 2nd layer) | |
| GPR | length scale ℓ | [1 × 10−2, 1 × 102] (log scale) |
| noise variance σn2 | [1 × 10−6, 1.0] (log scale) | |
| SVR | C | [1 × 10−1, 1 × 103] (log scale) |
| γ (gamma) | [1 × 10−3, 1 × 101] (log scale) | |
| ε (epsilon) | [1 × 10−4, 1 × 10−1] (log scale) |
| Model | Training Dataset | Testing Dataset | ||||||
|---|---|---|---|---|---|---|---|---|
| RMSE | MAE | R | R2 | RMSE | MAE | R | R2 | |
| XGBoost | 0.0644 | 0.0501 | 0.9670 | 0.9326 | 0.0761 | 0.0595 | 0.9464 | 0.8728 |
| BPNN | 0.1066 | 0.0845 | 0.9182 | 0.8151 | 0.0984 | 0.0852 | 0.8965 | 0.7869 |
| GPR | 0.0508 | 0.0421 | 0.9788 | 0.9580 | 0.0647 | 0.0516 | 0.9571 | 0.9080 |
| SVR | 0.0943 | 0.0733 | 0.9360 | 0.8553 | 0.0897 | 0.0757 | 0.9090 | 0.8230 |
| Model | Training Dataset | Testing Dataset | ||||||
|---|---|---|---|---|---|---|---|---|
| RMSE | MAE | R | R2 | RMSE | MAE | R | R2 | |
| XGBoost | 0.0070 | 0.0050 | 0.9531 | 0.9008 | 0.0075 | 0.0059 | 0.9278 | 0.8596 |
| BPNN | 0.0111 | 0.0086 | 0.8823 | 0.7516 | 0.0101 | 0.0085 | 0.8705 | 0.7465 |
| GPR | 0.0053 | 0.0042 | 0.9713 | 0.9433 | 0.0060 | 0.0046 | 0.9549 | 0.9101 |
| SVR | 0.0090 | 0.0071 | 0.9273 | 0.8359 | 0.0087 | 0.0073 | 0.9059 | 0.8115 |
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
Shen, S.; Chen, R.; Sun, W.; Zhao, M.; Zhang, H. Comparative Study of Machine Learning Models for Optimal Prediction of Printed-Line Features in Material Extrusion Additive Manufacturing. Materials 2026, 19, 3092. https://doi.org/10.3390/ma19143092
Shen S, Chen R, Sun W, Zhao M, Zhang H. Comparative Study of Machine Learning Models for Optimal Prediction of Printed-Line Features in Material Extrusion Additive Manufacturing. Materials. 2026; 19(14):3092. https://doi.org/10.3390/ma19143092
Chicago/Turabian StyleShen, Shuhao, Ruohan Chen, Wenjie Sun, Meiya Zhao, and Haining Zhang. 2026. "Comparative Study of Machine Learning Models for Optimal Prediction of Printed-Line Features in Material Extrusion Additive Manufacturing" Materials 19, no. 14: 3092. https://doi.org/10.3390/ma19143092
APA StyleShen, S., Chen, R., Sun, W., Zhao, M., & Zhang, H. (2026). Comparative Study of Machine Learning Models for Optimal Prediction of Printed-Line Features in Material Extrusion Additive Manufacturing. Materials, 19(14), 3092. https://doi.org/10.3390/ma19143092

