Search arXiv⌕ Search

arXiv · 2509.05813

LabelImg: CNN-Based Surface Defect Detection

Abstract

In the journey of computer vision system development, the acquisition and utilization of annotated images play a central role, providing information about object identity, spatial extent, and viewpoint in depicted scenes. However, thermal manufacturing processes like Laser Powder Bed Fusion (LPBF) often yield surfaces with defects such as Spatter, Crack, Pinhole, and Hole due to the Balling phenomenon. Preprocessing images from LPBF, riddled with defects, presents challenges in training machine learning (ML) algorithms. Detecting defects is critical for predicting production quality and identifying crucial points in artificial or natural structures. This paper introduces a deep learning-based approach utilizing Convolutional Neural Networks (CNNs) to automatically detect and segment surface defects like cracks, spatter, holes, and pinholes on production surfaces. In contrast to traditional machine learning techniques requiring extensive processing time and manual feature crafting, deep learning proves more accurate. The proposed architecture undergoes training and testing on 14,982 labeled images annotated using the LabelImg tool. Each object in the images is manually annotated with bounding boxes and segmented masks. The trained CNN, coupled with OpenCV preprocessing techniques, achieves an impressive 99.54% accuracy on the dataset with resolutions of 1536 x 1103 pixels. Evaluation metrics for 50 true crack tests demonstrate precision, recall, and F1-score exceeding 96%, 98%, and 97%, respectively. Similarly, for 124 true pinhole tests, the metrics are 99%, 100%, and 100%, for 258 true hole tests, they are 99%, 99%, and 99%, and for 318 spatter tests, the metrics are 100%, 99%, and 100%. These results highlight the precision and effectiveness of the entire process, showcasing its potential for reliable defect detection in production surfaces.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Mohsen Asghari Ilani, Yaser Mike Banad. 2025-09-06. LabelImg: CNN-Based Surface Defect Detection. https://arxiv.org/abs/2509.05813

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Surface effects on the plasmons in two-dimemsional heterostructures: Application to tilted semi-Dirac materials

We derived closed-form analytic expressions for the plasmon dispersion equations for two and three monolayers embedded in a non-uniform dielectric medium with a surface. There is no electron tunneling between the layers or hybridization of the layer polarizability. The dispersion equations are deduced from calculated expressions for the corresponding surface response functions (SRFs) generated by a frequency-dependent external polarized electromagnetic field. The SRF is calculated by employing Maxwell's equations in conjunction with linear response theory.The dispersion functions reduce to well-known results for two and three monolayers embedded in a bulk medium with a uniform dielectric background. We examine the role played by a surface (i.e., homogeneous versus inhomogeneous dielectric background screening), for gapped tilted semi-Dirac materials (TSDMs) with half-linear, half-parabolic spectrums whose energy bands are tilted, anisotropic in wave vector space, and a gap is induced. The number of plasmon branches is always equal to the number of monolayer. However, the separation between these branches depends on the distance between the layers and crucially on the chosen dielectric material between the layers and whether there is air or a substrate surrounding the layered structure. For gapped TSDM, the Landau damping, i.e., Plasmon lifetime, varies from branch to branch as well as along the branch for a chosen wave vector direction. We examine these novel behaviors for two and three gapped TSDM monolayers assuming different values for the dielectric background. Our results could be useful for comparing theory with experimental data from electron energy loss spectroscopy (EELS) data.

cond-mat.mes-hall↗

Microscopic Modeling of Surface Roughness Scattering in Inversion Layers of MOSFETs Based on Ando's Linear Model

Surface roughness (SR) scattering in inversion layers of bulk-MOSFETs is studied from the atomistic and quantum-mechanical viewpoints. Contrary to the usual macroscopic landscape of the roughness deviation, we introduce a stochastic deviation at each atomic site to take account of the discontinuity of the spatial derivatives of the electrostatic potential and wave-function at the semiconductor/dielectric interface, leading to an ambiguity in roughness positions. It is shown that SR parameters are consistent with those known from the experiments and, thus, there is no discrepancy problem associated with the roughness parameters in our model. The self-consistent scattering rate is derived under the framework of the Green's functions scheme: We find that the SR scattering rates are intrinsically nonlocal (non-diagonal) with respect to subband indices and greatly deviate from those based on Fermi's golden rule in the regimes of strong effective fields and/or low electron energies. As a result, the conventional SR model tends to underestimate the surface-roughness-limited mobility.

cond-mat.mes-hall↗

Comparative Evaluation of Encapsulation Methods for Endohedral Doping of Single-Wall Carbon Nanotubes

Single wall carbon nanotubes (SWCNTs) are promising building blocks for nanoelectronic and optoelectronic devices, yet reliable and stable doping, particularly n type, remains challenging due to strong environmental sensitivity and competing extrinsic effects. Encapsulation of charge transfer molecules within the SWCNT cavity offers a promising route to stable doping while preserving the nanotubes outer surface for subsequent processing. Here, we systematically investigate the filling of arc discharge SWCNTs with the electron donor tetrathiafulvalene and electron acceptor tetracyanoquinodimethane, comparing different methods for filling, including melt filling, solution reflux, and vacuum phase sublimation. We follow the entire processing workflow from raw, unfilled powders to aqueous dispersions and employ density gradient ultracentrifugation to separate filled from empty nanotubes as well as metallic from semiconducting ones. Encapsulation efficiency and electronic modification are assessed using absorption spectroscopy, resonant Raman scattering, thermogravimetric analysis, X-ray photoelectron spectroscopy and electron paramagnetic resonance. Finally, we introduce a complementary vacuum-phase method that removes externally adsorbed molecules without extensive solvent washing, enabling cleaner encapsulated systems.

cond-mat.mes-hall↗