A Physics-Informed Convolutional Neural Network with Custom Loss Functions for Porosity Prediction in Laser Metal Deposition
Abstract
1. Introduction
1.1. Background of Laser Metal Deposition and Challenges
1.2. Physics Models in LMD
1.3. In Situ Monitoring Techniques in LMD
1.4. Machine Learning-Based Models in LMD
1.5. PIML Models in AM
2. Data Description
2.1. Experimental Data via Pyrometer
2.2. Physics-Based Data via FEA
3. Method
3.1. Base CNN
3.2. Physics-Informed Custom Loss Functions
3.3. Methods of Implementation (MoIs)
4. Results
4.1. Training, Validation, Testing Splits
4.2. Data Pre-Processing and Augmentation
4.3. Results
4.4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Conflicts of Interest
References
- Mahamood, R.; Akinlabi, E.T. Laser metal deposition of functionally graded Ti6Al4V/TiC. Mater. Des. 2015, 84, 402–410. [Google Scholar] [CrossRef] [Scilit]
- Gasser, A.; Backes, G.; Kelbassa, I.; Weisheit, A.; Wissenbach, K. Laser Additive Manufacturing: Laser Metal Deposition (LMD) and Selective Laser Melting (SLM) in Turbo-Engine Applications. Laser Tech. J. 2010, 7, 58–63. [Google Scholar] [CrossRef] [Scilit]
- Liu, R.; Wang, Z.; Sparks, T.; Liou, F.; Newkirk, J. 13-Aerospace applications of laser additive manufacturing. In Laser Additive Manufacturing; Brandt, M., Ed.; Woodhead Publishing Series in Electronic and Optical Materials; Woodhead Publishing: Cambridge, UK, 2017; pp. 351–371. [Google Scholar] [CrossRef] [Scilit]
- Azarniya, A.; Colera, X.G.; Mirzaali, M.J.; Sovizi, S.; Bartolomeu, F.; Wits, W.W.; Yap, C.Y.; Ahn, J.; Miranda, G.; Silva, F.S.; et al. Additive manufacturing of Ti–6Al–4V parts through laser metal deposition (LMD): Process, microstructure, and mechanical properties. J. Alloys Compd. 2019, 804, 163–191. [Google Scholar] [CrossRef] [Scilit]
- Oskolkov, A.; Bezukladnikov, I.; Trushnikov, D. Indirect Temperature Measurement in High Frequency Heating Systems. Sensors 2021, 21, 2561. [Google Scholar] [CrossRef] [Scilit]
- Khanzadeh, M.; Tian, W.; Yadollahi, A.; Doude, H.R.; Tschopp, M.A.; Bian, L. Dual Process Monitoring of Metal-based Additive Manufacturing using Tensor Decomposition of Thermal Image Streams. Addit. Manuf. 2018, 23, 443–456. [Google Scholar] [CrossRef] [Scilit]
- Marshall, G.J.; Young, W.J.; Thompson, S.M.; Shamsaei, N.; Daniewicz, S.R.; Shao, S. Understanding the Microstructure Formation of Ti-6Al-4V During Direct Laser Deposition via In-Situ Thermal Monitoring. JOM 2016, 68, 778–790. [Google Scholar] [CrossRef] [Scilit]
- Khanzadeh, M.; Chowdhury, S.; Tschopp, M.A.; Doude, H.R.; Marufuzzaman, M.; Bian, L. In-Situ Monitoring of Melt Pool Images for Porosity Prediction in Directed Energy Deposition Processes. IISE Trans. 2019, 51, 437–455. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.P.; Liu, C.; Bai, Y.; Rao, P.; Williams, C.B.; Kong, Z.J. Layer-Wise Spatial Modeling of Porosity in Additive Manufacturing. IISE Trans. 2019, 51, 109–123. [Google Scholar] [CrossRef] [Scilit]
- Goldak, J.; Chakravarti, A.; Bibby, M. A New Finite Element Model for Welding Heat Sources. Metall. Trans. B 1984, 15, 299–305. [Google Scholar] [CrossRef] [Scilit]
- Zinovieva, O.; Zinoviev, A.; Ploshikhin, V.; Romanova, V.; Balokhonov, R. Strategy of computational predictions for mechanical behaviour of additively manufactured materials. Mater. Sci. Technol. 2018, 34, 1591–1605. [Google Scholar] [CrossRef] [Scilit]
- Raghavan, A.; Wei, H.; Palmer, T.; Debroy, T. Heat transfer and fluid flow in additive manufacturing. J. Laser Appl. 2013, 25, 052006. [Google Scholar] [CrossRef] [Scilit]
- Hooper, P.A. Melt pool temperature and cooling rates in laser powder bed fusion. Addit. Manuf. 2018, 22, 548–559. [Google Scholar] [CrossRef] [Scilit]
- Boettinger, W.J.; Warren, J.A.; Beckermann, C.; Karma, A. Phase-field simulation of solidification. Annu. Rev. Mater. Res. 2002, 32, 163–194. [Google Scholar] [CrossRef] [Scilit]
- Rappaz, M.; Gandin, C.A. Probabilistic modelling of microstructure formation in solidification processes. Acta Metall. Mater. 1993, 41, 345–360. [Google Scholar] [CrossRef] [Scilit]
- Lian, Y.; Gan, Z.; Yu, C.; Kats, D.; Liu, W.K.; Wagner, G.J. A cellular automaton finite volume method for microstructure evolution during additive manufacturing. Mater. Des. 2019, 169, 107672. [Google Scholar] [CrossRef] [Scilit]
- Zinovieva, O.; Romanova, V.; Balokhonov, R. Effects of scanning pattern on the grain structure and elastic properties of additively manufactured 316L austenitic stainless steel. Mater. Sci. Eng. A 2021, 832, 142447. [Google Scholar] [CrossRef] [Scilit]
- Everton, S.K.; Hirsch, M.; Stravroulakis, P.; Leach, R.K.; Clare, A.T. Review of in-situ process monitoring and in-situ metrology for metal additive manufacturing. Mater. Des. 2016, 95, 431–445. [Google Scholar] [CrossRef] [Scilit]
- Hirsch, M.; Patel, R.; Li, W.; Guan, G.; Leach, R.K.; Sharples, S.D.; Clare, A.T. Assessing the capability of in-situ nondestructive analysis during layer based additive manufacture. Addit. Manuf. 2017, 13, 135–142. [Google Scholar] [CrossRef] [Scilit]
- Lou, S.; Zhu, Z.; Zeng, W.; Majewski, C.; Scott, P.; Jiang, X. Material ratio curve of 3D surface topography of additively manufactured parts: An attempt to characterise open surface pores. Surf. Topogr. Metrol. Prop. 2021, 9, 015029. [Google Scholar] [CrossRef] [Scilit]
- Wojnowski, W.; Kalinowska, K.; Gębicki, J.; Zabiegała, B. Monitoring the BTEX Volatiles during 3D Printing with Acrylonitrile Butadiene Styrene (ABS) Using Electronic Nose and Proton Transfer Reaction Mass Spectrometry. Sensors 2020, 20, 5531. [Google Scholar] [CrossRef] [Scilit]
- Tian, Q.; Guo, S.; Melder, E.; Bian, L.; Guo, W. Deep Learning-Based Data Fusion Method for In Situ Porosity Detection in Laser-Based Additive Manufacturing. J. Manuf. Sci. Eng. 2021, 143, 041011. [Google Scholar] [CrossRef] [Scilit]
- Gawade, V.; Singh, V.; Guo, W. Leveraging Simulated and Empirical Data-Driven Insight to Supervised-Learning for Porosity Prediction in Laser Metal Deposition. J. Manuf. Syst. 2021. [Google Scholar] [CrossRef] [Scilit]
- Khanzadeh, M.; Chowdhury, S.; Marufuzzaman, M.; Tschopp, M.A.; Bian, L. Porosity prediction: Supervised-learning of thermal history for direct laser deposition. J. Manuf. Syst. 2018, 47, 69–82. [Google Scholar] [CrossRef] [Scilit]
- Yang, Z.; Lu, Y.; Yeung, H.; Krishnamurty, S. Investigation of Deep Learning for Real-Time Melt Pool Classification in Additive Manufacturing. In Proceedings of the 2019 IEEE 15th International Conference on Automation Science and Engineering (CASE), Vancouver, BC, Canada, 22–26 August 2019; pp. 640–647. [Google Scholar] [CrossRef] [Scilit]
- Guo, W.; Tian, Q.; Guo, S.; Guo, Y. A Physics-Driven Deep Learning Model for Process-Porosity Causal Relationship and Porosity Prediction with Interpretability in Laser Metal Deposition. CIRP Ann.-Manuf. Technol. 2020, 69, 205–208. [Google Scholar] [CrossRef] [Scilit]
- Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-informed machine learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef] [Scilit]
- Willard, J.; Jia, X.; Xu, S.; Steinbach, M.; Kumar, V. Integrating Physics-Based Modeling with Machine Learning: A Survey. arXiv 2020, arXiv:2003.04919. [Google Scholar]
- Kapusuzoglu, B.; Mahadevan, S. Physics-Informed and Hybrid Machine Learning in Additive Manufacturing: Application to Fused Filament Fabrication. JOM 2020, 72, 4695–4705. [Google Scholar] [CrossRef] [Scilit]
- Liu, R.; Liu, S.; Zhang, X. A Physics-Informed Machine Learning Model for Porosity Analysis in Laser Powder Bed Fusion Additive Manufacturing. Int. J. Adv. Manuf. Technol. 2021, 113, 1943–1958. [Google Scholar] [CrossRef] [Scilit]
- Karpatne, A.; Watkins, W.; Read, J.; Kumar, V. Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling. arXiv 2018, arXiv:1710.11431. [Google Scholar]
- Zhu, Q.; Liu, Z.; Yan, J. Machine learning for metal additive manufacturing: Predicting temperature and melt pool fluid dynamics using physics-informed neural networks. Comput. Mech. 2021, 67, 619–635. [Google Scholar] [CrossRef] [Scilit]
- Barton, S.; Alakkari, S.; O’Dwyer, K.; Ward, T.; Hennelly, B. Convolution Network with Custom Loss Function for the Denoising of Low SNR Raman Spectra. Sensors 2021, 21, 4623. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Muthukumar, V.; Narang, A.; Subramanian, V.; Belkin, M.; Hsu, D.; Sahai, A. Classification vs regression in overparameterized regimes: Does the loss function matter? J. Mach. Learn. Res. 2021, 22, 1–69. [Google Scholar]
- Marshall, G.J.; Thompson, S.M.; Shamsaei, N. Data indicating temperature response of Ti–6Al–4V thin-walled structure during its additive manufacture via Laser Engineered Net Shaping. Data Brief 2016, 7, 697–703. [Google Scholar] [CrossRef] [Scilit]
- Romano, J.; Ladani, L.; Sadowski, M. Thermal Modeling of Laser Based Additive Manufacturing Processes within Common Materials. Procedia Manuf. 2015, 1, 238–250. [Google Scholar] [CrossRef] [Scilit]
- Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv 2015, arXiv:1409.1556. [Google Scholar]





| MoI | Set | Accuracy (%) | Precision (%) | Recall (%) | TP | TN | FP | FN |
|---|---|---|---|---|---|---|---|---|
| (Weighted Avg.) | (Weighted Avg.) | |||||||
| 1 | Train | 82.22 | 84 | 82 | 757 | 973 | 79 | 295 |
| Val | 92.70 | 93 | 93 | 174 | 169 | 16 | 11 | |
| 2 | Train | 84.07 | 85 | 84 | 790 | 979 | 73 | 262 |
| Val | 92.43 | 93 | 93 | 174 | 168 | 17 | 11 | |
| 3 | Train | 84.51 | 86 | 85 | 792 | 986 | 66 | 260 |
| Val | 92.70 | 93 | 93 | 174 | 169 | 16 | 11 |
| Model | Accuracy (%) | Precision (%) | Recall (%) | ||
|---|---|---|---|---|---|
| (Weighted Avg.) | (Weighted Avg.) | ||||
| Deep Learning-Only | - | - | 98.86 | 99 | 99 |
| - | - | 82.22 | 84 | 82 | |
| - | - | 80.42 | 82 | 80 | |
| 1 | - | 83.41 | 84 | 83 | |
| 0.5 | - | 85.12 | 87 | 85 | |
| 0.05 | - | 84.13 | 85 | 84 | |
| - | 1 | 82.32 | 83 | 82 | |
| - | 0.5 | 81.42 | 81 | 81 | |
| - | 0.05 | 79.56 | 80 | 80 | |
| 0.5 | 1 | 82.13 | 85 | 82 |
| Model | TP | TN | FP | FN | ||
|---|---|---|---|---|---|---|
| Deep Learning-Only | - | - | 1028 | 1052 | 0 | 24 |
| - | - | 757 | 973 | 79 | 295 | |
| - | - | 714 | 978 | 74 | 338 | |
| 1 | - | 793 | 962 | 90 | 259 | |
| 0.5 | - | 775 | 1016 | 36 | 277 | |
| 0.05 | - | 783 | 987 | 65 | 269 | |
| - | 1 | 778 | 954 | 96 | 274 | |
| - | 0.5 | 851 | 862 | 190 | 201 | |
| - | 0.05 | 884 | 790 | 262 | 168 | |
| 0.5 | 1 | 716 | 1012 | 40 | 336 |
| Model | Accuracy (%) | Precision (%) | Recall (%) | ||
|---|---|---|---|---|---|
| (Weighted Avg.) | (Weighted Avg.) | ||||
| Deep Learning-Only | - | - | 93.87 | 91 | 94 |
| - | - | 88.89 | 91 | 89 | |
| - | - | 88.51 | 91 | 89 | |
| 1 | - | 87.36 | 91 | 87 | |
| 0.5 | - | 91.57 | 92 | 92 | |
| 0.05 | - | 89.27 | 91 | 89 | |
| - | 1 | 86.97 | 91 | 87 | |
| - | 0.5 | 79.31 | 92 | 79 | |
| - | 0.05 | 72.80 | 92 | 73 | |
| 0.5 | 1 | 91.57 | 91 | 92 |
| Model | TP | TN | FP | FN | ||
|---|---|---|---|---|---|---|
| Deep Learning-Only | - | - | 0 | 245 | 4 | 12 |
| - | - | 1 | 231 | 18 | 11 | |
| - | - | 1 | 230 | 19 | 11 | |
| 1 | - | 1 | 227 | 22 | 11 | |
| 0.5 | - | 1 | 238 | 11 | 11 | |
| 0.05 | - | 1 | 232 | 17 | 11 | |
| - | 1 | 1 | 226 | 23 | 11 | |
| - | 0.5 | 3 | 204 | 45 | 9 | |
| - | 0.05 | 4 | 186 | 63 | 8 | |
| 0.5 | 1 | 0 | 239 | 10 | 12 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
McGowan, E.; Gawade, V.; Guo, W. A Physics-Informed Convolutional Neural Network with Custom Loss Functions for Porosity Prediction in Laser Metal Deposition. Sensors 2022, 22, 494. https://doi.org/10.3390/s22020494
McGowan E, Gawade V, Guo W. A Physics-Informed Convolutional Neural Network with Custom Loss Functions for Porosity Prediction in Laser Metal Deposition. Sensors. 2022; 22(2):494. https://doi.org/10.3390/s22020494
Chicago/Turabian StyleMcGowan, Erin, Vidita Gawade, and Weihong (Grace) Guo. 2022. "A Physics-Informed Convolutional Neural Network with Custom Loss Functions for Porosity Prediction in Laser Metal Deposition" Sensors 22, no. 2: 494. https://doi.org/10.3390/s22020494
APA StyleMcGowan, E., Gawade, V., & Guo, W. (2022). A Physics-Informed Convolutional Neural Network with Custom Loss Functions for Porosity Prediction in Laser Metal Deposition. Sensors, 22(2), 494. https://doi.org/10.3390/s22020494

