arXiv ScienceSearch

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

Inverse Purcell Suppression of Decoherence in Majorana Qubits via Environmental Engineering

We show that the electromagnetic or phononic environment of a topological quantum device can be engineered to actively suppress decoherence. For a Majorana qubit in a superconducting wire, the exponentially small splitting $ε\sim e^{-L/ξ}$ that provides topological protection also makes the qubit vulnerable to low-frequency noise. From a microscopic local interaction, we derive the effective low-energy coupling between the Majorana parity operator and a bosonic field; the coupling strength itself is proportional to $ε$, reflecting the qubit's non-local nature. The resulting pure-dephasing rate scales as $Γ_ϕ\propto ε^2 S(ε)$, with $S(ε)$ the environmental noise power at frequency $ε$. In the experimentally relevant high-temperature regime ($k_B T \gtrsim \hbarε$), this gives $Γ_ϕ\propto ερ(ε) T$, where $ρ(ε)$ is the environmental density of states. By engineering an environment with a suppressed low-frequency density of states, $ρ_{\text{eng}}(ω) = ρ_0 (ω/ω_c)^α$ for $ω< ω_c$ ($α> 0$), the dephasing rate drops to $Γ_ϕ^{\text{eng}} \propto ε^{α+1} \propto e^{-(α+1)L/ξ}$. Thus, longer wires yield exponentially better coherence---a direct synergy with topological protection. This "inverse Purcell" effect, which suppresses the density of states at the qubit frequency, provides a quantitative design principle for environmental engineering. Our work establishes spectral density shaping as a practical method for enhancing coherence in topological quantum devices.

cond-mat.mes-hall

Axionic tunneling from a topological Kondo insulator

Discoveries over the past two decades have revealed the remarkable ability of quantum materials to emulate relativistic properties of the vacuum, from Dirac cones in graphene to Dirac surface states of topological insulators. Yet one of the most elusive consequences of topology in quantum matter -- the axionic ${\bf E}\cdot{\bf B}$ contribution to the electromagnetic response, predicted to produce strong magnetoelectric effects -- remains experimentally challenging to detect. Here we report evidence for an axion-like magnetoelectric response obtained through scanning tunneling microscopy (STM) using a SmB$_6$ nanowire tip on an antiferromagnetic Fe$_{1+x}$Te sample. Our measurements reveal a striking voltage-induced magnetization: millivolt biases generate measurable tip magnetizations that reverse with the voltage. The magnitude, tunability, and reversibility of this signal are consistent with an axion-like ${\bf E} \cdot {\bf B}$ coupling, which naturally accounts for the voltage-odd magnetic component of the tip spectral function while strongly constraining a conventional static-magnetism interpretation. Moreover, millivolt-scale control of spin polarization in a tunnel junction provides a new route for probing axionic electrodynamics and opens avenues for future STM and spintronic applications.

cond-mat.mes-hall

Exciton-mediated optical control of liquid-solid friction

Interfacial friction in nanofluidic systems can arise from fluctuation-induced coupling between liquid charge fluctuations and the internal excitations of the confining solid. Here, we develop a microscopic theory of exciton-mediated solid-liquid friction based on the coupling between optically generated excitons and charge fluctuations in water. We distinguish between static excitons, localized by disorder or functionalization, and dynamic excitons, which interact with water through polarization fluctuations. In both cases, we derive analytical formulas for the excitonic friction, which is experimentally tunable and can significantly reduce the slip length and thereby the hydraulic permeability of nanochannels. Applying our framework to carbon nanotubes, we quantitatively reproduce the recent measurements of Kistwal et al., showing a reduction of nanotube diffusion under optical excitation, without fitting parameters. More broadly, our results establish excitons as a mechanism to optically control nanofluidic transport and suggest that excitonic photoluminescence could provide an optical probe of flow velocity inside nanochannels.

cond-mat.mes-hall