Artificial intelligence-driven defect detection and localization in metal 3D printing using convolutional neural networks

Metal additive manufacturing (AM) has attracted significant interest in high-value industries due to its ability to produce complex parts flexibly, but the reliance on costly manual monitoring remains a major burden for quality control. Artificial intelligence (AI)-driven models for automated defect detection are emerging as promising solutions. This study contributes a new annotated dataset for AI research in AM and evaluates the performance of four widely used convolutional neural network (CNN) models in detecting powder bed morphology defects, based on layer-wise images acquired by the EOSTATE PowderBed system during the metal laser-based powder bed fusion process. The models were trained through transfer learning methods with manually labeled and pre-processed data. Results demonstrated that ResNet50 and EfficientNetV2B0 achieved over 99% accuracy in defect classification, while YOLOv5 outperformed Faster region-based-CNN in defect detection and localization. However, lower average precision values in object detection tasks were attributed to variability in defect scales and annotation quality. This study confirms the potential of AI-based models for defect identification in AM, with YOLOv5 demonstrating clear advantages in managing complex, multi-scale defects. Future improvements will focus on expanding the dataset and refining annotation strategies to further enhance model robustness.

- Herzog T, Brandt M, Trinchi A, Sola A, Molotnikov A. Process monitoring and machine learning for defect detection in laser-based metal additive manufacturing. J Intell Manuf. 2024;35(4):1407-1437. doi: 10.1007/s10845-023-02119-y
- Kim H, Lin Y, Tseng TLB. A review on quality control in additive manufacturing. Rapid Prototyp J. 2018;24(3):645-669. doi: 10.1108/RPJ-03-2017-0048
- Vasques CMA, Cavadas AMS, Abrantes JCC. Technology overview and investigation of the quality of a 3D-printed maraging steel demonstration part. MSAM. 2025;4(2):025040002. doi: 10.36922/msam025040002
- DebRoy T, Wei HL, Zuback JS, et al. Additive manufacturing of metallic components-process, structure and properties. Prog Mater Sci. 2018;92:112-224. doi: 10.1016/j.pmatsci.2017.10.001
- Tan C, Li R, Su J, et al. Review on field assisted metal additive manufacturing. Int J Mach Tools and Manuf. 2023;189:104032. doi: 10.1016/j.ijmachtools.2023.104032
- Brennan MC, Keist JS, Palmer TA. Defects in metal additive manufacturing processes. J Mater Eng Perform. 2021;30(7):4808-4818.doi: 10.1007/s11665-021-05919-6
- Khan MF, Alam A, Siddiqui MA, et al. Real-time defect detection in 3D printing using machine learning. Mater Today Proc. 2021;42:521-528. doi: 10.1016/j.matpr.2020.10.482
- Gunasegaram DR, Barnard AS, Matthews MJ, et al. Machine learning-assisted in-situ adaptive strategies for the control of defects and anomalies in metal additive manufacturing. Addit Manuf. 2024;81:104013. doi: 10.1016/j.addma.2024.104013
- Cataldo SD, Vinco S, Urgese G, et al. Optimizing quality inspection and control in powder bed metal additive manufacturing: Challenges and research directions. Proc IEEE. 2021;109(4):326-346. doi: 10.1109/JPROC.2021.3054628
- Xiao Y, Wang X, Yang W, et al. Data-driven prediction of future melt pool from built parts during metal additive manufacturing. Addit Manuf. 2024;93:104438. doi: 10.1016/j.addma.2024.104438
- Tamir TS, Xiong G, Shen Z, et al. 3D printing in materials manufacturing industry: A realm of Industry 4.0. Heliyon. 2023;9(9):e19689. doi: 10.1016/j.heliyon.2023.e19689
- Goh GD, Sing SL, Yeong WY. A review on machine learning in 3D printing: Applications, potential, and challenges. Artif Intell Rev. 2021;54(1):63-94. doi: 10.1007/s10462-020-09876-9
- Liu Q, Chen W, Yakubov V, Kruzic JJ, Wang CH, Li X. Interpretable machine learning approach for exploring process-structure-property relationships in metal additive manufacturing. Addit Manuf. 2024;85:104187. doi: 10.1016/j.addma.2024.104187
- Ng WL, Goh GL, Goh GD, Ten JSJ, Yeong WY. Progress and opportunities for machine learning in materials and processes of additive manufacturing. Adv Mater. 2024;36(34):2310006. doi: 10.1002/adma.202310006
- Ukwaththa J, Herath S, Meddage DPP. A review of machine learning (ML) and explainable artificial intelligence (XAI) methods in additive manufacturing (3D printing). Mater Today Commun. 2024;41:110294. doi: 10.1016/j.mtcomm.2024.110294
- Kadam V, Kumar S, Bongale A, Wazarkar S, Kamat P, Patil S. Enhancing surface fault detection using machine learning for 3D printed products. Appl Syst Innov. 2021;4(2):34. doi: 10.3390/asi4020034
- Chua ZY, Ahn IH, Moon SK. Process monitoring and inspection systems in metal additive manufacturing: Status and applications. Int J Precis Eng Manuf Green Technol. 2017;4(2):235-245. doi: 10.1007/s40684-017-0029-7
- Chang LK, Chen RS, Tsai MC, et al. Machine learning applied to property prediction of metal additive manufacturing products with textural features extraction. Int J Adv Manuf Technol. 2024;132(1):83-98. doi: 10.1007/s00170-024-13165-y
- Cannizzaro D, Varrella AG, Paradiso S, et al. Image Analytics and Machine Learning for In-Situ Defects Detection in Additive Manufacturing. United States: IEEE; 2021. p. 603-608.
- Akbari P, Zamani M, Mostafaei A. Machine learning prediction of mechanical properties in metal additive manufacturing. Addit Manuf. 2024;91:104320. doi: 10.1016/j.addma.2024.104320
- Tang Y, Rahmani Dehaghani M, Sajadi P, Wang GG. Selecting subsets of source data for transfer learning with applications in metal additive manufacturing. J Intell Manuf. 2024;36:3185-3206. doi: 10.1007/s10845-024-02402-6
- Zhang Y, Safdar M, Xie J, Li J, Sage M, Zhao YF. A systematic review on data of additive manufacturing for machine learning applications: The data quality, type, preprocessing, and management. J Intell Manuf. 2023;34(8):3305-3340. doi: 10.1007/s10845-022-02017-9
- Liu X, Mileo A, Smeaton AF. A Systematic Review of Available Datasets in Additive Manufacturing. [arXiv Preprint]; 2024.
- Djenouri Y, Srivastava G, Lin JCW. Applied AI in defect detection for additive manufacturing: Current literature, metrics, datasets, and open challenges. IEEE Instrum Meas Mag. 2024;27(4):46-53. doi: 10.1109/MIM.2024.10540405
- Westphal E, Seitz H. A machine learning method for defect detection and visualization in selective laser sintering based on convolutional neural networks. Addit Manuf. 2021;41:101965. doi: 10.1016/j.addma.2021.101965
- Szymanik B, Psuj G, Hashemi M, Lopato P. Detection and identification of defects in 3D-printed dielectric structures via thermographic inspection and deep neural networks. Materials. 2021;14:4168. doi: 10.3390/ma14154168
- Ansari MA, Crampton A, Garrard R, Cai B, Attallah M. A convolutional neural network (CNN) classification to identify the presence of pores in powder bed fusion images. Int J Adv Manuf Technol. 2022;120(7):5133-5150. doi: 10.1007/s00170-022-08995-7
- Kozhay K, Turarbek S, Asselbekova T, Ali MH, Shehab E. Convolutional neural network-based defect detection technique in FDM technology. Procedia Comput Sci. 2024;231:119-128. doi: 10.1016/j.procs.2023.12.183
- Fu Y, Downey ARJ, Yuan L, Zhang T, Pratt A, Balogun Y. Machine learning algorithms for defect detection in metal laser-based additive manufacturing: A review. J Manuf Process. 2022;75:693-710. doi: 10.1016/j.jmapro.2021.12.061
- Han F, Zou J, Ai Y, Xu C, Liu S, Liu S. Image Classification and Analysis During the Additive Manufacturing Process Based on Deep Convolutional Neural Networks. United States: IEEE; 2019. p. 1-4.
- Khan IA, Birkhofer H, Kunz D, Lukas D, Ploshikhin V. A random forest classifier for anomaly detection in laser-powder bed fusion using optical monitoring. Materials (Basel). 2023;16(19):6470. doi: 10.3390/ma16196470
- Abhilash PM, Ahmed A. Convolutional neural network-based classification for improving the surface quality of metal additive manufactured components. Int J Adv Manuf Technol. 2023;126(9):3873-3885. doi: 10.1007/s00170-023-11388-z
- Lee KH, Lee HW, Yun GJ. A defect detection framework using three-dimensional convolutional neural network (3D-CNN) with in-situ monitoring data in laser powder bed fusion process. Optics Laser Technol. 2023;165:109571. doi: 10.1016/j.optlastec.2023.109571
- Wen H, Huang C, Guo S. The application of convolutional neural networks (CNNs) to recognize defects in 3D-printed parts. Materials (Basel). 2021;14(10):2575. doi: 10.3390/ma14102575
- Yin X, Akmal JS, Salmi M, Björkstrand R. Data From: Annotated Image Dataset for Defects Detection in Laser Powder Bed Fusion. Geneva: Zenodo; 2025. doi: 10.5281/zenodo.14996806
- He K, Zhang X, Ren S, Sun J. Deep Residual Learning for Image Recognition. United States: IEEE; 2016. p. 770-778.
- Tan M. Efficientnet: Rethinking Model Scaling for Convolutional Neural Networks. [arXiv Preprint]; 2019.
- Ren S. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. [arXiv Preprint]; 2015.
- Redmon J. You Only Look Once: Unified, Real-Time Object Detection. United States: IEEE; 2016.
- Chen K, Zhang P, Yan H, et al. A review of machine learning in additive manufacturing: Design and process. Int J Adv Manuf Technol. 2024;135(3):1051-1087. doi: 10.1007/s00170-024-14543-2
- Akmal J, Macarie M, Björkstrand R, Minet K, Salmi M. Defect detection in laser-based powder bed fusion process using machine learning classification methods. IOP Conf Ser Mater Sci Eng. 2023;1296(1):012013. doi: 10.1088/1757-899X/1296/1/012013
- Schmitt AM, Sauer C, Höfflin D, Schiffler A. Powder bed monitoring using semantic image segmentation to detect failures during 3D metal printing. Sensors (Basel). 2023;23(9):4183. doi: 10.3390/s23094183
- Kuriachen B, Jeyaraj R, Raphael D, Ashok P, Sundari PS, Paul A. Defect detection in fused deposition modelling using lightweight convolutional neural networks. Eng Appl Artif Intell. 2025;141:109802. doi: 10.1016/j.engappai.2024.109802
- Sousa J, Brandau B, Darabi R, et al. Artificial intelligence for control in laser-based additive manufacturing: A systematic review. IEEE Access. 2025;13:30845-30860. doi: 10.1109/ACCESS.2025.3537859
- Soori M, Jough FKG, Dastres R, Arezoo B. Additive manufacturing modification by artificial intelligence, machine learning, and deep learning: A review. Addit Manuf Front. 2025;4(2):200198. doi: 10.1016/j.amf.2025.200198
- Paraskevoudis K, Karayannis P, Koumoulos EP. Real-time 3D printing remote defect detection (stringing) with computer vision and artificial intelligence. Processes. 2020;8(11):1464. doi: 10.3390/pr8111464
- Wang Y, Wang Z, Liu W, et al. A novel depth-connected region-based convolutional neural network for small defect detection in additive manufacturing. Cognit Comput. 2024;17(1):36. doi: 10.1007/s12559-024-10397-8
- Dong K, Ni M, Liang C, et al. Automatic detection and localization of internal defects in additively manufactured aluminum alloy based on deep learning. Measurement. 2025;244:116383. doi: 10.1016/j.measurement.2024.116383
- Scime L, Siddel D, Baird S, Paquit V. Layer-wise anomaly detection and classification for powder bed additive manufacturing processes: A machine-agnostic algorithm for real-time pixel-wise semantic segmentation. Addit Manuf. 2020;36:101453. doi: 10.1016/j.addma.2020.101453
- Ferguson M, Ak R, Lee YTT, Law KH. Detection and segmentation of manufacturing defects with convolutional neural networks and transfer learning. Smart Sustain Manuf Syst. 2018;2(1):137-164. doi: 10.1520/SSMS20180033